<!--//--><![CDATA[//><!--
/* 
//Old SFHover Code
sfHover = function() {
	
	var sfEls = document.getElementById("top-nav").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"), "");
		}
	}
}
*/
//if (window.attachEvent) window.attachEvent("onload", sfHover);


//mootools compatible code
window.addEvent("domready",function(){
				
	$("top-nav").getElements("LI").each(function(item, index){
		item.addEvents({
			'mouseover':function()
			{
				item.addClass('sfhover');
				if(item.getElement('UL'))
					item.getElement('UL').setStyle('display','');
				
			},
			'mouseout':function()
			{
				//alert(item.get('class'));
				item.removeClass('sfhover');
				if(item.getElement('UL'))
					item.getElement('UL').setStyle('display', 'none');
				
			}
		});
	});
})
//--><!]]>