//PLF-http://www.jejavascript.net/
var bauto = 0;
var dossier="images/presentation-diap/";
var numero = 1;
var roll;
function objet() {
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}
var nom = new objet ("IMG_7930.jpg", "IMG_7934.jpg", "IMG_7956.jpg", "IMG_7957.jpg", "IMG_7975.jpg", "IMG_7976-B.jpg" , "IMG_7977.jpg" , "IMG_7980.jpg", "IMG_7992.jpg", "IMG_7999.jpg");
function suivante() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
}
function precedente() {
numero -= 1;
if (numero == 0) numero = nom.length; 
document.image.src = dossier+nom[numero];
}
function changer() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
roll=setTimeout("changer()", 3000);
}
function initial() {
window.clearTimeout(roll);
document.image.src = dossier+nom[numero];
}
function auto() {
if (bauto == 0) {
bauto =1; changer();
document.vision.automat.value=" Lect/Stop "; 
} 
else {
bauto =0; initial();
document.vision.automat.value=" Lect/Auto ";
}
}
//-->