//>>built
define("mill/imageList",["mill/mill"],function(){var d=dojo.declare("mill.imageList",[dijit._WidgetBase],{url:"",definition:null,style:"display:none",width:null,height:null,backgroundImage:null,imageUrl:null,postMixInProperties:function(){this.inherited(arguments);var a=this.url.replace(/^\//,"");!this.definition&&a&&(this.definition=dojo.fromJson(dojo.cache("",a)));this.width=this.definition[".width"];this.height=this.definition[".height"];this.imageUrl=this.definition[".filename"];-1==this.imageUrl.toString().indexOf("/")&&
(a=this.url.split("/").slice(0,-1),a.push(this.imageUrl),this.imageUrl=a.join("/"))},positionX:function(a){return(this.definition.hasOwnProperty(a)?this.definition[a]||0:Number(a)||0)%this.definition[".perrow"]*this.definition[".width"]},positionY:function(a){a=this.definition.hasOwnProperty(a)?this.definition[a]||0:Number(a)||0;return Math.floor(a/this.definition[".perrow"])*this.definition[".height"]},backgroundPosition:function(a,b,c){return b-this.positionX(a)+"px "+(c-this.positionY(a))+"px"}});
dojo.mixin(mill,{_renderQueueTimerID:null,_renderQueue:null,_renderQueueLocked:!1,enqueueRender:function(a){a&&a._render&&a.id&&(this._renderQueue||(this._renderQueue={}),this._renderQueue[a.id]=dojo.hitch(a,a._render),this._renderQueueTimerID&&clearTimeout(this._renderQueueTimerID),this._renderQueueLocked||(this._renderQueueTimerID=setTimeout(dojo.hitch(this,this._renderEnqueued),1)))},lockRender:function(){this._renderQueueLocked=!0;this._renderQueueTimerID&&clearTimeout(this._renderQueueTimerID);
this._renderQueueTimerID=null},unlockRender:function(){this._renderQueueLocked=!1;this._renderQueue&&!this._renderQueueTimerID&&(this._renderQueueTimerID=setTimeout(dojo.hitch(this,this._renderEnqueued),1))},_renderEnqueued:function(){for(;this._renderQueue;){var a=dojo.clone(this._renderQueue);this._renderQueue=null;for(var b in a)a[b]()}this._renderQueueTimerID=null}});return d});