//>>built
define("dojox/fx/_base","dojo/_base/array,dojo/_base/lang,dojo/_base/fx,dojo/fx,dojo/dom,dojo/dom-style,dojo/dom-geometry,dojo/_base/connect,dojo/_base/html".split(","),function(f,g,e,h,j,m,p,l,i){f=g.getObject("dojox.fx",!0);g.mixin(f,{anim:e.anim,animateProperty:e.animateProperty,fadeTo:e._fade,fadeIn:e.fadeIn,fadeOut:e.fadeOut,combine:h.combine,chain:h.chain,slideTo:h.slideTo,wipeIn:h.wipeIn,wipeOut:h.wipeOut});f.sizeTo=function(a){var d=a.node=j.byId(a.node),c=a.method||"chain";if(!a.duration)a.duration=
500;if("chain"==c)a.duration=Math.floor(a.duration/2);var b,o,k,f,i,n=null,l=function(c){return function(){var d=m.getComputedStyle(c),e=d.position,g=d.width,h=d.height;b="absolute"==e?c.offsetTop:parseInt(d.top)||0;k="absolute"==e?c.offsetLeft:parseInt(d.left)||0;i="auto"==g?0:parseInt(g);n="auto"==h?0:parseInt(h);f=k-Math.floor((a.width-i)/2);o=b-Math.floor((a.height-n)/2);if("absolute"!=e&&"relative"!=e)d=m.coords(c,!0),b=d.y,k=d.x,c.style.position="absolute",c.style.top=b+"px",c.style.left=k+
"px"}}(d),d=e.animateProperty(g.mixin({properties:{height:function(){l();return{end:a.height||0,start:n}},top:function(){return{start:b,end:o}}}},a)),c=e.animateProperty(g.mixin({properties:{width:function(){return{start:i,end:a.width||0}},left:function(){return{start:k,end:f}}}},a));return h["combine"==a.method?"combine":"chain"]([d,c])};f.slideBy=function(a){var d,c,b=function(a){return function(){var b=m.getComputedStyle(a),e=b.position;d="absolute"==e?a.offsetTop:parseInt(b.top)||0;c="absolute"==
e?a.offsetLeft:parseInt(b.left)||0;if("absolute"!=e&&"relative"!=e)b=p.coords(a,!0),d=b.y,c=b.x,a.style.position="absolute",a.style.top=d+"px",a.style.left=c+"px"}}(a.node=j.byId(a.node));b();a=e.animateProperty(g.mixin({properties:{top:d+(a.top||0),left:c+(a.left||0)}},a));l.connect(a,"beforeBegin",a,b);return a};f.crossFade=function(a){var d=a.nodes[0]=j.byId(a.nodes[0]),c=i.style(d,"opacity"),b=a.nodes[1]=j.byId(a.nodes[1]);i.style(b,"opacity");return h.combine([e[0==c?"fadeIn":"fadeOut"](g.mixin({node:d},
a)),e[0==c?"fadeOut":"fadeIn"](g.mixin({node:b},a))])};f.highlight=function(a){var d=a.node=j.byId(a.node);a.duration=a.duration||400;var c=a.color||"#ffff99",b=i.style(d,"backgroundColor");"rgba(0, 0, 0, 0)"==b&&(b="transparent");a=e.animateProperty(g.mixin({properties:{backgroundColor:{start:c,end:b}}},a));"transparent"==b&&l.connect(a,"onEnd",a,function(){d.style.backgroundColor=b});return a};f.wipeTo=function(a){a.node=j.byId(a.node);var d=a.node,c=d.style,b=a.width?"width":"height",f={};f[b]=
{start:function(){c.overflow="hidden";if("hidden"==c.visibility||"none"==c.display)return c[b]="1px",c.display="",c.visibility="",1;var a=i.style(d,b);return Math.max(a,1)},end:a[b]};return e.animateProperty(g.mixin({properties:f},a))};return f});