// JavaScript Document


<!--
//PLF-http://www.jejavascript.net/
var bauto = 0;
var dossier="../images/bop/";
var numero_down = 1;

function objet_down() {
	
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}
var nom_down = new objet ( "down0.jpg", "down1.jpg", "down2.jpg", "down3.jpg", "down4.jpg", "down5.jpg", "down6.jpg", "down8.jpg");

function suivante_down() {
numero_down += 1;
if (numero_down == nom_down.length + 1) numero_down = 1;
document.image_down.src = dossier+nom_down[numero_down];
var mydiv_down = document.getElementById("page_down");
mydiv_down.innerHTML = numero_down + '/' + nom_down.length;
}
function precedente_down() {
numero_down -= 1;
if (numero_down == 0) numero_down = nom_down.length; 
document.image_down.src = dossier+nom_down[numero_down];
var mydiv_down = document.getElementById("page_down");
mydiv_down.innerHTML = numero_down + '/' + nom_down.length;

}
function changer_down() {
numero_down += 1;
if (numero_down == nom_down.length + 1) numero_down = 1;
document.image_down.src = dossier+nom_down[numero_down];
roll=setTimeout("changer_down()", 1500);
var mydiv_down = document.getElementById("page_down");
mydiv_down.innerHTML = numero_down + '/' + nom_down.length;
}
function initial_down() {
window.clearTimeout(roll);
document.image_down.src = dossier+nom_down[numero_down];
}
function auto_down() {
if (bauto == 0) {
bauto =1; changer_down();
document.automat_down.src = "../images/bop/stop.jpg";
document.automat_down.title = "Stop";
} 
else {
bauto =0; initial_down();
document.automat_down.src = "../images/bop/play.jpg";
document.automat_down.title = "Auto";
}
}
//-->
