var Timer=null;
var Pas = 3;
function moveLayer(Sens) {
	var Objet=document.getElementById("contenu");
    if(parseInt(Objet.style.top) + (Pas*Sens)>0)  {
		clearTimeout(Timer);
	}
	else if(parseInt(Objet.style.top) + (Pas*Sens)<-(Objet.offsetHeight-document.getElementById("support").offsetHeight)) {
		clearTimeout(Timer);
	}
    else {
        Objet.style.top = (parseInt(Objet.style.top) + (Pas*Sens)) + "px";
	}
	Timer = setTimeout("moveLayer(" + Sens + ");", 30);
}
/*---------------------------------------------------------------------------------------------------*/
var dxTimer=null;
var Pas = 3;
function dxmoveLayer(Sens) {
	var Objet=document.getElementById("dxcontenu");
    if(parseInt(Objet.style.top) + (Pas*Sens)>0)  {
		clearTimeout(dxTimer);
	}
	else if(parseInt(Objet.style.top) + (Pas*Sens)<-(Objet.offsetHeight-document.getElementById("dxsupport").offsetHeight)) {
		clearTimeout(dxTimer);
	}
    else {
        Objet.style.top = (parseInt(Objet.style.top) + (Pas*Sens)) + "px";
	}
	dxTimer = setTimeout("dxmoveLayer(" + Sens + ");", 30);
}
