var obj = null;function checkHover() {	if (obj) {		obj.find('ul').hide();	} //if} //checkHoverfunction initMenu() {	$('#prime-menu-top > li').hover(function() {		$(this).find("ul:first").css("left", $(this).position().left + "px");		if (obj) {			obj.find('ul').hide();			obj = null;		} //if		var uls = $(this).find('ul');		//uls.find('li > a').css("display", "block")		//uls.find('li > a').css("background-color", "#ff0000");		//$(this).find('ul').show();		uls.show();	}, function() {		obj = $(this);		setTimeout("checkHover()",  400);	});}   $(function() {	initMenu();})