// JavaScript Document

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


/*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/theisen_01.jpg"
photos[1]="images/gallery/theisen_02.jpg"
photos[2]="images/gallery/theisen_03.jpg"
photos[3]="images/gallery/theisen_04.jpg"
photos[4]="images/gallery/theisen_05.jpg"
photos[5]="images/gallery/theisen_06.jpg"
photos[6]="images/gallery/theisen_07.jpg"
photos[7]="images/gallery/theisen_08.jpg"
photos[8]="images/gallery/theisen_09.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)
}
*/

}
