/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[(typeof (djConfig)!="undefined"&&djConfig.scopeMap&&djConfig.scopeMap[0][1])||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.fx._base"],["require","dojo.fx"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.fx._base"]){_4._hasResource["dojox.fx._base"]=true;_4.provide("dojox.fx._base");_4.require("dojo.fx");_4.mixin(_6.fx,{anim:_4.anim,animateProperty:_4.animateProperty,fadeTo:_4._fade,fadeIn:_4.fadeIn,fadeOut:_4.fadeOut,combine:_4.fx.combine,chain:_4.fx.chain,slideTo:_4.fx.slideTo,wipeIn:_4.fx.wipeIn,wipeOut:_4.fx.wipeOut});_6.fx.sizeTo=function(_7){var _8=_7.node=_4.byId(_7.node),_9="absolute";var _a=_7.method||"chain";if(!_7.duration){_7.duration=500;}if(_a=="chain"){_7.duration=Math.floor(_7.duration/2);}var _b,_c,_d,_e,_f,_10=null;var _11=(function(n){return function(){var cs=_4.getComputedStyle(n),pos=cs.position,w=cs.width,h=cs.height;_b=(pos==_9?n.offsetTop:parseInt(cs.top)||0);_d=(pos==_9?n.offsetLeft:parseInt(cs.left)||0);_f=(w=="auto"?0:parseInt(w));_10=(h=="auto"?0:parseInt(h));_e=_d-Math.floor((_7.width-_f)/2);_c=_b-Math.floor((_7.height-_10)/2);if(pos!=_9&&pos!="relative"){var ret=_4.coords(n,true);_b=ret.y;_d=ret.x;n.style.position=_9;n.style.top=_b+"px";n.style.left=_d+"px";}};})(_8);var _12=_4.animateProperty(_4.mixin({properties:{height:function(){_11();return {end:_7.height||0,start:_10};},top:function(){return {start:_b,end:_c};}}},_7));var _13=_4.animateProperty(_4.mixin({properties:{width:function(){return {start:_f,end:_7.width||0};},left:function(){return {start:_d,end:_e};}}},_7));var _14=_4.fx[(_7.method=="combine"?"combine":"chain")]([_12,_13]);return _14;};_6.fx.slideBy=function(_15){var _16=_15.node=_4.byId(_15.node),top,_17;var _18=(function(n){return function(){var cs=_4.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_17=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=_4.coords(n,true);top=ret.y;_17=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_17+"px";}};})(_16);_18();var _19=_4.animateProperty(_4.mixin({properties:{top:top+(_15.top||0),left:_17+(_15.left||0)}},_15));_4.connect(_19,"beforeBegin",_19,_18);return _19;};_6.fx.crossFade=function(_1a){var _1b=_1a.nodes[0]=_4.byId(_1a.nodes[0]),op1=_4.style(_1b,"opacity"),_1c=_1a.nodes[1]=_4.byId(_1a.nodes[1]),op2=_4.style(_1c,"opacity");var _1d=_4.fx.combine([_4[(op1==0?"fadeIn":"fadeOut")](_4.mixin({node:_1b},_1a)),_4[(op1==0?"fadeOut":"fadeIn")](_4.mixin({node:_1c},_1a))]);return _1d;};_6.fx.highlight=function(_1e){var _1f=_1e.node=_4.byId(_1e.node);_1e.duration=_1e.duration||400;var _20=_1e.color||"#ffff99",_21=_4.style(_1f,"backgroundColor");if(_21=="rgba(0, 0, 0, 0)"){_21="transparent";}var _22=_4.animateProperty(_4.mixin({properties:{backgroundColor:{start:_20,end:_21}}},_1e));if(_21=="transparent"){_4.connect(_22,"onEnd",_22,function(){_1f.style.backgroundColor=_21;});}return _22;};_6.fx.wipeTo=function(_23){_23.node=_4.byId(_23.node);var _24=_23.node,s=_24.style;var dir=(_23.width?"width":"height"),_25=_23[dir],_26={};_26[dir]={start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s[dir]="1px";s.display="";s.visibility="";return 1;}else{var now=_4.style(_24,dir);return Math.max(now,1);}},end:_25};var _27=_4.animateProperty(_4.mixin({properties:_26},_23));return _27;};}}};});
