var menuObj = null;
var menuInt = 0;

function checkHover() {
	if (menuObj) {
		//menuObj.find("dd.expandFrame").slideUp(40,callback());
		menuObj.find("dd.expandFrame").fadeOut(40,callback());
	}
}

$(document).ready(function() {
    $("dd.expandFrame").hide();
	$("dl.expandMenu").hover(function() {
		if($(this).hasClass("open")){
			clearTimeout(menuInt);
		}else{
			checkHover();
			$(this).addClass("open");
		}
		//$(this).find("dd.expandFrame").slideDown("fast");
		$(this).find("dd.expandFrame").fadeIn("fast");
		menuObj = null;
	}, function() {
		menuObj = $(this);
		menuInt = setTimeout(
			"checkHover()",
			100
		);
	});
});

function callback() {
	menuObj.removeClass("open");
}

function hideAll(){
	$("dd.expandFrame").hide();
}
