/**
 * @menu - son of suckerfish
 */


//------------------------------------------------------------------
/* Responsible to handle all functions 
 * which need to be called in the initialize/start phase.
 *
 */
function sfmenu_init(){	
	var W3CDOM = (document.createElement && document.getElementsByTagName); 
	if (W3CDOM) { 
	
		if (window.attachEvent) window.attachEvent("onload", sfHover); 
		
	}	
}	

sfHover = function() {

var sfEls = document.getElementById("navigation").getElementsByTagName("UL")[0].getElementsByTagName("LI");

for (var i=0; i<sfEls.length; i++) 	{ 

			sfEls[i].onmouseover=function() {
			
				this.className+=" sfhover";         
			
			}
		
			sfEls[i].onmouseout=function() {             
			
				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");         
			
			}     
		
		} 
		
} 

var originalHandler = window.onload;

window.onload = function() {
	if(originalHandler) {
		originalHandler();
	} 
	sfmenu_init();
}
