// JavaScript Document

var photos=new Array()
var which=0
var total=42


/*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/locati_01.jpg"
photos[1]="images/gallery/locati_02.jpg"
photos[2]="images/gallery/locati_03.jpg"
photos[3]="images/gallery/locati_04.jpg"
photos[4]="images/gallery/locati_05.jpg"
photos[5]="images/gallery/locati_06.jpg"
photos[6]="images/gallery/locati_07.jpg"
photos[7]="images/gallery/locati_08.jpg"
photos[8]="images/gallery/locati_09.jpg"
photos[9]="images/gallery/locati_10.jpg"
photos[10]="images/gallery/locati_11.jpg"
photos[11]="images/gallery/locati_12.jpg"
photos[12]="images/gallery/locati_13.jpg"
photos[13]="images/gallery/locati_14.jpg"
photos[14]="images/gallery/locati_15.jpg"
photos[15]="images/gallery/locati_16.jpg"
photos[16]="images/gallery/locati_17.jpg"
photos[17]="images/gallery/locati_18.jpg"
photos[18]="images/gallery/locati_19.jpg"
photos[19]="images/gallery/locati_20.jpg"
photos[20]="images/gallery/locati_21.jpg"
photos[21]="images/gallery/locati_22.jpg"
photos[22]="images/gallery/locati_23.jpg"
photos[23]="images/gallery/locati_24.jpg"
photos[24]="images/gallery/locati_25.jpg"
photos[25]="images/gallery/locati_26.jpg"
photos[26]="images/gallery/locati_27.jpg"
photos[27]="images/gallery/locati_28.jpg"
photos[28]="images/gallery/locati_29.jpg"
photos[29]="images/gallery/locati_30.jpg"
photos[30]="images/gallery/locati_31.jpg"
photos[31]="images/gallery/locati_32.jpg"
photos[32]="images/gallery/locati_33.jpg"
photos[33]="images/gallery/locati_34.jpg"
photos[34]="images/gallery/locati_35.jpg"
photos[35]="images/gallery/locati_36.jpg"
photos[36]="images/gallery/locati_37.jpg"
photos[37]="images/gallery/locati_38.jpg"
photos[38]="images/gallery/locati_39.jpg"
photos[39]="images/gallery/locati_40.jpg"
photos[40]="images/gallery/locati_41.jpg"
photos[41]="images/gallery/locati_42.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)
}
*/

}
