//>>built
define("dojox/widget/rotator/ThumbnailController","dojo/_base/declare dojo/_base/connect dojo/_base/lang dojo/_base/event dojo/aspect dojo/dom-attr dojo/dom-class dojo/dom-construct dojo/query".split(" "),function(n,v,h,p,q,f,r,k,t){return n("dojox.widget.rotator.ThumbnailController",null,{rotator:null,constructor:function(c,a){h.mixin(this,c);this._domNode=a;var b=this.rotator;if(b){for(;a.firstChild;)a.removeChild(a.firstChild);for(var d=0;d<b.panes.length;d++){var e=b.panes[d].node,l=f.get(e,"thumbsrc")||
f.get(e,"src"),m=f.get(e,"alt")||"";/img/i.test(e.tagName)&&function(g){k.create("a",{classname:"dojoxRotatorThumb dojoxRotatorThumb"+g+" "+(g==b.idx?"dojoxRotatorThumbSelected":""),href:l,onclick:function(u){p.stop(u);b&&b.control.apply(b,["go",g])},title:m,innerHTML:'\x3cimg src\x3d"'+l+'" alt\x3d"'+m+'"/\x3e'},a)}(d)}q.after(b,"onUpdate",h.hitch(this,"_onUpdate"),!0)}},destroy:function(){k.destroy(this._domNode)},_onUpdate:function(c){var a=this.rotator;"onAfterTransition"==c&&(c=t(".dojoxRotatorThumb",
this._domNode).removeClass("dojoxRotatorThumbSelected"),a.idx<c.length&&r.add(c[a.idx],"dojoxRotatorThumbSelected"))}})});