(function(a){a.effects.clip=function(b){return this.queue(function(){var c=a(this),j=["position","top","left","height","width"],e=a.effects.setMode(c,b.options.mode||"hide"),h=b.options.direction||"vertical";a.effects.save(c,j);c.show();var k=a.effects.createWrapper(c).css({overflow:"hidden"}),d=c[0].tagName=="IMG"?k:c,f={size:h=="vertical"?"height":"width",position:h=="vertical"?"top":"left"},i=h=="vertical"?d.height():d.width();if(e=="show"){d.css(f.size,0);d.css(f.position,i/2)}var g={};g[f.size]=e=="show"?i:0;g[f.position]=e=="show"?0:i/2;d.animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){e=="hide"&&c.hide();a.effects.restore(c,j);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()}})})}})(jQuery)