//>>built
define("dojox/widget/rotator/Controller",["dojo/_base/declare","dojo/_base/lang","dojo/_base/html","dojo/_base/event","dojo/_base/array","dojo/_base/connect","dojo/query"],function(_1,_2,_3,_4,_5,_6,_7){
var _8="dojoxRotator",_9=_8+"Play",_a=_8+"Pause",_b=_8+"Number",_c=_8+"Tab",_d=_8+"Selected";
return _1("dojox.widget.rotator.Controller",null,{rotator:null,commands:"prev,play/pause,info,next",constructor:function(_e,_f){
_2.mixin(this,_e);
var r=this.rotator;
if(r){
while(_f.firstChild){
_f.removeChild(_f.firstChild);
}
var ul=this._domNode=_3.create("ul",null,_f),_10=" "+_8+"Icon",cb=function(_11,css,_12){
_3.create("li",{className:css,innerHTML:""+_11+"",onclick:function(e){
_4.stop(e);
if(r){
r.control.apply(r,_12);
}
}},ul);
};
_5.forEach(this.commands.split(","),function(b,i){
switch(b){
case "prev":
cb("Prev",_8+"Prev"+_10,["prev"]);
break;
case "play/pause":
cb("Play",_9+_10,["play"]);
cb("Pause",_a+_10,["pause"]);
break;
case "info":
this._info=_3.create("li",{className:_8+"Info",innerHTML:this._buildInfo(r)},ul);
break;
case "next":
cb("Next",_8+"Next"+_10,["next"]);
break;
case "#":
case "titles":
for(var j=0;j"+(r.idx+1)+" / "+r.panes.length+"";
},_onUpdate:function(_14){
var r=this.rotator;
switch(_14){
case "play":
case "pause":
this._togglePlay();
break;
case "onAfterTransition":
if(this._info){
this._info.innerHTML=this._buildInfo(r);
}
var s=function(n){
if(r.idx