// JavaScript Document
// JavaScript Document
var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="images/2005/1.GIF"
photos[1]="images/2005/2.GIF"
photos[2]="images/2005/3.GIF"
photos[3]="images/2005/4.GIF"
photos[4]="images/2005/5.GIF"
photos[5]="images/2005/6.GIF"
photos[6]="images/2005/7.GIF"
photos[7]="images/2005/8.GIF"
photos[8]="images/2005/9.GIF"
photos[9]="images/2005/10.GIF"
photos[10]="images/2005/11.GIF"
photos[11]="images/2005/12.GIF"
photos[12]="images/2005/13.GIF"
photos[13]="images/2005/14.GIF"
photos[14]="images/2005/15.GIF"
photos[15]="images/2005/16.GIF"
photos[16]="images/2005/17.GIF"
photos[17]="images/2005/18.GIF"
photos[18]="images/2005/19.GIF"
photos[19]="images/2005/20.GIF"
photos[20]="images/2005/21.GIF"
photos[21]="images/2005/22.GIF"
photos[22]="images/2005/23.GIF"
photos[23]="images/2005/24.GIF"
photos[24]="images/2005/25.GIF"


//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]=""

//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){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}



function playeffect(){
if (document.all && photoslider.filters)
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]
}
