/*var menu_up = function (el)
{
	var ulheight = jQuery(el).children("ul.nav2").height()+jQuery(el).children("a:first").height()+1;
	var h = jQuery(el).children("ul.nav2").height();
	jQuery(el)
		.stop().animate({
			top: "-"+h+"px",
			height: (ulheight)+"px"
		}, 100, 'linear',
		function()
		{
			jQuery(el).css("overflow", "visible");
		});
	
};

var menu_down = function (el)
{
	jQuery(el).css("overflow", "hidden");
	jQuery(el)
	.stop().animate({
		top: "0px",
		height: (jQuery(el).children("a:first").height()+0)+"px"
	}, 2000);
};

jQuery(document).ready(function()
{
	jQuery(".block-menu").each(function()
	{
		if (!jQuery("a.titre-nav", jQuery(this)).hasClass("current"))
		{
			jQuery(this).hover(
				function(){menu_up(this);}
				, function(){menu_down(this);});
		}
		else
		{
			menu_up(this);
		}
	});
});*/


$(document).ready(function()
{
	$("#nav li.block-menu").hover(function()
	{
		var h = $(this).children("ul.nav2").height();
		$(this).children("ul.nav2").css("top","-138px");
		$(this).children("ul:first").fadeIn(200);
	},
	function()
	{
		$(this).children("ul:first").stop(false, true).fadeOut(100);
	});
});
