$(function() {
	
	var menuTimers = new Array();
	
	$('#menu-products > li').each(function(i) {
		$(this).hover( 
			function() { 
				$('#menu-products > li').children('ul').hide();
				$(this).children('ul').show();
				clearTimeout(menuTimers[i]);
			}, function() {
				var obj = $(this).children('ul');
			
				menuTimers[i] = setTimeout(function() { $(obj).hide(); }, 500);
			} 
		);
	})
});

