var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want. Images MUST be of the same dimensions (for NS's sake)
photos[0]="pic01.jpg"
photos[1]="pic02.jpg"
photos[2]="pic03.jpg"
photos[3]="pic04.jpg"
photos[4]="pic05.jpg"
photos[5]="pic06.jpg"
photos[6]="pic07.jpg"
photos[7]="pic08.jpg"
photos[8]="pic09.jpg"
photos[9]="pic10.jpg"
photos[10]="pic11.jpg"
photos[11]="pic12.jpg"
photos[12]="pic13.jpg"
photos[13]="pic14.jpg"
photos[14]="pic15.jpg"
photos[15]="pic16.jpg"
photos[16]="pic17.jpg"
photos[17]="pic18.jpg"
photos[18]="pic19.jpg"
photos[19]="pic20.jpg"
photos[20]="pic21.jpg"
photos[21]="pic22.jpg"
photos[22]="pic23.jpg"
photos[23]="pic24.jpg"
photos[24]="pic25.jpg"
photos[25]="pic26.jpg"
photos[26]="pic27.jpg"
photos[27]="pic28.jpg"
photos[28]="pic29.jpg"
photos[29]="pic30.jpg"
photos[30]="pic31.jpg"

//Specify whether images should be linked or not (1=linked)
var linkornot=0

//Set corresponding URLs for above images. Define ONLY if variable linkornot equals "1"
photoslink[0]=""
photoslink[1]=""
photoslink[2]=""
photoslink[3]=""
photoslink[4]=""

//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}


function applyeffect(){
if (document.all){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}


function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoslink[which]
}


