// JavaScript Document

var photos=new Array()
var which=0
var total=22


/*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/jacobsons_01.jpg"
photos[1]="images/gallery/jacobsons_02.jpg"
photos[2]="images/gallery/jacobsons_03.jpg"
photos[3]="images/gallery/jacobsons_04.jpg"
photos[4]="images/gallery/jacobsons_05.jpg"
photos[5]="images/gallery/jacobsons_06.jpg"
photos[6]="images/gallery/jacobsons_07.jpg"
photos[7]="images/gallery/jacobsons_08.jpg"
photos[8]="images/gallery/jacobsons_09.jpg"
photos[9]="images/gallery/jacobsons_10.jpg"
photos[10]="images/gallery/jacobsons_11.jpg"
photos[11]="images/gallery/jacobsons_12.jpg"
photos[12]="images/gallery/jacobsons_13.jpg"
photos[13]="images/gallery/jacobsons_14.jpg"
photos[14]="images/gallery/jacobsons_15.jpg"
photos[15]="images/gallery/jacobsons_16.jpg"
photos[16]="images/gallery/jacobsons_17.jpg"
photos[17]="images/gallery/jacobsons_18.jpg"
photos[18]="images/gallery/jacobsons_19.jpg"
photos[19]="images/gallery/jacobsons_20.jpg"
photos[20]="images/gallery/jacobsons_21.jpg"
photos[21]="images/gallery/jacobsons_22.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)
}
*/

}
