jQuery.fn.megaMenu = function(menu_effect)
{
	$(".dropcontent").css('left', 'auto').hide();
	$(".fullwidth").css('left', '-1px').hide();

	switch (menu_effect)
	{
		case "hover_fade":
			$('#' + $(this).attr("id") + ' > li').hover(function() {
				$(this).find('> a').addClass('hover');
				$(this).children("ul").stop().delay(200).fadeTo(200, 1);
			}, function () {
				$(this).find('> a').removeClass('hover');
				$(this).children("ul").stop().fadeTo(200, 0, function() {
					$(this).hide();
				});
			});
		break;
	}

}
