(function(d,c){d.effects.drop=function(a){return this.queue(function(){var p=d(this),q=["position","top","bottom","left","right","opacity"];var l=d.effects.setMode(p,a.options.mode||"hide");var m=a.options.direction||"left";d.effects.save(p,q);p.show();d.effects.createWrapper(p);var o=(m=="up"||m=="down")?"top":"left";var r=(m=="up"||m=="left")?"pos":"neg";var b=a.options.distance||(o=="top"?p.outerHeight({margin:true})/2:p.outerWidth({margin:true})/2);if(l=="show"){p.css("opacity",0).css(o,r=="pos"?-b:b)}var n={opacity:l=="show"?1:0};n[o]=(l=="show"?(r=="pos"?"+=":"-="):(r=="pos"?"-=":"+="))+b;p.animate(n,{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){if(l=="hide"){p.hide()}d.effects.restore(p,q);d.effects.removeWrapper(p);if(a.callback){a.callback.apply(this,arguments)}p.dequeue()}})})}})(jQuery);