$(document).ready(function(){
	
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/
	
	//Remove outline from links
	$("a.monMenu").click(function(){
		$(this).blur();
	});
	//When mouse rolls over
	$("li.monMenu").mouseover(function(){
		
		$nbrA=$(this).find('a').length;
		
		if ($nbrA>2)
		{$maHauteur=($nbrA * 31)-($nbrA * 10);}
		else
		{$maHauteur=62;}
		
		
//alert ($maHauteur)
		$(this).stop().animate({height:$maHauteur},{queue:false, duration:$nbrA*100, easing: 'easeOutBounce'})
		$(this).css({'background-color': 'rgba(87,181,231,0.95)'});
	});
	
	//When mouse is removed
	$("li.monMenu").mouseout(function(){
		$(this).stop().animate({height:'31px'},{queue:false, duration:600, easing: 'easeOutBounce'})
		$(this).css({'background-color': 'rgba(255,255,255,0.95)'});
		
	});
	
});
