(function(a){"function"===typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)})(function(a){return a.effects.effect.drop=function(d,m){var b=a(this),h="position top bottom left right opacity height width".split(" "),k=a.effects.setMode(b,d.mode||"hide"),f="show"===k,c=d.direction||"left",g="up"===c||"down"===c?"top":"left",c="up"===c||"left"===c?"pos":"neg",l={opacity:f?1:0},e;a.effects.save(b,h);b.show();a.effects.createWrapper(b);e=d.distance||b["top"===g?"outerHeight":"outerWidth"](!0)/
2;f&&b.css("opacity",0).css(g,"pos"===c?-e:e);l[g]=(f?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+e;b.animate(l,{queue:!1,duration:d.duration,easing:d.easing,complete:function(){"hide"===k&&b.hide();a.effects.restore(b,h);a.effects.removeWrapper(b);m()}})}});