var obj = null;

function checkHover() {
	if (obj) {
		obj.find('ul').slideUp(100);
	} //if
} //checkHover

$(document).ready(function() {
	$('.submenu').hover(function() {
		if (obj) {
			obj.find('ul').slideUp(100);
			obj = null;
		} //if
		
		$(this).find('ul').stop(true,true).slideDown('medium');
	}, function() {
		obj = $(this);
		setTimeout(
			"checkHover()",
			400);
	});
});

