// Deepwater Drop Down Menu

var sfHover = function(){
    var sfEls = document.getElementById("navbar").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);


$(document).ready(function(){
	$("#navbar li").hover(
		function(){ $("ul #menueval", this).show(); },
		function() { }
	);
	if (document.all) {
		$("#navbar li").hoverClass ("sfHover");
	}
});
 
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover(
			function() { $(this).addClass(c); },
			function() { $(this).removeClass(c); }
		);
	});
}; 