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

//define images. You can have as many as you want:
photos[0]="cab/img01.jpg"
photos[1]="cab/img02.jpg"
photos[2]="cab/img03.jpg"
photos[3]="cab/img04.jpg"
photos[4]="cab/img05.jpg"
photos[5]="cab/img06.jpg"
photos[6]="cab/img07.jpg"
photos[7]="cab/img08.jpg"
photos[8]="cab/img09.jpg"
photos[9]="cab/img10.jpg"
photos[10]="cab/img11.jpg"
photos[11]="cab/img12.jpg"
photos[12]="cab/img13.jpg"
photos[13]="cab/img14.jpg"
photos[14]="cab/img15.jpg"
photos[15]="cab/img16.jpg"
photos[16]="cab/img17.jpg"
photos[17]="cab/img18.jpg"
photos[18]="cab/img19.jpg"
photos[19]="cab/img20.jpg"
photos[20]="cab/img21.jpg"
photos[21]="cab/img22.jpg"
photos[22]="cab/img23.jpg"
photos[23]="cab/img24.jpg"
photos[24]="cab/img25.jpg"
photos[25]="cab/img26.jpg"
photos[26]="cab/img27.jpg"
photos[27]="cab/img28.jpg"
photos[28]="cab/img29.jpg"
photos[29]="cab/img30.jpg"


//Specify whether images should be linked or not (1=linked)
var linkornot=0

//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]
}
