(function(A){A.effects.clip=function(B){return this.queue(function(){var D=A(this),C=["position","top","left","width","height"];var H=A.effects.setMode(D,B.options.mode||"hide");var G=B.options.direction||"vertical";A.effects.save(D,C);D.show();A.effects.createWrapper(D).css({overflow:"hidden"});var E={size:(G=="vertical")?"height":"width",position:(G=="vertical")?"top":"left"};var I=(G=="vertical")?D.height():D.width();if(H=="show"){D.css(E.size,0);D.css(E.position,I/2)}var F={};F[E.size]=H=="show"?I:0;F[E.position]=H=="show"?0:I/2;D.animate(F,{queue:false,duration:B.duration,easing:B.options.easing,complete:function(){if(H=="hide"){D.hide()}A.effects.restore(D,C);A.effects.removeWrapper(D);if(B.callback){B.callback.apply(this,arguments)}D.dequeue()}})})}})(jQuery);