// Slideshow
var photos2=new Array()
var photoslink2=new Array()
var which2=0

//define images. You can have as many as you want:
photos2[0]="images/news_2010_07_29_dole/news_2010_07_29_dole_01.jpg"
photos2[1]="images/news_2010_07_29_dole/news_2010_07_29_dole_02.jpg"
photos2[2]="images/news_2010_07_29_dole/news_2010_07_29_dole_03.jpg"
photos2[3]="images/news_2010_07_29_dole/news_2010_07_29_dole_04.jpg"
photos2[4]="images/news_2010_07_29_dole/news_2010_07_29_dole_05.jpg"
photos2[5]="images/news_2010_07_29_dole/news_2010_07_29_dole_06.jpg"
photos2[6]="images/news_2010_07_29_dole/news_2010_07_29_dole_07.jpg"
photos2[7]="images/news_2010_07_29_dole/news_2010_07_29_dole_08.jpg"
photos2[8]="images/news_2010_07_29_dole/news_2010_07_29_dole_09.jpg"


//do NOT edit pass this line

var preloadedimages2=new Array()
for (i=0;i<photos2.length;i++){
preloadedimages2[i]=new Image()
preloadedimages2[i].src=photos2[i]
}


function applyeffect2(){
if (document.all && photoslider2.filters){
photoslider2.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider2.filters.revealTrans.stop()
photoslider2.filters.revealTrans.apply()
}
}



function playeffect2(){
if (document.all && photoslider2.filters)
photoslider2.filters.revealTrans.play()
}

function keeptrack2(){
window.status="Image "+(which2+1)+" of "+photos.length
}


function backward2(){
if (which2>0){
which2--
applyeffect2()
document.images.photoslider2.src=photos2[which2]
playeffect2()
keeptrack2()
}
}

function forward2(){
if (which2<photos2.length-1){
which2++
applyeffect2()
document.images.photoslider2.src=photos2[which]
playeffect2()
keeptrack2()
}
}


function transport2(){
window.location=photoslink2[which2]
}