
/*
javascript- 
For this script to function in browsers older than IE5, you must include accompanying JScorr.dll in the same directory.
*/

var photos=new Array()
var photoslink=new Array()
var which=0

//images definition.
photos[0]="2003_pix/1.jpg"
photos[1]="2003_pix/2.jpg"
photos[2]="2003_pix/3.jpg"
photos[3]="2003_pix/4.jpg"
photos[4]="2003_pix/5.jpg"
photos[5]="2003_pix/6.jpg"
photos[6]="2003_pix/7.jpg"
photos[7]="2003_pix/8.jpg"
photos[8]="2003_pix/9.jpg"
photos[9]="2003_pix/10.jpg"
photos[10]="2003_pix/11.jpg"
photos[11]="2003_pix/12.jpg"
photos[12]="2003_pix/13.jpg"
photos[13]="2003_pix/14.jpg"
photos[14]="2003_pix/15.jpg"
photos[15]="2003_pix/16.jpg"
photos[16]="2003_pix/17.jpg"
photos[17]="2003_pix/18.gif"

//images linkage (1=linked)
var linkornot=0

//URLs definition. 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]
}
