(function(d,c){d.effects.blind=function(a){return this.queue(function(){var q=d(this),r=["position","top","bottom","left","right"];var m=d.effects.setMode(q,a.options.mode||"hide");var n=a.options.direction||"vertical";d.effects.save(q,r);q.show();var b=d.effects.createWrapper(q).css({overflow:"hidden"});var p=(n=="vertical")?"height":"width";var l=(n=="vertical")?b.height():b.width();if(m=="show"){b.css(p,0)}var o={};o[p]=m=="show"?l:0;b.animate(o,a.duration,a.options.easing,function(){if(m=="hide"){q.hide()}d.effects.restore(q,r);d.effects.removeWrapper(q);if(a.callback){a.callback.apply(q[0],arguments)}q.dequeue()})})}})(jQuery);