	var MenuFerme = true;
	var myImg = new Image()

	function Connecter(varFtp, login)
	{
	   password = window.prompt("Mot de Passe :", "")
	   window.open("ftp://" + login + ":" + password + "@" + varFtp)
	}  
	
	function ouvrir(url, width, height, scroll)
	{
			  if(new String(width) == 'undefined')
			  {width = new String("572")}
			  if(new String(height) == 'undefined')
			  {height = new String("317")}
			  if(new String(scroll) == 'undefined')
			  {scroll = new String("no")}
			  
			  window.open(url,"contact", "toolbar=no,scrollbars="+scroll+", width="+width+", height="+height)
	}
	
	
	function ouvrirModal(url, width, height)
	{
			  if(new String(width) == 'undefined')
			  {width = new String("572")}
			  if(new String(height) == 'undefined')
			  {height = new String("317")}
			  if(new String(scroll) == 'undefined')
			  {scroll = new String("no")}
			  if(document.all)
			  {
				window.showModalDialog(url, "", "status:no;unadorned:no;dialogWidth:"+width+ "px; dialogHeight:"+height+"px")
			  }
			  else
			  {
				window.open(url,"contact", "toolbar=no,scrollbars=yes, width="+width+", height="+height)
			  }
	
	}
	function openCloseMenu(val)
	{
	   if(MenuFerme)
	   {
	   	if(parseInt(document.all[val].style.top) < 0)
	   	{
	   		document.all[val].style.top = parseInt(document.all[val].style.top) + 5
	   		setTimeout("openCloseMenu('"+val+"')", 1)
	   	}
	   	else
	   	{
	   		MenuFerme = false
	   	}
	   	
	   }
	   else
	   {
	   	if(parseInt(document.all[val].style.top) > -130)
	   	{
	   		document.all[val].style.top = parseInt(document.all[val].style.top) - 5
	   		setTimeout("openCloseMenu('"+val+"')", 5)
	   	}
	   	else
	   	{
	   		MenuFerme = true
	   	}

	   }
	   //window.event.cancelBubble = true
	}
	
	function fctRollImage(id, val)
	{
		if(document.all)
		{
			document.all[id].src = val
		}
		else
		{
			eval("document."+ id + ".src = " + val)
		}
	}