/*
	Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_5f,_60){var rxp="^";var c=null;for(var i=0;i<_5f.length;i++){c=_5f.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_5f.charAt(i);break;case "*":rxp+=".*";break;case "?":rxp+=".";break;case "$":case "^":case "/":case "+":case ".":case "|":case "(":case ")":case "{":case "}":case "[":case "]":rxp+="\\";default:rxp+=c;}}rxp+="$";if(_60){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_61,_62){var _63=[];function _64(_65,dir,_66,s){return function(_67,_68){var a=s.getValue(_67,_65);var b=s.getValue(_68,_65);return dir*_66(a,b);};};var _69;var map=_62.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_61.length;i++){_69=_61[i];var _6a=_69.attribute;if(_6a){var dir=(_69.descending)?-1:1;var _6b=bc;if(map){if(typeof _6a!=="string"&&("toString" in _6a)){_6a=_6a.toString();}_6b=map[_6a]||bc;}_63.push(_64(_6a,dir,_6b,_62));}}return function(_6c,_6d){var i=0;while(i<_63.length){var ret=_63[i++](_6c,_6d);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_6e){_6e=_6e||{};if(!_6e.store){_6e.store=this;}var _6f=this;var _70=function(_71,_72){if(_72.onError){var _73=_72.scope||dojo.global;_72.onError.call(_73,_71,_72);}};var _74=function(_75,_76){var _77=_76.abort||null;var _78=false;var _79=_76.start?_76.start:0;var _7a=(_76.count&&(_76.count!==Infinity))?(_79+_76.count):_75.length;_76.abort=function(){_78=true;if(_77){_77.call(_76);}};var _7b=_76.scope||dojo.global;if(!_76.store){_76.store=_6f;}if(_76.onBegin){_76.onBegin.call(_7b,_75.length,_76);}if(_76.sort){_75.sort(dojo.data.util.sorter.createSortFunction(_76.sort,_6f));}if(_76.onItem){for(var i=_79;(i<_75.length)&&(i<_7a);++i){var _7c=_75[i];if(!_78){_76.onItem.call(_7b,_7c,_76);}}}if(_76.onComplete&&!_78){var _7d=null;if(!_76.onItem){_7d=_75.slice(_79,_7a);}_76.onComplete.call(_7b,_7d,_76);}};this._fetchItems(_6e,_74,_70);return _6e;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_7e){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_7e.url;this._ccUrl=_7e.url;this.url=_7e.url;this._jsonData=_7e.data;this.data=null;this._datatypeMap=_7e.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_7f){return dojo.date.stamp.fromISOString(_7f);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_7e.urlPreventCache!==undefined){this.urlPreventCache=_7e.urlPreventCache?true:false;}if(_7e.hierarchical!==undefined){this.hierarchical=_7e.hierarchical?true:false;}if(_7e.clearOnClose){this.clearOnClose=true;}if("failOk" in _7e){this.failOk=_7e.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(_80){if(!this.isItem(_80)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_81){if(typeof _81!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(_82,_83,_84){var _85=this.getValues(_82,_83);return (_85.length>0)?_85[0]:_84;},getValues:function(_86,_87){this._assertIsItem(_86);this._assertIsAttribute(_87);return (_86[_87]||[]).slice(0);},getAttributes:function(_88){this._assertIsItem(_88);var _89=[];for(var key in _88){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_89.push(key);}}return _89;},hasAttribute:function(_8a,_8b){this._assertIsItem(_8a);this._assertIsAttribute(_8b);return (_8b in _8a);},containsValue:function(_8c,_8d,_8e){var _8f=undefined;if(typeof _8e==="string"){_8f=dojo.data.util.filter.patternToRegExp(_8e,false);}return this._containsValue(_8c,_8d,_8e,_8f);},_containsValue:function(_90,_91,_92,_93){return dojo.some(this.getValues(_90,_91),function(_94){if(_94!==null&&!dojo.isObject(_94)&&_93){if(_94.toString().match(_93)){return true;}}else{if(_92===_94){return true;}}});},isItem:function(_95){if(_95&&_95[this._storeRefPropName]===this){if(this._arrayOfAllItems[_95[this._itemNumPropName]]===_95){return true;}}return false;},isItemLoaded:function(_96){return this.isItem(_96);},loadItem:function(_97){this._assertIsItem(_97.item);},getFeatures:function(){return this._features;},getLabel:function(_98){if(this._labelAttr&&this.isItem(_98)){return this.getValue(_98,this._labelAttr);}return undefined;},getLabelAttributes:function(_99){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_9a,_9b,_9c){var _9d=this,_9e=function(_9f,_a0){var _a1=[],i,key;if(_9f.query){var _a2,_a3=_9f.queryOptions?_9f.queryOptions.ignoreCase:false;var _a4={};for(key in _9f.query){_a2=_9f.query[key];if(typeof _a2==="string"){_a4[key]=dojo.data.util.filter.patternToRegExp(_a2,_a3);}else{if(_a2 instanceof RegExp){_a4[key]=_a2;}}}for(i=0;i<_a0.length;++i){var _a5=true;var _a6=_a0[i];if(_a6===null){_a5=false;}else{for(key in _9f.query){_a2=_9f.query[key];if(!_9d._containsValue(_a6,key,_a2,_a4[key])){_a5=false;}}}if(_a5){_a1.push(_a6);}}_9b(_a1,_9f);}else{for(i=0;i<_a0.length;++i){var _a7=_a0[i];if(_a7!==null){_a1.push(_a7);}}_9b(_a1,_9f);}};if(this._loadFinished){_9e(_9a,this._getItemsArray(_9a.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_9a,filter:_9e});}else{this._loadInProgress=true;var _a8={url:_9d._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _a9=dojo.xhrGet(_a8);_a9.addCallback(function(_aa){try{_9d._getItemsFromLoadedData(_aa);_9d._loadFinished=true;_9d._loadInProgress=false;_9e(_9a,_9d._getItemsArray(_9a.queryOptions));_9d._handleQueuedFetches();}catch(e){_9d._loadFinished=true;_9d._loadInProgress=false;_9c(e,_9a);}});_a9.addErrback(function(_ab){_9d._loadInProgress=false;_9c(_ab,_9a);});var _ac=null;if(_9a.abort){_ac=_9a.abort;}_9a.abort=function(){var df=_a9;if(df&&df.fired===-1){df.cancel();df=null;}if(_ac){_ac.call(_9a);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_9e(_9a,this._getItemsArray(_9a.queryOptions));}catch(e){_9c(e,_9a);}}else{_9c(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_9a);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _ad=this._queuedFetches[i],_ae=_ad.args,_af=_ad.filter;if(_af){_af(_ae,this._getItemsArray(_ae.queryOptions));}else{this.fetchItemByIdentity(_ae);}}this._queuedFetches=[];}},_getItemsArray:function(_b0){if(_b0&&_b0.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_b1){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_b2){var _b3=false,_b4=this;function _b5(_b6){var _b7=((_b6!==null)&&(typeof _b6==="object")&&(!dojo.isArray(_b6)||_b3)&&(!dojo.isFunction(_b6))&&(_b6.constructor==Object||dojo.isArray(_b6))&&(typeof _b6._reference==="undefined")&&(typeof _b6._type==="undefined")&&(typeof _b6._value==="undefined")&&_b4.hierarchical);return _b7;};function _b8(_b9){_b4._arrayOfAllItems.push(_b9);for(var _ba in _b9){var _bb=_b9[_ba];if(_bb){if(dojo.isArray(_bb)){var _bc=_bb;for(var k=0;k<_bc.length;++k){var _bd=_bc[k];if(_b5(_bd)){_b8(_bd);}}}else{if(_b5(_bb)){_b8(_bb);}}}}};this._labelAttr=_b2.label;var i,_be;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_b2.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){_be=this._arrayOfTopLevelItems[i];if(dojo.isArray(_be)){_b3=true;}_b8(_be);_be[this._rootItemPropName]=true;}var _bf={},key;for(i=0;i<this._arrayOfAllItems.length;++i){_be=this._arrayOfAllItems[i];for(key in _be){if(key!==this._rootItemPropName){var _c0=_be[key];if(_c0!==null){if(!dojo.isArray(_c0)){_be[key]=[_c0];}}else{_be[key]=[null];}}_bf[key]=key;}}while(_bf[this._storeRefPropName]){this._storeRefPropName+="_";}while(_bf[this._itemNumPropName]){this._itemNumPropName+="_";}while(_bf[this._reverseRefMap]){this._reverseRefMap+="_";}var _c1;var _c2=_b2.identifier;if(_c2){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_c2;for(i=0;i<this._arrayOfAllItems.length;++i){_be=this._arrayOfAllItems[i];_c1=_be[_c2];var _c3=_c1[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_c3)){this._itemsByIdentity[_c3]=_be;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_c2+"].  Value collided: ["+_c3+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_c2+"].  Value collided: ["+_c3+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){_be=this._arrayOfAllItems[i];_be[this._storeRefPropName]=this;_be[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){_be=this._arrayOfAllItems[i];for(key in _be){_c1=_be[key];for(var j=0;j<_c1.length;++j){_c0=_c1[j];if(_c0!==null&&typeof _c0=="object"){if(("_type" in _c0)&&("_value" in _c0)){var _c4=_c0._type;var _c5=this._datatypeMap[_c4];if(!_c5){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+_c4+"'");}else{if(dojo.isFunction(_c5)){_c1[j]=new _c5(_c0._value);}else{if(dojo.isFunction(_c5.deserialize)){_c1[j]=_c5.deserialize(_c0._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_c0._reference){var _c6=_c0._reference;if(!dojo.isObject(_c6)){_c1[j]=this._getItemByIdentity(_c6);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _c7=this._arrayOfAllItems[k],_c8=true;for(var _c9 in _c6){if(_c7[_c9]!=_c6[_c9]){_c8=false;}}if(_c8){_c1[j]=_c7;}}}if(this.referenceIntegrity){var _ca=_c1[j];if(this.isItem(_ca)){this._addReferenceToMap(_ca,_be,key);}}}else{if(this.isItem(_c0)){if(this.referenceIntegrity){this._addReferenceToMap(_c0,_be,key);}}}}}}}},_addReferenceToMap:function(_cb,_cc,_cd){},getIdentity:function(_ce){var _cf=this._features["dojo.data.api.Identity"];if(_cf===Number){return _ce[this._itemNumPropName];}else{var _d0=_ce[_cf];if(_d0){return _d0[0];}}return null;},fetchItemByIdentity:function(_d1){var _d2,_d3;if(!this._loadFinished){var _d4=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_d1});}else{this._loadInProgress=true;var _d5={url:_d4._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _d6=dojo.xhrGet(_d5);_d6.addCallback(function(_d7){var _d8=_d1.scope?_d1.scope:dojo.global;try{_d4._getItemsFromLoadedData(_d7);_d4._loadFinished=true;_d4._loadInProgress=false;_d2=_d4._getItemByIdentity(_d1.identity);if(_d1.onItem){_d1.onItem.call(_d8,_d2);}_d4._handleQueuedFetches();}catch(error){_d4._loadInProgress=false;if(_d1.onError){_d1.onError.call(_d8,error);}}});_d6.addErrback(function(_d9){_d4._loadInProgress=false;if(_d1.onError){var _da=_d1.scope?_d1.scope:dojo.global;_d1.onError.call(_da,_d9);}});}}else{if(this._jsonData){_d4._getItemsFromLoadedData(_d4._jsonData);_d4._jsonData=null;_d4._loadFinished=true;_d2=_d4._getItemByIdentity(_d1.identity);if(_d1.onItem){_d3=_d1.scope?_d1.scope:dojo.global;_d1.onItem.call(_d3,_d2);}}}}else{_d2=this._getItemByIdentity(_d1.identity);if(_d1.onItem){_d3=_d1.scope?_d1.scope:dojo.global;_d1.onItem.call(_d3,_d2);}}},_getItemByIdentity:function(_db){var _dc=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_db)){_dc=this._itemsByIdentity[_db];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_db)){_dc=this._arrayOfAllItems[_db];}}if(_dc===undefined){_dc=null;}return _dc;},getIdentityAttributes:function(_dd){var _de=this._features["dojo.data.api.Identity"];if(_de===Number){return null;}else{return [_de];}},_forceLoad:function(){var _df=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _e0={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _e1=dojo.xhrGet(_e0);_e1.addCallback(function(_e2){try{if(_df._loadInProgress!==true&&!_df._loadFinished){_df._getItemsFromLoadedData(_e2);_df._loadFinished=true;}else{if(_df._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_e1.addErrback(function(_e3){throw _e3;});}else{if(this._jsonData){_df._getItemsFromLoadedData(_df._jsonData);_df._jsonData=null;_df._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;dojo.provide("dojo.data.ItemFileWriteStore");dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_e4){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return dojo.date.stamp.toISOString(obj,{zulu:true});};}if(_e4&&(_e4.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_e5){if(!_e5){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _e6=this.getFeatures()["dojo.data.api.Identity"];return _e6;},newItem:function(_e7,_e8){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _e7!="object"&&typeof _e7!="undefined"){throw new Error("newItem() was passed something other than an object");}var _e9=null;var _ea=this._getIdentifierAttribute();if(_ea===Number){_e9=this._arrayOfAllItems.length;}else{_e9=_e7[_ea];if(typeof _e9==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_e9)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_e9]==="undefined");}this._assert(typeof this._pending._newItems[_e9]==="undefined");this._assert(typeof this._pending._deletedItems[_e9]==="undefined");var _eb={};_eb[this._storeRefPropName]=this;_eb[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_e9]=_eb;_eb[_ea]=[_e9];}this._arrayOfAllItems.push(_eb);var _ec=null;if(_e8&&_e8.parent&&_e8.attribute){_ec={item:_e8.parent,attribute:_e8.attribute,oldValue:undefined};var _ed=this.getValues(_e8.parent,_e8.attribute);if(_ed&&_ed.length>0){var _ee=_ed.slice(0,_ed.length);if(_ed.length===1){_ec.oldValue=_ed[0];}else{_ec.oldValue=_ed.slice(0,_ed.length);}_ee.push(_eb);this._setValueOrValues(_e8.parent,_e8.attribute,_ee,false);_ec.newValue=this.getValues(_e8.parent,_e8.attribute);}else{this._setValueOrValues(_e8.parent,_e8.attribute,_eb,false);_ec.newValue=_eb;}}else{_eb[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_eb);}this._pending._newItems[_e9]=_eb;for(var key in _e7){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _ef=_e7[key];if(!dojo.isArray(_ef)){_ef=[_ef];}_eb[key]=_ef;if(this.referenceIntegrity){for(var i=0;i<_ef.length;i++){var val=_ef[i];if(this.isItem(val)){this._addReferenceToMap(val,_eb,key);}}}}this.onNew(_eb,_ec);return _eb;},_removeArrayElement:function(_f0,_f1){var _f2=dojo.indexOf(_f0,_f1);if(_f2!=-1){_f0.splice(_f2,1);return true;}return false;},deleteItem:function(_f3){this._assert(!this._saveInProgress);this._assertIsItem(_f3);var _f4=_f3[this._itemNumPropName];var _f5=this.getIdentity(_f3);if(this.referenceIntegrity){var _f6=this.getAttributes(_f3);if(_f3[this._reverseRefMap]){_f3["backup_"+this._reverseRefMap]=dojo.clone(_f3[this._reverseRefMap]);}dojo.forEach(_f6,function(_f7){dojo.forEach(this.getValues(_f3,_f7),function(_f8){if(this.isItem(_f8)){if(!_f3["backupRefs_"+this._reverseRefMap]){_f3["backupRefs_"+this._reverseRefMap]=[];}_f3["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_f8),attr:_f7});this._removeReferenceFromMap(_f8,_f3,_f7);}},this);},this);var _f9=_f3[this._reverseRefMap];if(_f9){for(var _fa in _f9){var _fb=null;if(this._itemsByIdentity){_fb=this._itemsByIdentity[_fa];}else{_fb=this._arrayOfAllItems[_fa];}if(_fb){for(var _fc in _f9[_fa]){var _fd=this.getValues(_fb,_fc)||[];var _fe=dojo.filter(_fd,function(_ff){return !(this.isItem(_ff)&&this.getIdentity(_ff)==_f5);},this);this._removeReferenceFromMap(_f3,_fb,_fc);if(_fe.length<_fd.length){this._setValueOrValues(_fb,_fc,_fe,true);}}}}}}this._arrayOfAllItems[_f4]=null;_f3[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_f5];}this._pending._deletedItems[_f5]=_f3;if(_f3[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_f3);}this.onDelete(_f3);return true;},setValue:function(item,_100,_101){return this._setValueOrValues(item,_100,_101,true);},setValues:function(item,_102,_103){return this._setValueOrValues(item,_102,_103,true);},unsetAttribute:function(item,_104){return this._setValueOrValues(item,_104,[],true);},_setValueOrValues:function(item,_105,_106,_107){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_105));this._assert(typeof _106!=="undefined");var _108=this._getIdentifierAttribute();if(_105==_108){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _109=this._getValueOrValues(item,_105);var _10a=this.getIdentity(item);if(!this._pending._modifiedItems[_10a]){var _10b={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_10b[key]=item[key];}else{if(key===this._reverseRefMap){_10b[key]=dojo.clone(item[key]);}else{_10b[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_10a]=_10b;}var _10c=false;if(dojo.isArray(_106)&&_106.length===0){_10c=delete item[_105];_106=undefined;if(this.referenceIntegrity&&_109){var _10d=_109;if(!dojo.isArray(_10d)){_10d=[_10d];}for(var i=0;i<_10d.length;i++){var _10e=_10d[i];if(this.isItem(_10e)){this._removeReferenceFromMap(_10e,item,_105);}}}}else{var _10f;if(dojo.isArray(_106)){var _110=_106;_10f=_106.slice(0,_106.length);}else{_10f=[_106];}if(this.referenceIntegrity){if(_109){var _10d=_109;if(!dojo.isArray(_10d)){_10d=[_10d];}var map={};dojo.forEach(_10d,function(_111){if(this.isItem(_111)){var id=this.getIdentity(_111);map[id.toString()]=true;}},this);dojo.forEach(_10f,function(_112){if(this.isItem(_112)){var id=this.getIdentity(_112);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_112,item,_105);}}},this);for(var rId in map){var _113;if(this._itemsByIdentity){_113=this._itemsByIdentity[rId];}else{_113=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_113,item,_105);}}else{for(var i=0;i<_10f.length;i++){var _10e=_10f[i];if(this.isItem(_10e)){this._addReferenceToMap(_10e,item,_105);}}}}item[_105]=_10f;_10c=true;}if(_107){this.onSet(item,_105,_109,_106);}return _10c;},_addReferenceToMap:function(_114,_115,_116){var _117=this.getIdentity(_115);var _118=_114[this._reverseRefMap];if(!_118){_118=_114[this._reverseRefMap]={};}var _119=_118[_117];if(!_119){_119=_118[_117]={};}_119[_116]=true;},_removeReferenceFromMap:function(_11a,_11b,_11c){var _11d=this.getIdentity(_11b);var _11e=_11a[this._reverseRefMap];var _11f;if(_11e){for(_11f in _11e){if(_11f==_11d){delete _11e[_11f][_11c];if(this._isEmpty(_11e[_11f])){delete _11e[_11f];}}}if(this._isEmpty(_11e)){delete _11a[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){console.log("Item: ["+this.getIdentity(item)+"] is referenced by: "+dojo.toJson(item[this._reverseRefMap]));}}},_getValueOrValues:function(item,_120){var _121=undefined;if(this.hasAttribute(item,_120)){var _122=this.getValues(item,_120);if(_122.length==1){_121=_122[0];}else{_121=_122;}}return _121;},_flatten:function(_123){if(this.isItem(_123)){var item=_123;var _124=this.getIdentity(item);var _125={_reference:_124};return _125;}else{if(typeof _123==="object"){for(var type in this._datatypeMap){var _126=this._datatypeMap[type];if(dojo.isObject(_126)&&!dojo.isFunction(_126)){if(_123 instanceof _126.type){if(!_126.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_126.serialize(_123)};}}else{if(_123 instanceof _126){return {_type:type,_value:_123.toString()};}}}}return _123;}},_getNewFileContentString:function(){var _127={};var _128=this._getIdentifierAttribute();if(_128!==Number){_127.identifier=_128;}if(this._labelAttr){_127.label=this._labelAttr;}_127.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _129={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _12a=key;var _12b=this.getValues(item,_12a);if(_12b.length==1){_129[_12a]=this._flatten(_12b[0]);}else{var _12c=[];for(var j=0;j<_12b.length;++j){_12c.push(this._flatten(_12b[j]));_129[_12a]=_12c;}}}}_127.items.push(_129);}}var _12d=true;return dojo.toJson(_127,_12d);},_isEmpty:function(_12e){var _12f=true;if(dojo.isObject(_12e)){var i;for(i in _12e){_12f=false;break;}}else{if(dojo.isArray(_12e)){if(_12e.length>0){_12f=false;}}}return _12f;},save:function(_130){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _131=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_130&&_130.onComplete){var _132=_130.scope||dojo.global;_130.onComplete.call(_132);}};var _133=function(err){self._saveInProgress=false;if(_130&&_130.onError){var _134=_130.scope||dojo.global;_130.onError.call(_134,err);}};if(this._saveEverything){var _135=this._getNewFileContentString();this._saveEverything(_131,_133,_135);}if(this._saveCustom){this._saveCustom(_131,_133);}if(!this._saveEverything&&!this._saveCustom){_131();}},revert:function(){this._assert(!this._saveInProgress);var _136;for(_136 in this._pending._modifiedItems){var _137=this._pending._modifiedItems[_136];var _138=null;if(this._itemsByIdentity){_138=this._itemsByIdentity[_136];}else{_138=this._arrayOfAllItems[_136];}_137[this._storeRefPropName]=this;for(key in _138){delete _138[key];}dojo.mixin(_138,_137);}var _139;for(_136 in this._pending._deletedItems){_139=this._pending._deletedItems[_136];_139[this._storeRefPropName]=this;var _13a=_139[this._itemNumPropName];if(_139["backup_"+this._reverseRefMap]){_139[this._reverseRefMap]=_139["backup_"+this._reverseRefMap];delete _139["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_13a]=_139;if(this._itemsByIdentity){this._itemsByIdentity[_136]=_139;}if(_139[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_139);}}for(_136 in this._pending._deletedItems){_139=this._pending._deletedItems[_136];if(_139["backupRefs_"+this._reverseRefMap]){dojo.forEach(_139["backupRefs_"+this._reverseRefMap],function(_13b){var _13c;if(this._itemsByIdentity){_13c=this._itemsByIdentity[_13b.id];}else{_13c=this._arrayOfAllItems[_13b.id];}this._addReferenceToMap(_13c,_139,_13b.attr);},this);delete _139["backupRefs_"+this._reverseRefMap];}}for(_136 in this._pending._newItems){var _13d=this._pending._newItems[_136];_13d[this._storeRefPropName]=null;this._arrayOfAllItems[_13d[this._itemNumPropName]]=null;if(_13d[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_13d);}if(this._itemsByIdentity){delete this._itemsByIdentity[_136];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _13e=this.getIdentity(item);return new Boolean(this._pending._newItems[_13e]||this._pending._modifiedItems[_13e]||this._pending._deletedItems[_13e]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_13f,_140,_141){},onNew:function(_142,_143){},onDelete:function(_144){},close:function(_145){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _146=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _147=dojo._docScroll();return {w:_146.clientWidth,h:_146.clientHeight,l:_147.x,t:_147.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){node=dojo.byId(node);var body,doc=node.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){body=dojo.body();var _148=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_148,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_148.removeChild(div);body.removeChild(_148);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _149=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_14a=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_149,"last");dojo.window.position_fixed_support=dojo.position(_14a).x!=dojo.position(_149).x;_149.removeChild(_14a);body.removeChild(_149);}try{body=doc.body||doc.getElementsByTagName("body")[0];var html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if(node==body||node==html){return;}if(!(dojo.isMozilla||isIE||isWK||dojo.isOpera)&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _14b=doc.compatMode=="BackCompat",_14c=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_14d=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_14e=(isWK||_14b)?body:html,_14f=pos||dojo.position(node),el=node.parentNode,_150=function(el){return (isIE<=6||(isIE==7&&_14b))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_150(node)){return;}while(el){if(el==body){el=_14e;}var _151=dojo.position(el),_152=_150(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_14e){_151.w=_14c;_151.h=_14d;if(_14e==html&&isIE&&rtl){_151.x+=_14e.offsetWidth-_151.w;}if(_151.x<0||!isIE||isIE>=9){_151.x=0;}if(_151.y<0||!isIE||isIE>=9){_151.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_151.w-=pb.w;_151.h-=pb.h;_151.x+=pb.l;_151.y+=pb.t;var _153=el.clientWidth,_154=_151.w-_153;if(_153>0&&_154>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_151.x+=_154;}_151.w=_153;}_153=el.clientHeight;_154=_151.h-_153;if(_153>0&&_154>0){_151.h=_153;}}if(_152){if(_151.y<0){_151.h+=_151.y;_151.y=0;}if(_151.x<0){_151.w+=_151.x;_151.x=0;}if(_151.y+_151.h>_14d){_151.h=_14d-_151.y;}if(_151.x+_151.w>_14c){_151.w=_14c-_151.x;}}var l=_14f.x-_151.x,t=_14f.y-_151.y,r=l+_14f.w-_151.w,bot=t+_14f.h-_151.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_14e||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_14b)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_14f.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_14e||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_14f.y-=s;}el=(el!=_14e)&&!_152&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_155){if(this._hash[_155.id]){throw new Error("Tried to register widget with id=="+_155.id+" but that id is already registered");}this._hash[_155.id]=_155;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_156){_156=_156||dojo.global;var i=0,id;for(id in this._hash){func.call(_156,this._hash[id],i++,this._hash);}return this;},filter:function(_157,_158){_158=_158||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_157.call(_158,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_159;for(id in this._hash){_159=this._hash[id];if(_159.declaredClass==cls){res.add(_159);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_15a){return dojo.map(this.toArray(),func,_15a);},every:function(func,_15b){_15b=_15b||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_15b,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_15c){_15c=_15c||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_15c,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_15d=dojo.hasAttr,_15e=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _15f={};dijit.getUniqueId=function(_160){var id;do{id=_160+"_"+(_160 in _15f?++_15f[_160]:_15f[_160]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _161=[];function _162(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _163=node.getAttribute("widgetId");if(_163){var _164=hash[_163];if(_164){_161.push(_164);}}else{_162(node);}}}};_162(root);return _161;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_165){if(!_165._destroyed){if(_165.destroyRecursive){_165.destroyRecursive();}else{if(_165.destroy){_165.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _166=(dijit._isElementShown=function(elem){var s=_15e(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _15d(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _167=elem.contentDocument;if("designMode" in _167&&_167.designMode=="on"){return true;}body=_167.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");default:return elem.contentEditable=="true";}};var _168=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_15d(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _169,last,_16a,_16b,_16c,_16d,_16e={};function _16f(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _170=function(_171){dojo.query("> *",_171).forEach(function(_172){if((dojo.isIE<=9&&_172.scopeName!=="HTML")||!_166(_172)){return;}if(_168(_172)){var _173=attr(_172,"tabIndex");if(!_15d(_172,"tabIndex")||_173==0){if(!_169){_169=_172;}last=_172;}else{if(_173>0){if(!_16a||_173<_16b){_16b=_173;_16a=_172;}if(!_16c||_173>=_16d){_16d=_173;_16c=_172;}}}var rn=_16f(_172);if(dojo.attr(_172,"checked")&&rn){_16e[rn]=_172;}}if(_172.nodeName.toUpperCase()!="SELECT"){_170(_172);}});};if(_166(root)){_170(root);}function rs(node){return _16e[_16f(node)]||node;};return {first:rs(_169),last:rs(last),lowest:rs(_16a),highest:rs(_16c)};};dijit.getFirstInTabbingOrder=function(root){var _174=dijit._getTabNavigable(dojo.byId(root));return _174.lowest?_174.lowest:_174.first;};dijit.getLastInTabbingOrder=function(root){var _175=dijit._getTabNavigable(dojo.byId(root));return _175.last?_175.last:_175.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_176){if(_176){dojo.mixin(this,_176);}},get:function(name){return this[name];},set:function(name,_177){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _178=this[name];this[name]=_177;if(this._watchCallbacks){this._watchCallbacks(name,_178,_177);}return this;},watch:function(name,_179){var _17a=this._watchCallbacks;if(!_17a){var self=this;_17a=this._watchCallbacks=function(name,_17b,_17c,_17d){var _17e=function(_17f){if(_17f){_17f=_17f.slice();for(var i=0,l=_17f.length;i<l;i++){try{_17f[i].call(self,name,_17b,_17c);}catch(e){console.error(e);}}}};_17e(_17a["_"+name]);if(!_17d){_17e(_17a["*"]);}};}if(!_179&&typeof name==="function"){_179=name;name="*";}else{name="_"+name;}var _180=_17a[name];if(typeof _180!=="object"){_180=_17a[name]=[];}_180.push(_179);return {unwatch:function(){_180.splice(dojo.indexOf(_180,_179),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_181,_182){this.create(_181,_182);},create:function(_183,_184){this.srcNodeRef=dojo.byId(_184);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_183){this.params=_183;dojo._mixin(this,_183);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _185=this.srcNodeRef;if(_185&&_185.parentNode&&this.domNode!==_185){_185.parentNode.replaceChild(this.domNode,_185);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _186=function(attr,_187){if((_187.params&&attr in _187.params)||_187[attr]){_187.set(attr,_187[attr]);}};for(var attr in this.attributeMap){_186(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_186(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_188,_189=ctor.prototype;for(var _18a in _189){if(dojo.isFunction(_189[_18a])&&(_188=_18a.match(/^_set([a-zA-Z]*)Attr$/))&&_188[1]){r.push(_188[1].charAt(0).toLowerCase()+_188[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _18b=this.baseClass.split(" ");if(!this.isLeftToRight()){_18b=_18b.concat(dojo.map(_18b,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_18b);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_18c){this._beingDestroyed=true;this.destroyDescendants(_18c);this.destroy(_18c);},destroy:function(_18d){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_18e){dfe(_18e,d.disconnect);});dfe(this._subscribes,function(_18f){dun(_18f);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_18d);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_190){if(this.bgIframe){this.bgIframe.destroy(_190);delete this.bgIframe;}if(this.domNode){if(_190){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_190){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_191){dojo.forEach(this.getChildren(),function(_192){if(_192.destroyRecursive){_192.destroyRecursive(_191);}});},uninitialize:function(){return false;},_setClassAttr:function(_193){var _194=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_194,_193,this["class"]);this._set("class",_193);},_setStyleAttr:function(_195){var _196=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_195)){dojo.style(_196,_195);}else{if(_196.style.cssText){_196.style.cssText+="; "+_195;}else{_196.style.cssText=_195;}}this._set("style",_195);},_attrToDom:function(attr,_197){var _198=this.attributeMap[attr];dojo.forEach(dojo.isArray(_198)?_198:[_198],function(_199){var _19a=this[_199.node||_199||"domNode"];var type=_199.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_197)){_197=dojo.hitch(this,_197);}var _19b=_199.attribute?_199.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_19a,_19b,_197);break;case "innerText":_19a.innerHTML="";_19a.appendChild(dojo.doc.createTextNode(_197));break;case "innerHTML":_19a.innerHTML=_197;break;case "class":dojo.replaceClass(_19a,_197,this[attr]);break;}},this);},get:function(name){var _19c=this._getAttrNames(name);return this[_19c.g]?this[_19c.g]():this[name];},set:function(name,_19d){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _19e=this._getAttrNames(name);if(this[_19e.s]){var _19f=this[_19e.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_19d);}this._set(name,_19d);}return _19f||this;},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return (apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(name,_1a0){var _1a1=this[name];this[name]=_1a0;if(this._watchCallbacks&&this._created&&_1a0!==_1a1){this._watchCallbacks(name,_1a1,_1a0);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_1a2,_1a3){var _1a4=[dojo._connect(obj,_1a2,this,_1a3)];this._connects.push(_1a4);return _1a4;},disconnect:function(_1a5){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1a5){dojo.forEach(_1a5,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_1a6,_1a7){var _1a8=dojo.subscribe(_1a6,this,_1a7);this._subscribes.push(_1a8);return _1a8;},unsubscribe:function(_1a9){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_1a9){dojo.unsubscribe(_1a9);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_1aa,_1ab){if(_1aa.declaredClass&&_1aa.addChild){_1aa.addChild(this,_1ab);}else{dojo.place(this.domNode,_1aa,_1ab);}return this;},defer:function(fcn,_1ac){var _1ad=setTimeout(dojo.hitch(this,function(){_1ad=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_1ac||0);return {remove:function(){if(_1ad){clearTimeout(_1ad);_1ad=null;}return null;}};}});})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_1ae){var _1af=dojo.doc,mark=_1ae.mark;if(mark){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(mark.pRange){var r=mark;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(mark);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_1af.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_1af.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_1af.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_1b0){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_1b0||dojo.global,dijit.getBookmark),openedForWindow:_1b0};},focus:function(_1b1){if(!_1b1){return;}var node="node" in _1b1?_1b1.node:_1b1,_1b2=_1b1.bookmark,_1b3=_1b1.openedForWindow,_1b4=_1b2?_1b2.isCollapsed:false;if(node){var _1b5=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_1b5&&_1b5.focus){try{_1b5.focus();}catch(e){}}dijit._onFocusNode(node);}if(_1b2&&dojo.withGlobal(_1b3||dojo.global,dijit.isCollapsed)&&!_1b4){if(_1b3){_1b3.focus();}try{dojo.withGlobal(_1b3||dojo.global,dijit.moveToBookmark,null,[_1b2]);}catch(e2){}}},_activeStack:[],registerIframe:function(_1b6){return dijit.registerWin(_1b6.contentWindow,_1b6);},unregisterIframe:function(_1b7){dijit.unregisterWin(_1b7);},registerWin:function(_1b8,_1b9){var _1ba=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_1b9||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_1b8.document.documentElement:_1b8.document;if(doc){if(dojo.isIE){_1b8.document.body.attachEvent("onmousedown",_1ba);var _1bb=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_1b9||evt.srcElement);}else{dijit._onTouchNode(_1b9||evt.srcElement);}};doc.attachEvent("onactivate",_1bb);var _1bc=function(evt){dijit._onBlurNode(_1b9||evt.srcElement);};doc.attachEvent("ondeactivate",_1bc);return function(){_1b8.document.detachEvent("onmousedown",_1ba);doc.detachEvent("onactivate",_1bb);doc.detachEvent("ondeactivate",_1bc);doc=null;};}else{doc.body.addEventListener("mousedown",_1ba,true);var _1bd=function(evt){dijit._onFocusNode(_1b9||evt.target);};doc.addEventListener("focus",_1bd,true);var _1be=function(evt){dijit._onBlurNode(_1b9||evt.target);};doc.addEventListener("blur",_1be,true);return function(){doc.body.removeEventListener("mousedown",_1ba,true);doc.removeEventListener("focus",_1bd,true);doc.removeEventListener("blur",_1be,true);doc=null;};}}},unregisterWin:function(_1bf){_1bf&&_1bf();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _1c0=[];try{while(node){var _1c1=dojo.attr(node,"dijitPopupParent");if(_1c1){node=dijit.byId(_1c1).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_1c2=id&&dijit.byId(id);if(_1c2&&!(by=="mouse"&&_1c2.get("disabled"))){_1c0.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_1c0,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_1c3,by){var _1c4=dijit._activeStack;dijit._activeStack=_1c3;for(var _1c5=0;_1c5<Math.min(_1c4.length,_1c3.length);_1c5++){if(_1c4[_1c5]!=_1c3[_1c5]){break;}}var _1c6;for(var i=_1c4.length-1;i>=_1c5;i--){_1c6=dijit.byId(_1c4[i]);if(_1c6){_1c6._focused=false;_1c6.set("focused",false);_1c6._hasBeenBlurred=true;if(_1c6._onBlur){_1c6._onBlur(by);}dojo.publish("widgetBlur",[_1c6,by]);}}for(i=_1c5;i<_1c3.length;i++){_1c6=dijit.byId(_1c3[i]);if(_1c6){_1c6._focused=true;_1c6.set("focused",true);if(_1c6._onFocus){_1c6._onFocus(by);}dojo.publish("widgetFocus",[_1c6,by]);}}}});dojo.addOnLoad(function(){var _1c7=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_1c7);_1c7=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_1c8){this.pairs=[];this.returnWrappers=_1c8||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_1c9,wrap,_1ca,_1cb){this.pairs[((_1cb)?"unshift":"push")]([name,_1c9,wrap,_1ca]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_1cc,_1cd){var _1ce=dojo.map(_1cc,function(_1cf){var c={corner:_1cf,pos:{x:pos.x,y:pos.y}};if(_1cd){c.pos.x+=_1cf.charAt(1)=="L"?_1cd.x:-_1cd.x;c.pos.y+=_1cf.charAt(0)=="T"?_1cd.y:-_1cd.y;}return c;});return dijit._place(node,_1ce);};dijit._place=function(node,_1d0,_1d1,_1d2){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1d0,function(_1d3){var _1d4=_1d3.corner;var pos=_1d3.pos;var _1d5=0;var _1d6={w:_1d4.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_1d4.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_1d1){var res=_1d1(node,_1d3.aroundCorner,_1d4,_1d6,_1d2);_1d5=typeof res=="undefined"?0:res;}var _1d7=node.style;var _1d8=_1d7.display;var _1d9=_1d7.visibility;_1d7.visibility="hidden";_1d7.display="";var mb=dojo.marginBox(node);_1d7.display=_1d8;_1d7.visibility=_1d9;var _1da=Math.max(view.l,_1d4.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_1db=Math.max(view.t,_1d4.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_1d4.charAt(1)=="L"?(_1da+mb.w):pos.x),endY=Math.min(view.t+view.h,_1d4.charAt(0)=="T"?(_1db+mb.h):pos.y),_1dc=endX-_1da,_1dd=endY-_1db;_1d5+=(mb.w-_1dc)+(mb.h-_1dd);if(best==null||_1d5<best.overflow){best={corner:_1d4,aroundCorner:_1d3.aroundCorner,x:_1da,y:_1db,w:_1dc,h:_1dd,overflow:_1d5,spaceAvailable:_1d6};}return !_1d5;});if(best.overflow&&_1d1){_1d1(node,best.aroundCorner,best.corner,best.spaceAvailable,_1d2);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_1de,_1df,_1e0){_1de=dojo.byId(_1de);var _1e1=dojo.position(_1de,true);return dijit._placeOnScreenAroundRect(node,_1e1.x,_1e1.y,_1e1.w,_1e1.h,_1df,_1e0);};dijit.placeOnScreenAroundRectangle=function(node,_1e2,_1e3,_1e4){return dijit._placeOnScreenAroundRect(node,_1e2.x,_1e2.y,_1e2.width,_1e2.height,_1e3,_1e4);};dijit._placeOnScreenAroundRect=function(node,x,y,_1e5,_1e6,_1e7,_1e8){var _1e9=[];for(var _1ea in _1e7){_1e9.push({aroundCorner:_1ea,corner:_1e7[_1ea],pos:{x:x+(_1ea.charAt(1)=="L"?0:_1e5),y:y+(_1ea.charAt(0)=="T"?0:_1e6)}});}return dijit._place(node,_1e9,_1e8,{w:_1e5,h:_1e6});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_1eb,_1ec,_1ed){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_1ee,_1ef){var _1f0={};dojo.forEach(_1ee,function(pos){switch(pos){case "after":_1f0[_1ef?"BR":"BL"]=_1ef?"BL":"BR";break;case "before":_1f0[_1ef?"BL":"BR"]=_1ef?"BR":"BL";break;case "below-alt":_1ef=!_1ef;case "below":_1f0[_1ef?"BL":"BR"]=_1ef?"TL":"TR";_1f0[_1ef?"BR":"BL"]=_1ef?"TR":"TL";break;case "above-alt":_1ef=!_1ef;case "above":default:_1f0[_1ef?"TL":"TR"]=_1ef?"BL":"BR";_1f0[_1ef?"TR":"TL"]=_1ef?"BR":"BL";break;}});return _1f0;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_1f1){var node=_1f1.domNode||_1f1,_1f2=_1f1.declaredClass?_1f1._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_1f2){_1f2=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_1f2.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_1f1.declaredClass){_1f1._popupWrapper=_1f2;dojo.connect(_1f1,"destroy",function(){dojo.destroy(_1f2);delete _1f1._popupWrapper;});}}return _1f2;},moveOffScreen:function(_1f3){var _1f4=this._createWrapper(_1f3);dojo.style(_1f4,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_1f5){var _1f6=this._createWrapper(_1f5);dojo.style(_1f6,"display","none");},getTopPopup:function(){var _1f7=this._stack;for(var pi=_1f7.length-1;pi>0&&_1f7[pi].parent===_1f7[pi-1].widget;pi--){}return _1f7[pi];},open:function(args){var _1f8=this._stack,_1f9=args.popup,_1fa=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_1fb=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_1f8.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_1f8[_1f8.length-1].widget.domNode))){dijit.popup.close(_1f8[_1f8.length-1].widget);}var _1fc=this._createWrapper(_1f9);dojo.attr(_1fc,{id:id,style:{zIndex:this._beginZIndex+_1f8.length},"class":"dijitPopup "+(_1f9.baseClass||_1f9["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_1f9.bgIframe){_1f9.bgIframe=new dijit.BackgroundIframe(_1fc);}}var best=_1fb?dijit.placeOnScreenAroundElement(_1fc,_1fb,_1fa,_1f9.orient?dojo.hitch(_1f9,"orient"):null):dijit.placeOnScreen(_1fc,args,_1fa=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_1fc.style.display="";_1fc.style.visibility="visible";_1f9.domNode.style.visibility="visible";var _1fd=[];_1fd.push(dojo.connect(_1fc,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _1fe=this.getTopPopup();if(_1fe&&_1fe.onCancel){_1fe.onCancel();}}}}));if(_1f9.onCancel){_1fd.push(dojo.connect(_1f9,"onCancel",args.onCancel));}_1fd.push(dojo.connect(_1f9,_1f9.onExecute?"onExecute":"onChange",this,function(){var _1ff=this.getTopPopup();if(_1ff&&_1ff.onExecute){_1ff.onExecute();}}));_1f8.push({widget:_1f9,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1fd});if(_1f9.onOpen){_1f9.onOpen(best);}return best;},close:function(_200){var _201=this._stack;while((_200&&dojo.some(_201,function(elem){return elem.widget==_200;}))||(!_200&&_201.length)){var top=_201.pop(),_202=top.widget,_203=top.onClose;if(_202.onClose){_202.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_202&&_202.domNode){this.hide(_202);}if(_203){_203();}}}};dijit._frames=new function(){var _204=[];this.pop=function(){var _205;if(_204.length){_205=_204.pop();_205.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_205=dojo.doc.createElement(html);}else{_205=dojo.create("iframe");_205.src="javascript:\"\"";_205.className="dijitBackgroundIframe";dojo.style(_205,"opacity",0.1);}_205.tabIndex=-1;dijit.setWaiRole(_205,"presentation");}return _205;};this.push=function(_206){_206.style.display="none";_204.push(_206);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _207=(this.iframe=dijit._frames.pop());node.appendChild(_207);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_207,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_208=d.isOpera,maj=Math.floor,ff=d.isFF,_209=d.boxModel.replace(/-/,""),_20a={dj_quirks:d.isQuirks,dj_opera:_208,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_20a["dj_ie"]=true;_20a["dj_ie"+maj(ie)]=true;_20a["dj_iequirks"]=d.isQuirks;}if(ff){_20a["dj_ff"+maj(ff)]=true;}_20a["dj_"+_209]=true;var _20b="";for(var clz in _20a){if(_20a[clz]){_20b+=clz+" ";}}html.className=d.trim(html.className+" "+_20b);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _20c="dj_rtl dijitRtl "+_20b.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_20c);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_20d,node,_20e,obj,_20f,_210,_211){if(obj!=this._obj){this.stop();this._initialDelay=_210||500;this._subsequentDelay=_20f||0.9;this._minDelay=_211||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_20d,_20e);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_212,_213,_214,_215,_216,_217){if(_212.keyCode){_212.charOrCode=_212.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_212.charCode){_212.charOrCode=String.fromCharCode(_212.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_212.charOrCode&&(_212.ctrlKey===undefined||_212.ctrlKey==evt.ctrlKey)&&(_212.altKey===undefined||_212.altKey==evt.altKey)&&(_212.metaKey===undefined||_212.metaKey==(evt.metaKey||false))&&(_212.shiftKey===undefined||_212.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_213,node,_214,_212,_215,_216,_217);}else{if(dijit.typematic._obj==_212){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_212){dijit.typematic.stop();}})];},addMouseListener:function(node,_218,_219,_21a,_21b,_21c){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_218,node,_219,node,_21a,_21b,_21c);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_218,node,_219,node,_21a,_21b,_21c);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_21d,_21e,_21f,_220,_221,_222,_223,_224){return this.addKeyListener(_21e,_21f,_220,_221,_222,_223,_224).concat(this.addMouseListener(_21d,_220,_221,_222,_223,_224));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _225=cs.backgroundImage;var _226=(cs.borderTopColor==cs.borderRightColor)||(_225!=null&&(_225=="none"||_225=="url(invalid-url:)"));dojo[_226?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _227=this.getWaiRole(elem);return role?(_227.indexOf(role)>-1):(_227.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _228=dojo.attr(elem,"role");if(!_228){return;}if(role){var t=dojo.trim((" "+_228+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_229){return elem.hasAttribute?elem.hasAttribute("aria-"+_229):!!elem.getAttribute("aria-"+_229);},getWaiState:function(elem,_22a){return elem.getAttribute("aria-"+_22a)||"";},setWaiState:function(elem,_22b,_22c){elem.setAttribute("aria-"+_22b,_22c);},removeWaiState:function(elem,_22d){elem.removeAttribute("aria-"+_22d);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_22e,_22f){if(_22e&&dojo.isFunction(_22e._onConnect)){_22e._onConnect(_22f);}});dijit._connectOnUseEventHandler=function(_230){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _231=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_231);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_231);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_232,_233){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_234){if(_234 in this._deferredConnects){var _235=this[this._deferredConnects[_234]||"domNode"];this.connect(_235,_234.toLowerCase(),_234);delete this._deferredConnects[_234];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_236){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_236);},attr:function(name,_237){if(dojo.config.isDebug){var _238=arguments.callee._ach||(arguments.callee._ach={}),_239=(arguments.callee.caller||"unknown caller").toString();if(!_238[_239]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_239,"","2.0");_238[_239]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_23a,_23b){var d=dojo,dc=d._connect,_23c=this.inherited(arguments,[obj,_23a=="ondijitclick"?"onclick":_23a,_23b]);if(_23a=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_23b);_23c.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _23c;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_23d,map,_23e,_23f){_23f=_23f||dojo.global;_23e=_23e?dojo.hitch(_23f,_23e):function(v){return v;};return _23d.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_240,key,_241){var _242=dojo.getObject(key,false,map);if(_241){_242=dojo.getObject(_241,false,_23f).call(_23f,_242,key);}return _23e(_242,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_243,url,_244){if(typeof _243=="string"){var _245=dojo.moduleUrl(_243,url);}else{_245=_243;_244=url;}var key=_245.toString();var val=_244;if(_244!=undefined&&!dojo.isString(_244)){val=("value" in _244?_244.value:undefined);}var _246=_244&&_244.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_246?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_246?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _247=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_247){val=_247[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _248=this.declaredClass,_249=this;return dojo.string.substitute(tmpl,this,function(_24a,key){if(key.charAt(0)=="!"){_24a=dojo.getObject(key.substr(1),false,_249);}if(typeof _24a=="undefined"){throw new Error(_248+" template:"+key);}if(_24a==null){return "";}return key.charAt(0)=="!"?_24a:_24a.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _24b=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_24b)){node=dojo._toDom(this._stringRepl(_24b));if(node.nodeType!=1){throw new Error("Invalid template: "+_24b);}}else{node=_24b.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_24c){var dest=this.containerNode;if(_24c&&dest){while(_24c.hasChildNodes()){dest.appendChild(_24c.firstChild);}}},_attachTemplateNodes:function(_24d,_24e){_24e=_24e||function(n,p){return n.getAttribute(p);};var _24f=dojo.isArray(_24d)?_24d:(_24d.all||_24d.getElementsByTagName("*"));var x=dojo.isArray(_24d)?0:-1;for(;x<_24f.length;x++){var _250=(x==-1)?_24d:_24f[x];if(this.widgetsInTemplate&&(_24e(_250,"dojoType")||_24e(_250,"data-dojo-type"))){continue;}var _251=_24e(_250,"dojoAttachPoint")||_24e(_250,"data-dojo-attach-point");if(_251){var _252,_253=_251.split(/\s*,\s*/);while((_252=_253.shift())){if(dojo.isArray(this[_252])){this[_252].push(_250);}else{this[_252]=_250;}this._attachPoints.push(_252);}}var _254=_24e(_250,"dojoAttachEvent")||_24e(_250,"data-dojo-attach-event");if(_254){var _255,_256=_254.split(/\s*,\s*/);var trim=dojo.trim;while((_255=_256.shift())){if(_255){var _257=null;if(_255.indexOf(":")!=-1){var _258=_255.split(":");_255=trim(_258[0]);_257=trim(_258[1]);}else{_255=trim(_255);}if(!_257){_257=_255;}this._attachEvents.push(this.connect(_250,_255,_257));}}}var role=_24e(_250,"waiRole");if(role){dijit.setWaiRole(_250,role);}var _259=_24e(_250,"waiState");if(_259){dojo.forEach(_259.split(/\s*,\s*/),function(_25a){if(_25a.indexOf("-")!=-1){var pair=_25a.split("-");dijit.setWaiState(_250,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_25b){delete this[_25b];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_25c,_25d,_25e){var _25f=dijit._Templated._templateCache;var key=_25d||_25c;var _260=_25f[key];if(_260){try{if(!_260.ownerDocument||_260.ownerDocument==dojo.doc){return _260;}}catch(e){}dojo.destroy(_260);}if(!_25d){_25d=dojo.cache(_25c,{sanitize:true});}_25d=dojo.string.trim(_25d);if(_25e||_25d.match(/\$\{([^\}]+)\}/g)){return (_25f[key]=_25d);}else{var node=dojo._toDom(_25d);if(node.nodeType!=1){throw new Error("Invalid template: "+_25d);}return (_25f[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _261=dijit._Templated._templateCache;for(var key in _261){var _262=_261[key];if(typeof _262=="object"){dojo.destroy(_262);}delete _261[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_263){if(!this.disabled){switch(_263.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _264=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_264);});break;}}},_setStateClass:function(){var _265=this.baseClass.split(" ");function _266(_267){_265=_265.concat(dojo.map(_265,function(c){return c+_267;}),"dijit"+_267);};if(!this.isLeftToRight()){_266("Rtl");}if(this.checked){_266("Checked");}if(this.state){_266(this.state);}if(this.selected){_266("Selected");}if(this.disabled){_266("Disabled");}else{if(this.readOnly){_266("ReadOnly");}else{if(this.active){_266("Active");}else{if(this.hovering){_266("Hover");}}}}if(this._focused){_266("Focused");}var tn=this.stateNode||this.domNode,_268={};dojo.forEach(tn.className.split(" "),function(c){_268[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _268[c];});}dojo.forEach(_265,function(c){_268[c]=true;});var _269=[];for(var c in _268){_269.push(c);}tn.className=_269.join(" ");this._stateClasses=_265;},_trackMouseState:function(node,_26a){var _26b=false,_26c=false,_26d=false;var self=this,cn=dojo.hitch(this,"connect",node);function _26e(){var _26f=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_26a+"Hover",_26b&&!_26c&&!_26f);dojo.toggleClass(node,_26a+"Active",_26c&&!_26f);dojo.toggleClass(node,_26a+"Focused",_26d&&!_26f);};cn("onmouseenter",function(){_26b=true;_26e();});cn("onmouseleave",function(){_26b=false;_26c=false;_26e();});cn("onmousedown",function(){_26c=true;_26e();});cn("onmouseup",function(){_26c=false;_26e();});cn("onfocus",function(){_26d=true;_26e();});cn("onblur",function(){_26d=false;_26e();});this.watch("disabled",_26e);this.watch("readOnly",_26e);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_270){this._set("disabled",_270);dojo.attr(this.focusNode,"disabled",_270);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_270);}dijit.setWaiState(this.focusNode,"disabled",_270);if(_270){this._set("hovering",false);this._set("active",false);var _271="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_271)?_271:[_271],function(_272){var node=this[_272];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_273){dojo.deprecated("setDisabled("+_273+") is deprecated. Use set('disabled',"+_273+") instead.","","2.0");this.set("disabled",_273);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_274){},_onChangeActive:false,_handleOnChange:function(_275,_276){if(this._lastValueReported==undefined&&(_276===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_275;}this._pendingOnChange=this._pendingOnChange||(typeof _275!=typeof this._lastValueReported)||(this.compare(_275,this._lastValueReported)!=0);if((this.intermediateChanges||_276||_276===undefined)&&this._pendingOnChange){this._lastValueReported=_275;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_275);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_277){dojo.deprecated("dijit.form._FormWidget:setValue("+_277+") is deprecated.  Use set('value',"+_277+") instead.","","2.0");this.set("value",_277);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _278=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_278);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_279){dojo.attr(this.focusNode,"readOnly",_279);dijit.setWaiState(this.focusNode,"readonly",_279);this._set("readOnly",_279);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_27a,_27b){this._handleOnChange(_27a,_27b);},_handleOnChange:function(_27c,_27d){this._set("value",_27c);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _27e=this.domNode;var _27f=_27e.parentNode;var _280=_27e.firstChild||_27e;var _281=_280.style.filter;var _282=this;while(_27f&&_27f.clientHeight==0){(function ping(){var _283=_282.connect(_27f,"onscroll",function(e){_282.disconnect(_283);_280.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_280.style.filter=_281;},0);});})();_27f=_27f.parentNode;}}}});}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_284){var _285=_284,opts=this.options||[],l=opts.length;if(_285===undefined){return opts;}if(dojo.isArray(_285)){return dojo.map(_285,"return this.getOptions(item);",this);}if(dojo.isObject(_284)){if(!dojo.some(this.options,function(o,idx){if(o===_285||(o.value&&o.value===_285.value)){_285=idx;return true;}return false;})){_285=-1;}}if(typeof _285=="string"){for(var i=0;i<l;i++){if(opts[i].value===_285){_285=i;break;}}}if(typeof _285=="number"&&_285>=0&&_285<l){return this.options[_285];}return null;},addOption:function(_286){if(!dojo.isArray(_286)){_286=[_286];}dojo.forEach(_286,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_287){if(!dojo.isArray(_287)){_287=[_287];}var _288=this.getOptions(_287);dojo.forEach(_288,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_289){if(!dojo.isArray(_289)){_289=[_289];}dojo.forEach(_289,function(i){var _28a=this.getOptions(i),k;if(_28a){for(k in i){_28a[k]=i[k];}}},this);this._loadChildren();},setStore:function(_28b,_28c,_28d){var _28e=this.store;_28d=_28d||{};if(_28e!==_28b){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_28b&&_28b.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_28b,"onNew",this,"_onNewItem"),dojo.connect(_28b,"onDelete",this,"_onDeleteItem"),dojo.connect(_28b,"onSet",this,"_onSetItem")];}this._set("store",_28b);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_28b){this._loadingStore=true;_28b.fetch(dojo.delegate(_28d,{onComplete:function(_28f,opts){if(this.sortByLabel&&!_28d.sort&&_28f.length){_28f.sort(dojo.data.util.sorter.createSortFunction([{attribute:_28b.getLabelAttributes(_28f[0])[0]}],_28b));}if(_28d.onFetch){_28f=_28d.onFetch.call(this,_28f,opts);}dojo.forEach(_28f,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_28c);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_28f);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _28e;},_setValueAttr:function(_290,_291){if(this._loadingStore){this._pendingValue=_290;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_290)){_290=[_290];}dojo.forEach(_290,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_290[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_290=dojo.filter(_290,function(i){return i&&i.value;});if(!this.multiple&&(!_290[0]||!_290[0].value)&&opts.length){_290[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_290,function(v){return v.value===i.value;});});var val=dojo.map(_290,function(i){return i.value;}),disp=dojo.map(_290,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_291);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_292){_292.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_293){var _294=dojo.some(val,function(v){return _293.option&&(v===_293.option.value);});dojo.toggleClass(_293.domNode,this.baseClass+"SelectedOption",_294);dijit.setWaiState(_293.domNode,"selected",_294);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_295){if(!_295||!_295.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _296=this.store;this.removeOption(_296.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _297=this.store,_298=_297.getLabel(item),_299=(_298?_297.getIdentity(item):null);return {value:_299,label:_298,item:item};},_addOptionForItem:function(item){var _29a=this.store;if(!_29a.isItemLoaded(item)){_29a.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _29b=this._getOptionObjForItem(item);this.addOption(_29b);},constructor:function(_29c){this._oValue=(_29c||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _29d=this.store,_29e={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_29e[i]=this[i];}delete this[i];},this);if(_29d&&_29d.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_29d,this._oValue,_29e);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_29f){},_removeOptionItem:function(_2a0){},_setDisplay:function(_2a1){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_2a2){},onSetStore:function(){}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _2a3=this.dropDown,_2a4=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_2a4){if(dojo.hasClass(t,"dijitPopup")){_2a4=true;}else{t=t.parentNode;}}if(_2a4){t=e.target;if(_2a3.onItemClick){var _2a5;while(t&&!(_2a5=dijit.byNode(t))){t=t.parentNode;}if(_2a5&&_2a5.onClick&&_2a5.getParent){_2a5.getParent().onItemClick(_2a5,e);}}return;}}}if(this._opened&&_2a3.focus&&_2a3.autoFocus!==false){window.setTimeout(dojo.hitch(_2a3,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _2a6={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_2a6+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_2a7=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_2a7.tagName||"").toLowerCase()!=="input"||(_2a7.type&&_2a7.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _2a8=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_2a8);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_2a9){_2a9();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _2aa=this.dropDown,_2ab=_2aa.domNode,_2ac=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_2ab.style.width){this._explicitDDWidth=true;}if(_2ab.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _2ad={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_2ad.width="";}if(!this._explicitDDHeight){_2ad.height="";}dojo.style(_2ab,_2ad);var _2ae=this.maxHeight;if(_2ae==-1){var _2af=dojo.window.getBox(),_2b0=dojo.position(_2ac,false);_2ae=Math.floor(Math.max(_2b0.y,_2af.h-(_2b0.y+_2b0.h)));}if(_2aa.startup&&!_2aa._started){_2aa.startup();}dijit.popup.moveOffScreen(_2aa);var mb=dojo._getMarginSize(_2ab);var _2b1=(_2ae&&mb.h>_2ae);dojo.style(_2ab,{overflowX:"hidden",overflowY:_2b1?"auto":"hidden"});if(_2b1){mb.h=_2ae;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_2ac.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_2ac.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_2aa.resize)){_2aa.resize(mb);}else{dojo.marginBox(_2ab,mb);}}var _2b2=dijit.popup.open({parent:this,popup:_2aa,around:_2ac,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _2b2;},closeDropDown:function(_2b3){if(this._opened){if(_2b3){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_2b4,_2b5){var _2b6=this.containerNode;if(_2b5&&typeof _2b5=="number"){var _2b7=this.getChildren();if(_2b7&&_2b7.length>=_2b5){_2b6=_2b7[_2b5-1].domNode;_2b5="after";}}dojo.place(_2b4.domNode,_2b6,_2b5);if(this._started&&!_2b4._started){_2b4.startup();}},removeChild:function(_2b8){if(typeof _2b8=="number"){_2b8=this.getChildren()[_2b8];}if(_2b8){var node=_2b8.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_2b9){dojo.forEach(this.getChildren(),function(_2ba){_2ba.destroyRecursive(_2b9);});},_getSiblingOfChild:function(_2bb,dir){var node=_2bb.domNode,_2bc=(dir>0?"nextSibling":"previousSibling");do{node=node[_2bc];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_2bd){return dojo.indexOf(this.getChildren(),_2bd);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2be){_2be.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_2bf,_2c0){var _2c1=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_2bf,function(code){_2c1[code]=prev;});dojo.forEach(_2c0,function(code){_2c1[code]=next;});_2c1[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_2c1[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_2c2,_2c3){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_2c2);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _2c4=this._getFirstFocusableChild();if(_2c4){this.focusChild(_2c4);}},focusLastChild:function(){var _2c5=this._getLastFocusableChild();if(_2c5){this.focusChild(_2c5);}},focusNext:function(){var _2c6=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_2c6);},focusPrev:function(){var _2c7=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_2c7,true);},focusChild:function(_2c8,last){if(this.focusedChild&&_2c8!==this.focusedChild){this._onChildBlur(this.focusedChild);}_2c8.set("tabIndex",this.tabIndex);_2c8.focus(last?"end":"start");this._set("focusedChild",_2c8);},_startupChild:function(_2c9){_2c9.set("tabIndex","-1");this.connect(_2c9,"_onFocus",function(){_2c9.set("tabIndex",this.tabIndex);});this.connect(_2c9,"_onBlur",function(){_2c9.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_2ca){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_2cb,dir){if(_2cb){_2cb=this._getSiblingOfChild(_2cb,dir);}var _2cc=this.getChildren();for(var i=0;i<_2cc.length;i++){if(!_2cb){_2cb=_2cc[(dir>0)?0:(_2cc.length-1)];}if(_2cb.isFocusable()){return _2cb;}_2cb=this._getSiblingOfChild(_2cb,dir);}return null;}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _2cd=dijit.getEnclosingWidget(this.domNode.parentNode);return _2cd&&_2cd.isContainer?_2cd:null;},_getSibling:function(_2ce){var node=this.domNode;do{node=node[_2ce+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_2cf){if(_2cf&&!("label" in this.params)){this.set("label",_2cf.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _2d0=this.id+"_text";dojo.attr(this.containerNode,"id",_2d0);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_2d0+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_2d0);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_2d1){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_2d1);},setLabel:function(_2d2){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_2d2);},setDisabled:function(_2d3){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_2d3);},_setDisabledAttr:function(_2d4){dijit.setWaiState(this.focusNode,"disabled",_2d4?"true":"false");this._set("disabled",_2d4);},_setAccelKeyAttr:function(_2d5){this.accelKeyNode.style.display=_2d5?"":"none";this.accelKeyNode.innerHTML=_2d5;dojo.attr(this.containerNode,"colSpan",_2d5?"1":"2");this._set("accelKey",_2d5);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _2d6=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_2d6[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_2d7){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_2d7);dijit.setWaiState(this.domNode,"checked",_2d7);this._set("checked",_2d7);},onChange:function(_2d8){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2d9){_2d9.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_2da){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _2db=this._getTopMenu();if(_2db&&_2db._isMenuBar){_2db.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _2dc=this.currentPopup.parentMenu;if(_2dc.focusedChild){_2dc.focusedChild._setSelected(false);}_2dc.focusedChild=this.currentPopup.from_item;_2dc.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _2dd=item.popup;if(_2dd){this._stopPendingCloseTimer(_2dd);_2dd._pendingClose_timer=setTimeout(function(){_2dd._pendingClose_timer=null;if(_2dd.parentMenu){_2dd.parentMenu.currentPopup=null;}dijit.popup.close(_2dd);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_2de){if(_2de._pendingClose_timer){clearTimeout(_2de._pendingClose_timer);_2de._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _2df=this.focusedChild;if(!_2df){return;}var _2e0=_2df.popup;if(_2e0.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_2e0.parentMenu=this;_2e0.from_item=_2df;var self=this;dijit.popup.open({parent:this,popup:_2e0,around:_2df.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_2df);self._cleanUp();_2df._setSelected(true);self.focusedChild=_2df;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_2e0;_2e0.connect(_2e0.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_2e0.focus){_2e0._focus_timer=setTimeout(dojo.hitch(_2e0,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _2e1=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_2e2){var win=dojo.window.get(this._iframeContentDocument(_2e2))||this._iframeContentDocument(_2e2)["__parent__"]||(_2e2.name&&dojo.doc.frames[_2e2.name])||null;return win;},_iframeContentDocument:function(_2e3){var doc=_2e3.contentDocument||(_2e3.contentWindow&&_2e3.contentWindow.document)||(_2e3.name&&dojo.doc.frames[_2e3.name]&&dojo.doc.frames[_2e3.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _2e4=node,win=this._iframeContentWindow(_2e4);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _2e5={node:node,iframe:_2e4};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_2e5));var _2e6=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_2e4,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_2e4);}})];});_2e5.connects=cn?_2e6(cn):[];if(_2e4){_2e5.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_2e4);cn=dojo.withGlobal(win,dojo.body);_2e5.connects=_2e6(cn);});if(_2e4.addEventListener){_2e4.addEventListener("load",_2e5.onloadHandler,false);}else{_2e4.attachEvent("onload",_2e5.onloadHandler);}}},unBindDomNode:function(_2e7){var node;try{node=dojo.byId(_2e7);}catch(e){return;}var _2e8="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_2e8)){var bid=dojo.attr(node,_2e8)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _2e9=b.iframe;if(_2e9){if(_2e9.removeEventListener){_2e9.removeEventListener("load",b.onloadHandler,false);}else{_2e9.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_2e8);delete this._bindings[bid];}},_scheduleOpen:function(_2ea,_2eb,_2ec){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_2ea,iframe:_2eb,coords:_2ec});}),1);}},_openMyself:function(args){var _2ed=args.target,_2ee=args.iframe,_2ef=args.coords;if(_2ef){if(_2ee){var od=_2ed.ownerDocument,ifc=dojo.position(_2ee,true),win=this._iframeContentWindow(_2ee),_2f0=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_2ee),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_2ee,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_2ee,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_2ee,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_2ee,cs.borderTopWidth):0);_2ef.x+=ifc.x+left-_2f0.x;_2ef.y+=ifc.y+top-_2f0.y;}}else{_2ef=dojo.position(_2ed,true);_2ef.x+=10;_2ef.y+=10;}var self=this;var _2f1=dijit.getFocus(this);function _2f2(){if(self.refocus){dijit.focus(_2f1);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_2ef.x,y:_2ef.y,onExecute:_2f2,onCancel:_2f2,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_2f3,_2f4,_2f5,rtl){if(this.aroundNode&&this.aroundNode===_2f4){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_2f3;var pos=dijit.placeOnScreenAroundElement(this.domNode,_2f4,dijit.getPopupAroundAlignment((_2f5&&_2f5.length)?_2f5:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_2f4;},orient:function(node,_2f6,_2f7,_2f8,_2f9){this.connectorNode.style.top="";var _2fa=_2f8.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_2f6+"-"+_2f7];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _2fb=Math.min((Math.max(_2fa,1)),size.w);var _2fc=_2fb<size.w;this.domNode.style.width=_2fb+"px";if(_2fc){this.containerNode.style.overflow="auto";var _2fd=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_2fd>_2fb){_2fd=_2fd+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_2fd+"px";}}if(_2f7.charAt(0)=="B"&&_2f6.charAt(0)=="B"){var mb=dojo.marginBox(node);var _2fe=this.connectorNode.offsetHeight;if(mb.h>_2f8.h){var _2ff=_2f8.h-(_2f9.h/2)-(_2fe/2);this.connectorNode.style.top=_2ff+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_2f9.h/2-_2fe/2,0),mb.h-_2fe)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_2fa);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_300){if(this._onDeck&&this._onDeck[1]==_300){this._onDeck=null;}else{if(this.aroundNode===_300){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_301,_302,_303,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_301,_302,_303,rtl);};dijit.hideTooltip=function(_304){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_304);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_305){dojo.forEach(this._connections||[],function(_306){dojo.forEach(_306,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_305)?_305:(_305?[_305]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_305);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _307=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_307);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_308){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_308,this.position,!this.isLeftToRight());this._connectNode=_308;this.onShow(_308,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_309,_30a){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_30b,_30c,_30d){_30d=dojo.i18n.normalizeLocale(_30d);var _30e=_30d.split("-");var _30f=[_30b,"nls",_30c].join(".");var _310=dojo._loadedModules[_30f];if(_310){var _311;for(var i=_30e.length;i>0;i--){var loc=_30e.slice(0,i).join("_");if(_310[loc]){_311=_310[loc];break;}}if(!_311){_311=_310.ROOT;}if(_311){var _312=function(){};_312.prototype=_311;return new _312();}}throw new Error("Bundle not found: "+_30c+" in "+_30b+" , locale="+_30d);};dojo.i18n.normalizeLocale=function(_313){var _314=(_313?_313:dojo.locale).toLowerCase();if(_314=="root"){_314="ROOT";}return _314;};dojo.i18n._requireLocalization=function(_315,_316,_317,_318){var _319=dojo.i18n.normalizeLocale(_317);var _31a=[_315,"nls",_316].join(".");var _31b="";if(_318){var _31c=_318.split(",");for(var i=0;i<_31c.length;i++){if(_319["indexOf"](_31c[i])==0){if(_31c[i].length>_31b.length){_31b=_31c[i];}}}if(!_31b){_31b="ROOT";}}var _31d=_318?_31b:_319;var _31e=dojo._loadedModules[_31a];var _31f=null;if(_31e){if(dojo.config.localizationComplete&&_31e._built){return;}var _320=_31d.replace(/-/g,"_");var _321=_31a+"."+_320;_31f=dojo._loadedModules[_321];}if(!_31f){_31e=dojo["provide"](_31a);var syms=dojo._getModuleSymbols(_315);var _322=syms.concat("nls").join("/");var _323;dojo.i18n._searchLocalePath(_31d,_318,function(loc){var _324=loc.replace(/-/g,"_");var _325=_31a+"."+_324;var _326=false;if(!dojo._loadedModules[_325]){dojo["provide"](_325);var _327=[_322];if(loc!="ROOT"){_327.push(loc);}_327.push(_316);var _328=_327.join("/")+".js";_326=dojo._loadPath(_328,null,function(hash){hash=hash.root||hash;var _329=function(){};_329.prototype=_323;_31e[_324]=new _329();for(var j in hash){_31e[_324][j]=hash[j];}});}else{_326=true;}if(_326&&_31e[_324]){_323=_31e[_324];}else{_31e[_324]=_323;}if(_318){return true;}});}if(_318&&_319!=_31b){_31e[_319.replace(/-/g,"_")]=_31e[_31b.replace(/-/g,"_")];}};(function(){var _32a=dojo.config.extraLocale;if(_32a){if(!_32a instanceof Array){_32a=[_32a];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_32b,_32c){req(m,b,_32b,_32c);if(_32b){return;}for(var i=0;i<_32a.length;i++){req(m,b,_32a[i],_32c);}};}})();dojo.i18n._searchLocalePath=function(_32d,down,_32e){_32d=dojo.i18n.normalizeLocale(_32d);var _32f=_32d.split("-");var _330=[];for(var i=_32f.length;i>0;i--){_330.push(_32f.slice(0,i).join("-"));}_330.push(false);if(down){_330.reverse();}for(var j=_330.length-1;j>=0;j--){var loc=_330[j]||"ROOT";var stop=_32e(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_331,_332){function _333(_334){_334=dojo.i18n.normalizeLocale(_334);dojo.i18n._searchLocalePath(_334,true,function(loc){for(var i=0;i<_332.length;i++){if(_332[i]==loc){dojo["require"](_331+"_"+loc);return true;}}return false;});};_333();var _335=dojo.config.extraLocale||[];for(var i=0;i<_335.length;i++){_333(_335[i]);}};}if(!dojo._hasResource["dijit.form.Select"]){dojo._hasResource["dijit.form.Select"]=true;dojo.provide("dijit.form.Select");dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}dojo.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";dijit.setWaiRole(o,"listbox");dijit.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},resize:function(mb){if(mb){dojo.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\n\trole=\"combobox\" aria-haspopup=\"true\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_336){if(!_336.value&&!_336.label){return new dijit.MenuSeparator();}else{var _337=dojo.hitch(this,"_setValueAttr",_336);var item=new dijit.MenuItem({option:_336,label:_336.label||this.emptyLabel,onClick:_337,disabled:_336.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_338){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_338));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_339){if(_339===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_33a){_33a.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_33b){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_33c){var lbl=_33c||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_33d){var _33e=this.isValid(_33d);this._set("state",_33e?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_33e?"false":"true");var _33f=_33e?"":this._missingMsg;if(this.message!==_33f){this._set("message",_33f);dijit.hideTooltip(this.domNode);if(_33f){dijit.showTooltip(_33f,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _33e;},isValid:function(_340){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},_setStyleAttr:function(_341){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_342){this._loadChildren(true);this._isLoaded=true;_342();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_343){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_343);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _344=dijit.byNode(node);if(_344&&typeof _344._onSubmit=="function"){_344._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_345){if(_345&&(!this.params||!("label" in this.params))){this.set("label",_345.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_346){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_346);},_setLabelAttr:function(_347){this._set("label",_347);this.containerNode.innerHTML=_347;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _348=this.iconClass||"dijitNoIcon",_349=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_349,_348);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _34a=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_34a[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _34b=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_34b);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _34c=this.dropDown;return (!!_34c&&(!_34c.href||_34c.isLoaded));},loadDropDown:function(){var _34d=this.dropDown;if(!_34d){return;}if(!this.isLoaded()){var _34e=dojo.connect(_34d,"onLoad",this,function(){dojo.disconnect(_34e);this.openDropDown();});_34d.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_34f){if(!this.disabled){dijit.focus(_34f=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_350,_351){this._set("checked",_350);dojo.attr(this.focusNode||this.domNode,"checked",_350);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_350);this._handleOnChange(_350,_351);},setChecked:function(_352){dojo.deprecated("setChecked("+_352+") is deprecated. Use set('checked',"+_352+") instead.","","2.0");this.set("checked",_352);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.TextBox"]){dojo._hasResource["dijit.form.TextBox"]=true;dojo.provide("dijit.form.TextBox");dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,placeHolder:"",templateString:dojo.cache("dijit.form","templates/TextBox.html","<div class=\"dijit dijitReset dijitInline dijitLeft\" id=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),_singleNodeTemplate:"<input class=\"dijit dijitReset dijitLeft dijitInputField\" dojoAttachPoint=\"textbox,focusNode\" autocomplete=\"off\" type=\"${type}\" ${!nameAttrSetting} />",_buttonInputDisabled:dojo.isIE?"disabled":"",baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),postMixInProperties:function(){var type=this.type.toLowerCase();if(this.templateString&&this.templateString.toLowerCase()=="input"||((type=="hidden"||type=="file")&&this.templateString==dijit.form.TextBox.prototype.templateString)){this.templateString=this._singleNodeTemplate;}this.inherited(arguments);},_setPlaceHolderAttr:function(v){this._set("placeHolder",v);if(!this._phspan){this._attachPoints.push("_phspan");this._phspan=dojo.create("span",{className:"dijitPlaceHolder dijitInputField"},this.textbox,"after");}this._phspan.innerHTML="";this._phspan.appendChild(document.createTextNode(v));this._updatePlaceHolder();},_updatePlaceHolder:function(){if(this._phspan){this._phspan.style.display=(this.placeHolder&&!this._focused&&!this.textbox.value)?"":"none";}},_getValueAttr:function(){return this.parse(this.get("displayedValue"),this.constraints);},_setValueAttr:function(_353,_354,_355){var _356;if(_353!==undefined){_356=this.filter(_353);if(typeof _355!="string"){if(_356!==null&&((typeof _356!="number")||!isNaN(_356))){_355=this.filter(this.format(_356,this.constraints));}else{_355="";}}}if(_355!=null&&_355!=undefined&&((typeof _355)!="number"||!isNaN(_355))&&this.textbox.value!=_355){this.textbox.value=_355;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_356,_354]);},displayedValue:"",getDisplayedValue:function(){dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use set('displayedValue') instead.","","2.0");return this.get("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_357){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_357);},_setDisplayedValueAttr:function(_358){if(_358===null||_358===undefined){_358="";}else{if(typeof _358!="string"){_358=String(_358);}}this.textbox.value=_358;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_359,_35a){return ((_359==null||_359==undefined)?"":(_359.toString?_359.toString():_359));},parse:function(_35b,_35c){return _35b;},_refreshState:function(){},_onInput:function(e){if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){switch(e.keyCode){case dojo.keys.SHIFT:case dojo.keys.ALT:case dojo.keys.CTRL:case dojo.keys.TAB:return;}}if(this.intermediateChanges){var _35d=this;setTimeout(function(){_35d._handleOnChange(_35d.get("value"),false);},0);}this._refreshState();this._set("displayedValue",this.get("displayedValue"));},postCreate:function(){if(dojo.isIE){setTimeout(dojo.hitch(this,function(){var s=dojo.getComputedStyle(this.domNode);if(s){var ff=s.fontFamily;if(ff){var _35e=this.domNode.getElementsByTagName("INPUT");if(_35e){for(var i=0;i<_35e.length;i++){_35e[i].style.fontFamily=ff;}}}}}),0);}this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);if(dojo.isMoz||dojo.isOpera){this.connect(this.textbox,"oninput","_onInput");}else{this.connect(this.textbox,"onkeydown","_onInput");this.connect(this.textbox,"onkeyup","_onInput");this.connect(this.textbox,"onpaste","_onInput");this.connect(this.textbox,"oncut","_onInput");}},_blankValue:"",filter:function(val){if(val===null){return this._blankValue;}if(typeof val!="string"){return val;}if(this.trim){val=dojo.trim(val);}if(this.uppercase){val=val.toUpperCase();}if(this.lowercase){val=val.toLowerCase();}if(this.propercase){val=val.replace(/[^\s]+/g,function(word){return word.substring(0,1).toUpperCase()+word.substring(1);});}return val;},_setBlurValue:function(){this._setValueAttr(this.get("value"),true);},_onBlur:function(e){if(this.disabled){return;}this._setBlurValue();this.inherited(arguments);if(this._selectOnClickHandle){this.disconnect(this._selectOnClickHandle);}if(this.selectOnClick&&dojo.isMoz){this.textbox.selectionStart=this.textbox.selectionEnd=undefined;}this._updatePlaceHolder();},_onFocus:function(by){if(this.disabled||this.readOnly){return;}if(this.selectOnClick&&by=="mouse"){this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){this.disconnect(this._selectOnClickHandle);var _35f;if(dojo.isIE){var _360=dojo.doc.selection.createRange();var _361=_360.parentElement();_35f=_361==this.textbox&&_360.text.length==0;}else{_35f=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_35f){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_362,_363,stop){var _364=dojo.global;var _365=dojo.doc;_362=dojo.byId(_362);if(isNaN(_363)){_363=0;}if(isNaN(stop)){stop=_362.value?_362.value.length:0;}dijit.focus(_362);if(_365["selection"]&&dojo.body()["createTextRange"]){if(_362.createTextRange){var r=_362.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_363);r.moveEnd("character",stop-_363);r.select();}}else{if(_364["getSelection"]){if(_362.setSelectionRange){_362.setSelectionRange(_363,stop);}}}};}if(!dojo._hasResource["dijit.form.ValidationTextBox"]){dojo._hasResource["dijit.form.ValidationTextBox"]=true;dojo.provide("dijit.form.ValidationTextBox");dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class=\"dijitReset dijitInputInner\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${!nameAttrSetting} type='${type}'\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitValidationTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",missingMessage:"$_unset_$",message:"",constraints:{},regExp:".*",regExpGen:function(_366){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_367,_368){return (new RegExp("^(?:"+this.regExpGen(_368)+")"+(this.required?"":"?")+"$")).test(_367)&&(!this.required||!this._isEmpty(_367))&&(this._isEmpty(_367)||this.parse(_367,_368)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_369){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_36a){return (this.trim?/^\s*$/:/^$/).test(_36a);},getErrorMessage:function(_36b){return (this.required&&this._isEmpty(this.textbox.value))?this.missingMessage:this.invalidMessage;},getPromptMessage:function(_36c){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_36d){var _36e="";var _36f=this.disabled||this.isValid(_36d);if(_36f){this._maskValidSubsetError=true;}var _370=this._isEmpty(this.textbox.value);var _371=!_36f&&_36d&&this._isValidSubset();this._set("state",_36f?"":(((((!this._hasBeenBlurred||_36d)&&_370)||_371)&&this._maskValidSubsetError)?"Incomplete":"Error"));dijit.setWaiState(this.focusNode,"invalid",_36f?"false":"true");if(this.state=="Error"){this._maskValidSubsetError=_36d&&_371;_36e=this.getErrorMessage(_36d);}else{if(this.state=="Incomplete"){_36e=this.getPromptMessage(_36d);this._maskValidSubsetError=!this._hasBeenBlurred||_36d;}else{if(_370){_36e=this.getPromptMessage(_36d);}}}this.set("message",_36e);return _36f;},displayMessage:function(_372){dijit.hideTooltip(this.domNode);if(_372&&this._focused){dijit.showTooltip(_372,this.domNode,this.tooltipPosition,!this.isLeftToRight());}},_refreshState:function(){this.validate(this._focused);this.inherited(arguments);},constructor:function(){this.constraints={};},_setConstraintsAttr:function(_373){if(!_373.locale&&this.lang){_373.locale=this.lang;}this._set("constraints",_373);this._computePartialRE();},_computePartialRE:function(){var p=this.regExpGen(this.constraints);this.regExp=p;var _374="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_374+=re;break;case ")":_374+="|$)";break;default:_374+="(?:"+re+"|$)";break;}});}try{"".search(_374);}catch(e){_374=this.regExp;console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_374+")$";},postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}if(!this.invalidMessage){this.invalidMessage=this.promptMessage;}if(this.missingMessage=="$_unset_$"){this.missingMessage=this.messages.missingMessage;}if(!this.missingMessage){this.missingMessage=this.invalidMessage;}this._setConstraintsAttr(this.constraints);},_setDisabledAttr:function(_375){this.inherited(arguments);this._refreshState();},_setRequiredAttr:function(_376){this._set("required",_376);dijit.setWaiState(this.focusNode,"required",_376);this._refreshState();},_setMessageAttr:function(_377){this._set("message",_377);this.displayMessage(_377);},reset:function(){this._maskValidSubsetError=true;this.inherited(arguments);},_onBlur:function(){this.displayMessage("");this.inherited(arguments);}});dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){this.inherited(arguments);this.nameAttrSetting="";},serialize:function(val,_378){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.get("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name.replace(/'/g,"&quot;")+"'":"")+"/>",this.textbox,"after");},reset:function(){this.valueNode.value="";this.inherited(arguments);}});dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_379,_37a){return ("min" in _37a?(this.compare(_379,_37a.min)>=0):true)&&("max" in _37a?(this.compare(_379,_37a.max)<=0):true);},isInRange:function(_37b){return this.rangeCheck(this.get("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.get("value");var _37c=false;var _37d=false;if("min" in this.constraints){var min=this.constraints.min;min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_37c=(typeof min=="number")&&min<0;}if("max" in this.constraints){var max=this.constraints.max;max=this.compare(val,((typeof max!="number")||max>0)?max:0);_37d=(typeof max=="number")&&max>0;}return _37c||_37d;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_37e){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_37e));},getErrorMessage:function(_37f){var v=this.get("value");if(v!==null&&v!==""&&v!==undefined&&(typeof v!="number"||!isNaN(v))&&!this.isInRange(_37f)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},_setConstraintsAttr:function(_380){this.inherited(arguments);if(this.focusNode){if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}else{dijit.removeWaiState(this.focusNode,"valuemin");}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}else{dijit.removeWaiState(this.focusNode,"valuemax");}}},_setValueAttr:function(_381,_382){dijit.setWaiState(this.focusNode,"valuenow",_381);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_383){this._set("readOnly",_383);dojo.attr(this.focusNode,"readOnly",_383);dijit.setWaiState(this.focusNode,"readonly",_383);},_setValueAttr:function(_384,_385){if(typeof _384=="string"){this._set("value",_384);dojo.attr(this.focusNode,"value",_384);_384=true;}if(this._created){this.set("checked",_384,_385);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_386){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){dojo.stopEvent(e);return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_387){this.inherited(arguments);if(!this._created){return;}if(_387){var _388=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_389){if(_389.name==_388.name&&_389!=_388.focusNode&&_389.form==_388.focusNode.form){var _38a=dijit.getEnclosingWidget(_389);if(_38a&&_38a.checked){_38a.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dijit.form._Spinner"]){dojo._hasResource["dijit.form._Spinner"]=true;dojo.provide("dijit.form._Spinner");dojo.declare("dijit.form._Spinner",dijit.form.RangeBoundTextBox,{defaultTimeout:500,minimumTimeout:10,timeoutChangeRate:0.9,smallDelta:1,largeDelta:10,templateString:dojo.cache("dijit.form","templates/Spinner.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\" role=\"presentation\"\n\t><div class=\"dijitReset dijitButtonNode dijitSpinnerButtonContainer\"\n\t\t><input class=\"dijitReset dijitInputField dijitSpinnerButtonInner\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t/><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitUpArrowButton\"\n\t\t\tdojoAttachPoint=\"upArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9650;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t\t><div class=\"dijitReset dijitLeft dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\tdojoAttachPoint=\"downArrowNode\"\n\t\t\t><div class=\"dijitArrowButtonInner\"\n\t\t\t\t><input class=\"dijitReset dijitInputField\" value=\"&#9660;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t\t\t${_buttonInputDisabled}\n\t\t\t/></div\n\t\t></div\n\t></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935;\" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' dojoAttachPoint=\"textbox,focusNode\" type=\"${type}\" dojoAttachEvent=\"onkeypress:_onKeyPress\"\n\t\t\trole=\"spinbutton\" autocomplete=\"off\" ${!nameAttrSetting}\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitSpinner",cssStateNodes:{"upArrowNode":"dijitUpArrowButton","downArrowNode":"dijitDownArrowButton"},adjust:function(val,_38b){return val;},_arrowPressed:function(_38c,_38d,_38e){if(this.disabled||this.readOnly){return;}this._setValueAttr(this.adjust(this.get("value"),_38d*_38e),false);dijit.selectInputText(this.textbox,this.textbox.value.length);},_arrowReleased:function(node){this._wheelTimer=null;if(this.disabled||this.readOnly){return;}},_typematicCallback:function(_38f,node,evt){var inc=this.smallDelta;if(node==this.textbox){var k=dojo.keys;var key=evt.charOrCode;inc=(key==k.PAGE_UP||key==k.PAGE_DOWN)?this.largeDelta:this.smallDelta;node=(key==k.UP_ARROW||key==k.PAGE_UP)?this.upArrowNode:this.downArrowNode;}if(_38f==-1){this._arrowReleased(node);}else{this._arrowPressed(node,(node==this.upArrowNode)?1:-1,inc);}},_wheelTimer:null,_mouseWheeled:function(evt){dojo.stopEvent(evt);var _390=evt.detail?(evt.detail*-1):(evt.wheelDelta/120);if(_390!==0){var node=this[(_390>0?"upArrowNode":"downArrowNode")];this._arrowPressed(node,_390,this.smallDelta);if(!this._wheelTimer){clearTimeout(this._wheelTimer);}this._wheelTimer=setTimeout(dojo.hitch(this,"_arrowReleased",node),50);}},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.upArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));this._connects.push(dijit.typematic.addListener(this.downArrowNode,this.textbox,{charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false},this,"_typematicCallback",this.timeoutChangeRate,this.defaultTimeout,this.minimumTimeout));}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_391){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_391&&_391.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_392){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_392);};dojo.regexp.group=function(_393,_394){return "("+(_394?"?:":"")+_393+")";};}if(!dojo._hasResource["dojo.number"]){dojo._hasResource["dojo.number"]=true;dojo.provide("dojo.number");dojo.getObject("number",true,dojo);dojo.number.format=function(_395,_396){_396=dojo.mixin({},_396||{});var _397=dojo.i18n.normalizeLocale(_396.locale),_398=dojo.i18n.getLocalization("dojo.cldr","number",_397);_396.customs=_398;var _399=_396.pattern||_398[(_396.type||"decimal")+"Format"];if(isNaN(_395)||Math.abs(_395)==Infinity){return null;}return dojo.number._applyPattern(_395,_399,_396);};dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;dojo.number._applyPattern=function(_39a,_39b,_39c){_39c=_39c||{};var _39d=_39c.customs.group,_39e=_39c.customs.decimal,_39f=_39b.split(";"),_3a0=_39f[0];_39b=_39f[(_39a<0)?1:0]||("-"+_3a0);if(_39b.indexOf("%")!=-1){_39a*=100;}else{if(_39b.indexOf("‰")!=-1){_39a*=1000;}else{if(_39b.indexOf("¤")!=-1){_39d=_39c.customs.currencyGroup||_39d;_39e=_39c.customs.currencyDecimal||_39e;_39b=_39b.replace(/\u00a4{1,3}/,function(_3a1){var prop=["symbol","currency","displayName"][_3a1.length-1];return _39c[prop]||_39c.currency||"";});}else{if(_39b.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _3a2=dojo.number._numberPatternRE;var _3a3=_3a0.match(_3a2);if(!_3a3){throw new Error("unable to find a number expression in pattern: "+_39b);}if(_39c.fractional===false){_39c.places=0;}return _39b.replace(_3a2,dojo.number._formatAbsolute(_39a,_3a3[0],{decimal:_39e,group:_39d,places:_39c.places,round:_39c.round}));};dojo.number.round=function(_3a4,_3a5,_3a6){var _3a7=10/(_3a6||10);return (_3a7*+_3a4).toFixed(_3a5)/_3a7;};if((0.9).toFixed()==0){(function(){var _3a8=dojo.number.round;dojo.number.round=function(v,p,m){var d=Math.pow(10,-p||0),a=Math.abs(v);if(!v||a>=d||a*Math.pow(10,p+1)<5){d=0;}return _3a8(v,p,m)+(v>0?d:-d);};})();}dojo.number._formatAbsolute=function(_3a9,_3aa,_3ab){_3ab=_3ab||{};if(_3ab.places===true){_3ab.places=0;}if(_3ab.places===Infinity){_3ab.places=6;}var _3ac=_3aa.split("."),_3ad=typeof _3ab.places=="string"&&_3ab.places.indexOf(","),_3ae=_3ab.places;if(_3ad){_3ae=_3ab.places.substring(_3ad+1);}else{if(!(_3ae>=0)){_3ae=(_3ac[1]||[]).length;}}if(!(_3ab.round<0)){_3a9=dojo.number.round(_3a9,_3ae,_3ab.round);}var _3af=String(Math.abs(_3a9)).split("."),_3b0=_3af[1]||"";if(_3ac[1]||_3ab.places){if(_3ad){_3ab.places=_3ab.places.substring(0,_3ad);}var pad=_3ab.places!==undefined?_3ab.places:(_3ac[1]&&_3ac[1].lastIndexOf("0")+1);if(pad>_3b0.length){_3af[1]=dojo.string.pad(_3b0,pad,"0",true);}if(_3ae<_3b0.length){_3af[1]=_3b0.substr(0,_3ae);}}else{if(_3af[1]){_3af.pop();}}var _3b1=_3ac[0].replace(",","");pad=_3b1.indexOf("0");if(pad!=-1){pad=_3b1.length-pad;if(pad>_3af[0].length){_3af[0]=dojo.string.pad(_3af[0],pad);}if(_3b1.indexOf("#")==-1){_3af[0]=_3af[0].substr(_3af[0].length-pad);}}var _3b2=_3ac[0].lastIndexOf(","),_3b3,_3b4;if(_3b2!=-1){_3b3=_3ac[0].length-_3b2-1;var _3b5=_3ac[0].substr(0,_3b2);_3b2=_3b5.lastIndexOf(",");if(_3b2!=-1){_3b4=_3b5.length-_3b2-1;}}var _3b6=[];for(var _3b7=_3af[0];_3b7;){var off=_3b7.length-_3b3;_3b6.push((off>0)?_3b7.substr(off):_3b7);_3b7=(off>0)?_3b7.slice(0,off):"";if(_3b4){_3b3=_3b4;delete _3b4;}}_3af[0]=_3b6.reverse().join(_3ab.group||",");return _3af.join(_3ab.decimal||".");};dojo.number.regexp=function(_3b8){return dojo.number._parseInfo(_3b8).regexp;};dojo.number._parseInfo=function(_3b9){_3b9=_3b9||{};var _3ba=dojo.i18n.normalizeLocale(_3b9.locale),_3bb=dojo.i18n.getLocalization("dojo.cldr","number",_3ba),_3bc=_3b9.pattern||_3bb[(_3b9.type||"decimal")+"Format"],_3bd=_3bb.group,_3be=_3bb.decimal,_3bf=1;if(_3bc.indexOf("%")!=-1){_3bf/=100;}else{if(_3bc.indexOf("‰")!=-1){_3bf/=1000;}else{var _3c0=_3bc.indexOf("¤")!=-1;if(_3c0){_3bd=_3bb.currencyGroup||_3bd;_3be=_3bb.currencyDecimal||_3be;}}}var _3c1=_3bc.split(";");if(_3c1.length==1){_3c1.push("-"+_3c1[0]);}var re=dojo.regexp.buildGroupRE(_3c1,function(_3c2){_3c2="(?:"+dojo.regexp.escapeString(_3c2,".")+")";return _3c2.replace(dojo.number._numberPatternRE,function(_3c3){var _3c4={signed:false,separator:_3b9.strict?_3bd:[_3bd,""],fractional:_3b9.fractional,decimal:_3be,exponent:false},_3c5=_3c3.split("."),_3c6=_3b9.places;if(_3c5.length==1&&_3bf!=1){_3c5[1]="###";}if(_3c5.length==1||_3c6===0){_3c4.fractional=false;}else{if(_3c6===undefined){_3c6=_3b9.pattern?_3c5[1].lastIndexOf("0")+1:Infinity;}if(_3c6&&_3b9.fractional==undefined){_3c4.fractional=true;}if(!_3b9.places&&(_3c6<_3c5[1].length)){_3c6+=","+_3c5[1].length;}_3c4.places=_3c6;}var _3c7=_3c5[0].split(",");if(_3c7.length>1){_3c4.groupSize=_3c7.pop().length;if(_3c7.length>1){_3c4.groupSize2=_3c7.pop().length;}}return "("+dojo.number._realNumberRegexp(_3c4)+")";});},true);if(_3c0){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_3c8,_3c9,_3ca,_3cb){var prop=["symbol","currency","displayName"][_3ca.length-1],_3cc=dojo.regexp.escapeString(_3b9[prop]||_3b9.currency||"");_3c9=_3c9?"[\\s\\xa0]":"";_3cb=_3cb?"[\\s\\xa0]":"";if(!_3b9.strict){if(_3c9){_3c9+="*";}if(_3cb){_3cb+="*";}return "(?:"+_3c9+_3cc+_3cb+")?";}return _3c9+_3cc+_3cb;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_3bd,decimal:_3be,factor:_3bf};};dojo.number.parse=function(_3cd,_3ce){var info=dojo.number._parseInfo(_3ce),_3cf=(new RegExp("^"+info.regexp+"$")).exec(_3cd);if(!_3cf){return NaN;}var _3d0=_3cf[1];if(!_3cf[1]){if(!_3cf[2]){return NaN;}_3d0=_3cf[2];info.factor*=-1;}_3d0=_3d0.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return _3d0*info.factor;};dojo.number._realNumberRegexp=function(_3d1){_3d1=_3d1||{};if(!("places" in _3d1)){_3d1.places=Infinity;}if(typeof _3d1.decimal!="string"){_3d1.decimal=".";}if(!("fractional" in _3d1)||/^0/.test(_3d1.places)){_3d1.fractional=[true,false];}if(!("exponent" in _3d1)){_3d1.exponent=[true,false];}if(!("eSigned" in _3d1)){_3d1.eSigned=[true,false];}var _3d2=dojo.number._integerRegexp(_3d1),_3d3=dojo.regexp.buildGroupRE(_3d1.fractional,function(q){var re="";if(q&&(_3d1.places!==0)){re="\\"+_3d1.decimal;if(_3d1.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_3d1.places+"}";}}return re;},true);var _3d4=dojo.regexp.buildGroupRE(_3d1.exponent,function(q){if(q){return "([eE]"+dojo.number._integerRegexp({signed:_3d1.eSigned})+")";}return "";});var _3d5=_3d2+_3d3;if(_3d3){_3d5="(?:(?:"+_3d5+")|(?:"+_3d3+"))";}return _3d5+_3d4;};dojo.number._integerRegexp=function(_3d6){_3d6=_3d6||{};if(!("signed" in _3d6)){_3d6.signed=[true,false];}if(!("separator" in _3d6)){_3d6.separator="";}else{if(!("groupSize" in _3d6)){_3d6.groupSize=3;}}var _3d7=dojo.regexp.buildGroupRE(_3d6.signed,function(q){return q?"[-+]":"";},true);var _3d8=dojo.regexp.buildGroupRE(_3d6.separator,function(sep){if(!sep){return "(?:\\d+)";}sep=dojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep==" "){sep="\\s\\xa0";}}var grp=_3d6.groupSize,grp2=_3d6.groupSize2;if(grp2){var _3d9="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_3d9+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_3d9;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _3d7+_3d8;};}if(!dojo._hasResource["dijit.form.NumberTextBox"]){dojo._hasResource["dijit.form.NumberTextBox"]=true;dojo.provide("dijit.form.NumberTextBox");dojo.declare("dijit.form.NumberTextBoxMixin",null,{regExpGen:dojo.number.regexp,value:NaN,editOptions:{pattern:"#.######"},_formatter:dojo.number.format,_setConstraintsAttr:function(_3da){var _3db=typeof _3da.places=="number"?_3da.places:0;if(_3db){_3db++;}if(typeof _3da.max!="number"){_3da.max=9*Math.pow(10,15-_3db);}if(typeof _3da.min!="number"){_3da.min=-9*Math.pow(10,15-_3db);}this.inherited(arguments,[_3da]);if(this.focusNode&&this.focusNode.value&&!isNaN(this.value)){this.set("value",this.value);}},_onFocus:function(){if(this.disabled){return;}var val=this.get("value");if(typeof val=="number"&&!isNaN(val)){var _3dc=this.format(val,this.constraints);if(_3dc!==undefined){this.textbox.value=_3dc;}}this.inherited(arguments);},format:function(_3dd,_3de){var _3df=String(_3dd);if(typeof _3dd!="number"){return _3df;}if(isNaN(_3dd)){return "";}if(!("rangeCheck" in this&&this.rangeCheck(_3dd,_3de))&&_3de.exponent!==false&&/\de[-+]?\d/i.test(_3df)){return _3df;}if(this.editOptions&&this._focused){_3de=dojo.mixin({},_3de,this.editOptions);}return this._formatter(_3dd,_3de);},_parser:dojo.number.parse,parse:function(_3e0,_3e1){var v=this._parser(_3e0,dojo.mixin({},_3e1,(this.editOptions&&this._focused)?this.editOptions:{}));if(this.editOptions&&this._focused&&isNaN(v)){v=this._parser(_3e0,_3e1);}return v;},_getDisplayedValueAttr:function(){var v=this.inherited(arguments);return isNaN(v)?this.textbox.value:v;},filter:function(_3e2){return (_3e2===null||_3e2===""||_3e2===undefined)?NaN:this.inherited(arguments);},serialize:function(_3e3,_3e4){return (typeof _3e3!="number"||isNaN(_3e3))?"":this.inherited(arguments);},_setBlurValue:function(){var val=dojo.hitch(dojo.mixin({},this,{_focused:true}),"get")("value");this._setValueAttr(val,true);},_setValueAttr:function(_3e5,_3e6,_3e7){if(_3e5!==undefined&&_3e7===undefined){_3e7=String(_3e5);if(typeof _3e5=="number"){if(isNaN(_3e5)){_3e7="";}else{if(("rangeCheck" in this&&this.rangeCheck(_3e5,this.constraints))||this.constraints.exponent===false||!/\de[-+]?\d/i.test(_3e7)){_3e7=undefined;}}}else{if(!_3e5){_3e7="";_3e5=NaN;}else{_3e5=undefined;}}}this.inherited(arguments,[_3e5,_3e6,_3e7]);},_getValueAttr:function(){var v=this.inherited(arguments);if(isNaN(v)&&this.textbox.value!==""){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)&&(new RegExp("^"+dojo.number._realNumberRegexp(dojo.mixin({},this.constraints))+"$").test(this.textbox.value))){var n=Number(this.textbox.value);return isNaN(n)?undefined:n;}else{return undefined;}}else{return v;}},isValid:function(_3e8){if(!this._focused||this._isEmpty(this.textbox.value)){return this.inherited(arguments);}else{var v=this.get("value");if(!isNaN(v)&&this.rangeCheck(v,this.constraints)){if(this.constraints.exponent!==false&&/\de[-+]?\d/i.test(this.textbox.value)){return true;}else{return this.inherited(arguments);}}else{return false;}}}});dojo.declare("dijit.form.NumberTextBox",[dijit.form.RangeBoundTextBox,dijit.form.NumberTextBoxMixin],{baseClass:"dijitTextBox dijitNumberTextBox"});}if(!dojo._hasResource["dijit.form.NumberSpinner"]){dojo._hasResource["dijit.form.NumberSpinner"]=true;dojo.provide("dijit.form.NumberSpinner");dojo.declare("dijit.form.NumberSpinner",[dijit.form._Spinner,dijit.form.NumberTextBoxMixin],{adjust:function(val,_3e9){var tc=this.constraints,v=isNaN(val),_3ea=!isNaN(tc.max),_3eb=!isNaN(tc.min);if(v&&_3e9!=0){val=(_3e9>0)?_3eb?tc.min:_3ea?tc.max:0:_3ea?this.constraints.max:_3eb?tc.min:0;}var _3ec=val+_3e9;if(v||isNaN(_3ec)){return val;}if(_3ea&&(_3ec>tc.max)){_3ec=tc.max;}if(_3eb&&(_3ec<tc.min)){_3ec=tc.min;}return _3ec;},_onKeyPress:function(e){if((e.charOrCode==dojo.keys.HOME||e.charOrCode==dojo.keys.END)&&!(e.ctrlKey||e.altKey||e.metaKey)&&typeof this.get("value")!="undefined"){var _3ed=this.constraints[(e.charOrCode==dojo.keys.HOME?"min":"max")];if(typeof _3ed=="number"){this._setValueAttr(_3ed,false);}dojo.stopEvent(e);}}});}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _3ee=n.scrollLeft,_3ef=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_3ee!=n.scrollLeft||_3ef!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_3f0){this.node=dojo.byId(node);if(!_3f0){_3f0={};}this.handle=_3f0.handle?dojo.byId(_3f0.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_3f0.delay>0?_3f0.delay:0;this.skip=_3f0.skip;this.mover=_3f0.mover?_3f0.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_3f1,node){return new dojo.dnd.Moveable(node,_3f1);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_3f2){dojo.publish("/dnd/move/start",[_3f2]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3f3){dojo.publish("/dnd/move/stop",[_3f3]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3f4,e){},onMove:function(_3f5,_3f6,e){this.onMoving(_3f5,_3f6);var s=_3f5.node.style;s.left=_3f6.l+"px";s.top=_3f6.t+"px";this.onMoved(_3f5,_3f6);},onMoving:function(_3f7,_3f8){},onMoved:function(_3f9,_3fa){}});}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_3fb,node){return new dojo.dnd.move.constrainedMoveable(node,_3fb);},constructor:function(node,_3fc){if(!_3fc){_3fc={};}this.constraints=_3fc.constraints;this.within=_3fc.within;},onFirstMove:function(_3fd){var c=this.constraintBox=this.constraints.call(this,_3fd);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_3fd.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_3fe,_3ff){var c=this.constraintBox,s=_3fe.node.style;this.onMoving(_3fe,_3ff);_3ff.l=_3ff.l<c.l?c.l:c.r<_3ff.l?c.r:_3ff.l;_3ff.t=_3ff.t<c.t?c.t:c.b<_3ff.t?c.b:_3ff.t;s.left=_3ff.l+"px";s.top=_3ff.t+"px";this.onMoved(_3fe,_3ff);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_400,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_400);},constructor:function(node,_401){var box=_401&&_401.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_402,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_402);},constructor:function(node,_403){var area=_403&&_403.area;this.constraints=function(){var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=dojo._getMarginExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="border"){return mb;}t=dojo._getBorderExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;if(area=="padding"){return mb;}t=dojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;}if(!dojo._hasResource["dijit.form.HorizontalSlider"]){dojo._hasResource["dijit.form.HorizontalSlider"]=true;dojo.provide("dijit.form.HorizontalSlider");dojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:dojo.cache("dijit.form","templates/HorizontalSlider.html","<table class=\"dijit dijitReset dijitSlider dijitSliderH\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" dojoAttachEvent=\"onkeypress:_onKeyPress,onkeyup:_onKeyUp\"\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"topDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationT dijitSliderDecorationH\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderDecrementIconH\" style=\"display:none\" dojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper\" dojoAttachEvent=\"onmousedown:_onClkDecBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><input dojoAttachPoint=\"valueNode\" type=\"hidden\" ${!nameAttrSetting}\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" role=\"presentation\" dojoAttachPoint=\"sliderBarContainer\"\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\"\n\t\t\t\t\t\t><div dojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" dojoAttachEvent=\"onmousedown:_onHandleClick\" role=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\n\t\t\t\t\t></div\n\t\t\t\t></div\n\t\t\t\t><div role=\"presentation\" dojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" dojoAttachEvent=\"onmousedown:_onBarClick\"></div\n\t\t\t></div\n\t\t></td\n\t\t><td class=\"dijitReset\"\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper\" dojoAttachEvent=\"onmousedown:_onClkIncBumper\"></div\n\t\t></td\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\n\t\t\t><div class=\"dijitSliderIncrementIconH\" style=\"display:none\" dojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\n\t\t></td\n\t></tr\n\t><tr class=\"dijitReset\"\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t\t><td dojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset dijitSliderDecoration dijitSliderDecorationB dijitSliderDecorationH\"></td\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\n\t></tr\n></table>\n"),value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{id:""}),baseClass:"dijitSlider",cssStateNodes:{incrementButton:"dijitSliderIncrementButton",decrementButton:"dijitSliderDecrementButton",focusNode:"dijitSliderThumb"},_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyUp:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}this._setValueAttr(this.value,true);},_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey||e.metaKey){return;}switch(e.charOrCode){case dojo.keys.HOME:this._setValueAttr(this.minimum,false);break;case dojo.keys.END:this._setValueAttr(this.maximum,false);break;case ((this._descending||this.isLeftToRight())?dojo.keys.RIGHT_ARROW:dojo.keys.LEFT_ARROW):case (this._descending===false?dojo.keys.DOWN_ARROW:dojo.keys.UP_ARROW):case (this._descending===false?dojo.keys.PAGE_DOWN:dojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?dojo.keys.LEFT_ARROW:dojo.keys.RIGHT_ARROW):case (this._descending===false?dojo.keys.UP_ARROW:dojo.keys.DOWN_ARROW):case (this._descending===false?dojo.keys.PAGE_UP:dojo.keys.PAGE_DOWN):this.decrement(e);break;default:return;}dojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!dojo.isIE){dijit.focus(this.sliderHandle);}dojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);dojo.stopEvent(e);var _404=dojo.position(this.sliderBarContainer,true);var _405=e[this._mousePixelCoord]-_404[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_404[this._pixelCount]-_405):_405,_404[this._pixelCount],true);this._movable.onMouseDown(e);},_setPixelValue:function(_406,_407,_408){if(this.disabled||this.readOnly){return;}_406=_406<0?0:_407<_406?_407:_406;var _409=this.discreteValues;if(_409<=1||_409==Infinity){_409=_407;}_409--;var _40a=_407/_409;var _40b=Math.round(_406/_40a);this._setValueAttr((this.maximum-this.minimum)*_40b/_409+this.minimum,_408);},_setValueAttr:function(_40c,_40d){this._set("value",_40c);this.valueNode.value=_40c;dijit.setWaiState(this.focusNode,"valuenow",_40c);this.inherited(arguments);var _40e=(_40c-this.minimum)/(this.maximum-this.minimum);var _40f=(this._descending===false)?this.remainingBar:this.progressBar;var _410=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_40d&&this.slideDuration>0&&_40f.style[this._progressPixelSize]){var _411=this;var _412={};var _413=parseFloat(_40f.style[this._progressPixelSize]);var _414=this.slideDuration*(_40e-_413/100);if(_414==0){return;}if(_414<0){_414=0-_414;}_412[this._progressPixelSize]={start:_413,end:_40e*100,units:"%"};this._inProgressAnim=dojo.animateProperty({node:_40f,duration:_414,onAnimate:function(v){_410.style[_411._progressPixelSize]=(100-parseFloat(v[_411._progressPixelSize]))+"%";},onEnd:function(){delete _411._inProgressAnim;},properties:_412});this._inProgressAnim.play();}else{_40f.style[this._progressPixelSize]=(_40e*100)+"%";_410.style[this._progressPixelSize]=((1-_40e)*100)+"%";}},_bumpValue:function(_415,_416){if(this.disabled||this.readOnly){return;}var s=dojo.getComputedStyle(this.sliderBarContainer);var c=dojo._getContentBox(this.sliderBarContainer,s);var _417=this.discreteValues;if(_417<=1||_417==Infinity){_417=c[this._pixelCount];}_417--;var _418=(this.value-this.minimum)*_417/(this.maximum-this.minimum)+_415;if(_418<0){_418=0;}if(_418>_417){_418=_417;}_418=_418*(this.maximum-this.minimum)/_417+this.minimum;this._setValueAttr(_418,_416);},_onClkBumper:function(val){if(this.disabled||this.readOnly||!this.clickSelect){return;}this._setValueAttr(val,true);},_onClkIncBumper:function(){this._onClkBumper(this._descending===false?this.minimum:this.maximum);},_onClkDecBumper:function(){this._onClkBumper(this._descending===false?this.maximum:this.minimum);},decrement:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==dojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){dojo.stopEvent(evt);var _419=!dojo.isMozilla;var _41a=evt[(_419?"wheelDelta":"detail")]*(_419?1:-1);this._bumpValue(_41a<0?-1:1,true);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_41b){if(this[_41b.container]!=this.containerNode){this[_41b.container].appendChild(_41b.domNode);}},this);this.inherited(arguments);},_typematicCallback:function(_41c,_41d,e){if(_41c==-1){this._setValueAttr(this.value,true);}else{this[(_41d==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);}},buildRendering:function(){this.inherited(arguments);if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";}var _41e=dojo.query("label[for=\""+this.id+"\"]");if(_41e.length){_41e[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_41e[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);},postCreate:function(){this.inherited(arguments);if(this.showButtons){this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!dojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _41f=dojo.declare(dijit.form._SliderMover,{widget:this});this._movable=new dojo.dnd.Moveable(this.sliderHandle,{mover:_41f});this._layoutHackIE7();},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this._supportingWidgets=dijit.findWidgets(this.domNode);this.inherited(arguments);}});dojo.declare("dijit.form._SliderMover",dojo.dnd.Mover,{onMouseMove:function(e){var _420=this.widget;var _421=_420._abspos;if(!_421){_421=_420._abspos=dojo.position(_420.sliderBarContainer,true);_420._setPixelValue_=dojo.hitch(_420,"_setPixelValue");_420._isReversed_=_420._isReversed();}var _422=e.touches?e.touches[0]:e,_423=_422[_420._mousePixelCoord]-_421[_420._startingPixelCoord];_420._setPixelValue_(_420._isReversed_?(_421[_420._pixelCount]-_423):_423,_421[_420._pixelCount],false);},destroy:function(e){dojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _424=this.widget;_424._abspos=null;_424._setValueAttr(_424.value,true);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _425=this.getParent&&this.getParent();if(!(_425&&_425.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_426,_427){var node=this.domNode;if(_426){dojo.marginBox(node,_426);if(_426.t){node.style.top=_426.t+"px";}if(_426.l){node.style.left=_426.l+"px";}}var mb=_427||{};dojo.mixin(mb,_426||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_428){var cls=this.baseClass+"-child "+(_428.baseClass?this.baseClass+"-"+_428.baseClass:"");dojo.addClass(_428.domNode,cls);},addChild:function(_429,_42a){this.inherited(arguments);if(this._started){this._setupChild(_429);}},removeChild:function(_42b){var cls=this.baseClass+"-child"+(_42b.baseClass?" "+this.baseClass+"-"+_42b.baseClass:"");dojo.removeClass(_42b.domNode,cls);this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _42c=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_42d,dim){var _42e=_42d.resize?_42d.resize(dim):dojo.marginBox(_42d.domNode,dim);if(_42e){dojo.mixin(_42d,_42e);}else{dojo.mixin(_42d,dojo.marginBox(_42d.domNode));dojo.mixin(_42d,dim);}};dijit.layout.layoutChildren=function(_42f,dim,_430,_431,_432){dim=dojo.mixin({},dim);dojo.addClass(_42f,"dijitLayoutContainer");_430=dojo.filter(_430,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_430,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_430,function(_433){var elm=_433.domNode,pos=(_433.region||_433.layoutAlign);var _434=elm.style;_434.left=dim.l+"px";_434.top=dim.t+"px";_434.position="absolute";dojo.addClass(elm,"dijitAlign"+_42c(pos));var _435={};if(_431&&_431==_433.id){_435[_433.region=="top"||_433.region=="bottom"?"h":"w"]=_432;}if(pos=="top"||pos=="bottom"){_435.w=dim.w;size(_433,_435);dim.h-=_433.h;if(pos=="top"){dim.t+=_433.h;}else{_434.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_435.h=dim.h;size(_433,_435);dim.w-=_433.w;if(pos=="left"){dim.l+=_433.w;}else{_434.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_433,dim);}}}});};})();}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _436={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _436){ds.fontSize=p;_436[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _436;};var _437=null;dhm.getCachedFontMeasurements=function(_438){if(_438||!_437){_437=dhm.getFontMeasurements();}return _437;};var _439=null,_43a={};dhm.getTextBox=function(text,_43b,_43c){var m,s;if(!_439){m=_439=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_439;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_43b){for(var i in _43b){if(i in _43a){continue;}s[i]=_43b[i];}}if(arguments.length>2&&_43c){m.className=_43c;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _43d={w:16,h:16};dhm.getScrollbar=function(){return {w:_43d.w,h:_43d.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_43e){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_43d.w=n.offsetWidth-n.clientWidth;_43d.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_43f,_440){if(_440>=0){var s=_43f.style;var v=_440+"px";if(_43f&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_441,_442,_443,_444){var evts=(_444?_444:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_442.connect(_441,"on"+evts[i],_443);}};dgu.removeNode=function(_445){_445=dojo.byId(_445);_445&&_445.parentNode&&_445.parentNode.removeChild(_445);return _445;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_446,_447,_448){if(_446.length<=_447){_446[_447]=_448;}else{_446.splice(_447,0,_448);}};dgu.arrayRemove=function(_449,_44a){_449.splice(_44a,1);};dgu.arraySwap=function(_44b,inI,inJ){var _44c=_44b[inI];_44b[inI]=_44b[inJ];_44b[inJ]=_44c;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _44d=function(_44e){var i=0,n,p=_44e.parentNode;while((n=p.childNodes[i++])){if(n==_44e){return i-1;}}return -1;};var _44f=function(_450){if(!_450){return;}var _451=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_450,true);};var ws=dijit.registry.filter(_451);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _452=function(_453){var node=dojo.byId(_453);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _454=function(_455,_456){var _457=[];var i=0,n;while((n=_455.childNodes[i])){i++;if(_452(n)==_456){_457.push(n);}}return _457;};var _458=function(_459){return _454(_459,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_45a){this.setContentNodes(_45a);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_45b,_45c,_45d){switch(arguments.length){case 3:this.rowsPerPage=_45d;case 2:this.keepRows=_45c;case 1:this.rowCount=_45b;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_45e,_45f){return _45e?(Math.ceil(_45e/_45f)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_460){this.keepRows=_460;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_461){this.contentNodes=_461;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_462){this.invalidateNodes();this.rowCount=_462;var _463=this.pageCount;if(_463===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_463){for(var i=_463-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_463){this.height+=this.defaultPageHeight*(this.pageCount-_463-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_464){return Boolean(this.getDefaultPageNode(_464));},measurePage:function(_465){if(this.grid.rowHeight){var _466=this.grid.rowHeight+1;return ((_465+1)*this.rowsPerPage>this.rowCount?this.rowCount-_465*this.rowsPerPage:this.rowsPerPage)*_466;}var n=this.getDefaultPageNode(_465);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_467,_468){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_467].style.top=_468+"px";}},repositionPages:function(_469){var _46a=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_46a[_469];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_469):0);for(var p=_469+1;p<=last;p++){n=_46a[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_46b){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_46b]);}},preparePage:function(_46c,_46d){var p=(_46d?this.popPage():null);for(var i=0;i<this.colCount;i++){var _46e=this.pageNodes[i];var _46f=(p===null?this.createPageNode():this.invalidatePageNode(p,_46e));_46f.pageIndex=_46c;_46e[_46c]=_46f;}},renderPage:function(_470){var _471=[];var i,j;for(i=0;i<this.colCount;i++){_471[i]=this.pageNodes[i][_470];}for(i=0,j=_470*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_471);}},removePage:function(_472){for(var i=0,j=_472*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_473){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_473,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_474){},pacifying:false,pacifyTicks:200,setPacifying:function(_475){if(this.pacifying!=_475){this.pacifying=_475;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _476=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _476;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _477=(!this._invalidating);if(!_477){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_477=true;}}if(_477){this.needPage(this.page,this.pageTop);}var _478=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _479=this.getPageHeight(this.page);this.averageRowHeight=(_479>0&&_478>0)?(_479/_478):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _47a=this.pageCount-1;var _47b=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_47a]=_47b;return _47b;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_47c,_47d,_47e){if(this.pageExists(_47c)){var oh=this.getPageHeight(_47c);var h=(this.measurePage(_47c));if(h===undefined){h=oh;}this.pageHeights[_47c]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_47d)){if(!_47e){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_47c);}}else{this.repositionPages(_47c);}}return h;}return 0;},rowHeightChanged:function(_47f,_480){this.updatePageHeight(Math.floor(_47f/this.rowsPerPage),false,_480);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_481){var ph=this.pageHeights[_481];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_482){return this.stack.push(_482);},popPage:function(){return this.stack.shift();},findPage:function(_483){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_483){break;}}this.page=i;this.pageTop=h;},buildPage:function(_484,_485,_486){this.preparePage(_484,_485);this.positionPage(_484,_486);this.installPage(_484);this.renderPage(_484);this.pushPage(_484);},needPage:function(_487,_488){var h=this.getPageHeight(_487),oh=h;if(!this.pageExists(_487)){this.buildPage(_487,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_488);h=this.updatePageHeight(_487,true);}else{this.positionPage(_487,_488);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_489){this.grid.scrollTop=_489;if(this.colCount){this.startPacify();this.findPage(_489);var h=this.height;var b=this.getScrollBottom(_489);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_489);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_48a){return (this.windowHeight>=0?_48a+this.windowHeight:-1);},processNodeEvent:function(e,_48b){var t=e.target;while(t&&(t!=_48b)&&t.parentNode&&(t.parentNode.parentNode!=_48b)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_48b)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_44d(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_48c,_48d){},removeRow:function(_48e){},getDefaultPageNode:function(_48f){return this.getDefaultNodes()[_48f];},positionPageNode:function(_490,_491){},getPageNodePosition:function(_492){return _492.offsetTop;},invalidatePageNode:function(_493,_494){var p=_494[_493];if(p){delete _494[_493];this.removePage(_493,p);_44f(p);p.innerHTML="";}return p;},getPageRow:function(_495){return _495*this.rowsPerPage;},getLastPageRow:function(_496){return Math.min(this.rowCount,this.getPageRow(_496+1))-1;},getFirstVisibleRow:function(_497,_498,_499){if(!this.pageExists(_497)){return 0;}var row=this.getPageRow(_497);var _49a=this.getDefaultNodes();var rows=_458(_49a[_497]);for(var i=0,l=rows.length;i<l&&_498<_499;i++,row++){_498+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_49b,_49c,_49d){if(!this.pageExists(_49b)){return 0;}var _49e=this.getDefaultNodes();var row=this.getLastPageRow(_49b);var rows=_458(_49e[_49b]);for(var i=rows.length-1;i>=0&&_49c>_49d;i--,row--){_49c-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_49f){var _4a0=this.getDefaultNodes();var rows=_458(_4a0[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_49f){this.offset=h-(t-_49f);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_4a1){var _4a2=Math.floor(_4a1/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_4a2;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_4a2;this.needPage(_4a2,this.pageTop);var _4a3=this.getDefaultNodes();var rows=_458(_4a3[_4a2]);var r=_4a1-this.rowsPerPage*_4a2;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _4a4=function(_4a5){try{dojox.grid.util.fire(_4a5,"focus");dojox.grid.util.fire(_4a5,"select");}catch(e){}};var _4a6=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_4a7){this._props=_4a7||{};dojo.mixin(this,_4a7);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_4a8,_4a9){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_4a8!=this.defaultValue&&f)?f.apply(s,_4a9):_4a8;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_4aa,_4ab){var f,i=this.grid.edit.info,d=this.get?this.get(_4aa,_4ab):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_4aa&&i.cell==this))){return this.formatEditing(d,_4aa);}else{return this._defaultFormat(d,[d,_4aa,this]);}},formatEditing:function(_4ac,_4ad){},getNode:function(_4ae){return this.view.getCellNode(_4ae,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_4af){return (this.getNode(_4af)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_4b0,_4b1){this.grid.edit.applyCellEdit(_4b0,this,_4b1);},cancelEdit:function(_4b2){this.grid.doCancelEdit(_4b2);},_onEditBlur:function(_4b3){if(this.grid.edit.isEditCell(_4b3,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_4b4,_4b5){if(this.commitOnBlur){dojo.connect(_4b4,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_4b5),250);});}},needFormatNode:function(_4b6,_4b7){this._formatPending=true;_4a6(this,"_formatNode",_4b6,_4b7);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_4b8,_4b9){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_4b9),_4b8,_4b9);}},formatNode:function(_4ba,_4bb,_4bc){if(dojo.isIE){_4a6(this,"focus",_4bc,_4ba);}else{this.focus(_4bc,_4ba);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_4bd){return this.getEditNode(_4bd)[this._valueProp];},setValue:function(_4be,_4bf){var n=this.getEditNode(_4be);if(n){n[this._valueProp]=_4bf;}},focus:function(_4c0,_4c1){_4a4(_4c1||this.getEditNode(_4c0));},save:function(_4c2){this.value=this.value||this.getValue(_4c2);},restore:function(_4c3){this.setValue(_4c3,this.value);},_finish:function(_4c4){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_4c5){this.applyEdit(this.getValue(_4c5),_4c5);this._finish(_4c5);},cancel:function(_4c6){this.cancelEdit(_4c6);this._finish(_4c6);}});dgc._Base.markupFactory=function(node,_4c7){var d=dojo;var _4c8=d.trim(d.attr(node,"formatter")||"");if(_4c8){_4c7.formatter=dojo.getObject(_4c8)||_4c8;}var get=d.trim(d.attr(node,"get")||"");if(get){_4c7.get=dojo.getObject(get);}var _4c9=function(attr,cell,_4ca){var _4cb=d.trim(d.attr(node,attr)||"");if(_4cb){cell[_4ca||attr]=!(_4cb.toLowerCase()=="false");}};_4c9("sortDesc",_4c7);_4c9("editable",_4c7);_4c9("alwaysEditing",_4c7);_4c9("noresize",_4c7);_4c9("draggable",_4c7);var _4cc=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_4cc){_4c7.defaultValue=_4cc;}var _4cd=function(attr,cell,_4ce){var _4cf=d.trim(d.attr(node,attr)||"")||undefined;if(_4cf){cell[_4ce||attr]=_4cf;}};_4cd("styles",_4c7);_4cd("headerStyles",_4c7);_4cd("cellStyles",_4c7);_4cd("classes",_4c7);_4cd("headerClasses",_4c7);_4cd("cellClasses",_4c7);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_4d0,_4d1){this.needFormatNode(_4d0,_4d1);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_4d0+"\">";},formatNode:function(_4d2,_4d3,_4d4){this.inherited(arguments);this.registerOnBlur(_4d2,_4d4);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_4d5){this.inherited(arguments);var n=this.getEditNode(_4d5);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_4d6){dgc._Base.markupFactory(node,_4d6);var d=dojo;var _4d7=d.trim(d.attr(node,"keyFilter")||"");if(_4d7){_4d6.keyFilter=new RegExp(_4d7);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_4d8){return _4d8+1;}});dgc.RowIndex.markupFactory=function(node,_4d9){dgc.Cell.markupFactory(node,_4d9);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_4da){this.values=this.values||this.options;},formatEditing:function(_4db,_4dc){this.needFormatNode(_4db,_4dc);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_4db==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_4dd){var n=this.getEditNode(_4dd);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _4de=d.trim(d.attr(node,"options")||"");if(_4de){var o=_4de.split(",");if(o[0]!=_4de){cell.options=o;}}var _4df=d.trim(d.attr(node,"values")||"");if(_4df){var v=_4df.split(",");if(v[0]!=_4df){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_4e0,_4e1){this.formatNode(this.getEditNode(_4e1),_4e0,_4e1);},applyStaticValue:function(_4e2){var e=this.grid.edit;e.applyCellEdit(this.getValue(_4e2),this,_4e2);e.start(this,_4e2,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_4e3,_4e4){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_4e3?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _4e5=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _4e6=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _4e7=function(_4e8,_4e9){return _4e8&&((_4e8.rows||0)[_4e9]||_4e8.childNodes[_4e9]);};var _4ea=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _4eb=function(_4ec,_4ed){for(var n=_4ec;n&&_4ed(n);n=n.parentNode){}return n;};var _4ee=function(_4ef){var name=_4ef.toUpperCase();return function(node){return node.tagName!=name;};};var _4f0=dojox.grid.util.rowIndexTag;var _4f1=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_4f2,_4f3,_4f4,_4f5){var _4f6=[],html;if(_4f5){var _4f7=_4f2.index!=_4f2.grid.getSortIndex()?"":_4f2.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_4f2.id){_4f2.id=this.grid.id+"Hdr"+_4f2.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_4f7,"id=\"",_4f2.id,"\""];}else{var _4f8=this.grid.editable&&!_4f2.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_4f8];}if(_4f2.colSpan){html.push(" colspan=\"",_4f2.colSpan,"\"");}if(_4f2.rowSpan){html.push(" rowspan=\"",_4f2.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_4f2.classes){html.push(_4f2.classes," ");}if(_4f4){html.push(_4f4," ");}_4f6.push(html.join(""));_4f6.push("");html=["\" idx=\"",_4f2.index,"\" style=\""];if(_4f3&&_4f3[_4f3.length-1]!=";"){_4f3+=";";}html.push(_4f2.styles,_4f3||"",_4f2.hidden?"display:none;":"");if(_4f2.unitWidth){html.push("width:",_4f2.unitWidth,";");}_4f6.push(html.join(""));_4f6.push("");html=["\""];if(_4f2.attrs){html.push(" ",_4f2.attrs);}html.push(">");_4f6.push(html.join(""));_4f6.push("");_4f6.push(_4f5?"</th>":"</td>");return _4f6;},isCellNode:function(_4f9){return Boolean(_4f9&&_4f9!=dojo.doc&&dojo.attr(_4f9,"idx"));},getCellNodeIndex:function(_4fa){return _4fa?Number(dojo.attr(_4fa,"idx")):-1;},getCellNode:function(_4fb,_4fc){for(var i=0,row;((row=_4e7(_4fb.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_4fc){return cell;}}}return null;},findCellTarget:function(_4fd,_4fe){var n=_4fd;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_4f1 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_4f1]!=this.view.id))&&(n!=_4fe)){n=n.parentNode;}return n!=_4fe?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_4ff,_500){var n=_4ff;while(n&&(n!=this.domNode)&&(!(_500 in n)||(_4f1 in n&&n[_4f1]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_501){return this.findTarget(_501,_4f0);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _502=this.grid.get,_503=this.view.structure.cells;for(var j=0,row;(row=_503[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_502;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_504,_505){var html=this.getTableArray(),v=this.view,_506=v.structure.cells,item=this.grid.getItem(_505);dojox.grid.util.fire(this.view,"onBeforeRow",[_505,_506]);for(var j=0,row;(row=_506[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_505,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_4f0];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_507,_508){var html=this.getTableArray(),_509=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_509]);for(var j=0,row;(row=_509[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_50a;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_50a=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_50a[5]=(_508!=undefined?_508:_507(cell));_50a[3]=cell.customStyles.join(";");_50a[1]=cell.customClasses.join(" ");html.push(_50a.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_4eb(e.target,_4ee("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_4eb(n,_4ee("table"));x-=(table&&table.offsetLeft)||0;}}n=_4eb(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_4e5(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_50b){var _50c=dojo.contentBox(e.sourceView.headerNode);if(_50b){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _50d=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_50d.h+_50c.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _50e=[],_50f=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_50f[i]);i++){_50e.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _510=e.grid.views.views;var _511=[];for(var j=view.idx+adj,_512;(_512=_510[j]);j=j+adj){_511.push({node:_512.headerNode,left:window.parseInt(_512.headerNode.style.left)});}var _513=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_50c.w,table:_513,tw:dojo.contentBox(_513).w,spanners:_50e,followers:_511};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_514,_515,_516){var _517=_516.l;var data={deltaX:_517,w:_514.w+(dojo._isBodyLtr()?_517:-_517),vw:_514.vw+_517,tw:_514.tw+_517};this.dragRecord={inDrag:_514,mover:_515,leftTop:_516};if(data.w>=this.minColWidth){if(!_515){this.doResizeNow(_514,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_518){if(this.dragRecord){var _519=this.dragRecord.leftTop;var _51a=dojo._isBodyLtr()?_519.l:-_519.l;_51a+=Math.max(_518.w+_51a,this.minColWidth)-(_518.w+_51a);if(dojo.isWebKit&&_518.spanners.length){_51a+=dojo._getPadBorderExtents(_518.spanners[0].node).w;}var data={deltaX:_51a,w:_518.w+_51a,vw:_518.vw+_51a,tw:_518.tw+_51a};this.doResizeNow(_518,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_518.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_518.index);},doResizeNow:function(_51b,data){_51b.view.convertColPctToFixed();if(_51b.view.flexCells&&!_51b.view.testFlexCells()){var t=_4ea(_51b.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_51b.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_51b.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_51b.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_51b.node.style.width=data.w+"px";_51b.view.setColWidth(_51b.index,data.w);_51b.view.headerNode.style.width=data.vw+"px";_51b.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_51b.view.headerNode.scrollLeft=_51b.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_51c){var _51d=_51c.length;if(!_51d){return;}this.map=[];var row;for(var k=0;(row=_51c[k]);k++){this.map[k]=[];}for(var j=0;(row=_51c[j]);j++){for(var i=0,x=0,cell,_51e,_51f;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_51f=cell.rowSpan||1;_51e=cell.colSpan||1;for(var y=0;y<_51f;y++){for(var s=0;s<_51e;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_51e;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_520,_521){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_521&&cell.r==_520){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_522,_523,_524){var row=_522&&_522.rows[_523];return row&&row.cells[_524];},_findOverlappingNodes:function(_525,_526,_527){var _528=[];var m=this.getMapCoords(_526,_527);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_525,rw.r,rw.c):null);if(n){_528.push(n);}}return _528;},findOverlappingNodes:function(_529){return this._findOverlappingNodes(_4ea(_529),_4e6(_529.parentNode),_4e5(_529));}});})();}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_52a){this.node=dojo.byId(node);if(!_52a){_52a={};}this.creator=_52a.creator||null;this.skipForm=_52a.skipForm;this.parent=_52a.dropParent&&dojo.byId(_52a.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_52a&&_52a._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_52b,_52c){if(!this.parent.firstChild){_52c=null;}else{if(_52b){if(!_52c){_52c=this.parent.firstChild;}}else{if(_52c){_52c=_52c.nextSibling;}}}if(_52c){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_52c);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_52d,node){_52d._skipStartup=true;return new dojo.dnd.Container(node,_52d);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_52e){var _52f="dojoDnd"+type;var _530=type.toLowerCase()+"State";dojo.replaceClass(this.node,_52f+_52e,_52f+this[_530]);this[_530]=_52e;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _531=node.parentNode;_531;node=_531,_531=node.parentNode){if(_531==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _532=item&&dojo.isObject(item),data,type,n;if(_532&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_532&&item.data)?item.data:item;type=(_532&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_533){if(!_533){_533={};}this.singular=_533.singular;this.autoSync=_533.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_534,data,_535,_536){var _537=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_537.call(this,item,hint);if(_534){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_535,_536);this._normalizedCreator=_537;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_538,node){_538._skipStartup=true;return new dojo.dnd.Selector(node,_538);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_539){this.manager=_539;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_53a=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_53a.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_53a.creator){node=_53a._normalizedCreator(_53a.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _53b=dojo.create("table"),_53c=dojo.create("tbody",null,_53b);_53c.appendChild(node);node=_53b;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_53d){if(this.avatar){this.target=(_53d&&_53d.targetState!="Disabled")?_53d:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_53d]);},outSource:function(_53e){if(this.avatar){if(this.target==_53e){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_53f,_540,copy){this.source=_53f;this.nodes=_540;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_53f,_540,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _541=Boolean(this.target&&flag);if(this.canDropFlag!=_541){this.canDropFlag=_541;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_542=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_542);dojo.publish("/dnd/drop",_542);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_543){dojo.mixin(this,dojo.mixin({},_543));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_544,_545){if(this==_544){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_545.length;++i){var type=_544.getItem(_545[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_546,self){if(_546){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_547,node){_547._skipStartup=true;return new dojo.dnd.Source(node,_547);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _548=this.getSelectedNodes();if(_548.length){m.startDrag(this,_548,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _549=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_549=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_549=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_549!=this.before){this._markTargetAnchor(_549);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_54a){if(this!=_54a){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_54b,_54c,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_54b?(copy?"Copied":"Moved"):"");}var _54d=this.accept&&this.checkAcceptance(_54b,_54c);this._changeState("Target",_54d?"":"Disabled");if(this==_54b){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_54e,_54f,copy,_550){if(this==_550){this.onDrop(_54e,_54f,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_551,_552,copy){if(this!=_551){this.onDropExternal(_551,_552,copy);}else{this.onDropInternal(_552,copy);}},onDropExternal:function(_553,_554,copy){var _555=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _555.call(this,_553.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_553.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_553.getItem(node.id);_553.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_553.selectNone();}this.insertNodes(true,_554,this.before,this.current);if(!copy&&this.creator){_553.deleteSelectedNodes();}this._normalizedCreator=_555;},onDropInternal:function(_556,copy){var _557=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _557.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_556,this.before,this.current);this._normalizedCreator=_557;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_558){if(this.current==this.targetAnchor&&this.before==_558){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_558;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_559){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_55a,node){_55a._skipStartup=true;return new dojo.dnd.Target(node,_55a);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_55b){this.autoSync=true;},markupFactory:function(_55c,node){_55c._skipStartup=true;return new dojo.dnd.AutoSource(node,_55c);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _55d=function(_55e,_55f){return _55e.style.cssText==undefined?_55e.getAttribute("style"):_55e.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_560){var vs=(this.structure=_560);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_561){if(_561){dojo.forEach(dojo.query("[widgetId]",_561).map(dijit.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_562,_563){this._onBeforeRow(_562,_563);if(_562>=0){this._cleanupRowWidgets(this.getRowNode(_562));}},onAfterRow:function(_564,_565,_566){this._onAfterRow(_564,_565,_566);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_566),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _567=window.parseInt(dojo.attr(n,"cellIdx"),10);var _568=g.getCell(_567);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _569=this.hasVScrollbar();var _56a=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_56a||_56a=="hidden"){_569=false;}else{if(_56a=="scroll"){_569=true;}}return (_569?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_56b){this.headerContentNode.firstChild.style.width=_56b+"px";if(this.viewWidth){this.viewWidth=_56b+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _56c=this.grid.layout.cells;var _56d=dojo.hitch(this,function(node,_56e){!dojo._isBodyLtr()&&(_56e=!_56e);var inc=_56e?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_56c[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_56c[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _56f="dojoxGrid_bottomMarker";var _570="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_56f);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_570);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_56f,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_570,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _571=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE<9?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_572){var src=this.source;if(src.current==src.targetAnchor&&src.before==_572){return;}if(src.targetAnchor&&_56d(src.targetAnchor,src.before)){src._removeItemClass(_56d(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_572);var _573=_572?src.targetAnchor:_56d(src.targetAnchor,src.before);var _574=0;if(!_573){_573=src.targetAnchor;_574=dojo.contentBox(_573).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_573,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_574);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_571+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_56d(src.targetAnchor,src.before)){src._addItemClass(_56d(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_56d(src.targetAnchor,src.before)){src._removeItemClass(_56d(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_575,_576,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _577=this.grid.views.views;var _578=_577[_575.viewIndex];var _579=_577[this.index];if(_579!=_578){_578.convertColPctToFixed();_579.convertColPctToFixed();}},_onDndDrop:function(_57a,_57b,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _57c=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_57b[0]).w;if(_57a.viewIndex!==this.index){var _57d=this.grid.views.views;var _57e=_57d[_57a.viewIndex];var _57f=_57d[this.index];if(_57e.viewWidth&&_57e.viewWidth!="auto"){_57e.setColumnsWidth(_57e.getColumnsWidth()-w);}if(_57f.viewWidth&&_57f.viewWidth!="auto"){_57f.setColumnsWidth(_57f.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _580=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_580.moveColumn(_57a.viewIndex,idx,_57c(_57b[0]),_57c(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_581){var n=_581.name||_581.grid.getCellName(_581);var ret=["<div class=\"dojoxGridSortNode"];if(_581.index!=_581.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_581.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_581.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_582){var _583=this._hasHScroll||false;if(this._hasHScroll==undefined||_582){if(this.noscroll){this._hasHScroll=false;}else{var _584=dojo.style(this.scrollboxNode,"overflow");if(_584=="hidden"){this._hasHScroll=false;}else{if(_584=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_583!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_585){var _586=this._hasVScroll||false;if(this._hasVScroll==undefined||_585){if(this.noscroll){this._hasVScroll=false;}else{var _587=dojo.style(this.scrollboxNode,"overflow");if(_587=="hidden"){this._hasVScroll=false;}else{if(_587=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_586!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _588=false;this.grid.initialWidth="";var _589=dojo.query("th",this.headerContentNode);var _58a=dojo.map(_589,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_588=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_588){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _58b=cell.view.getHeaderCellNode(cell.index);if(_58b&&dojo.hasAttr(_58b,"vIdx")){var vIdx=window.parseInt(dojo.attr(_58b,"vIdx"));this.setColWidth(idx,_58a[vIdx]);dojo.removeAttr(_58b,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_58c){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _58d=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_58c||(this.noscroll&&_58d())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_58e){var _58f=this.createRowNode(_58e);this.buildRow(_58e,_58f);return _58f;},createRowNode:function(_590){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_590;this.rowNodes[_590]=node;return node;},buildRow:function(_591,_592){this.buildRowContent(_591,_592);this.styleRow(_591,_592);},buildRowContent:function(_593,_594){_594.innerHTML=this.content.generateHtml(_593,_593);if(this.flexCells&&this.contentWidth){_594.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_593,this.structure.cells,_594]);},rowRemoved:function(_595){if(_595>=0){this._cleanupRowWidgets(this.getRowNode(_595));}this.grid.edit.save(this,_595);delete this.rowNodes[_595];},getRowNode:function(_596){return this.rowNodes[_596];},getCellNode:function(_597,_598){var row=this.getRowNode(_597);if(row){return this.content.getCellNode(row,_598);}},getHeaderCellNode:function(_599){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_599);}},styleRow:function(_59a,_59b){_59b._style=_55d(_59b);this.styleRowNode(_59a,_59b);},styleRowNode:function(_59c,_59d){if(_59d){this.doStyleRowNode(_59c,_59d);}},doStyleRowNode:function(_59e,_59f){this.grid.styleRowNode(_59e,_59f);},updateRow:function(_5a0){var _5a1=this.getRowNode(_5a0);if(_5a1){_5a1.style.height="";this.buildRow(_5a0,_5a1);}return _5a1;},updateRowStyles:function(_5a2){this.styleRowNode(_5a2,this.getRowNode(_5a2));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_5a3){if(dojo.isFF>=13){this._nativeScroll=true;}var _5a4=dojo._isBodyLtr();if(this.firstScroll<2){if((!_5a4&&this.firstScroll==1)||(_5a4&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_5a4?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_5a5){this.lastTop=_5a5;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_5a5;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_5a6,_5a7){this.grid.setCellWidth(_5a6,_5a7+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _5a8=this.manager.source,node;if(_5a8.creator){node=_5a8._normalizedCreator(_5a8.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _5a9,_5aa;if(node.tagName.toLowerCase()=="tr"){_5a9=dd.createElement("table");_5aa=dd.createElement("tbody");_5aa.appendChild(node);_5a9.appendChild(_5aa);node=_5a9;}else{if(node.tagName.toLowerCase()=="th"){_5a9=dd.createElement("table");_5aa=dd.createElement("tbody");var r=dd.createElement("tr");_5a9.cellPadding=_5a9.cellSpacing="0";r.appendChild(node);_5aa.appendChild(r);_5a9.appendChild(_5aa);node=_5a9;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _5ab=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _5ab.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_5ac,_5ad){var w=this.contentWidth||0;_5ad.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_5ae,_5af){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_5ae)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_5ae)){n.push("dojoxGridRowbarSelected");}_5af.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_5b0){this.grid=_5b0;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_5b1,_5b2,_5b3,_5b4,_5b5){var _5b6=this.structure[_5b1].cells[0];var _5b7=this.structure[_5b2].cells[0];var cell=null;var _5b8=0;var _5b9=0;for(var i=0,c;c=_5b6[i];i++){if(c.index==_5b3){_5b8=i;break;}}cell=_5b6.splice(_5b8,1)[0];cell.view=this.grid.views.views[_5b2];for(i=0,c=null;c=_5b7[i];i++){if(c.index==_5b4){_5b9=i;break;}}if(!_5b5){_5b9+=1;}_5b7.splice(_5b9,0,cell);var _5ba=this.grid.getCell(this.grid.getSortIndex());if(_5ba){_5ba._currentlySorted=this.grid.getSortAsc();}this.cells=[];_5b3=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_5b3;this.cells.push(c);if("_currentlySorted" in c){var si=_5b3+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_5b3++;}}}dojo.forEach(this.cells,function(c){var _5bb=c.markup[2].split(" ");var _5bc=parseInt(_5bb[1].substring(5));if(_5bc!=c.index){_5bb[1]="idx=\""+c.index+"\"";c.markup[2]=_5bb.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_5bd,_5be){var cell=this.cells[_5bd];if(cell.hidden==_5be){cell.hidden=!_5be;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_5bf,_5c0,_5c1){var self=this;var _5c2=function(_5c3){var w=0;if(_5c3.colSpan>1){w=0;}else{w=_5c3.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _5c4={grid:this.grid,subrow:_5bf,layoutIndex:_5c0,index:this.cells.length};if(_5c1&&_5c1 instanceof dojox.grid.cells._Base){var _5c5=dojo.clone(_5c1);_5c4.unitWidth=_5c2(_5c5._props);_5c5=dojo.mixin(_5c5,this._defaultCellProps,_5c1._props,_5c4);return _5c5;}var _5c6=_5c1.type||_5c1.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_5c6)){_5c6=dojo.getObject(_5c6);}_5c4.unitWidth=_5c2(_5c1);return new _5c6(dojo.mixin({},this._defaultCellProps,_5c1,_5c4));},addRowDef:function(_5c7,_5c8){var _5c9=[];var _5ca=0,_5cb=0,_5cc=true;for(var i=0,def,cell;(def=_5c8[i]);i++){cell=this.addCellDef(_5c7,i,def);_5c9.push(cell);this.cells.push(cell);if(_5cc&&cell.relWidth){_5ca+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_5cb+=window.parseInt(w,10);}else{if(w=="auto"){_5cc=false;}}}}}if(_5ca&&_5cc){dojo.forEach(_5c9,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_5ca)*(100-_5cb))+"%";}});}return _5c9;},addRowsDef:function(_5cd){var _5ce=[];if(dojo.isArray(_5cd)){if(dojo.isArray(_5cd[0])){for(var i=0,row;_5cd&&(row=_5cd[i]);i++){_5ce.push(this.addRowDef(i,row));}}else{_5ce.push(this.addRowDef(0,_5cd));}}return _5ce;},addViewDef:function(_5cf){this._defaultCellProps=_5cf.defaultCell||{};if(_5cf.width&&_5cf.width=="auto"){delete _5cf.width;}return dojo.mixin({},_5cf,{cells:this.addRowsDef(_5cf.rows||_5cf.cells)});},setStructure:function(_5d0){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _5d1=this.grid.rowSelector;if(_5d1=="false"){sel=null;}else{if(_5d1!="true"){sel["width"]=_5d1;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _5d2=function(def){return ("name" in def||"field" in def||"get" in def);};var _5d3=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_5d2(def[0])){return true;}}return false;};var _5d4=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_5d2(def))));};if(dojo.isArray(_5d0)){var _5d5=false;for(var i=0,st;(st=_5d0[i]);i++){if(_5d4(st)){_5d5=true;break;}}if(!_5d5){s.push(this.addViewDef({cells:_5d0}));}else{for(i=0;(st=_5d0[i]);i++){if(_5d3(st)){s.push(this.addViewDef({cells:st}));}else{if(_5d4(st)){s.push(this.addViewDef(st));}}}}}else{if(_5d4(_5d0)){s.push(this.addViewDef(_5d0));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_5d6){this.grid=_5d6;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_5d7){_5d7.idx=this.views.length;this.views.push(_5d7);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _5d8=[];for(var i=0,v;v=this.views[i];i++){_5d8.push(v.contentNode);}return _5d8;},forEach:function(_5d9){for(var i=0,v;v=this.views[i];i++){_5d9(v,i);}},onEach:function(_5da,_5db){_5db=_5db||[];for(var i=0,v;v=this.views[i];i++){if(_5da in v){v[_5da].apply(v,_5db);}}},normalizeHeaderNodeHeight:function(){var _5dc=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_5dc.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_5dc);},normalizeRowNodeHeights:function(_5dd){var h=0;var _5de=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_5dd.length<=1){return;}for(var i=0,n;(n=_5dd[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_5de[i]=n.firstChild.offsetHeight;h=Math.max(h,_5de[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_5dd[i]);i++){if(_5de[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_5df){var _5e0=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_5df));i++){n.firstChild.style.height="";_5e0.push(n);}this.normalizeRowNodeHeights(_5e0);},getViewWidth:function(_5e1){return this.views[_5e1].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_5e2){_5e2.headerContentNode.style.height="";});var h=0;this.forEach(function(_5e3){h=Math.max(_5e3.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_5e4){h=Math.max(_5e4.domNode.offsetHeight,h);});return h;},findClient:function(_5e5){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length;var c=(w<=0?len:this.findClient());var _5e6=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_5e6(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_5e6(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_5e6(v,l);}return l;},renderRow:function(_5e7,_5e8,_5e9){var _5ea=[];for(var i=0,v,n,_5eb;(v=this.views[i])&&(n=_5e8[i]);i++){_5eb=v.renderRow(_5e7);n.appendChild(_5eb);_5ea.push(_5eb);}if(!_5e9){this.normalizeRowNodeHeights(_5ea);}},rowRemoved:function(_5ec){this.onEach("rowRemoved",[_5ec]);},updateRow:function(_5ed,_5ee){for(var i=0,v;v=this.views[i];i++){v.updateRow(_5ed);}if(!_5ee){this.renormalizeRow(_5ed);}},updateRowStyles:function(_5ef){this.onEach("updateRowStyles",[_5ef]);},setScrollTop:function(_5f0){var top=_5f0;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_5f0);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _5f1=function(_5f2,_5f3){if(_5f2.style.cssText==undefined){_5f2.setAttribute("style",_5f3);}else{_5f2.style.cssText=_5f3;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_5f4){this.grid=_5f4;},linesToEms:2,overRow:-2,prepareStylingRow:function(_5f5,_5f6){return {index:_5f5,node:_5f6,odd:Boolean(_5f5&1),selected:!!this.grid.selection.isSelected(_5f5),over:this.isOver(_5f5),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_5f7,_5f8){var row=this.prepareStylingRow(_5f7,_5f8);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_5f9){var i=_5f9;i.node.className=i.customClasses;var h=i.node.style.height;_5f1(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_5fa){this.grid.updateRowStyles(_5fa);},setOverRow:function(_5fb){var last=this.overRow;this.overRow=_5fb;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_5fc){return (this.overRow==_5fc&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_5fd){this.grid=_5fd;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_5fe,_5ff){return (this.cell==_5fe)&&(this.rowIndex==_5ff);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_600){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_600);if(_600){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _601=this._findHeaderCells();for(var i=0;i<_601.length;i++){this._headerConnects.push(dojo.connect(_601[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_601[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _602=dojo.query("th",this.grid.viewsHeaderNode);var _603=[];for(var i=0;i<_602.length;i++){var _604=_602[i];var _605=dojo.hasAttr(_604,"tabIndex");var _606=dojo.attr(_604,"tabIndex");if(_605&&_606<0){_603.push(_604);}}return _603;},_setActiveColHeader:function(_607,_608,_609){dojo.attr(this.grid.domNode,"aria-activedescendant",_607.id);if(_609!=null&&_609>=0&&_609!=_608){dojo.toggleClass(this._findHeaderCells()[_609],this.focusClass,false);}dojo.toggleClass(_607,this.focusClass,true);this._colHeadNode=_607;this._colHeadFocusIdx=_608;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_60a){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_60a?_60a:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_60b){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_60b);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _60c=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_60c){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _60d=this.focusView;if(!_60d){for(var i=0,_60e;(_60e=this.grid.views.views[i]);i++){if(_60e.headerNode){_60d=_60e;break;}}}return (_60d&&dojo.getComputedStyle(_60d.headerNode).display=="none");},colSizeAdjust:function(e,_60f,_610){var _611=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_612;(_612=this.grid.views.views[i]);i++){if(_612.header.tableMap.map){view=_612;break;}}}var _613=_611[_60f];if(!view||(_60f==_611.length-1&&_60f===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_613;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _614={l:_610};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_614);view.update();}},styleRow:function(_615){return;},setFocusIndex:function(_616,_617){this.setFocusCell(this.grid.getCell(_617),_616);},setFocusCell:function(_618,_619){if(_618&&!this.isFocusCell(_618,_619)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_618;this.rowIndex=_619;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _61a=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_61a.editable||this.grid.canEdit&&!this.grid.canEdit(_61a,row))){this.cell=_61a;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _61b=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_61b.editable){this.cell=_61b;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_61c,_61d){var _61e=_61d<0?-1:1;if(this.isNavHeader()){var _61f=this._findHeaderCells();var _620=currentIdx=dojo.indexOf(_61f,this._colHeadNode);currentIdx+=_61d;while(currentIdx>=0&&currentIdx<_61f.length&&_61f[currentIdx].style.display=="none"){currentIdx+=_61e;}if((currentIdx>=0)&&(currentIdx<_61f.length)){this._setActiveColHeader(_61f[currentIdx],currentIdx,_620);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_61c));if(_61c){if(_61c>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_61c<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_61d));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_61e;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_61c){if((row+_61c)>=0&&(row+_61c)<=rc){this.move(_61c>0?++_61c:--_61c,_61d);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_61d){if((col+_61d)>=0&&(col+_61d)<=cc){this.move(_61c,_61d>0?++_61d:--_61d);}return;}}this.setFocusIndex(row,col);if(_61c){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _621=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_622){this.tabbingOut=true;_622.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_623){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _624=true;var _625=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_625){var _626=0;var cell=this.grid.getCell(_626);if(cell.hidden){_626=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_626);}else{if(this.cell&&!_625){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_624=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _624;},focusHeader:function(){var _627=this._findHeaderCells();var _628=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_627[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_627.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_627[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_628);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _629=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_629);this._contextMenuBindNode=_629;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_62a){this.grid=_62a;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_62b,_62c){if(this.grid.singleClickEdit||this.isEditRow(_62c)){this.setEditCell(_62b,_62c);}else{this.apply();}if(this.isEditing()||(_62b&&_62b.editable&&_62b.alwaysEditing)){this._focusEditor(_62b,_62c);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_62d){if(_62d.index==this.info.rowIndex){_62d.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_62e,_62f){return (this.info.rowIndex===_62e)&&(this.info.cell.index==_62f);},isEditRow:function(_630){return this.info.rowIndex===_630;},setEditCell:function(_631,_632){if(!this.isEditCell(_632,_631.index)&&this.grid.canEdit&&this.grid.canEdit(_631,_632)){this.start(_631,_632,this.isEditRow(_632)||_631.editable);}},_focusEditor:function(_633,_634){dojox.grid.util.fire(_633,"focus",[_634]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_635,_636,_637){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_636)){this.applyRowEdit();this.grid.updateRow(_636);}if(_637){this.info={cell:_635,rowIndex:_636};this.grid.doStartEdit(_635,_636);this.grid.updateRow(_636);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_635,_636);this._doCatchBoomerang();},_editorDo:function(_638){var c=this.info.cell;if(c&&c.editable){c[_638](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_639,_63a,_63b){if(this.grid.canEdit(_63a,_63b)){this.grid.doApplyCellEdit(_639,_63b,_63a.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_63c,_63d){var c=this.info.cell;if(this.isEditRow(_63c)&&(!_63d||c.view==_63d)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_63e,_63f){var c=this.info.cell;if(this.isEditRow(_63f)&&c.view==_63e&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_640){this.grid=_640;this.selected=[];this.setMode(_640.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_641){return this.grid.onCanSelect(_641);},onCanDeselect:function(_642){return this.grid.onCanDeselect(_642);},onSelected:function(_643){},onDeselected:function(_644){},onChanging:function(){},onChanged:function(){},isSelected:function(_645){if(this.mode=="none"){return false;}return this.selected[_645];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_646){if(this.mode=="none"){return -1;}for(var i=_646+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _647=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_647.push(i);}}return _647;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_648){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_648);this.addToSelection(_648);}else{this.toggleSelect(_648);}},addToSelection:function(_649){if(this.mode=="none"){return;}if(dojo.isArray(_649)){dojo.forEach(_649,this.addToSelection,this);return;}_649=Number(_649);if(this.selected[_649]){this.selectedIndex=_649;}else{if(this.onCanSelect(_649)!==false){this.selectedIndex=_649;var _64a=this.grid.getRowNode(_649);if(_64a){dojo.attr(_64a,"aria-selected","true");}this._beginUpdate();this.selected[_649]=true;this.onSelected(_649);this._endUpdate();}}},deselect:function(_64b){if(this.mode=="none"){return;}if(dojo.isArray(_64b)){dojo.forEach(_64b,this.deselect,this);return;}_64b=Number(_64b);if(this.selectedIndex==_64b){this.selectedIndex=-1;}if(this.selected[_64b]){if(this.onCanDeselect(_64b)===false){return;}var _64c=this.grid.getRowNode(_64b);if(_64c){dojo.attr(_64c,"aria-selected","false");}this._beginUpdate();delete this.selected[_64b];this.onDeselected(_64b);this._endUpdate();}},setSelected:function(_64d,_64e){this[(_64e?"addToSelection":"deselect")](_64d);},toggleSelect:function(_64f){if(dojo.isArray(_64f)){dojo.forEach(_64f,this.toggleSelect,this);return;}this.setSelected(_64f,!this.selected[_64f]);},_range:function(_650,inTo,func){var s=(_650>=0?_650:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_651,inTo){this._range(_651,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_652,inTo){this._range(_652,inTo,dojo.hitch(this,"deselect"));},insert:function(_653){this.selected.splice(_653,0,false);if(this.selectedIndex>=_653){this.selectedIndex++;}},remove:function(_654){this.selected.splice(_654,1);if(this.selectedIndex>=_654){this.selectedIndex--;}},deselectAll:function(_655){for(var i in this.selected){if((i!=_655)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_656,_657,_658){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_656);}else{if(!_658||this.rangeStartIndex<0){this.rangeStartIndex=_656;}if(!_657){this.deselectAll(_656);}if(_658){this.selectRange(this.rangeStartIndex,_656);}else{if(_657){this.toggleSelect(_656);}else{this.addToSelection(_656);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_659){var i=_659;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_659);this.edit.styleRow(_659);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _65a;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_65a=this.focus.getHeaderIndex();if(_65a>=0){this.setSortIndex(_65a);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _65b=this.edit.isEditing();this.edit.apply();if(!_65b){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _65c=this.focus.focusView||this.views.views[0];_65c.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_65a=this.focus.getHeaderIndex();if(_65a>=0){this.setSortIndex(_65a);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _65d=e.keyCode;dojo.stopEvent(e);_65a=this.focus.getHeaderIndex();if(_65a>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_65a,(_65d==dk.LEFT_ARROW?-1:1)*5);}else{var _65e=(_65d==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_65e*=-1;}this.focus.move(0,_65e);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _65f;if(this._click.length>1&&dojo.isIE){_65f=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_65f=this._click[0];}else{_65f=e;}}this.focus.setFocusCell(_65f.cell,_65f.rowIndex);this.edit.setEditCell(_65f.cell,_65f.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_660,_661){this.edit.cellFocus(_660,_661);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},onStartEdit:function(_662,_663){},onApplyCellEdit:function(_664,_665,_666){},onCancelEdit:function(_667){},onApplyEdit:function(_668){},onCanSelect:function(_669){return true;},onCanDeselect:function(_66a){return true;},onSelected:function(_66b){this.updateRowStyles(_66b);},onDeselected:function(_66c){this.updateRowStyles(_66c);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _66d=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_66d);this.errorMessage=dojo.string.substitute(this.errorMessage,_66d);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_66e){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_66e){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_66f){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_670,idx){var c=dojo.getObject(_670);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_671){var s=_671;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_672){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_672);},getColumnTogglingItems:function(){var _673,_674=[];_673=dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_675){if(self.layout.setColumnVisibility(this._gridCell.index,_675)){var _676=this._gridCell.menuItems;if(_676.length>1){dojo.forEach(_676,function(item){if(item!==this){item.setAttribute("checked",_675);}},this);}_675=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_675.length==1){dojo.forEach(_675[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _677=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_677,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_674.push(item);}return item;},this);if(_674.length==1){_674[0].set("disabled",true);}return _673;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_678){this.setScrollTop(0);},getItem:function(_679){return null;},showMessage:function(_67a){if(_67a){this.messagesNode.innerHTML=_67a;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_67b,_67c){this._pendingChangeSize=_67b;this._pendingResultSize=_67c;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_67d,_67e){_67d=_67d||this._pendingChangeSize;_67e=_67e||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _67f=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_67f.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_67e){_67d=_67e;}if(!this._autoHeight&&_67d){dojo.marginBox(this.domNode,_67d);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _680=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_680&&hh===undefined){hh=this._getHeaderHeight();}}if(_680){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _681=(!this.initialWidth&&this.autoWidth);var w=_681?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_681){this.domNode.style.width=vw+"px";}},adaptHeight:function(_682){var t=_682===undefined?this._getHeaderHeight():_682;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _683=0,_684=0;var _685=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_683++;}else{_684++;}return (!has);});if(_683>0&&_684>0){dojo.forEach(_685,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();dojo.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_686,_687){this.views.renderRow(_686,_687,this._skipRowRenormalize);},rowRemoved:function(_688){this.views.rowRemoved(_688);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode||this.edit._noUpdate){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_689){_689=Number(_689);if(this.updating){this.invalidated[_689]=true;}else{this.views.updateRow(_689);this.scroller.rowHeightChanged(_689);}},updateRows:function(_68a,_68b){_68a=Number(_68a);_68b=Number(_68b);var i;if(this.updating){for(i=0;i<_68b;i++){this.invalidated[i+_68a]=true;}}else{for(i=0;i<_68b;i++){this.views.updateRow(i+_68a,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_68a);}},updateRowCount:function(_68c){if(this.updating){this.invalidated.rowCount=_68c;}else{this.rowCount=_68c;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_68c);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_68d){this.views.updateRowStyles(_68d);},getRowNode:function(_68e){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_68e];}else{for(var i=0,_68f;(_68f=this.views.views[i]);i++){if(!(_68f instanceof dojox.grid._RowSelector)){return _68f.rowNodes[_68e];}}}return null;},rowHeightChanged:function(_690){this.views.renormalizeRow(_690);this.scroller.rowHeightChanged(_690);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_691){if(!this.fastScroll){this.setScrollTop(_691);return;}var _692=Math.abs(this.lastScrollTop-_691);this.lastScrollTop=_691;if(_692>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_691;this.views.setScrollTop(_691);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _693=this;this._pendingScroll=window.setTimeout(function(){delete _693._pendingScroll;_693.finishScrollJob();},200);}else{this.setScrollTop(_691);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_694){this.scroller.scroll(this.views.setScrollTop(_694));},scrollToRow:function(_695){this.setScrollTop(this.scroller.findScrollTop(_695)+1);},styleRowNode:function(_696,_697){if(_697){this.rows.styleRowNode(_696,_697);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_698){return this.layout.cells[_698];},setCellWidth:function(_699,_69a){this.getCell(_699).unitWidth=_69a;},getCellName:function(_69b){return "Cell "+_69b.index;},canSort:function(_69c){},sort:function(){},getSortAsc:function(_69d){_69d=_69d==undefined?this.sortInfo:_69d;return Boolean(_69d>0);},getSortIndex:function(_69e){_69e=_69e==undefined?this.sortInfo:_69e;return Math.abs(_69e)-1;},setSortIndex:function(_69f,_6a0){var si=_69f+1;if(_6a0!=undefined){si*=(_6a0?1:-1);}else{if(this.getSortIndex()==_69f){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_6a1){if(this.canSort(_6a1)){this.sortInfo=_6a1;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_6a2,_6a3){this.onStartEdit(_6a2,_6a3);},doApplyCellEdit:function(_6a4,_6a5,_6a6){this.onApplyCellEdit(_6a4,_6a5,_6a6);},doCancelEdit:function(_6a7){this.onCancelEdit(_6a7);},doApplyEdit:function(_6a8){this.onApplyEdit(_6a8);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});dojox.grid._Grid.markupFactory=function(_6a9,node,ctor,_6aa){var d=dojo;var _6ab=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_6a9.structure&&node.nodeName.toLowerCase()=="table"){_6a9.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_6ab(cg);}return v;});if(!_6a9.structure.length){_6a9.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_6ac){var _6ad=0;var _6ae=0;var _6af;var _6b0=null;d.query("> th",tr).map(function(th){if(!_6b0){_6af=0;_6b0=_6a9.structure[0];}else{if(_6ad>=(_6af+_6b0.__span)){_6ae++;_6af+=_6b0.__span;var _6b1=_6b0;_6b0=_6a9.structure[_6ae];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_6ad+=cell.colSpan;var _6b2=d.attr(th,"rowspan");if(_6b2){cell.rowSpan=_6b2;}if(d.hasAttr(th,"width")){cell.width=_6ab(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_6aa){_6aa(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_6b0.cells[_6ac]){_6b0.cells[_6ac]=[];}_6b0.cells[_6ac].push(cell);});});}return new ctor(_6a9,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_6b3){var _6b4=this.grid.getItemIndex(_6b3);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_6b4);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _6b5=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_6b5.push(this.grid.getItem(i));}}return _6b5;},addToSelection:function(_6b6){if(this.mode=="none"){return;}var idx=null;if(typeof _6b6=="number"||typeof _6b6=="string"){idx=_6b6;}else{idx=this.grid.getItemIndex(_6b6);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_6b7){if(this.mode=="none"){return;}var idx=null;if(typeof _6b7=="number"||typeof _6b7=="string"){idx=_6b7;}else{idx=this.grid.getItemIndex(_6b7);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_6b8){var idx=null;if(_6b8||typeof _6b8=="number"){if(typeof _6b8=="number"||typeof _6b8=="string"){idx=_6b8;}else{idx=this.grid.getItemIndex(_6b8);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_6b9,_6ba){if(_6ba&&this.field=="_item"&&!this.fields){return _6ba;}else{if(_6ba&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_6ba,f));});return ret;}else{if(!_6ba&&typeof _6b9==="string"){return this.inherited(arguments);}}}return (!_6ba?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_6ba:this.grid.store.getValue(_6ba,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _6bb=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_6bb=true;}if(!this.updating){this.beginUpdate();_6bb=true;}if(_6bb){var _6bc=this;this._endUpdateDelay=setTimeout(function(){delete _6bc._endUpdateDelay;_6bc.endUpdate();},this.updateDelay);}}},_onSet:function(item,_6bd,_6be,_6bf){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_6c0){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_6c0+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_6c1,_6c2){this._by_idx[_6c1]=this._createItem(item,_6c1);if(!_6c2){this.updateRow(_6c1);}},_onNew:function(item,_6c3){this._checkUpdateStatus();var _6c4=this.get("rowCount");this._addingItem=true;this.updateRowCount(_6c4+1);this._addingItem=false;this._addItem(item,_6c4);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}},_onRevert:function(){this._refresh();},setStore:function(_6c5,_6c6,_6c7){this._setQuery(_6c6,_6c7);this._setStore(_6c5);this._refresh(true);},setQuery:function(_6c8,_6c9){this._setQuery(_6c8,_6c9);this._refresh(true);},setItems:function(_6ca){this.items=_6ca;this._setStore(this.store);this._refresh(true);},_setQuery:function(_6cb,_6cc){this.query=_6cb;this.queryOptions=_6cc||this.queryOptions;},_setStore:function(_6cd){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_6cd;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_6ce,req){if(!this.scroller){return;}if(_6ce&&_6ce.length>0){dojo.forEach(_6ce,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_6ce.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){console.log(err);delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_6cf,_6d0){_6cf=_6cf||0;if(this.store&&!this._pending_requests[_6cf]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_6cf]=true;try{if(this.items){var _6d1=this.items;var _6d2=this.store;this.rowsPerPage=_6d1.length;var req={start:_6cf,count:this.rowsPerPage,isRender:_6d0};this._onFetchBegin(_6d1.length,req);var _6d3=0;dojo.forEach(_6d1,function(i){if(!_6d2.isItemLoaded(i)){_6d3++;}});if(_6d3===0){this._onFetchComplete(_6d1,req);}else{var _6d4=function(item){_6d3--;if(_6d3===0){this._onFetchComplete(_6d1,req);}};dojo.forEach(_6d1,function(i){if(!_6d2.isItemLoaded(i)){_6d2.loadItem({item:i,onItem:_6d4,scope:this});}},this);}}else{this.store.fetch({start:_6cf,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_6d0,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_6cf,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_6d5){if(!_6d5&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_6d6,_6d7){this.query=_6d6;if(_6d7){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_6d8){return this._pending_requests[_6d8];},_rowToPage:function(_6d9){return (this.rowsPerPage?Math.floor(_6d9/this.rowsPerPage):_6d9);},_pageToRow:function(_6da){return (this.rowsPerPage?this.rowsPerPage*_6da:_6da);},_preparePage:function(_6db){if((_6db<this._bop||_6db>=this._eop)&&!this._addingItem){var _6dc=this._rowToPage(_6db);this._needPage(_6dc);this._bop=_6dc*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_6dd){if(!this._pages[_6dd]){this._pages[_6dd]=true;this._requestPage(_6dd);}},_requestPage:function(_6de){var row=this._pageToRow(_6de);var _6df=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_6df>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_6e0){return _6e0.field;},_refresh:function(_6e1){this._clearData();this._fetch(0,_6e1);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_6e2){if(this.store&&this.store.getState){var _6e3=this.store.getState(_6e2.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_6e3[s]){c=" dojoxGridRow-"+s;break;}}_6e2.customClasses+=c;}},onStyleRow:function(_6e4){this.styleRowState(_6e4);this.inherited(arguments);},canEdit:function(_6e5,_6e6){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _6e7={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_6e8,_6e9){if(!this._cache[_6e9]){this._cache[_6e9]=this._copyAttr(_6e9,_6e8.field);}this.onStartEdit(_6e8,_6e9);},doApplyCellEdit:function(_6ea,_6eb,_6ec){this.store.fetchItemByIdentity({identity:this._by_idx[_6eb].idty,onItem:dojo.hitch(this,function(item){var _6ed=this.store.getValue(item,_6ec);if(typeof _6ed=="number"){_6ea=isNaN(_6ea)?_6ea:parseFloat(_6ea);}else{if(typeof _6ed=="boolean"){_6ea=_6ea=="true"?true:_6ea=="false"?false:_6ea;}else{if(_6ed instanceof Date){var _6ee=new Date(_6ea);_6ea=isNaN(_6ee.getTime())?_6ea:_6ee;}}}this.store.setValue(item,_6ec,_6ea);this.onApplyCellEdit(_6ea,_6eb,_6ec);})});},doCancelEdit:function(_6ef){var _6f0=this._cache[_6ef];if(_6f0){this.updateRow(_6ef);delete this._cache[_6ef];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_6f1,_6f2){var _6f3=this._cache[_6f1];this.onApplyEdit(_6f1);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_6f4){if(_6f4.length){dojo.forEach(_6f4,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_6f5,node,_6f6){var _6f7=dojo.trim(dojo.attr(node,"field")||"");if(_6f7){_6f6.field=_6f7;}_6f6.field=_6f6.field||_6f6.name;var _6f8=dojo.trim(dojo.attr(node,"fields")||"");if(_6f8){_6f6.fields=_6f8.split(",");}if(_6f5){_6f5(node,_6f6);}};dojox.grid.DataGrid.markupFactory=function(_6f9,node,ctor,_6fa){return dojox.grid._Grid.markupFactory(_6f9,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_6fa));};}if(!dojo._hasResource["dojo.fx.Toggler"]){dojo._hasResource["dojo.fx.Toggler"]=true;dojo.provide("dojo.fx.Toggler");dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(args){var _6fb=this;dojo.mixin(_6fb,args);_6fb.node=args.node;_6fb._showArgs=dojo.mixin({},args);_6fb._showArgs.node=_6fb.node;_6fb._showArgs.duration=_6fb.showDuration;_6fb.showAnim=_6fb.showFunc(_6fb._showArgs);_6fb._hideArgs=dojo.mixin({},args);_6fb._hideArgs.node=_6fb.node;_6fb._hideArgs.duration=_6fb.hideDuration;_6fb.hideAnim=_6fb.hideFunc(_6fb._hideArgs);dojo.connect(_6fb.showAnim,"beforeBegin",dojo.hitch(_6fb.hideAnim,"stop",true));dojo.connect(_6fb.hideAnim,"beforeBegin",dojo.hitch(_6fb.showAnim,"stop",true));},show:function(_6fc){return this.showAnim.play(_6fc||0);},hide:function(_6fd){return this.hideAnim.play(_6fd||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_6fe={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _6ff=function(_700){this._index=-1;this._animations=_700||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;d.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};d.extend(_6ff,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){d.disconnect(this._onAnimateCtx);d.disconnect(this._onEndCtx);this._onAnimateCtx=this._onEndCtx=null;if(this._index+1==this._animations.length){this._fire("onEnd");}else{this._current=this._animations[++this._index];this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_701,_702){if(!this._current){this._current=this._animations[this._index=0];}if(!_702&&this._current.status()=="playing"){return this;}var _703=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_704=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_705=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_703);d.disconnect(_704);d.disconnect(_705);});if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){d.disconnect(this._onEndCtx);}this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=d.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);d.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_706,_707){this.pause();var _708=this.duration*_706;this._current=null;d.some(this._animations,function(a){if(a.duration<=_708){this._current=a;return true;}_708-=a.duration;return false;});if(this._current){this._current.gotoPercent(_708/this._current.duration,_707);}return this;},stop:function(_709){if(this._current){if(_709){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=d.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);d.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){d.disconnect(this._onAnimateCtx);}if(this._onEndCtx){d.disconnect(this._onEndCtx);}}});d.extend(_6ff,_6fe);dojo.fx.chain=function(_70a){return new _6ff(_70a);};var _70b=function(_70c){this._animations=_70c||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_70c,function(a){var _70d=a.duration;if(a.delay){_70d+=a.delay;}if(this.duration<_70d){this.duration=_70d;}this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});var self=this;d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){self._connects.push(d.connect(self._pseudoAnimation,evt,function(){self._fire(evt,arguments);}));});};d.extend(_70b,{_doAction:function(_70e,args){d.forEach(this._animations,function(a){a[_70e].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_70f,args){var t=this._pseudoAnimation;t[_70f].apply(t,args);},play:function(_710,_711){this._finished=0;this._doAction("play",arguments);this._call("play",arguments);return this;},pause:function(){this._doAction("pause",arguments);this._call("pause",arguments);return this;},gotoPercent:function(_712,_713){var ms=this.duration*_712;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_713);});this._call("gotoPercent",arguments);return this;},stop:function(_714){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){d.forEach(this._connects,dojo.disconnect);}});d.extend(_70b,_6fe);dojo.fx.combine=function(_715){return new _70b(_715);};dojo.fx.wipeIn=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{start:function(){o=s.overflow;s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _716=d.style(node,"height");return Math.max(_716,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_717){_717.startup();_717._started=true;});},startup:function(){if(this._started){return;}var _718=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_718&&_718.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _719=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_71a=_719.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_71b=dojo.filter(_71a.map(dijit.byNode),function(_71c){return _71c&&_71c.domNode&&_71c.resize;});if(_719.length==_71a.length&&_71b.length==1){this._singleChild=_71b[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_71d,_71e){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_71d,_71e);},_scheduleLayout:function(_71f,_720){if(this._isShown()){this._layout(_71f,_720);}else{this._needLayout=true;this._changeSize=_71f;this._resultSize=_720;}},_layout:function(_721,_722){if(_721){dojo.marginBox(this.domNode,_721);}var cn=this.containerNode;if(cn===this.domNode){var mb=_722||{};dojo.mixin(mb,_721||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_723){if(_723.resize){_723.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_724=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_724&&_724.style&&(_724.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _725=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _726=cont.length,i=0;i<cont.length;i=_726==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_727,node){dojo.mixin(this,_727||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_725++].join("_");}},set:function(cont,_728){if(undefined!==cont){this.content=cont;}if(_728){this._mixin(_728);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _729=this.onContentError(e);try{node.innerHTML=_729;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _72a=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_72a){cont=_72a[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_72b){var _72c={},key;for(key in _72b){if(key in _72c){continue;}this[key]=_72b[key];}},_parse:function(){var _72d=this.node;try{var _72e={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_72e[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_72d,noStart:!this.startup,inherited:_72e,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_72f){var _730=this["on"+type+"Error"].call(this,err);if(_72f){console.error(_72f,err);}else{if(_730){dojo.html._setNodeContent(this.node,_730,true);}}}});dojo.html.set=function(node,cont,_731){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_731){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_731,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_732,_733){if((!_732||!_732.template)&&_733&&!("href" in _732)&&!("content" in _732)){var df=dojo.doc.createDocumentFragment();_733=dojo.byId(_733);while(_733.firstChild){df.appendChild(_733.firstChild);}_732=dojo.delegate(_732,{content:df});}this.inherited(arguments,[_732,_733]);},postMixInProperties:function(){this.inherited(arguments);var _734=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_734);this.errorMessage=dojo.string.substitute(this.errorMessage,_734);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_735){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _736={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_736,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_736));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _737=this._contentSetter;dojo.forEach(this.getChildren(),function(_738){if(_738.destroyRecursive){_738.destroyRecursive();}});if(_737){dojo.forEach(_737.parseResults,function(_739){if(_739.destroyRecursive&&_739.domNode&&_739.domNode.parentNode==dojo.body()){_739.destroyRecursive();}});delete _737.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_73a){this.destroyDescendants();var _73b=this._contentSetter;if(!(_73b&&_73b instanceof dojo.html._ContentSetter)){_73b=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _73c=this.onContentError(e);try{this.containerNode.innerHTML=_73c;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _73d=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_73b.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_73d);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_73a){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_73e){this.onLoadDeferred.errback(err);var _73f=this["on"+type+"Error"].call(this,err);if(_73e){console.error(_73e,err);}else{if(_73f){this._setContent(_73f,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_740){},onDownloadError:function(_741){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated,dijit._CssStateMixin],{title:"",open:true,toggleable:true,tabIndex:"0",duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:dojo.cache("dijit","templates/TitlePane.html","<div>\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" role=\"presentation\"\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t\t</div>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" role=\"presentation\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" role=\"presentation\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" role=\"region\" id=\"${id}_pane\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n"),attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _742=this.hideNode,_743=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_742.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_742.style.display="none";}});},_setOpenAttr:function(open,_744){dojo.forEach([this._wipeIn,this._wipeOut],function(_745){if(_745&&_745.status()=="playing"){_745.stop();}});if(_744){var anim=this[open?"_wipeIn":"_wipeOut"];anim.play();}else{this.hideNode.style.display=this.wipeNode.style.display=open?"":"none";}if(this._started){if(open){this._onShow();}else{this.onHide();}}this.arrowNodeInner.innerHTML=open?"-":"+";dijit.setWaiState(this.containerNode,"hidden",open?"false":"true");dijit.setWaiState(this.focusNode,"pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_746){dijit.setWaiRole(this.focusNode,_746?"button":"heading");if(_746){dijit.setWaiState(this.focusNode,"controls",this.id+"_pane");dojo.attr(this.focusNode,"tabIndex",this.tabIndex);}else{dojo.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_746);this._setCss();},_setContentAttr:function(_747){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){this._setOpenAttr(!this.open,true);},_setCss:function(){var node=this.titleBarNode||this.focusNode;var _748=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");dojo.replaceClass(node,this._titleBarClass,_748||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}dojo.stopEvent(e);}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_749){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_749);}});}if(!dojo._hasResource["dijit.form.ComboBox"]){dojo._hasResource["dijit.form.ComboBox"]=true;dojo.provide("dijit.form.ComboBox");dojo.declare("dijit.form.ComboBoxMixin",dijit._HasDropDown,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),baseClass:"dijitTextBox dijitComboBox",dropDownClass:"dijit.form._ComboBoxMenu",cssStateNodes:{"_buttonNode":"dijitDownArrowButton"},maxHeight:-1,_stopClickEvents:false,_getCaretPos:function(_74a){var pos=0;if(typeof (_74a.selectionStart)=="number"){pos=_74a.selectionStart;}else{if(dojo.isIE){var tr=dojo.doc.selection.createRange().duplicate();var ntr=_74a.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_74b,_74c){_74c=parseInt(_74c);dijit.selectInputText(_74b,_74c,_74c);},_setDisabledAttr:function(_74d){this.inherited(arguments);dijit.setWaiState(this.domNode,"disabled",_74d);},_abortQuery:function(){if(this.searchTimer){clearTimeout(this.searchTimer);this.searchTimer=null;}if(this._fetchHandle){if(this._fetchHandle.abort){this._fetchHandle.abort();}this._fetchHandle=null;}},_onInput:function(evt){if(!this.searchTimer&&(evt.type=="paste"||evt.type=="input")&&this._lastInput!=this.textbox.value){this.searchTimer=setTimeout(dojo.hitch(this,function(){this._onKey({charOrCode:229});}),100);}this.inherited(arguments);},_onKey:function(evt){var key=evt.charOrCode;if(evt.altKey||((evt.ctrlKey||evt.metaKey)&&(key!="x"&&key!="v"))||key==dojo.keys.SHIFT){return;}var _74e=false;var pw=this.dropDown;var dk=dojo.keys;var _74f=null;this._prev_key_backspace=false;this._abortQuery();this.inherited(arguments);if(this._opened){_74f=pw.getHighlightedOption();}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:case dk.PAGE_UP:case dk.UP_ARROW:if(this._opened){this._announceOption(_74f);}dojo.stopEvent(evt);break;case dk.ENTER:if(_74f){if(_74f==pw.nextButton){this._nextSearch(1);dojo.stopEvent(evt);break;}else{if(_74f==pw.previousButton){this._nextSearch(-1);dojo.stopEvent(evt);break;}}}else{this._setBlurValue();this._setCaretPos(this.focusNode,this.focusNode.value.length);}if(this._opened||this._fetchHandle){evt.preventDefault();}case dk.TAB:var _750=this.get("displayedValue");if(pw&&(_750==pw._messages["previousMessage"]||_750==pw._messages["nextMessage"])){break;}if(_74f){this._selectOption();}if(this._opened){this._lastQuery=null;this.closeDropDown();}break;case " ":if(_74f){dojo.stopEvent(evt);this._selectOption();this.closeDropDown();}else{_74e=true;}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_backspace=true;_74e=true;break;default:_74e=typeof key=="string"||key==229;}if(_74e){this.item=undefined;this.searchTimer=setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _751=this.ignoreCase?"toLowerCase":"substr";if(text[_751](0).indexOf(this.focusNode.value[_751](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_752,_753){this._fetchHandle=null;if(this.disabled||this.readOnly||(_753.query[this.searchAttr]!=this._lastQuery)){return;}var _754=this.dropDown._highlighted_option&&dojo.hasClass(this.dropDown._highlighted_option,"dijitMenuItemSelected");this.dropDown.clearResultList();if(!_752.length&&!this._maxOptions){this.closeDropDown();return;}_753._maxOptions=this._maxOptions;var _755=this.dropDown.createOptions(_752,_753,dojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_753.direction){if(1==_753.direction){this.dropDown.highlightFirstOption();}else{if(-1==_753.direction){this.dropDown.highlightLastOption();}}if(_754){this._announceOption(this.dropDown.getHighlightedOption());}}else{if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_753.query[this.searchAttr])){this._announceOption(_755[1]);}}},_showResultList:function(){this.closeDropDown(true);this.displayMessage("");this.openDropDown();dijit.setWaiState(this.domNode,"expanded","true");},loadDropDown:function(_756){this._startSearchAll();},isLoaded:function(){return false;},closeDropDown:function(){this._abortQuery();if(this._opened){this.inherited(arguments);dijit.setWaiState(this.domNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _757=this.get("displayedValue");var pw=this.dropDown;if(pw&&(_757==pw._messages["previousMessage"]||_757==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{if(typeof this.item=="undefined"){this.item=null;this.set("displayedValue",_757);}else{if(this.value!=this._lastValueReported){dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);}this._refreshState();}}},_onBlur:function(){this.closeDropDown();this.inherited(arguments);},_setItemAttr:function(item,_758,_759){if(!_759){_759=this.store.getValue(item,this.searchAttr);}var _75a=this._getValueField()!=this.searchAttr?this.store.getIdentity(item):_759;this._set("item",item);dijit.form.ComboBox.superclass._setValueAttr.call(this,_75a,_758,_759);},_announceOption:function(node){if(!node){return;}var _75b;if(node==this.dropDown.nextButton||node==this.dropDown.previousButton){_75b=node.innerHTML;this.item=undefined;this.value="";}else{_75b=this.store.getValue(node.item,this.searchAttr).toString();this.set("item",node.item,false,_75b);}this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(node,"id"));this._autoCompleteText(_75b);},_selectOption:function(evt){if(evt){this._announceOption(evt.target);}this.closeDropDown();this._setCaretPos(this.focusNode,this.focusNode.value.length);dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);},_startSearchAll:function(){this._startSearch("");},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return dojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this.dropDown){var _75c=this.id+"_popup",_75d=dojo.getObject(this.dropDownClass,false);this.dropDown=new _75d({onChange:dojo.hitch(this,this._selectOption),id:_75c,dir:this.dir});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_75c);}var _75e=dojo.clone(this.query);this._lastInput=key;this._lastQuery=_75e[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(dojo.hitch(this,function(_75f,_760){this.searchTimer=null;var _761={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_75f,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_762){_760._fetchHandle=null;console.error("dijit.form.ComboBox: "+_762);_760.closeDropDown();},start:0,count:this.pageSize};dojo.mixin(_761,_760.fetchProperties);this._fetchHandle=_760.store.fetch(_761);var _763=function(_764,_765){_764.start+=_764.count*_765;_764.direction=_765;this._fetchHandle=this.store.fetch(_764);this.focus();};this._nextSearch=this.dropDown.onPage=dojo.hitch(this,_763,this._fetchHandle);},_75e,this),this.searchDelay);},_setMaxOptions:function(size,_766){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.store){var _767=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_767);if(!("value" in this.params)){var item=(this.item=this.store.fetchSelectedItem());if(item){var _768=this._getValueField();this.value=this.store.getValue(item,_768);}}}this.inherited(arguments);},postCreate:function(){var _769=dojo.query("label[for=\""+this.id+"\"]");if(_769.length){_769[0].id=(this.id+"_label");dijit.setWaiState(this.domNode,"labelledby",_769[0].id);}this.inherited(arguments);},_setHasDownArrowAttr:function(val){this.hasDownArrow=val;this._buttonNode.style.display=val?"":"none";},_getMenuLabelFromItem:function(item){var _76a=this.labelFunc(item,this.store),_76b=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_76a=this.doHighlight(_76a,this._escapeHtml(this._lastInput));_76b="html";}return {html:_76b=="html",label:_76a};},doHighlight:function(_76c,find){var _76d=(this.ignoreCase?"i":"")+(this.highlightMatch=="all"?"g":""),i=this.queryExpr.indexOf("${0}");find=dojo.regexp.escapeString(find);return this._escapeHtml(_76c).replace(new RegExp((i==0?"^":"")+"("+find+")"+(i==(this.queryExpr.length-4)?"$":""),_76d),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},reset:function(){this.item=null;this.inherited(arguments);},labelFunc:function(item,_76e){return _76e.getValue(item,this.labelAttr||this.searchAttr).toString();}});dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,baseClass:"dijitComboBoxMenu",postMixInProperties:function(){this.inherited(arguments);this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);},buildRendering:function(){this.inherited(arguments);this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];},_setValueAttr:function(_76f){this.value=_76f;this.onChange(_76f);},onChange:function(_770){},onPage:function(_771){},onClose:function(){this._blurOptionNode();},_createOption:function(item,_772){var _773=dojo.create("li",{"class":"dijitReset dijitMenuItem"+(this.isLeftToRight()?"":" dijitMenuItemRtl"),role:"option"});var _774=_772(item);if(_774.html){_773.innerHTML=_774.label;}else{_773.appendChild(dojo.doc.createTextNode(_774.label));}if(_773.innerHTML==""){_773.innerHTML="&nbsp;";}_773.item=item;return _773;},createOptions:function(_775,_776,_777){this.previousButton.style.display=(_776.start==0)?"none":"";dojo.attr(this.previousButton,"id",this.id+"_prev");dojo.forEach(_775,function(item,i){var _778=this._createOption(item,_777);dojo.attr(_778,"id",this.id+i);this.domNode.insertBefore(_778,this.nextButton);},this);var _779=false;if(_776._maxOptions&&_776._maxOptions!=-1){if((_776.start+_776.count)<_776._maxOptions){_779=true;}else{if((_776.start+_776.count)>_776._maxOptions&&_776.count==_775.length){_779=true;}}}else{if(_776.count==_775.length){_779=true;}}this.nextButton.style.display=_779?"":"none";dojo.attr(this.nextButton,"id",this.id+"_next");return this.domNode.childNodes;},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}this._blurOptionNode();},_onMouseDown:function(evt){dojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode||!this._highlighted_option){return;}else{if(evt.target==this.previousButton){this._blurOptionNode();this.onPage(-1);}else{if(evt.target==this.nextButton){this._blurOptionNode();this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");}},_blurOptionNode:function(){if(this._highlighted_option){dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");this._highlighted_option=null;}},_highlightNextOption:function(){if(!this.getHighlightedOption()){var fc=this.domNode.firstChild;this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}else{this.highlightFirstOption();}}dojo.window.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){var _77a=this.domNode.firstChild;var _77b=_77a.nextSibling;this._focusOptionNode(_77b.style.display=="none"?_77a:_77b);dojo.window.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dojo.window.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){if(!this.getHighlightedOption()){var lc=this.domNode.lastChild;this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}else{this.highlightLastOption();}}dojo.window.scrollIntoView(this._highlighted_option);},_page:function(up){var _77c=0;var _77d=this.domNode.scrollTop;var _77e=dojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_77c<_77e){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _77f=this.domNode.scrollTop;_77c+=(_77f-_77d)*(up?-1:1);_77d=_77f;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(evt){switch(evt.charOrCode){case dojo.keys.DOWN_ARROW:this._highlightNextOption();return false;case dojo.keys.PAGE_DOWN:this.pageDown();return false;case dojo.keys.UP_ARROW:this._highlightPrevOption();return false;case dojo.keys.PAGE_UP:this.pageUp();return false;default:return true;}}});dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_780,_781,_782){this._set("item",null);if(!_780){_780="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_780,_781,_782);}});dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;if(root.tagName!="SELECT"&&root.firstChild){root=dojo.query("select",root);if(root.length>0){root=root[0];}else{this.root.innerHTML="<SELECT>"+this.root.innerHTML+"</SELECT>";root=this.root.firstChild;}this.root=root;}dojo.query("> option",root).forEach(function(node){node.innerHTML=dojo.trim(node.innerHTML);});},getValue:function(item,_783,_784){return (_783=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_785){return true;},getFeatures:function(){return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};},_fetchItems:function(args,_786,_787){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _788=dojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_789=dojo.query("> option",this.root).filter(function(_78a){return (_78a.innerText||_78a.textContent||"").match(_788);});if(args.sort){_789.sort(dojo.data.util.sorter.createSortFunction(args.sort,this));}_786(_789,args);},close:function(_78b){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return dojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=dojo.query("> option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return typeof si=="number"?dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0]:null;}});dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dijit.form.FilteringSelect"]){dojo._hasResource["dijit.form.FilteringSelect"]=true;dojo.provide("dijit.form.FilteringSelect");dojo.declare("dijit.form.FilteringSelect",[dijit.form.MappedTextBox,dijit.form.ComboBoxMixin],{required:true,_lastDisplayedValue:"",_isValidSubset:function(){return this._opened;},isValid:function(){return this.item||(!this.required&&this.get("displayedValue")=="");},_refreshState:function(){if(!this.searchTimer){this.inherited(arguments);}},_callbackSetLabel:function(_78c,_78d,_78e){if((_78d&&_78d.query[this.searchAttr]!=this._lastQuery)||(!_78d&&_78c.length&&this.store.getIdentity(_78c[0])!=this._lastQuery)){return;}if(!_78c.length){this.valueNode.value="";dijit.form.TextBox.superclass._setValueAttr.call(this,"",_78e||(_78e===undefined&&!this._focused));this._set("item",null);this.validate(this._focused);}else{this.set("item",_78c[0],_78e);}},_openResultList:function(_78f,_790){if(_790.query[this.searchAttr]!=this._lastQuery){return;}dijit.form.ComboBoxMixin.prototype._openResultList.apply(this,arguments);if(this.item===undefined){this.validate(true);}},_getValueAttr:function(){return this.valueNode.value;},_getValueField:function(){return "value";},_setValueAttr:function(_791,_792){if(!this._onChangeActive){_792=null;}this._lastQuery=_791;if(_791===null||_791===""){this._setDisplayedValueAttr("",_792);return;}var self=this;this.store.fetchItemByIdentity({identity:_791,onItem:function(item){self._callbackSetLabel(item?[item]:[],undefined,_792);}});},_setItemAttr:function(item,_793,_794){this.inherited(arguments);this.valueNode.value=this.value;this._lastDisplayedValue=this.textbox.value;},_getDisplayQueryString:function(text){return text.replace(/([\\\*\?])/g,"\\$1");},_setDisplayedValueAttr:function(_795,_796){if(_795==null){_795="";}if(!this._created){if(!("displayedValue" in this.params)){return;}_796=false;}if(this.store){this.closeDropDown();var _797=dojo.clone(this.query);this._lastQuery=_797[this.searchAttr]=this._getDisplayQueryString(_795);this.textbox.value=_795;this._lastDisplayedValue=_795;this._set("displayedValue",_795);var _798=this;var _799={query:_797,queryOptions:{ignoreCase:this.ignoreCase,deep:true},onComplete:function(_79a,_79b){_798._fetchHandle=null;dojo.hitch(_798,"_callbackSetLabel")(_79a,_79b,_796);},onError:function(_79c){_798._fetchHandle=null;console.error("dijit.form.FilteringSelect: "+_79c);dojo.hitch(_798,"_callbackSetLabel")([],undefined,false);}};dojo.mixin(_799,this.fetchProperties);this._fetchHandle=this.store.fetch(_799);}},undo:function(){this.set("displayedValue",this._lastDisplayedValue);}});}if(!dojo._hasResource["dijit.form.SimpleTextarea"]){dojo._hasResource["dijit.form.SimpleTextarea"]=true;dojo.provide("dijit.form.SimpleTextarea");dojo.declare("dijit.form.SimpleTextarea",dijit.form.TextBox,{baseClass:"dijitTextBox dijitTextArea",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{rows:"textbox",cols:"textbox"}),rows:"3",cols:"20",templateString:"<textarea ${!nameAttrSetting} dojoAttachPoint='focusNode,containerNode,textbox' autocomplete='off'></textarea>",postMixInProperties:function(){if(!this.value&&this.srcNodeRef){this.value=this.srcNodeRef.value;}this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);if(dojo.isIE&&this.cols){dojo.addClass(this.textbox,"dijitTextAreaCols");}},filter:function(_79d){if(_79d){_79d=_79d.replace(/\r/g,"");}return this.inherited(arguments);},_previousValue:"",_onInput:function(e){if(this.maxLength){var _79e=parseInt(this.maxLength);var _79f=this.textbox.value.replace(/\r/g,"");var _7a0=_79f.length-_79e;if(_7a0>0){if(e){dojo.stopEvent(e);}var _7a1=this.textbox;if(_7a1.selectionStart){var pos=_7a1.selectionStart;var cr=0;if(dojo.isOpera){cr=(this.textbox.value.substring(0,pos).match(/\r/g)||[]).length;}this.textbox.value=_79f.substring(0,pos-_7a0-cr)+_79f.substring(pos-cr);_7a1.setSelectionRange(pos-_7a0,pos-_7a0);}else{if(dojo.doc.selection){_7a1.focus();var _7a2=dojo.doc.selection.createRange();_7a2.moveStart("character",-_7a0);_7a2.text="";_7a2.select();}}}this._previousValue=this.textbox.value;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]){dojo._hasResource["dijit.form._ExpandingTextAreaMixin"]=true;dojo.provide("dijit.form._ExpandingTextAreaMixin");var needsHelpShrinking;dojo.declare("dijit.form._ExpandingTextAreaMixin",null,{_setValueAttr:function(){this.inherited(arguments);this.resize();},postCreate:function(){this.inherited(arguments);var _7a3=this.textbox;if(needsHelpShrinking==undefined){var te=dojo.create("textarea",{rows:"5",cols:"20",value:" ",style:{zoom:1,fontSize:"12px",height:"96px",overflow:"hidden",visibility:"hidden",position:"absolute",border:"5px solid white",margin:"0",padding:"0",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"}},dojo.body(),"last");needsHelpShrinking=te.scrollHeight>=te.clientHeight;dojo.body().removeChild(te);}this.connect(_7a3,"onresize","_resizeLater");this.connect(_7a3,"onfocus","_resizeLater");_7a3.style.overflowY="hidden";},startup:function(){this.inherited(arguments);this._resizeLater();},_onInput:function(e){this.inherited(arguments);this.resize();},_estimateHeight:function(){var _7a4=this.textbox;_7a4.rows=(_7a4.value.match(/\n/g)||[]).length+1;},_resizeLater:function(){this.defer("resize");},resize:function(){var _7a5=this.textbox;function _7a6(){var _7a7=false;if(_7a5.value===""){_7a5.value=" ";_7a7=true;}var sh=_7a5.scrollHeight;if(_7a7){_7a5.value="";}return sh;};if(_7a5.style.overflowY=="hidden"){_7a5.scrollTop=0;}if(this.busyResizing){return;}this.busyResizing=true;if(_7a6()||_7a5.offsetHeight){var newH=_7a6()+Math.max(_7a5.offsetHeight-_7a5.clientHeight,0);var _7a8=newH+"px";if(_7a8!=_7a5.style.height){_7a5.style.height=_7a8;_7a5.rows=1;}if(needsHelpShrinking){var _7a9=_7a6(),_7aa=_7a9,_7ab=_7a5.style.minHeight,_7ac=4,_7ad,_7ae=_7a5.scrollTop;_7a5.style.minHeight=_7a8;_7a5.style.height="auto";while(newH>0){_7a5.style.minHeight=Math.max(newH-_7ac,4)+"px";_7ad=_7a6();var _7af=_7aa-_7ad;newH-=_7af;if(_7af<_7ac){break;}_7aa=_7ad;_7ac<<=1;}_7a5.style.height=newH+"px";_7a5.style.minHeight=_7ab;_7a5.scrollTop=_7ae;}_7a5.style.overflowY=_7a6()>_7a5.clientHeight?"auto":"hidden";if(_7a5.style.overflowY=="hidden"){_7a5.scrollTop=0;}}else{this._estimateHeight();}this.busyResizing=false;}});}if(!dojo._hasResource["dijit.form.Textarea"]){dojo._hasResource["dijit.form.Textarea"]=true;dojo.provide("dijit.form.Textarea");dojo.declare("dijit.form.Textarea",[dijit.form.SimpleTextarea,dijit.form._ExpandingTextAreaMixin],{baseClass:"dijitTextBox dijitTextArea dijitExpandingTextArea",cols:"",buildRendering:function(){this.inherited(arguments);dojo.style(this.textbox,{overflowY:"hidden",overflowX:"auto",boxSizing:"border-box",MsBoxSizing:"border-box",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box"});}});}if(!dojo._hasResource["dijit.InlineEditBox"]){dojo._hasResource["dijit.InlineEditBox"]=true;dojo.provide("dijit.InlineEditBox");dojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorWrapper:"dijit._InlineEditor",editorParams:{},disabled:false,onChange:function(_7b0){},onCancel:function(){},width:"100%",value:"",noValueIndicator:dojo.isIE<=6?"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>":"<span style='text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _7b1={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _7b1){this.connect(this.displayNode,name,_7b1[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}if(!this.value&&!("value" in this.params)){this.value=dojo.trim(this.renderAsHtml?this.displayNode.innerHTML:(this.displayNode.innerText||this.displayNode.textContent||""));}if(!this.value){this.displayNode.innerHTML=this.noValueIndicator;}dojo.addClass(this.displayNode,"dijitInlineEditBoxDisplayMode");},setDisabled:function(_7b2){dojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_7b2);},_setDisabledAttr:function(_7b3){dijit.setWaiState(this.domNode,"disabled",_7b3);if(_7b3){this.displayNode.removeAttribute("tabIndex");}else{this.displayNode.setAttribute("tabIndex",0);}dojo.toggleClass(this.displayNode,"dijitInlineEditBoxDisplayModeDisabled",_7b3);this._set("disabled",_7b3);},_onMouseOver:function(){if(!this.disabled){dojo.addClass(this.displayNode,"dijitInlineEditBoxDisplayModeHover");}},_onMouseOut:function(){dojo.removeClass(this.displayNode,"dijitInlineEditBoxDisplayModeHover");},_onClick:function(e){if(this.disabled){return;}if(e){dojo.stopEvent(e);}this._onMouseOut();setTimeout(dojo.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;this._savedPosition=dojo.style(this.displayNode,"position")||"static";this._savedOpacity=dojo.style(this.displayNode,"opacity")||"1";this._savedTabIndex=dojo.attr(this.displayNode,"tabIndex")||"0";if(this.wrapperWidget){var ew=this.wrapperWidget.editWidget;ew.set("displayedValue" in ew?"displayedValue":"value",this.value);}else{var _7b4=dojo.create("span",null,this.domNode,"before");var ewc=typeof this.editorWrapper=="string"?dojo.getObject(this.editorWrapper):this.editorWrapper;this.wrapperWidget=new ewc({value:this.value,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,dir:this.dir,lang:this.lang,tabIndex:this._savedTabIndex,editor:this.editor,inlineEditBox:this,sourceStyle:dojo.getComputedStyle(this.displayNode),save:dojo.hitch(this,"save"),cancel:dojo.hitch(this,"cancel")},_7b4);if(!this._started){this.startup();}}var ww=this.wrapperWidget;dojo.style(this.displayNode,{position:"absolute",opacity:"0"});dojo.style(ww.domNode,{position:this._savedPosition,visibility:"visible",opacity:"1"});dojo.attr(this.displayNode,"tabIndex","-1");setTimeout(dojo.hitch(ww,function(){this.focus();this._resetValue=this.getValue();}),0);},_onBlur:function(){this.inherited(arguments);if(!this.editing){}},destroy:function(){if(this.wrapperWidget&&!this.wrapperWidget._destroyed){this.wrapperWidget.destroy();delete this.wrapperWidget;}this.inherited(arguments);},_showText:function(_7b5){var ww=this.wrapperWidget;dojo.style(ww.domNode,{position:"absolute",visibility:"hidden",opacity:"0"});dojo.style(this.displayNode,{position:this._savedPosition,opacity:this._savedOpacity});dojo.attr(this.displayNode,"tabIndex",this._savedTabIndex);if(_7b5){dijit.focus(this.displayNode);}},save:function(_7b6){if(this.disabled||!this.editing){return;}this.editing=false;var ww=this.wrapperWidget;var _7b7=ww.getValue();this.set("value",_7b7);this._showText(_7b6);},setValue:function(val){dojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use set('value', ...) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(val){val=dojo.trim(val);var _7b8=this.renderAsHtml?val:val.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>");this.displayNode.innerHTML=_7b8||this.noValueIndicator;this._set("value",val);if(this._started){setTimeout(dojo.hitch(this,"onChange",val),0);}},getValue:function(){dojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use get('value') instead.","","2.0");return this.get("value");},cancel:function(_7b9){if(this.disabled||!this.editing){return;}this.editing=false;setTimeout(dojo.hitch(this,"onCancel"),0);this._showText(_7b9);}});dojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/InlineEditBox.html","<span data-dojo-attach-point=\"editNode\" role=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\n\tdata-dojo-attach-event=\"onkeypress: _onKeyPress\"\n\t><span data-dojo-attach-point=\"editorPlaceholder\"></span\n\t><span data-dojo-attach-point=\"buttonContainer\"\n\t\t><button data-dojo-type=\"dijit.form.Button\" data-dojo-props=\"label: '${buttonSave}', 'class': 'saveButton'\"\n\t\t\tdata-dojo-attach-point=\"saveButton\" data-dojo-attach-event=\"onClick:save\"></button\n\t\t><button data-dojo-type=\"dijit.form.Button\"  data-dojo-props=\"label: '${buttonCancel}', 'class': 'cancelButton'\"\n\t\t\tdata-dojo-attach-point=\"cancelButton\" data-dojo-attach-event=\"onClick:cancel\"></button\n\t></span\n></span>\n"),widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=dojo.i18n.getLocalization("dijit","common",this.lang);dojo.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},buildRendering:function(){this.inherited(arguments);var cls=typeof this.editor=="string"?dojo.getObject(this.editor):this.editor;var _7ba=this.sourceStyle,_7bb="line-height:"+_7ba.lineHeight+";",_7bc=dojo.getComputedStyle(this.domNode);dojo.forEach(["Weight","Family","Size","Style"],function(prop){var _7bd=_7ba["font"+prop],_7be=_7bc["font"+prop];if(_7be!=_7bd){_7bb+="font-"+prop+":"+_7ba["font"+prop]+";";}},this);dojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_7ba[prop];},this);var _7bf=this.inlineEditBox.width;if(_7bf=="100%"){_7bb+="width:100%;";this.domNode.style.display="block";}else{_7bb+="width:"+(_7bf+(Number(_7bf)==_7bf?"px":""))+";";}var _7c0=dojo.delegate(this.inlineEditBox.editorParams,{style:_7bb,dir:this.dir,lang:this.lang});_7c0["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;this.editWidget=new cls(_7c0,this.editorPlaceholder);if(this.inlineEditBox.autoSave){dojo.destroy(this.buttonContainer);}},postCreate:function(){this.inherited(arguments);var ew=this.editWidget;if(this.inlineEditBox.autoSave){this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");}else{if("intermediateChanges" in ew){ew.set("intermediateChanges",true);this.connect(ew,"onChange","_onIntermediateChange");this.saveButton.set("disabled",true);}}},_onIntermediateChange:function(val){this.saveButton.set("disabled",(this.getValue()==this._resetValue)||!this.enableSave());},destroy:function(){this.editWidget.destroy(true);this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return String(ew.get("displayedValue" in ew?"displayedValue":"value"));},_onKeyPress:function(e){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==dojo.keys.ESCAPE){dojo.stopEvent(e);this.cancel(true);}else{if(e.charOrCode==dojo.keys.ENTER&&e.target.tagName=="INPUT"){dojo.stopEvent(e);this._onChange();}}}},_onBlur:function(){this.inherited(arguments);if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing){if(this.getValue()==this._resetValue){this.cancel(false);}else{if(this.enableSave()){this.save(false);}}}},_onChange:function(){if(this.inlineEditBox.autoSave&&this.inlineEditBox.editing&&this.enableSave()){dijit.focus(this.inlineEditBox.displayNode);}},enableSave:function(){return (this.editWidget.isValid?this.editWidget.isValid():true);},focus:function(){this.editWidget.focus();setTimeout(dojo.hitch(this,function(){if(this.editWidget.focusNode&&this.editWidget.focusNode.tagName=="INPUT"){dijit.selectInputText(this.editWidget.focusNode);}}),0);}});}if(!dojo._hasResource["dojo.date"]){dojo._hasResource["dojo.date"]=true;dojo.provide("dojo.date");dojo.getObject("date",true,dojo);dojo.date.getDaysInMonth=function(_7c1){var _7c2=_7c1.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_7c2==1&&dojo.date.isLeapYear(_7c1)){return 29;}return days[_7c2];};dojo.date.isLeapYear=function(_7c3){var year=_7c3.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};dojo.date.getTimezoneName=function(_7c4){var str=_7c4.toString();var tz="";var _7c5;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_7c5=str.match(pat))){tz=_7c5[1];}else{str=_7c4.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_7c5=str.match(pat))){tz=_7c5[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};dojo.date.compare=function(_7c6,_7c7,_7c8){_7c6=new Date(+_7c6);_7c7=new Date(+(_7c7||new Date()));if(_7c8=="date"){_7c6.setHours(0,0,0,0);_7c7.setHours(0,0,0,0);}else{if(_7c8=="time"){_7c6.setFullYear(0,0,0);_7c7.setFullYear(0,0,0);}}if(_7c6>_7c7){return 1;}if(_7c6<_7c7){return -1;}return 0;};dojo.date.add=function(date,_7c9,_7ca){var sum=new Date(+date);var _7cb=false;var _7cc="Date";switch(_7c9){case "day":break;case "weekday":var days,_7cd;var mod=_7ca%5;if(!mod){days=(_7ca>0)?5:-5;_7cd=(_7ca>0)?((_7ca-5)/5):((_7ca+5)/5);}else{days=mod;_7cd=parseInt(_7ca/5);}var strt=date.getDay();var adj=0;if(strt==6&&_7ca>0){adj=1;}else{if(strt==0&&_7ca<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_7ca>0)?2:-2;}_7ca=(7*_7cd)+days+adj;break;case "year":_7cc="FullYear";_7cb=true;break;case "week":_7ca*=7;break;case "quarter":_7ca*=3;case "month":_7cb=true;_7cc="Month";break;default:_7cc="UTC"+_7c9.charAt(0).toUpperCase()+_7c9.substring(1)+"s";}if(_7cc){sum["set"+_7cc](sum["get"+_7cc]()+_7ca);}if(_7cb&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};dojo.date.difference=function(_7ce,_7cf,_7d0){_7cf=_7cf||new Date();_7d0=_7d0||"day";var _7d1=_7cf.getFullYear()-_7ce.getFullYear();var _7d2=1;switch(_7d0){case "quarter":var m1=_7ce.getMonth();var m2=_7cf.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_7d1*4);_7d2=q2-q1;break;case "weekday":var days=Math.round(dojo.date.difference(_7ce,_7cf,"day"));var _7d3=parseInt(dojo.date.difference(_7ce,_7cf,"week"));var mod=days%7;if(mod==0){days=_7d3*5;}else{var adj=0;var aDay=_7ce.getDay();var bDay=_7cf.getDay();_7d3=parseInt(days/7);mod=days%7;var _7d4=new Date(_7ce);_7d4.setDate(_7d4.getDate()+(_7d3*7));var _7d5=_7d4.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_7d5+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_7d5+mod)<0:adj=2;}}}days+=adj;days-=(_7d3*2);}_7d2=days;break;case "year":_7d2=_7d1;break;case "month":_7d2=(_7cf.getMonth()-_7ce.getMonth())+(_7d1*12);break;case "week":_7d2=parseInt(dojo.date.difference(_7ce,_7cf,"day")/7);break;case "day":_7d2/=24;case "hour":_7d2/=60;case "minute":_7d2/=60;case "second":_7d2/=1000;case "millisecond":_7d2*=_7cf.getTime()-_7ce.getTime();}return Math.round(_7d2);};}if(!dojo._hasResource["dojo.cldr.supplemental"]){dojo._hasResource["dojo.cldr.supplemental"]=true;dojo.provide("dojo.cldr.supplemental");dojo.getObject("cldr.supplemental",true,dojo);dojo.cldr.supplemental.getFirstDayOfWeek=function(_7d6){var _7d7={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,sy:6,tn:6,ye:6,ar:0,as:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,il:0,"in":0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mn:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,zw:0};var _7d8=dojo.cldr.supplemental._region(_7d6);var dow=_7d7[_7d8];return (dow===undefined)?1:dow;};dojo.cldr.supplemental._region=function(_7d9){_7d9=dojo.i18n.normalizeLocale(_7d9);var tags=_7d9.split("-");var _7da=tags[1];if(!_7da){_7da={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[tags[0]];}else{if(_7da.length==4){_7da=tags[2];}}return _7da;};dojo.cldr.supplemental.getWeekend=function(_7db){var _7dc={"in":0,af:4,dz:4,ir:4,om:4,sa:4,ye:4,ae:5,bh:5,eg:5,il:5,iq:5,jo:5,kw:5,ly:5,ma:5,qa:5,sd:5,sy:5,tn:5};var _7dd={af:5,dz:5,ir:5,om:5,sa:5,ye:5,ae:6,bh:5,eg:6,il:6,iq:6,jo:6,kw:6,ly:6,ma:6,qa:6,sd:6,sy:6,tn:6};var _7de=dojo.cldr.supplemental._region(_7db);var _7df=_7dc[_7de];var end=_7dd[_7de];if(_7df===undefined){_7df=6;}if(end===undefined){end=0;}return {start:_7df,end:end};};}if(!dojo._hasResource["dojo.date.locale"]){dojo._hasResource["dojo.date.locale"]=true;dojo.provide("dojo.date.locale");dojo.getObject("date.locale",true,dojo);(function(){function _7e0(_7e1,_7e2,_7e3,_7e4){return _7e4.replace(/([a-z])\1*/ig,function(_7e5){var s,pad,c=_7e5.charAt(0),l=_7e5.length,_7e6=["abbr","wide","narrow"];switch(c){case "G":s=_7e2[(l<4)?"eraAbbr":"eraNames"][_7e1.getFullYear()<0?0:1];break;case "y":s=_7e1.getFullYear();switch(l){case 1:break;case 2:if(!_7e3.fullYear){s=String(s);s=s.substr(s.length-2);break;}default:pad=true;}break;case "Q":case "q":s=Math.ceil((_7e1.getMonth()+1)/3);pad=true;break;case "M":var m=_7e1.getMonth();if(l<3){s=m+1;pad=true;}else{var _7e7=["months","format",_7e6[l-3]].join("-");s=_7e2[_7e7][m];}break;case "w":var _7e8=0;s=dojo.date.locale._getWeekOfYear(_7e1,_7e8);pad=true;break;case "d":s=_7e1.getDate();pad=true;break;case "D":s=dojo.date.locale._getDayOfYear(_7e1);pad=true;break;case "E":var d=_7e1.getDay();if(l<3){s=d+1;pad=true;}else{var _7e9=["days","format",_7e6[l-3]].join("-");s=_7e2[_7e9][d];}break;case "a":var _7ea=(_7e1.getHours()<12)?"am":"pm";s=_7e3[_7ea]||_7e2["dayPeriods-format-wide-"+_7ea];break;case "h":case "H":case "K":case "k":var h=_7e1.getHours();switch(c){case "h":s=(h%12)||12;break;case "H":s=h;break;case "K":s=(h%12);break;case "k":s=h||24;break;}pad=true;break;case "m":s=_7e1.getMinutes();pad=true;break;case "s":s=_7e1.getSeconds();pad=true;break;case "S":s=Math.round(_7e1.getMilliseconds()*Math.pow(10,l-3));pad=true;break;case "v":case "z":s=dojo.date.locale._getZone(_7e1,true,_7e3);if(s){break;}l=4;case "Z":var _7eb=dojo.date.locale._getZone(_7e1,false,_7e3);var tz=[(_7eb<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_7eb)/60),2),dojo.string.pad(Math.abs(_7eb)%60,2)];if(l==4){tz.splice(0,0,"GMT");tz.splice(3,0,":");}s=tz.join("");break;default:throw new Error("dojo.date.locale.format: invalid pattern char: "+_7e4);}if(pad){s=dojo.string.pad(s,l);}return s;});};dojo.date.locale._getZone=function(_7ec,_7ed,_7ee){if(_7ed){return dojo.date.getTimezoneName(_7ec);}else{return _7ec.getTimezoneOffset();}};dojo.date.locale.format=function(_7ef,_7f0){_7f0=_7f0||{};var _7f1=dojo.i18n.normalizeLocale(_7f0.locale),_7f2=_7f0.formatLength||"short",_7f3=dojo.date.locale._getGregorianBundle(_7f1),str=[],_7f4=dojo.hitch(this,_7e0,_7ef,_7f3,_7f0);if(_7f0.selector=="year"){return _7f5(_7f3["dateFormatItem-yyyy"]||"yyyy",_7f4);}var _7f6;if(_7f0.selector!="date"){_7f6=_7f0.timePattern||_7f3["timeFormat-"+_7f2];if(_7f6){str.push(_7f5(_7f6,_7f4));}}if(_7f0.selector!="time"){_7f6=_7f0.datePattern||_7f3["dateFormat-"+_7f2];if(_7f6){str.push(_7f5(_7f6,_7f4));}}return str.length==1?str[0]:_7f3["dateTimeFormat-"+_7f2].replace(/\{(\d+)\}/g,function(_7f7,key){return str[key];});};dojo.date.locale.regexp=function(_7f8){return dojo.date.locale._parseInfo(_7f8).regexp;};dojo.date.locale._parseInfo=function(_7f9){_7f9=_7f9||{};var _7fa=dojo.i18n.normalizeLocale(_7f9.locale),_7fb=dojo.date.locale._getGregorianBundle(_7fa),_7fc=_7f9.formatLength||"short",_7fd=_7f9.datePattern||_7fb["dateFormat-"+_7fc],_7fe=_7f9.timePattern||_7fb["timeFormat-"+_7fc],_7ff;if(_7f9.selector=="date"){_7ff=_7fd;}else{if(_7f9.selector=="time"){_7ff=_7fe;}else{_7ff=_7fb["dateTimeFormat-"+_7fc].replace(/\{(\d+)\}/g,function(_800,key){return [_7fe,_7fd][key];});}}var _801=[],re=_7f5(_7ff,dojo.hitch(this,_802,_801,_7fb,_7f9));return {regexp:re,tokens:_801,bundle:_7fb};};dojo.date.locale.parse=function(_803,_804){var _805=/[\u200E\u200F\u202A\u202E]/g,info=dojo.date.locale._parseInfo(_804),_806=info.tokens,_807=info.bundle,re=new RegExp("^"+info.regexp.replace(_805,"")+"$",info.strict?"":"i"),_808=re.exec(_803&&_803.replace(_805,""));if(!_808){return null;}var _809=["abbr","wide","narrow"],_80a=[1970,0,1,0,0,0,0],amPm="",_80b=dojo.every(_808,function(v,i){if(!i){return true;}var _80c=_806[i-1];var l=_80c.length;switch(_80c.charAt(0)){case "y":if(l!=2&&_804.strict){_80a[0]=v;}else{if(v<100){v=Number(v);var year=""+new Date().getFullYear(),_80d=year.substring(0,2)*100,_80e=Math.min(Number(year.substring(2,4))+20,99),num=(v<_80e)?_80d+v:_80d-100+v;_80a[0]=num;}else{if(_804.strict){return false;}_80a[0]=v;}}break;case "M":if(l>2){var _80f=_807["months-format-"+_809[l-3]].concat();if(!_804.strict){v=v.replace(".","").toLowerCase();_80f=dojo.map(_80f,function(s){return s.replace(".","").toLowerCase();});}v=dojo.indexOf(_80f,v);if(v==-1){return false;}}else{v--;}_80a[1]=v;break;case "E":case "e":var days=_807["days-format-"+_809[l-3]].concat();if(!_804.strict){v=v.toLowerCase();days=dojo.map(days,function(d){return d.toLowerCase();});}v=dojo.indexOf(days,v);if(v==-1){return false;}break;case "D":_80a[1]=0;case "d":_80a[2]=v;break;case "a":var am=_804.am||_807["dayPeriods-format-wide-am"],pm=_804.pm||_807["dayPeriods-format-wide-pm"];if(!_804.strict){var _810=/\./g;v=v.replace(_810,"").toLowerCase();am=am.replace(_810,"").toLowerCase();pm=pm.replace(_810,"").toLowerCase();}if(_804.strict&&v!=am&&v!=pm){return false;}amPm=(v==pm)?"p":(v==am)?"a":"";break;case "K":if(v==24){v=0;}case "h":case "H":case "k":if(v>23){return false;}_80a[3]=v;break;case "m":_80a[4]=v;break;case "s":_80a[5]=v;break;case "S":_80a[6]=v;}return true;});var _811=+_80a[3];if(amPm==="p"&&_811<12){_80a[3]=_811+12;}else{if(amPm==="a"&&_811==12){_80a[3]=0;}}var _812=new Date(_80a[0],_80a[1],_80a[2],_80a[3],_80a[4],_80a[5],_80a[6]);if(_804.strict){_812.setFullYear(_80a[0]);}var _813=_806.join(""),_814=_813.indexOf("d")!=-1,_815=_813.indexOf("M")!=-1;if(!_80b||(_815&&_812.getMonth()>_80a[1])||(_814&&_812.getDate()>_80a[2])){return null;}if((_815&&_812.getMonth()<_80a[1])||(_814&&_812.getDate()<_80a[2])){_812=dojo.date.add(_812,"hour",1);}return _812;};function _7f5(_816,_817,_818,_819){var _81a=function(x){return x;};_817=_817||_81a;_818=_818||_81a;_819=_819||_81a;var _81b=_816.match(/(''|[^'])+/g),_81c=_816.charAt(0)=="'";dojo.forEach(_81b,function(_81d,i){if(!_81d){_81b[i]="";}else{_81b[i]=(_81c?_818:_817)(_81d.replace(/''/g,"'"));_81c=!_81c;}});return _819(_81b.join(""));};function _802(_81e,_81f,_820,_821){_821=dojo.regexp.escapeString(_821);if(!_820.strict){_821=_821.replace(" a"," ?a");}return _821.replace(/([a-z])\1*/ig,function(_822){var s,c=_822.charAt(0),l=_822.length,p2="",p3="";if(_820.strict){if(l>1){p2="0"+"{"+(l-1)+"}";}if(l>2){p3="0"+"{"+(l-2)+"}";}}else{p2="0?";p3="0{0,2}";}switch(c){case "y":s="\\d{2,4}";break;case "M":s=(l>2)?"\\S+?":"1[0-2]|"+p2+"[1-9]";break;case "D":s="[12][0-9][0-9]|3[0-5][0-9]|36[0-6]|"+p3+"[1-9][0-9]|"+p2+"[1-9]";break;case "d":s="3[01]|[12]\\d|"+p2+"[1-9]";break;case "w":s="[1-4][0-9]|5[0-3]|"+p2+"[1-9]";break;case "E":s="\\S+";break;case "h":s="1[0-2]|"+p2+"[1-9]";break;case "k":s="1[01]|"+p2+"\\d";break;case "H":s="1\\d|2[0-3]|"+p2+"\\d";break;case "K":s="1\\d|2[0-4]|"+p2+"[1-9]";break;case "m":case "s":s="[0-5]\\d";break;case "S":s="\\d{"+l+"}";break;case "a":var am=_820.am||_81f["dayPeriods-format-wide-am"],pm=_820.pm||_81f["dayPeriods-format-wide-pm"];s=am+"|"+pm;if(!_820.strict){if(am!=am.toLowerCase()){s+="|"+am.toLowerCase();}if(pm!=pm.toLowerCase()){s+="|"+pm.toLowerCase();}if(s.indexOf(".")!=-1){s+="|"+s.replace(/\./g,"");}}s=s.replace(/\./g,"\\.");break;default:s=".*";}if(_81e){_81e.push(_822);}return "("+s+")";}).replace(/[\xa0 ]/g,"[\\s\\xa0]");};})();(function(){var _823=[];dojo.date.locale.addCustomFormats=function(_824,_825){_823.push({pkg:_824,name:_825});};dojo.date.locale._getGregorianBundle=function(_826){var _827={};dojo.forEach(_823,function(desc){var _828=dojo.i18n.getLocalization(desc.pkg,desc.name,_826);_827=dojo.mixin(_827,_828);},this);return _827;};})();dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");dojo.date.locale.getNames=function(item,type,_829,_82a){var _82b,_82c=dojo.date.locale._getGregorianBundle(_82a),_82d=[item,_829,type];if(_829=="standAlone"){var key=_82d.join("-");_82b=_82c[key];if(_82b[0]==1){_82b=undefined;}}_82d[1]="format";return (_82b||_82c[_82d.join("-")]).concat();};dojo.date.locale.isWeekend=function(_82e,_82f){var _830=dojo.cldr.supplemental.getWeekend(_82f),day=(_82e||new Date()).getDay();if(_830.end<_830.start){_830.end+=7;if(day<_830.start){day+=7;}}return day>=_830.start&&day<=_830.end;};dojo.date.locale._getDayOfYear=function(_831){return dojo.date.difference(new Date(_831.getFullYear(),0,1,_831.getHours()),_831)+1;};dojo.date.locale._getWeekOfYear=function(_832,_833){if(arguments.length==1){_833=0;}var _834=new Date(_832.getFullYear(),0,1).getDay(),adj=(_834-_833+7)%7,week=Math.floor((dojo.date.locale._getDayOfYear(_832)+adj-1)/7);if(_834==_833){week++;}return week;};}if(!dojo._hasResource["dijit._TimePicker"]){dojo._hasResource["dijit._TimePicker"]=true;dojo.provide("dijit._TimePicker");dojo.declare("dijit._TimePicker",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dijit","templates/TimePicker.html","<div id=\"widget_${id}\" class=\"dijitMenu\"\n    ><div dojoAttachPoint=\"upArrow\" class=\"dijitButtonNode dijitUpArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9650;</div></div\n    ><div dojoAttachPoint=\"timeMenu,focusNode\" dojoAttachEvent=\"onclick:_onOptionSelected,onmouseover,onmouseout\"></div\n    ><div dojoAttachPoint=\"downArrow\" class=\"dijitButtonNode dijitDownArrowButton\" dojoAttachEvent=\"onmouseenter:_buttonMouse,onmouseleave:_buttonMouse\"\n\t\t><div class=\"dijitReset dijitInline dijitArrowButtonInner\" role=\"presentation\">&nbsp;</div\n\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div></div\n></div>\n"),baseClass:"dijitTimePicker",clickableIncrement:"T00:15:00",visibleIncrement:"T01:00:00",visibleRange:"T05:00:00",value:new Date(),_visibleIncrement:2,_clickableIncrement:1,_totalIncrements:10,constraints:{},serialize:dojo.date.stamp.toISOString,setValue:function(_835){dojo.deprecated("dijit._TimePicker:setValue() is deprecated.  Use set('value', ...) instead.","","2.0");this.set("value",_835);},_setValueAttr:function(date){this._set("value",date);this._showText();},_setFilterStringAttr:function(val){this._set("filterString",val);this._showText();},isDisabledDate:function(_836,_837){return false;},_getFilteredNodes:function(_838,_839,_83a,_83b){var _83c=[],_83d=_83b?_83b.date:this._refDate,n,i=_838,max=this._maxIncrement+Math.abs(i),chk=_83a?-1:1,dec=_83a?1:0,inc=1-dec;do{i-=dec;n=this._createOption(i);if(n){if((_83a&&n.date>_83d)||(!_83a&&n.date<_83d)){break;}_83c[_83a?"unshift":"push"](n);_83d=n.date;}i+=inc;}while(_83c.length<_839&&(i*chk)<max);return _83c;},_showText:function(){var _83e=dojo.date.stamp.fromISOString;this.timeMenu.innerHTML="";this._clickableIncrementDate=_83e(this.clickableIncrement);this._visibleIncrementDate=_83e(this.visibleIncrement);this._visibleRangeDate=_83e(this.visibleRange);var _83f=function(date){return date.getHours()*60*60+date.getMinutes()*60+date.getSeconds();},_840=_83f(this._clickableIncrementDate),_841=_83f(this._visibleIncrementDate),_842=_83f(this._visibleRangeDate),time=(this.value||this.currentFocus).getTime();this._refDate=new Date(time-time%(_840*1000));this._refDate.setFullYear(1970,0,1);this._clickableIncrement=1;this._totalIncrements=_842/_840;this._visibleIncrement=_841/_840;this._maxIncrement=(60*60*24)/_840;var _843=Math.min(this._totalIncrements,10),_844=this._getFilteredNodes(0,(_843>>1)+1,false),_845=[],_846=_843-_844.length,_847=this._getFilteredNodes(0,_846,true,_844[0]);if(_847.length<_846&&_844.length>0){_845=this._getFilteredNodes(_844.length,_846-_847.length,false,_844[_844.length-1]);}dojo.forEach(_847.concat(_844,_845),function(n){this.timeMenu.appendChild(n);},this);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this._setConstraintsAttr(this.constraints);},_setConstraintsAttr:function(_848){dojo.mixin(this,_848);if(!_848.locale){_848.locale=this.lang;}},postCreate:function(){this.connect(this.timeMenu,dojo.isIE?"onmousewheel":"DOMMouseScroll","_mouseWheeled");this._connects.push(dijit.typematic.addMouseListener(this.upArrow,this,"_onArrowUp",33,250));this._connects.push(dijit.typematic.addMouseListener(this.downArrow,this,"_onArrowDown",33,250));this.inherited(arguments);},_buttonMouse:function(e){dojo.toggleClass(e.currentTarget,e.currentTarget==this.upArrow?"dijitUpArrowHover":"dijitDownArrowHover",e.type=="mouseenter"||e.type=="mouseover");},_createOption:function(_849){var date=new Date(this._refDate);var _84a=this._clickableIncrementDate;date.setHours(date.getHours()+_84a.getHours()*_849,date.getMinutes()+_84a.getMinutes()*_849,date.getSeconds()+_84a.getSeconds()*_849);if(this.constraints.selector=="time"){date.setFullYear(1970,0,1);}var _84b=dojo.date.locale.format(date,this.constraints);if(this.filterString&&_84b.toLowerCase().indexOf(this.filterString)!==0){return null;}var div=dojo.create("div",{"class":this.baseClass+"Item"});div.date=date;div.index=_849;dojo.create("div",{"class":this.baseClass+"ItemInner",innerHTML:_84b},div);if(_849%this._visibleIncrement<1&&_849%this._visibleIncrement>-1){dojo.addClass(div,this.baseClass+"Marker");}else{if(!(_849%this._clickableIncrement)){dojo.addClass(div,this.baseClass+"Tick");}}if(this.isDisabledDate(date)){dojo.addClass(div,this.baseClass+"ItemDisabled");}if(this.value&&!dojo.date.compare(this.value,date,this.constraints.selector)){div.selected=true;dojo.addClass(div,this.baseClass+"ItemSelected");if(dojo.hasClass(div,this.baseClass+"Marker")){dojo.addClass(div,this.baseClass+"MarkerSelected");}else{dojo.addClass(div,this.baseClass+"TickSelected");}this._highlightOption(div,true);}return div;},_onOptionSelected:function(tgt){var _84c=tgt.target.date||tgt.target.parentNode.date;if(!_84c||this.isDisabledDate(_84c)){return;}this._highlighted_option=null;this.set("value",_84c);this.onChange(_84c);},onChange:function(time){},_highlightOption:function(node,_84d){if(!node){return;}if(_84d){if(this._highlighted_option){this._highlightOption(this._highlighted_option,false);}this._highlighted_option=node;}else{if(this._highlighted_option!==node){return;}else{this._highlighted_option=null;}}dojo.toggleClass(node,this.baseClass+"ItemHover",_84d);if(dojo.hasClass(node,this.baseClass+"Marker")){dojo.toggleClass(node,this.baseClass+"MarkerHover",_84d);}else{dojo.toggleClass(node,this.baseClass+"TickHover",_84d);}},onmouseover:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;if(!dojo.hasClass(tgr,this.baseClass+"Item")){return;}this._highlightOption(tgr,true);},onmouseout:function(e){this._keyboardSelected=null;var tgr=(e.target.parentNode===this.timeMenu)?e.target:e.target.parentNode;this._highlightOption(tgr,false);},_mouseWheeled:function(e){this._keyboardSelected=null;dojo.stopEvent(e);var _84e=(dojo.isIE?e.wheelDelta:-e.detail);this[(_84e>0?"_onArrowUp":"_onArrowDown")]();},_onArrowUp:function(_84f){if(typeof _84f=="number"&&_84f==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _850=this.timeMenu.childNodes[0].index;var divs=this._getFilteredNodes(_850,1,true,this.timeMenu.childNodes[0]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);this.timeMenu.insertBefore(divs[0],this.timeMenu.childNodes[0]);}},_onArrowDown:function(_851){if(typeof _851=="number"&&_851==-1){return;}if(!this.timeMenu.childNodes.length){return;}var _852=this.timeMenu.childNodes[this.timeMenu.childNodes.length-1].index+1;var divs=this._getFilteredNodes(_852,1,false,this.timeMenu.childNodes[this.timeMenu.childNodes.length-1]);if(divs.length){this.timeMenu.removeChild(this.timeMenu.childNodes[0]);this.timeMenu.appendChild(divs[0]);}},handleKey:function(e){var dk=dojo.keys;if(e.charOrCode==dk.DOWN_ARROW||e.charOrCode==dk.UP_ARROW){dojo.stopEvent(e);if(this._highlighted_option&&!this._highlighted_option.parentNode){this._highlighted_option=null;}var _853=this.timeMenu,tgt=this._highlighted_option||dojo.query("."+this.baseClass+"ItemSelected",_853)[0];if(!tgt){tgt=_853.childNodes[0];}else{if(_853.childNodes.length){if(e.charOrCode==dk.DOWN_ARROW&&!tgt.nextSibling){this._onArrowDown();}else{if(e.charOrCode==dk.UP_ARROW&&!tgt.previousSibling){this._onArrowUp();}}if(e.charOrCode==dk.DOWN_ARROW){tgt=tgt.nextSibling;}else{tgt=tgt.previousSibling;}}}this._highlightOption(tgt,true);this._keyboardSelected=tgt;return false;}else{if(e.charOrCode==dk.ENTER||e.charOrCode===dk.TAB){if(!this._keyboardSelected&&e.charOrCode===dk.TAB){return true;}if(this._highlighted_option){this._onOptionSelected({target:this._highlighted_option});}return e.charOrCode===dk.TAB;}}return undefined;}});}if(!dojo._hasResource["dijit.form._DateTimeTextBox"]){dojo._hasResource["dijit.form._DateTimeTextBox"]=true;dojo.provide("dijit.form._DateTimeTextBox");new Date("X");dojo.declare("dijit.form._DateTimeTextBox",[dijit.form.RangeBoundTextBox,dijit._HasDropDown],{templateString:dojo.cache("dijit.form","templates/DropDownBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\trole=\"combobox\"\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\n\t\tdojoAttachPoint=\"_buttonNode, _popupStateNode\" role=\"presentation\"\n\t\t><input class=\"dijitReset dijitInputField dijitArrowButtonInner\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t\t\t${_buttonInputDisabled}\n\t/></div\n\t><div class='dijitReset dijitValidationContainer'\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\n\t/></div\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\n\t/></div\n></div>\n"),hasDownArrow:true,openOnClick:true,regExpGen:dojo.date.locale.regexp,datePackage:"dojo.date",compare:function(val1,val2){var _854=this._isInvalidDate(val1);var _855=this._isInvalidDate(val2);return _854?(_855?0:-1):(_855?1:dojo.date.compare(val1,val2,this._selector));},forceWidth:true,format:function(_856,_857){if(!_856){return "";}return this.dateLocaleModule.format(_856,_857);},"parse":function(_858,_859){return this.dateLocaleModule.parse(_858,_859)||(this._isEmpty(_858)?null:undefined);},serialize:function(val,_85a){if(val.toGregorian){val=val.toGregorian();}return dojo.date.stamp.toISOString(val,_85a);},dropDownDefaultValue:new Date(),value:new Date(""),_blankValue:null,popupClass:"",_selector:"",constructor:function(args){var _85b=args.datePackage?args.datePackage+".Date":"Date";this.dateClassObj=dojo.getObject(_85b,false);this.value=new this.dateClassObj("");this.datePackage=args.datePackage||this.datePackage;this.dateLocaleModule=dojo.getObject(this.datePackage+".locale",false);this.regExpGen=this.dateLocaleModule.regexp;this._invalidDate=dijit.form._DateTimeTextBox.prototype.value.toString();},buildRendering:function(){this.inherited(arguments);if(!this.hasDownArrow){this._buttonNode.style.display="none";}if(this.openOnClick||!this.hasDownArrow){this._buttonNode=this.domNode;this.baseClass+=" dijitComboBoxOpenOnClick";}},_setConstraintsAttr:function(_85c){_85c.selector=this._selector;_85c.fullYear=true;var _85d=dojo.date.stamp.fromISOString;if(typeof _85c.min=="string"){_85c.min=_85d(_85c.min);}if(typeof _85c.max=="string"){_85c.max=_85d(_85c.max);}this.inherited(arguments);},_isInvalidDate:function(_85e){return !_85e||isNaN(_85e)||typeof _85e!="object"||_85e.toString()==this._invalidDate;},_setValueAttr:function(_85f,_860,_861){if(_85f!==undefined){if(typeof _85f=="string"){_85f=dojo.date.stamp.fromISOString(_85f);}if(this._isInvalidDate(_85f)){_85f=null;}if(_85f instanceof Date&&!(this.dateClassObj instanceof Date)){_85f=new this.dateClassObj(_85f);}}this.inherited(arguments);if(this.value instanceof Date){this.filterString="";}if(this.dropDown){this.dropDown.set("value",_85f,false);}},_set:function(attr,_862){if(attr=="value"&&this.value instanceof Date&&this.compare(_862,this.value)==0){return;}this.inherited(arguments);},_setDropDownDefaultValueAttr:function(val){if(this._isInvalidDate(val)){val=new this.dateClassObj();}this.dropDownDefaultValue=val;},openDropDown:function(_863){if(this.dropDown){this.dropDown.destroy();}var _864=dojo.getObject(this.popupClass,false),_865=this,_866=this.get("value");this.dropDown=new _864({onChange:function(_867){_865.set("value",_867,true);},id:this.id+"_popup",dir:_865.dir,lang:_865.lang,value:_866,currentFocus:!this._isInvalidDate(_866)?_866:this.dropDownDefaultValue,constraints:_865.constraints,filterString:_865.filterString,datePackage:_865.datePackage,isDisabledDate:function(date){return !_865.rangeCheck(date,_865.constraints);}});this.inherited(arguments);},_getDisplayedValueAttr:function(){return this.textbox.value;},_setDisplayedValueAttr:function(_868,_869){this._setValueAttr(this.parse(_868,this.constraints),_869,_868);}});}if(!dojo._hasResource["dijit.form.TimeTextBox"]){dojo._hasResource["dijit.form.TimeTextBox"]=true;dojo.provide("dijit.form.TimeTextBox");dojo.declare("dijit.form.TimeTextBox",dijit.form._DateTimeTextBox,{baseClass:"dijitTextBox dijitComboBox dijitTimeTextBox",popupClass:"dijit._TimePicker",_selector:"time",value:new Date(""),_onKey:function(evt){this.inherited(arguments);switch(evt.keyCode){case dojo.keys.ENTER:case dojo.keys.TAB:case dojo.keys.ESCAPE:case dojo.keys.DOWN_ARROW:case dojo.keys.UP_ARROW:break;default:setTimeout(dojo.hitch(this,function(){var val=this.get("displayedValue");this.filterString=(val&&!this.parse(val,this.constraints))?val.toLowerCase():"";if(this._opened){this.closeDropDown();}this.openDropDown();}),0);}}});}if(!dojo._hasResource["dojox.string.tokenize"]){dojo._hasResource["dojox.string.tokenize"]=true;dojo.provide("dojox.string.tokenize");dojox.string.tokenize=function(str,re,_86a,_86b){var _86c=[];var _86d,_86e,_86f=0;while(_86d=re.exec(str)){_86e=str.slice(_86f,re.lastIndex-_86d[0].length);if(_86e.length){_86c.push(_86e);}if(_86a){if(dojo.isOpera){var copy=_86d.slice(0);while(copy.length<_86d.length){copy.push(null);}_86d=copy;}var _870=_86a.apply(_86b,_86d.slice(1).concat(_86c.length));if(typeof _870!="undefined"){_86c.push(_870);}}_86f=re.lastIndex;}_86e=str.slice(_86f);if(_86e.length){_86c.push(_86e);}return _86c;};}if(!dojo._hasResource["dojox.string.sprintf"]){dojo._hasResource["dojox.string.sprintf"]=true;dojo.provide("dojox.string.sprintf");dojox.string.sprintf=function(_871,_872){for(var args=[],i=1;i<arguments.length;i++){args.push(arguments[i]);}var _873=new dojox.string.sprintf.Formatter(_871);return _873.format.apply(_873,args);};dojox.string.sprintf.Formatter=function(_874){var _875=[];this._mapped=false;this._format=_874;this._tokens=dojox.string.tokenize(_874,this._re,this._parseDelim,this);};dojo.extend(dojox.string.sprintf.Formatter,{_re:/\%(?:\(([\w_]+)\)|([1-9]\d*)\$)?([0 +\-\#]*)(\*|\d+)?(\.)?(\*|\d+)?[hlL]?([\%scdeEfFgGiouxX])/g,_parseDelim:function(_876,_877,_878,_879,_87a,_87b,_87c){if(_876){this._mapped=true;}return {mapping:_876,intmapping:_877,flags:_878,_minWidth:_879,period:_87a,_precision:_87b,specifier:_87c};},_specifiers:{b:{base:2,isInt:true},o:{base:8,isInt:true},x:{base:16,isInt:true},X:{extend:["x"],toUpper:true},d:{base:10,isInt:true},i:{extend:["d"]},u:{extend:["d"],isUnsigned:true},c:{setArg:function(_87d){if(!isNaN(_87d.arg)){var num=parseInt(_87d.arg);if(num<0||num>127){throw new Error("invalid character code passed to %c in sprintf");}_87d.arg=isNaN(num)?""+num:String.fromCharCode(num);}}},s:{setMaxWidth:function(_87e){_87e.maxWidth=(_87e.period==".")?_87e.precision:-1;}},e:{isDouble:true,doubleNotation:"e"},E:{extend:["e"],toUpper:true},f:{isDouble:true,doubleNotation:"f"},F:{extend:["f"]},g:{isDouble:true,doubleNotation:"g"},G:{extend:["g"],toUpper:true}},format:function(_87f){if(this._mapped&&typeof _87f!="object"){throw new Error("format requires a mapping");}var str="";var _880=0;for(var i=0,_881;i<this._tokens.length;i++){_881=this._tokens[i];if(typeof _881=="string"){str+=_881;}else{if(this._mapped){if(typeof _87f[_881.mapping]=="undefined"){throw new Error("missing key "+_881.mapping);}_881.arg=_87f[_881.mapping];}else{if(_881.intmapping){var _880=parseInt(_881.intmapping)-1;}if(_880>=arguments.length){throw new Error("got "+arguments.length+" printf arguments, insufficient for '"+this._format+"'");}_881.arg=arguments[_880++];}if(!_881.compiled){_881.compiled=true;_881.sign="";_881.zeroPad=false;_881.rightJustify=false;_881.alternative=false;var _882={};for(var fi=_881.flags.length;fi--;){var flag=_881.flags.charAt(fi);_882[flag]=true;switch(flag){case " ":_881.sign=" ";break;case "+":_881.sign="+";break;case "0":_881.zeroPad=(_882["-"])?false:true;break;case "-":_881.rightJustify=true;_881.zeroPad=false;break;case "#":_881.alternative=true;break;default:throw Error("bad formatting flag '"+_881.flags.charAt(fi)+"'");}}_881.minWidth=(_881._minWidth)?parseInt(_881._minWidth):0;_881.maxWidth=-1;_881.toUpper=false;_881.isUnsigned=false;_881.isInt=false;_881.isDouble=false;_881.precision=1;if(_881.period=="."){if(_881._precision){_881.precision=parseInt(_881._precision);}else{_881.precision=0;}}var _883=this._specifiers[_881.specifier];if(typeof _883=="undefined"){throw new Error("unexpected specifier '"+_881.specifier+"'");}if(_883.extend){dojo.mixin(_883,this._specifiers[_883.extend]);delete _883.extend;}dojo.mixin(_881,_883);}if(typeof _881.setArg=="function"){_881.setArg(_881);}if(typeof _881.setMaxWidth=="function"){_881.setMaxWidth(_881);}if(_881._minWidth=="*"){if(this._mapped){throw new Error("* width not supported in mapped formats");}_881.minWidth=parseInt(arguments[_880++]);if(isNaN(_881.minWidth)){throw new Error("the argument for * width at position "+_880+" is not a number in "+this._format);}if(_881.minWidth<0){_881.rightJustify=true;_881.minWidth=-_881.minWidth;}}if(_881._precision=="*"&&_881.period=="."){if(this._mapped){throw new Error("* precision not supported in mapped formats");}_881.precision=parseInt(arguments[_880++]);if(isNaN(_881.precision)){throw Error("the argument for * precision at position "+_880+" is not a number in "+this._format);}if(_881.precision<0){_881.precision=1;_881.period="";}}if(_881.isInt){if(_881.period=="."){_881.zeroPad=false;}this.formatInt(_881);}else{if(_881.isDouble){if(_881.period!="."){_881.precision=6;}this.formatDouble(_881);}}this.fitField(_881);str+=""+_881.arg;}}return str;},_zeros10:"0000000000",_spaces10:"          ",formatInt:function(_884){var i=parseInt(_884.arg);if(!isFinite(i)){if(typeof _884.arg!="number"){throw new Error("format argument '"+_884.arg+"' not an integer; parseInt returned "+i);}i=0;}if(i<0&&(_884.isUnsigned||_884.base!=10)){i=4294967295+i+1;}if(i<0){_884.arg=(-i).toString(_884.base);this.zeroPad(_884);_884.arg="-"+_884.arg;}else{_884.arg=i.toString(_884.base);if(!i&&!_884.precision){_884.arg="";}else{this.zeroPad(_884);}if(_884.sign){_884.arg=_884.sign+_884.arg;}}if(_884.base==16){if(_884.alternative){_884.arg="0x"+_884.arg;}_884.arg=_884.toUpper?_884.arg.toUpperCase():_884.arg.toLowerCase();}if(_884.base==8){if(_884.alternative&&_884.arg.charAt(0)!="0"){_884.arg="0"+_884.arg;}}},formatDouble:function(_885){var f=parseFloat(_885.arg);if(!isFinite(f)){if(typeof _885.arg!="number"){throw new Error("format argument '"+_885.arg+"' not a float; parseFloat returned "+f);}f=0;}switch(_885.doubleNotation){case "e":_885.arg=f.toExponential(_885.precision);break;case "f":_885.arg=f.toFixed(_885.precision);break;case "g":if(Math.abs(f)<0.0001){_885.arg=f.toExponential(_885.precision>0?_885.precision-1:_885.precision);}else{_885.arg=f.toPrecision(_885.precision);}if(!_885.alternative){_885.arg=_885.arg.replace(/(\..*[^0])0*/,"$1");_885.arg=_885.arg.replace(/\.0*e/,"e").replace(/\.0$/,"");}break;default:throw new Error("unexpected double notation '"+_885.doubleNotation+"'");}_885.arg=_885.arg.replace(/e\+(\d)$/,"e+0$1").replace(/e\-(\d)$/,"e-0$1");if(dojo.isOpera){_885.arg=_885.arg.replace(/^\./,"0.");}if(_885.alternative){_885.arg=_885.arg.replace(/^(\d+)$/,"$1.");_885.arg=_885.arg.replace(/^(\d+)e/,"$1.e");}if(f>=0&&_885.sign){_885.arg=_885.sign+_885.arg;}_885.arg=_885.toUpper?_885.arg.toUpperCase():_885.arg.toLowerCase();},zeroPad:function(_886,_887){_887=(arguments.length==2)?_887:_886.precision;if(typeof _886.arg!="string"){_886.arg=""+_886.arg;}var _888=_887-10;while(_886.arg.length<_888){_886.arg=(_886.rightJustify)?_886.arg+this._zeros10:this._zeros10+_886.arg;}var pad=_887-_886.arg.length;_886.arg=(_886.rightJustify)?_886.arg+this._zeros10.substring(0,pad):this._zeros10.substring(0,pad)+_886.arg;},fitField:function(_889){if(_889.maxWidth>=0&&_889.arg.length>_889.maxWidth){return _889.arg.substring(0,_889.maxWidth);}if(_889.zeroPad){this.zeroPad(_889,_889.minWidth);return;}this.spacePad(_889);},spacePad:function(_88a,_88b){_88b=(arguments.length==2)?_88b:_88a.minWidth;if(typeof _88a.arg!="string"){_88a.arg=""+_88a.arg;}var _88c=_88b-10;while(_88a.arg.length<_88c){_88a.arg=(_88a.rightJustify)?_88a.arg+this._spaces10:this._spaces10+_88a.arg;}var pad=_88b-_88a.arg.length;_88a.arg=(_88a.rightJustify)?_88a.arg+this._spaces10.substring(0,pad):this._spaces10.substring(0,pad)+_88a.arg;}});}if(!dojo._hasResource["dojox.grid._Selector"]){dojo._hasResource["dojox.grid._Selector"]=true;dojo.provide("dojox.grid._Selector");(function(){dojox.grid._InputSelectorHeaderBuilder=dojo.extend(function(view){dojox.grid._HeaderBuilder.call(this,view);},dojox.grid._HeaderBuilder.prototype,{generateHtml:function(){var w=this.view.contentWidth||0;var _88d=this.view.grid.selection.getSelectedCount();var _88e=(_88d&&_88d==this.view.grid.rowCount)?" dijitCheckBoxChecked dijitChecked":"";return "<table style=\"width:"+w+"px;\" "+"border=\"0\" cellspacing=\"0\" cellpadding=\"0\" "+"role=\"presentation\"><tr><th style=\"text-align: center;\">"+"<div class=\"dojoxGridCheckSelector dijitReset dijitInline dijitCheckBox"+_88e+"\"></div></th></tr></table>";},doclick:function(e){var _88f=this.view.grid.selection.getSelectedCount();this.view._selectionChanging=true;if(_88f==this.view.grid.rowCount){this.view.grid.selection.deselectAll();}else{this.view.grid.selection.selectRange(0,this.view.grid.rowCount-1);}this.view._selectionChanging=false;this.view.onSelectionChanged();return true;}});dojox.grid._SelectorContentBuilder=dojo.extend(function(view){dojox.grid._ContentBuilder.call(this,view);},dojox.grid._ContentBuilder.prototype,{generateHtml:function(_890,_891){var w=this.view.contentWidth||0;return "<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;\" border=\"0\" "+"cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr>"+"<td  style=\"text-align: center;\" class=\"dojoxGridRowbarInner\">"+this.getCellContent(_891)+"</td></tr></table>";},getCellContent:function(_892){return "&nbsp;";},findTarget:function(){var t=dojox.grid._ContentBuilder.prototype.findTarget.apply(this,arguments);return t;},domouseover:function(e){this.view.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.view.grid.onMouseOutRow(e);}},doclick:function(e){var idx=e.rowIndex;var _893=this.view.grid.selection.isSelected(idx);var mode=this.view.grid.selection.mode;if(!_893){if(mode=="single"){this.view.grid.selection.select(idx);}else{if(mode!="none"){this.view.grid.selection.addToSelection(idx);}}}else{this.view.grid.selection.deselect(idx);}return true;}});dojox.grid._InputSelectorContentBuilder=dojo.extend(function(view){dojox.grid._SelectorContentBuilder.call(this,view);},dojox.grid._SelectorContentBuilder.prototype,{getCellContent:function(_894){var v=this.view;var type=v.inputType=="checkbox"?"CheckBox":"Radio";var _895=!!v.grid.selection.isSelected(_894)?" dijit"+type+"Checked dijitChecked":"";return "<div class=\"dojoxGridCheckSelector dijitReset dijitInline dijit"+type+_895+"\"></div>";}});dojo.declare("dojox.grid._Selector",dojox.grid._View,{inputType:"",selectionMode:"",defaultWidth:"2em",noscroll:true,padBorderWidth:2,_contentBuilderClass:dojox.grid._SelectorContentBuilder,postCreate:function(){this.inherited(arguments);if(this.selectionMode){this.grid.selection.mode=this.selectionMode;}this.connect(this.grid.selection,"onSelected","onSelected");this.connect(this.grid.selection,"onDeselected","onDeselected");},buildRendering:function(){this.inherited(arguments);this.scrollboxNode.style.overflow="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},resize:function(){this.adaptHeight();},setStructure:function(s){this.inherited(arguments);if(s.defaultWidth){this.defaultWidth=s.defaultWidth;}},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_896,_897){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_896)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_896)){n.push("dojoxGridRowbarSelected");}_897.className=n.join(" ");},onSelected:function(_898){this.grid.updateRow(_898);},onDeselected:function(_899){this.grid.updateRow(_899);}});if(!dojox.grid._View.prototype._headerBuilderClass&&!dojox.grid._View.prototype._contentBuilderClass){dojox.grid._Selector.prototype.postCreate=function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);if(this._contentBuilderClass){this.content=new this._contentBuilderClass(this);}else{this.content=new dojox.grid._ContentBuilder(this);}if(this._headerBuilderClass){this.header=new this._headerBuilderClass(this);}else{this.header=new dojox.grid._HeaderBuilder(this);}if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}this.connect(this.grid.selection,"onSelected","onSelected");this.connect(this.grid.selection,"onDeselected","onDeselected");};}dojo.declare("dojox.grid._RadioSelector",dojox.grid._Selector,{inputType:"radio",selectionMode:"single",_contentBuilderClass:dojox.grid._InputSelectorContentBuilder,buildRendering:function(){this.inherited(arguments);this.headerNode.style.visibility="hidden";},renderHeader:function(){}});dojo.declare("dojox.grid._CheckBoxSelector",dojox.grid._Selector,{inputType:"checkbox",_headerBuilderClass:dojox.grid._InputSelectorHeaderBuilder,_contentBuilderClass:dojox.grid._InputSelectorContentBuilder,postCreate:function(){this.inherited(arguments);this.connect(this.grid,"onSelectionChanged","onSelectionChanged");this.connect(this.grid,"updateRowCount","_updateVisibility");},renderHeader:function(){this.inherited(arguments);this._updateVisibility(this.grid.rowCount);},_updateVisibility:function(_89a){this.headerNode.style.visibility=_89a?"":"hidden";},onSelectionChanged:function(){if(this._selectionChanging){return;}var _89b=dojo.query(".dojoxGridCheckSelector",this.headerNode)[0];var g=this.grid;var s=(g.rowCount&&g.rowCount==g.selection.getSelectedCount());g.allItemsSelected=s||false;dojo.toggleClass(_89b,"dijitChecked",g.allItemsSelected);dojo.toggleClass(_89b,"dijitCheckBoxChecked",g.allItemsSelected);}});})();}if(!dojo._hasResource["dojox.grid._CheckBoxSelector"]){dojo._hasResource["dojox.grid._CheckBoxSelector"]=true;dojo.provide("dojox.grid._CheckBoxSelector");}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_89c,_89d){var c=document.cookie;if(arguments.length==1){var _89e=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _89e?decodeURIComponent(_89e[1]):undefined;}else{_89d=_89d||{};var exp=_89d.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_89d.expires=d;}if(exp&&exp.toUTCString){_89d.expires=exp.toUTCString();}_89c=encodeURIComponent(_89c);var _89f=name+"="+_89c,_8a0;for(_8a0 in _89d){_89f+="; "+_8a0;var _8a1=_89d[_8a0];if(_8a1!==true){_89f+="="+_8a1;}}document.cookie=_89f;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _8a2=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_8a3){if(!_8a3){_8a3={};}if(_8a3.timeout&&typeof _8a3.timeout=="number"&&_8a3.timeout>=0){this.timeout=_8a3.timeout;}},markupFactory:function(_8a4,node){return new dojo.dnd.TimedMoveable(node,_8a4);},onMoveStop:function(_8a5){if(_8a5._timer){clearTimeout(_8a5._timer);_8a2.call(this,_8a5,_8a5._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_8a6,_8a7){_8a6._leftTop=_8a7;if(!_8a6._timer){var _8a8=this;_8a6._timer=setTimeout(function(){_8a6._timer=null;_8a2.call(_8a8,_8a6,_8a6._leftTop);},this.timeout);}}});})();}if(!dojo._hasResource["dijit.form._FormMixin"]){dojo._hasResource["dijit.form._FormMixin"]=true;dojo.provide("dijit.form._FormMixin");dojo.declare("dijit.form._FormMixin",null,{state:"",reset:function(){dojo.forEach(this.getDescendants(),function(_8a9){if(_8a9.reset){_8a9.reset();}});},validate:function(){var _8aa=false;return dojo.every(dojo.map(this.getDescendants(),function(_8ab){_8ab._hasBeenBlurred=true;var _8ac=_8ab.disabled||!_8ab.validate||_8ab.validate();if(!_8ac&&!_8aa){dojo.window.scrollIntoView(_8ab.containerNode||_8ab.domNode);_8ab.focus();_8aa=true;}return _8ac;}),function(item){return item;});},setValues:function(val){dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use set('value', val) instead.","","2.0");return this.set("value",val);},_setValueAttr:function(obj){var map={};dojo.forEach(this.getDescendants(),function(_8ad){if(!_8ad.name){return;}var _8ae=map[_8ad.name]||(map[_8ad.name]=[]);_8ae.push(_8ad);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _8af=map[name],_8b0=dojo.getObject(name,false,obj);if(_8b0===undefined){continue;}if(!dojo.isArray(_8b0)){_8b0=[_8b0];}if(typeof _8af[0].checked=="boolean"){dojo.forEach(_8af,function(w,i){w.set("value",dojo.indexOf(_8b0,w.value)!=-1);});}else{if(_8af[0].multiple){_8af[0].set("value",_8b0);}else{dojo.forEach(_8af,function(w,i){w.set("value",_8b0[i]);});}}}},getValues:function(){dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_getValueAttr:function(){var obj={};dojo.forEach(this.getDescendants(),function(_8b1){var name=_8b1.name;if(!name||_8b1.disabled){return;}var _8b2=_8b1.get("value");if(typeof _8b1.checked=="boolean"){if(/Radio/.test(_8b1.declaredClass)){if(_8b2!==false){dojo.setObject(name,_8b2,obj);}else{_8b2=dojo.getObject(name,false,obj);if(_8b2===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_8b2!==false){ary.push(_8b2);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_8b2);}else{dojo.setObject(name,[prev,_8b2],obj);}}else{dojo.setObject(name,_8b2,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_8b3){},_getState:function(){var _8b4=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_8b4,"Error")>=0?"Error":dojo.indexOf(_8b4,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_8b5){var _8b6=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_8b5?function(name,val){_8b6[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _8b7=(this._childConnections=[]),_8b8=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_8b9){dojo.forEach(["state","disabled"],function(attr){_8b8.push(_8b9.watch(attr,function(attr,_8ba,_8bb){_8b6.set("state",_8b6._getState());}));});});var _8bc=function(){if(_8b6._onChangeDelayTimer){clearTimeout(_8b6._onChangeDelayTimer);}_8b6._onChangeDelayTimer=setTimeout(function(){delete _8b6._onChangeDelayTimer;_8b6._set("value",_8b6.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_8bd){_8b7.push(_8b6.connect(_8bd,"onChange",_8bc));_8b8.push(_8bd.watch("disabled",_8bc));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_8be,_8bf){this.onValidStateChange(_8bf=="");});},destroy:function(){this.disconnectChildren();this.inherited(arguments);}});}if(!dojo._hasResource["dijit._DialogMixin"]){dojo._hasResource["dijit._DialogMixin"]=true;dojo.provide("dijit._DialogMixin");dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_8c0){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _8c1=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_8c1.lowest||_8c1.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_8c1.last||_8c1.highest||this._firstFocusItem;}});}if(!dojo._hasResource["dijit.DialogUnderlay"]){dojo._hasResource["dijit.DialogUnderlay"]=true;dojo.provide("dijit.DialogUnderlay");dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){dojo.attr(this.node,"id",id+"_underlay");this._set("dialogId",id);},_setClassAttr:function(_8c2){this.node.className="dijitDialogUnderlay "+_8c2;this._set("class",_8c2);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _8c3=dojo.window.getBox();os.top=_8c3.t+"px";os.left=_8c3.l+"px";is.width=_8c3.w+"px";is.height=_8c3.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_8c4){this.containerNode.title=_8c4;this._set("title",_8c4);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_8c5,_8c6){var newC="dijitTooltipAB"+(_8c6.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_8c6.charAt(0)=="T"?"Below":"Above");dojo.replaceClass(this.domNode,newC,this._currentOrientClass||"");this._currentOrientClass=newC;},focus:function(){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._onShow();},onClose:function(){this.onHide();},_onKey:function(evt){var node=evt.target;var dk=dojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _8c7=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){setTimeout(dojo.hitch(this,"onCancel"),0);dojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_8c7){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_8c7){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!dojo._hasResource["dijit.Dialog"]){dojo._hasResource["dijit.Dialog"]=true;dojo.provide("dijit.Dialog");dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" role=\"dialog\" aria-labelledby=\"${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"ondijitclick: onCancel\" title=\"${buttonCancel}\" role=\"button\" tabIndex=\"-1\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),baseClass:"dijitDialog",cssStateNodes:{closeButtonNode:"dijitDialogCloseIcon"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){var _8c8=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_8c8);this.inherited(arguments);},postCreate:function(){dojo.style(this.domNode,{display:"none",position:"absolute"});dojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){this._relativePosition=dojo.position(e.node);}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new dojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});this._dndListener=dojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{dojo.addClass(node,"dijitDialogFixed");}this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")};},_size:function(){this._checkIfSingleChild();if(this._singleChild){if(this._singleChildOriginalStyle){this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;}delete this._singleChildOriginalStyle;}else{dojo.style(this.containerNode,{width:"auto",height:"auto"});}var mb=dojo._getMarginSize(this.domNode);var _8c9=dojo.window.getBox();if(mb.w>=_8c9.w||mb.h>=_8c9.h){var w=Math.min(mb.w,Math.floor(_8c9.w*0.75)),h=Math.min(mb.h,Math.floor(_8c9.h*0.75));if(this._singleChild&&this._singleChild.resize){this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;this._singleChild.resize({w:w,h:h});}else{dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});}}else{if(this._singleChild&&this._singleChild.resize){this._singleChild.resize();}}},_position:function(){if(!dojo.hasClass(dojo.body(),"dojoMove")){var node=this.domNode,_8ca=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_8ca.l+(p?p.x:(_8ca.w-bb.w)/2)),t=Math.floor(_8ca.t+(p?p.y:(_8ca.h-bb.h)/2));dojo.style(node,{left:l+"px",top:t+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=dojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _8cb=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_8cb){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_8cb){dijit.focus(this._firstFocusItem);}dojo.stopEvent(evt);}else{while(node){if(node==this.domNode||dojo.hasClass(node,"dijitPopup")){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){dojo.stopEvent(evt);}else{if(!dojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._started){this.startup();}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _8cc=dojo.window.getBox();if(!this._oldViewport||_8cc.h!=this._oldViewport.h||_8cc.w!=this._oldViewport.w){this.layout();this._oldViewport=_8cc;}}));this._modalconnects.push(dojo.connect(this.domNode,"onkeypress",this,"_onKey"));dojo.style(this.domNode,{opacity:0,display:""});this._set("open",true);this._onShow();this._size();this._position();var _8cd;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_8cd.stop();delete this._fadeInDeferred;}));_8cd=dojo.fadeIn({node:this.domNode,duration:this.duration,beforeBegin:dojo.hitch(this,function(){dijit._DialogLevelManager.show(this,this.underlayAttrs);}),onEnd:dojo.hitch(this,function(){if(this.autofocus&&dijit._DialogLevelManager.isTop(this)){this._getFocusItems(this.domNode);dijit.focus(this._firstFocusItem);}this._fadeInDeferred.callback(true);delete this._fadeInDeferred;})}).play();return this._fadeInDeferred;},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _8ce;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_8ce.stop();delete this._fadeOutDeferred;}));_8ce=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,function(){this.domNode.style.display="none";dijit._DialogLevelManager.hide(this);this.onHide();this._fadeOutDeferred.callback(true);delete this._fadeOutDeferred;})}).play();if(this._scrollConnected){this._scrollConnected=false;}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];if(this._relativePosition){delete this._relativePosition;}this._set("open",false);return this._fadeOutDeferred;},layout:function(){if(this.domNode.style.display!="none"){if(dijit._underlay){dijit._underlay.layout();}this._position();}},destroy:function(){if(this._fadeInDeferred){this._fadeInDeferred.cancel();}if(this._fadeOutDeferred){this._fadeOutDeferred.cancel();}if(this._moveable){this._moveable.destroy();}if(this._dndListener){dojo.unsubscribe(this._dndListener);}dojo.forEach(this._modalconnects,dojo.disconnect);dijit._DialogLevelManager.hide(this);this.inherited(arguments);}});dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});dijit._DialogLevelManager={show:function(_8cf,_8d0){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_8cf);var _8d1=dijit._underlay;if(!_8d1||_8d1._destroyed){_8d1=dijit._underlay=new dijit.DialogUnderlay(_8d0);}else{_8d1.set(_8cf.underlayAttrs);}var _8d2=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_8d1.show();}dojo.style(dijit._underlay.domNode,"zIndex",_8d2-1);dojo.style(_8cf.domNode,"zIndex",_8d2);ds.push({dialog:_8cf,underlayAttrs:_8d0,zIndex:_8d2});},hide:function(_8d3){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_8d3){ds.pop();var pd=ds[ds.length-1];if(ds.length==1){if(!dijit._underlay._destroyed){dijit._underlay.hide();}}else{dojo.style(dijit._underlay.domNode,"zIndex",pd.zIndex-1);dijit._underlay.set(pd.underlayAttrs);}if(_8d3.refocus){var _8d4=pd.focus;if(!_8d4||(pd.dialog&&!dojo.isDescendant(_8d4.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_8d4=pd.dialog._firstFocusItem;}try{dijit.focus(_8d4);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_8d3);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_8d5){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_8d5;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}dojo.i18n._preloadLocalizations("dojo.nls.vclResources",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
