var obj = null;

function checkHover()
{
	if (obj)
	{
		obj.find('div').fadeOut();
		obj.find('a').removeClass('hover');
 	} //if
} //checkHover

$(document).ready(function() {
	$('#mainMenu > li').hover(function() {
		if (obj)
		{
			obj.find('div').fadeOut('fast');
			obj.find('a').removeClass('hover');
			obj = null;
		} //if

		$(this).find('div').fadeIn('fast');
		$(this).find('a').addClass('hover');

	}, function() {
		obj = $(this);
		setTimeout("checkHover()",400);
	});
});

