/***********************************************
* 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 photostext=new Array()
var which=0



//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 backward(){
if (document.getElementById('photoslider')) {
if (which>0){
which--
applyeffect()
document.getElementById('photoslider').src=photos[which]
playeffect()
}
}
}

function forward(){
if (document.getElementById('photoslider')) {
if (which>photos.length-2) which=0;
 
if (which<photos.length-1){
which++
applyeffect()
document.getElementById('photoslider').src=photos[which]
playeffect()
}
}}

function transport(){
window.location=photoslink[which]
}
