(function(a){a.effects.drop=function(b){return this.queue(function(){var c=a(this),j=["position","top","left","opacity"],e=a.effects.setMode(c,b.options.mode||"hide"),d=b.options.direction||"left";a.effects.save(c,j);c.show();a.effects.createWrapper(c);var h=d=="up"||d=="down"?"top":"left",g=d=="up"||d=="left"?"pos":"neg",f=b.options.distance||(h=="top"?c.outerHeight({margin:true})/2:c.outerWidth({margin:true})/2);e=="show"&&c.css("opacity",0).css(h,g=="pos"?-f:f);var i={opacity:e=="show"?1:0};i[h]=(e=="show"?g=="pos"?"+=":"-=":g=="pos"?"-=":"+=")+f;c.animate(i,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery)