

/*
DHTML slideshow script- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var photos=new Array()
var photos_caption=new Array()
var photoslink=new Array()
var which=0


photos[0]="images/loveak/regular/a-snowy_reg.jpg"
photos[1]="images/loveak/regular/battery_reg.jpg"
photos[2]="images/loveak/regular/chilkat_inlet_sunnyday_reg.jpg"
photos[3]="images/loveak/regular/chilkat_thaw_reg.jpg"
photos[4]="images/loveak/regular/davidson_reg.jpg"
photos[5]="images/loveak/regular/dungy_reg.jpg"
photos[6]="images/loveak/regular/eagles_council_reg.jpg"
photos[7]="images/loveak/regular/ft-seward_reg.jpg"
photos[8]="images/loveak/regular/sawmillcreek_reg.jpg"
photos[9]="images/loveak/regular/sealion_reg.jpg"
photos[10]="images/loveak/regular/smallboat_reg.jpg"
photos[11]="images/loveak/regular/sunshine_mountain_reg.jpg"
photos[12]="images/loveak/regular/the_pass_reg.jpg"
photos[13]="images/loveak/regular/tlingit_opening1.jpg"
photos[14]="images/loveak/regular/tlingit_opening2.jpg"
photos[15]="images/loveak/regular/small_boat_winter04_1.jpg"
photos[16]="images/loveak/regular/small_boat_winter04_2.jpg"
photos[17]="images/loveak/regular/whales1.jpg"
photos[18]="images/loveak/regular/whales2.jpg"
photos[19]="images/loveak/regular/whales3.jpg"
photos[20]="images/loveak/regular/whales4.jpg"

var linkornot=0


// photoslink[0]="order.html"
// photoslink[1]="order.html"
// photoslink[2]="order.html"
// photoslink[3]="order.html"
// photoslink[4]="order.html"



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]
}


