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