(function($) {

	jQuery.extend( jQuery.easing,
	{
		easeMenu: function(x, t, b, c, d){
			return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
		}
	});

	$.fn.dropMenu = function(settings) {
		var config = {'speed': 500, 'animation': true};
 
		if (settings) $.extend(config, settings);
		
		this.each(function() {						
			$(this).find('li').hover(function() {
				if (config.animation) {
					$(this).find('li a').stop().css({paddingTop:12, paddingBottom:12});
					$(this).find('em').stop().css({top:-90});
				}
				$(this).addClass('hover');
				if (config.animation) {
					$(this).find('li a').animate({paddingTop:6, paddingBottom:6},{duration:config.speed, easing:'easeMenu'});
					$(this).find('em').animate({top:-80},{duration:config.speed, easing:'easeMenu'});
				}
			}, function() {
				$(this).removeClass('hover');
			});
		});
		return this;
	};
 })(jQuery);

