var photos=new Array()
var which=0

photos[0]="do.jpg"
photos[1]="do1.jpg"
photos[2]="do2.jpg"
photos[3]="do3.jpg"
photos[4]="do4.jpg"
photos[5]="do5.jpg"
photos[6]="do6.jpg"
photos[7]="do7.jpg"
photos[8]="do8.jpg"

function backward(){
if (which>0){
window.status=''
which--
document.images.photoslider.src=photos[which]
}
}

function forward(){
if (which<photos.length-1){
which++
document.images.photoslider.src=photos[which]
}
else window.status='End of gallery'
}