/***********************************************
* 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]="/gallery_photos/sonesta1.jpg"

photos[1]="/gallery_photos/sonesta2.jpg"

photos[2]="/gallery_photos/sonesta3.jpg"

photos[3]="/gallery_photos/sonesta4.jpg"

photos[4]="/gallery_photos/sonesta5.jpg"

photos[5]="/gallery_photos/sonesta6.jpg"

photos[6]="/gallery_photos/sonesta7.jpg"

photos[7]="/gallery_photos/sonesta8.jpg"

photos[8]="/gallery_photos/sonesta9.jpg"

photos[9]="/gallery_photos/sonesta10.jpg"

photos[10]="/gallery_photos/sonesta11.jpg"

photos[11]="/gallery_photos/sonesta12.jpg"

photos[12]="/gallery_photos/sonesta13.jpg"

photos[13]="/gallery_photos/sonesta14.jpg"

photos[14]="/gallery_photos/sonesta15.jpg"

photos[15]="/gallery_photos/sonesta16.jpg"

photos[16]="/gallery_photos/sonesta17.jpg"

photos[17]="/gallery_photos/sonesta18.jpg"

photos[18]="/gallery_photos/sonesta19.jpg"

photos[19]="/gallery_photos/sonesta20.jpg"

photos[20]="/gallery_photos/sonesta21.jpg"

photos[21]="/gallery_photos/sonesta22.jpg"

photos[22]="/gallery_photos/sonesta23.jpg"

photos[23]="/gallery_photos/sonesta24.jpg"

photos[24]="/gallery_photos/sonesta25.jpg"

photos[25]="/gallery_photos/sonesta26.jpg"

photos[26]="/gallery_photos/sonesta27.jpg"

photos[27]="/gallery_photos/sonesta28.jpg"

photos[28]="/gallery_photos/sonesta29.jpg"

photos[29]="/gallery_photos/sonesta30.jpg"

photos[30]="/gallery_photos/sonesta31.jpg"

photos[31]="/gallery_photos/sonesta32.jpg"

photos[32]="/gallery_photos/sonesta33.jpg"

photos[33]="/gallery_photos/sonesta34.jpg"

photos[34]="/gallery_photos/sonesta35.jpg"

photos[35]="/gallery_photos/sonesta36.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]=""
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]
}