/***********************************************
* 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 which=0

// Définition du chemin de l'image. Vous pouvez en mettre aurant que vous le désirez

photos[0]="images/rand/lavague.jpg"
photos[1]="images/rand/ethniques.jpg"
photos[2]="images/rand/venise.jpg"
photos[3]="images/rand/disqueceltique.jpg"
photos[4]="images/rand/orientable.jpg"
photos[5]="images/rand/oiseauxceltiquesentrelaces.jpg"
photos[6]="images/rand/vaguedeferlante.jpg"
photos[7]="images/rand/portelumiere.jpg"
photos[8]="images/rand/victor.jpg"
photos[9]="images/rand/donquichotte.jpg"
photos[10]="images/rand/nurenoir.jpg"
photos[11]="images/rand/jeuneasiatique.jpg"


// Spécifiez si l'image doit être cliquable ou pas : 0 = non - 1 = oui
var linkornot=1

// Inscrivez l'URL de chaque image entre les "". Ne le faire que si la variable ci-dessus est égale à 1 (linkornot=1)

photoslink[0]="artistes/marysenouri.html"
photoslink[1]="artistes/marysenouri.html"
photoslink[2]="artistes/marysenouri.html"
photoslink[3]="artistes/francoiseboivin.html"
photoslink[4]="artistes/francoiseboivin.html"
photoslink[5]="artistes/francoiseboivin.html"
photoslink[6]="evalys/index.html"
photoslink[7]="evalys/index.html"
photoslink[8]="evalys/index.html"
photoslink[9]="artistes/reneebourru.html"
photoslink[10]="artistes/reneebourru.html"
photoslink[11]="artistes/reneebourru.html"


// NE RIEN EDITER AU-DESSOUS DE CETTE LIGNE.

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
}


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]
}