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