// JavaScript Document

<!--
//PLF-http://www.jejavascript.net/
var bauto5 = 0;
var dossier5="img/diapo5/";
var numero5 = 1;
function objet5() {
this.length = objet5.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet5.arguments[i]
}
var nom5 = new objet5 ("photo1.jpg", "photo2.jpg", "photo3.jpg" );
function suivante5() {
numero5 += 1;
if (numero5 == nom5.length + 1) numero5 = 1;
document.image5.src = dossier5+nom5[numero5];
}
function precedente5() {
numero5 -= 1;
if (numero5 == 0) numero5 = nom5.length;
document.image5.src = dossier5+nom5[numero5];
}
function changer5() {
numero5 += 1;
if (numero5 == nom5.length + 1) numero5 = 1;
document.image5.src = dossier5+nom5[numero5];
roll=setTimeout("changer()", 1500);
}
function initial5() {
window.clearTimeout(roll);
document.image5.src = dossier5+nom5[numero5];
}
function auto5() {
if (bauto5 == 0) {
bauto5 =1; changer();
document.vision5.automat.value=" Lect/Stop ";
}
else {
bauto5 =0; initial5();
document.vision5.automat.value=" Lect/Auto ";
}
}
//-->
