(function(d,c){d.effects.slide=function(a){return this.queue(function(){var p=d(this),q=["position","top","bottom","left","right"];var l=d.effects.setMode(p,a.options.mode||"show");var m=a.options.direction||"left";d.effects.save(p,q);p.show();d.effects.createWrapper(p).css({overflow:"hidden"});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}):p.outerWidth({margin:true}));if(l=="show"){p.css(o,r=="pos"?(isNaN(b)?"-"+b:-b):b)}var n={};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);