define("dojo/_base/fx",["./kernel","./config","./lang","../Evented","./Color","../aspect","../sniff","../dom","../dom-style"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){var_a=_3.mixin;var_b={};var_c=_b._Line=function(_d,_e){this.start=_d;this.end=_e;};_c.prototype.getValue=function(n){return((this.end-this.start)*n)+this.start;};var_f=_b.Animation=function(_10){_a(this,_10);if(_3.isArray(this.curve)){this.curve=new_c(this.curve[0],this.curve[1]);}};_f.prototype=new_4();_3.extend(_f,{duration:350,repeat:0,rate:20,_percent:0,_startRepeatCount:0,_getStep:function(){var_11=this._percent,_12=this.easing;return_12?_12(_11):_11;},_fire:function(evt,_13){vara=_13||[];if(this[evt]){if(_2.debugAtAllCosts){this[evt].apply(this,a);}else{try{this[evt].apply(this,a);}catch(e){console.error("exception in animation handler for:",evt);console.error(e);}}}returnthis;},play:function(_14,_15){var_16=this;if(_16._delayTimer){_16._clearTimer();}if(_15){_16._stopTimer();_16._active=_16._paused=false;_16._percent=0;}else{if(_16._active&&!_16._paused){return_16;}}_16._fire("beforeBegin",[_16.node]);varde=_14||_16.delay,_17=_3.hitch(_16,"_play",_15);if(de>0){_16._delayTimer=setTimeout(_17,de);return_16;}_17();return_16;},_play:function(_18){var_19=this;if(_19._delayTimer){_19._clearTimer();}_19._startTime=newDate().valueOf();if(_19._paused){_19._startTime-=_19.duration*_19._percent;}_19._active=true;_19._paused=false;var_1a=_19.curve.getValue(_19._getStep());if(!_19._percent){if(!_19._startRepeatCount){_19._startRepeatCount=_19.repeat;}_19._fire("onBegin",[_1a]);}_19._fire("onPlay",[_1a]);_19._cycle();return_19;},pause:function(){var_1b=this;if(_1b._delayTimer){_1b._clearTimer();}_1b._stopTimer();if(!_1b._active){return_1b;}_1b._paused=true;_1b._fire("onPause",[_1b.curve.getValue(_1b._getStep())]);return_1b;},gotoPercent:function(_1c,_1d){var_1e=this;_1e._stopTimer();_1e._active=_1e._paused=true;_1e._percent=_1c;if(_1d){_1e.play();}return_1e;},stop:function(_1f){var_20=this;if(_20._delayTimer){_20._clearTimer();}if(!_20._timer){return_20;}_20._stopTimer();if(_1f){_20._percent=1;}_20._fire("onStop",[_20.curve.getValue(_20._getStep())]);_20._active=_20._paused=false;return_20;},destroy:function(){this.stop();},status:function(){if(this._active){returnthis._paused?"paused":"playing";}return"stopped";},_cycle:function(){var_21=this;if(_21._active){var_22=newDate().valueOf();var_23=_21.duration===0?1:(_22-_21._startTime)/(_21.duration);if(_23>=1){_23=1;}_21._percent=_23;if(_21.easing){_23=_21.easing(_23);}_21._fire("onAnimate",[_21.curve.getValue(_23)]);if(_21._percent<1){_21._startTimer();}else{_21._active=false;if(_21.repeat>0){_21.repeat--;_21.play(null,true);}else{if(_21.repeat==-1){_21.play(null,true);}else{if(_21._startRepeatCount){_21.repeat=_21._startRepeatCount;_21._startRepeatCount=0;}}}_21._percent=0;_21._fire("onEnd",[_21.node]);!_21.repeat&&_21._stopTimer();}}return_21;},_clearTimer:function(){clearTimeout(this._delayTimer);deletethis._delayTimer;}});varctr=0,_24=null,_25={run:function(){}};_3.extend(_f,{_startTimer:function(){if(!this._timer){this._timer=_6.after(_25,"run",_3.hitch(this,"_cycle"),true);ctr++;}if(!_24){_24=setInterval(_3.hitch(_25,"run"),this.rate);}},_stopTimer:function(){if(this._timer){this._timer.remove();this._timer=null;ctr--;}if(ctr<=0){clearInterval(_24);_24=null;ctr=0;}}});var_26=_7("ie")?function(_27){varns=_27.style;if(!ns.width.length&&_9.get(_27,"width")=="auto"){ns.width="auto";}}:function(){};_b._fade=function(_28){_28.node=_8.byId(_28.node);var_29=_a({properties:{}},_28),_2a=(_29.properties.opacity={});_2a.start=!("start"in_29)?function(){return+_9.get(_29.node,"opacity")||0;}:_29.start;_2a.end=_29.end;var_2b=_b.animateProperty(_29);_6.after(_2b,"beforeBegin",_3.partial(_26,_29.node),true);return_2b;};_b.fadeIn=function(_2c){return_b._fade(_a({end:1},_2c));};_b.fadeOut=function(_2d){return_b._fade(_a({end:0},_2d));};_b._defaultEasing=function(n){return0.5+((Math.sin((n+1.5)*Math.PI))/2);};var_2e=function(_2f){this._properties=_2f;for(varpin_2f){var_30=_2f[p];