timer=0;
x=-1020;

function init_timer(){
	timer=1;
}

function avant(max,calq1,calq2){
	maximum=max;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.left=x;
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.left=x;
}
if (document.layers){
	document.layers[calque1].layers[calque2].left=x;
}
if(timer==1 && x<maximum){
setTimeout("avant(maximum,calque1,calque2)",0);
x+=170;}
}

function arriere(max,calq1,calq2){
	maximum=max;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.left=x;
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.left=x;
}
if (document.layers){
	document.layers[calque1].layers[calque2].left=x;
}
if(timer==1 && x>maximum){
setTimeout("arriere(maximum,calque1,calque2)",0);
x-=170;}
}

function stop_timer(){
	timer=0;
}