var photos=new Array()
var photoslink=new Array()
var which=0

photos[0]="photo/s1.jpg"
photos[1]="photo/s2.jpg"
photos[2]="photo/s3.jpg"
photos[3]="photo/s4.jpg"
photos[4]="photo/s5.jpg"


var linkornot=0

photoslink[0]="#"
photoslink[1]="#"
photoslink[2]="#"
photoslink[3]="#"
photoslink[4]="#"
photoslink[5]="#"
photoslink[6]="#"


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="Logo "+(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.open(photoslink[which])
}