//>>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(y,v,q,r,m,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={},e={};r.set(h,"display","");f[c]={start:0,end:-d};e[c]={start:d,end:0};return w.combine([m.animateProperty({node:b.current.node,duration:b.duration,properties:f,easing:b.easing}),m.animateProperty({node:h,duration:b.duration,properties:e,easing:b.easing})])}
function x(a,b){r.set(a,"zIndex",b)}var n={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,t=c<e,p=3,m=[],n=[],u=a.duration;if(!b&&!t||b&&(t&&g>k||!t&&g<k))p=1;if(a.continuous){a.quick&&(u=Math.round(u/(b?Math.min(k,g):g)));x(h[c].node,f--);for(b=3==p;;){g=c;b?++c>=d&&(c=0):0>--c&&(c=d-1);g=h[g];k=h[c];x(k.node,f--);m.push(l(p,q.mixin({easing:function(a){return a}},a,{current:g,next:k,duration:u})));
if(b&&c==e||!b&&c==e)break;n.push(k.node)}a=w.chain(m);var z=v.connect(a,"onEnd",function(){v.disconnect(z);y.forEach(n,function(a){r.set(a,{display:"none",left:0,opacity:1,top:0,zIndex:0})})});return a}return l(p,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)}};q.mixin(q.getObject("dojox.widget.rotator"),n);return n});