jQuery.fn.popMenu=function(c){var a=$(this[0]),b={speed:"400",direction:"down"};$.extend(b,c);a.find("> li").css("position","relative");a.find("> li ul").wrap('<div style="position: absolute; overflow-y: hidden;"></div>').show();b.direction=="down"?a.find("> li div").css("height",0).css({top:a.find("> li").innerHeight(),left:0,right:0}).hide():a.find("> li div").css("height",0).css({bottom:a.find("> li").innerHeight(),left:0,right:0}).hide();a.find("> li").hover(function(){$(this).children("div").stop(!0).show().animate({height:$(this).children("div").children().height()},
b.speed)},function(){$(this).children("div").stop(!0).animate({height:"0"},b.speed).queue(function(a){$(this).hide();a()})})};
