jQuery(document).ready(function () {
jQuery('#navbar ul li').each(function (index) {
		var height = jQuery(this).find('ul:first').outerHeight();
		jQuery(this).find('ul:first').css('height',0);
		jQuery(this).find('ul:first').css('visibility','visible');
		
		jQuery(this).hover(function() {
			jQuery(this).find('ul:first').animate({ height: height+20 },{queue:false,duration:200});
			jQuery(this).addClass("hover");
		}, function() {
			jQuery(this).find('ul:first').animate({ height: 0 },{queue:false,duration:200});
		    jQuery(this).removeClass("hover");
		}
		);
	});	  
});
