// JavaScript Document


<!--
//PLF-http://www.jejavascript.net/
var bauto = 0;
var dossier="../images/bop/";
var numero_config = 1;

function objet_config() {
	
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}
var nom_config = new objet ( "config0.jpg", "config0b.jpg", "config1.jpg", "config2.jpg", "config3.jpg", "config4.jpg", "config5.jpg", "config6.jpg", "config7.jpg");

function suivante_config() {
numero_config += 1;
if (numero_config == nom_config.length + 1) numero_config = 1;
document.image_config.src = dossier+nom_config[numero_config];
var mydiv_config = document.getElementById("page_config");
mydiv_config.innerHTML = numero_config + '/' + nom_config.length;
}
function precedente_config() {
numero_config -= 1;
if (numero_config == 0) numero_config = nom_config.length; 
document.image_config.src = dossier+nom_config[numero_config];
var mydiv_config = document.getElementById("page_config");
mydiv_config.innerHTML = numero_config + '/' + nom_config.length;

}
function changer_config() {
numero_config += 1;
if (numero_config == nom_config.length + 1) numero_config = 1;
document.image_config.src = dossier+nom_config[numero_config];
roll=setTimeout("changer_config()", 1500);
var mydiv_config = document.getElementById("page_config");
mydiv_config.innerHTML = numero_config + '/' + nom_config.length;
}
function initial_config() {
window.clearTimeout(roll);
document.image_config.src = dossier+nom_config[numero_config];
}
function auto_config() {
if (bauto == 0) {
bauto =1; changer_config();
document.automat_config.src = "../images/bop/stop.jpg";
document.automat_config.title = "Stop";
} 
else {
bauto =0; initial_config();
document.automat_config.src = "../images/bop/play.jpg";
document.automat_config.title = "Auto";
}
}
//-->
