function setHover(){  
LI = document.getElementById('menu').getElementsByTagName('li');
nLI = LI.length;  
for(i=0; i < nLI; i++){    
	LI[i].onclick = function(){      hover(this,'over');    }    
	//LI[i].onmouseout = function(){      hover2(this,'out');    } 
 }
}

var cont=0;
var temp;
function hover(obj,typea){  
	if(document.all){ 
		//alert(typea);  
		UL = obj.getElementsByTagName('ul');    
		if(UL.length > 0){      
			sousMenu = UL[0].style;   
			
				if (cont==0){
					temp=sousMenu;
					cont=1;
				}
				sousMenu.display = 'inline';     
		}

	}
}

function hover2(obj,typea){  
	cont=0;
	if(document.all){ 
		//alert(typea);  
		UL = obj.getElementsByTagName('ul'); 
		
		
		   
		if(UL.length > 0){      
			sousMenu = UL[0].style;   
		
				
			sousMenu.display = 'none';  
  
		}

	}
}

 function popupImageWindow(url) { 
    var win=window.open('','popupImageWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=50,left=50') 
  	win.document.write('<html><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor=#E0E0E0><a href="#" onclick="window.close()"><img src='+url+' border=0 alt="Fermer popup"></a></body></html>');
	win.document.close();
  } 


/*window.onload=function (){
  setHover();
}*/
