var Timer;
var Pas = 5;
	
function moveLayer(Sens, limite)
{
	if(document.getElementById)
	{
		Objet = document.getElementById("Contenu");
	}
	else
	{
		Objet = document.all["Contenu"];
	}
	if(parseInt(Objet.style.left) + (Pas*Sens) > 0)
	{
		Objet.style.left = "0px";
	}
	else
	{
		if (parseInt(Objet.style.left) + (Pas*Sens) < limite)
		{
			Objet.style.left = limite + "px";			
		}
		else
		{
			Objet.style.left = (parseInt(Objet.style.left) + (Pas*Sens)) + "px";
		}
	}
	Timer = setTimeout("moveLayer(" + Sens + "," + limite + ");", 50);
}
/*
function redimImage(strUrl, max_larg, max_haut)
{

  var maxWidth = max_larg;
  var maxHeight = max_haut;
  // Declarations des variables "Nouvelle Taille"
  var nouv_larg = 0;
  var nouv_haut = 0;
  // Declaration d'un objet Image
  var img_src = new Image();
  // Affectation du chemin de l'image a l'objet
  img_src.src = strUrl;
  // On recupere les tailles reelles
  var h = nouv_haut = img_src.height;
  var w = nouv_larg = img_src.width;
  
  if ((h >= maxHeight) || (w >= maxWidth)) 
  {
	if ((h >= maxHeight) && (w >= maxWidth)) 
	{
		if (h > w) 
		{
			nouv_haut = maxHeight;
			nouv_larg = parseInt((w * nouv_haut) / h, 10);
		} 
		else 
		{
			nouv_larg = maxWidth;
			nouv_haut = parseInt((h * nouv_larg) / w, 10);
		}
    } 
	else if ((h > maxHeight) && (w < maxWidth)) 
	{
		nouv_haut = maxHeight;
		nouv_larg = parseInt((w * nouv_haut) / h, 10);
    } 
	else if ((h < maxHeight) && (w > maxWidth)) 
	{      
		nouv_larg = maxWidth;
		nouv_haut = parseInt((h * nouv_larg) / w, 10);
    }
  }
  // On ecrit l'image dans le document
  document.writeln("<img src=\"" + strUrl + "\" width=\"" + nouv_larg + "\" height=\"" + nouv_haut + "\" border=\"0\">");
  document.close();
}
*/