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