// JavaScript Document

<!--
//PLF-http://www.jejavascript.net/
var bauto4 = 0;
var dossier4="img/diapo4/";
var numero4 = 1;
function objet4() {
this.length = objet4.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet4.arguments[i]
}
var nom4 = new objet4 ("photo1.jpg", "photo2.jpg", "photo3.jpg","photo4.jpg" );
function suivante4() {
numero4 += 1;
if (numero4 == nom4.length + 1) numero4 = 1;
document.image4.src = dossier4+nom4[numero4];
}
function precedente4() {
numero4 -= 1;
if (numero4 == 0) numero4 = nom4.length;
document.image4.src = dossier4+nom4[numero4];
}
function changer4() {
numero4 += 1;
if (numero4 == nom4.length + 1) numero4 = 1;
document.image4.src = dossier4+nom4[numero4];
roll=setTimeout("changer()", 1500);
}
function initial4() {
window.clearTimeout(roll);
document.image4.src = dossier4+nom4[numero4];
}
function auto4() {
if (bauto4 == 0) {
bauto4 =1; changer();
document.vision4.automat.value=" Lect/Stop ";
}
else {
bauto4 =0; initial4();
document.vision4.automat.value=" Lect/Auto ";
}
}
//-->
