/*
################################################################################
# LAAP - Front Office - Copyright (C) 2006-2007 Atomprod - All rights reserved #
################################################################################
*/
/*
function hover(obj) ///////////////////////////////////////////////////// {{{
/////////////////////////////////////////////////////////////////////////
{  
   if(document.all)
   {    
     li = obj.getElementsByTagName('li');
     UL = obj.getElementsByTagName('ul');
     if(li.length > 0)
     {      
       sousMenu = UL[0].style;
       if   ( sousMenu.display == 'none' || sousMenu.display == '') { sousMenu.display = 'block';li[0].style.position = 'relative';}
       else { sousMenu.display  = 'none'; }
     }
   }
}

///////////////////////////////////////////////////////////////////////// }}}
function setHover(menu) ///////////////////////////////////////////////// {{{
/////////////////////////////////////////////////////////////////////////
{  
  LI = document.getElementById(menu).getElementsByTagName('li'); 
  nLI = LI.length;  
  for (i=0; i < nLI; i++) { LI[i].onmouseover = function() { hover(this);}; LI[i].onmouseout = function() { hover(this);} }
}
///////////////////////////////////////////////////////////////////////// }}}
*/

setHover = function(menu) {
	var sfEls = document.getElementById(menu).getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			 this.className ="sfout";
			this.className+="sfhover";
		}
		sfEls[i].onmouseout=function() {
			 this.className ="sfout";
			this.className=this.className.replace(new RegExp("sfhover\\b"), ""); 
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

