/* Scripted by Umisum Technologies */

var bauto = 0;
var nom = new objet ("RgtMod_1.gif", "RgtMod_2.gif", "RgtMod_3.gif", "RgtMod_4.gif", "RgtMod_5.gif", "RgtMod_6.gif", "RgtMod_7.gif", "RgtMod_8.gif", "RgtMod_9.gif", "RgtMod_10.gif", "RgtMod_11.gif", "RgtMod_12.gif", "RgtMod_13.gif", "RgtMod_14.gif", "RgtMod_15.gif", "RgtMod_16.gif", "RgtMod_17.gif", "RgtMod_18.gif", "RgtMod_19.gif", "RgtMod_20.gif", "RgtMod_21.gif", "RgtMod_22.gif", "RgtMod_23.gif", "RgtMod_24.gif", "RgtMod_25.gif", "RgtMod_26.gif", "RgtMod_27.gif", "RgtMod_28.gif", "RgtMod_29.gif", "RgtMod_30.gif", "RgtMod_31.gif", "RgtMod_32.gif", "RgtMod_33.gif", "RgtMod_34.gif", "RgtMod_35.gif", "RgtMod_36.gif");
var dossier="../../images/en/";
var numero = 1;

function objet() {
this.length = objet.arguments.length
for (var i = 0; i < this.length; i++) this[i+1] = objet.arguments[i]
}

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()", 1500);
}

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 ";
}
}

function precharge() { 
var doc=document; 
if(doc.images){ if(!doc.precharg) doc.precharg=new Array();
var i,j=doc.precharg.length,x=precharge.arguments; for(i=0; i<x.length; i++)
if (x[i].indexOf("#")!=0){ doc.precharg[j]=new Image; doc.precharg[j++].src=x[i];}}
}

//-->
