/***********************************************
* 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 photo=new Array()
var photoLink=new Array()
var caption=new Array()
var which=0

//define images. You can have as many as you want:
photo[0]="../img/home/latest/vortex_VIRTIS.gif"
photo[1]="../img/home/latest/eye.jpg"
photo[2]="../img/home/latest/vortex_mosaic.gif"
photo[3]="../img/home/latest/venus_uv.gif"

//Specify whether images should be linked or not (1=linked)
var linkOrNot=1

//Set corresponding URLs for above images. Define ONLY if variable linkOrNot equals "1"
photoLink[0]="http://www.esa.int/esa-mmg/mmg.pl?b=b&amp;type=I&amp;mission=Venus Express&amp;single=y&amp;start=14&amp;size=b"
photoLink[1]="http://www.esa.int/esa-mmg/mmg.pl?b=b&amp;type=I&amp;mission=Venus Express&amp;single=y&amp;start=1&amp;size=b"
photoLink[2]="http://www.esa.int/esa-mmg/mmg.pl?b=b&amp;type=I&amp;mission=Venus Express&amp;single=y&amp;start=20&amp;size=b"
photoLink[3]="http://www.esa.int/esa-mmg/mmg.pl?b=b&amp;type=I&amp;mission=Venus%20Express&amp;single=y&amp;start=47&amp;size=b"

//captions for each photo
caption[0]="The south polar dipole, a complex atmospheric vortex-like feature situated over the south pole of the planet. (VIRTIS, August 2007)"
caption[1]="&quot;Eye of the hurricane&quot; on Venus. (VIRTIS, August 2007)"
caption[2]="A mosaic of the southern hemisphere of Venus seen at different wavelengths. (VIRTIS, May 2006)"
caption[3]="A false-colour movie was built with ultraviolet images. (VMC, 22 May 2006)"


//do NOT edit pass this line

var preloadedimages=new Array()
for (i=0;i<photo.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photo[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 "+photo.length
}
function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photo[which]
document.getElementById('caption').innerHTML=caption[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photo.length-1){
which++
applyeffect()
document.images.photoslider.src=photo[which]
document.getElementById('caption').innerHTML=caption[which]
playeffect()
keeptrack()
}
}

function transport(){
window.location=photoLink[which]
}

