//Viewer javascripts

function backward(){
if (which>0){
which--
enlarge(photos[which])
}
}

function forward(){
if (which<photos.length-1){
which++
enlarge(photos[which])
}
}

function jump(number){
which=number
enlarge(photos[which])
}

function enlarge(which, e, position, imgwidth, imgheight){
if (ie||ns6){
crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage

crossobj.innerHTML='<img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}
else //if NOT IE 4+ or NS 6+, simply display image in full browser window
return true
}
