corrigerLi = function()
{
  if(document.all&&document.getElementById)
     {
          li = document.getElementById('menu').getElementsByTagName('li');

          for(var i=0; i < li.length; i++)
          {
		       if(li[i].className != "sousMenu")
			   {
                 li[i].onmouseover = function(){ this.className+=" over"; };
                 li[i].onmouseout = function(){ this.className=this.className.replace(new RegExp(" over\\b"), ""); this.className=this.className.replace(" over", "");};
			   }else{
                 li[i].onmouseover = function(){ this.className+=" overSousMenu"; };
                 li[i].onmouseout = function(){ this.className=this.className.replace(" overSousMenu", "");};			     
			   }			 
          }
     }  


	 
	 /* Permet de cacher les drops list dans le moteur de recherche */	 
	 if(window.location.href.indexOf("moteurDeRecherche.cfm",0) != -1 || window.location.href.indexOf("moteurDeRecherche_ang.cfm",0) != -1)
	 {
         document.getElementById('realisations').onmouseover = function(){
    		document.getElementById('realisations').className+=" over";
    		document.getElementById('selectCategorie').className=" cacherSelect";
         }
    
         document.getElementById('realisations').onmouseout = function(){
    		document.getElementById('realisations').className="";
            document.getElementById('selectCategorie').className=" voirSelect";
    		
         }	 
	 }  
}   
window.onload=corrigerLi;
