var MENU = MENU ? MENU : { timeout:500,  to:{}};

$(function(){

	$("li[dd]").each(function(){
		
		var ddid = $(this).attr("dd");

		$(this).mouseover(function(){
		
			if(MENU.to[ddid]!=0) clearTimeout(MENU.to[ddid]);
			
			$(this).children("ul:first").show();
		
		}).mouseout(function(){
		
			MENU.to[ddid] = setTimeout(function(){ $("#"+ddid).hide(); }, MENU.timeout);
		
		});
	
	});

});
