// JavaScript Document


<!--
//PLF-http://www.jejavascript.net/
var bauto = 0;
var dossier="../images/bop/";
var numero = 1;

function objet() {
this.length = objet.arguments.length
for (var j = 0; j < this.length; j++) this[j+1] = objet.arguments[j]
}
var nom = new objet ( "inst1.jpg", "inst2.jpg", "inst3.jpg", "inst4.jpg", "inst5.jpg", "inst6.jpg", "inst7.jpg", "inst8.jpg", "inst9.jpg");

function suivante() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
var mydiv = document.getElementById("page");
mydiv.innerHTML = numero + '/' + nom.length;
}
function precedente() {
numero -= 1;
if (numero == 0) numero = nom.length; 
document.image.src = dossier+nom[numero];
var mydiv = document.getElementById("page");
mydiv.innerHTML = numero + '/' + nom.length;

}
function changer() {
numero += 1;
if (numero == nom.length + 1) numero = 1;
document.image.src = dossier+nom[numero];
roll=setTimeout("changer()", 1500);
var mydiv = document.getElementById("page");
mydiv.innerHTML = numero + '/' + nom.length;
}
function initial() {
window.clearTimeout(roll);
document.image.src = dossier+nom[numero];
}
function auto() {
if (bauto == 0) {
bauto =1; changer();
document.automat.src = "../images/bop/stop.jpg";
document.automat.title = "Stop";
} 
else {
bauto =0; initial();
document.automat.src = "../images/bop/play.jpg";
document.automat.title = "Auto";
}
}
//-->
