//>>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(u,q,l,g,o,r){function k(a,c){var i={node:c.current.node,duration:c.duration,easing:c.easing},e={node:c.next.node,duration:c.duration,easing:c.easing},h=c.rotatorBox,b=a%2,f=b?"left":"top",h=(b?h.w:h.h)*(2>a?-1:1),b={},d={};o.set(e.node,{display:"",opacity:0});b[f]={start:0,end:-h};d[f]={start:h,end:0};return r.combine([g.animateProperty(l.mixin({properties:b},
i)),g.fadeOut(i),g.animateProperty(l.mixin({properties:d},e)),g.fadeIn(e)])}function s(a,c){o.set(a,"zIndex",c)}var m={panFade:function(a){var c=a.wrap,i=a.rotator.panes,e=i.length,h=e,b=a.current.idx,f=a.next.idx,d=Math.abs(f-b),j=Math.abs(e-Math.max(b,f)+Math.min(b,f))%e,g=b<f,n=3,m=[],t=[],p=a.duration;if(!c&&!g||c&&(g&&d>j||!g&&d<j))n=1;if(a.continuous){a.quick&&(p=Math.round(p/(c?Math.min(j,d):d)));s(i[b].node,h--);for(c=3==n;;){d=b;c?++b>=e&&(b=0):0>--b&&(b=e-1);d=i[d];j=i[b];s(j.node,h--);
m.push(k(n,l.mixin({easing:function(a){return a}},a,{current:d,next:j,duration:p})));if(c&&b==f||!c&&b==f)break;t.push(j.node)}var a=r.chain(m),v=q.connect(a,"onEnd",function(){q.disconnect(v);u.forEach(t,function(a){o.set(a,{display:"none",left:0,opacity:1,top:0,zIndex:0})})});return a}return k(n,a)},panFadeDown:function(a){return k(0,a)},panFadeRight:function(a){return k(1,a)},panFadeUp:function(a){return k(2,a)},panFadeLeft:function(a){return k(3,a)}};l.mixin(l.getObject("dojox.widget.rotator"),
m);return m});