//>>built
define("dojox/widget/rotator/PanFade","dojo/_base/array dojo/_base/connect dojo/_base/lang dojo/_base/fx dojo/dom-style dojo/fx".split(" "),function(B,v,m,n,q,w){function l(a,c){var h={node:c.current.node,duration:c.duration,easing:c.easing},e={node:c.next.node,duration:c.duration,easing:c.easing},g=c.rotatorBox,b=a%2,f=b?"left":"top";g=(b?g.w:g.h)*(2>a?-1:1);b={};var d={};q.set(e.node,{display:"",opacity:0});b[f]={start:0,end:-g};d[f]={start:g,end:0};return w.combine([n.animateProperty(m.mixin({properties:b},
h)),n.fadeOut(h),n.animateProperty(m.mixin({properties:d},e)),n.fadeIn(e)])}function x(a,c){q.set(a,"zIndex",c)}var A={panFade:function(a){var c=a.wrap,h=a.rotator.panes,e=h.length,g=e,b=a.current.idx,f=a.next.idx,d=Math.abs(f-b),k=Math.abs(e-Math.max(b,f)+Math.min(b,f))%e,r=b<f,p=3,y=[],z=[],t=a.duration;if(!c&&!r||c&&(r&&d>k||!r&&d<k))p=1;if(a.continuous){a.quick&&(t=Math.round(t/(c?Math.min(k,d):d)));x(h[b].node,g--);for(c=3==p;;){d=b;c?++b>=e&&(b=0):0>--b&&(b=e-1);d=h[d];k=h[b];x(k.node,g--);
y.push(l(p,m.mixin({easing:function(u){return u}},a,{current:d,next:k,duration:t})));if(c&&b==f||!c&&b==f)break;z.push(k.node)}a=w.chain(y);var C=v.connect(a,"onEnd",function(){v.disconnect(C);B.forEach(z,function(u){q.set(u,{display:"none",left:0,opacity:1,top:0,zIndex:0})})});return a}return l(p,a)},panFadeDown:function(a){return l(0,a)},panFadeRight:function(a){return l(1,a)},panFadeUp:function(a){return l(2,a)},panFadeLeft:function(a){return l(3,a)}};m.mixin(m.getObject("dojox.widget.rotator"),
A);return A});