
var photos=new Array()
var photoslink=new Array()
var which=0



//Specify whether images should be linked or not (1=linked)
var linkornot=0


photos[0]='images/rana2.gif'

//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
document.getElementById('datosfoto').innerHTML = "<div id=capa >"+ "Imagen "+(which+1)+" / "+photos.length +"</div>";

}

function firstphoto(){
which=0
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}

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]
}




