jQuery(document).ready(function(){
	jQuery("ul.menuPrincipal li ul").hide();
	jQuery("ul.menuPrincipal li ul").height(0);
	//Fix Errors - http://www.learningjquery.com/2009/01/quick-tip-prevent-animation-queue-buildup/

	//Remove outline from links
	jQuery("li.animatedMenu a").click(function(){
		jQuery(this).blur();
	});

	//When mouse rolls over
	jQuery("li.animatedMenu").mouseover(function(){
		jQuery(this).children('ul').stop().show().animate({height:'110px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	jQuery("li.subMenuPrincipal2").mouseover(function(){
		jQuery(this).children('ul').stop().show().animate({height:'182px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	jQuery("li.subMenuPrivado1").mouseover(function(){
		jQuery(this).children('ul').stop().show().animate({height:'74px'},{queue:false, duration:600, easing: 'easeOutBounce'})
	});

	//When mouse is removed
	jQuery("li.animatedMenu").mouseout(function(){
		jQuery(this).children('ul').stop().animate({height:'0px'}, 600,'easeOutBounce', function() {
			jQuery(this).hide();
		});
	});
});
