
/***********************************************
* DHTML slideshow script-  © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var photoslink=new Array()
var which=0

//define images. You can have as many as you want:
photos[0]="photos/0.jpg"
photos[1]="photos/1.jpg"
photos[2]="photos/2.jpg"
photos[3]="photos/3.jpg"
photos[4]="photos/4.jpg"
photos[5]="photos/5.jpg"
photos[6]="photos/6.jpg"
photos[7]="photos/7.jpg"
photos[8]="photos/8.jpg"
photos[9]="photos/9.jpg"
photos[10]="photos/10.jpg"
photos[11]="photos/11.jpg"
photos[12]="photos/12.jpg"
photos[13]="photos/13.jpg"
photos[14]="photos/14.jpg"
photos[15]="photos/15.jpg"
photos[16]="photos/16.jpg"
photos[17]="photos/17.jpg"
photos[18]="photos/18.jpg"
photos[19]="photos/19.jpg"
photos[20]="photos/20.jpg"
photos[21]="photos/21.jpg"
photos[22]="photos/22.jpg"
photos[23]="photos/23.jpg"
photos[24]="photos/24.jpg"
photos[25]="photos/25.jpg"
photos[26]="photos/26.jpg"
photos[27]="photos/27.jpg"
photos[28]="photos/28.jpg"
photos[29]="photos/29.jpg"
photos[30]="photos/30.jpg"
photos[31]="photos/31.jpg"
photos[32]="photos/32.jpg"
photos[33]="photos/33.jpg"
photos[34]="photos/34.jpg"
photos[35]="photos/35.jpg"
photos[36]="photos/36.jpg"
photos[37]="photos/37.jpg"
photos[38]="photos/38.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]=""


//do NOT edit pass this line



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]
}

