1 /*! jQuery UI - v1.9.0 - 2012-10-08
3 * Includes: jquery.ui.effect-fold.js
4 * Copyright 2012 jQuery Foundation and other contributors; Licensed MIT */
5 (function(e
,t
){e
.effects
.effect
.fold=function(t
,n
){var r
=e(this),i
=["position","top","bottom","left","right","height","width"],s
=e
.effects
.setMode(r
,t
.mode
||"hide"),o
=s
==="show",u
=s
==="hide",a
=t
.size
||15,f
=/([0-9]+)%/.exec(a
),l
=!!t
.horizFirst
,c
=o
!==l
,h
=c
?["width","height"]:["height","width"],p
=t
.duration
/2,d,v,m={},g={};e.effects.save(r,i),r.show(),d=e.effects.createWrapper(r).css({overflow:"hidden"}),v=c?[d.width(),d.height()]:[d.height(),d.width()],f&&(a=parseInt(f[1],10)/100*v
[u
?0:1]),o
&&d
.css(l
?{height
:0,width
:a
}:{height
:a
,width
:0}),m
[h
[0]]=o
?v
[0]:a
,g
[h
[1]]=o
?v
[1]:0,d
.animate(m
,p
,t
.easing
).animate(g
,p
,t
.easing
,function(){u
&&r
.hide(),e
.effects
.restore(r
,i
),e
.effects
.removeWrapper(r
),n()})}})(jQuery
);