/*
	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.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 _146=this;dojo.mixin(_146,args);_146.node=args.node;_146._showArgs=dojo.mixin({},args);_146._showArgs.node=_146.node;_146._showArgs.duration=_146.showDuration;_146.showAnim=_146.showFunc(_146._showArgs);_146._hideArgs=dojo.mixin({},args);_146._hideArgs.node=_146.node;_146._hideArgs.duration=_146.hideDuration;_146.hideAnim=_146.hideFunc(_146._hideArgs);dojo.connect(_146.showAnim,"beforeBegin",dojo.hitch(_146.hideAnim,"stop",true));dojo.connect(_146.hideAnim,"beforeBegin",dojo.hitch(_146.showAnim,"stop",true));},show:function(_147){return this.showAnim.play(_147||0);},hide:function(_148){return this.hideAnim.play(_148||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_149={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _14a=function(_14b){this._index=-1;this._animations=_14b||[];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(_14a,{_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(_14c,_14d){if(!this._current){this._current=this._animations[this._index=0];}if(!_14d&&this._current.status()=="playing"){return this;}var _14e=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_14f=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_150=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_14e);d.disconnect(_14f);d.disconnect(_150);});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(_151,_152){this.pause();var _153=this.duration*_151;this._current=null;d.some(this._animations,function(a){if(a.duration<=_153){this._current=a;return true;}_153-=a.duration;return false;});if(this._current){this._current.gotoPercent(_153/this._current.duration,_152);}return this;},stop:function(_154){if(this._current){if(_154){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(_14a,_149);dojo.fx.chain=function(_155){return new _14a(_155);};var _156=function(_157){this._animations=_157||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_157,function(a){var _158=a.duration;if(a.delay){_158+=a.delay;}if(this.duration<_158){this.duration=_158;}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(_156,{_doAction:function(_159,args){d.forEach(this._animations,function(a){a[_159].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_15a,args){var t=this._pseudoAnimation;t[_15a].apply(t,args);},play:function(_15b,_15c){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(_15d,_15e){var ms=this.duration*_15d;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_15e);});this._call("gotoPercent",arguments);return this;},stop:function(_15f){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(_156,_149);dojo.fx.combine=function(_160){return new _156(_160);};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 _161=d.style(node,"height");return Math.max(_161,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["dojo.DeferredList"]){dojo._hasResource["dojo.DeferredList"]=true;dojo.provide("dojo.DeferredList");dojo.DeferredList=function(list,_162,_163,_164,_165){var _166=[];dojo.Deferred.call(this);var self=this;if(list.length===0&&!_162){this.resolve([0,[]]);}var _167=0;dojo.forEach(list,function(item,i){item.then(function(_168){if(_162){self.resolve([i,_168]);}else{_169(true,_168);}},function(_16a){if(_163){self.reject(_16a);}else{_169(false,_16a);}if(_164){return null;}throw _16a;});function _169(_16b,_16c){_166[i]=[_16b,_16c];_167++;if(_167===list.length){self.resolve(_166);}};});};dojo.DeferredList.prototype=new dojo.Deferred();dojo.DeferredList.prototype.gatherResults=function(_16d){var d=new dojo.DeferredList(_16d,false,true,false);d.addCallback(function(_16e){var ret=[];dojo.forEach(_16e,function(_16f){ret.push(_16f[1]);});return ret;});return d;};}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(_170){if(this._hash[_170.id]){throw new Error("Tried to register widget with id=="+_170.id+" but that id is already registered");}this._hash[_170.id]=_170;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_171){_171=_171||dojo.global;var i=0,id;for(id in this._hash){func.call(_171,this._hash[id],i++,this._hash);}return this;},filter:function(_172,_173){_173=_173||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_172.call(_173,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,_174;for(id in this._hash){_174=this._hash[id];if(_174.declaredClass==cls){res.add(_174);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_175){return dojo.map(this.toArray(),func,_175);},every:function(func,_176){_176=_176||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_176,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_177){_177=_177||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_177,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_178=dojo.hasAttr,_179=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _17a={};dijit.getUniqueId=function(_17b){var id;do{id=_17b+"_"+(_17b in _17a?++_17a[_17b]:_17a[_17b]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _17c=[];function _17d(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _17e=node.getAttribute("widgetId");if(_17e){var _17f=hash[_17e];if(_17f){_17c.push(_17f);}}else{_17d(node);}}}};_17d(root);return _17c;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_180){if(!_180._destroyed){if(_180.destroyRecursive){_180.destroyRecursive();}else{if(_180.destroy){_180.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 _181=(dijit._isElementShown=function(elem){var s=_179(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 _178(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _182=elem.contentDocument;if("designMode" in _182&&_182.designMode=="on"){return true;}body=_182.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 _183=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_178(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _184,last,_185,_186,_187,_188,_189={};function _18a(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _18b=function(_18c){dojo.query("> *",_18c).forEach(function(_18d){if((dojo.isIE<=9&&_18d.scopeName!=="HTML")||!_181(_18d)){return;}if(_183(_18d)){var _18e=attr(_18d,"tabIndex");if(!_178(_18d,"tabIndex")||_18e==0){if(!_184){_184=_18d;}last=_18d;}else{if(_18e>0){if(!_185||_18e<_186){_186=_18e;_185=_18d;}if(!_187||_18e>=_188){_188=_18e;_187=_18d;}}}var rn=_18a(_18d);if(dojo.attr(_18d,"checked")&&rn){_189[rn]=_18d;}}if(_18d.nodeName.toUpperCase()!="SELECT"){_18b(_18d);}});};if(_181(root)){_18b(root);}function rs(node){return _189[_18a(node)]||node;};return {first:rs(_184),last:rs(last),lowest:rs(_185),highest:rs(_187)};};dijit.getFirstInTabbingOrder=function(root){var _18f=dijit._getTabNavigable(dojo.byId(root));return _18f.lowest?_18f.lowest:_18f.first;};dijit.getLastInTabbingOrder=function(root){var _190=dijit._getTabNavigable(dojo.byId(root));return _190.last?_190.last:_190.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(_191){if(_191){dojo.mixin(this,_191);}},get:function(name){return this[name];},set:function(name,_192){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _193=this[name];this[name]=_192;if(this._watchCallbacks){this._watchCallbacks(name,_193,_192);}return this;},watch:function(name,_194){var _195=this._watchCallbacks;if(!_195){var self=this;_195=this._watchCallbacks=function(name,_196,_197,_198){var _199=function(_19a){if(_19a){_19a=_19a.slice();for(var i=0,l=_19a.length;i<l;i++){try{_19a[i].call(self,name,_196,_197);}catch(e){console.error(e);}}}};_199(_195["_"+name]);if(!_198){_199(_195["*"]);}};}if(!_194&&typeof name==="function"){_194=name;name="*";}else{name="_"+name;}var _19b=_195[name];if(typeof _19b!=="object"){_19b=_195[name]=[];}_19b.push(_194);return {unwatch:function(){_19b.splice(dojo.indexOf(_19b,_194),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(_19c,_19d){this.create(_19c,_19d);},create:function(_19e,_19f){this.srcNodeRef=dojo.byId(_19f);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_19e){this.params=_19e;dojo._mixin(this,_19e);}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 _1a0=this.srcNodeRef;if(_1a0&&_1a0.parentNode&&this.domNode!==_1a0){_1a0.parentNode.replaceChild(this.domNode,_1a0);}}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 _1a1=function(attr,_1a2){if((_1a2.params&&attr in _1a2.params)||_1a2[attr]){_1a2.set(attr,_1a2[attr]);}};for(var attr in this.attributeMap){_1a1(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_1a1(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_1a3,_1a4=ctor.prototype;for(var _1a5 in _1a4){if(dojo.isFunction(_1a4[_1a5])&&(_1a3=_1a5.match(/^_set([a-zA-Z]*)Attr$/))&&_1a3[1]){r.push(_1a3[1].charAt(0).toLowerCase()+_1a3[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _1a6=this.baseClass.split(" ");if(!this.isLeftToRight()){_1a6=_1a6.concat(dojo.map(_1a6,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_1a6);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_1a7){this._beingDestroyed=true;this.destroyDescendants(_1a7);this.destroy(_1a7);},destroy:function(_1a8){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_1a9){dfe(_1a9,d.disconnect);});dfe(this._subscribes,function(_1aa){dun(_1aa);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_1a8);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_1ab){if(this.bgIframe){this.bgIframe.destroy(_1ab);delete this.bgIframe;}if(this.domNode){if(_1ab){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1ab){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1ac){dojo.forEach(this.getChildren(),function(_1ad){if(_1ad.destroyRecursive){_1ad.destroyRecursive(_1ac);}});},uninitialize:function(){return false;},_setClassAttr:function(_1ae){var _1af=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_1af,_1ae,this["class"]);this._set("class",_1ae);},_setStyleAttr:function(_1b0){var _1b1=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_1b0)){dojo.style(_1b1,_1b0);}else{if(_1b1.style.cssText){_1b1.style.cssText+="; "+_1b0;}else{_1b1.style.cssText=_1b0;}}this._set("style",_1b0);},_attrToDom:function(attr,_1b2){var _1b3=this.attributeMap[attr];dojo.forEach(dojo.isArray(_1b3)?_1b3:[_1b3],function(_1b4){var _1b5=this[_1b4.node||_1b4||"domNode"];var type=_1b4.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_1b2)){_1b2=dojo.hitch(this,_1b2);}var _1b6=_1b4.attribute?_1b4.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_1b5,_1b6,_1b2);break;case "innerText":_1b5.innerHTML="";_1b5.appendChild(dojo.doc.createTextNode(_1b2));break;case "innerHTML":_1b5.innerHTML=_1b2;break;case "class":dojo.replaceClass(_1b5,_1b2,this[attr]);break;}},this);},get:function(name){var _1b7=this._getAttrNames(name);return this[_1b7.g]?this[_1b7.g]():this[name];},set:function(name,_1b8){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _1b9=this._getAttrNames(name);if(this[_1b9.s]){var _1ba=this[_1b9.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_1b8);}this._set(name,_1b8);}return _1ba||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,_1bb){var _1bc=this[name];this[name]=_1bb;if(this._watchCallbacks&&this._created&&_1bb!==_1bc){this._watchCallbacks(name,_1bc,_1bb);}},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,_1bd,_1be){var _1bf=[dojo._connect(obj,_1bd,this,_1be)];this._connects.push(_1bf);return _1bf;},disconnect:function(_1c0){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1c0){dojo.forEach(_1c0,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_1c1,_1c2){var _1c3=dojo.subscribe(_1c1,this,_1c2);this._subscribes.push(_1c3);return _1c3;},unsubscribe:function(_1c4){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_1c4){dojo.unsubscribe(_1c4);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_1c5,_1c6){if(_1c5.declaredClass&&_1c5.addChild){_1c5.addChild(this,_1c6);}else{dojo.place(this.domNode,_1c5,_1c6);}return this;},defer:function(fcn,_1c7){var _1c8=setTimeout(dojo.hitch(this,function(){_1c8=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_1c7||0);return {remove:function(){if(_1c8){clearTimeout(_1c8);_1c8=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _1c9=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _1ca=dojo._docScroll();return {w:_1c9.clientWidth,h:_1c9.clientHeight,l:_1ca.x,t:_1ca.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 _1cb=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"}},_1cb,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_1cb.removeChild(div);body.removeChild(_1cb);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _1cc=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_1cd=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_1cc,"last");dojo.window.position_fixed_support=dojo.position(_1cd).x!=dojo.position(_1cc).x;_1cc.removeChild(_1cd);body.removeChild(_1cc);}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 _1ce=doc.compatMode=="BackCompat",_1cf=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_1d0=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_1d1=(isWK||_1ce)?body:html,_1d2=pos||dojo.position(node),el=node.parentNode,_1d3=function(el){return (isIE<=6||(isIE==7&&_1ce))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_1d3(node)){return;}while(el){if(el==body){el=_1d1;}var _1d4=dojo.position(el),_1d5=_1d3(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_1d1){_1d4.w=_1cf;_1d4.h=_1d0;if(_1d1==html&&isIE&&rtl){_1d4.x+=_1d1.offsetWidth-_1d4.w;}if(_1d4.x<0||!isIE||isIE>=9){_1d4.x=0;}if(_1d4.y<0||!isIE||isIE>=9){_1d4.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_1d4.w-=pb.w;_1d4.h-=pb.h;_1d4.x+=pb.l;_1d4.y+=pb.t;var _1d6=el.clientWidth,_1d7=_1d4.w-_1d6;if(_1d6>0&&_1d7>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_1d4.x+=_1d7;}_1d4.w=_1d6;}_1d6=el.clientHeight;_1d7=_1d4.h-_1d6;if(_1d6>0&&_1d7>0){_1d4.h=_1d6;}}if(_1d5){if(_1d4.y<0){_1d4.h+=_1d4.y;_1d4.y=0;}if(_1d4.x<0){_1d4.w+=_1d4.x;_1d4.x=0;}if(_1d4.y+_1d4.h>_1d0){_1d4.h=_1d0-_1d4.y;}if(_1d4.x+_1d4.w>_1cf){_1d4.w=_1cf-_1d4.x;}}var l=_1d2.x-_1d4.x,t=_1d2.y-_1d4.y,r=l+_1d2.w-_1d4.w,bot=t+_1d2.h-_1d4.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_1d1||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_1ce)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_1d2.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_1d1||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_1d2.y-=s;}el=(el!=_1d1)&&!_1d5&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}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(_1d8){var _1d9=dojo.doc,mark=_1d8.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(_1d9.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_1d9.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_1d9.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_1da){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_1da||dojo.global,dijit.getBookmark),openedForWindow:_1da};},focus:function(_1db){if(!_1db){return;}var node="node" in _1db?_1db.node:_1db,_1dc=_1db.bookmark,_1dd=_1db.openedForWindow,_1de=_1dc?_1dc.isCollapsed:false;if(node){var _1df=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_1df&&_1df.focus){try{_1df.focus();}catch(e){}}dijit._onFocusNode(node);}if(_1dc&&dojo.withGlobal(_1dd||dojo.global,dijit.isCollapsed)&&!_1de){if(_1dd){_1dd.focus();}try{dojo.withGlobal(_1dd||dojo.global,dijit.moveToBookmark,null,[_1dc]);}catch(e2){}}},_activeStack:[],registerIframe:function(_1e0){return dijit.registerWin(_1e0.contentWindow,_1e0);},unregisterIframe:function(_1e1){dijit.unregisterWin(_1e1);},registerWin:function(_1e2,_1e3){var _1e4=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_1e3||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_1e2.document.documentElement:_1e2.document;if(doc){if(dojo.isIE){_1e2.document.body.attachEvent("onmousedown",_1e4);var _1e5=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_1e3||evt.srcElement);}else{dijit._onTouchNode(_1e3||evt.srcElement);}};doc.attachEvent("onactivate",_1e5);var _1e6=function(evt){dijit._onBlurNode(_1e3||evt.srcElement);};doc.attachEvent("ondeactivate",_1e6);return function(){_1e2.document.detachEvent("onmousedown",_1e4);doc.detachEvent("onactivate",_1e5);doc.detachEvent("ondeactivate",_1e6);doc=null;};}else{doc.body.addEventListener("mousedown",_1e4,true);var _1e7=function(evt){dijit._onFocusNode(_1e3||evt.target);};doc.addEventListener("focus",_1e7,true);var _1e8=function(evt){dijit._onBlurNode(_1e3||evt.target);};doc.addEventListener("blur",_1e8,true);return function(){doc.body.removeEventListener("mousedown",_1e4,true);doc.removeEventListener("focus",_1e7,true);doc.removeEventListener("blur",_1e8,true);doc=null;};}}},unregisterWin:function(_1e9){_1e9&&_1e9();},_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 _1ea=[];try{while(node){var _1eb=dojo.attr(node,"dijitPopupParent");if(_1eb){node=dijit.byId(_1eb).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"),_1ec=id&&dijit.byId(id);if(_1ec&&!(by=="mouse"&&_1ec.get("disabled"))){_1ea.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_1ea,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(_1ed,by){var _1ee=dijit._activeStack;dijit._activeStack=_1ed;for(var _1ef=0;_1ef<Math.min(_1ee.length,_1ed.length);_1ef++){if(_1ee[_1ef]!=_1ed[_1ef]){break;}}var _1f0;for(var i=_1ee.length-1;i>=_1ef;i--){_1f0=dijit.byId(_1ee[i]);if(_1f0){_1f0._focused=false;_1f0.set("focused",false);_1f0._hasBeenBlurred=true;if(_1f0._onBlur){_1f0._onBlur(by);}dojo.publish("widgetBlur",[_1f0,by]);}}for(i=_1ef;i<_1ed.length;i++){_1f0=dijit.byId(_1ed[i]);if(_1f0){_1f0._focused=true;_1f0.set("focused",true);if(_1f0._onFocus){_1f0._onFocus(by);}dojo.publish("widgetFocus",[_1f0,by]);}}}});dojo.addOnLoad(function(){var _1f1=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_1f1);_1f1=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_1f2){this.pairs=[];this.returnWrappers=_1f2||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_1f3,wrap,_1f4,_1f5){this.pairs[((_1f5)?"unshift":"push")]([name,_1f3,wrap,_1f4]);},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,_1f6,_1f7){var _1f8=dojo.map(_1f6,function(_1f9){var c={corner:_1f9,pos:{x:pos.x,y:pos.y}};if(_1f7){c.pos.x+=_1f9.charAt(1)=="L"?_1f7.x:-_1f7.x;c.pos.y+=_1f9.charAt(0)=="T"?_1f7.y:-_1f7.y;}return c;});return dijit._place(node,_1f8);};dijit._place=function(node,_1fa,_1fb,_1fc){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1fa,function(_1fd){var _1fe=_1fd.corner;var pos=_1fd.pos;var _1ff=0;var _200={w:_1fe.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_1fe.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_1fb){var res=_1fb(node,_1fd.aroundCorner,_1fe,_200,_1fc);_1ff=typeof res=="undefined"?0:res;}var _201=node.style;var _202=_201.display;var _203=_201.visibility;_201.visibility="hidden";_201.display="";var mb=dojo.marginBox(node);_201.display=_202;_201.visibility=_203;var _204=Math.max(view.l,_1fe.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_205=Math.max(view.t,_1fe.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_1fe.charAt(1)=="L"?(_204+mb.w):pos.x),endY=Math.min(view.t+view.h,_1fe.charAt(0)=="T"?(_205+mb.h):pos.y),_206=endX-_204,_207=endY-_205;_1ff+=(mb.w-_206)+(mb.h-_207);if(best==null||_1ff<best.overflow){best={corner:_1fe,aroundCorner:_1fd.aroundCorner,x:_204,y:_205,w:_206,h:_207,overflow:_1ff,spaceAvailable:_200};}return !_1ff;});if(best.overflow&&_1fb){_1fb(node,best.aroundCorner,best.corner,best.spaceAvailable,_1fc);}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,_208,_209,_20a){_208=dojo.byId(_208);var _20b=dojo.position(_208,true);return dijit._placeOnScreenAroundRect(node,_20b.x,_20b.y,_20b.w,_20b.h,_209,_20a);};dijit.placeOnScreenAroundRectangle=function(node,_20c,_20d,_20e){return dijit._placeOnScreenAroundRect(node,_20c.x,_20c.y,_20c.width,_20c.height,_20d,_20e);};dijit._placeOnScreenAroundRect=function(node,x,y,_20f,_210,_211,_212){var _213=[];for(var _214 in _211){_213.push({aroundCorner:_214,corner:_211[_214],pos:{x:x+(_214.charAt(1)=="L"?0:_20f),y:y+(_214.charAt(0)=="T"?0:_210)}});}return dijit._place(node,_213,_212,{w:_20f,h:_210});};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,_215,_216,_217){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_218,_219){var _21a={};dojo.forEach(_218,function(pos){switch(pos){case "after":_21a[_219?"BR":"BL"]=_219?"BL":"BR";break;case "before":_21a[_219?"BL":"BR"]=_219?"BR":"BL";break;case "below-alt":_219=!_219;case "below":_21a[_219?"BL":"BR"]=_219?"TL":"TR";_21a[_219?"BR":"BL"]=_219?"TR":"TL";break;case "above-alt":_219=!_219;case "above":default:_21a[_219?"TL":"TR"]=_219?"BL":"BR";_21a[_219?"TR":"TL"]=_219?"BR":"BL";break;}});return _21a;};}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(_21b){var node=_21b.domNode||_21b,_21c=_21b.declaredClass?_21b._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_21c){_21c=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_21c.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_21b.declaredClass){_21b._popupWrapper=_21c;dojo.connect(_21b,"destroy",function(){dojo.destroy(_21c);delete _21b._popupWrapper;});}}return _21c;},moveOffScreen:function(_21d){var _21e=this._createWrapper(_21d);dojo.style(_21e,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_21f){var _220=this._createWrapper(_21f);dojo.style(_220,"display","none");},getTopPopup:function(){var _221=this._stack;for(var pi=_221.length-1;pi>0&&_221[pi].parent===_221[pi-1].widget;pi--){}return _221[pi];},open:function(args){var _222=this._stack,_223=args.popup,_224=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"}),_225=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_222.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_222[_222.length-1].widget.domNode))){dijit.popup.close(_222[_222.length-1].widget);}var _226=this._createWrapper(_223);dojo.attr(_226,{id:id,style:{zIndex:this._beginZIndex+_222.length},"class":"dijitPopup "+(_223.baseClass||_223["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_223.bgIframe){_223.bgIframe=new dijit.BackgroundIframe(_226);}}var best=_225?dijit.placeOnScreenAroundElement(_226,_225,_224,_223.orient?dojo.hitch(_223,"orient"):null):dijit.placeOnScreen(_226,args,_224=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_226.style.display="";_226.style.visibility="visible";_223.domNode.style.visibility="visible";var _227=[];_227.push(dojo.connect(_226,"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 _228=this.getTopPopup();if(_228&&_228.onCancel){_228.onCancel();}}}}));if(_223.onCancel){_227.push(dojo.connect(_223,"onCancel",args.onCancel));}_227.push(dojo.connect(_223,_223.onExecute?"onExecute":"onChange",this,function(){var _229=this.getTopPopup();if(_229&&_229.onExecute){_229.onExecute();}}));_222.push({widget:_223,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_227});if(_223.onOpen){_223.onOpen(best);}return best;},close:function(_22a){var _22b=this._stack;while((_22a&&dojo.some(_22b,function(elem){return elem.widget==_22a;}))||(!_22a&&_22b.length)){var top=_22b.pop(),_22c=top.widget,_22d=top.onClose;if(_22c.onClose){_22c.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_22c&&_22c.domNode){this.hide(_22c);}if(_22d){_22d();}}}};dijit._frames=new function(){var _22e=[];this.pop=function(){var _22f;if(_22e.length){_22f=_22e.pop();_22f.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\");'>";_22f=dojo.doc.createElement(html);}else{_22f=dojo.create("iframe");_22f.src="javascript:\"\"";_22f.className="dijitBackgroundIframe";dojo.style(_22f,"opacity",0.1);}_22f.tabIndex=-1;dijit.setWaiRole(_22f,"presentation");}return _22f;};this.push=function(_230){_230.style.display="none";_22e.push(_230);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _231=(this.iframe=dijit._frames.pop());node.appendChild(_231);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_231,{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,_232=d.isOpera,maj=Math.floor,ff=d.isFF,_233=d.boxModel.replace(/-/,""),_234={dj_quirks:d.isQuirks,dj_opera:_232,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_234["dj_ie"]=true;_234["dj_ie"+maj(ie)]=true;_234["dj_iequirks"]=d.isQuirks;}if(ff){_234["dj_ff"+maj(ff)]=true;}_234["dj_"+_233]=true;var _235="";for(var clz in _234){if(_234[clz]){_235+=clz+" ";}}html.className=d.trim(html.className+" "+_235);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _236="dj_rtl dijitRtl "+_235.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_236);}});})();}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,_237,node,_238,obj,_239,_23a,_23b){if(obj!=this._obj){this.stop();this._initialDelay=_23a||500;this._subsequentDelay=_239||0.9;this._minDelay=_23b||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_237,_238);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,_23c,_23d,_23e,_23f,_240,_241){if(_23c.keyCode){_23c.charOrCode=_23c.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_23c.charCode){_23c.charOrCode=String.fromCharCode(_23c.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==_23c.charOrCode&&(_23c.ctrlKey===undefined||_23c.ctrlKey==evt.ctrlKey)&&(_23c.altKey===undefined||_23c.altKey==evt.altKey)&&(_23c.metaKey===undefined||_23c.metaKey==(evt.metaKey||false))&&(_23c.shiftKey===undefined||_23c.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_23d,node,_23e,_23c,_23f,_240,_241);}else{if(dijit.typematic._obj==_23c){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_23c){dijit.typematic.stop();}})];},addMouseListener:function(node,_242,_243,_244,_245,_246){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_242,node,_243,node,_244,_245,_246);}),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,_242,node,_243,node,_244,_245,_246);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_247,_248,_249,_24a,_24b,_24c,_24d,_24e){return this.addKeyListener(_248,_249,_24a,_24b,_24c,_24d,_24e).concat(this.addMouseListener(_247,_24a,_24b,_24c,_24d,_24e));}};}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 _24f=cs.backgroundImage;var _250=(cs.borderTopColor==cs.borderRightColor)||(_24f!=null&&(_24f=="none"||_24f=="url(invalid-url:)"));dojo[_250?"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 _251=this.getWaiRole(elem);return role?(_251.indexOf(role)>-1):(_251.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 _252=dojo.attr(elem,"role");if(!_252){return;}if(role){var t=dojo.trim((" "+_252+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_253){return elem.hasAttribute?elem.hasAttribute("aria-"+_253):!!elem.getAttribute("aria-"+_253);},getWaiState:function(elem,_254){return elem.getAttribute("aria-"+_254)||"";},setWaiState:function(elem,_255,_256){elem.setAttribute("aria-"+_255,_256);},removeWaiState:function(elem,_257){elem.removeAttribute("aria-"+_257);}});}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(_258,_259){if(_258&&dojo.isFunction(_258._onConnect)){_258._onConnect(_259);}});dijit._connectOnUseEventHandler=function(_25a){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _25b=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_25b);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_25b);});})();}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(_25c,_25d){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(_25e){if(_25e in this._deferredConnects){var _25f=this[this._deferredConnects[_25e]||"domNode"];this.connect(_25f,_25e.toLowerCase(),_25e);delete this._deferredConnects[_25e];}},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,_260){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_260);},attr:function(name,_261){if(dojo.config.isDebug){var _262=arguments.callee._ach||(arguments.callee._ach={}),_263=(arguments.callee.caller||"unknown caller").toString();if(!_262[_263]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_263,"","2.0");_262[_263]=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,_264,_265){var d=dojo,dc=d._connect,_266=this.inherited(arguments,[obj,_264=="ondijitclick"?"onclick":_264,_265]);if(_264=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_265);_266.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 _266;},_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(_267,map,_268,_269){_269=_269||dojo.global;_268=_268?dojo.hitch(_269,_268):function(v){return v;};return _267.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_26a,key,_26b){var _26c=dojo.getObject(key,false,map);if(_26b){_26c=dojo.getObject(_26b,false,_269).call(_269,_26c,key);}return _268(_26c,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(_26d,url,_26e){if(typeof _26d=="string"){var _26f=dojo.moduleUrl(_26d,url);}else{_26f=_26d;_26e=url;}var key=_26f.toString();var val=_26e;if(_26e!=undefined&&!dojo.isString(_26e)){val=("value" in _26e?_26e.value:undefined);}var _270=_26e&&_26e.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_270?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_270?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 _271=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_271){val=_271[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 _272=this.declaredClass,_273=this;return dojo.string.substitute(tmpl,this,function(_274,key){if(key.charAt(0)=="!"){_274=dojo.getObject(key.substr(1),false,_273);}if(typeof _274=="undefined"){throw new Error(_272+" template:"+key);}if(_274==null){return "";}return key.charAt(0)=="!"?_274:_274.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _275=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_275)){node=dojo._toDom(this._stringRepl(_275));if(node.nodeType!=1){throw new Error("Invalid template: "+_275);}}else{node=_275.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(_276){var dest=this.containerNode;if(_276&&dest){while(_276.hasChildNodes()){dest.appendChild(_276.firstChild);}}},_attachTemplateNodes:function(_277,_278){_278=_278||function(n,p){return n.getAttribute(p);};var _279=dojo.isArray(_277)?_277:(_277.all||_277.getElementsByTagName("*"));var x=dojo.isArray(_277)?0:-1;for(;x<_279.length;x++){var _27a=(x==-1)?_277:_279[x];if(this.widgetsInTemplate&&(_278(_27a,"dojoType")||_278(_27a,"data-dojo-type"))){continue;}var _27b=_278(_27a,"dojoAttachPoint")||_278(_27a,"data-dojo-attach-point");if(_27b){var _27c,_27d=_27b.split(/\s*,\s*/);while((_27c=_27d.shift())){if(dojo.isArray(this[_27c])){this[_27c].push(_27a);}else{this[_27c]=_27a;}this._attachPoints.push(_27c);}}var _27e=_278(_27a,"dojoAttachEvent")||_278(_27a,"data-dojo-attach-event");if(_27e){var _27f,_280=_27e.split(/\s*,\s*/);var trim=dojo.trim;while((_27f=_280.shift())){if(_27f){var _281=null;if(_27f.indexOf(":")!=-1){var _282=_27f.split(":");_27f=trim(_282[0]);_281=trim(_282[1]);}else{_27f=trim(_27f);}if(!_281){_281=_27f;}this._attachEvents.push(this.connect(_27a,_27f,_281));}}}var role=_278(_27a,"waiRole");if(role){dijit.setWaiRole(_27a,role);}var _283=_278(_27a,"waiState");if(_283){dojo.forEach(_283.split(/\s*,\s*/),function(_284){if(_284.indexOf("-")!=-1){var pair=_284.split("-");dijit.setWaiState(_27a,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(_285){delete this[_285];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_286,_287,_288){var _289=dijit._Templated._templateCache;var key=_287||_286;var _28a=_289[key];if(_28a){try{if(!_28a.ownerDocument||_28a.ownerDocument==dojo.doc){return _28a;}}catch(e){}dojo.destroy(_28a);}if(!_287){_287=dojo.cache(_286,{sanitize:true});}_287=dojo.string.trim(_287);if(_288||_287.match(/\$\{([^\}]+)\}/g)){return (_289[key]=_287);}else{var node=dojo._toDom(_287);if(node.nodeType!=1){throw new Error("Invalid template: "+_287);}return (_289[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _28b=dijit._Templated._templateCache;for(var key in _28b){var _28c=_28b[key];if(typeof _28c=="object"){dojo.destroy(_28c);}delete _28b[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}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(_28d,_28e){var _28f=this.containerNode;if(_28e&&typeof _28e=="number"){var _290=this.getChildren();if(_290&&_290.length>=_28e){_28f=_290[_28e-1].domNode;_28e="after";}}dojo.place(_28d.domNode,_28f,_28e);if(this._started&&!_28d._started){_28d.startup();}},removeChild:function(_291){if(typeof _291=="number"){_291=this.getChildren()[_291];}if(_291){var node=_291.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_292){dojo.forEach(this.getChildren(),function(_293){_293.destroyRecursive(_292);});},_getSiblingOfChild:function(_294,dir){var node=_294.domNode,_295=(dir>0?"nextSibling":"previousSibling");do{node=node[_295];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_296){return dojo.indexOf(this.getChildren(),_296);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_297){_297.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _298=dijit.getEnclosingWidget(this.domNode.parentNode);return _298&&_298.isContainer?_298:null;},_getSibling:function(_299){var node=this.domNode;do{node=node[_299+"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._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(_29a){if(!this.disabled){switch(_29a.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 _29b=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_29b);});break;}}},_setStateClass:function(){var _29c=this.baseClass.split(" ");function _29d(_29e){_29c=_29c.concat(dojo.map(_29c,function(c){return c+_29e;}),"dijit"+_29e);};if(!this.isLeftToRight()){_29d("Rtl");}if(this.checked){_29d("Checked");}if(this.state){_29d(this.state);}if(this.selected){_29d("Selected");}if(this.disabled){_29d("Disabled");}else{if(this.readOnly){_29d("ReadOnly");}else{if(this.active){_29d("Active");}else{if(this.hovering){_29d("Hover");}}}}if(this._focused){_29d("Focused");}var tn=this.stateNode||this.domNode,_29f={};dojo.forEach(tn.className.split(" "),function(c){_29f[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _29f[c];});}dojo.forEach(_29c,function(c){_29f[c]=true;});var _2a0=[];for(var c in _29f){_2a0.push(c);}tn.className=_2a0.join(" ");this._stateClasses=_29c;},_trackMouseState:function(node,_2a1){var _2a2=false,_2a3=false,_2a4=false;var self=this,cn=dojo.hitch(this,"connect",node);function _2a5(){var _2a6=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_2a1+"Hover",_2a2&&!_2a3&&!_2a6);dojo.toggleClass(node,_2a1+"Active",_2a3&&!_2a6);dojo.toggleClass(node,_2a1+"Focused",_2a4&&!_2a6);};cn("onmouseenter",function(){_2a2=true;_2a5();});cn("onmouseleave",function(){_2a2=false;_2a3=false;_2a5();});cn("onmousedown",function(){_2a3=true;_2a5();});cn("onmouseup",function(){_2a3=false;_2a5();});cn("onfocus",function(){_2a4=true;_2a5();});cn("onblur",function(){_2a4=false;_2a5();});this.watch("disabled",_2a5);this.watch("readOnly",_2a5);}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_2a7){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_2a7&&_2a7.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_2a8){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("|"),_2a8);};dojo.regexp.group=function(_2a9,_2aa){return "("+(_2aa?"?:":"")+_2a9+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_2ab,_2ac){var c=document.cookie;if(arguments.length==1){var _2ad=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _2ad?decodeURIComponent(_2ad[1]):undefined;}else{_2ac=_2ac||{};var exp=_2ac.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_2ac.expires=d;}if(exp&&exp.toUTCString){_2ac.expires=exp.toUTCString();}_2ab=encodeURIComponent(_2ab);var _2ae=name+"="+_2ab,_2af;for(_2af in _2ac){_2ae+="; "+_2af;var _2b0=_2ac[_2af];if(_2b0!==true){_2ae+="="+_2b0;}}document.cookie=_2ae;}};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["dijit.tree.TreeStoreModel"]){dojo._hasResource["dijit.tree.TreeStoreModel"]=true;dojo.provide("dijit.tree.TreeStoreModel");dojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],newItemIdAttr:"id",labelAttr:"",root:null,query:null,deferItemLoadingUntilExpand:false,constructor:function(args){dojo.mixin(this,args);this.connects=[];var _2b1=this.store;if(!_2b1.getFeatures()["dojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support dojo.data.Identity");}if(_2b1.getFeatures()["dojo.data.api.Notification"]){this.connects=this.connects.concat([dojo.connect(_2b1,"onNew",this,"onNewItem"),dojo.connect(_2b1,"onDelete",this,"onDeleteItem"),dojo.connect(_2b1,"onSet",this,"onSetItem")]);}},destroy:function(){dojo.forEach(this.connects,dojo.disconnect);},getRoot:function(_2b2,_2b3){if(this.root){_2b2(this.root);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_2b4){if(_2b4.length!=1){throw new Error(this.declaredClass+": query "+dojo.toJson(this.query)+" returned "+_2b4.length+" items, but must return exactly one item");}this.root=_2b4[0];_2b2(this.root);}),onError:_2b3});}},mayHaveChildren:function(item){return dojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_2b5,_2b6,_2b7){var _2b8=this.store;if(!_2b8.isItemLoaded(_2b5)){var _2b9=dojo.hitch(this,arguments.callee);_2b8.loadItem({item:_2b5,onItem:function(_2ba){_2b9(_2ba,_2b6,_2b7);},onError:_2b7});return;}var _2bb=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_2b8.getValues(_2b5,this.childrenAttrs[i]);_2bb=_2bb.concat(vals);}var _2bc=0;if(!this.deferItemLoadingUntilExpand){dojo.forEach(_2bb,function(item){if(!_2b8.isItemLoaded(item)){_2bc++;}});}if(_2bc==0){_2b6(_2bb);}else{dojo.forEach(_2bb,function(item,idx){if(!_2b8.isItemLoaded(item)){_2b8.loadItem({item:item,onItem:function(item){_2bb[idx]=item;if(--_2bc==0){_2b6(_2bb);}},onError:_2b7});}});}},isItem:function(_2bd){return this.store.isItem(_2bd);},fetchItemByIdentity:function(_2be){this.store.fetchItemByIdentity(_2be);},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_2bf,_2c0){var _2c1={parent:_2bf,attribute:this.childrenAttrs[0]},_2c2;if(this.newItemIdAttr&&args[this.newItemIdAttr]){this.fetchItemByIdentity({identity:args[this.newItemIdAttr],scope:this,onItem:function(item){if(item){this.pasteItem(item,null,_2bf,true,_2c0);}else{_2c2=this.store.newItem(args,_2c1);if(_2c2&&(_2c0!=undefined)){this.pasteItem(_2c2,_2bf,_2bf,false,_2c0);}}}});}else{_2c2=this.store.newItem(args,_2c1);if(_2c2&&(_2c0!=undefined)){this.pasteItem(_2c2,_2bf,_2bf,false,_2c0);}}},pasteItem:function(_2c3,_2c4,_2c5,_2c6,_2c7){var _2c8=this.store,_2c9=this.childrenAttrs[0];if(_2c4){dojo.forEach(this.childrenAttrs,function(attr){if(_2c8.containsValue(_2c4,attr,_2c3)){if(!_2c6){var _2ca=dojo.filter(_2c8.getValues(_2c4,attr),function(x){return x!=_2c3;});_2c8.setValues(_2c4,attr,_2ca);}_2c9=attr;}});}if(_2c5){if(typeof _2c7=="number"){var _2cb=_2c8.getValues(_2c5,_2c9).slice();_2cb.splice(_2c7,0,_2c3);_2c8.setValues(_2c5,_2c9,_2cb);}else{_2c8.setValues(_2c5,_2c9,_2c8.getValues(_2c5,_2c9).concat(_2c3));}}},onChange:function(item){},onChildrenChange:function(_2cc,_2cd){},onDelete:function(_2ce,_2cf){},onNewItem:function(item,_2d0){if(!_2d0){return;}this.getChildren(_2d0.item,dojo.hitch(this,function(_2d1){this.onChildrenChange(_2d0.item,_2d1);}));},onDeleteItem:function(item){this.onDelete(item);},onSetItem:function(item,_2d2,_2d3,_2d4){if(dojo.indexOf(this.childrenAttrs,_2d2)!=-1){this.getChildren(item,dojo.hitch(this,function(_2d5){this.onChildrenChange(item,_2d5);}));}else{this.onChange(item);}}});}if(!dojo._hasResource["dijit.tree.ForestStoreModel"]){dojo._hasResource["dijit.tree.ForestStoreModel"]=true;dojo.provide("dijit.tree.ForestStoreModel");dojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_2d6){this.root={store:this,root:true,id:_2d6.rootId,label:_2d6.rootLabel,children:_2d6.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_2d7,_2d8,_2d9){if(_2d7===this.root){if(this.root.children){_2d8(this.root.children);}else{this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_2da){this.root.children=_2da;_2d8(_2da);}),onError:_2d9});}}else{this.inherited(arguments);}},isItem:function(_2db){return (_2db===this.root)?true:this.inherited(arguments);},fetchItemByIdentity:function(_2dc){if(_2dc.identity==this.root.id){var _2dd=_2dc.scope?_2dc.scope:dojo.global;if(_2dc.onItem){_2dc.onItem.call(_2dd,this.root);}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_2de,_2df){if(_2de===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_2e0,_2e1,_2e2,_2e3,_2e4){if(_2e1===this.root){if(!_2e3){this.onLeaveRoot(_2e0);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_2e0,_2e1===this.root?null:_2e1,_2e2===this.root?null:_2e2,_2e3,_2e4);if(_2e2===this.root){this.onAddToRoot(_2e0);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _2e5=this.root.children||[];this.store.fetch({query:this.query,onComplete:dojo.hitch(this,function(_2e6){this.root.children=_2e6;if(_2e5.length!=_2e6.length||dojo.some(_2e5,function(item,idx){return _2e6[idx]!=item;})){this.onChildrenChange(this.root,_2e6);}})});},onNewItem:function(item,_2e7){this._requeryTop();this.inherited(arguments);},onDeleteItem:function(item){if(dojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);},onSetItem:function(item,_2e8,_2e9,_2ea){this._requeryTop();this.inherited(arguments);}});}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.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_2eb){this.node=dojo.byId(node);if(!_2eb){_2eb={};}this.creator=_2eb.creator||null;this.skipForm=_2eb.skipForm;this.parent=_2eb.dropParent&&dojo.byId(_2eb.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_2eb&&_2eb._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,_2ec,_2ed){if(!this.parent.firstChild){_2ed=null;}else{if(_2ec){if(!_2ed){_2ed=this.parent.firstChild;}}else{if(_2ed){_2ed=_2ed.nextSibling;}}}if(_2ed){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,_2ed);}}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(_2ee,node){_2ee._skipStartup=true;return new dojo.dnd.Container(node,_2ee);},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,_2ef){var _2f0="dojoDnd"+type;var _2f1=type.toLowerCase()+"State";dojo.replaceClass(this.node,_2f0+_2ef,_2f0+this[_2f1]);this[_2f1]=_2ef;},_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 _2f2=node.parentNode;_2f2;node=_2f2,_2f2=node.parentNode){if(_2f2==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 _2f3=item&&dojo.isObject(item),data,type,n;if(_2f3&&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=(_2f3&&item.data)?item.data:item;type=(_2f3&&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["dijit.tree._dndContainer"]){dojo._hasResource["dijit.tree._dndContainer"]=true;dojo.provide("dijit.tree._dndContainer");dojo.getObject("tree",true,dojo);dijit.tree._compareNodes=function(n1,n2){if(n1===n2){return 0;}if("sourceIndex" in document.documentElement){return n1.sourceIndex-n2.sourceIndex;}else{if("compareDocumentPosition" in document.documentElement){return n1.compareDocumentPosition(n2)&2?1:-1;}else{if(document.createRange){var r1=doc.createRange();r1.setStartBefore(n1);var r2=doc.createRange();r2.setStartBefore(n2);return r1.compareBoundaryPoints(r1.END_TO_END,r2);}else{throw Error("dijit.tree._compareNodes don't know how to compare two different nodes in this browser");}}}};dojo.declare("dijit.tree._dndContainer",null,{constructor:function(tree,_2f4){this.tree=tree;this.node=tree.domNode;dojo.mixin(this,_2f4);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");this.events=[dojo.connect(this.node,"onmouseenter",this,"onOverEvent"),dojo.connect(this.node,"onmouseleave",this,"onOutEvent"),dojo.connect(this.tree,"_onNodeMouseEnter",this,"onMouseOver"),dojo.connect(this.tree,"_onNodeMouseLeave",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",dojo,"stopEvent"),dojo.connect(this.node,"onselectstart",dojo,"stopEvent")];},getItem:function(key){var _2f5=this.selection[key],ret={data:_2f5,type:["treeNode"]};return ret;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.node=this.parent=null;},onMouseOver:function(_2f6,evt){this.current=_2f6;},onMouseOut:function(_2f7,evt){this.current=null;},_changeState:function(type,_2f8){var _2f9="dojoDnd"+type;var _2fa=type.toLowerCase()+"State";dojo.replaceClass(this.node,_2f9+_2f8,_2f9+this[_2fa]);this[_2fa]=_2f8;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},onOverEvent:function(){this._changeState("Container","Over");},onOutEvent:function(){this._changeState("Container","");}});}if(!dojo._hasResource["dijit.tree._dndSelector"]){dojo._hasResource["dijit.tree._dndSelector"]=true;dojo.provide("dijit.tree._dndSelector");dojo.declare("dijit.tree._dndSelector",dijit.tree._dndContainer,{constructor:function(tree,_2fb){this.selection={};this.anchor=null;dijit.setWaiState(this.tree.domNode,"multiselect",!this.singular);this.events.push(dojo.connect(this.tree.domNode,"onmousedown",this,"onMouseDown"),dojo.connect(this.tree.domNode,"onmouseup",this,"onMouseUp"),dojo.connect(this.tree.domNode,"onmousemove",this,"onMouseMove"));},singular:false,getSelectedTreeNodes:function(){var _2fc=[],sel=this.selection;for(var i in sel){_2fc.push(sel[i]);}return _2fc;},selectNone:function(){this.setSelection([]);return this;},destroy:function(){this.inherited(arguments);this.selection=this.anchor=null;},addTreeNode:function(node,_2fd){this.setSelection(this.getSelectedTreeNodes().concat([node]));if(_2fd){this.anchor=node;}return node;},removeTreeNode:function(node){this.setSelection(this._setDifference(this.getSelectedTreeNodes(),[node]));return node;},isTreeNodeSelected:function(node){return node.id&&!!this.selection[node.id];},setSelection:function(_2fe){var _2ff=this.getSelectedTreeNodes();dojo.forEach(this._setDifference(_2ff,_2fe),dojo.hitch(this,function(node){node.setSelected(false);if(this.anchor==node){delete this.anchor;}delete this.selection[node.id];}));dojo.forEach(this._setDifference(_2fe,_2ff),dojo.hitch(this,function(node){node.setSelected(true);this.selection[node.id]=node;}));this._updateSelectionProperties();},_setDifference:function(xs,ys){dojo.forEach(ys,function(y){y.__exclude__=true;});var ret=dojo.filter(xs,function(x){return !x.__exclude__;});dojo.forEach(ys,function(y){delete y["__exclude__"];});return ret;},_updateSelectionProperties:function(){var _300=this.getSelectedTreeNodes();var _301=[],_302=[];dojo.forEach(_300,function(node){_302.push(node);_301.push(node.getTreePath());});var _303=dojo.map(_302,function(node){return node.item;});this.tree._set("paths",_301);this.tree._set("path",_301[0]||[]);this.tree._set("selectedNodes",_302);this.tree._set("selectedNode",_302[0]||null);this.tree._set("selectedItems",_303);this.tree._set("selectedItem",_303[0]||null);},onMouseDown:function(e){if(!this.current||this.tree.isExpandoNode(e.target,this.current)){return;}if(e.button==dojo.mouseButtons.RIGHT){return;}dojo.stopEvent(e);var _304=this.current,copy=dojo.isCopyKey(e),id=_304.id;if(!this.singular&&!e.shiftKey&&this.selection[id]){this._doDeselect=true;return;}else{this._doDeselect=false;}this.userSelect(_304,copy,e.shiftKey);},onMouseUp:function(e){if(!this._doDeselect){return;}this._doDeselect=false;this.userSelect(this.current,dojo.isCopyKey(e),e.shiftKey);},onMouseMove:function(e){this._doDeselect=false;},userSelect:function(node,_305,_306){if(this.singular){if(this.anchor==node&&_305){this.selectNone();}else{this.setSelection([node]);this.anchor=node;}}else{if(_306&&this.anchor){var cr=dijit.tree._compareNodes(this.anchor.rowNode,node.rowNode),_307,end,_308=this.anchor;if(cr<0){_307=_308;end=node;}else{_307=node;end=_308;}nodes=[];while(_307!=end){nodes.push(_307);_307=this.tree._getNextNode(_307);}nodes.push(end);this.setSelection(nodes);}else{if(this.selection[node.id]&&_305){this.removeTreeNode(node);}else{if(_305){this.addTreeNode(node,true);}else{this.setSelection([node]);this.anchor=node;}}}}},forInSelectedItems:function(f,o){o=o||dojo.global;for(var id in this.selection){f.call(o,this.getItem(id),id,this);}}});}if(!dojo._hasResource["dijit.Tree"]){dojo._hasResource["dijit.Tree"]=true;dojo.provide("dijit.Tree");dojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained,dijit._CssStateMixin],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:dojo.cache("dijit","templates/TreeNode.html","<div class=\"dijitTreeNode\" role=\"presentation\"\n\t><div dojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" role=\"presentation\" dojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave, onclick:_onClick, ondblclick:_onDblClick\"\n\t\t><img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" role=\"presentation\"\n\t\t/><span dojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" role=\"presentation\"\n\t\t></span\n\t\t><span dojoAttachPoint=\"contentNode\"\n\t\t\tclass=\"dijitTreeContent\" role=\"presentation\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"iconNode\" class=\"dijitIcon dijitTreeIcon\" role=\"presentation\"\n\t\t\t/><span dojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" role=\"treeitem\" tabindex=\"-1\" aria-selected=\"false\" dojoAttachEvent=\"onfocus:_onLabelFocus\"></span>\n\t\t</span\n\t></div>\n\t<div dojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" role=\"presentation\" style=\"display: none;\"></div>\n</div>\n"),baseClass:"dijitTreeNode",cssStateNodes:{rowNode:"dijitTreeRow",labelNode:"dijitTreeLabel"},attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"labelNode",type:"innerText"},tooltip:{node:"rowNode",type:"attribute",attribute:"title"}}),buildRendering:function(){this.inherited(arguments);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}this.setSelected(false);},_setIndentAttr:function(_309){var _30a=(Math.max(_309,0)*this.tree._nodePixelIndent)+"px";dojo.style(this.domNode,"backgroundPosition",_30a+" 0px");dojo.style(this.rowNode,this.isLeftToRight()?"paddingLeft":"paddingRight",_30a);dojo.forEach(this.getChildren(),function(_30b){_30b.set("indent",_309+1);});this._set("indent",_309);},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_30c=tree.model;if(tree._v10Compat&&item===_30c.root){item=null;}this._applyClassAndStyle(item,"icon","Icon");this._applyClassAndStyle(item,"label","Label");this._applyClassAndStyle(item,"row","Row");},_applyClassAndStyle:function(item,_30d,_30e){var _30f="_"+_30d+"Class";var _310=_30d+"Node";var _311=this[_30f];this[_30f]=this.tree["get"+_30e+"Class"](item,this.isExpanded);dojo.replaceClass(this[_310],this[_30f]||"",_311||"");dojo.style(this[_310],this.tree["get"+_30e+"Style"](item,this.isExpanded)||{});},_updateLayout:function(){var _312=this.getParent();if(!_312||_312.rowNode.style.display=="none"){dojo.addClass(this.domNode,"dijitTreeIsRoot");}else{dojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_313){var _314=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"],_315=["*","-","+","*"],idx=_313?0:(this.isExpandable?(this.isExpanded?1:2):3);dojo.replaceClass(this.expandoNode,_314[idx],_314);this.expandoNodeText.innerHTML=_315[idx];},expand:function(){if(this._expandDeferred){return this._expandDeferred;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");if(this.tree.showRoot||this!==this.tree.rootNode){dijit.setWaiRole(this.containerNode,"group");}dojo.addClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","true");}var def,_316=dojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration,onEnd:function(){def.callback(true);}});def=(this._expandDeferred=new dojo.Deferred(function(){_316.stop();}));_316.play();return def;},collapse:function(){if(!this.isExpanded){return;}if(this._expandDeferred){this._expandDeferred.cancel();delete this._expandDeferred;}this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");if(this==this.tree.rootNode){dijit.setWaiState(this.tree.domNode,"expanded","false");}dojo.removeClass(this.contentNode,"dijitTreeContentExpanded");this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=dojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},indent:0,setChildItems:function(_317){var tree=this.tree,_318=tree.model,defs=[];dojo.forEach(this.getChildren(),function(_319){dijit._Container.prototype.removeChild.call(this,_319);},this);this.state="LOADED";if(_317&&_317.length>0){this.isExpandable=true;dojo.forEach(_317,function(item){var id=_318.getIdentity(item),_31a=tree._itemNodesMap[id],node;if(_31a){for(var i=0;i<_31a.length;i++){if(_31a[i]&&!_31a[i].getParent()){node=_31a[i];node.set("indent",this.indent+1);break;}}}if(!node){node=this.tree._createTreeNode({item:item,tree:tree,isExpandable:_318.mayHaveChildren(item),label:tree.getLabel(item),tooltip:tree.getTooltip(item),dir:tree.dir,lang:tree.lang,indent:this.indent+1});if(_31a){_31a.push(node);}else{tree._itemNodesMap[id]=[node];}}this.addChild(node);if(this.tree.autoExpand||this.tree._state(item)){defs.push(tree._expandNode(node));}},this);dojo.forEach(this.getChildren(),function(_31b,idx){_31b._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}this._updateItemClasses(this.item);if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0];if(fc){fc.setFocusable(true);tree.lastFocused=fc;}else{tree.domNode.setAttribute("tabIndex","0");}}return new dojo.DeferredList(defs);},getTreePath:function(){var node=this;var path=[];while(node&&node!==this.tree.rootNode){path.unshift(node.item);node=node.getParent();}path.unshift(this.tree.rootNode.item);return path;},getIdentity:function(){return this.tree.model.getIdentity(this.item);},removeChild:function(node){this.inherited(arguments);var _31c=this.getChildren();if(_31c.length==0){this.isExpandable=false;this.collapse();}dojo.forEach(_31c,function(_31d){_31d._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onLabelFocus:function(evt){this.tree._onNodeFocus(this);},setSelected:function(_31e){dijit.setWaiState(this.labelNode,"selected",_31e);dojo.toggleClass(this.rowNode,"dijitTreeRowSelected",_31e);},setFocusable:function(_31f){this.labelNode.setAttribute("tabIndex",_31f?"0":"-1");},_onClick:function(evt){this.tree._onClick(this,evt);},_onDblClick:function(evt){this.tree._onDblClick(this,evt);},_onMouseEnter:function(evt){this.tree._onNodeMouseEnter(this,evt);},_onMouseLeave:function(evt){this.tree._onNodeMouseLeave(this,evt);}});dojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],paths:[],path:[],selectedItems:null,selectedItem:null,openOnClick:false,openOnDblClick:false,templateString:dojo.cache("dijit","templates/Tree.html","<div class=\"dijitTree dijitTreeContainer\" role=\"tree\"\n\tdojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<div class=\"dijitInline dijitTreeIndent\" style=\"position: absolute; top: -9999px\" dojoAttachPoint=\"indentDetector\"></div>\n</div>\n"),persist:true,autoExpand:false,dndController:"dijit.tree._dndSelector",dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold","betweenThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:5,betweenThreshold:0,_nodePixelIndent:19,_publish:function(_320,_321){dojo.publish(this.id,[dojo.mixin({tree:this,event:_320},_321||{})]);},postMixInProperties:function(){this.tree=this;if(this.autoExpand){this.persist=false;}this._itemNodesMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}this._loadDeferred=new dojo.Deferred();this.inherited(arguments);},postCreate:function(){this._initState();if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(dojo.isString(this.dndController)){this.dndController=dojo.getObject(this.dndController);}var _322={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_322[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_322);}},_store2model:function(){this._v10Compat=true;dojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _323={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_323.mayHaveChildren=dojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_323.getChildren=dojo.hitch(this,function(item,_324,_325){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_324,_325);});}this.model=new dijit.tree.ForestStoreModel(_323);this.showRoot=Boolean(this.label);},onLoad:function(){},_load:function(){this.model.getRoot(dojo.hitch(this,function(item){var rn=(this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item),indent:this.showRoot?0:-1}));if(!this.showRoot){rn.rowNode.style.display="none";dijit.setWaiRole(this.domNode,"presentation");dijit.setWaiRole(rn.labelNode,"presentation");dijit.setWaiRole(rn.containerNode,"tree");}this.domNode.appendChild(rn.domNode);var _326=this.model.getIdentity(item);if(this._itemNodesMap[_326]){this._itemNodesMap[_326].push(rn);}else{this._itemNodesMap[_326]=[rn];}rn._updateLayout();this._expandNode(rn).addCallback(dojo.hitch(this,function(){this._loadDeferred.callback(true);this.onLoad();}));}),function(err){console.error(this,": error loading root: ",err);});},getNodesByItem:function(item){if(!item){return [];}var _327=dojo.isString(item)?item:this.model.getIdentity(item);return [].concat(this._itemNodesMap[_327]);},_setSelectedItemAttr:function(item){this.set("selectedItems",[item]);},_setSelectedItemsAttr:function(_328){var tree=this;this._loadDeferred.addCallback(dojo.hitch(this,function(){var _329=dojo.map(_328,function(item){return (!item||dojo.isString(item))?item:tree.model.getIdentity(item);});var _32a=[];dojo.forEach(_329,function(id){_32a=_32a.concat(tree._itemNodesMap[id]||[]);});this.set("selectedNodes",_32a);}));},_setPathAttr:function(path){if(path.length){return this.set("paths",[path]);}else{return this.set("paths",[]);}},_setPathsAttr:function(_32b){var tree=this;return new dojo.DeferredList(dojo.map(_32b,function(path){var d=new dojo.Deferred();path=dojo.map(path,function(item){return dojo.isString(item)?item:tree.model.getIdentity(item);});if(path.length){tree._loadDeferred.addCallback(function(){_32c(path,[tree.rootNode],d);});}else{d.errback("Empty path");}return d;})).addCallback(_32d);function _32c(path,_32e,def){var _32f=path.shift();var _330=dojo.filter(_32e,function(node){return node.getIdentity()==_32f;})[0];if(!!_330){if(path.length){tree._expandNode(_330).addCallback(function(){_32c(path,_330.getChildren(),def);});}else{def.callback(_330);}}else{def.errback("Could not expand path at "+_32f);}};function _32d(_331){tree.set("selectedNodes",dojo.map(dojo.filter(_331,function(x){return x[0];}),function(x){return x[1];}));};},_setSelectedNodeAttr:function(node){this.set("selectedNodes",[node]);},_setSelectedNodesAttr:function(_332){this._loadDeferred.addCallback(dojo.hitch(this,function(){this.dndController.setSelection(_332);}));},mayHaveChildren:function(item){},getItemChildren:function(_333,_334){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_335){return (!item||this.model.mayHaveChildren(item))?(_335?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_336){},getRowClass:function(item,_337){},getIconStyle:function(item,_338){},getLabelStyle:function(item,_339){},getRowStyle:function(item,_33a){},getTooltip:function(item){return "";},_onKeyPress:function(e){if(e.altKey){return;}var dk=dojo.keys;var _33b=dijit.getEnclosingWidget(e.target);if(!_33b){return;}var key=e.charOrCode;if(typeof key=="string"&&key!=" "){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_33b,key:key.toLowerCase()});dojo.stopEvent(e);}}else{if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[dk.SPACE]=map[" "]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_33b,item:_33b.item,evt:e});dojo.stopEvent(e);}}},_onEnterKey:function(_33c){this._publish("execute",{item:_33c.item,node:_33c.node});this.dndController.userSelect(_33c.node,dojo.isCopyKey(_33c.evt),_33c.evt.shiftKey);this.onClick(_33c.item,_33c.node,_33c.evt);},_onDownArrow:function(_33d){var node=this._getNextNode(_33d.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_33e){var node=_33e.node;var _33f=node.getPreviousSibling();if(_33f){node=_33f;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _340=node.getChildren();node=_340[_340.length-1];}}else{var _341=node.getParent();if(!(!this.showRoot&&_341===this.rootNode)){node=_341;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_342){var node=_342.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_343){var node=_343.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _344=node.getParent();if(_344&&_344.isTreeNode&&!(!this.showRoot&&_344===this.rootNode)){this.focusNode(_344);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_345){var node=this.rootNode;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},multiCharSearchDuration:250,_onLetterKeyNav:function(_346){var cs=this._curSearch;if(cs){cs.pattern=cs.pattern+_346.key;clearTimeout(cs.timer);}else{cs=this._curSearch={pattern:_346.key,startNode:_346.node};}var self=this;cs.timer=setTimeout(function(){delete self._curSearch;},this.multiCharSearchDuration);var node=cs.startNode;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==cs.startNode&&(node.label.toLowerCase().substr(0,cs.pattern.length)!=cs.pattern));if(node&&node.isTreeNode){if(node!==cs.startNode){this.focusNode(node);}}},isExpandoNode:function(node,_347){return dojo.isDescendant(node,_347.expandoNode);},_onClick:function(_348,e){var _349=e.target,_34a=this.isExpandoNode(_349,_348);if((this.openOnClick&&_348.isExpandable)||_34a){if(_348.isExpandable){this._onExpandoClick({node:_348});}}else{this._publish("execute",{item:_348.item,node:_348,evt:e});this.onClick(_348.item,_348,e);this.focusNode(_348);}dojo.stopEvent(e);},_onDblClick:function(_34b,e){var _34c=e.target,_34d=(_34c==_34b.expandoNode||_34c==_34b.expandoNodeText);if((this.openOnDblClick&&_34b.isExpandable)||_34d){if(_34b.isExpandable){this._onExpandoClick({node:_34b});}}else{this._publish("execute",{item:_34b.item,node:_34b,evt:e});this.onDblClick(_34b.item,_34b,e);this.focusNode(_34b);}dojo.stopEvent(e);},_onExpandoClick:function(_34e){var node=_34e.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node,evt){},onDblClick:function(item,node,evt){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _34f=node.getNextSibling();if(_34f){return _34f;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node._expandNodeDeferred){delete node._expandNodeDeferred;}if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(node.item){this._state(node.item,false);this._saveState();}}},_expandNode:function(node,_350){if(node._expandNodeDeferred&&!_350){return node._expandNodeDeferred;}var _351=this.model,item=node.item,_352=this;switch(node.state){case "UNCHECKED":node.markProcessing();var def=(node._expandNodeDeferred=new dojo.Deferred());_351.getChildren(item,function(_353){node.unmarkProcessing();var scid=node.setChildItems(_353);var ed=_352._expandNode(node,true);scid.addCallback(function(){ed.addCallback(function(){def.callback();});});},function(err){console.error(_352,": error loading root children: ",err);});break;default:def=(node._expandNodeDeferred=node.expand());this.onOpen(node.item,node);if(item){this._state(item,true);this._saveState();}}return def;},focusNode:function(node){dijit.focus(node.labelNode);},_onNodeFocus:function(node){if(node&&node!=this.lastFocused){if(this.lastFocused&&!this.lastFocused._destroyed){this.lastFocused.setFocusable(false);}node.setFocusable(true);this.lastFocused=node;}},_onNodeMouseEnter:function(node){},_onNodeMouseLeave:function(node){},_onItemChange:function(item){var _354=this.model,_355=_354.getIdentity(item),_356=this._itemNodesMap[_355];if(_356){var _357=this.getLabel(item),_358=this.getTooltip(item);dojo.forEach(_356,function(node){node.set({item:item,label:_357,tooltip:_358});node._updateItemClasses(item);});}},_onItemChildrenChange:function(_359,_35a){var _35b=this.model,_35c=_35b.getIdentity(_359),_35d=this._itemNodesMap[_35c];if(_35d){dojo.forEach(_35d,function(_35e){_35e.setChildItems(_35a);});}},_onItemDelete:function(item){var _35f=this.model,_360=_35f.getIdentity(item),_361=this._itemNodesMap[_360];if(_361){dojo.forEach(_361,function(node){this.dndController.removeTreeNode(node);var _362=node.getParent();if(_362){_362.removeChild(node);}node.destroyRecursive();},this);delete this._itemNodesMap[_360];}},_initState:function(){if(this.persist){var _363=dojo.cookie(this.cookieName);this._openedItemIds={};if(_363){dojo.forEach(_363.split(","),function(item){this._openedItemIds[item]=true;},this);}}},_state:function(item,_364){if(!this.persist){return false;}var id=this.model.getIdentity(item);if(arguments.length===1){return this._openedItemIds[id];}if(_364){this._openedItemIds[id]=true;}else{delete this._openedItemIds[id];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}dojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this._curSearch){clearTimeout(this._curSearch.timer);delete this._curSearch;}if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!dojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},resize:function(_365){if(_365){dojo.marginBox(this.domNode,_365);}this._nodePixelIndent=dojo._getMarginSize(this.tree.indentDetector).w;if(this.tree.rootNode){this.tree.rootNode.set("indent",this.showRoot?0:-1);}},_createTreeNode:function(args){return new dijit._TreeNode(args);}});}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(_366){this._set("disabled",_366);dojo.attr(this.focusNode,"disabled",_366);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_366);}dijit.setWaiState(this.focusNode,"disabled",_366);if(_366){this._set("hovering",false);this._set("active",false);var _367="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_367)?_367:[_367],function(_368){var node=this[_368];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(_369){dojo.deprecated("setDisabled("+_369+") is deprecated. Use set('disabled',"+_369+") instead.","","2.0");this.set("disabled",_369);},_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(_36a){},_onChangeActive:false,_handleOnChange:function(_36b,_36c){if(this._lastValueReported==undefined&&(_36c===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_36b;}this._pendingOnChange=this._pendingOnChange||(typeof _36b!=typeof this._lastValueReported)||(this.compare(_36b,this._lastValueReported)!=0);if((this.intermediateChanges||_36c||_36c===undefined)&&this._pendingOnChange){this._lastValueReported=_36b;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_36b);}),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(_36d){dojo.deprecated("dijit.form._FormWidget:setValue("+_36d+") is deprecated.  Use set('value',"+_36d+") instead.","","2.0");this.set("value",_36d);},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 _36e=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_36e);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_36f){dojo.attr(this.focusNode,"readOnly",_36f);dijit.setWaiState(this.focusNode,"readonly",_36f);this._set("readOnly",_36f);},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(_370,_371){this._handleOnChange(_370,_371);},_handleOnChange:function(_372,_373){this._set("value",_372);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 _374=this.domNode;var _375=_374.parentNode;var _376=_374.firstChild||_374;var _377=_376.style.filter;var _378=this;while(_375&&_375.clientHeight==0){(function ping(){var _379=_378.connect(_375,"onscroll",function(e){_378.disconnect(_379);_376.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_376.style.filter=_377;},0);});})();_375=_375.parentNode;}}}});}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 _37a=this.dropDown,_37b=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&&!_37b){if(dojo.hasClass(t,"dijitPopup")){_37b=true;}else{t=t.parentNode;}}if(_37b){t=e.target;if(_37a.onItemClick){var _37c;while(t&&!(_37c=dijit.byNode(t))){t=t.parentNode;}if(_37c&&_37c.onClick&&_37c.getParent){_37c.getParent().onItemClick(_37c,e);}}return;}}}if(this._opened&&_37a.focus&&_37a.autoFocus!==false){window.setTimeout(dojo.hitch(_37a,"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 _37d={"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"+_37d+"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,_37e=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==" ")&&((_37e.tagName||"").toLowerCase()!=="input"||(_37e.type&&_37e.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 _37f=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_37f);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_380){_380();},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 _381=this.dropDown,_382=_381.domNode,_383=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_382.style.width){this._explicitDDWidth=true;}if(_382.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _384={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_384.width="";}if(!this._explicitDDHeight){_384.height="";}dojo.style(_382,_384);var _385=this.maxHeight;if(_385==-1){var _386=dojo.window.getBox(),_387=dojo.position(_383,false);_385=Math.floor(Math.max(_387.y,_386.h-(_387.y+_387.h)));}if(_381.startup&&!_381._started){_381.startup();}dijit.popup.moveOffScreen(_381);var mb=dojo._getMarginSize(_382);var _388=(_385&&mb.h>_385);dojo.style(_382,{overflowX:"hidden",overflowY:_388?"auto":"hidden"});if(_388){mb.h=_385;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_383.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_383.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_381.resize)){_381.resize(mb);}else{dojo.marginBox(_382,mb);}}var _389=dijit.popup.open({parent:this,popup:_381,around:_383,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 _389;},closeDropDown:function(_38a){if(this._opened){if(_38a){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}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 _38b=dijit.byNode(node);if(_38b&&typeof _38b._onSubmit=="function"){_38b._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_38c){if(_38c&&(!this.params||!("label" in this.params))){this.set("label",_38c.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(_38d){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_38d);},_setLabelAttr:function(_38e){this._set("label",_38e);this.containerNode.innerHTML=_38e;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _38f=this.iconClass||"dijitNoIcon",_390=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_390,_38f);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 _391=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_391[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _392=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_392);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _393=this.dropDown;return (!!_393&&(!_393.href||_393.isLoaded));},loadDropDown:function(){var _394=this.dropDown;if(!_394){return;}if(!this.isLoaded()){var _395=dojo.connect(_394,"onLoad",this,function(){dojo.disconnect(_395);this.openDropDown();});_394.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(_396){if(!this.disabled){dijit.focus(_396=="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(_397,_398){this._set("checked",_397);dojo.attr(this.focusNode||this.domNode,"checked",_397);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_397);this._handleOnChange(_397,_398);},setChecked:function(_399){dojo.deprecated("setChecked("+_399+") is deprecated. Use set('checked',"+_399+") instead.","","2.0");this.set("checked",_399);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}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(_39a){this._set("readOnly",_39a);dojo.attr(this.focusNode,"readOnly",_39a);dijit.setWaiState(this.focusNode,"readonly",_39a);},_setValueAttr:function(_39b,_39c){if(typeof _39b=="string"){this._set("value",_39b);dojo.attr(this.focusNode,"value",_39b);_39b=true;}if(this._created){this.set("checked",_39b,_39c);}},_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(_39d){},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(_39e){this.inherited(arguments);if(!this._created){return;}if(_39e){var _39f=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_3a0){if(_3a0.name==_39f.name&&_3a0!=_39f.focusNode&&_3a0.form==_39f.focusNode.form){var _3a1=dijit.getEnclosingWidget(_3a0);if(_3a1&&_3a1.checked){_3a1.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}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(_3a2,_3a3,_3a4){var _3a5;if(_3a2!==undefined){_3a5=this.filter(_3a2);if(typeof _3a4!="string"){if(_3a5!==null&&((typeof _3a5!="number")||!isNaN(_3a5))){_3a4=this.filter(this.format(_3a5,this.constraints));}else{_3a4="";}}}if(_3a4!=null&&_3a4!=undefined&&((typeof _3a4)!="number"||!isNaN(_3a4))&&this.textbox.value!=_3a4){this.textbox.value=_3a4;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_3a5,_3a3]);},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(_3a6){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_3a6);},_setDisplayedValueAttr:function(_3a7){if(_3a7===null||_3a7===undefined){_3a7="";}else{if(typeof _3a7!="string"){_3a7=String(_3a7);}}this.textbox.value=_3a7;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_3a8,_3a9){return ((_3a8==null||_3a8==undefined)?"":(_3a8.toString?_3a8.toString():_3a8));},parse:function(_3aa,_3ab){return _3aa;},_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 _3ac=this;setTimeout(function(){_3ac._handleOnChange(_3ac.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 _3ad=this.domNode.getElementsByTagName("INPUT");if(_3ad){for(var i=0;i<_3ad.length;i++){_3ad[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 _3ae;if(dojo.isIE){var _3af=dojo.doc.selection.createRange();var _3b0=_3af.parentElement();_3ae=_3b0==this.textbox&&_3af.text.length==0;}else{_3ae=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_3ae){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_3b1,_3b2,stop){var _3b3=dojo.global;var _3b4=dojo.doc;_3b1=dojo.byId(_3b1);if(isNaN(_3b2)){_3b2=0;}if(isNaN(stop)){stop=_3b1.value?_3b1.value.length:0;}dijit.focus(_3b1);if(_3b4["selection"]&&dojo.body()["createTextRange"]){if(_3b1.createTextRange){var r=_3b1.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_3b2);r.moveEnd("character",stop-_3b2);r.select();}}else{if(_3b3["getSelection"]){if(_3b1.setSelectionRange){_3b1.setSelectionRange(_3b2,stop);}}}};}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(_3b5,_3b6,_3b7,rtl){if(this.aroundNode&&this.aroundNode===_3b6){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_3b5;var pos=dijit.placeOnScreenAroundElement(this.domNode,_3b6,dijit.getPopupAroundAlignment((_3b7&&_3b7.length)?_3b7:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_3b6;},orient:function(node,_3b8,_3b9,_3ba,_3bb){this.connectorNode.style.top="";var _3bc=_3ba.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"}[_3b8+"-"+_3b9];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _3bd=Math.min((Math.max(_3bc,1)),size.w);var _3be=_3bd<size.w;this.domNode.style.width=_3bd+"px";if(_3be){this.containerNode.style.overflow="auto";var _3bf=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_3bf>_3bd){_3bf=_3bf+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_3bf+"px";}}if(_3b9.charAt(0)=="B"&&_3b8.charAt(0)=="B"){var mb=dojo.marginBox(node);var _3c0=this.connectorNode.offsetHeight;if(mb.h>_3ba.h){var _3c1=_3ba.h-(_3bb.h/2)-(_3c0/2);this.connectorNode.style.top=_3c1+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_3bb.h/2-_3c0/2,0),mb.h-_3c0)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_3bc);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_3c2){if(this._onDeck&&this._onDeck[1]==_3c2){this._onDeck=null;}else{if(this.aroundNode===_3c2){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(_3c3,_3c4,_3c5,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_3c3,_3c4,_3c5,rtl);};dijit.hideTooltip=function(_3c6){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_3c6);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_3c7){dojo.forEach(this._connections||[],function(_3c8){dojo.forEach(_3c8,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_3c7)?_3c7:(_3c7?[_3c7]:[]);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",_3c7);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 _3c9=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_3c9);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_3ca){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_3ca,this.position,!this.isLeftToRight());this._connectNode=_3ca;this.onShow(_3ca,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(_3cb,_3cc){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}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 _3cd=n.scrollLeft,_3ce=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_3cd!=n.scrollLeft||_3ce!=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,_3cf){this.node=dojo.byId(node);if(!_3cf){_3cf={};}this.handle=_3cf.handle?dojo.byId(_3cf.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_3cf.delay>0?_3cf.delay:0;this.skip=_3cf.skip;this.mover=_3cf.mover?_3cf.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(_3d0,node){return new dojo.dnd.Moveable(node,_3d0);},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(_3d1){dojo.publish("/dnd/move/start",[_3d1]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_3d2){dojo.publish("/dnd/move/stop",[_3d2]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_3d3,e){},onMove:function(_3d4,_3d5,e){this.onMoving(_3d4,_3d5);var s=_3d4.node.style;s.left=_3d5.l+"px";s.top=_3d5.t+"px";this.onMoved(_3d4,_3d5);},onMoving:function(_3d6,_3d7){},onMoved:function(_3d8,_3d9){}});}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(_3da,node){return new dojo.dnd.move.constrainedMoveable(node,_3da);},constructor:function(node,_3db){if(!_3db){_3db={};}this.constraints=_3db.constraints;this.within=_3db.within;},onFirstMove:function(_3dc){var c=this.constraintBox=this.constraints.call(this,_3dc);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_3dc.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_3dd,_3de){var c=this.constraintBox,s=_3dd.node.style;this.onMoving(_3dd,_3de);_3de.l=_3de.l<c.l?c.l:c.r<_3de.l?c.r:_3de.l;_3de.t=_3de.t<c.t?c.t:c.b<_3de.t?c.b:_3de.t;s.left=_3de.l+"px";s.top=_3de.t+"px";this.onMoved(_3dd,_3de);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_3df,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_3df);},constructor:function(node,_3e0){var box=_3e0&&_3e0.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_3e1,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_3e1);},constructor:function(node,_3e2){var area=_3e2&&_3e2.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["dojo.dnd.TimedMoveable"]){dojo._hasResource["dojo.dnd.TimedMoveable"]=true;dojo.provide("dojo.dnd.TimedMoveable");(function(){var _3e3=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_3e4){if(!_3e4){_3e4={};}if(_3e4.timeout&&typeof _3e4.timeout=="number"&&_3e4.timeout>=0){this.timeout=_3e4.timeout;}},markupFactory:function(_3e5,node){return new dojo.dnd.TimedMoveable(node,_3e5);},onMoveStop:function(_3e6){if(_3e6._timer){clearTimeout(_3e6._timer);_3e3.call(this,_3e6,_3e6._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_3e7,_3e8){_3e7._leftTop=_3e8;if(!_3e7._timer){var _3e9=this;_3e7._timer=setTimeout(function(){_3e7._timer=null;_3e3.call(_3e9,_3e7,_3e7._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(_3ea){if(_3ea.reset){_3ea.reset();}});},validate:function(){var _3eb=false;return dojo.every(dojo.map(this.getDescendants(),function(_3ec){_3ec._hasBeenBlurred=true;var _3ed=_3ec.disabled||!_3ec.validate||_3ec.validate();if(!_3ed&&!_3eb){dojo.window.scrollIntoView(_3ec.containerNode||_3ec.domNode);_3ec.focus();_3eb=true;}return _3ed;}),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(_3ee){if(!_3ee.name){return;}var _3ef=map[_3ee.name]||(map[_3ee.name]=[]);_3ef.push(_3ee);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _3f0=map[name],_3f1=dojo.getObject(name,false,obj);if(_3f1===undefined){continue;}if(!dojo.isArray(_3f1)){_3f1=[_3f1];}if(typeof _3f0[0].checked=="boolean"){dojo.forEach(_3f0,function(w,i){w.set("value",dojo.indexOf(_3f1,w.value)!=-1);});}else{if(_3f0[0].multiple){_3f0[0].set("value",_3f1);}else{dojo.forEach(_3f0,function(w,i){w.set("value",_3f1[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(_3f2){var name=_3f2.name;if(!name||_3f2.disabled){return;}var _3f3=_3f2.get("value");if(typeof _3f2.checked=="boolean"){if(/Radio/.test(_3f2.declaredClass)){if(_3f3!==false){dojo.setObject(name,_3f3,obj);}else{_3f3=dojo.getObject(name,false,obj);if(_3f3===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_3f3!==false){ary.push(_3f3);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_3f3);}else{dojo.setObject(name,[prev,_3f3],obj);}}else{dojo.setObject(name,_3f3,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_3f4){},_getState:function(){var _3f5=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_3f5,"Error")>=0?"Error":dojo.indexOf(_3f5,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_3f6){var _3f7=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_3f6?function(name,val){_3f7[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _3f8=(this._childConnections=[]),_3f9=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_3fa){dojo.forEach(["state","disabled"],function(attr){_3f9.push(_3fa.watch(attr,function(attr,_3fb,_3fc){_3f7.set("state",_3f7._getState());}));});});var _3fd=function(){if(_3f7._onChangeDelayTimer){clearTimeout(_3f7._onChangeDelayTimer);}_3f7._onChangeDelayTimer=setTimeout(function(){delete _3f7._onChangeDelayTimer;_3f7._set("value",_3f7.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_3fe){_3f8.push(_3f7.connect(_3fe,"onChange",_3fd));_3f9.push(_3fe.watch("disabled",_3fd));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_3ff,_400){this.onValidStateChange(_400=="");});},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(_401){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _402=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_402.lowest||_402.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_402.last||_402.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(_403){this.node.className="dijitDialogUnderlay "+_403;this._set("class",_403);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _404=dojo.window.getBox();os.top=_404.t+"px";os.left=_404.l+"px";is.width=_404.w+"px";is.height=_404.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.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 _405=this.getParent&&this.getParent();if(!(_405&&_405.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_406,_407){var node=this.domNode;if(_406){dojo.marginBox(node,_406);if(_406.t){node.style.top=_406.t+"px";}if(_406.l){node.style.left=_406.l+"px";}}var mb=_407||{};dojo.mixin(mb,_406||{});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(_408){var cls=this.baseClass+"-child "+(_408.baseClass?this.baseClass+"-"+_408.baseClass:"");dojo.addClass(_408.domNode,cls);},addChild:function(_409,_40a){this.inherited(arguments);if(this._started){this._setupChild(_409);}},removeChild:function(_40b){var cls=this.baseClass+"-child"+(_40b.baseClass?" "+this.baseClass+"-"+_40b.baseClass:"");dojo.removeClass(_40b.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 _40c=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_40d,dim){var _40e=_40d.resize?_40d.resize(dim):dojo.marginBox(_40d.domNode,dim);if(_40e){dojo.mixin(_40d,_40e);}else{dojo.mixin(_40d,dojo.marginBox(_40d.domNode));dojo.mixin(_40d,dim);}};dijit.layout.layoutChildren=function(_40f,dim,_410,_411,_412){dim=dojo.mixin({},dim);dojo.addClass(_40f,"dijitLayoutContainer");_410=dojo.filter(_410,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_410,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_410,function(_413){var elm=_413.domNode,pos=(_413.region||_413.layoutAlign);var _414=elm.style;_414.left=dim.l+"px";_414.top=dim.t+"px";_414.position="absolute";dojo.addClass(elm,"dijitAlign"+_40c(pos));var _415={};if(_411&&_411==_413.id){_415[_413.region=="top"||_413.region=="bottom"?"h":"w"]=_412;}if(pos=="top"||pos=="bottom"){_415.w=dim.w;size(_413,_415);dim.h-=_413.h;if(pos=="top"){dim.t+=_413.h;}else{_414.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_415.h=dim.h;size(_413,_415);dim.w-=_413.w;if(pos=="left"){dim.l+=_413.w;}else{_414.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_413,dim);}}}});};})();}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(_416){_416.startup();_416._started=true;});},startup:function(){if(this._started){return;}var _417=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_417&&_417.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 _418=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_419=_418.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_41a=dojo.filter(_419.map(dijit.byNode),function(_41b){return _41b&&_41b.domNode&&_41b.resize;});if(_418.length==_419.length&&_41a.length==1){this._singleChild=_41a[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_41c,_41d){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_41c,_41d);},_scheduleLayout:function(_41e,_41f){if(this._isShown()){this._layout(_41e,_41f);}else{this._needLayout=true;this._changeSize=_41e;this._resultSize=_41f;}},_layout:function(_420,_421){if(_420){dojo.marginBox(this.domNode,_420);}var cn=this.containerNode;if(cn===this.domNode){var mb=_421||{};dojo.mixin(mb,_420||{});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(_422){if(_422.resize){_422.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,_423=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_423&&_423.style&&(_423.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 _424=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 _425=cont.length,i=0;i<cont.length;i=_425==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(_426,node){dojo.mixin(this,_426||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_424++].join("_");}},set:function(cont,_427){if(undefined!==cont){this.content=cont;}if(_427){this._mixin(_427);}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 _428=this.onContentError(e);try{node.innerHTML=_428;}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 _429=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_429){cont=_429[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(_42a){var _42b={},key;for(key in _42a){if(key in _42b){continue;}this[key]=_42a[key];}},_parse:function(){var _42c=this.node;try{var _42d={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_42d[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_42c,noStart:!this.startup,inherited:_42d,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_42e){var _42f=this["on"+type+"Error"].call(this,err);if(_42e){console.error(_42e,err);}else{if(_42f){dojo.html._setNodeContent(this.node,_42f,true);}}}});dojo.html.set=function(node,cont,_430){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_430){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_430,{content:cont,node:node}));return op.set();}};})();}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(_431,_432,_433){_433=dojo.i18n.normalizeLocale(_433);var _434=_433.split("-");var _435=[_431,"nls",_432].join(".");var _436=dojo._loadedModules[_435];if(_436){var _437;for(var i=_434.length;i>0;i--){var loc=_434.slice(0,i).join("_");if(_436[loc]){_437=_436[loc];break;}}if(!_437){_437=_436.ROOT;}if(_437){var _438=function(){};_438.prototype=_437;return new _438();}}throw new Error("Bundle not found: "+_432+" in "+_431+" , locale="+_433);};dojo.i18n.normalizeLocale=function(_439){var _43a=(_439?_439:dojo.locale).toLowerCase();if(_43a=="root"){_43a="ROOT";}return _43a;};dojo.i18n._requireLocalization=function(_43b,_43c,_43d,_43e){var _43f=dojo.i18n.normalizeLocale(_43d);var _440=[_43b,"nls",_43c].join(".");var _441="";if(_43e){var _442=_43e.split(",");for(var i=0;i<_442.length;i++){if(_43f["indexOf"](_442[i])==0){if(_442[i].length>_441.length){_441=_442[i];}}}if(!_441){_441="ROOT";}}var _443=_43e?_441:_43f;var _444=dojo._loadedModules[_440];var _445=null;if(_444){if(dojo.config.localizationComplete&&_444._built){return;}var _446=_443.replace(/-/g,"_");var _447=_440+"."+_446;_445=dojo._loadedModules[_447];}if(!_445){_444=dojo["provide"](_440);var syms=dojo._getModuleSymbols(_43b);var _448=syms.concat("nls").join("/");var _449;dojo.i18n._searchLocalePath(_443,_43e,function(loc){var _44a=loc.replace(/-/g,"_");var _44b=_440+"."+_44a;var _44c=false;if(!dojo._loadedModules[_44b]){dojo["provide"](_44b);var _44d=[_448];if(loc!="ROOT"){_44d.push(loc);}_44d.push(_43c);var _44e=_44d.join("/")+".js";_44c=dojo._loadPath(_44e,null,function(hash){hash=hash.root||hash;var _44f=function(){};_44f.prototype=_449;_444[_44a]=new _44f();for(var j in hash){_444[_44a][j]=hash[j];}});}else{_44c=true;}if(_44c&&_444[_44a]){_449=_444[_44a];}else{_444[_44a]=_449;}if(_43e){return true;}});}if(_43e&&_43f!=_441){_444[_43f.replace(/-/g,"_")]=_444[_441.replace(/-/g,"_")];}};(function(){var _450=dojo.config.extraLocale;if(_450){if(!_450 instanceof Array){_450=[_450];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_451,_452){req(m,b,_451,_452);if(_451){return;}for(var i=0;i<_450.length;i++){req(m,b,_450[i],_452);}};}})();dojo.i18n._searchLocalePath=function(_453,down,_454){_453=dojo.i18n.normalizeLocale(_453);var _455=_453.split("-");var _456=[];for(var i=_455.length;i>0;i--){_456.push(_455.slice(0,i).join("-"));}_456.push(false);if(down){_456.reverse();}for(var j=_456.length-1;j>=0;j--){var loc=_456[j]||"ROOT";var stop=_454(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_457,_458){function _459(_45a){_45a=dojo.i18n.normalizeLocale(_45a);dojo.i18n._searchLocalePath(_45a,true,function(loc){for(var i=0;i<_458.length;i++){if(_458[i]==loc){dojo["require"](_457+"_"+loc);return true;}}return false;});};_459();var _45b=dojo.config.extraLocale||[];for(var i=0;i<_45b.length;i++){_459(_45b[i]);}};}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(_45c,_45d){if((!_45c||!_45c.template)&&_45d&&!("href" in _45c)&&!("content" in _45c)){var df=dojo.doc.createDocumentFragment();_45d=dojo.byId(_45d);while(_45d.firstChild){df.appendChild(_45d.firstChild);}_45c=dojo.delegate(_45c,{content:df});}this.inherited(arguments,[_45c,_45d]);},postMixInProperties:function(){this.inherited(arguments);var _45e=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_45e);this.errorMessage=dojo.string.substitute(this.errorMessage,_45e);},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(_45f){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 _460={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_460,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_460));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 _461=this._contentSetter;dojo.forEach(this.getChildren(),function(_462){if(_462.destroyRecursive){_462.destroyRecursive();}});if(_461){dojo.forEach(_461.parseResults,function(_463){if(_463.destroyRecursive&&_463.domNode&&_463.domNode.parentNode==dojo.body()){_463.destroyRecursive();}});delete _461.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_464){this.destroyDescendants();var _465=this._contentSetter;if(!(_465&&_465 instanceof dojo.html._ContentSetter)){_465=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _466=this.onContentError(e);try{this.containerNode.innerHTML=_466;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _467=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_465.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_467);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_464){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_468){this.onLoadDeferred.errback(err);var _469=this["on"+type+"Error"].call(this,err);if(_468){console.error(_468,err);}else{if(_469){this._setContent(_469,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_46a){},onDownloadError:function(_46b){return this.errorMessage;},onDownloadEnd:function(){}});}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(_46c){this.containerNode.title=_46c;this._set("title",_46c);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_46d,_46e){var newC="dijitTooltipAB"+(_46e.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_46e.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 _46f=(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(!_46f){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_46f){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 _470=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_470);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 _471=dojo.window.getBox();if(mb.w>=_471.w||mb.h>=_471.h){var w=Math.min(mb.w,Math.floor(_471.w*0.75)),h=Math.min(mb.h,Math.floor(_471.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,_472=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_472.l+(p?p.x:(_472.w-bb.w)/2)),t=Math.floor(_472.t+(p?p.y:(_472.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 _473=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_473){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_473){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 _474=dojo.window.getBox();if(!this._oldViewport||_474.h!=this._oldViewport.h||_474.w!=this._oldViewport.w){this.layout();this._oldViewport=_474;}}));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 _475;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_475.stop();delete this._fadeInDeferred;}));_475=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 _476;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_476.stop();delete this._fadeOutDeferred;}));_476=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(_477,_478){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_477);var _479=dijit._underlay;if(!_479||_479._destroyed){_479=dijit._underlay=new dijit.DialogUnderlay(_478);}else{_479.set(_477.underlayAttrs);}var _47a=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_479.show();}dojo.style(dijit._underlay.domNode,"zIndex",_47a-1);dojo.style(_477.domNode,"zIndex",_47a);ds.push({dialog:_477,underlayAttrs:_478,zIndex:_47a});},hide:function(_47b){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_47b){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(_47b.refocus){var _47c=pd.focus;if(!_47c||(pd.dialog&&!dojo.isDescendant(_47c.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_47c=pd.dialog._firstFocusItem;}try{dijit.focus(_47c);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_47b);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_47d){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_47d;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_47e){var cls=dojo.getObject(this.buttonWidget);var _47f=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_47f.focusNode,"selected","false");var _480=["title","showTitle","iconClass","closable","tooltip"],_481=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_480,function(_482,idx){return page.watch(_482,function(name,_483,_484){_47f.set(_481[idx],_484);});});this.pane2connects[page.id]=[this.connect(_47f,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_47f,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_47f,_47e);this.pane2button[page.id]=_47f;page.controlButton=_47f;if(!this._currentChild){_47f.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_47f.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2connects[page.id],dojo.hitch(this,"disconnect"));delete this.pane2connects[page.id];dojo.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _485=this.pane2button[page.id];if(_485){this.removeChild(_485);delete this.pane2button[page.id];_485.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _486=this.pane2button[this._currentChild.id];_486.set("checked",false);dijit.setWaiState(_486.focusNode,"selected","false");_486.focusNode.setAttribute("tabIndex","-1");}var _487=this.pane2button[page.id];_487.set("checked",true);dijit.setWaiState(_487.focusNode,"selected","true");this._currentChild=page;_487.focusNode.setAttribute("tabIndex","0");var _488=dijit.byId(this.containerId);dijit.setWaiState(_488.containerNode,"labelledby",_487.id);},onButtonClick:function(page){var _489=dijit.byId(this.containerId);_489.selectChild(page);},onCloseButtonClick:function(page){var _48a=dijit.byId(this.containerId);_48a.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_48b){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_48b=!_48b;}var _48c=this.getChildren();var _48d=dojo.indexOf(_48c,this.pane2button[this._currentChild.id]);var _48e=_48b?1:_48c.length-1;return _48c[(_48d+_48e)%_48c.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _48f=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_48f=false;}break;case k.PAGE_UP:if(e.ctrlKey){_48f=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_48f=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_48f=true;}break;case k.HOME:case k.END:var _490=this.getChildren();if(_490&&_490.length){_490[e.charOrCode==k.HOME?0:_490.length-1].onClick();}dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_48f!==null){this.adjacent(_48f).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);dijit.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _491=this.getChildren();dojo.forEach(_491,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_491,function(_492){if(_492.selected){this.selectedChildWidget=_492;}return _492.selected;},this);}var _493=this.selectedChildWidget;if(!_493&&_491[0]){_493=this.selectedChildWidget=_491[0];_493.selected=true;}dojo.publish(this.id+"-startup",[{children:_491,selected:_493}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _494=this.selectedChildWidget;if(_494){this._showChild(_494);}}this.inherited(arguments);},_setupChild:function(_495){this.inherited(arguments);dojo.replaceClass(_495.domNode,"dijitHidden","dijitVisible");_495.domNode.title="";},addChild:function(_496,_497){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_496,_497]);this.layout();if(!this.selectedChildWidget){this.selectChild(_496);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _498=this.getChildren();if(_498.length){this.selectChild(_498[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_499){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_499);this._set("selectedChildWidget",page);dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_49a,_49b,_49c){if(_49b){this._hideChild(_49b);}var d=this._showChild(_49a);if(_49a.resize){if(this.doLayout){_49a.resize(this._containerContentBox||this._contentBox);}else{_49a.resize();}}return d;},_adjacent:function(_49d){var _49e=this.getChildren();var _49f=dojo.indexOf(_49e,this.selectedChildWidget);_49f+=_49d?1:_49e.length-1;return _49e[_49f%_49e.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _4a0=this.getChildren();page.isFirstChild=(page==_4a0[0]);page.isLastChild=(page==_4a0[_4a0.length-1]);page._set("selected",true);dojo.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);dojo.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _4a1=page.onClose(this,page);if(_4a1){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_4a2){dojo.forEach(this.getChildren(),function(_4a3){this.removeChild(_4a3);_4a3.destroyRecursive(_4a2);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._TabContainerBase"]){dojo._hasResource["dijit.layout._TabContainerBase"]=true;dojo.provide("dijit.layout._TabContainerBase");dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _4a4=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_4a4;var _4a5=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_4a4},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_4a5);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_4a5[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _4a6=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_4a6});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}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(_4a7,_4a8){var _4a9=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_4a7,function(code){_4a9[code]=prev;});dojo.forEach(_4a8,function(code){_4a9[code]=next;});_4a9[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_4a9[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(_4aa,_4ab){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_4aa);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _4ac=this._getFirstFocusableChild();if(_4ac){this.focusChild(_4ac);}},focusLastChild:function(){var _4ad=this._getLastFocusableChild();if(_4ad){this.focusChild(_4ad);}},focusNext:function(){var _4ae=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_4ae);},focusPrev:function(){var _4af=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_4af,true);},focusChild:function(_4b0,last){if(this.focusedChild&&_4b0!==this.focusedChild){this._onChildBlur(this.focusedChild);}_4b0.set("tabIndex",this.tabIndex);_4b0.focus(last?"end":"start");this._set("focusedChild",_4b0);},_startupChild:function(_4b1){_4b1.set("tabIndex","-1");this.connect(_4b1,"_onFocus",function(){_4b1.set("tabIndex",this.tabIndex);});this.connect(_4b1,"_onBlur",function(){_4b1.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(_4b2){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_4b3,dir){if(_4b3){_4b3=this._getSiblingOfChild(_4b3,dir);}var _4b4=this.getChildren();for(var i=0;i<_4b4.length;i++){if(!_4b3){_4b3=_4b4[(dir>0)?0:(_4b4.length-1)];}if(_4b3.isFocusable()){return _4b3;}_4b3=this._getSiblingOfChild(_4b3,dir);}return null;}});}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(_4b5){if(_4b5&&!("label" in this.params)){this.set("label",_4b5.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _4b6=this.id+"_text";dojo.attr(this.containerNode,"id",_4b6);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_4b6+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_4b6);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(_4b7){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_4b7);},setLabel:function(_4b8){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_4b8);},setDisabled:function(_4b9){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_4b9);},_setDisabledAttr:function(_4ba){dijit.setWaiState(this.focusNode,"disabled",_4ba?"true":"false");this._set("disabled",_4ba);},_setAccelKeyAttr:function(_4bb){this.accelKeyNode.style.display=_4bb?"":"none";this.accelKeyNode.innerHTML=_4bb;dojo.attr(this.containerNode,"colSpan",_4bb?"1":"2");this._set("accelKey",_4bb);}});}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 _4bc=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_4bc[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(_4bd){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_4bd);dijit.setWaiState(this.domNode,"checked",_4bd);this._set("checked",_4bd);},onChange:function(_4be){},_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(_4bf){_4bf.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_4c0){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _4c1=this._getTopMenu();if(_4c1&&_4c1._isMenuBar){_4c1.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _4c2=this.currentPopup.parentMenu;if(_4c2.focusedChild){_4c2.focusedChild._setSelected(false);}_4c2.focusedChild=this.currentPopup.from_item;_4c2.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 _4c3=item.popup;if(_4c3){this._stopPendingCloseTimer(_4c3);_4c3._pendingClose_timer=setTimeout(function(){_4c3._pendingClose_timer=null;if(_4c3.parentMenu){_4c3.parentMenu.currentPopup=null;}dijit.popup.close(_4c3);},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(_4c4){if(_4c4._pendingClose_timer){clearTimeout(_4c4._pendingClose_timer);_4c4._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 _4c5=this.focusedChild;if(!_4c5){return;}var _4c6=_4c5.popup;if(_4c6.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_4c6.parentMenu=this;_4c6.from_item=_4c5;var self=this;dijit.popup.open({parent:this,popup:_4c6,around:_4c5.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(_4c5);self._cleanUp();_4c5._setSelected(true);self.focusedChild=_4c5;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_4c6;_4c6.connect(_4c6.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_4c6.focus){_4c6._focus_timer=setTimeout(dojo.hitch(_4c6,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 _4c7=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(_4c8){var win=dojo.window.get(this._iframeContentDocument(_4c8))||this._iframeContentDocument(_4c8)["__parent__"]||(_4c8.name&&dojo.doc.frames[_4c8.name])||null;return win;},_iframeContentDocument:function(_4c9){var doc=_4c9.contentDocument||(_4c9.contentWindow&&_4c9.contentWindow.document)||(_4c9.name&&dojo.doc.frames[_4c9.name]&&dojo.doc.frames[_4c9.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _4ca=node,win=this._iframeContentWindow(_4ca);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _4cb={node:node,iframe:_4ca};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_4cb));var _4cc=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_4ca,{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,_4ca);}})];});_4cb.connects=cn?_4cc(cn):[];if(_4ca){_4cb.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_4ca);cn=dojo.withGlobal(win,dojo.body);_4cb.connects=_4cc(cn);});if(_4ca.addEventListener){_4ca.addEventListener("load",_4cb.onloadHandler,false);}else{_4ca.attachEvent("onload",_4cb.onloadHandler);}}},unBindDomNode:function(_4cd){var node;try{node=dojo.byId(_4cd);}catch(e){return;}var _4ce="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_4ce)){var bid=dojo.attr(node,_4ce)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _4cf=b.iframe;if(_4cf){if(_4cf.removeEventListener){_4cf.removeEventListener("load",b.onloadHandler,false);}else{_4cf.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_4ce);delete this._bindings[bid];}},_scheduleOpen:function(_4d0,_4d1,_4d2){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_4d0,iframe:_4d1,coords:_4d2});}),1);}},_openMyself:function(args){var _4d3=args.target,_4d4=args.iframe,_4d5=args.coords;if(_4d5){if(_4d4){var od=_4d3.ownerDocument,ifc=dojo.position(_4d4,true),win=this._iframeContentWindow(_4d4),_4d6=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_4d4),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_4d4,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_4d4,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_4d4,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_4d4,cs.borderTopWidth):0);_4d5.x+=ifc.x+left-_4d6.x;_4d5.y+=ifc.y+top-_4d6.y;}}else{_4d5=dojo.position(_4d3,true);_4d5.x+=10;_4d5.y+=10;}var self=this;var _4d7=dijit.getFocus(this);function _4d8(){if(self.refocus){dijit.focus(_4d7);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_4d5.x,y:_4d5.y,onExecute:_4d8,onCancel:_4d8,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.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _4d9=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_4d9=Math.max(_4d9,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_4d9+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\n\t\t        ></span>\n\t\t\t</div>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this._set("closeButton",disp);dojo.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _4da=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_4da.itemClose);}var _4da=dojo.i18n.getLocalization("dijit","common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:_4da.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_4db){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){dojo._hasResource["dijit.layout.ScrollingTabController"]=true;dojo.provide("dijit.layout.ScrollingTabController");dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerMenuButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_menuBtn\" containerId=\"${containerId}\" iconClass=\"dijitTabStripMenuIcon\"\n\t\t\tdropDownPosition=\"below-alt, above-alt\"\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=\"false\">&#9660;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=\"false\">&#9664;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=\"false\">&#9654;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(n,"tabStrip-disabled");}dojo.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_4dc){this.inherited(arguments);dojo.forEach(["label","iconClass"],function(attr){this.pane2watches[page.id].push(this.pane2button[page.id].watch(attr,dojo.hitch(this,function(name,_4dd,_4de){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_4df){var _4e0=this.pane2button[page.id];if(this._selectedTab===_4e0.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=dojo._getMarginSize(btn).w;return true;}else{dojo.style(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _4e1=this.getChildren();if(_4e1.length){var _4e2=_4e1[this.isLeftToRight()?0:_4e1.length-1].domNode,_4e3=_4e1[this.isLeftToRight()?_4e1.length-1:0].domNode;return _4e3.offsetLeft+dojo.style(_4e3,"width")-_4e2.offsetLeft;}else{return 0;}},_enableBtn:function(_4e4){var _4e5=this._getTabsWidth();_4e4=_4e4||dojo.style(this.scrollNode,"width");return _4e5>0&&_4e4<_4e5;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);var _4e6=this._enableBtn(this._contentBox.w);this._buttons.style("display",_4e6?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){var sl=(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit){return val;}else{var _4e7=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_4e7);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _4e8=this.getChildren(),_4e9=dojo.style(this.scrollNode,"width"),_4ea=dojo.style(this.containerNode,"width"),_4eb=_4ea-_4e9,_4ec=this._getTabsWidth();if(_4e8.length&&_4ec>_4e9){return {min:this.isLeftToRight()?0:_4e8[_4e8.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_4e8[_4e8.length-1].domNode.offsetLeft+dojo.style(_4e8[_4e8.length-1].domNode,"width"))-_4e9:_4eb};}else{var _4ed=this.isLeftToRight()?0:_4eb;return {min:_4ed,max:_4ed};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_4ee=dojo.style(this.scrollNode,"width"),_4ef=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_4ee/2;pos=Math.min(Math.max(pos,_4ef.min),_4ef.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _4f0=this._getScrollBounds();x=Math.min(Math.max(x,_4f0.min),_4f0.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new dojo._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!dojo.hasClass(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_4f1,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _4f2=dojo.style(this.scrollNode,"width");var d=(_4f2*0.75)*_4f1;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_4f3){var _4f4=this._getScrollBounds();this._leftBtn.set("disabled",_4f3<=_4f4.min);this._rightBtn.set("disabled",_4f3>=_4f4.max);}});dojo.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div role=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img role=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:"",isFocusable:function(){return false;}});dojo.declare("dijit.layout._ScrollingTabControllerButton",[dijit.form.Button,dijit.layout._ScrollingTabControllerButtonMixin]);dojo.declare("dijit.layout._ScrollingTabControllerMenuButton",[dijit.form.Button,dijit._HasDropDown,dijit.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_4f5){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _4f6=dijit.byId(this.containerId);dojo.forEach(_4f6.getChildren(),function(page){var _4f7=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_4f6.selectChild(page);}});this.dropDown.addChild(_4f7);},this);_4f5();},closeDropDown:function(_4f8){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_4f9){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_4fa=dojo.getObject(this.controllerWidget);return new _4fa({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_4f9);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}dojo.i18n._preloadLocalizations("dojo.nls.vclPrivs",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
