var photos1=new Array()
var photoslink1=new Array()
var which1=0

// Définition du chemin de l'image. Vous pouvez en mettre aurant que vous le désirez
photos1[0]="images/diapo1/photo001.jpg"
photos1[1]="images/diapo1/photo002.jpg"
photos1[2]="images/diapo1/photo003.jpg"
photos1[3]="images/diapo1/photo006.jpg"
photos1[4]="images/diapo1/photo009.jpg"
photos1[5]="images/diapo1/photo010.jpg"
photos1[6]="images/diapo1/photo012.jpg"

// Spécifiez si l'image doit être cliquable ou pas : 0 = non - 1 = oui
var linkornot=0
var t=0
// Inscrivez l'URL de chaque image entre les "". Ne le faire que si la variable ci-dessus est égale à 1 (linkornot=1)
photoslink1[0]=""
photoslink1[1]=""
photoslink1[2]=""

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

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


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


function playeffect1(){
if (document.all && photoslider1.filters)
photoslider1.filters.revealTrans.play()
}

function keeptrack1(){
window.status="Image "+(which1+1)+" of "+photos1.length
}


function backward1(){
if (which1>=0){
if (which1==0){which1=6}
	which1--
applyeffect1()
document.images.photoslider1.src=photos1[which1]
playeffect1()
keeptrack1()
}
}

function forward1(){
if (which1<=photos1.length-1){
which1++
if (which1==photos1.length-1){which1=0}
applyeffect1()
document.images.photoslider1.src=photos1[which1]
playeffect1()
keeptrack1()
}
}
function Attendre()
{
  setTimeout(2);
}


function auto1(){
	while (t<7){t++;
	if (t>7){t=0;}
applyeffect1()
setTimeout("auto1()",4000);
document.images.photoslider1.src=photos1[t-1]
playeffect1()
keeptrack1()
}
}

function transport1(){
window.location=photoslink1[which1]
}

