// JavaScript Document

<!--
//PLF-http://www.jejavascript.net/
var bauto2 = 0;
var dossier2="img/diapo2/";
var numero2 = 1;
function objet2() {
this.length = objet2.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet2.arguments[i]
}
var nom2 = new objet2 ("photo1.jpg", "photo2.jpg", "photo3.jpg","photo4.jpg" );
function suivante2() {
numero2 += 1;
if (numero2 == nom2.length + 1) numero2 = 1;
document.image2.src = dossier2+nom2[numero2];
}
function precedente2() {
numero2 -= 1;
if (numero2 == 0) numero2 = nom2.length;
document.image2.src = dossier2+nom2[numero2];
}
function changer2() {
numero2 += 1;
if (numero2 == nom2.length + 1) numero2 = 1;
document.image2.src = dossier2+nom2[numero2];
roll=setTimeout("changer()", 1500);
}
function initial2() {
window.clearTimeout(roll);
document.image2.src = dossier2+nom2[numero2];
}
function auto2() {
if (bauto2 == 0) {
bauto2 =1; changer();
document.vision2.automat.value=" Lect/Stop ";
}
else {
bauto2 =0; initial2();
document.vision2.automat.value=" Lect/Auto ";
}
}
//-->
