function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

timer=0;
y=0;

						
function init_timer(){
	timer=1;
}

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

function arriere(max,calq1,calq2){
	//alert(max);
	maximum=max;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.top=y;
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.top=y;
}
if (document.layers){
	document.layers[calque1].layers[calque2].top=y;
}
if(timer==1 && y>maximum){
setTimeout("arriere(maximum,calque1,calque2)",40);
y-=7;}
}

function avant2(maxi,calq1,calq2){
	maximum=maxi;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.top=y+"px";
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.top=y+"px";
}
if (document.layers){
	document.layers[calque1].layers[calque2].top=y+"px";
}
if(timer==1 && y<maximum){
setTimeout("avant2(maximum,calque1,calque2)",5);
y+=8;}					
}

function arriere2(maxi,calq1,calq2){
	//document.getElementById("contentgamme").style.top=document.getElementById("contentgamme").style.top + 7 + "px";
	//alert(document.getElementById("contentgamme").style.top);
	maximum=maxi;
	calque1=calq1;
	calque2=calq2;
if (document.getElementById){
	document.getElementById(calque2).style.top=y+"px";
}
if ((document.all)&&(!document.getElementById)){
	document.all[calque2].style.top=y+"px";
}
if (document.layers){
	document.layers[calque1].layers[calque2].top=y+"px";
}

if(timer==1 && y>maximum){
setTimeout("arriere2(maximum,calque1,calque2)",5);
y-=8;}
}


function stop_timer(){
	timer=0;
}

function imprime_zone() 

{
// Définie la zone à imprimer
print();
} 