// JavaScript Document

var photos=new Array()
var which=0
var total=35


/*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/richards_01.jpg"
photos[1]="images/gallery/richards_02.jpg"
photos[2]="images/gallery/richards_03.jpg"
photos[3]="images/gallery/richards_04.jpg"
photos[4]="images/gallery/richards_05.jpg"
photos[5]="images/gallery/richards_06.jpg"
photos[6]="images/gallery/richards_07.jpg"
photos[7]="images/gallery/richards_08.jpg"
photos[8]="images/gallery/richards_09.jpg"
photos[9]="images/gallery/richards_10.jpg"
photos[10]="images/gallery/richards_11.jpg"
photos[11]="images/gallery/richards_12.jpg"
photos[12]="images/gallery/richards_13.jpg"
photos[13]="images/gallery/richards_14.jpg"
photos[14]="images/gallery/richards_15.jpg"
photos[15]="images/gallery/richards_16.jpg"
photos[16]="images/gallery/richards_17.jpg"
photos[17]="images/gallery/richards_18.jpg"
photos[18]="images/gallery/richards_19.jpg"
photos[19]="images/gallery/richards_20.jpg"
photos[20]="images/gallery/richards_21.jpg"
photos[21]="images/gallery/richards_22.jpg"
photos[22]="images/gallery/richards_23.jpg"
photos[23]="images/gallery/richards_24.jpg"
photos[24]="images/gallery/richards_25.jpg"
photos[25]="images/gallery/richards_26.jpg"
photos[26]="images/gallery/richards_27.jpg"
photos[27]="images/gallery/richards_28.jpg"
photos[28]="images/gallery/richards_29.jpg"
photos[29]="images/gallery/richards_30.jpg"
photos[30]="images/gallery/richards_31.jpg"
photos[31]="images/gallery/richards_32.jpg"
photos[32]="images/gallery/richards_33.jpg"
photos[33]="images/gallery/richards_34.jpg"
photos[34]="images/gallery/richards_35.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)
}
*/

}
