<!--//--><![CDATA[//><!--
	jsHover = function() {
		var hEls = document.getElementById("menu").getElementsByTagName("li");
		for (var i=0, len=hEls.length; i<len; i++) {
			hEls[i].onmouseover=function() { this.className+=" over"; }
			hEls[i].onmouseout=function() { this.className=this.className.replace(" over", ""); }
		}
	}
	if (window.attachEvent && navigator.userAgent.indexOf("Opera")==-1) window.attachEvent("onload", jsHover);
//--><!]]>

var obj = null;

function checkHover() {
	if (obj) {
		obj.find('ul').fadeOut('normal');	
	} //if
} //checkHover

$(document).ready(function() {
	$('#menu > li').hover(function() {
		if (obj) {
			obj.find('ul').hide();
			obj = null;
		} //if
		
		$(this).find('ul').show();
	}, function() {
		obj = $(this);
		setTimeout(
			"checkHover()",
			1000);
	});
});

