(function(a){"function"===typeof define&&define.amd?define(["jquery","./effect"],a):a(jQuery)})(function(a){return a.effects.effect.blind=function(e,r){var b=a(this),k="position top bottom left right height width".split(" "),q=a.effects.setMode(b,e.mode||"hide"),d=e.direction||"up",f=/up|down|vertical/.test(d),l=f?"height":"width",m=f?"top":"left",d=/up|left|vertical|horizontal/.test(d),n={},p="show"===q,c,g,h;b.parent().is(".ui-effects-wrapper")?a.effects.save(b.parent(),k):a.effects.save(b,k);b.show();
c=a.effects.createWrapper(b).css({overflow:"hidden"});g=c[l]();h=parseFloat(c.css(m))||0;n[l]=p?g:0;d||(b.css(f?"bottom":"right",0).css(f?"top":"left","auto").css({position:"absolute"}),n[m]=p?h:g+h);p&&(c.css(l,0),d||c.css(m,h+g));c.animate(n,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===q&&b.hide();a.effects.restore(b,k);a.effects.removeWrapper(b);r()}})}});