/*
	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){}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){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]){}}},_getValueOrValues:function(item,_120){var _121=undefined;if(this.hasAttribute(item,_120)){var _122=this.getValues(item,_120);if(_122.length==1){_121=_122[0];}else{_121=_122;}}return _121;},_flatten:function(_123){if(this.isItem(_123)){var item=_123;var _124=this.getIdentity(item);var _125={_reference:_124};return _125;}else{if(typeof _123==="object"){for(var type in this._datatypeMap){var _126=this._datatypeMap[type];if(dojo.isObject(_126)&&!dojo.isFunction(_126)){if(_123 instanceof _126.type){if(!_126.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_126.serialize(_123)};}}else{if(_123 instanceof _126){return {_type:type,_value:_123.toString()};}}}}return _123;}},_getNewFileContentString:function(){var _127={};var _128=this._getIdentifierAttribute();if(_128!==Number){_127.identifier=_128;}if(this._labelAttr){_127.label=this._labelAttr;}_127.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _129={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _12a=key;var _12b=this.getValues(item,_12a);if(_12b.length==1){_129[_12a]=this._flatten(_12b[0]);}else{var _12c=[];for(var j=0;j<_12b.length;++j){_12c.push(this._flatten(_12b[j]));_129[_12a]=_12c;}}}}_127.items.push(_129);}}var _12d=true;return dojo.toJson(_127,_12d);},_isEmpty:function(_12e){var _12f=true;if(dojo.isObject(_12e)){var i;for(i in _12e){_12f=false;break;}}else{if(dojo.isArray(_12e)){if(_12e.length>0){_12f=false;}}}return _12f;},save:function(_130){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _131=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_130&&_130.onComplete){var _132=_130.scope||dojo.global;_130.onComplete.call(_132);}};var _133=function(err){self._saveInProgress=false;if(_130&&_130.onError){var _134=_130.scope||dojo.global;_130.onError.call(_134,err);}};if(this._saveEverything){var _135=this._getNewFileContentString();this._saveEverything(_131,_133,_135);}if(this._saveCustom){this._saveCustom(_131,_133);}if(!this._saveEverything&&!this._saveCustom){_131();}},revert:function(){this._assert(!this._saveInProgress);var _136;for(_136 in this._pending._modifiedItems){var _137=this._pending._modifiedItems[_136];var _138=null;if(this._itemsByIdentity){_138=this._itemsByIdentity[_136];}else{_138=this._arrayOfAllItems[_136];}_137[this._storeRefPropName]=this;for(key in _138){delete _138[key];}dojo.mixin(_138,_137);}var _139;for(_136 in this._pending._deletedItems){_139=this._pending._deletedItems[_136];_139[this._storeRefPropName]=this;var _13a=_139[this._itemNumPropName];if(_139["backup_"+this._reverseRefMap]){_139[this._reverseRefMap]=_139["backup_"+this._reverseRefMap];delete _139["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_13a]=_139;if(this._itemsByIdentity){this._itemsByIdentity[_136]=_139;}if(_139[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_139);}}for(_136 in this._pending._deletedItems){_139=this._pending._deletedItems[_136];if(_139["backupRefs_"+this._reverseRefMap]){dojo.forEach(_139["backupRefs_"+this._reverseRefMap],function(_13b){var _13c;if(this._itemsByIdentity){_13c=this._itemsByIdentity[_13b.id];}else{_13c=this._arrayOfAllItems[_13b.id];}this._addReferenceToMap(_13c,_139,_13b.attr);},this);delete _139["backupRefs_"+this._reverseRefMap];}}for(_136 in this._pending._newItems){var _13d=this._pending._newItems[_136];_13d[this._storeRefPropName]=null;this._arrayOfAllItems[_13d[this._itemNumPropName]]=null;if(_13d[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_13d);}if(this._itemsByIdentity){delete this._itemsByIdentity[_136];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _13e=this.getIdentity(item);return new Boolean(this._pending._newItems[_13e]||this._pending._modifiedItems[_13e]||this._pending._deletedItems[_13e]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_13f,_140,_141){},onNew:function(_142,_143){},onDelete:function(_144){},close:function(_145){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _146=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _147=dojo._docScroll();return {w:_146.clientWidth,h:_146.clientHeight,l:_147.x,t:_147.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(node,pos){node=dojo.byId(node);var body,doc=node.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){body=dojo.body();var _148=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},body,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_148,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_148.removeChild(div);body.removeChild(_148);}if(!("position_fixed_support" in dojo.window)){body=dojo.body();var _149=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},body,"last"),_14a=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_149,"last");dojo.window.position_fixed_support=dojo.position(_14a).x!=dojo.position(_149).x;_149.removeChild(_14a);body.removeChild(_149);}try{body=doc.body||doc.getElementsByTagName("body")[0];var html=doc.documentElement||body.parentNode,isIE=dojo.isIE,isWK=dojo.isWebKit;if(node==body||node==html){return;}if(!(dojo.isMozilla||isIE||isWK||dojo.isOpera)&&("scrollIntoView" in node)){node.scrollIntoView(false);return;}var _14b=doc.compatMode=="BackCompat",_14c=Math.min(body.clientWidth||html.clientWidth,html.clientWidth||body.clientWidth),_14d=Math.min(body.clientHeight||html.clientHeight,html.clientHeight||body.clientHeight),_14e=(isWK||_14b)?body:html,_14f=pos||dojo.position(node),el=node.parentNode,_150=function(el){return (isIE<=6||(isIE==7&&_14b))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_150(node)){return;}while(el){if(el==body){el=_14e;}var _151=dojo.position(el),_152=_150(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_14e){_151.w=_14c;_151.h=_14d;if(_14e==html&&isIE&&rtl){_151.x+=_14e.offsetWidth-_151.w;}if(_151.x<0||!isIE||isIE>=9){_151.x=0;}if(_151.y<0||!isIE||isIE>=9){_151.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_151.w-=pb.w;_151.h-=pb.h;_151.x+=pb.l;_151.y+=pb.t;var _153=el.clientWidth,_154=_151.w-_153;if(_153>0&&_154>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_151.x+=_154;}_151.w=_153;}_153=el.clientHeight;_154=_151.h-_153;if(_153>0&&_154>0){_151.h=_153;}}if(_152){if(_151.y<0){_151.h+=_151.y;_151.y=0;}if(_151.x<0){_151.w+=_151.x;_151.x=0;}if(_151.y+_151.h>_14d){_151.h=_14d-_151.y;}if(_151.x+_151.w>_14c){_151.w=_14c-_151.x;}}var l=_14f.x-_151.x,t=_14f.y-_151.y,r=l+_14f.w-_151.w,bot=t+_14f.h-_151.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_14e||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((isIE==8&&!_14b)||isIE>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_14f.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_14e||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_14f.y-=s;}el=(el!=_14e)&&!_152&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);node.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_155){if(this._hash[_155.id]){throw new Error("Tried to register widget with id=="+_155.id+" but that id is already registered");}this._hash[_155.id]=_155;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(func,_156){_156=_156||dojo.global;var i=0,id;for(id in this._hash){func.call(_156,this._hash[id],i++,this._hash);}return this;},filter:function(_157,_158){_158=_158||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_157.call(_158,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_159;for(id in this._hash){_159=this._hash[id];if(_159.declaredClass==cls){res.add(_159);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(func,_15a){return dojo.map(this.toArray(),func,_15a);},every:function(func,_15b){_15b=_15b||dojo.global;var x=0,i;for(i in this._hash){if(!func.call(_15b,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(func,_15c){_15c=_15c||dojo.global;var x=0,i;for(i in this._hash){if(func.call(_15c,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var hash=dijit.registry._hash,attr=dojo.attr,_15d=dojo.hasAttr,_15e=dojo.style;dijit.byId=function(id){return typeof id=="string"?hash[id]:id;};var _15f={};dijit.getUniqueId=function(_160){var id;do{id=_160+"_"+(_160 in _15f?++_15f[_160]:_15f[_160]=0);}while(hash[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(root){var _161=[];function _162(root){for(var node=root.firstChild;node;node=node.nextSibling){if(node.nodeType==1){var _163=node.getAttribute("widgetId");if(_163){var _164=hash[_163];if(_164){_161.push(_164);}}else{_162(node);}}}};_162(root);return _161;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_165){if(!_165._destroyed){if(_165.destroyRecursive){_165.destroyRecursive();}else{if(_165.destroy){_165.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(node){return hash[node.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(node){while(node){var id=node.getAttribute&&node.getAttribute("widgetId");if(id){return hash[id];}node=node.parentNode;}return null;};var _166=(dijit._isElementShown=function(elem){var s=_15e(elem);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(attr(elem,"type")!="hidden");});dijit.hasDefaultTabStop=function(elem){switch(elem.nodeName.toLowerCase()){case "a":return _15d(elem,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var body;try{var _167=elem.contentDocument;if("designMode" in _167&&_167.designMode=="on"){return true;}body=_167.body;}catch(e1){try{body=elem.contentWindow.document.body;}catch(e2){return false;}}return body.contentEditable=="true"||(body.firstChild&&body.firstChild.contentEditable=="true");default:return elem.contentEditable=="true";}};var _168=(dijit.isTabNavigable=function(elem){if(attr(elem,"disabled")){return false;}else{if(_15d(elem,"tabIndex")){return attr(elem,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(elem);}}});dijit._getTabNavigable=function(root){var _169,last,_16a,_16b,_16c,_16d,_16e={};function _16f(node){return node&&node.tagName.toLowerCase()=="input"&&node.type&&node.type.toLowerCase()=="radio"&&node.name&&node.name.toLowerCase();};var _170=function(_171){dojo.query("> *",_171).forEach(function(_172){if((dojo.isIE<=9&&_172.scopeName!=="HTML")||!_166(_172)){return;}if(_168(_172)){var _173=attr(_172,"tabIndex");if(!_15d(_172,"tabIndex")||_173==0){if(!_169){_169=_172;}last=_172;}else{if(_173>0){if(!_16a||_173<_16b){_16b=_173;_16a=_172;}if(!_16c||_173>=_16d){_16d=_173;_16c=_172;}}}var rn=_16f(_172);if(dojo.attr(_172,"checked")&&rn){_16e[rn]=_172;}}if(_172.nodeName.toUpperCase()!="SELECT"){_170(_172);}});};if(_166(root)){_170(root);}function rs(node){return _16e[_16f(node)]||node;};return {first:rs(_169),last:rs(last),lowest:rs(_16a),highest:rs(_16c)};};dijit.getFirstInTabbingOrder=function(root){var _174=dijit._getTabNavigable(dojo.byId(root));return _174.lowest?_174.lowest:_174.first;};dijit.getLastInTabbingOrder=function(root){var _175=dijit._getTabNavigable(dojo.byId(root));return _175.last?_175.last:_175.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_176){if(_176){dojo.mixin(this,_176);}},get:function(name){return this[name];},set:function(name,_177){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _178=this[name];this[name]=_177;if(this._watchCallbacks){this._watchCallbacks(name,_178,_177);}return this;},watch:function(name,_179){var _17a=this._watchCallbacks;if(!_17a){var self=this;_17a=this._watchCallbacks=function(name,_17b,_17c,_17d){var _17e=function(_17f){if(_17f){_17f=_17f.slice();for(var i=0,l=_17f.length;i<l;i++){try{_17f[i].call(self,name,_17b,_17c);}catch(e){console.error(e);}}}};_17e(_17a["_"+name]);if(!_17d){_17e(_17a["*"]);}};}if(!_179&&typeof name==="function"){_179=name;name="*";}else{name="_"+name;}var _180=_17a[name];if(typeof _180!=="object"){_180=_17a[name]=[];}_180.push(_179);return {unwatch:function(){_180.splice(dojo.indexOf(_180,_179),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){function _181(a,b){return a===b||(a!==a&&b!==b);};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(_182,_183){this.create(_182,_183);},create:function(_184,_185){this.srcNodeRef=dojo.byId(_185);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_184){this.params=_184;dojo._mixin(this,_184);}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 _186=this.srcNodeRef;if(_186&&_186.parentNode&&this.domNode!==_186){_186.parentNode.replaceChild(this.domNode,_186);}}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 _187=function(attr,_188){if((_188.params&&attr in _188.params)||_188[attr]){_188.set(attr,_188[attr]);}};for(var attr in this.attributeMap){_187(attr,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_187(a,this);}},this);},_getSetterAttributes:function(){var ctor=this.constructor;if(!ctor._setterAttrs){var r=(ctor._setterAttrs=[]),_189,_18a=ctor.prototype;for(var _18b in _18a){if(dojo.isFunction(_18a[_18b])&&(_189=_18b.match(/^_set([a-zA-Z]*)Attr$/))&&_189[1]){r.push(_189[1].charAt(0).toLowerCase()+_189[1].substr(1));}}}return ctor._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _18c=this.baseClass.split(" ");if(!this.isLeftToRight()){_18c=_18c.concat(dojo.map(_18c,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_18c);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_18d){this._beingDestroyed=true;this.destroyDescendants(_18d);this.destroy(_18d);},destroy:function(_18e){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_18f){dfe(_18f,d.disconnect);});dfe(this._subscribes,function(_190){dun(_190);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_18e);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_191){if(this.bgIframe){this.bgIframe.destroy(_191);delete this.bgIframe;}if(this.domNode){if(_191){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_191){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_192){dojo.forEach(this.getChildren(),function(_193){if(_193.destroyRecursive){_193.destroyRecursive(_192);}});},uninitialize:function(){return false;},_setClassAttr:function(_194){var _195=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_195,_194,this["class"]);this._set("class",_194);},_setStyleAttr:function(_196){var _197=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_196)){dojo.style(_197,_196);}else{if(_197.style.cssText){_197.style.cssText+="; "+_196;}else{_197.style.cssText=_196;}}this._set("style",_196);},_attrToDom:function(attr,_198){var _199=this.attributeMap[attr];dojo.forEach(dojo.isArray(_199)?_199:[_199],function(_19a){var _19b=this[_19a.node||_19a||"domNode"];var type=_19a.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_198)){_198=dojo.hitch(this,_198);}var _19c=_19a.attribute?_19a.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_19b,_19c,_198);break;case "innerText":_19b.innerHTML="";_19b.appendChild(dojo.doc.createTextNode(_198));break;case "innerHTML":_19b.innerHTML=_198;break;case "class":dojo.replaceClass(_19b,_198,this[attr]);break;}},this);},get:function(name){var _19d=this._getAttrNames(name);return this[_19d.g]?this[_19d.g]():this[name];},set:function(name,_19e){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _19f=this._getAttrNames(name);if(this[_19f.s]){var _1a0=this[_19f.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_19e);}this._set(name,_19e);}return _1a0||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,_1a1){var _1a2=this[name];this[name]=_1a1;if(this._watchCallbacks&&this._created&&!_181(_1a1,_1a2)){this._watchCallbacks(name,_1a2,_1a1);}},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,_1a3,_1a4){var _1a5=[dojo._connect(obj,_1a3,this,_1a4)];this._connects.push(_1a5);return _1a5;},disconnect:function(_1a6){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1a6){dojo.forEach(_1a6,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_1a7,_1a8){var _1a9=dojo.subscribe(_1a7,this,_1a8);this._subscribes.push(_1a9);return _1a9;},unsubscribe:function(_1aa){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_1aa){dojo.unsubscribe(_1aa);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_1ab,_1ac){if(_1ab.declaredClass&&_1ab.addChild){_1ab.addChild(this,_1ac);}else{dojo.place(this.domNode,_1ab,_1ac);}return this;},defer:function(fcn,_1ad){var _1ae=setTimeout(dojo.hitch(this,function(){_1ae=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_1ad||0);return {remove:function(){if(_1ae){clearTimeout(_1ae);_1ae=null;}return null;}};}});})();}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_1af){var _1b0=dojo.doc,mark=_1af.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(_1b0.selection&&mark){var rg;if(mark.pRange){rg=mark.range;}else{if(dojo.isArray(mark)){rg=_1b0.body.createControlRange();dojo.forEach(mark,function(n){rg.addElement(n);});}else{rg=_1b0.body.createTextRange();rg.moveToBookmark(mark);}}rg.select();}}}},getFocus:function(menu,_1b1){var node=!dijit._curFocus||(menu&&dojo.isDescendant(dijit._curFocus,menu.domNode))?dijit._prevFocus:dijit._curFocus;return {node:node,bookmark:(node==dijit._curFocus)&&dojo.withGlobal(_1b1||dojo.global,dijit.getBookmark),openedForWindow:_1b1};},focus:function(_1b2){if(!_1b2){return;}var node="node" in _1b2?_1b2.node:_1b2,_1b3=_1b2.bookmark,_1b4=_1b2.openedForWindow,_1b5=_1b3?_1b3.isCollapsed:false;if(node){var _1b6=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_1b6&&_1b6.focus){try{_1b6.focus();}catch(e){}}dijit._onFocusNode(node);}if(_1b3&&dojo.withGlobal(_1b4||dojo.global,dijit.isCollapsed)&&!_1b5){if(_1b4){_1b4.focus();}try{dojo.withGlobal(_1b4||dojo.global,dijit.moveToBookmark,null,[_1b3]);}catch(e2){}}},_activeStack:[],registerIframe:function(_1b7){return dijit.registerWin(_1b7.contentWindow,_1b7);},unregisterIframe:function(_1b8){dijit.unregisterWin(_1b8);},registerWin:function(_1b9,_1ba){var _1bb=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_1ba||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_1b9.document.documentElement:_1b9.document;if(doc){if(dojo.isIE){_1b9.document.body.attachEvent("onmousedown",_1bb);var _1bc=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_1ba||evt.srcElement);}else{dijit._onTouchNode(_1ba||evt.srcElement);}};doc.attachEvent("onactivate",_1bc);var _1bd=function(evt){dijit._onBlurNode(_1ba||evt.srcElement);};doc.attachEvent("ondeactivate",_1bd);return function(){_1b9.document.detachEvent("onmousedown",_1bb);doc.detachEvent("onactivate",_1bc);doc.detachEvent("ondeactivate",_1bd);doc=null;};}else{doc.body.addEventListener("mousedown",_1bb,true);var _1be=function(evt){dijit._onFocusNode(_1ba||evt.target);};doc.addEventListener("focus",_1be,true);var _1bf=function(evt){dijit._onBlurNode(_1ba||evt.target);};doc.addEventListener("blur",_1bf,true);return function(){doc.body.removeEventListener("mousedown",_1bb,true);doc.removeEventListener("focus",_1be,true);doc.removeEventListener("blur",_1bf,true);doc=null;};}}},unregisterWin:function(_1c0){_1c0&&_1c0();},_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 _1c1=[];try{while(node){var _1c2=dojo.attr(node,"dijitPopupParent");if(_1c2){node=dijit.byId(_1c2).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"),_1c3=id&&dijit.byId(id);if(_1c3&&!(by=="mouse"&&_1c3.get("disabled"))){_1c1.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_1c1,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(_1c4,by){var _1c5=dijit._activeStack;dijit._activeStack=_1c4;for(var _1c6=0;_1c6<Math.min(_1c5.length,_1c4.length);_1c6++){if(_1c5[_1c6]!=_1c4[_1c6]){break;}}var _1c7;for(var i=_1c5.length-1;i>=_1c6;i--){_1c7=dijit.byId(_1c5[i]);if(_1c7){_1c7._focused=false;_1c7.set("focused",false);_1c7._hasBeenBlurred=true;if(_1c7._onBlur){_1c7._onBlur(by);}dojo.publish("widgetBlur",[_1c7,by]);}}for(i=_1c6;i<_1c4.length;i++){_1c7=dijit.byId(_1c4[i]);if(_1c7){_1c7._focused=true;_1c7.set("focused",true);if(_1c7._onFocus){_1c7._onFocus(by);}dojo.publish("widgetFocus",[_1c7,by]);}}}});dojo.addOnLoad(function(){var _1c8=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_1c8);_1c8=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_1c9){this.pairs=[];this.returnWrappers=_1c9||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_1ca,wrap,_1cb,_1cc){this.pairs[((_1cc)?"unshift":"push")]([name,_1ca,wrap,_1cb]);},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,_1cd,_1ce){var _1cf=dojo.map(_1cd,function(_1d0){var c={corner:_1d0,pos:{x:pos.x,y:pos.y}};if(_1ce){c.pos.x+=_1d0.charAt(1)=="L"?_1ce.x:-_1ce.x;c.pos.y+=_1d0.charAt(0)=="T"?_1ce.y:-_1ce.y;}return c;});return dijit._place(node,_1cf);};dijit._place=function(node,_1d1,_1d2,_1d3){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_1d1,function(_1d4){var _1d5=_1d4.corner;var pos=_1d4.pos;var _1d6=0;var _1d7={w:_1d5.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_1d5.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_1d2){var res=_1d2(node,_1d4.aroundCorner,_1d5,_1d7,_1d3);_1d6=typeof res=="undefined"?0:res;}var _1d8=node.style;var _1d9=_1d8.display;var _1da=_1d8.visibility;_1d8.visibility="hidden";_1d8.display="";var mb=dojo.marginBox(node);_1d8.display=_1d9;_1d8.visibility=_1da;var _1db=Math.max(view.l,_1d5.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_1dc=Math.max(view.t,_1d5.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_1d5.charAt(1)=="L"?(_1db+mb.w):pos.x),endY=Math.min(view.t+view.h,_1d5.charAt(0)=="T"?(_1dc+mb.h):pos.y),_1dd=endX-_1db,_1de=endY-_1dc;_1d6+=(mb.w-_1dd)+(mb.h-_1de);if(best==null||_1d6<best.overflow){best={corner:_1d5,aroundCorner:_1d4.aroundCorner,x:_1db,y:_1dc,w:_1dd,h:_1de,overflow:_1d6,spaceAvailable:_1d7};}return !_1d6;});if(best.overflow&&_1d2){_1d2(node,best.aroundCorner,best.corner,best.spaceAvailable,_1d3);}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,_1df,_1e0,_1e1){_1df=dojo.byId(_1df);var _1e2=dojo.position(_1df,true);return dijit._placeOnScreenAroundRect(node,_1e2.x,_1e2.y,_1e2.w,_1e2.h,_1e0,_1e1);};dijit.placeOnScreenAroundRectangle=function(node,_1e3,_1e4,_1e5){return dijit._placeOnScreenAroundRect(node,_1e3.x,_1e3.y,_1e3.width,_1e3.height,_1e4,_1e5);};dijit._placeOnScreenAroundRect=function(node,x,y,_1e6,_1e7,_1e8,_1e9){var _1ea=[];for(var _1eb in _1e8){_1ea.push({aroundCorner:_1eb,corner:_1e8[_1eb],pos:{x:x+(_1eb.charAt(1)=="L"?0:_1e6),y:y+(_1eb.charAt(0)=="T"?0:_1e7)}});}return dijit._place(node,_1ea,_1e9,{w:_1e6,h:_1e7});};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,_1ec,_1ed,_1ee){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_1ef,_1f0){var _1f1={};dojo.forEach(_1ef,function(pos){switch(pos){case "after":_1f1[_1f0?"BR":"BL"]=_1f0?"BL":"BR";break;case "before":_1f1[_1f0?"BL":"BR"]=_1f0?"BR":"BL";break;case "below-alt":_1f0=!_1f0;case "below":_1f1[_1f0?"BL":"BR"]=_1f0?"TL":"TR";_1f1[_1f0?"BR":"BL"]=_1f0?"TR":"TL";break;case "above-alt":_1f0=!_1f0;case "above":default:_1f1[_1f0?"TL":"TR"]=_1f0?"BL":"BR";_1f1[_1f0?"TR":"TL"]=_1f0?"BR":"BL";break;}});return _1f1;};}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(_1f2){var node=_1f2.domNode||_1f2,_1f3=_1f2.declaredClass?_1f2._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_1f3){_1f3=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_1f3.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_1f2.declaredClass){_1f2._popupWrapper=_1f3;dojo.connect(_1f2,"destroy",function(){dojo.destroy(_1f3);delete _1f2._popupWrapper;});}}return _1f3;},moveOffScreen:function(_1f4){var _1f5=this._createWrapper(_1f4);dojo.style(_1f5,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_1f6){var _1f7=this._createWrapper(_1f6);dojo.style(_1f7,"display","none");},getTopPopup:function(){var _1f8=this._stack;for(var pi=_1f8.length-1;pi>0&&_1f8[pi].parent===_1f8[pi-1].widget;pi--){}return _1f8[pi];},open:function(args){var _1f9=this._stack,_1fa=args.popup,_1fb=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"}),_1fc=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_1f9.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_1f9[_1f9.length-1].widget.domNode))){dijit.popup.close(_1f9[_1f9.length-1].widget);}var _1fd=this._createWrapper(_1fa);dojo.attr(_1fd,{id:id,style:{zIndex:this._beginZIndex+_1f9.length},"class":"dijitPopup "+(_1fa.baseClass||_1fa["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_1fa.bgIframe){_1fa.bgIframe=new dijit.BackgroundIframe(_1fd);}}var best=_1fc?dijit.placeOnScreenAroundElement(_1fd,_1fc,_1fb,_1fa.orient?dojo.hitch(_1fa,"orient"):null):dijit.placeOnScreen(_1fd,args,_1fb=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_1fd.style.display="";_1fd.style.visibility="visible";_1fa.domNode.style.visibility="visible";var _1fe=[];_1fe.push(dojo.connect(_1fd,"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 _1ff=this.getTopPopup();if(_1ff&&_1ff.onCancel){_1ff.onCancel();}}}}));if(_1fa.onCancel){_1fe.push(dojo.connect(_1fa,"onCancel",args.onCancel));}_1fe.push(dojo.connect(_1fa,_1fa.onExecute?"onExecute":"onChange",this,function(){var _200=this.getTopPopup();if(_200&&_200.onExecute){_200.onExecute();}}));_1f9.push({widget:_1fa,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_1fe});if(_1fa.onOpen){_1fa.onOpen(best);}return best;},close:function(_201){var _202=this._stack;while((_201&&dojo.some(_202,function(elem){return elem.widget==_201;}))||(!_201&&_202.length)){var top=_202.pop(),_203=top.widget,_204=top.onClose;if(_203.onClose){_203.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_203&&_203.domNode){this.hide(_203);}if(_204){_204();}}}};dijit._frames=new function(){var _205=[];this.pop=function(){var _206;if(_205.length){_206=_205.pop();_206.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\");'>";_206=dojo.doc.createElement(html);}else{_206=dojo.create("iframe");_206.src="javascript:\"\"";_206.className="dijitBackgroundIframe";dojo.style(_206,"opacity",0.1);}_206.tabIndex=-1;dijit.setWaiRole(_206,"presentation");}return _206;};this.push=function(_207){_207.style.display="none";_205.push(_207);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _208=(this.iframe=dijit._frames.pop());node.appendChild(_208);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_208,{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,_209=d.isOpera,maj=Math.floor,ff=d.isFF,_20a=d.boxModel.replace(/-/,""),_20b={dj_quirks:d.isQuirks,dj_opera:_209,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_20b["dj_ie"]=true;_20b["dj_ie"+maj(ie)]=true;_20b["dj_iequirks"]=d.isQuirks;}if(ff){_20b["dj_ff"+maj(ff)]=true;}_20b["dj_"+_20a]=true;var _20c="";for(var clz in _20b){if(_20b[clz]){_20c+=clz+" ";}}html.className=d.trim(html.className+" "+_20c);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _20d="dj_rtl dijitRtl "+_20c.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_20d);}});})();}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,_20e,node,_20f,obj,_210,_211,_212){if(obj!=this._obj){this.stop();this._initialDelay=_211||500;this._subsequentDelay=_210||0.9;this._minDelay=_212||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_20e,_20f);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,_213,_214,_215,_216,_217,_218){if(_213.keyCode){_213.charOrCode=_213.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_213.charCode){_213.charOrCode=String.fromCharCode(_213.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==_213.charOrCode&&(_213.ctrlKey===undefined||_213.ctrlKey==evt.ctrlKey)&&(_213.altKey===undefined||_213.altKey==evt.altKey)&&(_213.metaKey===undefined||_213.metaKey==(evt.metaKey||false))&&(_213.shiftKey===undefined||_213.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_214,node,_215,_213,_216,_217,_218);}else{if(dijit.typematic._obj==_213){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_213){dijit.typematic.stop();}})];},addMouseListener:function(node,_219,_21a,_21b,_21c,_21d){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_219,node,_21a,node,_21b,_21c,_21d);}),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,_219,node,_21a,node,_21b,_21c,_21d);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_21e,_21f,_220,_221,_222,_223,_224,_225){return this.addKeyListener(_21f,_220,_221,_222,_223,_224,_225).concat(this.addMouseListener(_21e,_221,_222,_223,_224,_225));}};}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 _226=cs.backgroundImage;var _227=(cs.borderTopColor==cs.borderRightColor)||(_226!=null&&(_226=="none"||_226=="url(invalid-url:)"));dojo[_227?"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 _228=this.getWaiRole(elem);return role?(_228.indexOf(role)>-1):(_228.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 _229=dojo.attr(elem,"role");if(!_229){return;}if(role){var t=dojo.trim((" "+_229+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_22a){return elem.hasAttribute?elem.hasAttribute("aria-"+_22a):!!elem.getAttribute("aria-"+_22a);},getWaiState:function(elem,_22b){return elem.getAttribute("aria-"+_22b)||"";},setWaiState:function(elem,_22c,_22d){elem.setAttribute("aria-"+_22c,_22d);},removeWaiState:function(elem,_22e){elem.removeAttribute("aria-"+_22e);}});}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(_22f,_230){if(_22f&&dojo.isFunction(_22f._onConnect)){_22f._onConnect(_230);}});dijit._connectOnUseEventHandler=function(_231){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _232=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_232);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_232);});})();}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(_233,_234){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(_235){if(_235 in this._deferredConnects){var _236=this[this._deferredConnects[_235]||"domNode"];this.connect(_236,_235.toLowerCase(),_235);delete this._deferredConnects[_235];}},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,_237){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_237);},attr:function(name,_238){if(dojo.config.isDebug){var _239=arguments.callee._ach||(arguments.callee._ach={}),_23a=(arguments.callee.caller||"unknown caller").toString();if(!_239[_23a]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_23a,"","2.0");_239[_23a]=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,_23b,_23c){var d=dojo,dc=d._connect,_23d=this.inherited(arguments,[obj,_23b=="ondijitclick"?"onclick":_23b,_23c]);if(_23b=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_23c);_23d.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 _23d;},_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(_23e,map,_23f,_240){_240=_240||dojo.global;_23f=_23f?dojo.hitch(_240,_23f):function(v){return v;};return _23e.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_241,key,_242){var _243=dojo.getObject(key,false,map);if(_242){_243=dojo.getObject(_242,false,_240).call(_240,_243,key);}return _23f(_243,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(_244,url,_245){if(typeof _244=="string"){var _246=dojo.moduleUrl(_244,url);}else{_246=_244;_245=url;}var key=_246.toString();var val=_245;if(_245!=undefined&&!dojo.isString(_245)){val=("value" in _245?_245.value:undefined);}var _247=_245&&_245.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_247?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_247?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 _248=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_248){val=_248[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 _249=this.declaredClass,_24a=this;return dojo.string.substitute(tmpl,this,function(_24b,key){if(key.charAt(0)=="!"){_24b=dojo.getObject(key.substr(1),false,_24a);}if(typeof _24b=="undefined"){throw new Error(_249+" template:"+key);}if(_24b==null){return "";}return key.charAt(0)=="!"?_24b:_24b.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _24c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_24c)){node=dojo._toDom(this._stringRepl(_24c));if(node.nodeType!=1){throw new Error("Invalid template: "+_24c);}}else{node=_24c.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(_24d){var dest=this.containerNode;if(_24d&&dest){while(_24d.hasChildNodes()){dest.appendChild(_24d.firstChild);}}},_attachTemplateNodes:function(_24e,_24f){_24f=_24f||function(n,p){return n.getAttribute(p);};var _250=dojo.isArray(_24e)?_24e:(_24e.all||_24e.getElementsByTagName("*"));var x=dojo.isArray(_24e)?0:-1;for(;x<_250.length;x++){var _251=(x==-1)?_24e:_250[x];if(this.widgetsInTemplate&&(_24f(_251,"dojoType")||_24f(_251,"data-dojo-type"))){continue;}var _252=_24f(_251,"dojoAttachPoint")||_24f(_251,"data-dojo-attach-point");if(_252){var _253,_254=_252.split(/\s*,\s*/);while((_253=_254.shift())){if(dojo.isArray(this[_253])){this[_253].push(_251);}else{this[_253]=_251;}this._attachPoints.push(_253);}}var _255=_24f(_251,"dojoAttachEvent")||_24f(_251,"data-dojo-attach-event");if(_255){var _256,_257=_255.split(/\s*,\s*/);var trim=dojo.trim;while((_256=_257.shift())){if(_256){var _258=null;if(_256.indexOf(":")!=-1){var _259=_256.split(":");_256=trim(_259[0]);_258=trim(_259[1]);}else{_256=trim(_256);}if(!_258){_258=_256;}this._attachEvents.push(this.connect(_251,_256,_258));}}}var role=_24f(_251,"waiRole");if(role){dijit.setWaiRole(_251,role);}var _25a=_24f(_251,"waiState");if(_25a){dojo.forEach(_25a.split(/\s*,\s*/),function(_25b){if(_25b.indexOf("-")!=-1){var pair=_25b.split("-");dijit.setWaiState(_251,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(_25c){delete this[_25c];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_25d,_25e,_25f){var _260=dijit._Templated._templateCache;var key=_25e||_25d;var _261=_260[key];if(_261){try{if(!_261.ownerDocument||_261.ownerDocument==dojo.doc){return _261;}}catch(e){}dojo.destroy(_261);}if(!_25e){_25e=dojo.cache(_25d,{sanitize:true});}_25e=dojo.string.trim(_25e);if(_25f||_25e.match(/\$\{([^\}]+)\}/g)){return (_260[key]=_25e);}else{var node=dojo._toDom(_25e);if(node.nodeType!=1){throw new Error("Invalid template: "+_25e);}return (_260[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _262=dijit._Templated._templateCache;for(var key in _262){var _263=_262[key];if(typeof _263=="object"){dojo.destroy(_263);}delete _262[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_264){if(!this.disabled){switch(_264.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 _265=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_265);});break;}}},_setStateClass:function(){var _266=this.baseClass.split(" ");function _267(_268){_266=_266.concat(dojo.map(_266,function(c){return c+_268;}),"dijit"+_268);};if(!this.isLeftToRight()){_267("Rtl");}if(this.checked){_267("Checked");}if(this.state){_267(this.state);}if(this.selected){_267("Selected");}if(this.disabled){_267("Disabled");}else{if(this.readOnly){_267("ReadOnly");}else{if(this.active){_267("Active");}else{if(this.hovering){_267("Hover");}}}}if(this._focused){_267("Focused");}var tn=this.stateNode||this.domNode,_269={};dojo.forEach(tn.className.split(" "),function(c){_269[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _269[c];});}dojo.forEach(_266,function(c){_269[c]=true;});var _26a=[];for(var c in _269){_26a.push(c);}tn.className=_26a.join(" ");this._stateClasses=_266;},_trackMouseState:function(node,_26b){var _26c=false,_26d=false,_26e=false;var self=this,cn=dojo.hitch(this,"connect",node);function _26f(){var _270=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_26b+"Hover",_26c&&!_26d&&!_270);dojo.toggleClass(node,_26b+"Active",_26d&&!_270);dojo.toggleClass(node,_26b+"Focused",_26e&&!_270);};cn("onmouseenter",function(){_26c=true;_26f();});cn("onmouseleave",function(){_26c=false;_26d=false;_26f();});cn("onmousedown",function(){_26d=true;_26f();});cn("onmouseup",function(){_26d=false;_26f();});cn("onfocus",function(){_26e=true;_26f();});cn("onblur",function(){_26e=false;_26f();});this.watch("disabled",_26f);this.watch("readOnly",_26f);}});}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(_271){this._set("disabled",_271);dojo.attr(this.focusNode,"disabled",_271);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_271);}dijit.setWaiState(this.focusNode,"disabled",_271);if(_271){this._set("hovering",false);this._set("active",false);var _272="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_272)?_272:[_272],function(_273){var node=this[_273];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(_274){dojo.deprecated("setDisabled("+_274+") is deprecated. Use set('disabled',"+_274+") instead.","","2.0");this.set("disabled",_274);},_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(_275){},_onChangeActive:false,_handleOnChange:function(_276,_277){if(this._lastValueReported==undefined&&(_277===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_276;}this._pendingOnChange=this._pendingOnChange||(typeof _276!=typeof this._lastValueReported)||(this.compare(_276,this._lastValueReported)!=0);if((this.intermediateChanges||_277||_277===undefined)&&this._pendingOnChange){this._lastValueReported=_276;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_276);}),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(_278){dojo.deprecated("dijit.form._FormWidget:setValue("+_278+") is deprecated.  Use set('value',"+_278+") instead.","","2.0");this.set("value",_278);},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 _279=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_279);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_27a){dojo.attr(this.focusNode,"readOnly",_27a);dijit.setWaiState(this.focusNode,"readonly",_27a);this._set("readOnly",_27a);},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(_27b,_27c){this._handleOnChange(_27b,_27c);},_handleOnChange:function(_27d,_27e){this._set("value",_27d);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 _27f=this.domNode;var _280=_27f.parentNode;var _281=_27f.firstChild||_27f;var _282=_281.style.filter;var _283=this;while(_280&&_280.clientHeight==0){(function ping(){var _284=_283.connect(_280,"onscroll",function(e){_283.disconnect(_284);_281.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_281.style.filter=_282;},0);});})();_280=_280.parentNode;}}}});}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_285){var _286=_285,opts=this.options||[],l=opts.length;if(_286===undefined){return opts;}if(dojo.isArray(_286)){return dojo.map(_286,"return this.getOptions(item);",this);}if(dojo.isObject(_285)){if(!dojo.some(this.options,function(o,idx){if(o===_286||(o.value&&o.value===_286.value)){_286=idx;return true;}return false;})){_286=-1;}}if(typeof _286=="string"){for(var i=0;i<l;i++){if(opts[i].value===_286){_286=i;break;}}}if(typeof _286=="number"&&_286>=0&&_286<l){return this.options[_286];}return null;},addOption:function(_287){if(!dojo.isArray(_287)){_287=[_287];}dojo.forEach(_287,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_288){if(!dojo.isArray(_288)){_288=[_288];}var _289=this.getOptions(_288);dojo.forEach(_289,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_28a){if(!dojo.isArray(_28a)){_28a=[_28a];}dojo.forEach(_28a,function(i){var _28b=this.getOptions(i),k;if(_28b){for(k in i){_28b[k]=i[k];}}},this);this._loadChildren();},setStore:function(_28c,_28d,_28e){var _28f=this.store;_28e=_28e||{};if(_28f!==_28c){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_28c&&_28c.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_28c,"onNew",this,"_onNewItem"),dojo.connect(_28c,"onDelete",this,"_onDeleteItem"),dojo.connect(_28c,"onSet",this,"_onSetItem")];}this._set("store",_28c);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_28c){this._loadingStore=true;_28c.fetch(dojo.delegate(_28e,{onComplete:function(_290,opts){if(this.sortByLabel&&!_28e.sort&&_290.length){_290.sort(dojo.data.util.sorter.createSortFunction([{attribute:_28c.getLabelAttributes(_290[0])[0]}],_28c));}if(_28e.onFetch){_290=_28e.onFetch.call(this,_290,opts);}dojo.forEach(_290,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_28d);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_290);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _28f;},_setValueAttr:function(_291,_292){if(this._loadingStore){this._pendingValue=_291;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_291)){_291=[_291];}dojo.forEach(_291,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_291[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_291=dojo.filter(_291,function(i){return i&&i.value;});if(!this.multiple&&(!_291[0]||!_291[0].value)&&opts.length){_291[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_291,function(v){return v.value===i.value;});});var val=dojo.map(_291,function(i){return i.value;}),disp=dojo.map(_291,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_292);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_293){_293.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_294){var _295=dojo.some(val,function(v){return _294.option&&(v===_294.option.value);});dojo.toggleClass(_294.domNode,this.baseClass+"SelectedOption",_295);dijit.setWaiState(_294.domNode,"selected",_295);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_296){if(!_296||!_296.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _297=this.store;this.removeOption(_297.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _298=this.store,_299=_298.getLabel(item),_29a=(_299?_298.getIdentity(item):null);return {value:_29a,label:_299,item:item};},_addOptionForItem:function(item){var _29b=this.store;if(!_29b.isItemLoaded(item)){_29b.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _29c=this._getOptionObjForItem(item);this.addOption(_29c);},constructor:function(_29d){this._oValue=(_29d||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _29e=this.store,_29f={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_29f[i]=this[i];}delete this[i];},this);if(_29e&&_29e.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_29e,this._oValue,_29f);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_2a0){},_removeOptionItem:function(_2a1){},_setDisplay:function(_2a2){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_2a3){},onSetStore:function(){}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _2a4=this.dropDown,_2a5=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&&!_2a5){if(dojo.hasClass(t,"dijitPopup")){_2a5=true;}else{t=t.parentNode;}}if(_2a5){t=e.target;if(_2a4.onItemClick){var _2a6;while(t&&!(_2a6=dijit.byNode(t))){t=t.parentNode;}if(_2a6&&_2a6.onClick&&_2a6.getParent){_2a6.getParent().onItemClick(_2a6,e);}}return;}}}if(this._opened&&_2a4.focus&&_2a4.autoFocus!==false){window.setTimeout(dojo.hitch(_2a4,"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 _2a7={"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"+_2a7+"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,_2a8=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==" ")&&((_2a8.tagName||"").toLowerCase()!=="input"||(_2a8.type&&_2a8.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 _2a9=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_2a9);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_2aa){_2aa();},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 _2ab=this.dropDown,_2ac=_2ab.domNode,_2ad=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_2ac.style.width){this._explicitDDWidth=true;}if(_2ac.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _2ae={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_2ae.width="";}if(!this._explicitDDHeight){_2ae.height="";}dojo.style(_2ac,_2ae);var _2af=this.maxHeight;if(_2af==-1){var _2b0=dojo.window.getBox(),_2b1=dojo.position(_2ad,false);_2af=Math.floor(Math.max(_2b1.y,_2b0.h-(_2b1.y+_2b1.h)));}if(_2ab.startup&&!_2ab._started){_2ab.startup();}dijit.popup.moveOffScreen(_2ab);var mb=dojo._getMarginSize(_2ac);var _2b2=(_2af&&mb.h>_2af);dojo.style(_2ac,{overflowX:"hidden",overflowY:_2b2?"auto":"hidden"});if(_2b2){mb.h=_2af;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_2ad.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_2ad.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_2ab.resize)){_2ab.resize(mb);}else{dojo.marginBox(_2ac,mb);}}var _2b3=dijit.popup.open({parent:this,popup:_2ab,around:_2ad,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 _2b3;},closeDropDown:function(_2b4){if(this._opened){if(_2b4){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_2b5,_2b6){var _2b7=this.containerNode;if(_2b6&&typeof _2b6=="number"){var _2b8=this.getChildren();if(_2b8&&_2b8.length>=_2b6){_2b7=_2b8[_2b6-1].domNode;_2b6="after";}}dojo.place(_2b5.domNode,_2b7,_2b6);if(this._started&&!_2b5._started){_2b5.startup();}},removeChild:function(_2b9){if(typeof _2b9=="number"){_2b9=this.getChildren()[_2b9];}if(_2b9){var node=_2b9.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_2ba){dojo.forEach(this.getChildren(),function(_2bb){_2bb.destroyRecursive(_2ba);});},_getSiblingOfChild:function(_2bc,dir){var node=_2bc.domNode,_2bd=(dir>0?"nextSibling":"previousSibling");do{node=node[_2bd];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_2be){return dojo.indexOf(this.getChildren(),_2be);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2bf){_2bf.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_2c0,_2c1){var _2c2=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_2c0,function(code){_2c2[code]=prev;});dojo.forEach(_2c1,function(code){_2c2[code]=next;});_2c2[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_2c2[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(_2c3,_2c4){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_2c3);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _2c5=this._getFirstFocusableChild();if(_2c5){this.focusChild(_2c5);}},focusLastChild:function(){var _2c6=this._getLastFocusableChild();if(_2c6){this.focusChild(_2c6);}},focusNext:function(){var _2c7=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_2c7);},focusPrev:function(){var _2c8=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_2c8,true);},focusChild:function(_2c9,last){if(this.focusedChild&&_2c9!==this.focusedChild){this._onChildBlur(this.focusedChild);}_2c9.set("tabIndex",this.tabIndex);_2c9.focus(last?"end":"start");this._set("focusedChild",_2c9);},_startupChild:function(_2ca){_2ca.set("tabIndex","-1");this.connect(_2ca,"_onFocus",function(){_2ca.set("tabIndex",this.tabIndex);});this.connect(_2ca,"_onBlur",function(){_2ca.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(_2cb){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_2cc,dir){if(_2cc){_2cc=this._getSiblingOfChild(_2cc,dir);}var _2cd=this.getChildren();for(var i=0;i<_2cd.length;i++){if(!_2cc){_2cc=_2cd[(dir>0)?0:(_2cd.length-1)];}if(_2cc.isFocusable()){return _2cc;}_2cc=this._getSiblingOfChild(_2cc,dir);}return null;}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _2ce=dijit.getEnclosingWidget(this.domNode.parentNode);return _2ce&&_2ce.isContainer?_2ce:null;},_getSibling:function(_2cf){var node=this.domNode;do{node=node[_2cf+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_2d0){if(_2d0&&!("label" in this.params)){this.set("label",_2d0.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _2d1=this.id+"_text";dojo.attr(this.containerNode,"id",_2d1);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_2d1+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_2d1);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(_2d2){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_2d2);},setLabel:function(_2d3){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_2d3);},setDisabled:function(_2d4){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_2d4);},_setDisabledAttr:function(_2d5){dijit.setWaiState(this.focusNode,"disabled",_2d5?"true":"false");this._set("disabled",_2d5);},_setAccelKeyAttr:function(_2d6){this.accelKeyNode.style.display=_2d6?"":"none";this.accelKeyNode.innerHTML=_2d6;dojo.attr(this.containerNode,"colSpan",_2d6?"1":"2");this._set("accelKey",_2d6);}});}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 _2d7=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_2d7[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(_2d8){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_2d8);dijit.setWaiState(this.domNode,"checked",_2d8);this._set("checked",_2d8);},onChange:function(_2d9){},_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(_2da){_2da.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_2db){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _2dc=this._getTopMenu();if(_2dc&&_2dc._isMenuBar){_2dc.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _2dd=this.currentPopup.parentMenu;if(_2dd.focusedChild){_2dd.focusedChild._setSelected(false);}_2dd.focusedChild=this.currentPopup.from_item;_2dd.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 _2de=item.popup;if(_2de){this._stopPendingCloseTimer(_2de);_2de._pendingClose_timer=setTimeout(function(){_2de._pendingClose_timer=null;if(_2de.parentMenu){_2de.parentMenu.currentPopup=null;}dijit.popup.close(_2de);},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(_2df){if(_2df._pendingClose_timer){clearTimeout(_2df._pendingClose_timer);_2df._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 _2e0=this.focusedChild;if(!_2e0){return;}var _2e1=_2e0.popup;if(_2e1.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_2e1.parentMenu=this;_2e1.from_item=_2e0;var self=this;dijit.popup.open({parent:this,popup:_2e1,around:_2e0.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(_2e0);self._cleanUp();_2e0._setSelected(true);self.focusedChild=_2e0;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_2e1;_2e1.connect(_2e1.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_2e1.focus){_2e1._focus_timer=setTimeout(dojo.hitch(_2e1,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 _2e2=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(_2e3){var win=dojo.window.get(this._iframeContentDocument(_2e3))||this._iframeContentDocument(_2e3)["__parent__"]||(_2e3.name&&dojo.doc.frames[_2e3.name])||null;return win;},_iframeContentDocument:function(_2e4){var doc=_2e4.contentDocument||(_2e4.contentWindow&&_2e4.contentWindow.document)||(_2e4.name&&dojo.doc.frames[_2e4.name]&&dojo.doc.frames[_2e4.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _2e5=node,win=this._iframeContentWindow(_2e5);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _2e6={node:node,iframe:_2e5};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_2e6));var _2e7=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_2e5,{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,_2e5);}})];});_2e6.connects=cn?_2e7(cn):[];if(_2e5){_2e6.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_2e5);cn=dojo.withGlobal(win,dojo.body);_2e6.connects=_2e7(cn);});if(_2e5.addEventListener){_2e5.addEventListener("load",_2e6.onloadHandler,false);}else{_2e5.attachEvent("onload",_2e6.onloadHandler);}}},unBindDomNode:function(_2e8){var node;try{node=dojo.byId(_2e8);}catch(e){return;}var _2e9="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_2e9)){var bid=dojo.attr(node,_2e9)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _2ea=b.iframe;if(_2ea){if(_2ea.removeEventListener){_2ea.removeEventListener("load",b.onloadHandler,false);}else{_2ea.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_2e9);delete this._bindings[bid];}},_scheduleOpen:function(_2eb,_2ec,_2ed){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_2eb,iframe:_2ec,coords:_2ed});}),1);}},_openMyself:function(args){var _2ee=args.target,_2ef=args.iframe,_2f0=args.coords;if(_2f0){if(_2ef){var od=_2ee.ownerDocument,ifc=dojo.position(_2ef,true),win=this._iframeContentWindow(_2ef),_2f1=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_2ef),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_2ef,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_2ef,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_2ef,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_2ef,cs.borderTopWidth):0);_2f0.x+=ifc.x+left-_2f1.x;_2f0.y+=ifc.y+top-_2f1.y;}}else{_2f0=dojo.position(_2ee,true);_2f0.x+=10;_2f0.y+=10;}var self=this;var _2f2=dijit.getFocus(this);function _2f3(){if(self.refocus){dijit.focus(_2f2);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_2f0.x,y:_2f0.y,onExecute:_2f3,onCancel:_2f3,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_2f4,_2f5,_2f6,rtl){if(this.aroundNode&&this.aroundNode===_2f5){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_2f4;var pos=dijit.placeOnScreenAroundElement(this.domNode,_2f5,dijit.getPopupAroundAlignment((_2f6&&_2f6.length)?_2f6:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_2f5;},orient:function(node,_2f7,_2f8,_2f9,_2fa){this.connectorNode.style.top="";var _2fb=_2f9.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"}[_2f7+"-"+_2f8];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _2fc=Math.min((Math.max(_2fb,1)),size.w);var _2fd=_2fc<size.w;this.domNode.style.width=_2fc+"px";if(_2fd){this.containerNode.style.overflow="auto";var _2fe=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_2fe>_2fc){_2fe=_2fe+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_2fe+"px";}}if(_2f8.charAt(0)=="B"&&_2f7.charAt(0)=="B"){var mb=dojo.marginBox(node);var _2ff=this.connectorNode.offsetHeight;if(mb.h>_2f9.h){var _300=_2f9.h-(_2fa.h/2)-(_2ff/2);this.connectorNode.style.top=_300+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_2fa.h/2-_2ff/2,0),mb.h-_2ff)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_2fb);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_301){if(this._onDeck&&this._onDeck[1]==_301){this._onDeck=null;}else{if(this.aroundNode===_301){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(_302,_303,_304,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_302,_303,_304,rtl);};dijit.hideTooltip=function(_305){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_305);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_306){dojo.forEach(this._connections||[],function(_307){dojo.forEach(_307,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_306)?_306:(_306?[_306]:[]);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",_306);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 _308=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_308);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_309){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_309,this.position,!this.isLeftToRight());this._connectNode=_309;this.onShow(_309,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(_30a,_30b){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_30c,_30d,_30e){_30e=dojo.i18n.normalizeLocale(_30e);var _30f=_30e.split("-");var _310=[_30c,"nls",_30d].join(".");var _311=dojo._loadedModules[_310];if(_311){var _312;for(var i=_30f.length;i>0;i--){var loc=_30f.slice(0,i).join("_");if(_311[loc]){_312=_311[loc];break;}}if(!_312){_312=_311.ROOT;}if(_312){var _313=function(){};_313.prototype=_312;return new _313();}}throw new Error("Bundle not found: "+_30d+" in "+_30c+" , locale="+_30e);};dojo.i18n.normalizeLocale=function(_314){var _315=(_314?_314:dojo.locale).toLowerCase();if(_315=="root"){_315="ROOT";}return _315;};dojo.i18n._requireLocalization=function(_316,_317,_318,_319){var _31a=dojo.i18n.normalizeLocale(_318);var _31b=[_316,"nls",_317].join(".");var _31c="";if(_319){var _31d=_319.split(",");for(var i=0;i<_31d.length;i++){if(_31a["indexOf"](_31d[i])==0){if(_31d[i].length>_31c.length){_31c=_31d[i];}}}if(!_31c){_31c="ROOT";}}var _31e=_319?_31c:_31a;var _31f=dojo._loadedModules[_31b];var _320=null;if(_31f){if(dojo.config.localizationComplete&&_31f._built){return;}var _321=_31e.replace(/-/g,"_");var _322=_31b+"."+_321;_320=dojo._loadedModules[_322];}if(!_320){_31f=dojo["provide"](_31b);var syms=dojo._getModuleSymbols(_316);var _323=syms.concat("nls").join("/");var _324;dojo.i18n._searchLocalePath(_31e,_319,function(loc){var _325=loc.replace(/-/g,"_");var _326=_31b+"."+_325;var _327=false;if(!dojo._loadedModules[_326]){dojo["provide"](_326);var _328=[_323];if(loc!="ROOT"){_328.push(loc);}_328.push(_317);var _329=_328.join("/")+".js";_327=dojo._loadPath(_329,null,function(hash){hash=hash.root||hash;var _32a=function(){};_32a.prototype=_324;_31f[_325]=new _32a();for(var j in hash){_31f[_325][j]=hash[j];}});}else{_327=true;}if(_327&&_31f[_325]){_324=_31f[_325];}else{_31f[_325]=_324;}if(_319){return true;}});}if(_319&&_31a!=_31c){_31f[_31a.replace(/-/g,"_")]=_31f[_31c.replace(/-/g,"_")];}};(function(){var _32b=dojo.config.extraLocale;if(_32b){if(!_32b instanceof Array){_32b=[_32b];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_32c,_32d){req(m,b,_32c,_32d);if(_32c){return;}for(var i=0;i<_32b.length;i++){req(m,b,_32b[i],_32d);}};}})();dojo.i18n._searchLocalePath=function(_32e,down,_32f){_32e=dojo.i18n.normalizeLocale(_32e);var _330=_32e.split("-");var _331=[];for(var i=_330.length;i>0;i--){_331.push(_330.slice(0,i).join("-"));}_331.push(false);if(down){_331.reverse();}for(var j=_331.length-1;j>=0;j--){var loc=_331[j]||"ROOT";var stop=_32f(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_332,_333){function _334(_335){_335=dojo.i18n.normalizeLocale(_335);dojo.i18n._searchLocalePath(_335,true,function(loc){for(var i=0;i<_333.length;i++){if(_333[i]==loc){dojo["require"](_332+"_"+loc);return true;}}return false;});};_334();var _336=dojo.config.extraLocale||[];for(var i=0;i<_336.length;i++){_334(_336[i]);}};}if(!dojo._hasResource["dijit.form.Select"]){dojo._hasResource["dijit.form.Select"]=true;dojo.provide("dijit.form.Select");dojo.declare("dijit.form._SelectMenu",dijit.Menu,{buildRendering:function(){this.inherited(arguments);var o=(this.menuTableNode=this.domNode);var n=(this.domNode=dojo.create("div",{style:{overflowX:"hidden",overflowY:"scroll"}}));if(o.parentNode){o.parentNode.replaceChild(n,o);}dojo.removeClass(o,"dijitMenuTable");n.className=o.className+" dijitSelectMenu";o.className="dijitReset dijitMenuTable";dijit.setWaiRole(o,"listbox");dijit.setWaiRole(n,"presentation");n.appendChild(o);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},resize:function(mb){if(mb){dojo.marginBox(this.domNode,mb);if("w" in mb){this.menuTableNode.style.width="100%";}}}});dojo.declare("dijit.form.Select",[dijit.form._FormSelectWidget,dijit._HasDropDown],{baseClass:"dijitSelect",templateString:dojo.cache("dijit.form","templates/Select.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tdojoAttachPoint=\"_buttonNode,tableNode,focusNode\" cellspacing='0' cellpadding='0'\n\trole=\"combobox\" aria-haspopup=\"true\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\" role=\"presentation\"\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  dojoAttachPoint=\"containerNode,_popupStateNode\"></span\n\t\t\t><input type=\"hidden\" ${!nameAttrSetting} dojoAttachPoint=\"valueNode\" value=\"${value}\" aria-hidden=\"true\"\n\t\t/></td><td class=\"dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton\"\n\t\t\t\tdojoAttachPoint=\"titleNode\" role=\"presentation\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form._FormSelectWidget.prototype.attributeMap),{style:"tableNode"}),required:false,state:"",message:"",tooltipPosition:[],emptyLabel:"&nbsp;",_isLoaded:false,_childrenLoaded:false,_fillContent:function(){this.inherited(arguments);if(this.options.length&&!this.value&&this.srcNodeRef){var si=this.srcNodeRef.selectedIndex||0;this.value=this.options[si>=0?si:0].value;}this.dropDown=new dijit.form._SelectMenu({id:this.id+"_menu"});dojo.addClass(this.dropDown.domNode,this.baseClass+"Menu");},_getMenuItemForOption:function(_337){if(!_337.value&&!_337.label){return new dijit.MenuSeparator();}else{var _338=dojo.hitch(this,"_setValueAttr",_337);var item=new dijit.MenuItem({option:_337,label:_337.label||this.emptyLabel,onClick:_338,disabled:_337.disabled||false});dijit.setWaiRole(item.focusNode,"listitem");return item;}},_addOptionItem:function(_339){if(this.dropDown){this.dropDown.addChild(this._getMenuItemForOption(_339));}},_getChildren:function(){if(!this.dropDown){return [];}return this.dropDown.getChildren();},_loadChildren:function(_33a){if(_33a===true){if(this.dropDown){delete this.dropDown.focusedChild;}if(this.options.length){this.inherited(arguments);}else{dojo.forEach(this._getChildren(),function(_33b){_33b.destroyRecursive();});var item=new dijit.MenuItem({label:"&nbsp;"});this.dropDown.addChild(item);}}else{this._updateSelection();}this._isLoaded=false;this._childrenLoaded=true;if(!this._loadingStore){this._setValueAttr(this.value);}},_setValueAttr:function(_33c){this.inherited(arguments);dojo.attr(this.valueNode,"value",this.get("value"));},_setDisplay:function(_33d){var lbl=_33d||this.emptyLabel;this.containerNode.innerHTML="<span class=\"dijitReset dijitInline "+this.baseClass+"Label\">"+lbl+"</span>";dijit.setWaiState(this.focusNode,"valuetext",lbl);},validate:function(_33e){var _33f=this.isValid(_33e);this._set("state",_33f?"":"Error");dijit.setWaiState(this.focusNode,"invalid",_33f?"false":"true");var _340=_33f?"":this._missingMsg;if(this.message!==_340){this._set("message",_340);dijit.hideTooltip(this.domNode);if(_340){dijit.showTooltip(_340,this.domNode,this.tooltipPosition,!this.isLeftToRight());}}return _33f;},isValid:function(_341){return (!this.required||this.value===0||!(/^\s*$/.test(this.value||"")));},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);this._set("state","");this._set("message","");},postMixInProperties:function(){this.inherited(arguments);this._missingMsg=dojo.i18n.getLocalization("dijit.form","validate",this.lang).missingMessage;},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousemove",dojo.stopEvent);},_setStyleAttr:function(_342){this.inherited(arguments);dojo.toggleClass(this.domNode,this.baseClass+"FixedWidth",!!this.tableNode.style.width);},isLoaded:function(){return this._isLoaded;},loadDropDown:function(_343){this._loadChildren(true);this._isLoaded=true;_343();},closeDropDown:function(){this.inherited(arguments);if(this.dropDown&&this.dropDown.menuTableNode){this.dropDown.menuTableNode.style.width="";}},uninitialize:function(_344){if(this.dropDown&&!this.dropDown._destroyed){this.dropDown.destroyRecursive(_344);delete this.dropDown;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _345=dijit.byNode(node);if(_345&&typeof _345._onSubmit=="function"){_345._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_346){if(_346&&(!this.params||!("label" in this.params))){this.set("label",_346.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(_347){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_347);},_setLabelAttr:function(_348){this._set("label",_348);this.containerNode.innerHTML=_348;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _349=this.iconClass||"dijitNoIcon",_34a=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_34a,_349);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 _34b=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_34b[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _34c=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_34c);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _34d=this.dropDown;return (!!_34d&&(!_34d.href||_34d.isLoaded));},loadDropDown:function(){var _34e=this.dropDown;if(!_34e){return;}if(!this.isLoaded()){var _34f=dojo.connect(_34e,"onLoad",this,function(){dojo.disconnect(_34f);this.openDropDown();});_34e.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(_350){if(!this.disabled){dijit.focus(_350=="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(_351,_352){this._set("checked",_351);dojo.attr(this.focusNode||this.domNode,"checked",_351);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_351);this._handleOnChange(_351,_352);},setChecked:function(_353){dojo.deprecated("setChecked("+_353+") is deprecated. Use set('checked',"+_353+") instead.","","2.0");this.set("checked",_353);},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(_354){this._set("readOnly",_354);dojo.attr(this.focusNode,"readOnly",_354);dijit.setWaiState(this.focusNode,"readonly",_354);},_setValueAttr:function(_355,_356){if(typeof _355=="string"){this._set("value",_355);dojo.attr(this.focusNode,"value",_355);_355=true;}if(this._created){this.set("checked",_355,_356);}},_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(_357){},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(_358){this.inherited(arguments);if(!this._created){return;}if(_358){var _359=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_35a){if(_35a.name==_359.name&&_35a!=_359.focusNode&&_35a.form==_359.focusNode.form){var _35b=dijit.getEnclosingWidget(_35a);if(_35b&&_35b.checked){_35b.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(_35c,_35d,_35e){var _35f;if(_35c!==undefined){_35f=this.filter(_35c);if(typeof _35e!="string"){if(_35f!==null&&((typeof _35f!="number")||!isNaN(_35f))){_35e=this.filter(this.format(_35f,this.constraints));}else{_35e="";}}}if(_35e!=null&&_35e!=undefined&&((typeof _35e)!="number"||!isNaN(_35e))&&this.textbox.value!=_35e){this.textbox.value=_35e;this._set("displayedValue",this.get("displayedValue"));}this._updatePlaceHolder();this.inherited(arguments,[_35f,_35d]);},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(_360){dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use set('displayedValue', ...) instead.","","2.0");this.set("displayedValue",_360);},_setDisplayedValueAttr:function(_361){if(_361===null||_361===undefined){_361="";}else{if(typeof _361!="string"){_361=String(_361);}}this.textbox.value=_361;this._setValueAttr(this.get("value"),undefined);this._set("displayedValue",this.get("displayedValue"));},format:function(_362,_363){return ((_362==null||_362==undefined)?"":(_362.toString?_362.toString():_362));},parse:function(_364,_365){return _364;},_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 _366=this;setTimeout(function(){_366._handleOnChange(_366.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 _367=this.domNode.getElementsByTagName("INPUT");if(_367){for(var i=0;i<_367.length;i++){_367[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 _368;if(dojo.isIE){var _369=dojo.doc.selection.createRange();var _36a=_369.parentElement();_368=_36a==this.textbox&&_369.text.length==0;}else{_368=this.textbox.selectionStart==this.textbox.selectionEnd;}if(_368){dijit.selectInputText(this.textbox);}});}this._updatePlaceHolder();this.inherited(arguments);this._refreshState();},reset:function(){this.textbox.value="";this.inherited(arguments);}});dijit.selectInputText=function(_36b,_36c,stop){var _36d=dojo.global;var _36e=dojo.doc;_36b=dojo.byId(_36b);if(isNaN(_36c)){_36c=0;}if(isNaN(stop)){stop=_36b.value?_36b.value.length:0;}dijit.focus(_36b);if(_36e["selection"]&&dojo.body()["createTextRange"]){if(_36b.createTextRange){var r=_36b.createTextRange();r.collapse(true);r.moveStart("character",-99999);r.moveStart("character",_36c);r.moveEnd("character",stop-_36c);r.select();}}else{if(_36d["getSelection"]){if(_36b.setSelectionRange){_36b.setSelectionRange(_36c,stop);}}}};}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 _36f=this.getParent&&this.getParent();if(!(_36f&&_36f.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_370,_371){var node=this.domNode;if(_370){dojo.marginBox(node,_370);if(_370.t){node.style.top=_370.t+"px";}if(_370.l){node.style.left=_370.l+"px";}}var mb=_371||{};dojo.mixin(mb,_370||{});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(_372){var cls=this.baseClass+"-child "+(_372.baseClass?this.baseClass+"-"+_372.baseClass:"");dojo.addClass(_372.domNode,cls);},addChild:function(_373,_374){this.inherited(arguments);if(this._started){this._setupChild(_373);}},removeChild:function(_375){var cls=this.baseClass+"-child"+(_375.baseClass?" "+this.baseClass+"-"+_375.baseClass:"");dojo.removeClass(_375.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 _376=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_377,dim){var _378=_377.resize?_377.resize(dim):dojo.marginBox(_377.domNode,dim);if(_378){dojo.mixin(_377,_378);}else{dojo.mixin(_377,dojo.marginBox(_377.domNode));dojo.mixin(_377,dim);}};dijit.layout.layoutChildren=function(_379,dim,_37a,_37b,_37c){dim=dojo.mixin({},dim);dojo.addClass(_379,"dijitLayoutContainer");_37a=dojo.filter(_37a,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_37a,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_37a,function(_37d){var elm=_37d.domNode,pos=(_37d.region||_37d.layoutAlign);var _37e=elm.style;_37e.left=dim.l+"px";_37e.top=dim.t+"px";_37e.position="absolute";dojo.addClass(elm,"dijitAlign"+_376(pos));var _37f={};if(_37b&&_37b==_37d.id){_37f[_37d.region=="top"||_37d.region=="bottom"?"h":"w"]=_37c;}if(pos=="top"||pos=="bottom"){_37f.w=dim.w;size(_37d,_37f);dim.h-=_37d.h;if(pos=="top"){dim.t+=_37d.h;}else{_37e.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_37f.h=dim.h;size(_37d,_37f);dim.w-=_37d.w;if(pos=="left"){dim.l+=_37d.w;}else{_37e.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_37d,dim);}}}});};})();}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _380={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _380){ds.fontSize=p;_380[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _380;};var _381=null;dhm.getCachedFontMeasurements=function(_382){if(_382||!_381){_381=dhm.getFontMeasurements();}return _381;};var _383=null,_384={};dhm.getTextBox=function(text,_385,_386){var m,s;if(!_383){m=_383=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_383;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_385){for(var i in _385){if(i in _384){continue;}s[i]=_385[i];}}if(arguments.length>2&&_386){m.className=_386;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _387={w:16,h:16};dhm.getScrollbar=function(){return {w:_387.w,h:_387.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_388){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_387.w=n.offsetWidth-n.clientWidth;_387.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_389,_38a){if(_38a>=0){var s=_389.style;var v=_38a+"px";if(_389&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_38b,_38c,_38d,_38e){var evts=(_38e?_38e:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_38c.connect(_38b,"on"+evts[i],_38d);}};dgu.removeNode=function(_38f){_38f=dojo.byId(_38f);_38f&&_38f.parentNode&&_38f.parentNode.removeChild(_38f);return _38f;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_390,_391,_392){if(_390.length<=_391){_390[_391]=_392;}else{_390.splice(_391,0,_392);}};dgu.arrayRemove=function(_393,_394){_393.splice(_394,1);};dgu.arraySwap=function(_395,inI,inJ){var _396=_395[inI];_395[inI]=_395[inJ];_395[inJ]=_396;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _397=function(_398){var i=0,n,p=_398.parentNode;while((n=p.childNodes[i++])){if(n==_398){return i-1;}}return -1;};var _399=function(_39a){if(!_39a){return;}var _39b=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_39a,true);};var ws=dijit.registry.filter(_39b);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _39c=function(_39d){var node=dojo.byId(_39d);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _39e=function(_39f,_3a0){var _3a1=[];var i=0,n;while((n=_39f.childNodes[i])){i++;if(_39c(n)==_3a0){_3a1.push(n);}}return _3a1;};var _3a2=function(_3a3){return _39e(_3a3,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_3a4){this.setContentNodes(_3a4);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_3a5,_3a6,_3a7){switch(arguments.length){case 3:this.rowsPerPage=_3a7;case 2:this.keepRows=_3a6;case 1:this.rowCount=_3a5;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_3a8,_3a9){return _3a8?(Math.ceil(_3a8/_3a9)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_3aa){this.keepRows=_3aa;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_3ab){this.contentNodes=_3ab;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_3ac){this.invalidateNodes();this.rowCount=_3ac;var _3ad=this.pageCount;if(_3ad===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_3ad){for(var i=_3ad-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_3ad){this.height+=this.defaultPageHeight*(this.pageCount-_3ad-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_3ae){return Boolean(this.getDefaultPageNode(_3ae));},measurePage:function(_3af){if(this.grid.rowHeight){var _3b0=this.grid.rowHeight+1;return ((_3af+1)*this.rowsPerPage>this.rowCount?this.rowCount-_3af*this.rowsPerPage:this.rowsPerPage)*_3b0;}var n=this.getDefaultPageNode(_3af);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_3b1,_3b2){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_3b1].style.top=_3b2+"px";}},repositionPages:function(_3b3){var _3b4=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_3b4[_3b3];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_3b3):0);for(var p=_3b3+1;p<=last;p++){n=_3b4[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_3b5){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_3b5]);}},preparePage:function(_3b6,_3b7){var p=(_3b7?this.popPage():null);for(var i=0;i<this.colCount;i++){var _3b8=this.pageNodes[i];var _3b9=(p===null?this.createPageNode():this.invalidatePageNode(p,_3b8));_3b9.pageIndex=_3b6;_3b8[_3b6]=_3b9;}},renderPage:function(_3ba){var _3bb=[];var i,j;for(i=0;i<this.colCount;i++){_3bb[i]=this.pageNodes[i][_3ba];}for(i=0,j=_3ba*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_3bb);}},removePage:function(_3bc){for(var i=0,j=_3bc*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_3bd){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_3bd,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_3be){},pacifying:false,pacifyTicks:200,setPacifying:function(_3bf){if(this.pacifying!=_3bf){this.pacifying=_3bf;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _3c0=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _3c0;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _3c1=(!this._invalidating);if(!_3c1){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_3c1=true;}}if(_3c1){this.needPage(this.page,this.pageTop);}var _3c2=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _3c3=this.getPageHeight(this.page);this.averageRowHeight=(_3c3>0&&_3c2>0)?(_3c3/_3c2):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _3c4=this.pageCount-1;var _3c5=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_3c4]=_3c5;return _3c5;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_3c6,_3c7,_3c8){if(this.pageExists(_3c6)){var oh=this.getPageHeight(_3c6);var h=(this.measurePage(_3c6));if(h===undefined){h=oh;}this.pageHeights[_3c6]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_3c7)){if(!_3c8){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_3c6);}}else{this.repositionPages(_3c6);}}return h;}return 0;},rowHeightChanged:function(_3c9,_3ca){this.updatePageHeight(Math.floor(_3c9/this.rowsPerPage),false,_3ca);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_3cb){var ph=this.pageHeights[_3cb];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_3cc){return this.stack.push(_3cc);},popPage:function(){return this.stack.shift();},findPage:function(_3cd){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_3cd){break;}}this.page=i;this.pageTop=h;},buildPage:function(_3ce,_3cf,_3d0){this.preparePage(_3ce,_3cf);this.positionPage(_3ce,_3d0);this.installPage(_3ce);this.renderPage(_3ce);this.pushPage(_3ce);},needPage:function(_3d1,_3d2){var h=this.getPageHeight(_3d1),oh=h;if(!this.pageExists(_3d1)){this.buildPage(_3d1,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_3d2);h=this.updatePageHeight(_3d1,true);}else{this.positionPage(_3d1,_3d2);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_3d3){this.grid.scrollTop=_3d3;if(this.colCount){this.startPacify();this.findPage(_3d3);var h=this.height;var b=this.getScrollBottom(_3d3);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_3d3);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_3d4){return (this.windowHeight>=0?_3d4+this.windowHeight:-1);},processNodeEvent:function(e,_3d5){var t=e.target;while(t&&(t!=_3d5)&&t.parentNode&&(t.parentNode.parentNode!=_3d5)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_3d5)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_397(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_3d6,_3d7){},removeRow:function(_3d8){},getDefaultPageNode:function(_3d9){return this.getDefaultNodes()[_3d9];},positionPageNode:function(_3da,_3db){},getPageNodePosition:function(_3dc){return _3dc.offsetTop;},invalidatePageNode:function(_3dd,_3de){var p=_3de[_3dd];if(p){delete _3de[_3dd];this.removePage(_3dd,p);_399(p);p.innerHTML="";}return p;},getPageRow:function(_3df){return _3df*this.rowsPerPage;},getLastPageRow:function(_3e0){return Math.min(this.rowCount,this.getPageRow(_3e0+1))-1;},getFirstVisibleRow:function(_3e1,_3e2,_3e3){if(!this.pageExists(_3e1)){return 0;}var row=this.getPageRow(_3e1);var _3e4=this.getDefaultNodes();var rows=_3a2(_3e4[_3e1]);for(var i=0,l=rows.length;i<l&&_3e2<_3e3;i++,row++){_3e2+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_3e5,_3e6,_3e7){if(!this.pageExists(_3e5)){return 0;}var _3e8=this.getDefaultNodes();var row=this.getLastPageRow(_3e5);var rows=_3a2(_3e8[_3e5]);for(var i=rows.length-1;i>=0&&_3e6>_3e7;i--,row--){_3e6-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_3e9){var _3ea=this.getDefaultNodes();var rows=_3a2(_3ea[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_3e9){this.offset=h-(t-_3e9);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_3eb){var _3ec=Math.floor(_3eb/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_3ec;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_3ec;this.needPage(_3ec,this.pageTop);var _3ed=this.getDefaultNodes();var rows=_3a2(_3ed[_3ec]);var r=_3eb-this.rowsPerPage*_3ec;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _3ee=function(_3ef){try{dojox.grid.util.fire(_3ef,"focus");dojox.grid.util.fire(_3ef,"select");}catch(e){}};var _3f0=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_3f1){this._props=_3f1||{};dojo.mixin(this,_3f1);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_3f2,_3f3){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_3f2!=this.defaultValue&&f)?f.apply(s,_3f3):_3f2;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_3f4,_3f5){var f,i=this.grid.edit.info,d=this.get?this.get(_3f4,_3f5):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_3f4&&i.cell==this))){return this.formatEditing(d,_3f4);}else{return this._defaultFormat(d,[d,_3f4,this]);}},formatEditing:function(_3f6,_3f7){},getNode:function(_3f8){return this.view.getCellNode(_3f8,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_3f9){return (this.getNode(_3f9)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_3fa,_3fb){this.grid.edit.applyCellEdit(_3fa,this,_3fb);},cancelEdit:function(_3fc){this.grid.doCancelEdit(_3fc);},_onEditBlur:function(_3fd){if(this.grid.edit.isEditCell(_3fd,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_3fe,_3ff){if(this.commitOnBlur){dojo.connect(_3fe,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_3ff),250);});}},needFormatNode:function(_400,_401){this._formatPending=true;_3f0(this,"_formatNode",_400,_401);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_402,_403){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_403),_402,_403);}},formatNode:function(_404,_405,_406){if(dojo.isIE){_3f0(this,"focus",_406,_404);}else{this.focus(_406,_404);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_407){return this.getEditNode(_407)[this._valueProp];},setValue:function(_408,_409){var n=this.getEditNode(_408);if(n){n[this._valueProp]=_409;}},focus:function(_40a,_40b){_3ee(_40b||this.getEditNode(_40a));},save:function(_40c){this.value=this.value||this.getValue(_40c);},restore:function(_40d){this.setValue(_40d,this.value);},_finish:function(_40e){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_40f){this.applyEdit(this.getValue(_40f),_40f);this._finish(_40f);},cancel:function(_410){this.cancelEdit(_410);this._finish(_410);}});dgc._Base.markupFactory=function(node,_411){var d=dojo;var _412=d.trim(d.attr(node,"formatter")||"");if(_412){_411.formatter=dojo.getObject(_412)||_412;}var get=d.trim(d.attr(node,"get")||"");if(get){_411.get=dojo.getObject(get);}var _413=function(attr,cell,_414){var _415=d.trim(d.attr(node,attr)||"");if(_415){cell[_414||attr]=!(_415.toLowerCase()=="false");}};_413("sortDesc",_411);_413("editable",_411);_413("alwaysEditing",_411);_413("noresize",_411);_413("draggable",_411);var _416=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_416){_411.defaultValue=_416;}var _417=function(attr,cell,_418){var _419=d.trim(d.attr(node,attr)||"")||undefined;if(_419){cell[_418||attr]=_419;}};_417("styles",_411);_417("headerStyles",_411);_417("cellStyles",_411);_417("classes",_411);_417("headerClasses",_411);_417("cellClasses",_411);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_41a,_41b){this.needFormatNode(_41a,_41b);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_41a+"\">";},formatNode:function(_41c,_41d,_41e){this.inherited(arguments);this.registerOnBlur(_41c,_41e);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_41f){this.inherited(arguments);var n=this.getEditNode(_41f);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_420){dgc._Base.markupFactory(node,_420);var d=dojo;var _421=d.trim(d.attr(node,"keyFilter")||"");if(_421){_420.keyFilter=new RegExp(_421);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_422){return _422+1;}});dgc.RowIndex.markupFactory=function(node,_423){dgc.Cell.markupFactory(node,_423);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_424){this.values=this.values||this.options;},formatEditing:function(_425,_426){this.needFormatNode(_425,_426);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_425==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_427){var n=this.getEditNode(_427);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _428=d.trim(d.attr(node,"options")||"");if(_428){var o=_428.split(",");if(o[0]!=_428){cell.options=o;}}var _429=d.trim(d.attr(node,"values")||"");if(_429){var v=_429.split(",");if(v[0]!=_429){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_42a,_42b){this.formatNode(this.getEditNode(_42b),_42a,_42b);},applyStaticValue:function(_42c){var e=this.grid.edit;e.applyCellEdit(this.getValue(_42c),this,_42c);e.start(this,_42c,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_42d,_42e){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_42d?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _42f=n.scrollLeft,_430=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_42f!=n.scrollLeft||_430!=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,_431){this.node=dojo.byId(node);if(!_431){_431={};}this.handle=_431.handle?dojo.byId(_431.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_431.delay>0?_431.delay:0;this.skip=_431.skip;this.mover=_431.mover?_431.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(_432,node){return new dojo.dnd.Moveable(node,_432);},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(_433){dojo.publish("/dnd/move/start",[_433]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_434){dojo.publish("/dnd/move/stop",[_434]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_435,e){},onMove:function(_436,_437,e){this.onMoving(_436,_437);var s=_436.node.style;s.left=_437.l+"px";s.top=_437.t+"px";this.onMoved(_436,_437);},onMoving:function(_438,_439){},onMoved:function(_43a,_43b){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _43c=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _43d=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _43e=function(_43f,_440){return _43f&&((_43f.rows||0)[_440]||_43f.childNodes[_440]);};var _441=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _442=function(_443,_444){for(var n=_443;n&&_444(n);n=n.parentNode){}return n;};var _445=function(_446){var name=_446.toUpperCase();return function(node){return node.tagName!=name;};};var _447=dojox.grid.util.rowIndexTag;var _448=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_449,_44a,_44b,_44c){var _44d=[],html;if(_44c){var _44e=_449.index!=_449.grid.getSortIndex()?"":_449.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_449.id){_449.id=this.grid.id+"Hdr"+_449.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_44e,"id=\"",_449.id,"\""];}else{var _44f=this.grid.editable&&!_449.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_44f];}if(_449.colSpan){html.push(" colspan=\"",_449.colSpan,"\"");}if(_449.rowSpan){html.push(" rowspan=\"",_449.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_449.classes){html.push(_449.classes," ");}if(_44b){html.push(_44b," ");}_44d.push(html.join(""));_44d.push("");html=["\" idx=\"",_449.index,"\" style=\""];if(_44a&&_44a[_44a.length-1]!=";"){_44a+=";";}html.push(_449.styles,_44a||"",_449.hidden?"display:none;":"");if(_449.unitWidth){html.push("width:",_449.unitWidth,";");}_44d.push(html.join(""));_44d.push("");html=["\""];if(_449.attrs){html.push(" ",_449.attrs);}html.push(">");_44d.push(html.join(""));_44d.push("");_44d.push(_44c?"</th>":"</td>");return _44d;},isCellNode:function(_450){return Boolean(_450&&_450!=dojo.doc&&dojo.attr(_450,"idx"));},getCellNodeIndex:function(_451){return _451?Number(dojo.attr(_451,"idx")):-1;},getCellNode:function(_452,_453){for(var i=0,row;((row=_43e(_452.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_453){return cell;}}}return null;},findCellTarget:function(_454,_455){var n=_454;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_448 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_448]!=this.view.id))&&(n!=_455)){n=n.parentNode;}return n!=_455?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_456,_457){var n=_456;while(n&&(n!=this.domNode)&&(!(_457 in n)||(_448 in n&&n[_448]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_458){return this.findTarget(_458,_447);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _459=this.grid.get,_45a=this.view.structure.cells;for(var j=0,row;(row=_45a[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_459;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_45b,_45c){var html=this.getTableArray(),v=this.view,_45d=v.structure.cells,item=this.grid.getItem(_45c);dojox.grid.util.fire(this.view,"onBeforeRow",[_45c,_45d]);for(var j=0,row;(row=_45d[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_45c,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_447];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_45e,_45f){var html=this.getTableArray(),_460=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_460]);for(var j=0,row;(row=_460[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_461;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_461=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_461[5]=(_45f!=undefined?_45f:_45e(cell));_461[3]=cell.customStyles.join(";");_461[1]=cell.customClasses.join(" ");html.push(_461.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_442(e.target,_445("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_442(n,_445("table"));x-=(table&&table.offsetLeft)||0;}}n=_442(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_43c(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_462){var _463=dojo.contentBox(e.sourceView.headerNode);if(_462){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _464=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_464.h+_463.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _465=[],_466=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_466[i]);i++){_465.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _467=e.grid.views.views;var _468=[];for(var j=view.idx+adj,_469;(_469=_467[j]);j=j+adj){_468.push({node:_469.headerNode,left:window.parseInt(_469.headerNode.style.left)});}var _46a=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_463.w,table:_46a,tw:dojo.contentBox(_46a).w,spanners:_465,followers:_468};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_46b,_46c,_46d){var _46e=_46d.l;var data={deltaX:_46e,w:_46b.w+(dojo._isBodyLtr()?_46e:-_46e),vw:_46b.vw+_46e,tw:_46b.tw+_46e};this.dragRecord={inDrag:_46b,mover:_46c,leftTop:_46d};if(data.w>=this.minColWidth){if(!_46c){this.doResizeNow(_46b,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_46f){if(this.dragRecord){var _470=this.dragRecord.leftTop;var _471=dojo._isBodyLtr()?_470.l:-_470.l;_471+=Math.max(_46f.w+_471,this.minColWidth)-(_46f.w+_471);if(dojo.isWebKit&&_46f.spanners.length){_471+=dojo._getPadBorderExtents(_46f.spanners[0].node).w;}var data={deltaX:_471,w:_46f.w+_471,vw:_46f.vw+_471,tw:_46f.tw+_471};this.doResizeNow(_46f,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_46f.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_46f.index);},doResizeNow:function(_472,data){_472.view.convertColPctToFixed();if(_472.view.flexCells&&!_472.view.testFlexCells()){var t=_441(_472.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_472.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_472.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_472.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_472.node.style.width=data.w+"px";_472.view.setColWidth(_472.index,data.w);_472.view.headerNode.style.width=data.vw+"px";_472.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_472.view.headerNode.scrollLeft=_472.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_473){var _474=_473.length;if(!_474){return;}this.map=[];var row;for(var k=0;(row=_473[k]);k++){this.map[k]=[];}for(var j=0;(row=_473[j]);j++){for(var i=0,x=0,cell,_475,_476;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_476=cell.rowSpan||1;_475=cell.colSpan||1;for(var y=0;y<_476;y++){for(var s=0;s<_475;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_475;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_477,_478){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_478&&cell.r==_477){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_479,_47a,_47b){var row=_479&&_479.rows[_47a];return row&&row.cells[_47b];},_findOverlappingNodes:function(_47c,_47d,_47e){var _47f=[];var m=this.getMapCoords(_47d,_47e);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_47c,rw.r,rw.c):null);if(n){_47f.push(n);}}return _47f;},findOverlappingNodes:function(_480){return this._findOverlappingNodes(_441(_480),_43d(_480.parentNode),_43c(_480));}});})();}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,_481){this.node=dojo.byId(node);if(!_481){_481={};}this.creator=_481.creator||null;this.skipForm=_481.skipForm;this.parent=_481.dropParent&&dojo.byId(_481.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_481&&_481._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,_482,_483){if(!this.parent.firstChild){_483=null;}else{if(_482){if(!_483){_483=this.parent.firstChild;}}else{if(_483){_483=_483.nextSibling;}}}if(_483){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,_483);}}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(_484,node){_484._skipStartup=true;return new dojo.dnd.Container(node,_484);},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,_485){var _486="dojoDnd"+type;var _487=type.toLowerCase()+"State";dojo.replaceClass(this.node,_486+_485,_486+this[_487]);this[_487]=_485;},_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 _488=node.parentNode;_488;node=_488,_488=node.parentNode){if(_488==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 _489=item&&dojo.isObject(item),data,type,n;if(_489&&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=(_489&&item.data)?item.data:item;type=(_489&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_48a){if(!_48a){_48a={};}this.singular=_48a.singular;this.autoSync=_48a.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_48b,data,_48c,_48d){var _48e=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_48e.call(this,item,hint);if(_48b){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_48c,_48d);this._normalizedCreator=_48e;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_48f,node){_48f._skipStartup=true;return new dojo.dnd.Selector(node,_48f);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_490){this.manager=_490;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_491=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_491.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_491.creator){node=_491._normalizedCreator(_491.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _492=dojo.create("table"),_493=dojo.create("tbody",null,_492);_493.appendChild(node);node=_492;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_494){if(this.avatar){this.target=(_494&&_494.targetState!="Disabled")?_494:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_494]);},outSource:function(_495){if(this.avatar){if(this.target==_495){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_496,_497,copy){this.source=_496;this.nodes=_497;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_496,_497,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _498=Boolean(this.target&&flag);if(this.canDropFlag!=_498){this.canDropFlag=_498;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_499=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_499);dojo.publish("/dnd/drop",_499);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_49a){dojo.mixin(this,dojo.mixin({},_49a));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_49b,_49c){if(this==_49b){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_49c.length;++i){var type=_49b.getItem(_49c[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_49d,self){if(_49d){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_49e,node){_49e._skipStartup=true;return new dojo.dnd.Source(node,_49e);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _49f=this.getSelectedNodes();if(_49f.length){m.startDrag(this,_49f,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _4a0=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_4a0=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_4a0=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_4a0!=this.before){this._markTargetAnchor(_4a0);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_4a1){if(this!=_4a1){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_4a2,_4a3,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_4a2?(copy?"Copied":"Moved"):"");}var _4a4=this.accept&&this.checkAcceptance(_4a2,_4a3);this._changeState("Target",_4a4?"":"Disabled");if(this==_4a2){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_4a5,_4a6,copy,_4a7){if(this==_4a7){this.onDrop(_4a5,_4a6,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_4a8,_4a9,copy){if(this!=_4a8){this.onDropExternal(_4a8,_4a9,copy);}else{this.onDropInternal(_4a9,copy);}},onDropExternal:function(_4aa,_4ab,copy){var _4ac=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _4ac.call(this,_4aa.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_4aa.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_4aa.getItem(node.id);_4aa.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_4aa.selectNone();}this.insertNodes(true,_4ab,this.before,this.current);if(!copy&&this.creator){_4aa.deleteSelectedNodes();}this._normalizedCreator=_4ac;},onDropInternal:function(_4ad,copy){var _4ae=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _4ae.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_4ad,this.before,this.current);this._normalizedCreator=_4ae;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_4af){if(this.current==this.targetAnchor&&this.before==_4af){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_4af;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_4b0){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_4b1,node){_4b1._skipStartup=true;return new dojo.dnd.Target(node,_4b1);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_4b2){this.autoSync=true;},markupFactory:function(_4b3,node){_4b3._skipStartup=true;return new dojo.dnd.AutoSource(node,_4b3);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _4b4=function(_4b5,_4b6){return _4b5.style.cssText==undefined?_4b5.getAttribute("style"):_4b5.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_4b7){var vs=(this.structure=_4b7);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_4b8){if(_4b8){dojo.forEach(dojo.query("[widgetId]",_4b8).map(dijit.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_4b9,_4ba){this._onBeforeRow(_4b9,_4ba);if(_4b9>=0){this._cleanupRowWidgets(this.getRowNode(_4b9));}},onAfterRow:function(_4bb,_4bc,_4bd){this._onAfterRow(_4bb,_4bc,_4bd);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_4bd),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _4be=window.parseInt(dojo.attr(n,"cellIdx"),10);var _4bf=g.getCell(_4be);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _4c0=this.hasVScrollbar();var _4c1=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_4c1||_4c1=="hidden"){_4c0=false;}else{if(_4c1=="scroll"){_4c0=true;}}return (_4c0?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_4c2){this.headerContentNode.firstChild.style.width=_4c2+"px";if(this.viewWidth){this.viewWidth=_4c2+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _4c3=this.grid.layout.cells;var _4c4=dojo.hitch(this,function(node,_4c5){!dojo._isBodyLtr()&&(_4c5=!_4c5);var inc=_4c5?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_4c3[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_4c3[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _4c6="dojoxGrid_bottomMarker";var _4c7="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_4c6);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_4c7);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_4c6,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_4c7,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _4c8=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE<9?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_4c9){var src=this.source;if(src.current==src.targetAnchor&&src.before==_4c9){return;}if(src.targetAnchor&&_4c4(src.targetAnchor,src.before)){src._removeItemClass(_4c4(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_4c9);var _4ca=_4c9?src.targetAnchor:_4c4(src.targetAnchor,src.before);var _4cb=0;if(!_4ca){_4ca=src.targetAnchor;_4cb=dojo.contentBox(_4ca).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_4ca,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_4cb);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_4c8+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_4c4(src.targetAnchor,src.before)){src._addItemClass(_4c4(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_4c4(src.targetAnchor,src.before)){src._removeItemClass(_4c4(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_4cc,_4cd,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _4ce=this.grid.views.views;var _4cf=_4ce[_4cc.viewIndex];var _4d0=_4ce[this.index];if(_4d0!=_4cf){_4cf.convertColPctToFixed();_4d0.convertColPctToFixed();}},_onDndDrop:function(_4d1,_4d2,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _4d3=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_4d2[0]).w;if(_4d1.viewIndex!==this.index){var _4d4=this.grid.views.views;var _4d5=_4d4[_4d1.viewIndex];var _4d6=_4d4[this.index];if(_4d5.viewWidth&&_4d5.viewWidth!="auto"){_4d5.setColumnsWidth(_4d5.getColumnsWidth()-w);}if(_4d6.viewWidth&&_4d6.viewWidth!="auto"){_4d6.setColumnsWidth(_4d6.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _4d7=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_4d7.moveColumn(_4d1.viewIndex,idx,_4d3(_4d2[0]),_4d3(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_4d8){var n=_4d8.name||_4d8.grid.getCellName(_4d8);var ret=["<div class=\"dojoxGridSortNode"];if(_4d8.index!=_4d8.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_4d8.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_4d8.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_4d9){var _4da=this._hasHScroll||false;if(this._hasHScroll==undefined||_4d9){if(this.noscroll){this._hasHScroll=false;}else{var _4db=dojo.style(this.scrollboxNode,"overflow");if(_4db=="hidden"){this._hasHScroll=false;}else{if(_4db=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_4da!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_4dc){var _4dd=this._hasVScroll||false;if(this._hasVScroll==undefined||_4dc){if(this.noscroll){this._hasVScroll=false;}else{var _4de=dojo.style(this.scrollboxNode,"overflow");if(_4de=="hidden"){this._hasVScroll=false;}else{if(_4de=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_4dd!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _4df=false;this.grid.initialWidth="";var _4e0=dojo.query("th",this.headerContentNode);var _4e1=dojo.map(_4e0,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_4df=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_4df){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _4e2=cell.view.getHeaderCellNode(cell.index);if(_4e2&&dojo.hasAttr(_4e2,"vIdx")){var vIdx=window.parseInt(dojo.attr(_4e2,"vIdx"));this.setColWidth(idx,_4e1[vIdx]);dojo.removeAttr(_4e2,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_4e3){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _4e4=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_4e3||(this.noscroll&&_4e4())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_4e5){var _4e6=this.createRowNode(_4e5);this.buildRow(_4e5,_4e6);return _4e6;},createRowNode:function(_4e7){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_4e7;this.rowNodes[_4e7]=node;return node;},buildRow:function(_4e8,_4e9){this.buildRowContent(_4e8,_4e9);this.styleRow(_4e8,_4e9);},buildRowContent:function(_4ea,_4eb){_4eb.innerHTML=this.content.generateHtml(_4ea,_4ea);if(this.flexCells&&this.contentWidth){_4eb.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_4ea,this.structure.cells,_4eb]);},rowRemoved:function(_4ec){if(_4ec>=0){this._cleanupRowWidgets(this.getRowNode(_4ec));}this.grid.edit.save(this,_4ec);delete this.rowNodes[_4ec];},getRowNode:function(_4ed){return this.rowNodes[_4ed];},getCellNode:function(_4ee,_4ef){var row=this.getRowNode(_4ee);if(row){return this.content.getCellNode(row,_4ef);}},getHeaderCellNode:function(_4f0){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_4f0);}},styleRow:function(_4f1,_4f2){_4f2._style=_4b4(_4f2);this.styleRowNode(_4f1,_4f2);},styleRowNode:function(_4f3,_4f4){if(_4f4){this.doStyleRowNode(_4f3,_4f4);}},doStyleRowNode:function(_4f5,_4f6){this.grid.styleRowNode(_4f5,_4f6);},updateRow:function(_4f7){var _4f8=this.getRowNode(_4f7);if(_4f8){_4f8.style.height="";this.buildRow(_4f7,_4f8);}return _4f8;},updateRowStyles:function(_4f9){this.styleRowNode(_4f9,this.getRowNode(_4f9));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_4fa){if(dojo.isFF>=13){this._nativeScroll=true;}var _4fb=dojo._isBodyLtr();if(this.firstScroll<2){if((!_4fb&&this.firstScroll==1)||(_4fb&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_4fb?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_4fc){this.lastTop=_4fc;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_4fc;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_4fd,_4fe){this.grid.setCellWidth(_4fd,_4fe+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _4ff=this.manager.source,node;if(_4ff.creator){node=_4ff._normalizedCreator(_4ff.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _500,_501;if(node.tagName.toLowerCase()=="tr"){_500=dd.createElement("table");_501=dd.createElement("tbody");_501.appendChild(node);_500.appendChild(_501);node=_500;}else{if(node.tagName.toLowerCase()=="th"){_500=dd.createElement("table");_501=dd.createElement("tbody");var r=dd.createElement("tr");_500.cellPadding=_500.cellSpacing="0";r.appendChild(node);_501.appendChild(r);_500.appendChild(_501);node=_500;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _502=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _502.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_503,_504){var w=this.contentWidth||0;_504.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_505,_506){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_505)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_505)){n.push("dojoxGridRowbarSelected");}_506.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_507){this.grid=_507;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_508,_509,_50a,_50b,_50c){var _50d=this.structure[_508].cells[0];var _50e=this.structure[_509].cells[0];var cell=null;var _50f=0;var _510=0;for(var i=0,c;c=_50d[i];i++){if(c.index==_50a){_50f=i;break;}}cell=_50d.splice(_50f,1)[0];cell.view=this.grid.views.views[_509];for(i=0,c=null;c=_50e[i];i++){if(c.index==_50b){_510=i;break;}}if(!_50c){_510+=1;}_50e.splice(_510,0,cell);var _511=this.grid.getCell(this.grid.getSortIndex());if(_511){_511._currentlySorted=this.grid.getSortAsc();}this.cells=[];_50a=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_50a;this.cells.push(c);if("_currentlySorted" in c){var si=_50a+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_50a++;}}}dojo.forEach(this.cells,function(c){var _512=c.markup[2].split(" ");var _513=parseInt(_512[1].substring(5));if(_513!=c.index){_512[1]="idx=\""+c.index+"\"";c.markup[2]=_512.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_514,_515){var cell=this.cells[_514];if(cell.hidden==_515){cell.hidden=!_515;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_516,_517,_518){var self=this;var _519=function(_51a){var w=0;if(_51a.colSpan>1){w=0;}else{w=_51a.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _51b={grid:this.grid,subrow:_516,layoutIndex:_517,index:this.cells.length};if(_518&&_518 instanceof dojox.grid.cells._Base){var _51c=dojo.clone(_518);_51b.unitWidth=_519(_51c._props);_51c=dojo.mixin(_51c,this._defaultCellProps,_518._props,_51b);return _51c;}var _51d=_518.type||_518.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_51d)){_51d=dojo.getObject(_51d);}_51b.unitWidth=_519(_518);return new _51d(dojo.mixin({},this._defaultCellProps,_518,_51b));},addRowDef:function(_51e,_51f){var _520=[];var _521=0,_522=0,_523=true;for(var i=0,def,cell;(def=_51f[i]);i++){cell=this.addCellDef(_51e,i,def);_520.push(cell);this.cells.push(cell);if(_523&&cell.relWidth){_521+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_522+=window.parseInt(w,10);}else{if(w=="auto"){_523=false;}}}}}if(_521&&_523){dojo.forEach(_520,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_521)*(100-_522))+"%";}});}return _520;},addRowsDef:function(_524){var _525=[];if(dojo.isArray(_524)){if(dojo.isArray(_524[0])){for(var i=0,row;_524&&(row=_524[i]);i++){_525.push(this.addRowDef(i,row));}}else{_525.push(this.addRowDef(0,_524));}}return _525;},addViewDef:function(_526){this._defaultCellProps=_526.defaultCell||{};if(_526.width&&_526.width=="auto"){delete _526.width;}return dojo.mixin({},_526,{cells:this.addRowsDef(_526.rows||_526.cells)});},setStructure:function(_527){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _528=this.grid.rowSelector;if(_528=="false"){sel=null;}else{if(_528!="true"){sel["width"]=_528;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _529=function(def){return ("name" in def||"field" in def||"get" in def);};var _52a=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_529(def[0])){return true;}}return false;};var _52b=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_529(def))));};if(dojo.isArray(_527)){var _52c=false;for(var i=0,st;(st=_527[i]);i++){if(_52b(st)){_52c=true;break;}}if(!_52c){s.push(this.addViewDef({cells:_527}));}else{for(i=0;(st=_527[i]);i++){if(_52a(st)){s.push(this.addViewDef({cells:st}));}else{if(_52b(st)){s.push(this.addViewDef(st));}}}}}else{if(_52b(_527)){s.push(this.addViewDef(_527));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_52d){this.grid=_52d;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_52e){_52e.idx=this.views.length;this.views.push(_52e);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _52f=[];for(var i=0,v;v=this.views[i];i++){_52f.push(v.contentNode);}return _52f;},forEach:function(_530){for(var i=0,v;v=this.views[i];i++){_530(v,i);}},onEach:function(_531,_532){_532=_532||[];for(var i=0,v;v=this.views[i];i++){if(_531 in v){v[_531].apply(v,_532);}}},normalizeHeaderNodeHeight:function(){var _533=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_533.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_533);},normalizeRowNodeHeights:function(_534){var h=0;var _535=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_534.length<=1){return;}for(var i=0,n;(n=_534[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_535[i]=n.firstChild.offsetHeight;h=Math.max(h,_535[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_534[i]);i++){if(_535[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_536){var _537=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_536));i++){n.firstChild.style.height="";_537.push(n);}this.normalizeRowNodeHeights(_537);},getViewWidth:function(_538){return this.views[_538].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_539){_539.headerContentNode.style.height="";});var h=0;this.forEach(function(_53a){h=Math.max(_53a.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_53b){h=Math.max(_53b.domNode.offsetHeight,h);});return h;},findClient:function(_53c){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length;var c=(w<=0?len:this.findClient());var _53d=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_53d(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_53d(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_53d(v,l);}return l;},renderRow:function(_53e,_53f,_540){var _541=[];for(var i=0,v,n,_542;(v=this.views[i])&&(n=_53f[i]);i++){_542=v.renderRow(_53e);n.appendChild(_542);_541.push(_542);}if(!_540){this.normalizeRowNodeHeights(_541);}},rowRemoved:function(_543){this.onEach("rowRemoved",[_543]);},updateRow:function(_544,_545){for(var i=0,v;v=this.views[i];i++){v.updateRow(_544);}if(!_545){this.renormalizeRow(_544);}},updateRowStyles:function(_546){this.onEach("updateRowStyles",[_546]);},setScrollTop:function(_547){var top=_547;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_547);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _548=function(_549,_54a){if(_549.style.cssText==undefined){_549.setAttribute("style",_54a);}else{_549.style.cssText=_54a;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_54b){this.grid=_54b;},linesToEms:2,overRow:-2,prepareStylingRow:function(_54c,_54d){return {index:_54c,node:_54d,odd:Boolean(_54c&1),selected:!!this.grid.selection.isSelected(_54c),over:this.isOver(_54c),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_54e,_54f){var row=this.prepareStylingRow(_54e,_54f);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_550){var i=_550;i.node.className=i.customClasses;var h=i.node.style.height;_548(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_551){this.grid.updateRowStyles(_551);},setOverRow:function(_552){var last=this.overRow;this.overRow=_552;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_553){return (this.overRow==_553&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_554){this.grid=_554;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_555,_556){return (this.cell==_555)&&(this.rowIndex==_556);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_557){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_557);if(_557){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _558=this._findHeaderCells();for(var i=0;i<_558.length;i++){this._headerConnects.push(dojo.connect(_558[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_558[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _559=dojo.query("th",this.grid.viewsHeaderNode);var _55a=[];for(var i=0;i<_559.length;i++){var _55b=_559[i];var _55c=dojo.hasAttr(_55b,"tabIndex");var _55d=dojo.attr(_55b,"tabIndex");if(_55c&&_55d<0){_55a.push(_55b);}}return _55a;},_setActiveColHeader:function(_55e,_55f,_560){dojo.attr(this.grid.domNode,"aria-activedescendant",_55e.id);if(_560!=null&&_560>=0&&_560!=_55f){dojo.toggleClass(this._findHeaderCells()[_560],this.focusClass,false);}dojo.toggleClass(_55e,this.focusClass,true);this._colHeadNode=_55e;this._colHeadFocusIdx=_55f;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_561){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_561?_561:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_562){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_562);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _563=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_563){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _564=this.focusView;if(!_564){for(var i=0,_565;(_565=this.grid.views.views[i]);i++){if(_565.headerNode){_564=_565;break;}}}return (_564&&dojo.getComputedStyle(_564.headerNode).display=="none");},colSizeAdjust:function(e,_566,_567){var _568=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_569;(_569=this.grid.views.views[i]);i++){if(_569.header.tableMap.map){view=_569;break;}}}var _56a=_568[_566];if(!view||(_566==_568.length-1&&_566===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_56a;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _56b={l:_567};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_56b);view.update();}},styleRow:function(_56c){return;},setFocusIndex:function(_56d,_56e){this.setFocusCell(this.grid.getCell(_56e),_56d);},setFocusCell:function(_56f,_570){if(_56f&&!this.isFocusCell(_56f,_570)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_56f;this.rowIndex=_570;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _571=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_571.editable||this.grid.canEdit&&!this.grid.canEdit(_571,row))){this.cell=_571;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _572=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_572.editable){this.cell=_572;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_573,_574){var _575=_574<0?-1:1;if(this.isNavHeader()){var _576=this._findHeaderCells();var _577=currentIdx=dojo.indexOf(_576,this._colHeadNode);currentIdx+=_574;while(currentIdx>=0&&currentIdx<_576.length&&_576[currentIdx].style.display=="none"){currentIdx+=_575;}if((currentIdx>=0)&&(currentIdx<_576.length)){this._setActiveColHeader(_576[currentIdx],currentIdx,_577);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_573));if(_573){if(_573>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_573<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_574));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_575;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_573){if((row+_573)>=0&&(row+_573)<=rc){this.move(_573>0?++_573:--_573,_574);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_574){if((col+_574)>=0&&(col+_574)<=cc){this.move(_573,_574>0?++_574:--_574);}return;}}this.setFocusIndex(row,col);if(_573){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _578=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_579){this.tabbingOut=true;_579.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_57a){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _57b=true;var _57c=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_57c){var _57d=0;var cell=this.grid.getCell(_57d);if(cell.hidden){_57d=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_57d);}else{if(this.cell&&!_57c){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_57b=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _57b;},focusHeader:function(){var _57e=this._findHeaderCells();var _57f=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_57e[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_57e.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_57e[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_57f);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _580=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_580);this._contextMenuBindNode=_580;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_581){this.grid=_581;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_582,_583){if(this.grid.singleClickEdit||this.isEditRow(_583)){this.setEditCell(_582,_583);}else{this.apply();}if(this.isEditing()||(_582&&_582.editable&&_582.alwaysEditing)){this._focusEditor(_582,_583);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_584){if(_584.index==this.info.rowIndex){_584.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_585,_586){return (this.info.rowIndex===_585)&&(this.info.cell.index==_586);},isEditRow:function(_587){return this.info.rowIndex===_587;},setEditCell:function(_588,_589){if(!this.isEditCell(_589,_588.index)&&this.grid.canEdit&&this.grid.canEdit(_588,_589)){this.start(_588,_589,this.isEditRow(_589)||_588.editable);}},_focusEditor:function(_58a,_58b){dojox.grid.util.fire(_58a,"focus",[_58b]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_58c,_58d,_58e){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_58d)){this.applyRowEdit();this.grid.updateRow(_58d);}if(_58e){this.info={cell:_58c,rowIndex:_58d};this.grid.doStartEdit(_58c,_58d);this.grid.updateRow(_58d);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_58c,_58d);this._doCatchBoomerang();},_editorDo:function(_58f){var c=this.info.cell;if(c&&c.editable){c[_58f](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_590,_591,_592){if(this.grid.canEdit(_591,_592)){this.grid.doApplyCellEdit(_590,_592,_591.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_593,_594){var c=this.info.cell;if(this.isEditRow(_593)&&(!_594||c.view==_594)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_595,_596){var c=this.info.cell;if(this.isEditRow(_596)&&c.view==_595&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_597){this.grid=_597;this.selected=[];this.setMode(_597.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_598){return this.grid.onCanSelect(_598);},onCanDeselect:function(_599){return this.grid.onCanDeselect(_599);},onSelected:function(_59a){},onDeselected:function(_59b){},onChanging:function(){},onChanged:function(){},isSelected:function(_59c){if(this.mode=="none"){return false;}return this.selected[_59c];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_59d){if(this.mode=="none"){return -1;}for(var i=_59d+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _59e=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_59e.push(i);}}return _59e;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_59f){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_59f);this.addToSelection(_59f);}else{this.toggleSelect(_59f);}},addToSelection:function(_5a0){if(this.mode=="none"){return;}if(dojo.isArray(_5a0)){dojo.forEach(_5a0,this.addToSelection,this);return;}_5a0=Number(_5a0);if(this.selected[_5a0]){this.selectedIndex=_5a0;}else{if(this.onCanSelect(_5a0)!==false){this.selectedIndex=_5a0;var _5a1=this.grid.getRowNode(_5a0);if(_5a1){dojo.attr(_5a1,"aria-selected","true");}this._beginUpdate();this.selected[_5a0]=true;this.onSelected(_5a0);this._endUpdate();}}},deselect:function(_5a2){if(this.mode=="none"){return;}if(dojo.isArray(_5a2)){dojo.forEach(_5a2,this.deselect,this);return;}_5a2=Number(_5a2);if(this.selectedIndex==_5a2){this.selectedIndex=-1;}if(this.selected[_5a2]){if(this.onCanDeselect(_5a2)===false){return;}var _5a3=this.grid.getRowNode(_5a2);if(_5a3){dojo.attr(_5a3,"aria-selected","false");}this._beginUpdate();delete this.selected[_5a2];this.onDeselected(_5a2);this._endUpdate();}},setSelected:function(_5a4,_5a5){this[(_5a5?"addToSelection":"deselect")](_5a4);},toggleSelect:function(_5a6){if(dojo.isArray(_5a6)){dojo.forEach(_5a6,this.toggleSelect,this);return;}this.setSelected(_5a6,!this.selected[_5a6]);},_range:function(_5a7,inTo,func){var s=(_5a7>=0?_5a7:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_5a8,inTo){this._range(_5a8,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_5a9,inTo){this._range(_5a9,inTo,dojo.hitch(this,"deselect"));},insert:function(_5aa){this.selected.splice(_5aa,0,false);if(this.selectedIndex>=_5aa){this.selectedIndex++;}},remove:function(_5ab){this.selected.splice(_5ab,1);if(this.selectedIndex>=_5ab){this.selectedIndex--;}},deselectAll:function(_5ac){for(var i in this.selected){if((i!=_5ac)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_5ad,_5ae,_5af){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_5ad);}else{if(!_5af||this.rangeStartIndex<0){this.rangeStartIndex=_5ad;}if(!_5ae){this.deselectAll(_5ad);}if(_5af){this.selectRange(this.rangeStartIndex,_5ad);}else{if(_5ae){this.toggleSelect(_5ad);}else{this.addToSelection(_5ad);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_5b0){var i=_5b0;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_5b0);this.edit.styleRow(_5b0);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _5b1;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_5b1=this.focus.getHeaderIndex();if(_5b1>=0){this.setSortIndex(_5b1);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _5b2=this.edit.isEditing();this.edit.apply();if(!_5b2){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _5b3=this.focus.focusView||this.views.views[0];_5b3.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_5b1=this.focus.getHeaderIndex();if(_5b1>=0){this.setSortIndex(_5b1);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _5b4=e.keyCode;dojo.stopEvent(e);_5b1=this.focus.getHeaderIndex();if(_5b1>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_5b1,(_5b4==dk.LEFT_ARROW?-1:1)*5);}else{var _5b5=(_5b4==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_5b5*=-1;}this.focus.move(0,_5b5);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _5b6;if(this._click.length>1&&dojo.isIE){_5b6=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_5b6=this._click[0];}else{_5b6=e;}}this.focus.setFocusCell(_5b6.cell,_5b6.rowIndex);this.edit.setEditCell(_5b6.cell,_5b6.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_5b7,_5b8){this.edit.cellFocus(_5b7,_5b8);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},onStartEdit:function(_5b9,_5ba){},onApplyCellEdit:function(_5bb,_5bc,_5bd){},onCancelEdit:function(_5be){},onApplyEdit:function(_5bf){},onCanSelect:function(_5c0){return true;},onCanDeselect:function(_5c1){return true;},onSelected:function(_5c2){this.updateRowStyles(_5c2);},onDeselected:function(_5c3){this.updateRowStyles(_5c3);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _5c4=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_5c4);this.errorMessage=dojo.string.substitute(this.errorMessage,_5c4);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_5c5){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_5c5){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_5c6){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_5c7,idx){var c=dojo.getObject(_5c7);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_5c8){var s=_5c8;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_5c9){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_5c9);},getColumnTogglingItems:function(){var _5ca,_5cb=[];_5ca=dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_5cc){if(self.layout.setColumnVisibility(this._gridCell.index,_5cc)){var _5cd=this._gridCell.menuItems;if(_5cd.length>1){dojo.forEach(_5cd,function(item){if(item!==this){item.setAttribute("checked",_5cc);}},this);}_5cc=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_5cc.length==1){dojo.forEach(_5cc[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _5ce=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_5ce,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_5cb.push(item);}return item;},this);if(_5cb.length==1){_5cb[0].set("disabled",true);}return _5ca;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_5cf){this.setScrollTop(0);},getItem:function(_5d0){return null;},showMessage:function(_5d1){if(_5d1){this.messagesNode.innerHTML=_5d1;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_5d2,_5d3){this._pendingChangeSize=_5d2;this._pendingResultSize=_5d3;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_5d4,_5d5){_5d4=_5d4||this._pendingChangeSize;_5d5=_5d5||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _5d6=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_5d6.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_5d5){_5d4=_5d5;}if(!this._autoHeight&&_5d4){dojo.marginBox(this.domNode,_5d4);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _5d7=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_5d7&&hh===undefined){hh=this._getHeaderHeight();}}if(_5d7){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _5d8=(!this.initialWidth&&this.autoWidth);var w=_5d8?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_5d8){this.domNode.style.width=vw+"px";}},adaptHeight:function(_5d9){var t=_5d9===undefined?this._getHeaderHeight():_5d9;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _5da=0,_5db=0;var _5dc=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_5da++;}else{_5db++;}return (!has);});if(_5da>0&&_5db>0){dojo.forEach(_5dc,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();dojo.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_5dd,_5de){this.views.renderRow(_5dd,_5de,this._skipRowRenormalize);},rowRemoved:function(_5df){this.views.rowRemoved(_5df);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode||this.edit._noUpdate){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_5e0){_5e0=Number(_5e0);if(this.updating){this.invalidated[_5e0]=true;}else{this.views.updateRow(_5e0);this.scroller.rowHeightChanged(_5e0);}},updateRows:function(_5e1,_5e2){_5e1=Number(_5e1);_5e2=Number(_5e2);var i;if(this.updating){for(i=0;i<_5e2;i++){this.invalidated[i+_5e1]=true;}}else{for(i=0;i<_5e2;i++){this.views.updateRow(i+_5e1,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_5e1);}},updateRowCount:function(_5e3){if(this.updating){this.invalidated.rowCount=_5e3;}else{this.rowCount=_5e3;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_5e3);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_5e4){this.views.updateRowStyles(_5e4);},getRowNode:function(_5e5){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_5e5];}else{for(var i=0,_5e6;(_5e6=this.views.views[i]);i++){if(!(_5e6 instanceof dojox.grid._RowSelector)){return _5e6.rowNodes[_5e5];}}}return null;},rowHeightChanged:function(_5e7){this.views.renormalizeRow(_5e7);this.scroller.rowHeightChanged(_5e7);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_5e8){if(!this.fastScroll){this.setScrollTop(_5e8);return;}var _5e9=Math.abs(this.lastScrollTop-_5e8);this.lastScrollTop=_5e8;if(_5e9>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_5e8;this.views.setScrollTop(_5e8);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _5ea=this;this._pendingScroll=window.setTimeout(function(){delete _5ea._pendingScroll;_5ea.finishScrollJob();},200);}else{this.setScrollTop(_5e8);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_5eb){this.scroller.scroll(this.views.setScrollTop(_5eb));},scrollToRow:function(_5ec){this.setScrollTop(this.scroller.findScrollTop(_5ec)+1);},styleRowNode:function(_5ed,_5ee){if(_5ee){this.rows.styleRowNode(_5ed,_5ee);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_5ef){return this.layout.cells[_5ef];},setCellWidth:function(_5f0,_5f1){this.getCell(_5f0).unitWidth=_5f1;},getCellName:function(_5f2){return "Cell "+_5f2.index;},canSort:function(_5f3){},sort:function(){},getSortAsc:function(_5f4){_5f4=_5f4==undefined?this.sortInfo:_5f4;return Boolean(_5f4>0);},getSortIndex:function(_5f5){_5f5=_5f5==undefined?this.sortInfo:_5f5;return Math.abs(_5f5)-1;},setSortIndex:function(_5f6,_5f7){var si=_5f6+1;if(_5f7!=undefined){si*=(_5f7?1:-1);}else{if(this.getSortIndex()==_5f6){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_5f8){if(this.canSort(_5f8)){this.sortInfo=_5f8;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_5f9,_5fa){this.onStartEdit(_5f9,_5fa);},doApplyCellEdit:function(_5fb,_5fc,_5fd){this.onApplyCellEdit(_5fb,_5fc,_5fd);},doCancelEdit:function(_5fe){this.onCancelEdit(_5fe);},doApplyEdit:function(_5ff){this.onApplyEdit(_5ff);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});dojox.grid._Grid.markupFactory=function(_600,node,ctor,_601){var d=dojo;var _602=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_600.structure&&node.nodeName.toLowerCase()=="table"){_600.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_602(cg);}return v;});if(!_600.structure.length){_600.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_603){var _604=0;var _605=0;var _606;var _607=null;d.query("> th",tr).map(function(th){if(!_607){_606=0;_607=_600.structure[0];}else{if(_604>=(_606+_607.__span)){_605++;_606+=_607.__span;var _608=_607;_607=_600.structure[_605];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_604+=cell.colSpan;var _609=d.attr(th,"rowspan");if(_609){cell.rowSpan=_609;}if(d.hasAttr(th,"width")){cell.width=_602(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_601){_601(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_607.cells[_603]){_607.cells[_603]=[];}_607.cells[_603].push(cell);});});}return new ctor(_600,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_60a){var _60b=this.grid.getItemIndex(_60a);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_60b);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _60c=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_60c.push(this.grid.getItem(i));}}return _60c;},addToSelection:function(_60d){if(this.mode=="none"){return;}var idx=null;if(typeof _60d=="number"||typeof _60d=="string"){idx=_60d;}else{idx=this.grid.getItemIndex(_60d);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_60e){if(this.mode=="none"){return;}var idx=null;if(typeof _60e=="number"||typeof _60e=="string"){idx=_60e;}else{idx=this.grid.getItemIndex(_60e);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_60f){var idx=null;if(_60f||typeof _60f=="number"){if(typeof _60f=="number"||typeof _60f=="string"){idx=_60f;}else{idx=this.grid.getItemIndex(_60f);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_610,_611){if(_611&&this.field=="_item"&&!this.fields){return _611;}else{if(_611&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_611,f));});return ret;}else{if(!_611&&typeof _610==="string"){return this.inherited(arguments);}}}return (!_611?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_611:this.grid.store.getValue(_611,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _612=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_612=true;}if(!this.updating){this.beginUpdate();_612=true;}if(_612){var _613=this;this._endUpdateDelay=setTimeout(function(){delete _613._endUpdateDelay;_613.endUpdate();},this.updateDelay);}}},_onSet:function(item,_614,_615,_616){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_617){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_617+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_618,_619){this._by_idx[_618]=this._createItem(item,_618);if(!_619){this.updateRow(_618);}},_onNew:function(item,_61a){this._checkUpdateStatus();var _61b=this.get("rowCount");this._addingItem=true;this.updateRowCount(_61b+1);this._addingItem=false;this._addItem(item,_61b);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}},_onRevert:function(){this._refresh();},setStore:function(_61c,_61d,_61e){this._setQuery(_61d,_61e);this._setStore(_61c);this._refresh(true);},setQuery:function(_61f,_620){this._setQuery(_61f,_620);this._refresh(true);},setItems:function(_621){this.items=_621;this._setStore(this.store);this._refresh(true);},_setQuery:function(_622,_623){this.query=_622;this.queryOptions=_623||this.queryOptions;},_setStore:function(_624){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_624;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_625,req){if(!this.scroller){return;}if(_625&&_625.length>0){dojo.forEach(_625,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_625.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_626,_627){_626=_626||0;if(this.store&&!this._pending_requests[_626]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_626]=true;try{if(this.items){var _628=this.items;var _629=this.store;this.rowsPerPage=_628.length;var req={start:_626,count:this.rowsPerPage,isRender:_627};this._onFetchBegin(_628.length,req);var _62a=0;dojo.forEach(_628,function(i){if(!_629.isItemLoaded(i)){_62a++;}});if(_62a===0){this._onFetchComplete(_628,req);}else{var _62b=function(item){_62a--;if(_62a===0){this._onFetchComplete(_628,req);}};dojo.forEach(_628,function(i){if(!_629.isItemLoaded(i)){_629.loadItem({item:i,onItem:_62b,scope:this});}},this);}}else{this.store.fetch({start:_626,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_627,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_626,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_62c){if(!_62c&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_62d,_62e){this.query=_62d;if(_62e){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_62f){return this._pending_requests[_62f];},_rowToPage:function(_630){return (this.rowsPerPage?Math.floor(_630/this.rowsPerPage):_630);},_pageToRow:function(_631){return (this.rowsPerPage?this.rowsPerPage*_631:_631);},_preparePage:function(_632){if((_632<this._bop||_632>=this._eop)&&!this._addingItem){var _633=this._rowToPage(_632);this._needPage(_633);this._bop=_633*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_634){if(!this._pages[_634]){this._pages[_634]=true;this._requestPage(_634);}},_requestPage:function(_635){var row=this._pageToRow(_635);var _636=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_636>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_637){return _637.field;},_refresh:function(_638){this._clearData();this._fetch(0,_638);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_639){if(this.store&&this.store.getState){var _63a=this.store.getState(_639.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_63a[s]){c=" dojoxGridRow-"+s;break;}}_639.customClasses+=c;}},onStyleRow:function(_63b){this.styleRowState(_63b);this.inherited(arguments);},canEdit:function(_63c,_63d){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _63e={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_63f,_640){if(!this._cache[_640]){this._cache[_640]=this._copyAttr(_640,_63f.field);}this.onStartEdit(_63f,_640);},doApplyCellEdit:function(_641,_642,_643){this.store.fetchItemByIdentity({identity:this._by_idx[_642].idty,onItem:dojo.hitch(this,function(item){var _644=this.store.getValue(item,_643);if(typeof _644=="number"){_641=isNaN(_641)?_641:parseFloat(_641);}else{if(typeof _644=="boolean"){_641=_641=="true"?true:_641=="false"?false:_641;}else{if(_644 instanceof Date){var _645=new Date(_641);_641=isNaN(_645.getTime())?_641:_645;}}}this.store.setValue(item,_643,_641);this.onApplyCellEdit(_641,_642,_643);})});},doCancelEdit:function(_646){var _647=this._cache[_646];if(_647){this.updateRow(_646);delete this._cache[_646];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_648,_649){var _64a=this._cache[_648];this.onApplyEdit(_648);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_64b){if(_64b.length){dojo.forEach(_64b,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_64c,node,_64d){var _64e=dojo.trim(dojo.attr(node,"field")||"");if(_64e){_64d.field=_64e;}_64d.field=_64d.field||_64d.name;var _64f=dojo.trim(dojo.attr(node,"fields")||"");if(_64f){_64d.fields=_64f.split(",");}if(_64c){_64c(node,_64d);}};dojox.grid.DataGrid.markupFactory=function(_650,node,ctor,_651){return dojox.grid._Grid.markupFactory(_650,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_651));};}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 _652=this;dojo.mixin(_652,args);_652.node=args.node;_652._showArgs=dojo.mixin({},args);_652._showArgs.node=_652.node;_652._showArgs.duration=_652.showDuration;_652.showAnim=_652.showFunc(_652._showArgs);_652._hideArgs=dojo.mixin({},args);_652._hideArgs.node=_652.node;_652._hideArgs.duration=_652.hideDuration;_652.hideAnim=_652.hideFunc(_652._hideArgs);dojo.connect(_652.showAnim,"beforeBegin",dojo.hitch(_652.hideAnim,"stop",true));dojo.connect(_652.hideAnim,"beforeBegin",dojo.hitch(_652.showAnim,"stop",true));},show:function(_653){return this.showAnim.play(_653||0);},hide:function(_654){return this.hideAnim.play(_654||0);}});}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");(function(){var d=dojo,_655={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _656=function(_657){this._index=-1;this._animations=_657||[];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(_656,{_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(_658,_659){if(!this._current){this._current=this._animations[this._index=0];}if(!_659&&this._current.status()=="playing"){return this;}var _65a=d.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_65b=d.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_65c=d.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);d.disconnect(_65a);d.disconnect(_65b);d.disconnect(_65c);});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(_65d,_65e){this.pause();var _65f=this.duration*_65d;this._current=null;d.some(this._animations,function(a){if(a.duration<=_65f){this._current=a;return true;}_65f-=a.duration;return false;});if(this._current){this._current.gotoPercent(_65f/this._current.duration,_65e);}return this;},stop:function(_660){if(this._current){if(_660){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(_656,_655);dojo.fx.chain=function(_661){return new _656(_661);};var _662=function(_663){this._animations=_663||[];this._connects=[];this._finished=0;this.duration=0;d.forEach(_663,function(a){var _664=a.duration;if(a.delay){_664+=a.delay;}if(this.duration<_664){this.duration=_664;}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(_662,{_doAction:function(_665,args){d.forEach(this._animations,function(a){a[_665].apply(a,args);});return this;},_onEnd:function(){if(++this._finished>this._animations.length){this._fire("onEnd");}},_call:function(_666,args){var t=this._pseudoAnimation;t[_666].apply(t,args);},play:function(_667,_668){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(_669,_66a){var ms=this.duration*_669;d.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_66a);});this._call("gotoPercent",arguments);return this;},stop:function(_66b){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(_662,_655);dojo.fx.combine=function(_66c){return new _662(_66c);};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 _66d=d.style(node,"height");return Math.max(_66d,1);}},end:function(){return node.scrollHeight;}}}},args));d.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};dojo.fx.wipeOut=function(args){var node=args.node=d.byId(args.node),s=node.style,o;var anim=d.animateProperty(d.mixin({properties:{height:{end:1}}},args));d.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});d.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};dojo.fx.slideTo=function(args){var node=args.node=d.byId(args.node),top=null,left=null;var init=(function(n){return function(){var cs=d.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);left=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=d.position(n,true);top=ret.y;left=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=left+"px";}};})(node);init();var anim=d.animateProperty(d.mixin({properties:{top:args.top||0,left:args.left||0}},args));d.connect(anim,"beforeBegin",anim,init);return anim;};})();}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_66e){_66e.startup();_66e._started=true;});},startup:function(){if(this._started){return;}var _66f=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_66f&&_66f.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 _670=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_671=_670.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_672=dojo.filter(_671.map(dijit.byNode),function(_673){return _673&&_673.domNode&&_673.resize;});if(_670.length==_671.length&&_672.length==1){this._singleChild=_672[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_674,_675){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_674,_675);},_scheduleLayout:function(_676,_677){if(this._isShown()){this._layout(_676,_677);}else{this._needLayout=true;this._changeSize=_676;this._resultSize=_677;}},_layout:function(_678,_679){if(_678){dojo.marginBox(this.domNode,_678);}var cn=this.containerNode;if(cn===this.domNode){var mb=_679||{};dojo.mixin(mb,_678||{});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(_67a){if(_67a.resize){_67a.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,_67b=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_67b&&_67b.style&&(_67b.style.display!="none");}}},_onShow:function(){this._wasShown=true;if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);}});}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _67c=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 _67d=cont.length,i=0;i<cont.length;i=_67d==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(_67e,node){dojo.mixin(this,_67e||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_67c++].join("_");}},set:function(cont,_67f){if(undefined!==cont){this.content=cont;}if(_67f){this._mixin(_67f);}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 _680=this.onContentError(e);try{node.innerHTML=_680;}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 _681=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_681){cont=_681[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(_682){var _683={},key;for(key in _682){if(key in _683){continue;}this[key]=_682[key];}},_parse:function(){var _684=this.node;try{var _685={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_685[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_684,noStart:!this.startup,inherited:_685,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_686){var _687=this["on"+type+"Error"].call(this,err);if(_686){console.error(_686,err);}else{if(_687){dojo.html._setNodeContent(this.node,_687,true);}}}});dojo.html.set=function(node,cont,_688){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_688){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_688,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_689,_68a){if((!_689||!_689.template)&&_68a&&!("href" in _689)&&!("content" in _689)){var df=dojo.doc.createDocumentFragment();_68a=dojo.byId(_68a);while(_68a.firstChild){df.appendChild(_68a.firstChild);}_689=dojo.delegate(_689,{content:df});}this.inherited(arguments,[_689,_68a]);},postMixInProperties:function(){this.inherited(arguments);var _68b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_68b);this.errorMessage=dojo.string.substitute(this.errorMessage,_68b);},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(_68c){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 _68d={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_68d,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_68d));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 _68e=this._contentSetter;dojo.forEach(this.getChildren(),function(_68f){if(_68f.destroyRecursive){_68f.destroyRecursive();}});if(_68e){dojo.forEach(_68e.parseResults,function(_690){if(_690.destroyRecursive&&_690.domNode&&_690.domNode.parentNode==dojo.body()){_690.destroyRecursive();}});delete _68e.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_691){this.destroyDescendants();var _692=this._contentSetter;if(!(_692&&_692 instanceof dojo.html._ContentSetter)){_692=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _693=this.onContentError(e);try{this.containerNode.innerHTML=_693;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _694=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_692.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_694);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_691){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_695){this.onLoadDeferred.errback(err);var _696=this["on"+type+"Error"].call(this,err);if(_695){console.error(_695,err);}else{if(_696){this._setContent(_696,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_697){},onDownloadError:function(_698){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated,dijit._CssStateMixin],{title:"",open:true,toggleable:true,tabIndex:"0",duration:dijit.defaultDuration,baseClass:"dijitTitlePane",templateString:dojo.cache("dijit","templates/TitlePane.html","<div>\n\t<div dojoAttachEvent=\"onclick:_onTitleClick, onkeypress:_onTitleKey\"\n\t\t\tclass=\"dijitTitlePaneTitle\" dojoAttachPoint=\"titleBarNode\">\n\t\t<div class=\"dijitTitlePaneTitleFocus\" dojoAttachPoint=\"focusNode\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" dojoAttachPoint=\"arrowNode\" class=\"dijitArrowNode\" role=\"presentation\"\n\t\t\t/><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span\n\t\t\t><span dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></span>\n\t\t</div>\n\t</div>\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\" role=\"presentation\">\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\" role=\"presentation\">\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" role=\"region\" id=\"${id}_pane\">\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n"),attributeMap:dojo.delegate(dijit.layout.ContentPane.prototype.attributeMap,{title:{node:"titleNode",type:"innerHTML"},tooltip:{node:"focusNode",type:"attribute",attribute:"title"},id:""}),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.titleNode,false);},postCreate:function(){this.inherited(arguments);if(this.toggleable){this._trackMouseState(this.titleBarNode,"dijitTitlePaneTitle");}var _699=this.hideNode,_69a=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_699.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_699.style.display="none";}});},_setOpenAttr:function(open,_69b){dojo.forEach([this._wipeIn,this._wipeOut],function(_69c){if(_69c&&_69c.status()=="playing"){_69c.stop();}});if(_69b){var anim=this[open?"_wipeIn":"_wipeOut"];anim.play();}else{this.hideNode.style.display=this.wipeNode.style.display=open?"":"none";}if(this._started){if(open){this._onShow();}else{this.onHide();}}this.arrowNodeInner.innerHTML=open?"-":"+";dijit.setWaiState(this.containerNode,"hidden",open?"false":"true");dijit.setWaiState(this.focusNode,"pressed",open?"true":"false");this._set("open",open);this._setCss();},_setToggleableAttr:function(_69d){dijit.setWaiRole(this.focusNode,_69d?"button":"heading");if(_69d){dijit.setWaiState(this.focusNode,"controls",this.id+"_pane");dojo.attr(this.focusNode,"tabIndex",this.tabIndex);}else{dojo.removeAttr(this.focusNode,"tabIndex");}this._set("toggleable",_69d);this._setCss();},_setContentAttr:function(_69e){if(!this.open||!this._wipeOut||this._wipeOut.status()=="playing"){this.inherited(arguments);}else{if(this._wipeIn&&this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited(arguments);if(this._wipeIn){this._wipeIn.play();}else{this.hideNode.style.display="";}}},toggle:function(){this._setOpenAttr(!this.open,true);},_setCss:function(){var node=this.titleBarNode||this.focusNode;var _69f=this._titleBarClass;this._titleBarClass="dijit"+(this.toggleable?"":"Fixed")+(this.open?"Open":"Closed");dojo.replaceClass(node,this._titleBarClass,_69f||"");this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.charOrCode==dojo.keys.ENTER||e.charOrCode==" "){if(this.toggleable){this.toggle();}dojo.stopEvent(e);}else{if(e.charOrCode==dojo.keys.DOWN_ARROW&&this.open){this.containerNode.focus();e.preventDefault();}}},_onTitleClick:function(){if(this.toggleable){this.toggle();}},setTitle:function(_6a0){dojo.deprecated("dijit.TitlePane.setTitle() is deprecated.  Use set('title', ...) instead.","","2.0");this.set("title",_6a0);}});}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(_6a1,node){return new dojo.dnd.move.constrainedMoveable(node,_6a1);},constructor:function(node,_6a2){if(!_6a2){_6a2={};}this.constraints=_6a2.constraints;this.within=_6a2.within;},onFirstMove:function(_6a3){var c=this.constraintBox=this.constraints.call(this,_6a3);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=dojo._getMarginSize(_6a3.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_6a4,_6a5){var c=this.constraintBox,s=_6a4.node.style;this.onMoving(_6a4,_6a5);_6a5.l=_6a5.l<c.l?c.l:c.r<_6a5.l?c.r:_6a5.l;_6a5.t=_6a5.t<c.t?c.t:c.b<_6a5.t?c.b:_6a5.t;s.left=_6a5.l+"px";s.top=_6a5.t+"px";this.onMoved(_6a4,_6a5);}});dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_6a6,node){return new dojo.dnd.move.boxConstrainedMoveable(node,_6a6);},constructor:function(node,_6a7){var box=_6a7&&_6a7.box;this.constraints=function(){return box;};}});dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_6a8,node){return new dojo.dnd.move.parentConstrainedMoveable(node,_6a8);},constructor:function(node,_6a9){var area=_6a9&&_6a9.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 _6aa=dojo.dnd.Moveable.prototype.onMove;dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(node,_6ab){if(!_6ab){_6ab={};}if(_6ab.timeout&&typeof _6ab.timeout=="number"&&_6ab.timeout>=0){this.timeout=_6ab.timeout;}},markupFactory:function(_6ac,node){return new dojo.dnd.TimedMoveable(node,_6ac);},onMoveStop:function(_6ad){if(_6ad._timer){clearTimeout(_6ad._timer);_6aa.call(this,_6ad,_6ad._leftTop);}dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_6ae,_6af){_6ae._leftTop=_6af;if(!_6ae._timer){var _6b0=this;_6ae._timer=setTimeout(function(){_6ae._timer=null;_6aa.call(_6b0,_6ae,_6ae._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(_6b1){if(_6b1.reset){_6b1.reset();}});},validate:function(){var _6b2=false;return dojo.every(dojo.map(this.getDescendants(),function(_6b3){_6b3._hasBeenBlurred=true;var _6b4=_6b3.disabled||!_6b3.validate||_6b3.validate();if(!_6b4&&!_6b2){dojo.window.scrollIntoView(_6b3.containerNode||_6b3.domNode);_6b3.focus();_6b2=true;}return _6b4;}),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(_6b5){if(!_6b5.name){return;}var _6b6=map[_6b5.name]||(map[_6b5.name]=[]);_6b6.push(_6b5);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _6b7=map[name],_6b8=dojo.getObject(name,false,obj);if(_6b8===undefined){continue;}if(!dojo.isArray(_6b8)){_6b8=[_6b8];}if(typeof _6b7[0].checked=="boolean"){dojo.forEach(_6b7,function(w,i){w.set("value",dojo.indexOf(_6b8,w.value)!=-1);});}else{if(_6b7[0].multiple){_6b7[0].set("value",_6b8);}else{dojo.forEach(_6b7,function(w,i){w.set("value",_6b8[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(_6b9){var name=_6b9.name;if(!name||_6b9.disabled){return;}var _6ba=_6b9.get("value");if(typeof _6b9.checked=="boolean"){if(/Radio/.test(_6b9.declaredClass)){if(_6ba!==false){dojo.setObject(name,_6ba,obj);}else{_6ba=dojo.getObject(name,false,obj);if(_6ba===undefined){dojo.setObject(name,null,obj);}}}else{var ary=dojo.getObject(name,false,obj);if(!ary){ary=[];dojo.setObject(name,ary,obj);}if(_6ba!==false){ary.push(_6ba);}}}else{var prev=dojo.getObject(name,false,obj);if(typeof prev!="undefined"){if(dojo.isArray(prev)){prev.push(_6ba);}else{dojo.setObject(name,[prev,_6ba],obj);}}else{dojo.setObject(name,_6ba,obj);}}});return obj;},isValid:function(){return this.state=="";},onValidStateChange:function(_6bb){},_getState:function(){var _6bc=dojo.map(this._descendants,function(w){return w.get("state")||"";});return dojo.indexOf(_6bc,"Error")>=0?"Error":dojo.indexOf(_6bc,"Incomplete")>=0?"Incomplete":"";},disconnectChildren:function(){dojo.forEach(this._childConnections||[],dojo.hitch(this,"disconnect"));dojo.forEach(this._childWatches||[],function(w){w.unwatch();});},connectChildren:function(_6bd){var _6be=this;this.disconnectChildren();this._descendants=this.getDescendants();var set=_6bd?function(name,val){_6be[name]=val;}:dojo.hitch(this,"_set");set("value",this.get("value"));set("state",this._getState());var _6bf=(this._childConnections=[]),_6c0=(this._childWatches=[]);dojo.forEach(dojo.filter(this._descendants,function(item){return item.validate;}),function(_6c1){dojo.forEach(["state","disabled"],function(attr){_6c0.push(_6c1.watch(attr,function(attr,_6c2,_6c3){_6be.set("state",_6be._getState());}));});});var _6c4=function(){if(_6be._onChangeDelayTimer){clearTimeout(_6be._onChangeDelayTimer);}_6be._onChangeDelayTimer=setTimeout(function(){delete _6be._onChangeDelayTimer;_6be._set("value",_6be.get("value"));},10);};dojo.forEach(dojo.filter(this._descendants,function(item){return item.onChange;}),function(_6c5){_6bf.push(_6be.connect(_6c5,"onChange",_6c4));_6c0.push(_6c5.watch("disabled",_6c4));});},startup:function(){this.inherited(arguments);this.connectChildren(true);this.watch("state",function(attr,_6c6,_6c7){this.onValidStateChange(_6c7=="");});},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(_6c8){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.get("value"));},_getFocusItems:function(){var _6c9=dijit._getTabNavigable(this.containerNode);this._firstFocusItem=_6c9.lowest||_6c9.first||this.closeButtonNode||this.domNode;this._lastFocusItem=_6c9.last||_6c9.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(_6ca){this.node.className="dijitDialogUnderlay "+_6ca;this._set("class",_6ca);},postCreate:function(){dojo.body().appendChild(this.domNode);},layout:function(){var is=this.node.style,os=this.domNode.style;os.display="none";var _6cb=dojo.window.getBox();os.top=_6cb.t+"px";os.left=_6cb.l+"px";is.width=_6cb.w+"px";is.height=_6cb.h+"px";os.display="block";},show:function(){this.domNode.style.display="block";this.layout();this.bgIframe=new dijit.BackgroundIframe(this.domNode);},hide:function(){this.bgIframe.destroy();delete this.bgIframe;this.domNode.style.display="none";}});}if(!dojo._hasResource["dijit.TooltipDialog"]){dojo._hasResource["dijit.TooltipDialog"]=true;dojo.provide("dijit.TooltipDialog");dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div role=\"presentation\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" role=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\"></div>\n</div>\n"),_setTitleAttr:function(_6cc){this.containerNode.title=_6cc;this._set("title",_6cc);},postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");},orient:function(node,_6cd,_6ce){var newC="dijitTooltipAB"+(_6ce.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_6ce.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 _6cf=(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(!_6cf){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_6cf){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 _6d0=dojo.i18n.getLocalization("dijit","common");dojo.mixin(this,_6d0);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 _6d1=dojo.window.getBox();if(mb.w>=_6d1.w||mb.h>=_6d1.h){var w=Math.min(mb.w,Math.floor(_6d1.w*0.75)),h=Math.min(mb.h,Math.floor(_6d1.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,_6d2=dojo.window.getBox(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(node),l=Math.floor(_6d2.l+(p?p.x:(_6d2.w-bb.w)/2)),t=Math.floor(_6d2.t+(p?p.y:(_6d2.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 _6d3=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_6d3){dijit.focus(this._lastFocusItem);}dojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_6d3){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();dijit._DialogLevelManager.hide(this);}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(window,"onresize",this,function(){var _6d4=dojo.window.getBox();if(!this._oldViewport||_6d4.h!=this._oldViewport.h||_6d4.w!=this._oldViewport.w){this.layout();this._oldViewport=_6d4;}}));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 _6d5;this._fadeInDeferred=new dojo.Deferred(dojo.hitch(this,function(){_6d5.stop();delete this._fadeInDeferred;}));_6d5=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||!this.open){return;}if(this._fadeInDeferred){this._fadeInDeferred.cancel();}var _6d6;this._fadeOutDeferred=new dojo.Deferred(dojo.hitch(this,function(){_6d6.stop();delete this._fadeOutDeferred;}));_6d6=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(_6d7,_6d8){var ds=dijit._dialogStack;ds[ds.length-1].focus=dijit.getFocus(_6d7);var _6d9=dijit._underlay;if(!_6d9||_6d9._destroyed){_6d9=dijit._underlay=new dijit.DialogUnderlay(_6d8);}else{_6d9.set(_6d7.underlayAttrs);}var _6da=ds[ds.length-1].dialog?ds[ds.length-1].zIndex+2:950;if(ds.length==1){_6d9.show();}dojo.style(dijit._underlay.domNode,"zIndex",_6da-1);dojo.style(_6d7.domNode,"zIndex",_6da);ds.push({dialog:_6d7,underlayAttrs:_6d8,zIndex:_6da});},hide:function(_6db){var ds=dijit._dialogStack;if(ds[ds.length-1].dialog==_6db){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(_6db.refocus){var _6dc=pd.focus;if(!_6dc||(pd.dialog&&!dojo.isDescendant(_6dc.node,pd.dialog.domNode))){pd.dialog._getFocusItems(pd.dialog.domNode);_6dc=pd.dialog._firstFocusItem;}try{dijit.focus(_6dc);}catch(e){}}}else{var idx=dojo.indexOf(dojo.map(ds,function(elem){return elem.dialog;}),_6db);if(idx!=-1){ds.splice(idx,1);}}},isTop:function(_6dd){var ds=dijit._dialogStack;return ds[ds.length-1].dialog==_6dd;}};dijit._dialogStack=[{dialog:null,focus:null,underlayAttrs:null}];}dojo.i18n._preloadLocalizations("dojo.nls.vclManageGroups",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
