var obj = null;

function checkHover() {
	if (obj) {
		obj.find('div').hide();		
	}
}

function menuAction() { 
	$("#menu-areas > li").hover(
		function() {
			if (obj) {
				obj.find('div').hide();
				obj = null;
			}
			
			$(this).find('div').show();
			$(this).find("a").removeClass("inativo");
			$(this).find("a").addClass("ativo");
		},
		function() {
			$(this).find("a").removeClass("ativo");
			$(this).find("a").addClass("inativo");
			obj = $(this);
			setTimeout("checkHover()", 50);
		}
	);

}

