/*
	==================================================================
		Menu Manger Scripts.
	==================================================================  */
	
jQuery(document).ready( function () {
	activate_da_menu();
});


function activate_da_menu()
	{
		jQuery('div#menu_holder ul.mc_menu>.mc_menu_item').mouseenter(function () { show_da_sub_menu(this); });
	}
	
function show_da_sub_menu(o)
	{
		jQuery(o).children('ul').slideDown('fast');
		autoClose_da_sub_menu(o); // hide the menu in 10 seconds anyway. done here instead of on complete, because I should clear the timout even if the show method does not complete.
		jQuery.each(jQuery(o).siblings(), function () { jQuery(this).children('ul').slideUp('fast'); });
	}
	
var da_submen_timeout_register = '';

function autoClose_da_sub_menu(o)
	{
		clearTimeout(da_submen_timeout_register);
		da_submen_timeout_register = setTimeout( function () { jQuery(o).children('ul').slideUp('fast'); }, 10000);
	}