// JavaScript Document

var photos=new Array()
var which=0
var total=23


/*Change the below variables to reference your own images. You may have as many images in the slider as you wish*/
photos[0]="images/gallery/spano_01.jpg"
photos[1]="images/gallery/spano_02.jpg"
photos[2]="images/gallery/spano_03.jpg"
photos[3]="images/gallery/spano_04.jpg"
photos[4]="images/gallery/spano_05.jpg"
photos[5]="images/gallery/spano_06.jpg"
photos[6]="images/gallery/spano_07.jpg"
photos[7]="images/gallery/spano_08.jpg"
photos[8]="images/gallery/spano_09.jpg"
photos[9]="images/gallery/spano_10.jpg"
photos[10]="images/gallery/spano_11.jpg"
photos[11]="images/gallery/spano_12.jpg"
photos[12]="images/gallery/spano_13.jpg"
photos[13]="images/gallery/spano_14.jpg"
photos[14]="images/gallery/spano_15.jpg"
photos[15]="images/gallery/spano_16.jpg"
photos[16]="images/gallery/spano_17.jpg"
photos[17]="images/gallery/spano_18.jpg"
photos[18]="images/gallery/spano_19.jpg"
photos[19]="images/gallery/spano_20.jpg"
photos[20]="images/gallery/spano_21.jpg"
photos[21]="images/gallery/spano_22.jpg"
photos[22]="images/gallery/spano_23.jpg"


function backward(){
if (which>0){
window.status=''
which--
document.images.lgImage.src=photos[which]
var userInput = [which+1];
	document.getElementById('imageNumber').innerHTML = userInput+" of "+total;

	
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.lgImage.src=photos[which]
var userInput = [which+1];
	document.getElementById('imageNumber').innerHTML = userInput+" of "+total;
	
}


function changeNumber(){
	//var userInput = [which+1];
	//document.getElementById('imageNumber').innerHTML = userInput+" of "+total;
	alert("shit");
}
/*
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
*/

}
