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

/*
	This is a compiled version of tojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://tojotoolkit.org

	for documentation and information on getting the source.
*/

if(!tojo._hasResource["tojo.date.stamp"]){tojo._hasResource["tojo.date.stamp"]=true;tojo.provide("tojo.date.stamp");tojo.date.stamp.fromISOString=function(_1,_2){if(!tojo.date.stamp._isoRegExp){tojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=tojo.date.stamp._isoRegExp.exec(_1);var _4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);tojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}).forEach(function(_6,_7){if(_3[_7]===undefined){_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);var _8=0;var _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;};tojo.date.stamp.toISOString=function(_a,_b){var _=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _e=[];var _f=_b.zulu?"getUTC":"get";var _10="";if(_b.selector!="time"){var _11=_a[_f+"FullYear"]();_10=["0000".substr((_11+"").length)+_11,_(_a[_f+"Month"]()+1),_(_a[_f+"Date"]())].join("-");}_e.push(_10);if(_b.selector!="date"){var _12=[_(_a[_f+"Hours"]()),_(_a[_f+"Minutes"]()),_(_a[_f+"Seconds"]())].join(":");var _13=_a[_f+"Milliseconds"]();if(_b.milliseconds){_12+="."+(_13<100?"0":"")+_(_13);}if(_b.zulu){_12+="Z";}else{if(_b.selector!="time"){var _14=_a.getTimezoneOffset();var _15=Math.abs(_14);_12+=(_14>0?"-":"+")+_(Math.floor(_15/60))+":"+_(_15%60);}}_e.push(_12);}return _e.join("T");};}if(!tojo._hasResource["tojo.parser"]){tojo._hasResource["tojo.parser"]=true;tojo.provide("tojo.parser");tojo.parser=new function(){var d=tojo;var _17=d._scopeName+"Type";var qry="["+_17+"]";function val2type(_19){if(d.isString(_19)){return "string";}if(typeof _19=="number"){return "number";}if(typeof _19=="boolean"){return "boolean";}if(d.isFunction(_19)){return "function";}if(d.isArray(_19)){return "array";}if(_19 instanceof Date){return "date";}if(_19 instanceof d._Url){return "url";}return "object";};function str2obj(_1a,_1b){switch(_1b){case "string":return _1a;case "number":return _1a.length?Number(_1a):NaN;case "boolean":return typeof _1a=="boolean"?_1a:!(_1a.toLowerCase()=="false");case "function":if(d.isFunction(_1a)){_1a=_1a.toString();_1a=d.trim(_1a.substring(_1a.indexOf("{")+1,_1a.length-1));}try{if(_1a.search(/[^\w\.]+/i)!=-1){_1a=d.parser._nameAnonFunc(new Function(_1a),this);}return d.getObject(_1a,false);}catch(e){return new Function();}case "array":return _1a?_1a.split(/\s*,\s*/):[];case "date":switch(_1a){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_1a);}case "url":return d.baseUrl+_1a;default:return d.fromJson(_1a);}};var _1c={};function getClassInfo(_1d){if(!_1c[_1d]){var cls=d.getObject(_1d);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_1d+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _1f=cls.prototype;var _20={};for(var _21 in _1f){if(_21.charAt(0)=="_"){continue;}var _22=_1f[_21];_20[_21]=val2type(_22);}_1c[_1d]={cls:cls,params:_20};}return _1c[_1d];};this._functionFromScript=function(_23){var _24="";var _25="";var _26=_23.getAttribute("args");if(_26){d.forEach(_26.split(/\s*,\s*/),function(_27,idx){_24+="var "+_27+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_24+="with("+_2a+"){";_25+="}";});}return new Function(_24+_23.innerHTML+_25);};this.instantiate=function(_2b){var _2c=[];d.forEach(_2b,function(_2d){if(!_2d){return;}var _2e=_2d.getAttribute(_17);if((!_2e)||(!_2e.length)){return;}var _2f=getClassInfo(_2e);var _30=_2f.cls;var ps=_30._noScript||_30.prototype._noScript;var _32={};var _33=_2d.attributes;for(var _34 in _2f.params){var _35=_33.getNamedItem(_34);if(!_35||(!_35.specified&&(!tojo.isIE||_34.toLowerCase()!="value"))){continue;}var _36=_35.value;switch(_34){case "class":_36=_2d.className;break;case "style":_36=_2d.style&&_2d.style.cssText;}var _37=_2f.params[_34];_32[_34]=str2obj(_36,_37);}if(!ps){var _38=[],_39=[];d.query("> script[type^='tojo/']",_2d).orphan().forEach(function(_3a){var _3b=_3a.getAttribute("event"),_2e=_3a.getAttribute("type"),nf=d.parser._functionFromScript(_3a);if(_3b){if(_2e=="tojo/connect"){_38.push({event:_3b,func:nf});}else{_32[_3b]=nf;}}else{_39.push(nf);}});}var _3d=_30["markupFactory"];if(!_3d&&_30["prototype"]){_3d=_30.prototype["markupFactory"];}var _3e=_3d?_3d(_32,_2d,_30):new _30(_32,_2d);_2c.push(_3e);var _3f=_2d.getAttribute("jsId");if(_3f){d.setObject(_3f,_3e);}if(!ps){d.forEach(_38,function(_40){d.connect(_3e,_40.event,null,_40.func);});d.forEach(_39,function(_41){_41.call(_3e);});}});d.forEach(_2c,function(_42){if(_42&&_42.startup&&!_42._started&&(!_42.getParent||!_42.getParent())){_42.startup();}});return _2c;};this.parse=function(_43){var _44=d.query(qry,_43);var _45=this.instantiate(_44);return _45;};}();(function(){var _46=function(){if(tojo.config["parseOnLoad"]==true){tojo.parser.parse();}};if(tojo.exists("dijit.wai.onload")&&(dijit.wai.onload===tojo._loaders[0])){tojo._loaders.splice(1,0,_46);}else{tojo._loaders.unshift(_46);}})();tojo.parser._anonCtr=0;tojo.parser._anon={};tojo.parser._nameAnonFunc=function(_47,_48){var jpn="$joinpoint";var nso=(_48||tojo.parser._anon);if(tojo.isIE){var cn=_47["__tojoNameCache"];if(cn&&nso[cn]===_47){return _47["__tojoNameCache"];}}var ret="__"+tojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+tojo.parser._anonCtr++;}nso[ret]=_47;return ret;};}if(!tojo._hasResource["tojo.html"]){tojo._hasResource["tojo.html"]=true;tojo.provide("tojo.html");(function(){var _4d=0;tojo.html._secureForInnerHtml=function(_4e){return _4e.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};tojo.html._emptyNode=function(_4f){while(_4f.firstChild){tojo._destroyElement(_4f.firstChild);}};tojo.html._setNodeContent=function(_50,_51,_52){if(_52){tojo.html._emptyNode(_50);}if(typeof _51=="string"){var pre="",_54="",_55=0,_56=_50.nodeName.toLowerCase();switch(_56){case "tr":pre="<tr>";_54="</tr>";_55+=1;case "tbody":case "thead":pre="<tbody>"+pre;_54+="</tbody>";_55+=1;case "table":pre="<table>"+pre;_54+="</table>";_55+=1;break;}if(_55){var n=_50.ownerDocument.createElement("div");n.innerHTML=pre+_51+_54;do{n=n.firstChild;}while(--_55);tojo.forEach(n.childNodes,function(n){_50.appendChild(n.cloneNode(true));});}else{_50.innerHTML=_51;}}else{if(_51.nodeType){_50.appendChild(_51);}else{tojo.forEach(_51,function(n){_50.appendChild(n.cloneNode(true));});}}return _50;};tojo.declare("tojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_5a,_5b){tojo.mixin(this,_5a||{});_5b=this.node=tojo.byId(this.node||_5b);if(!this.id){this.id=["Setter",(_5b)?_5b.id||_5b.tagName:"",_4d++].join("_");}if(!(this.node||_5b)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(_5c,_5d){if(undefined!==_5c){this.content=_5c;}if(_5d){this._mixin(_5d);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _5e=this.node;if(!_5e){console.error("setContent given no node");}try{_5e=tojo.html._setNodeContent(_5e,this.content);}catch(e){var _5f=this.onContentError(e);try{_5e.innerHTML=_5f;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_5e;},empty:function(){if(this.parseResults&&this.parseResults.length){tojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}tojo.html._emptyNode(this.node);},onBegin:function(){var _61=this.content;if(tojo.isString(_61)){if(this.cleanContent){_61=tojo.html._secureForInnerHtml(_61);}if(this.extractContent){var _62=_61.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_62){_61=_62[1];}}}this.empty();this.content=_61;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(_64){var _65={},key;for(key in _64){if(key in _65){continue;}this[key]=_64[key];}},_parse:function(){var _67=this.node;try{this.parseResults=tojo.parser.parse(_67,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_68,err,_6a){var _6b=this["on"+_68+"Error"].call(this,err);if(_6a){console.error(_6a,err);}else{if(_6b){tojo.html._setNodeContent(this.node,_6b,true);}}}});tojo.html.set=function(_6c,_6d,_6e){if(undefined==_6d){console.warn("tojo.html.set: no cont argument provided, using empty string");_6d="";}if(!_6e){return tojo.html._setNodeContent(_6c,_6d,true);}else{var op=new tojo.html._ContentSetter(tojo.mixin(_6e,{content:_6d,node:_6c}));return op.set();}};})();}if(!tojo._hasResource["tojo.data.util.filter"]){tojo._hasResource["tojo.data.util.filter"]=true;tojo.provide("tojo.data.util.filter");tojo.data.util.filter.patternToRegExp=function(_70,_71){var rxp="^";var c=null;for(var i=0;i<_70.length;i++){c=_70.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_70.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(_71){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!tojo._hasResource["tojo.data.util.sorter"]){tojo._hasResource["tojo.data.util.sorter"]=true;tojo.provide("tojo.data.util.sorter");tojo.data.util.sorter.basicComparator=function(a,b){var ret=0;if(a>b||typeof a==="undefined"||a===null){ret=1;}else{if(a<b||typeof b==="undefined"||b===null){ret=-1;}}return ret;};tojo.data.util.sorter.createSortFunction=function(_78,_79){var _7a=[];function createSortFunction(_7b,dir){return function(_7d,_7e){var a=_79.getValue(_7d,_7b);var b=_79.getValue(_7e,_7b);var _81=null;if(_79.comparatorMap){if(typeof _7b!=="string"){_7b=_79.getIdentity(_7b);}_81=_79.comparatorMap[_7b]||tojo.data.util.sorter.basicComparator;}_81=_81||tojo.data.util.sorter.basicComparator;return dir*_81(a,b);};};var _82;for(var i=0;i<_78.length;i++){_82=_78[i];if(_82.attribute){var _84=(_82.descending)?-1:1;_7a.push(createSortFunction(_82.attribute,_84));}}return function(_85,_86){var i=0;while(i<_7a.length){var ret=_7a[i++](_85,_86);if(ret!==0){return ret;}}return 0;};};}if(!tojo._hasResource["tojo.data.util.simpleFetch"]){tojo._hasResource["tojo.data.util.simpleFetch"]=true;tojo.provide("tojo.data.util.simpleFetch");tojo.data.util.simpleFetch.fetch=function(_89){_89=_89||{};if(!_89.store){_89.store=this;}var _8a=this;var _8b=function(_8c,_8d){if(_8d.onError){var _8e=_8d.scope||tojo.global;_8d.onError.call(_8e,_8c,_8d);}};var _8f=function(_90,_91){var _92=_91.abort||null;var _93=false;var _94=_91.start?_91.start:0;var _95=(_91.count&&(_91.count!==Infinity))?(_94+_91.count):_90.length;_91.abort=function(){_93=true;if(_92){_92.call(_91);}};var _96=_91.scope||tojo.global;if(!_91.store){_91.store=_8a;}if(_91.onBegin){_91.onBegin.call(_96,_90.length,_91);}if(_91.sort){_90.sort(tojo.data.util.sorter.createSortFunction(_91.sort,_8a));}if(_91.onItem){for(var i=_94;(i<_90.length)&&(i<_95);++i){var _98=_90[i];if(!_93){_91.onItem.call(_96,_98,_91);}}}if(_91.onComplete&&!_93){var _99=null;if(!_91.onItem){_99=_90.slice(_94,_95);}_91.onComplete.call(_96,_99,_91);}};this._fetchItems(_89,_8f,_8b);return _89;};}if(!tojo._hasResource["tojo.data.ItemFileReadStore"]){tojo._hasResource["tojo.data.ItemFileReadStore"]=true;tojo.provide("tojo.data.ItemFileReadStore");tojo.declare("tojo.data.ItemFileReadStore",null,{constructor:function(_9a){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_9a.url;this._jsonData=_9a.data;this._datatypeMap=_9a.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_9b){return tojo.date.stamp.fromISOString(_9b);}};}this._features={"tojo.data.api.Read":true,"tojo.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(_9a.urlPreventCache!==undefined){this.urlPreventCache=_9a.urlPreventCache?true:false;}if(_9a.clearOnClose){this.clearOnClose=true;}},url:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,_assertIsItem:function(_9c){if(!this.isItem(_9c)){throw new Error("tojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_9d){if(typeof _9d!=="string"){throw new Error("tojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(_9e,_9f,_a0){var _a1=this.getValues(_9e,_9f);return (_a1.length>0)?_a1[0]:_a0;},getValues:function(_a2,_a3){this._assertIsItem(_a2);this._assertIsAttribute(_a3);return _a2[_a3]||[];},getAttributes:function(_a4){this._assertIsItem(_a4);var _a5=[];for(var key in _a4){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_a5.push(key);}}return _a5;},hasAttribute:function(_a7,_a8){return this.getValues(_a7,_a8).length>0;},containsValue:function(_a9,_aa,_ab){var _ac=undefined;if(typeof _ab==="string"){_ac=tojo.data.util.filter.patternToRegExp(_ab,false);}return this._containsValue(_a9,_aa,_ab,_ac);},_containsValue:function(_ad,_ae,_af,_b0){return tojo.some(this.getValues(_ad,_ae),function(_b1){if(_b1!==null&&!tojo.isObject(_b1)&&_b0){if(_b1.toString().match(_b0)){return true;}}else{if(_af===_b1){return true;}}});},isItem:function(_b2){if(_b2&&_b2[this._storeRefPropName]===this){if(this._arrayOfAllItems[_b2[this._itemNumPropName]]===_b2){return true;}}return false;},isItemLoaded:function(_b3){return this.isItem(_b3);},loadItem:function(_b4){this._assertIsItem(_b4.item);},getFeatures:function(){return this._features;},getLabel:function(_b5){if(this._labelAttr&&this.isItem(_b5)){return this.getValue(_b5,this._labelAttr);}return undefined;},getLabelAttributes:function(_b6){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_b7,_b8,_b9){var _ba=this;var _bb=function(_bc,_bd){var _be=[];if(_bc.query){var _bf=_bc.queryOptions?_bc.queryOptions.ignoreCase:false;var _c0={};for(var key in _bc.query){var _c2=_bc.query[key];if(typeof _c2==="string"){_c0[key]=tojo.data.util.filter.patternToRegExp(_c2,_bf);}}for(var i=0;i<_bd.length;++i){var _c4=true;var _c5=_bd[i];if(_c5===null){_c4=false;}else{for(var key in _bc.query){var _c2=_bc.query[key];if(!_ba._containsValue(_c5,key,_c2,_c0[key])){_c4=false;}}}if(_c4){_be.push(_c5);}}_b8(_be,_bc);}else{for(var i=0;i<_bd.length;++i){var _c6=_bd[i];if(_c6!==null){_be.push(_c6);}}_b8(_be,_bc);}};if(this._loadFinished){_bb(_b7,this._getItemsArray(_b7.queryOptions));}else{if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_b7,filter:_bb});}else{this._loadInProgress=true;var _c7={url:_ba._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _c8=tojo.xhrGet(_c7);_c8.addCallback(function(_c9){try{_ba._getItemsFromLoadedData(_c9);_ba._loadFinished=true;_ba._loadInProgress=false;_bb(_b7,_ba._getItemsArray(_b7.queryOptions));_ba._handleQueuedFetches();}catch(e){_ba._loadFinished=true;_ba._loadInProgress=false;_b9(e,_b7);}});_c8.addErrback(function(_ca){_ba._loadInProgress=false;_b9(_ca,_b7);});}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_bb(_b7,this._getItemsArray(_b7.queryOptions));}catch(e){_b9(e,_b7);}}else{_b9(new Error("tojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_b7);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _cc=this._queuedFetches[i];var _cd=_cc.args;var _ce=_cc.filter;if(_ce){_ce(_cd,this._getItemsArray(_cd.queryOptions));}else{this.fetchItemByIdentity(_cd);}}this._queuedFetches=[];}},_getItemsArray:function(_cf){if(_cf&&_cf.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_d0){if(this.clearOnClose&&(this._jsonFileUrl!=="")){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_d1){var _d2=false;function valueIsAnItem(_d3){var _d4=((_d3!=null)&&(typeof _d3=="object")&&(!tojo.isArray(_d3)||_d2)&&(!tojo.isFunction(_d3))&&(_d3.constructor==Object||tojo.isArray(_d3))&&(typeof _d3._reference=="undefined")&&(typeof _d3._type=="undefined")&&(typeof _d3._value=="undefined"));return _d4;};var _d5=this;function addItemAndSubItemsToArrayOfAllItems(_d6){_d5._arrayOfAllItems.push(_d6);for(var _d7 in _d6){var _d8=_d6[_d7];if(_d8){if(tojo.isArray(_d8)){var _d9=_d8;for(var k=0;k<_d9.length;++k){var _db=_d9[k];if(valueIsAnItem(_db)){addItemAndSubItemsToArrayOfAllItems(_db);}}}else{if(valueIsAnItem(_d8)){addItemAndSubItemsToArrayOfAllItems(_d8);}}}}};this._labelAttr=_d1.label;var i;var _dd;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_d1.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){_dd=this._arrayOfTopLevelItems[i];if(tojo.isArray(_dd)){_d2=true;}addItemAndSubItemsToArrayOfAllItems(_dd);_dd[this._rootItemPropName]=true;}var _de={};var key;for(i=0;i<this._arrayOfAllItems.length;++i){_dd=this._arrayOfAllItems[i];for(key in _dd){if(key!==this._rootItemPropName){var _e0=_dd[key];if(_e0!==null){if(!tojo.isArray(_e0)){_dd[key]=[_e0];}}else{_dd[key]=[null];}}_de[key]=key;}}while(_de[this._storeRefPropName]){this._storeRefPropName+="_";}while(_de[this._itemNumPropName]){this._itemNumPropName+="_";}while(_de[this._reverseRefMap]){this._reverseRefMap+="_";}var _e1;var _e2=_d1.identifier;if(_e2){this._itemsByIdentity={};this._features["tojo.data.api.Identity"]=_e2;for(i=0;i<this._arrayOfAllItems.length;++i){_dd=this._arrayOfAllItems[i];_e1=_dd[_e2];var _e3=_e1[0];if(!this._itemsByIdentity[_e3]){this._itemsByIdentity[_e3]=_dd;}else{if(this._jsonFileUrl){throw new Error("tojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_e2+"].  Value collided: ["+_e3+"]");}else{if(this._jsonData){throw new Error("tojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_e2+"].  Value collided: ["+_e3+"]");}}}}}else{this._features["tojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){_dd=this._arrayOfAllItems[i];_dd[this._storeRefPropName]=this;_dd[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){_dd=this._arrayOfAllItems[i];for(key in _dd){_e1=_dd[key];for(var j=0;j<_e1.length;++j){_e0=_e1[j];if(_e0!==null&&typeof _e0=="object"){if(_e0._type&&_e0._value){var _e5=_e0._type;var _e6=this._datatypeMap[_e5];if(!_e6){throw new Error("tojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+_e5+"'");}else{if(tojo.isFunction(_e6)){_e1[j]=new _e6(_e0._value);}else{if(tojo.isFunction(_e6.deserialize)){_e1[j]=_e6.deserialize(_e0._value);}else{throw new Error("tojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_e0._reference){var _e7=_e0._reference;if(!tojo.isObject(_e7)){_e1[j]=this._itemsByIdentity[_e7];}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _e9=this._arrayOfAllItems[k];var _ea=true;for(var _eb in _e7){if(_e9[_eb]!=_e7[_eb]){_ea=false;}}if(_ea){_e1[j]=_e9;}}}if(this.referenceIntegrity){var _ec=_e1[j];if(this.isItem(_ec)){this._addReferenceToMap(_ec,_dd,key);}}}else{if(this.isItem(_e0)){if(this.referenceIntegrity){this._addReferenceToMap(_e0,_dd,key);}}}}}}}},_addReferenceToMap:function(_ed,_ee,_ef){},getIdentity:function(_f0){var _f1=this._features["tojo.data.api.Identity"];if(_f1===Number){return _f0[this._itemNumPropName];}else{var _f2=_f0[_f1];if(_f2){return _f2[0];}}return null;},fetchItemByIdentity:function(_f3){if(!this._loadFinished){var _f4=this;if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_f3});}else{this._loadInProgress=true;var _f5={url:_f4._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache};var _f6=tojo.xhrGet(_f5);_f6.addCallback(function(_f7){var _f8=_f3.scope?_f3.scope:tojo.global;try{_f4._getItemsFromLoadedData(_f7);_f4._loadFinished=true;_f4._loadInProgress=false;var _f9=_f4._getItemByIdentity(_f3.identity);if(_f3.onItem){_f3.onItem.call(_f8,_f9);}_f4._handleQueuedFetches();}catch(error){_f4._loadInProgress=false;if(_f3.onError){_f3.onError.call(_f8,error);}}});_f6.addErrback(function(_fa){_f4._loadInProgress=false;if(_f3.onError){var _fb=_f3.scope?_f3.scope:tojo.global;_f3.onError.call(_fb,_fa);}});}}else{if(this._jsonData){_f4._getItemsFromLoadedData(_f4._jsonData);_f4._jsonData=null;_f4._loadFinished=true;var _fc=_f4._getItemByIdentity(_f3.identity);if(_f3.onItem){var _fd=_f3.scope?_f3.scope:tojo.global;_f3.onItem.call(_fd,_fc);}}}}else{var _fc=this._getItemByIdentity(_f3.identity);if(_f3.onItem){var _fd=_f3.scope?_f3.scope:tojo.global;_f3.onItem.call(_fd,_fc);}}},_getItemByIdentity:function(_fe){var _ff=null;if(this._itemsByIdentity){_ff=this._itemsByIdentity[_fe];}else{_ff=this._arrayOfAllItems[_fe];}if(_ff===undefined){_ff=null;}return _ff;},getIdentityAttributes:function(item){var _101=this._features["tojo.data.api.Identity"];if(_101===Number){return null;}else{return [_101];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl){var _103={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,sync:true};var _104=tojo.xhrGet(_103);_104.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("tojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_104.addErrback(function(_106){throw _106;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});tojo.extend(tojo.data.ItemFileReadStore,tojo.data.util.simpleFetch);}if(!tojo._hasResource["tojo.regexp"]){tojo._hasResource["tojo.regexp"]=true;tojo.provide("tojo.regexp");tojo.regexp.escapeString=function(str,_108){return str.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(ch){if(_108&&_108.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};tojo.regexp.buildGroupRE=function(arr,re,_10c){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return tojo.regexp.group(b.join("|"),_10c);};tojo.regexp.group=function(_10f,_110){return "("+(_110?"?:":"")+_10f+")";};}if(!tojo._hasResource["tojo.cookie"]){tojo._hasResource["tojo.cookie"]=true;tojo.provide("tojo.cookie");tojo.cookie=function(name,_112,_113){var c=document.cookie;if(arguments.length==1){var _115=c.match(new RegExp("(?:^|; )"+tojo.regexp.escapeString(name)+"=([^;]*)"));return _115?decodeURIComponent(_115[1]):undefined;}else{_113=_113||{};var exp=_113.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_113.expires=d;}if(exp&&exp.toUTCString){_113.expires=exp.toUTCString();}_112=encodeURIComponent(_112);var _118=name+"="+_112,_119;for(_119 in _113){_118+="; "+_119;var _11a=_113[_119];if(_11a!==true){_118+="="+_11a;}}document.cookie=_118;}};tojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!tojo._hasResource["tojo.date"]){tojo._hasResource["tojo.date"]=true;tojo.provide("tojo.date");tojo.date.getDaysInMonth=function(_11b){var _11c=_11b.getMonth();var days=[31,28,31,30,31,30,31,31,30,31,30,31];if(_11c==1&&tojo.date.isLeapYear(_11b)){return 29;}return days[_11c];};tojo.date.isLeapYear=function(_11e){var year=_11e.getFullYear();return !(year%400)||(!(year%4)&&!!(year%100));};tojo.date.getTimezoneName=function(_120){var str=_120.toString();var tz="";var _123;var pos=str.indexOf("(");if(pos>-1){tz=str.substring(++pos,str.indexOf(")"));}else{var pat=/([A-Z\/]+) \d{4}$/;if((_123=str.match(pat))){tz=_123[1];}else{str=_120.toLocaleString();pat=/ ([A-Z\/]+)$/;if((_123=str.match(pat))){tz=_123[1];}}}return (tz=="AM"||tz=="PM")?"":tz;};tojo.date.compare=function(_126,_127,_128){_126=new Date(Number(_126));_127=new Date(Number(_127||new Date()));if(_128!=="undefined"){if(_128=="date"){_126.setHours(0,0,0,0);_127.setHours(0,0,0,0);}else{if(_128=="time"){_126.setFullYear(0,0,0);_127.setFullYear(0,0,0);}}}if(_126>_127){return 1;}if(_126<_127){return -1;}return 0;};tojo.date.add=function(date,_12a,_12b){var sum=new Date(Number(date));var _12d=false;var _12e="Date";switch(_12a){case "day":break;case "weekday":var days,_130;var mod=_12b%5;if(!mod){days=(_12b>0)?5:-5;_130=(_12b>0)?((_12b-5)/5):((_12b+5)/5);}else{days=mod;_130=parseInt(_12b/5);}var strt=date.getDay();var adj=0;if(strt==6&&_12b>0){adj=1;}else{if(strt==0&&_12b<0){adj=-1;}}var trgt=strt+days;if(trgt==0||trgt==6){adj=(_12b>0)?2:-2;}_12b=(7*_130)+days+adj;break;case "year":_12e="FullYear";_12d=true;break;case "week":_12b*=7;break;case "quarter":_12b*=3;case "month":_12d=true;_12e="Month";break;case "hour":case "minute":case "second":case "millisecond":_12e="UTC"+_12a.charAt(0).toUpperCase()+_12a.substring(1)+"s";}if(_12e){sum["set"+_12e](sum["get"+_12e]()+_12b);}if(_12d&&(sum.getDate()<date.getDate())){sum.setDate(0);}return sum;};tojo.date.difference=function(_135,_136,_137){_136=_136||new Date();_137=_137||"day";var _138=_136.getFullYear()-_135.getFullYear();var _139=1;switch(_137){case "quarter":var m1=_135.getMonth();var m2=_136.getMonth();var q1=Math.floor(m1/3)+1;var q2=Math.floor(m2/3)+1;q2+=(_138*4);_139=q2-q1;break;case "weekday":var days=Math.round(tojo.date.difference(_135,_136,"day"));var _13f=parseInt(tojo.date.difference(_135,_136,"week"));var mod=days%7;if(mod==0){days=_13f*5;}else{var adj=0;var aDay=_135.getDay();var bDay=_136.getDay();_13f=parseInt(days/7);mod=days%7;var _144=new Date(_135);_144.setDate(_144.getDate()+(_13f*7));var _145=_144.getDay();if(days>0){switch(true){case aDay==6:adj=-1;break;case aDay==0:adj=0;break;case bDay==6:adj=-1;break;case bDay==0:adj=-2;break;case (_145+mod)>5:adj=-2;}}else{if(days<0){switch(true){case aDay==6:adj=0;break;case aDay==0:adj=1;break;case bDay==6:adj=2;break;case bDay==0:adj=1;break;case (_145+mod)<0:adj=2;}}}days+=adj;days-=(_13f*2);}_139=days;break;case "year":_139=_138;break;case "month":_139=(_136.getMonth()-_135.getMonth())+(_138*12);break;case "week":_139=parseInt(tojo.date.difference(_135,_136,"day")/7);break;case "day":_139/=24;case "hour":_139/=60;case "minute":_139/=60;case "second":_139/=1000;case "millisecond":_139*=_136.getTime()-_135.getTime();}return Math.round(_139);};}if(!tojo._hasResource["tojo.i18n"]){tojo._hasResource["tojo.i18n"]=true;tojo.provide("tojo.i18n");tojo.i18n.getLocalization=function(_146,_147,_148){_148=tojo.i18n.normalizeLocale(_148);var _149=_148.split("-");var _14a=[_146,"nls",_147].join(".");var _14b=tojo._loadedModules[_14a];if(_14b){var _14c;for(var i=_149.length;i>0;i--){var loc=_149.slice(0,i).join("_");if(_14b[loc]){_14c=_14b[loc];break;}}if(!_14c){_14c=_14b.ROOT;}if(_14c){var _14f=function(){};_14f.prototype=_14c;return new _14f();}}throw new Error("Bundle not found: "+_147+" in "+_146+" , locale="+_148);};tojo.i18n.normalizeLocale=function(_150){var _151=_150?_150.toLowerCase():tojo.locale;if(_151=="root"){_151="ROOT";}return _151;};tojo.i18n._requireLocalization=function(_152,_153,_154,_155){var _156=tojo.i18n.normalizeLocale(_154);var _157=[_152,"nls",_153].join(".");var _158="";if(_155){var _159=_155.split(",");for(var i=0;i<_159.length;i++){if(_156["indexOf"](_159[i])==0){if(_159[i].length>_158.length){_158=_159[i];}}}if(!_158){_158="ROOT";}}var _15b=_155?_158:_156;var _15c=tojo._loadedModules[_157];var _15d=null;if(_15c){if(tojo.config.localizationComplete&&_15c._built){return;}var _15e=_15b.replace(/-/g,"_");var _15f=_157+"."+_15e;_15d=tojo._loadedModules[_15f];}if(!_15d){_15c=tojo["provide"](_157);var syms=tojo._getModuleSymbols(_152);var _161=syms.concat("nls").join("/");var _162;tojo.i18n._searchLocalePath(_15b,_155,function(loc){var _164=loc.replace(/-/g,"_");var _165=_157+"."+_164;var _166=false;if(!tojo._loadedModules[_165]){tojo["provide"](_165);var _167=[_161];if(loc!="ROOT"){_167.push(loc);}_167.push(_153);var _168=_167.join("/")+".js";_166=tojo._loadPath(_168,null,function(hash){var _16a=function(){};_16a.prototype=_162;_15c[_164]=new _16a();for(var j in hash){_15c[_164][j]=hash[j];}});}else{_166=true;}if(_166&&_15c[_164]){_162=_15c[_164];}else{_15c[_164]=_162;}if(_155){return true;}});}if(_155&&_156!=_158){_15c[_156.replace(/-/g,"_")]=_15c[_158.replace(/-/g,"_")];}};(function(){var _16c=tojo.config.extraLocale;if(_16c){if(!_16c instanceof Array){_16c=[_16c];}var req=tojo.i18n._requireLocalization;tojo.i18n._requireLocalization=function(m,b,_170,_171){req(m,b,_170,_171);if(_170){return;}for(var i=0;i<_16c.length;i++){req(m,b,_16c[i],_171);}};}})();tojo.i18n._searchLocalePath=function(_173,down,_175){_173=tojo.i18n.normalizeLocale(_173);var _176=_173.split("-");var _177=[];for(var i=_176.length;i>0;i--){_177.push(_176.slice(0,i).join("-"));}_177.push(false);if(down){_177.reverse();}for(var j=_177.length-1;j>=0;j--){var loc=_177[j]||"ROOT";var stop=_175(loc);if(stop){break;}}};tojo.i18n._preloadLocalizations=function(_17c,_17d){function preload(_17e){_17e=tojo.i18n.normalizeLocale(_17e);tojo.i18n._searchLocalePath(_17e,true,function(loc){for(var i=0;i<_17d.length;i++){if(_17d[i]==loc){tojo["require"](_17c+"_"+loc);return true;}}return false;});};preload();var _181=tojo.config.extraLocale||[];for(var i=0;i<_181.length;i++){preload(_181[i]);}};}if(!tojo._hasResource["tojo.dnd.common"]){tojo._hasResource["tojo.dnd.common"]=true;tojo.provide("tojo.dnd.common");tojo.dnd._isMac=navigator.appVersion.indexOf("Macintosh")>=0;tojo.dnd._copyKey=tojo.dnd._isMac?"metaKey":"ctrlKey";tojo.dnd.getCopyKeyState=function(e){return e[tojo.dnd._copyKey];};tojo.dnd._uniqueId=0;tojo.dnd.getUniqueId=function(){var id;do{id=tojo._scopeName+"Unique"+(++tojo.dnd._uniqueId);}while(tojo.byId(id));return id;};tojo.dnd._empty={};tojo.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(!tojo._hasResource["tojo.dnd.autoscroll"]){tojo._hasResource["tojo.dnd.autoscroll"]=true;tojo.provide("tojo.dnd.autoscroll");tojo.dnd.getViewport=function(){var d=tojo.doc,dd=d.documentElement,w=window,b=tojo.body();if(tojo.isMozilla){return {w:dd.clientWidth,h:w.innerHeight};}else{if(!tojo.isOpera&&w.innerWidth){return {w:w.innerWidth,h:w.innerHeight};}else{if(!tojo.isOpera&&dd&&dd.clientWidth){return {w:dd.clientWidth,h:dd.clientHeight};}else{if(b.clientWidth){return {w:b.clientWidth,h:b.clientHeight};}}}}return null;};tojo.dnd.V_TRIGGER_AUTOSCROLL=32;tojo.dnd.H_TRIGGER_AUTOSCROLL=32;tojo.dnd.V_AUTOSCROLL_VALUE=16;tojo.dnd.H_AUTOSCROLL_VALUE=16;tojo.dnd.autoScroll=function(e){var v=tojo.dnd.getViewport(),dx=0,dy=0;if(e.clientX<tojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-tojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-tojo.dnd.H_TRIGGER_AUTOSCROLL){dx=tojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<tojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-tojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-tojo.dnd.V_TRIGGER_AUTOSCROLL){dy=tojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};tojo.dnd._validNodes={"div":1,"p":1,"td":1};tojo.dnd._validOverflow={"auto":1,"scroll":1};tojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in tojo.dnd._validNodes)){var s=tojo.getComputedStyle(n);if(s.overflow.toLowerCase() in tojo.dnd._validOverflow){var b=tojo._getContentBox(n,s),t=tojo._abs(n,true);var w=Math.min(tojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(tojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(tojo.isSafari||tojo.isOpera){rx+=tojo.body().scrollLeft,ry+=tojo.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 _19a=n.scrollLeft,_19b=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_19a!=n.scrollLeft||_19b!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}tojo.dnd.autoScroll(e);};}if(!tojo._hasResource["tojo.dnd.Mover"]){tojo._hasResource["tojo.dnd.Mover"]=true;tojo.provide("tojo.dnd.Mover");tojo.declare("tojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=tojo.byId(node);this.marginBox={l:e.pageX,t:e.pageY};this.mouseButton=e.button;var h=this.host=host,d=node.ownerDocument,_1a1=tojo.connect(d,"onmousemove",this,"onFirstMove");this.events=[tojo.connect(d,"onmousemove",this,"onMouseMove"),tojo.connect(d,"onmouseup",this,"onMouseUp"),tojo.connect(d,"ondragstart",tojo.stopEvent),tojo.connect(d.body,"onselectstart",tojo.stopEvent),_1a1];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){tojo.dnd.autoScroll(e);var m=this.marginBox;this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});tojo.stopEvent(e);},onMouseUp:function(e){if(tojo.isSafari&&tojo.dnd._isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}tojo.stopEvent(e);},onFirstMove:function(){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left));t=Math.round(parseFloat(s.top));break;default:s.position="absolute";var m=tojo.marginBox(this.node);var b=tojo.doc.body;var bs=tojo.getComputedStyle(b);var bm=tojo._getMarginBox(b,bs);var bc=tojo._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);}tojo.disconnect(this.events.pop());},destroy:function(){tojo.forEach(this.events,tojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!tojo._hasResource["tojo.dnd.Moveable"]){tojo._hasResource["tojo.dnd.Moveable"]=true;tojo.provide("tojo.dnd.Moveable");tojo.declare("tojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_1b0){this.node=tojo.byId(node);if(!_1b0){_1b0={};}this.handle=_1b0.handle?tojo.byId(_1b0.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_1b0.delay>0?_1b0.delay:0;this.skip=_1b0.skip;this.mover=_1b0.mover?_1b0.mover:tojo.dnd.Mover;this.events=[tojo.connect(this.handle,"onmousedown",this,"onMouseDown"),tojo.connect(this.handle,"ondragstart",this,"onSelectStart"),tojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_1b1,node){return new tojo.dnd.Moveable(node,_1b1);},destroy:function(){tojo.forEach(this.events,tojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&tojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(tojo.connect(this.handle,"onmousemove",this,"onMouseMove"),tojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=e.pageX;this._lastY=e.pageY;}else{this.onDragDetected(e);}tojo.stopEvent(e);},onMouseMove:function(e){if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}tojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){tojo.disconnect(this.events.pop());}tojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!tojo.dnd.isFormElement(e)){tojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_1b9){tojo.publish("/dnd/move/start",[_1b9]);tojo.addClass(tojo.body(),"tojoMove");tojo.addClass(this.node,"tojoMoveItem");},onMoveStop:function(_1ba){tojo.publish("/dnd/move/stop",[_1ba]);tojo.removeClass(tojo.body(),"tojoMove");tojo.removeClass(this.node,"tojoMoveItem");},onFirstMove:function(_1bb){},onMove:function(_1bc,_1bd){this.onMoving(_1bc,_1bd);var s=_1bc.node.style;s.left=_1bd.l+"px";s.top=_1bd.t+"px";this.onMoved(_1bc,_1bd);},onMoving:function(_1bf,_1c0){},onMoved:function(_1c1,_1c2){}});}if(!tojo._hasResource["tojo.dnd.move"]){tojo._hasResource["tojo.dnd.move"]=true;tojo.provide("tojo.dnd.move");tojo.declare("tojo.dnd.move.constrainedMoveable",tojo.dnd.Moveable,{constraints:function(){},within:false,markupFactory:function(_1c3,node){return new tojo.dnd.move.constrainedMoveable(node,_1c3);},constructor:function(node,_1c6){if(!_1c6){_1c6={};}this.constraints=_1c6.constraints;this.within=_1c6.within;},onFirstMove:function(_1c7){var c=this.constraintBox=this.constraints.call(this,_1c7);c.r=c.l+c.w;c.b=c.t+c.h;if(this.within){var mb=tojo.marginBox(_1c7.node);c.r-=mb.w;c.b-=mb.h;}},onMove:function(_1ca,_1cb){var c=this.constraintBox,s=_1ca.node.style;s.left=(_1cb.l<c.l?c.l:c.r<_1cb.l?c.r:_1cb.l)+"px";s.top=(_1cb.t<c.t?c.t:c.b<_1cb.t?c.b:_1cb.t)+"px";}});tojo.declare("tojo.dnd.move.boxConstrainedMoveable",tojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_1ce,node){return new tojo.dnd.move.boxConstrainedMoveable(node,_1ce);},constructor:function(node,_1d1){var box=_1d1&&_1d1.box;this.constraints=function(){return box;};}});tojo.declare("tojo.dnd.move.parentConstrainedMoveable",tojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_1d3,node){return new tojo.dnd.move.parentConstrainedMoveable(node,_1d3);},constructor:function(node,_1d6){var area=_1d6&&_1d6.area;this.constraints=function(){var n=this.node.parentNode,s=tojo.getComputedStyle(n),mb=tojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=tojo._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=tojo._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=tojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};}});tojo.dnd.move.constrainedMover=function(fun,_1dd){tojo.deprecated("tojo.dnd.move.constrainedMover, use tojo.dnd.move.constrainedMoveable instead");var _1de=function(node,e,_1e1){tojo.dnd.Mover.call(this,node,e,_1e1);};tojo.extend(_1de,tojo.dnd.Mover.prototype);tojo.extend(_1de,{onMouseMove:function(e){tojo.dnd.autoScroll(e);var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;l=l<c.l?c.l:c.r<l?c.r:l;t=t<c.t?c.t:c.b<t?c.b:t;this.host.onMove(this,{l:l,t:t});},onFirstMove:function(){tojo.dnd.Mover.prototype.onFirstMove.call(this);var c=this.constraintBox=fun.call(this);c.r=c.l+c.w;c.b=c.t+c.h;if(_1dd){var mb=tojo.marginBox(this.node);c.r-=mb.w;c.b-=mb.h;}}});return _1de;};tojo.dnd.move.boxConstrainedMover=function(box,_1ea){tojo.deprecated("tojo.dnd.move.boxConstrainedMover, use tojo.dnd.move.boxConstrainedMoveable instead");return tojo.dnd.move.constrainedMover(function(){return box;},_1ea);};tojo.dnd.move.parentConstrainedMover=function(area,_1ec){tojo.deprecated("tojo.dnd.move.parentConstrainedMover, use tojo.dnd.move.parentConstrainedMoveable instead");var fun=function(){var n=this.node.parentNode,s=tojo.getComputedStyle(n),mb=tojo._getMarginBox(n,s);if(area=="margin"){return mb;}var t=tojo._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=tojo._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=tojo._getPadExtents(n,s);mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;return mb;};return tojo.dnd.move.constrainedMover(fun,_1ec);};tojo.dnd.constrainedMover=tojo.dnd.move.constrainedMover;tojo.dnd.boxConstrainedMover=tojo.dnd.move.boxConstrainedMover;tojo.dnd.parentConstrainedMover=tojo.dnd.move.parentConstrainedMover;}if(!tojo._hasResource["tojo.dnd.TimedMoveable"]){tojo._hasResource["tojo.dnd.TimedMoveable"]=true;tojo.provide("tojo.dnd.TimedMoveable");(function(){var _1f2=tojo.dnd.Moveable.prototype.onMove;tojo.declare("tojo.dnd.TimedMoveable",tojo.dnd.Moveable,{timeout:40,constructor:function(node,_1f4){if(!_1f4){_1f4={};}if(_1f4.timeout&&typeof _1f4.timeout=="number"&&_1f4.timeout>=0){this.timeout=_1f4.timeout;}},markupFactory:function(_1f5,node){return new tojo.dnd.TimedMoveable(node,_1f5);},onMoveStop:function(_1f7){if(_1f7._timer){clearTimeout(_1f7._timer);_1f2.call(this,_1f7,_1f7._leftTop);}tojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);},onMove:function(_1f8,_1f9){_1f8._leftTop=_1f9;if(!_1f8._timer){var _t=this;_1f8._timer=setTimeout(function(){_1f8._timer=null;_1f2.call(_t,_1f8,_1f8._leftTop);},this.timeout);}}});})();}if(!tojo._hasResource["tojo.fx"]){tojo._hasResource["tojo.fx"]=true;tojo.provide("tojo.fx");tojo.provide("tojo.fx.Toggler");(function(){var _1fb={_fire:function(evt,args){if(this[evt]){this[evt].apply(this,args||[]);}return this;}};var _1fe=function(_1ff){this._index=-1;this._animations=_1ff||[];this._current=this._onAnimateCtx=this._onEndCtx=null;this.duration=0;tojo.forEach(this._animations,function(a){this.duration+=a.duration;if(a.delay){this.duration+=a.delay;}},this);};tojo.extend(_1fe,{_onAnimate:function(){this._fire("onAnimate",arguments);},_onEnd:function(){tojo.disconnect(this._onAnimateCtx);tojo.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=tojo.connect(this._current,"onAnimate",this,"_onAnimate");this._onEndCtx=tojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play(0,true);}},play:function(_201,_202){if(!this._current){this._current=this._animations[this._index=0];}if(!_202&&this._current.status()=="playing"){return this;}var _203=tojo.connect(this._current,"beforeBegin",this,function(){this._fire("beforeBegin");}),_204=tojo.connect(this._current,"onBegin",this,function(arg){this._fire("onBegin",arguments);}),_206=tojo.connect(this._current,"onPlay",this,function(arg){this._fire("onPlay",arguments);tojo.disconnect(_203);tojo.disconnect(_204);tojo.disconnect(_206);});if(this._onAnimateCtx){tojo.disconnect(this._onAnimateCtx);}this._onAnimateCtx=tojo.connect(this._current,"onAnimate",this,"_onAnimate");if(this._onEndCtx){tojo.disconnect(this._onEndCtx);}this._onEndCtx=tojo.connect(this._current,"onEnd",this,"_onEnd");this._current.play.apply(this._current,arguments);return this;},pause:function(){if(this._current){var e=tojo.connect(this._current,"onPause",this,function(arg){this._fire("onPause",arguments);tojo.disconnect(e);});this._current.pause();}return this;},gotoPercent:function(_20a,_20b){this.pause();var _20c=this.duration*_20a;this._current=null;tojo.some(this._animations,function(a){if(a.duration<=_20c){this._current=a;return true;}_20c-=a.duration;return false;});if(this._current){this._current.gotoPercent(_20c/this._current.duration,_20b);}return this;},stop:function(_20e){if(this._current){if(_20e){for(;this._index+1<this._animations.length;++this._index){this._animations[this._index].stop(true);}this._current=this._animations[this._index];}var e=tojo.connect(this._current,"onStop",this,function(arg){this._fire("onStop",arguments);tojo.disconnect(e);});this._current.stop();}return this;},status:function(){return this._current?this._current.status():"stopped";},destroy:function(){if(this._onAnimateCtx){tojo.disconnect(this._onAnimateCtx);}if(this._onEndCtx){tojo.disconnect(this._onEndCtx);}}});tojo.extend(_1fe,_1fb);tojo.fx.chain=function(_211){return new _1fe(_211);};var _212=function(_213){this._animations=_213||[];this._connects=[];this._finished=0;this.duration=0;tojo.forEach(_213,function(a){var _215=a.duration;if(a.delay){_215+=a.delay;}if(this.duration<_215){this.duration=_215;}this._connects.push(tojo.connect(a,"onEnd",this,"_onEnd"));},this);this._pseudoAnimation=new tojo._Animation({curve:[0,1],duration:this.duration});tojo.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop"],function(evt){this._connects.push(tojo.connect(this._pseudoAnimation,evt,tojo.hitch(this,"_fire",evt)));},this);};tojo.extend(_212,{_doAction:function(_217,args){tojo.forEach(this._animations,function(a){a[_217].apply(a,args);});return this;},_onEnd:function(){if(++this._finished==this._animations.length){this._fire("onEnd");}},_call:function(_21a,args){var t=this._pseudoAnimation;t[_21a].apply(t,args);},play:function(_21d,_21e){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(_21f,_220){var ms=this.duration*_21f;tojo.forEach(this._animations,function(a){a.gotoPercent(a.duration<ms?1:(ms/a.duration),_220);});this._call("gotoPercent",arguments);return this;},stop:function(_223){this._doAction("stop",arguments);this._call("stop",arguments);return this;},status:function(){return this._pseudoAnimation.status();},destroy:function(){tojo.forEach(this._connects,tojo.disconnect);}});tojo.extend(_212,_1fb);tojo.fx.combine=function(_224){return new _212(_224);};})();tojo.declare("tojo.fx.Toggler",null,{constructor:function(args){var _t=this;tojo.mixin(_t,args);_t.node=args.node;_t._showArgs=tojo.mixin({},args);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=tojo.mixin({},args);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);tojo.connect(_t.showAnim,"beforeBegin",tojo.hitch(_t.hideAnim,"stop",true));tojo.connect(_t.hideAnim,"beforeBegin",tojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:tojo.fadeIn,hideFunc:tojo.fadeOut,showDuration:200,hideDuration:200,show:function(_227){return this.showAnim.play(_227||0);},hide:function(_228){return this.hideAnim.play(_228||0);}});tojo.fx.wipeIn=function(args){args.node=tojo.byId(args.node);var node=args.node,s=node.style,o;var anim=tojo.animateProperty(tojo.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 _22e=tojo.style(node,"height");return Math.max(_22e,1);}},end:function(){return node.scrollHeight;}}}},args));tojo.connect(anim,"onEnd",function(){s.height="auto";s.overflow=o;});return anim;};tojo.fx.wipeOut=function(args){var node=args.node=tojo.byId(args.node);var s=node.style;var o;var anim=tojo.animateProperty(tojo.mixin({properties:{height:{end:1}}},args));tojo.connect(anim,"beforeBegin",function(){o=s.overflow;s.overflow="hidden";s.display="";});tojo.connect(anim,"onEnd",function(){s.overflow=o;s.height="auto";s.display="none";});return anim;};tojo.fx.slideTo=function(args){var node=(args.node=tojo.byId(args.node));var top=null;var left=null;var init=(function(n){return function(){var cs=tojo.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=tojo.coords(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=tojo.animateProperty(tojo.mixin({properties:{top:{end:args.top||0},left:{end:args.left||0}}},args));tojo.connect(anim,"beforeBegin",anim,init);return anim;};}if(!tojo._hasResource["tojo.io.iframe"]){tojo._hasResource["tojo.io.iframe"]=true;tojo.provide("tojo.io.iframe");tojo.io.iframe={create:function(_23e,_23f,uri){if(window[_23e]){return window[_23e];}if(window.frames[_23e]){return window.frames[_23e];}var _241=null;var turi=uri;if(!turi){if(tojo.config["useXDomain"]&&!tojo.config["tojoBlankHtmlUrl"]){console.warn("tojo.io.iframe.create: When using cross-domain tojo builds,"+" please save tojo/resources/blank.html to your domain and set djConfig.tojoBlankHtmlUrl"+" to the path on your domain to blank.html");}turi=(tojo.config["tojoBlankHtmlUrl"]||tojo.moduleUrl("tojo","resources/blank.html"));}var _243=tojo.isIE?"<iframe name=\""+_23e+"\" src=\""+turi+"\" onload=\""+_23f+"\">":"iframe";_241=tojo.doc.createElement(_243);with(_241){name=_23e;setAttribute("name",_23e);id=_23e;}tojo.body().appendChild(_241);window[_23e]=_241;with(_241.style){if(tojo.isSafari<3){position="absolute";}left=top="1px";height=width="1px";visibility="hidden";}if(!tojo.isIE){this.setSrc(_241,turi,true);_241.onload=new Function(_23f);}return _241;},setSrc:function(_244,src,_246){try{if(!_246){if(tojo.isSafari){_244.location=src;}else{frames[_244.name].location=src;}}else{var idoc;if(tojo.isIE||tojo.isSafari>2){idoc=_244.contentWindow.document;}else{if(tojo.isSafari){idoc=_244.document;}else{idoc=_244.contentWindow;}}if(!idoc){_244.location=src;return;}else{idoc.location.replace(src);}}}catch(e){console.debug("tojo.io.iframe.setSrc: ",e);}},doc:function(_248){var doc=_248.contentDocument||(((_248.name)&&(_248.document)&&(document.getElementsByTagName("iframe")[_248.name].contentWindow)&&(document.getElementsByTagName("iframe")[_248.name].contentWindow.document)))||((_248.name)&&(document.frames[_248.name])&&(document.frames[_248.name].document))||null;return doc;},send:function(args){if(!this["_frame"]){this._frame=this.create(this._iframeName,tojo._scopeName+".io.iframe._iframeOnload();");}var dfd=tojo._ioSetArgs(args,function(dfd){dfd.canceled=true;dfd.ioArgs._callNext();},function(dfd){var _24e=null;try{var _24f=dfd.ioArgs;var dii=tojo.io.iframe;var ifd=dii.doc(dii._frame);var _252=_24f.handleAs;_24e=ifd;if(_252!="html"){if(_252=="xml"){if(tojo.isIE){tojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();var _253=(dii._frame.contentWindow.document).documentElement.innerText;_253=_253.replace(/>\s+</g,"><");if(!this._ieXmlDom){for(var i=0,a=["MSXML2","Microsoft","MSXML","MSXML3"],l=a.length;i<l;i++){try{var test=new ActiveXObject(a[i]+".XmlDom");this._ieXmlDom=a[i]+".XmlDom";break;}catch(e){}}if(!this._ieXmlDom){throw new Error("tojo.io.iframe.send (return handler): your copy of Internet Explorer does not support XML documents.");}}var _xml=new ActiveXObject(this._ieXmlDom);_xml.async=false;_xml.loadXML(_253);_24e=_xml;}}else{_24e=ifd.getElementsByTagName("textarea")[0].value;if(_252=="json"){_24e=tojo.fromJson(_24e);}else{if(_252=="javascript"){_24e=tojo.eval(_24e);}}}}}catch(e){_24e=e;}finally{_24f._callNext();}return _24e;},function(_259,dfd){dfd.ioArgs._hasError=true;dfd.ioArgs._callNext();return _259;});dfd.ioArgs._callNext=function(){if(!this["_calledNext"]){this._calledNext=true;tojo.io.iframe._currentDfd=null;tojo.io.iframe._fireNextRequest();}};this._dfdQueue.push(dfd);this._fireNextRequest();tojo._ioWatch(dfd,function(dfd){return !dfd.ioArgs["_hasError"];},function(dfd){return (!!dfd.ioArgs["_finished"]);},function(dfd){if(dfd.ioArgs._finished){dfd.callback(dfd);}else{dfd.errback(new Error("Invalid tojo.io.iframe request state"));}});return dfd;},_currentDfd:null,_dfdQueue:[],_iframeName:tojo._scopeName+"IoIframe",_fireNextRequest:function(){try{if((this._currentDfd)||(this._dfdQueue.length==0)){return;}var dfd=this._currentDfd=this._dfdQueue.shift();var _25f=dfd.ioArgs;var args=_25f.args;_25f._contentToClean=[];var fn=tojo.byId(args["form"]);var _262=args["content"]||{};if(fn){if(_262){for(var x in _262){if(!fn[x]){var tn;if(tojo.isIE){tn=tojo.doc.createElement("<input type='hidden' name='"+x+"'>");}else{tn=tojo.doc.createElement("input");tn.type="hidden";tn.name=x;}tn.value=_262[x];fn.appendChild(tn);_25f._contentToClean.push(x);}else{fn[x].value=_262[x];}}}var _265=fn.getAttributeNode("action");var _266=fn.getAttributeNode("method");var _267=fn.getAttributeNode("target");if(args["url"]){_25f._originalAction=_265?_265.value:null;if(_265){_265.value=args.url;}else{fn.setAttribute("action",args.url);}}if(!_266||!_266.value){if(_266){_266.value=(args["method"])?args["method"]:"post";}else{fn.setAttribute("method",(args["method"])?args["method"]:"post");}}_25f._originalTarget=_267?_267.value:null;if(_267){_267.value=this._iframeName;}else{fn.setAttribute("target",this._iframeName);}fn.target=this._iframeName;fn.submit();}else{var _268=args.url+(args.url.indexOf("?")>-1?"&":"?")+_25f.query;this.setSrc(this._frame,_268,true);}}catch(e){dfd.errback(e);}},_iframeOnload:function(){var dfd=this._currentDfd;if(!dfd){this._fireNextRequest();return;}var _26a=dfd.ioArgs;var args=_26a.args;var _26c=tojo.byId(args.form);if(_26c){var _26d=_26a._contentToClean;for(var i=0;i<_26d.length;i++){var key=_26d[i];if(tojo.isSafari<3){for(var j=0;j<_26c.childNodes.length;j++){var _271=_26c.childNodes[j];if(_271.name==key){tojo._destroyElement(_271);break;}}}else{tojo._destroyElement(_26c[key]);_26c[key]=null;}}if(_26a["_originalAction"]){_26c.setAttribute("action",_26a._originalAction);}if(_26a["_originalTarget"]){_26c.setAttribute("target",_26a._originalTarget);_26c.target=_26a._originalTarget;}}_26a._finished=true;}};}if(!tojo._hasResource["tojo.colors"]){tojo._hasResource["tojo.colors"]=true;tojo.provide("tojo.colors");(function(){var _272=function(m1,m2,h){if(h<0){++h;}if(h>1){--h;}var h6=6*h;if(h6<1){return m1+(m2-m1)*h6;}if(2*h<1){return m2;}if(3*h<2){return m1+(m2-m1)*(2/3-h)*6;}return m1;};tojo.colorFromRgb=function(_277,obj){var m=_277.toLowerCase().match(/^(rgba?|hsla?)\(([\s\.\-,%0-9]+)\)/);if(m){var c=m[2].split(/\s*,\s*/),l=c.length,t=m[1];if((t=="rgb"&&l==3)||(t=="rgba"&&l==4)){var r=c[0];if(r.charAt(r.length-1)=="%"){var a=tojo.map(c,function(x){return parseFloat(x)*2.56;});if(l==4){a[3]=c[3];}return tojo.colorFromArray(a,obj);}return tojo.colorFromArray(c,obj);}if((t=="hsl"&&l==3)||(t=="hsla"&&l==4)){var H=((parseFloat(c[0])%360)+360)%360/360,S=parseFloat(c[1])/100,L=parseFloat(c[2])/100,m2=L<=0.5?L*(S+1):L+S-L*S,m1=2*L-m2,a=[_272(m1,m2,H+1/3)*256,_272(m1,m2,H)*256,_272(m1,m2,H-1/3)*256,1];if(l==4){a[3]=c[3];}return tojo.colorFromArray(a,obj);}}return null;};var _285=function(c,low,high){c=Number(c);return isNaN(c)?high:c<low?low:c>high?high:c;};tojo.Color.prototype.sanitize=function(){var t=this;t.r=Math.round(_285(t.r,0,255));t.g=Math.round(_285(t.g,0,255));t.b=Math.round(_285(t.b,0,255));t.a=_285(t.a,0,1);return this;};})();tojo.colors.makeGrey=function(g,a){return tojo.colorFromArray([g,g,g,a]);};tojo.Color.named=tojo.mixin({aliceblue:[240,248,255],antiquewhite:[250,235,215],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],blanchedalmond:[255,235,205],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],oldlace:[253,245,230],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],thistle:[216,191,216],tomato:[255,99,71],transparent:[0,0,0,0],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],whitesmoke:[245,245,245],yellowgreen:[154,205,50]},tojo.Color.named);}if(!tojo._hasResource["tojo.string"]){tojo._hasResource["tojo.string"]=true;tojo.provide("tojo.string");tojo.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("");};tojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=tojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};tojo.string.substitute=function(_295,map,_297,_298){_298=_298||tojo.global;_297=(!_297)?function(v){return v;}:tojo.hitch(_298,_297);return _295.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_29a,key,_29c){var _29d=tojo.getObject(key,false,map);if(_29c){_29d=tojo.getObject(_29c,false,_298).call(_298,_29d,key);}return _297(_29d,key).toString();});};tojo.string.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(!tojo._hasResource["tojo.number"]){tojo._hasResource["tojo.number"]=true;tojo.provide("tojo.number");tojo.number.format=function(_2a0,_2a1){_2a1=tojo.mixin({},_2a1||{});var _2a2=tojo.i18n.normalizeLocale(_2a1.locale);var _2a3=tojo.i18n.getLocalization("tojo.cldr","number",_2a2);_2a1.customs=_2a3;var _2a4=_2a1.pattern||_2a3[(_2a1.type||"decimal")+"Format"];if(isNaN(_2a0)){return null;}return tojo.number._applyPattern(_2a0,_2a4,_2a1);};tojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;tojo.number._applyPattern=function(_2a5,_2a6,_2a7){_2a7=_2a7||{};var _2a8=_2a7.customs.group;var _2a9=_2a7.customs.decimal;var _2aa=_2a6.split(";");var _2ab=_2aa[0];_2a6=_2aa[(_2a5<0)?1:0]||("-"+_2ab);if(_2a6.indexOf("%")!=-1){_2a5*=100;}else{if(_2a6.indexOf("â€°")!=-1){_2a5*=1000;}else{if(_2a6.indexOf("Â¤")!=-1){_2a8=_2a7.customs.currencyGroup||_2a8;_2a9=_2a7.customs.currencyDecimal||_2a9;_2a6=_2a6.replace(/\u00a4{1,3}/,function(_2ac){var prop=["symbol","currency","displayName"][_2ac.length-1];return _2a7[prop]||_2a7.currency||"";});}else{if(_2a6.indexOf("E")!=-1){throw new Error("exponential notation not supported");}}}}var _2ae=tojo.number._numberPatternRE;var _2af=_2ab.match(_2ae);if(!_2af){throw new Error("unable to find a number expression in pattern: "+_2a6);}if(_2a7.fractional===false){_2a7.places=0;}return _2a6.replace(_2ae,tojo.number._formatAbsolute(_2a5,_2af[0],{decimal:_2a9,group:_2a8,places:_2a7.places,round:_2a7.round}));};tojo.number.round=function(_2b0,_2b1,_2b2){var _2b3=String(_2b0).split(".");var _2b4=(_2b3[1]&&_2b3[1].length)||0;if(_2b4>_2b1){var _2b5=Math.pow(10,_2b1);if(_2b2>0){_2b5*=10/_2b2;_2b1++;}_2b0=Math.round(_2b0*_2b5)/_2b5;_2b3=String(_2b0).split(".");_2b4=(_2b3[1]&&_2b3[1].length)||0;if(_2b4>_2b1){_2b3[1]=_2b3[1].substr(0,_2b1);_2b0=Number(_2b3.join("."));}}return _2b0;};tojo.number._formatAbsolute=function(_2b6,_2b7,_2b8){_2b8=_2b8||{};if(_2b8.places===true){_2b8.places=0;}if(_2b8.places===Infinity){_2b8.places=6;}var _2b9=_2b7.split(".");var _2ba=(_2b8.places>=0)?_2b8.places:(_2b9[1]&&_2b9[1].length)||0;if(!(_2b8.round<0)){_2b6=tojo.number.round(_2b6,_2ba,_2b8.round);}var _2bb=String(Math.abs(_2b6)).split(".");var _2bc=_2bb[1]||"";if(_2b8.places){var _2bd=tojo.isString(_2b8.places)&&_2b8.places.indexOf(",");if(_2bd){_2b8.places=_2b8.places.substring(_2bd+1);}_2bb[1]=tojo.string.pad(_2bc.substr(0,_2b8.places),_2b8.places,"0",true);}else{if(_2b9[1]&&_2b8.places!==0){var pad=_2b9[1].lastIndexOf("0")+1;if(pad>_2bc.length){_2bb[1]=tojo.string.pad(_2bc,pad,"0",true);}var _2bf=_2b9[1].length;if(_2bf<_2bc.length){_2bb[1]=_2bc.substr(0,_2bf);}}else{if(_2bb[1]){_2bb.pop();}}}var _2c0=_2b9[0].replace(",","");pad=_2c0.indexOf("0");if(pad!=-1){pad=_2c0.length-pad;if(pad>_2bb[0].length){_2bb[0]=tojo.string.pad(_2bb[0],pad);}if(_2c0.indexOf("#")==-1){_2bb[0]=_2bb[0].substr(_2bb[0].length-pad);}}var _2c1=_2b9[0].lastIndexOf(",");var _2c2,_2c3;if(_2c1!=-1){_2c2=_2b9[0].length-_2c1-1;var _2c4=_2b9[0].substr(0,_2c1);_2c1=_2c4.lastIndexOf(",");if(_2c1!=-1){_2c3=_2c4.length-_2c1-1;}}var _2c5=[];for(var _2c6=_2bb[0];_2c6;){var off=_2c6.length-_2c2;_2c5.push((off>0)?_2c6.substr(off):_2c6);_2c6=(off>0)?_2c6.slice(0,off):"";if(_2c3){_2c2=_2c3;delete _2c3;}}_2bb[0]=_2c5.reverse().join(_2b8.group||",");return _2bb.join(_2b8.decimal||".");};tojo.number.regexp=function(_2c8){return tojo.number._parseInfo(_2c8).regexp;};tojo.number._parseInfo=function(_2c9){_2c9=_2c9||{};var _2ca=tojo.i18n.normalizeLocale(_2c9.locale);var _2cb=tojo.i18n.getLocalization("tojo.cldr","number",_2ca);var _2cc=_2c9.pattern||_2cb[(_2c9.type||"decimal")+"Format"];var _2cd=_2cb.group;var _2ce=_2cb.decimal;var _2cf=1;if(_2cc.indexOf("%")!=-1){_2cf/=100;}else{if(_2cc.indexOf("â€°")!=-1){_2cf/=1000;}else{var _2d0=_2cc.indexOf("Â¤")!=-1;if(_2d0){_2cd=_2cb.currencyGroup||_2cd;_2ce=_2cb.currencyDecimal||_2ce;}}}var _2d1=_2cc.split(";");if(_2d1.length==1){_2d1.push("-"+_2d1[0]);}var re=tojo.regexp.buildGroupRE(_2d1,function(_2d3){_2d3="(?:"+tojo.regexp.escapeString(_2d3,".")+")";return _2d3.replace(tojo.number._numberPatternRE,function(_2d4){var _2d5={signed:false,separator:_2c9.strict?_2cd:[_2cd,""],fractional:_2c9.fractional,decimal:_2ce,exponent:false};var _2d6=_2d4.split(".");var _2d7=_2c9.places;if(_2d6.length==1||_2d7===0){_2d5.fractional=false;}else{if(_2d7===undefined){_2d7=_2c9.pattern?_2d6[1].lastIndexOf("0")+1:Infinity;}if(_2d7&&_2c9.fractional==undefined){_2d5.fractional=true;}if(!_2c9.places&&(_2d7<_2d6[1].length)){_2d7+=","+_2d6[1].length;}_2d5.places=_2d7;}var _2d8=_2d6[0].split(",");if(_2d8.length>1){_2d5.groupSize=_2d8.pop().length;if(_2d8.length>1){_2d5.groupSize2=_2d8.pop().length;}}return "("+tojo.number._realNumberRegexp(_2d5)+")";});},true);if(_2d0){re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_2d9,_2da,_2db,_2dc){var prop=["symbol","currency","displayName"][_2db.length-1];var _2de=tojo.regexp.escapeString(_2c9[prop]||_2c9.currency||"");_2da=_2da?"[\\s\\xa0]":"";_2dc=_2dc?"[\\s\\xa0]":"";if(!_2c9.strict){if(_2da){_2da+="*";}if(_2dc){_2dc+="*";}return "(?:"+_2da+_2de+_2dc+")?";}return _2da+_2de+_2dc;});}return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_2cd,decimal:_2ce,factor:_2cf};};tojo.number.parse=function(_2df,_2e0){var info=tojo.number._parseInfo(_2e0);var _2e2=(new RegExp("^"+info.regexp+"$")).exec(_2df);if(!_2e2){return NaN;}var _2e3=_2e2[1];if(!_2e2[1]){if(!_2e2[2]){return NaN;}_2e3=_2e2[2];info.factor*=-1;}_2e3=_2e3.replace(new RegExp("["+info.group+"\\s\\xa0"+"]","g"),"").replace(info.decimal,".");return Number(_2e3)*info.factor;};tojo.number._realNumberRegexp=function(_2e4){_2e4=_2e4||{};if(!("places" in _2e4)){_2e4.places=Infinity;}if(typeof _2e4.decimal!="string"){_2e4.decimal=".";}if(!("fractional" in _2e4)||/^0/.test(_2e4.places)){_2e4.fractional=[true,false];}if(!("exponent" in _2e4)){_2e4.exponent=[true,false];}if(!("eSigned" in _2e4)){_2e4.eSigned=[true,false];}var _2e5=tojo.number._integerRegexp(_2e4);var _2e6=tojo.regexp.buildGroupRE(_2e4.fractional,function(q){var re="";if(q&&(_2e4.places!==0)){re="\\"+_2e4.decimal;if(_2e4.places==Infinity){re="(?:"+re+"\\d+)?";}else{re+="\\d{"+_2e4.places+"}";}}return re;},true);var _2e9=tojo.regexp.buildGroupRE(_2e4.exponent,function(q){if(q){return "([eE]"+tojo.number._integerRegexp({signed:_2e4.eSigned})+")";}return "";});var _2eb=_2e5+_2e6;if(_2e6){_2eb="(?:(?:"+_2eb+")|(?:"+_2e6+"))";}return _2eb+_2e9;};tojo.number._integerRegexp=function(_2ec){_2ec=_2ec||{};if(!("signed" in _2ec)){_2ec.signed=[true,false];}if(!("separator" in _2ec)){_2ec.separator="";}else{if(!("groupSize" in _2ec)){_2ec.groupSize=3;}}var _2ed=tojo.regexp.buildGroupRE(_2ec.signed,function(q){return q?"[-+]":"";},true);var _2ef=tojo.regexp.buildGroupRE(_2ec.separator,function(sep){if(!sep){return "(?:0|[1-9]\\d*)";}sep=tojo.regexp.escapeString(sep);if(sep==" "){sep="\\s";}else{if(sep=="Â "){sep="\\s\\xa0";}}var grp=_2ec.groupSize,grp2=_2ec.groupSize2;if(grp2){var _2f3="(?:0|[1-9]\\d{0,"+(grp2-1)+"}(?:["+sep+"]\\d{"+grp2+"})*["+sep+"]\\d{"+grp+"})";return ((grp-grp2)>0)?"(?:"+_2f3+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_2f3;}return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";},true);return _2ed+_2ef;};}if(!tojo._hasResource["dijit._base.focus"]){tojo._hasResource["dijit._base.focus"]=true;tojo.provide("dijit._base.focus");tojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _2f4=tojo.doc;if(_2f4.selection){var s=_2f4.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _2f6=tojo.global;var _2f7=_2f6.getSelection();if(tojo.isString(_2f7)){return !_2f7;}else{return _2f7.isCollapsed||!_2f7.toString();}}},getBookmark:function(){var _2f8,_2f9=tojo.doc.selection;if(_2f9){var _2fa=_2f9.createRange();if(_2f9.type.toUpperCase()=="CONTROL"){if(_2fa.length){_2f8=[];var i=0,len=_2fa.length;while(i<len){_2f8.push(_2fa.item(i++));}}else{_2f8=null;}}else{_2f8=_2fa.getBookmark();}}else{if(window.getSelection){_2f9=tojo.global.getSelection();if(_2f9){_2fa=_2f9.getRangeAt(0);_2f8=_2fa.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _2f8;},moveToBookmark:function(_2fd){var _2fe=tojo.doc;if(_2fe.selection){var _2ff;if(tojo.isArray(_2fd)){_2ff=_2fe.body.createControlRange();tojo.forEach(_2fd,function(n){_2ff.addElement(n);});}else{_2ff=_2fe.selection.createRange();_2ff.moveToBookmark(_2fd);}_2ff.select();}else{var _301=tojo.global.getSelection&&tojo.global.getSelection();if(_301&&_301.removeAllRanges){_301.removeAllRanges();_301.addRange(_2fd);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(menu,_303){return {node:menu&&tojo.isDescendant(dijit._curFocus,menu.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!tojo.withGlobal(_303||tojo.global,dijit.isCollapsed)?tojo.withGlobal(_303||tojo.global,dijit.getBookmark):null,openedForWindow:_303};},focus:function(_304){if(!_304){return;}var node="node" in _304?_304.node:_304,_306=_304.bookmark,_307=_304.openedForWindow;if(node){var _308=(node.tagName.toLowerCase()=="iframe")?node.contentWindow:node;if(_308&&_308.focus){try{_308.focus();}catch(e){}}dijit._onFocusNode(node);}if(_306&&tojo.withGlobal(_307||tojo.global,dijit.isCollapsed)){if(_307){_307.focus();}try{tojo.withGlobal(_307||tojo.global,dijit.moveToBookmark,null,[_306]);}catch(e){}}},_activeStack:[],registerWin:function(_309){if(!_309){_309=window;}tojo.connect(_309.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var doc=_309.document;if(doc){if(tojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=null;},_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){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _312=[];try{while(node){if(node.dijitPopupParent){node=dijit.byId(node.dijitPopupParent).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===tojo.body()){break;}node=dijit.getDocumentWindow(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId");if(id){_312.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_312);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}if(node.nodeType==9){var _315=dijit.getDocumentWindow(node).frameElement;if(!_315){return;}node=_315;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;tojo.publish("focusNode",[node]);},_setStack:function(_316){var _317=dijit._activeStack;dijit._activeStack=_316;for(var _318=0;_318<Math.min(_317.length,_316.length);_318++){if(_317[_318]!=_316[_318]){break;}}for(var i=_317.length-1;i>=_318;i--){var _31a=dijit.byId(_317[i]);if(_31a){_31a._focused=false;_31a._hasBeenBlurred=true;if(_31a._onBlur){_31a._onBlur();}if(_31a._setStateClass){_31a._setStateClass();}tojo.publish("widgetBlur",[_31a]);}}for(i=_318;i<_316.length;i++){_31a=dijit.byId(_316[i]);if(_31a){_31a._focused=true;if(_31a._onFocus){_31a._onFocus();}if(_31a._setStateClass){_31a._setStateClass();}tojo.publish("widgetFocus",[_31a]);}}}});tojo.addOnLoad(dijit.registerWin);}if(!tojo._hasResource["dijit._base.manager"]){tojo._hasResource["dijit._base.manager"]=true;tojo.provide("dijit._base.manager");tojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_31b){if(this._hash[_31b.id]){throw new Error("Tried to register widget with id=="+_31b.id+" but that id is already registered");}this._hash[_31b.id]=_31b;},remove:function(id){delete this._hash[id];},forEach:function(func){for(var id in this._hash){func(this._hash[id]);}},filter:function(_31f){var res=new dijit.WidgetSet();this.forEach(function(_321){if(_31f(_321)){res.add(_321);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_324){return _324.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_325){var id;do{id=_325+"_"+(_325 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_325]:dijit._widgetTypeCtr[_325]=0);}while(dijit.byId(id));return id;};if(tojo.isIE){tojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_327){_327.destroy();});});}dijit.byId=function(id){return (tojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(node){return dijit.registry.byId(node.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(node){while(node){if(node.getAttribute&&node.getAttribute("widgetId")){return dijit.registry.byId(node.getAttribute("widgetId"));}node=node.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(elem){var _32c=tojo.style(elem);return (_32c.visibility!="hidden")&&(_32c.visibility!="collapsed")&&(_32c.display!="none")&&(tojo.attr(elem,"type")!="hidden");};dijit.isTabNavigable=function(elem){if(tojo.hasAttr(elem,"disabled")){return false;}var _32e=tojo.hasAttr(elem,"tabindex");var _32f=tojo.attr(elem,"tabindex");if(_32e&&_32f>=0){return true;}var name=elem.nodeName.toLowerCase();if(((name=="a"&&tojo.hasAttr(elem,"href"))||dijit._tabElements[name])&&(!_32e||_32f>=0)){return true;}return false;};dijit._getTabNavigable=function(root){var _332,last,_334,_335,_336,_337;var _338=function(_339){tojo.query("> *",_339).forEach(function(_33a){var _33b=dijit._isElementShown(_33a);if(_33b&&dijit.isTabNavigable(_33a)){var _33c=tojo.attr(_33a,"tabindex");if(!tojo.hasAttr(_33a,"tabindex")||_33c==0){if(!_332){_332=_33a;}last=_33a;}else{if(_33c>0){if(!_334||_33c<_335){_335=_33c;_334=_33a;}if(!_336||_33c>=_337){_337=_33c;_336=_33a;}}}}if(_33b&&_33a.nodeName.toUpperCase()!="SELECT"){_338(_33a);}});};if(dijit._isElementShown(root)){_338(root);}return {first:_332,last:last,lowest:_334,highest:_336};};dijit.getFirstInTabbingOrder=function(root){var _33e=dijit._getTabNavigable(tojo.byId(root));return _33e.lowest?_33e.lowest:_33e.first;};dijit.getLastInTabbingOrder=function(root){var _340=dijit._getTabNavigable(tojo.byId(root));return _340.last?_340.last:_340.highest;};dijit.defaultDuration=tojo.config["defaultDuration"]||200;}if(!tojo._hasResource["tojo.AdapterRegistry"]){tojo._hasResource["tojo.AdapterRegistry"]=true;tojo.provide("tojo.AdapterRegistry");tojo.AdapterRegistry=function(_341){this.pairs=[];this.returnWrappers=_341||false;};tojo.extend(tojo.AdapterRegistry,{register:function(name,_343,wrap,_345,_346){this.pairs[((_346)?"unshift":"push")]([name,_343,wrap,_345]);},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(!tojo._hasResource["dijit._base.place"]){tojo._hasResource["dijit._base.place"]=true;tojo.provide("dijit._base.place");dijit.getViewport=function(){var _34c=tojo.global;var _34d=tojo.doc;var w=0,h=0;var de=_34d.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(tojo.isMozilla){var minw,minh,maxw,maxh;var dbw=_34d.body.clientWidth;if(dbw>dew){minw=dew;maxw=dbw;}else{maxw=dew;minw=dbw;}var dbh=_34d.body.clientHeight;if(dbh>deh){minh=deh;maxh=dbh;}else{maxh=deh;minh=dbh;}w=(maxw>_34c.innerWidth)?minw:maxw;h=(maxh>_34c.innerHeight)?minh:maxh;}else{if(!tojo.isOpera&&_34c.innerWidth){w=_34c.innerWidth;h=_34c.innerHeight;}else{if(tojo.isIE&&de&&deh){w=dew;h=deh;}else{if(tojo.body().clientWidth){w=tojo.body().clientWidth;h=tojo.body().clientHeight;}}}}var _359=tojo._docScroll();return {w:w,h:h,l:_359.x,t:_359.y};};dijit.placeOnScreen=function(node,pos,_35c,_35d){var _35e=tojo.map(_35c,function(_35f){return {corner:_35f,pos:pos};});return dijit._place(node,_35e);};dijit._place=function(node,_361,_362){var view=dijit.getViewport();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){tojo.body().appendChild(node);}var best=null;tojo.some(_361,function(_365){var _366=_365.corner;var pos=_365.pos;if(_362){_362(node,_365.aroundCorner,_366);}var _368=node.style;var _369=_368.display;var _36a=_368.visibility;_368.visibility="hidden";_368.display="";var mb=tojo.marginBox(node);_368.display=_369;_368.visibility=_36a;var _36c=(_366.charAt(1)=="L"?pos.x:Math.max(view.l,pos.x-mb.w)),_36d=(_366.charAt(0)=="T"?pos.y:Math.max(view.t,pos.y-mb.h)),endX=(_366.charAt(1)=="L"?Math.min(view.l+view.w,_36c+mb.w):pos.x),endY=(_366.charAt(0)=="T"?Math.min(view.t+view.h,_36d+mb.h):pos.y),_370=endX-_36c,_371=endY-_36d,_372=(mb.w-_370)+(mb.h-_371);if(best==null||_372<best.overflow){best={corner:_366,aroundCorner:_365.aroundCorner,x:_36c,y:_36d,w:_370,h:_371,overflow:_372};}return !_372;});node.style.left=best.x+"px";node.style.top=best.y+"px";if(best.overflow&&_362){_362(node,best.aroundCorner,best.corner);}return best;};dijit.placeOnScreenAroundNode=function(node,_374,_375,_376){_374=tojo.byId(_374);var _377=_374.style.display;_374.style.display="";var _378=_374.offsetWidth;var _379=_374.offsetHeight;var _37a=tojo.coords(_374,true);_374.style.display=_377;return dijit._placeOnScreenAroundRect(node,_37a.x,_37a.y,_378,_379,_375,_376);};dijit.placeOnScreenAroundRectangle=function(node,_37c,_37d,_37e){return dijit._placeOnScreenAroundRect(node,_37c.x,_37c.y,_37c.width,_37c.height,_37d,_37e);};dijit._placeOnScreenAroundRect=function(node,x,y,_382,_383,_384,_385){var _386=[];for(var _387 in _384){_386.push({aroundCorner:_387,corner:_384[_387],pos:{x:x+(_387.charAt(1)=="L"?0:_382),y:y+(_387.charAt(0)=="T"?0:_383)}});}return dijit._place(node,_386,_385);};dijit.placementRegistry=new tojo.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,_38d,_38e,_38f){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}if(!tojo._hasResource["dijit._base.window"]){tojo._hasResource["dijit._base.window"]=true;tojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(tojo.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!tojo._hasResource["dijit._base.popup"]){tojo._hasResource["dijit._base.popup"]=true;tojo.provide("dijit._base.popup");dijit.popup=new function(){var _392=[],_393=1000,_394=1;this.prepare=function(node){tojo.body().appendChild(node);var s=node.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(args){var _398=args.popup,_399=args.orient||{"BL":"TL","TL":"BL"},_39a=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+_394++);var _39c=tojo.doc.createElement("div");dijit.setWaiRole(_39c,"presentation");_39c.id=id;_39c.className="dijitPopup";_39c.style.zIndex=_393+_392.length;_39c.style.left=_39c.style.top="0px";_39c.style.visibility="hidden";if(args.parent){_39c.dijitPopupParent=args.parent.id;}tojo.body().appendChild(_39c);var s=_398.domNode.style;s.display="";s.visibility="";s.position="";_39c.appendChild(_398.domNode);var _39e=new dijit.BackgroundIframe(_39c);var best=_39a?dijit.placeOnScreenAroundElement(_39c,_39a,_399,_398.orient?tojo.hitch(_398,"orient"):null):dijit.placeOnScreen(_39c,args,_399=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_39c.style.visibility="visible";var _3a0=[];var _3a1=function(){for(var pi=_392.length-1;pi>0&&_392[pi].parent===_392[pi-1].widget;pi--){}return _392[pi];};_3a0.push(tojo.connect(_39c,"onkeypress",this,function(evt){if(evt.charOrCode==tojo.keys.ESCAPE&&args.onCancel){tojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===tojo.keys.TAB){tojo.stopEvent(evt);var _3a4=_3a1();if(_3a4&&_3a4.onCancel){_3a4.onCancel();}}}}));if(_398.onCancel){_3a0.push(tojo.connect(_398,"onCancel",null,args.onCancel));}_3a0.push(tojo.connect(_398,_398.onExecute?"onExecute":"onChange",null,function(){var _3a5=_3a1();if(_3a5&&_3a5.onExecute){_3a5.onExecute();}}));_392.push({wrapper:_39c,iframe:_39e,widget:_398,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_3a0});if(_398.onOpen){_398.onOpen(best);}return best;};this.close=function(_3a6){while(tojo.some(_392,function(elem){return elem.widget==_3a6;})){var top=_392.pop(),_3a9=top.wrapper,_3aa=top.iframe,_3ab=top.widget,_3ac=top.onClose;if(_3ab.onClose){_3ab.onClose();}tojo.forEach(top.handlers,tojo.disconnect);if(!_3ab||!_3ab.domNode){return;}this.prepare(_3ab.domNode);_3aa.destroy();tojo._destroyElement(_3a9);if(_3ac){_3ac();}}};}();dijit._frames=new function(){var _3ad=[];this.pop=function(){var _3ae;if(_3ad.length){_3ae=_3ad.pop();_3ae.style.display="";}else{if(tojo.isIE){var burl=tojo.config["tojoBlankHtmlUrl"]||(tojo.moduleUrl("tojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_3ae=tojo.doc.createElement(html);}else{_3ae=tojo.doc.createElement("iframe");_3ae.src="javascript:\"\"";_3ae.className="dijitBackgroundIframe";}_3ae.tabIndex=-1;tojo.body().appendChild(_3ae);}return _3ae;};this.push=function(_3b1){_3b1.style.display="";if(tojo.isIE){_3b1.style.removeExpression("width");_3b1.style.removeExpression("height");}_3ad.push(_3b1);};}();if(tojo.isIE<7){tojo.addOnLoad(function(){var f=dijit._frames;tojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if((tojo.isIE&&tojo.isIE<7)||(tojo.isFF&&tojo.isFF<3&&tojo.hasClass(tojo.body(),"dijit_a11y"))){var _3b4=dijit._frames.pop();node.appendChild(_3b4);if(tojo.isIE){_3b4.style.setExpression("width",tojo._scopeName+".doc.getElementById('"+node.id+"').offsetWidth");_3b4.style.setExpression("height",tojo._scopeName+".doc.getElementById('"+node.id+"').offsetHeight");}this.iframe=_3b4;}};tojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!tojo._hasResource["dijit._base.scroll"]){tojo._hasResource["dijit._base.scroll"]=true;tojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node){node=tojo.byId(node);var body=node.ownerDocument.body;var html=body.parentNode;if(tojo.isFF==2||node==body||node==html){node.scrollIntoView(false);return;}var rtl=!tojo._isBodyLtr();var _3b9=tojo.doc.compatMode!="BackCompat";var _3ba=(_3b9&&!tojo.isSafari)?html:body;function addPseudoAttrs(_3bb){var _3bc=_3bb.parentNode;var _3bd=_3bb.offsetParent;if(_3bd==null){_3bb=_3ba;_3bd=html;_3bc=null;}_3bb._offsetParent=(_3bd==body)?_3ba:_3bd;_3bb._parent=(_3bc==body)?_3ba:_3bc;_3bb._start={H:_3bb.offsetLeft,V:_3bb.offsetTop};_3bb._scroll={H:_3bb.scrollLeft,V:_3bb.scrollTop};_3bb._renderedSize={H:_3bb.offsetWidth,V:_3bb.offsetHeight};var bp=tojo._getBorderExtents(_3bb);_3bb._borderStart={H:bp.l,V:bp.t};_3bb._borderSize={H:bp.w,V:bp.h};_3bb._clientSize=(_3bb._offsetParent==html&&tojo.isSafari&&_3b9)?{H:html.clientWidth,V:html.clientHeight}:{H:_3bb.clientWidth,V:_3bb.clientHeight};_3bb._scrollBarSize={V:null,H:null};for(var dir in _3bb._scrollBarSize){var _3c0=_3bb._renderedSize[dir]-_3bb._clientSize[dir]-_3bb._borderSize[dir];_3bb._scrollBarSize[dir]=(_3bb._clientSize[dir]>0&&_3c0>=15&&_3c0<=17)?_3c0:0;}_3bb._isScrollable={V:null,H:null};for(dir in _3bb._isScrollable){var _3c1=dir=="H"?"V":"H";_3bb._isScrollable[dir]=_3bb==_3ba||_3bb._scroll[dir]||_3bb._scrollBarSize[_3c1];}};var _3c2=node;while(_3c2!=null){addPseudoAttrs(_3c2);var next=_3c2._parent;if(next){next._child=_3c2;}_3c2=next;}for(var dir in _3ba._renderedSize){_3ba._renderedSize[dir]=Math.min(_3ba._clientSize[dir],_3ba._renderedSize[dir]);}var _3c5=node;while(_3c5!=_3ba){_3c2=_3c5._parent;if(_3c2.tagName=="TD"){var _3c6=_3c2._parent._parent._parent;if(_3c6._offsetParent==_3c5._offsetParent&&_3c2._offsetParent!=_3c5._offsetParent){_3c2=_3c6;}}var _3c7=_3c5==_3ba||(_3c2._offsetParent!=_3c5._offsetParent);for(dir in _3c5._start){var _3c8=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(tojo.isSafari||tojo.isIE)&&_3c2._clientSize.H>0){var _3c9=_3c2.scrollWidth-_3c2._clientSize.H;if(_3c9>0){_3c2._scroll.H-=_3c9;}}if(tojo.isIE&&_3c2._offsetParent.tagName=="TABLE"){_3c2._start[dir]-=_3c2._offsetParent._borderStart[dir];_3c2._borderStart[dir]=_3c2._borderSize[dir]=0;}if(_3c2._clientSize[dir]==0){_3c2._renderedSize[dir]=_3c2._clientSize[dir]=_3c2._child._clientSize[dir];if(rtl&&dir=="H"){_3c2._start[dir]-=_3c2._renderedSize[dir];}}else{_3c2._renderedSize[dir]-=_3c2._borderSize[dir]+_3c2._scrollBarSize[dir];}_3c2._start[dir]+=_3c2._borderStart[dir];var _3ca=_3c5._start[dir]-(_3c7?0:_3c2._start[dir])-_3c2._scroll[dir];var _3cb=_3ca+_3c5._renderedSize[dir]-_3c2._renderedSize[dir];var _3cc,_3cd=(dir=="H")?"scrollLeft":"scrollTop";var _3ce=(dir=="H"&&rtl);var _3cf=_3ce?-_3cb:_3ca;var _3d0=_3ce?-_3ca:_3cb;if(_3cf<=0){_3cc=_3cf;}else{if(_3d0<=0){_3cc=0;}else{if(_3cf<_3d0){_3cc=_3cf;}else{_3cc=_3d0;}}}var _3d1=0;if(_3cc!=0){var _3d2=_3c2[_3cd];_3c2[_3cd]+=_3ce?-_3cc:_3cc;_3d1=_3c2[_3cd]-_3d2;_3ca-=_3d1;_3d0-=_3ce?-_3d1:_3d1;}_3c2._renderedSize[dir]=_3c5._renderedSize[dir]+_3c2._scrollBarSize[dir]-((_3c2._isScrollable[dir]&&_3d0>0)?_3d0:0);_3c2._start[dir]+=(_3ca>=0||!_3c2._isScrollable[dir])?_3ca:0;}_3c5=_3c2;}};}if(!tojo._hasResource["dijit._base.sniff"]){tojo._hasResource["dijit._base.sniff"]=true;tojo.provide("dijit._base.sniff");(function(){var d=tojo;var ie=d.isIE;var _3d5=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _3d8=d.boxModel.replace(/-/,"");var _3d9={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_3d5,dj_opera8:maj(_3d5)==8,dj_opera9:maj(_3d5)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_3d9["dj_"+_3d8]=true;var html=tojo.doc.documentElement;for(var p in _3d9){if(_3d9[p]){if(html.className){html.className+=" "+p;}else{html.className=p;}}}tojo._loaders.unshift(function(){if(!tojo._isBodyLtr()){html.className+=" dijitRtl";for(var p in _3d9){if(_3d9[p]){html.className+=" "+p+"-rtl";}}}});})();}if(!tojo._hasResource["dijit._base.typematic"]){tojo._hasResource["dijit._base.typematic"]=true;tojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(tojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_3de,node,_3e0,obj,_3e2,_3e3){if(obj!=this._obj){this.stop();this._initialDelay=_3e3||500;this._subsequentDelay=_3e2||0.9;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=tojo.hitch(_3de,_3e0);this._fireEventAndReload();}},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,_3e5,_3e6,_3e7,_3e8,_3e9){if(_3e5.keyCode){_3e5.charOrCode=_3e5.keyCode;tojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_3e5.charCode){_3e5.charOrCode=String.fromCharCode(_3e5.charCode);tojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [tojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_3e5.charOrCode&&(_3e5.ctrlKey===undefined||_3e5.ctrlKey==evt.ctrlKey)&&(_3e5.altKey===undefined||_3e5.altKey==evt.ctrlKey)&&(_3e5.shiftKey===undefined||_3e5.shiftKey==evt.ctrlKey)){tojo.stopEvent(evt);dijit.typematic.trigger(_3e5,_3e6,node,_3e7,_3e5,_3e8,_3e9);}else{if(dijit.typematic._obj==_3e5){dijit.typematic.stop();}}}),tojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_3e5){dijit.typematic.stop();}})];},addMouseListener:function(node,_3ed,_3ee,_3ef,_3f0){var dc=tojo.connect;return [dc(node,"mousedown",this,function(evt){tojo.stopEvent(evt);dijit.typematic.trigger(evt,_3ed,node,_3ee,node,_3ef,_3f0);}),dc(node,"mouseup",this,function(evt){tojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){tojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){tojo.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){tojo.stopEvent(evt);if(tojo.isIE){dijit.typematic.trigger(evt,_3ed,node,_3ee,node,_3ef,_3f0);setTimeout(tojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_3f7,_3f8,_3f9,_3fa,_3fb,_3fc,_3fd){return this.addKeyListener(_3f8,_3f9,_3fa,_3fb,_3fc,_3fd).concat(this.addMouseListener(_3f7,_3fa,_3fb,_3fc,_3fd));}};}if(!tojo._hasResource["dijit._base.wai"]){tojo._hasResource["dijit._base.wai"]=true;tojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=tojo.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(tojo.config.blankGif||tojo.moduleUrl("tojo","resources/blank.gif"))+"\");";tojo.body().appendChild(div);var cs=tojo.getComputedStyle(div);if(cs){var _400=cs.backgroundImage;var _401=(cs.borderTopColor==cs.borderRightColor)||(_400!=null&&(_400=="none"||_400=="url(invalid-url:)"));tojo[_401?"addClass":"removeClass"](tojo.body(),"dijit_a11y");if(tojo.isIE){div.outerHTML="";}else{tojo.body().removeChild(div);}}}};if(tojo.isIE||tojo.isMoz){tojo._loaders.unshift(dijit.wai.onload);}tojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _404=this.getWaiRole(elem);if(role){return (_404.indexOf(role)>-1);}else{return (_404.length>0);}},getWaiRole:function(elem){return tojo.trim((tojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _408=tojo.attr(elem,"role")||"";if(tojo.isFF<3||!this._XhtmlRoles.test(_408)){tojo.attr(elem,"role",tojo.isFF<3?"wairole:"+role:role);}else{if((" "+_408+" ").indexOf(" "+role+" ")<0){var _409=tojo.trim(_408.replace(this._XhtmlRoles,""));var _40a=tojo.trim(_408.replace(_409,""));tojo.attr(elem,"role",_40a+(_40a?" ":"")+role);}}},removeWaiRole:function(elem,role){var _40d=tojo.attr(elem,"role");if(!_40d){return;}if(role){var _40e=tojo.isFF<3?"wairole:"+role:role;var t=tojo.trim((" "+_40d+" ").replace(" "+_40e+" "," "));tojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_411){if(tojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_411);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_411):!!elem.getAttribute("aria-"+_411);}},getWaiState:function(elem,_413){if(tojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_413);}else{var _414=elem.getAttribute("aria-"+_413);return _414?_414:"";}},setWaiState:function(elem,_416,_417){if(tojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_416,_417);}else{elem.setAttribute("aria-"+_416,_417);}},removeWaiState:function(elem,_419){if(tojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_419);}else{elem.removeAttribute("aria-"+_419);}}});}if(!tojo._hasResource["dijit._base"]){tojo._hasResource["dijit._base"]=true;tojo.provide("dijit._base");}if(!tojo._hasResource["dijit._Widget"]){tojo._hasResource["dijit._Widget"]=true;tojo.provide("dijit._Widget");tojo.require("dijit._base");tojo.connect(tojo,"connect",function(_41a,_41b){if(_41a&&tojo.isFunction(_41a._onConnect)){_41a._onConnect(_41b);}});dijit._connectOnUseEventHandler=function(_41c){};(function(){var _41d={};var _41e=function(dc){if(!_41d[dc]){var r=[];var _421;var _422=tojo.getObject(dc).prototype;for(var _423 in _422){if(tojo.isFunction(_422[_423])&&(_421=_423.match(/^_set([a-zA-Z]*)Attr$/))&&_421[1]){r.push(_421[1].charAt(0).toLowerCase()+_421[1].substr(1));}}_41d[dc]=r;}return _41d[dc]||[];};tojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_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,_blankGif:(tojo.config.blankGif||tojo.moduleUrl("tojo","resources/blank.gif")),postscript:function(_424,_425){this.create(_424,_425);},create:function(_426,_427){this.srcNodeRef=tojo.byId(_427);this._connects=[];this._deferredConnects=tojo.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];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_426){this.params=_426;tojo.mixin(this,_426);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}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 _429=function(attr,_42b){if((_42b.params&&attr in _42b.params)||_42b[attr]){_42b.attr(attr,_42b[attr]);}};for(var attr in this.attributeMap){_429(attr,this);}tojo.forEach(_41e(this.declaredClass),function(a){if(!(a in this.attributeMap)){_429(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||tojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_42e){this.destroyDescendants(_42e);this.destroy(_42e);},destroy:function(_42f){this.uninitialize();tojo.forEach(this._connects,function(_430){tojo.forEach(_430,tojo.disconnect);});tojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_42f);dijit.registry.remove(this.id);},destroyRendering:function(_432){if(this.bgIframe){this.bgIframe.destroy(_432);delete this.bgIframe;}if(this.domNode){if(!_432){tojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_432){tojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_433){tojo.forEach(this.getDescendants(),function(_434){if(_434.destroy){_434.destroy(_433);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_436){if(_436 in this._deferredConnects){var _437=this[this._deferredConnects[_436]||"domNode"];this.connect(_437,_436.toLowerCase(),this[_436]);delete this._deferredConnects[_436];}},_setClassAttr:function(_438){var _439=this[this.attributeMap["class"]||"domNode"];tojo.removeClass(_439,this["class"]);this["class"]=_438;tojo.addClass(_439,_438);},_setStyleAttr:function(_43a){var _43b=this[this.attributeMap["style"]||"domNode"];if(_43b.style.cssText){_43b.style.cssText+="; "+_43a;}else{_43b.style.cssText=_43a;}this["style"]=_43a;},setAttribute:function(attr,_43d){tojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_43d);},_attrToDom:function(attr,_43f){var _440=this.attributeMap[attr];tojo.forEach(tojo.isArray(_440)?_440:[_440],function(_441){var _442=this[_441.node||_441||"domNode"];var type=_441.type||"attribute";switch(type){case "attribute":if(tojo.isFunction(_43f)){_43f=tojo.hitch(this,_43f);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}tojo.attr(_442,attr,_43f);break;case "innerHTML":_442.innerHTML=_43f;break;case "class":tojo.removeClass(_442,this[attr]);tojo.addClass(_442,_43f);break;}},this);this[attr]=_43f;},attr:function(name,_445){var args=arguments.length;if(args==1&&!tojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _448=this._getAttrNames(name);if(args==2){if(this[_448.s]){return this[_448.s](_445)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_445);}this[name]=_445;}return this;}else{if(this[_448.g]){return this[_448.g]();}else{return this[name];}}},_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"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=tojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_44e,_44f){var d=tojo;var dco=d.hitch(d,"connect",obj);var _452=[];if(_44e=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_44f);_452.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_452.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_44e="onclick";}_452.push(dco(_44e,this,_44f));this._connects.push(_452);return _452;},disconnect:function(_457){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_457){tojo.forEach(_457,tojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return tojo._isBodyLtr();},isFocusable:function(){return this.focus&&(tojo.style(this.domNode,"display")!="none");},placeAt:function(_459,_45a){if(_459["declaredClass"]&&_459["addChild"]){_459.addChild(this,_45a);}else{tojo.place(this.domNode,_459,_45a);}return this;}});})();}if(!tojo._hasResource["dijit._Templated"]){tojo._hasResource["dijit._Templated"]=true;tojo.provide("dijit._Templated");tojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _45c=this.declaredClass,_45d=this;return tojo.string.substitute(tmpl,this,function(_45e,key){if(key.charAt(0)=="!"){_45e=_45d[key.substr(1)];}if(typeof _45e=="undefined"){throw new Error(_45c+" template:"+key);}if(_45e==null){return "";}return key.charAt(0)=="!"?_45e:_45e.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _460=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(tojo.isString(_460)){node=dijit._Templated._createNodesFromText(this._stringRepl(_460))[0];}else{node=_460.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _462=this.srcNodeRef;if(_462&&_462.parentNode){_462.parentNode.replaceChild(node,_462);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=tojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_462);},_fillContent:function(_466){var dest=this.containerNode;if(_466&&dest){while(_466.hasChildNodes()){dest.appendChild(_466.firstChild);}}},_attachTemplateNodes:function(_468,_469){_469=_469||function(n,p){return n.getAttribute(p);};var _46c=tojo.isArray(_468)?_468:(_468.all||_468.getElementsByTagName("*"));var x=tojo.isArray(_468)?0:-1;var _46e={};for(;x<_46c.length;x++){var _46f=(x==-1)?_468:_46c[x];if(this.widgetsInTemplate&&_469(_46f,"tojoType")){continue;}var _470=_469(_46f,"tojoAttachPoint");if(_470){var _471,_472=_470.split(/\s*,\s*/);while((_471=_472.shift())){if(tojo.isArray(this[_471])){this[_471].push(_46f);}else{this[_471]=_46f;}}}var _473=_469(_46f,"tojoAttachEvent");if(_473){var _474,_475=_473.split(/\s*,\s*/);var trim=tojo.trim;while((_474=_475.shift())){if(_474){var _477=null;if(_474.indexOf(":")!=-1){var _478=_474.split(":");_474=trim(_478[0]);_477=trim(_478[1]);}else{_474=trim(_474);}if(!_477){_477=_474;}this.connect(_46f,_474,_477);}}}var role=_469(_46f,"waiRole");if(role){dijit.setWaiRole(_46f,role);}var _47a=_469(_46f,"waiState");if(_47a){tojo.forEach(_47a.split(/\s*,\s*/),function(_47b){if(_47b.indexOf("-")!=-1){var pair=_47b.split("-");dijit.setWaiState(_46f,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_47d,_47e,_47f){var _480=dijit._Templated._templateCache;var key=_47e||_47d;var _482=_480[key];if(_482){if(!_482.ownerDocument||_482.ownerDocument==tojo.doc){return _482;}tojo._destroyElement(_482);}if(!_47e){_47e=dijit._Templated._sanitizeTemplateString(tojo._getText(_47d));}_47e=tojo.string.trim(_47e);if(_47f||_47e.match(/\$\{([^\}]+)\}/g)){return (_480[key]=_47e);}else{return (_480[key]=dijit._Templated._createNodesFromText(_47e)[0]);}};dijit._Templated._sanitizeTemplateString=function(_483){if(_483){_483=_483.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _484=_483.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_484){_483=_484[1];}}else{_483="";}return _483;};if(tojo.isIE){tojo.addOnWindowUnload(function(){var _485=dijit._Templated._templateCache;for(var key in _485){var _487=_485[key];if(!isNaN(_487.nodeType)){tojo._destroyElement(_487);}delete _485[key];}});}(function(){var _488={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=tojo.doc){tojo._destroyElement(tn);tn=undefined;}if(!tn){tn=tojo.doc.createElement("div");tn.style.display="none";tojo.body().appendChild(tn);}var _48b="none";var _48c=text.replace(/^\s+/,"");for(var type in _488){var map=_488[type];if(map.re.test(_48c)){_48b=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_48b];var _490=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _491=[];while(_490.firstChild){_491.push(_490.removeChild(_490.firstChild));}tn.innerHTML="";return _491;};})();tojo.extend(dijit._Widget,{tojoAttachEvent:"",tojoAttachPoint:"",waiRole:"",waiState:""});}if(!tojo._hasResource["dijit._Container"]){tojo._hasResource["dijit._Container"]=true;tojo.provide("dijit._Container");tojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _494=dijit.byId(id);return _494.isContainer?_494:null;}}return null;},_getSibling:function(_495){var node=this.domNode;do{node=node[_495+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},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);}});tojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_499,_49a){var _49b=this.containerNode;if(_49a&&typeof _49a=="number"){var _49c=tojo.query("> [widgetId]",_49b);if(_49c&&_49c.length>=_49a){_49b=_49c[_49a-1];_49a="after";}}tojo.place(_499.domNode,_49b,_49a);if(this._started&&!_499._started){_499.startup();}},removeChild:function(_49d){if(typeof _49d=="number"&&_49d>0){_49d=this.getChildren()[_49d];}if(!_49d||!_49d.domNode){return;}var node=_49d.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return tojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_4a1){tojo.forEach(this.getChildren(),function(_4a2){_4a2.destroyRecursive(_4a1);});},_getSiblingOfChild:function(_4a3,dir){var node=_4a3.domNode;var _4a6=(dir>0?"nextSibling":"previousSibling");do{node=node[_4a6];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_4a7){var _4a8=this.getChildren();for(var i=0,c;c=_4a8[i];i++){if(c==_4a7){return i;}}return -1;}});tojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_4ab,_4ac){var _4ad=this._keyNavCodes={};var prev=tojo.hitch(this,this.focusPrev);var next=tojo.hitch(this,this.focusNext);tojo.forEach(_4ab,function(code){_4ad[code]=prev;});tojo.forEach(_4ac,function(code){_4ad[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){tojo.forEach(this.getChildren(),tojo.hitch(this,"_startupChild"));},addChild:function(_4b2,_4b3){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_4b2);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _4b4=this._getNextFocusableChild(this.focusedChild,1);if(_4b4.getFocalNodes){this.focusChild(_4b4,_4b4.getFocalNodes()[0]);}else{this.focusChild(_4b4);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _4b5=this._getNextFocusableChild(this.focusedChild,-1);if(_4b5.getFocalNodes){var _4b6=_4b5.getFocalNodes();this.focusChild(_4b5,_4b6[_4b6.length-1]);}else{this.focusChild(_4b5);}},focusChild:function(_4b7,node){if(_4b7){if(this.focusedChild&&_4b7!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_4b7;if(node&&_4b7.focusFocalNode){_4b7.focusFocalNode(node);}else{_4b7.focus();}}},_startupChild:function(_4b9){if(_4b9.getFocalNodes){tojo.forEach(_4b9.getFocalNodes(),function(node){tojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_4b9.focusNode||_4b9.domNode;if(_4b9.isFocusable()){tojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();tojo.stopEvent(evt);}},_onNodeFocus:function(evt){tojo.attr(this.domNode,"tabindex",-1);var _4c1=dijit.getEnclosingWidget(evt.target);if(_4c1&&_4c1.isFocusable()){this.focusedChild=_4c1;}tojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){tojo.attr(this.domNode,"tabindex",this.tabIndex);}tojo.stopEvent(evt);},_onChildBlur:function(_4c3){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_4c4,dir){if(_4c4){_4c4=this._getSiblingOfChild(_4c4,dir);}var _4c6=this.getChildren();for(var i=0;i<_4c6.length;i++){if(!_4c4){_4c4=_4c6[(dir>0)?0:(_4c6.length-1)];}if(_4c4.isFocusable()){return _4c4;}_4c4=this._getSiblingOfChild(_4c4,dir);}return null;}});}if(!tojo._hasResource["dijit.layout._LayoutWidget"]){tojo._hasResource["dijit.layout._LayoutWidget"]=true;tojo.provide("dijit.layout._LayoutWidget");tojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){tojo.addClass(this.domNode,"dijitContainer");tojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}tojo.forEach(this.getChildren(),function(_4c8){_4c8.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(tojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_4c9,_4ca){var node=this.domNode;if(_4c9){tojo.marginBox(node,_4c9);if(_4c9.t){node.style.top=_4c9.t+"px";}if(_4c9.l){node.style.left=_4c9.l+"px";}}var mb=_4ca||{};tojo.mixin(mb,_4c9||{});if(!("h" in mb)||!("w" in mb)){mb=tojo.mixin(tojo.marginBox(node),mb);}var cs=tojo.getComputedStyle(node);var me=tojo._getMarginExtents(node,cs);var be=tojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=tojo._getPadExtents(node,cs);this._contentBox={l:tojo._toPixelValue(node,cs.paddingLeft),t:tojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_4d2){if(_4d2.baseClass){tojo.addClass(_4d2.domNode,this.baseClass+"-"+_4d2.baseClass);}},addChild:function(_4d3,_4d4){this.inherited(arguments);if(this._started){this._setupChild(_4d3);}},removeChild:function(_4d5){if(_4d5.baseClass){tojo.removeClass(_4d5.domNode,this.baseClass+"-"+_4d5.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=tojo.getComputedStyle(node);var me=tojo._getMarginExtents(node,cs);var pb=tojo._getPadBorderExtents(node,cs);return {l:tojo._toPixelValue(node,cs.paddingLeft),t:tojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _4db=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_4de,dim){_4de.resize?_4de.resize(dim):tojo.marginBox(_4de.domNode,dim);tojo.mixin(_4de,tojo.marginBox(_4de.domNode));tojo.mixin(_4de,dim);};dijit.layout.layoutChildren=function(_4e0,dim,_4e2){dim=tojo.mixin({},dim);tojo.addClass(_4e0,"dijitLayoutContainer");_4e2=tojo.filter(_4e2,function(item){return item.layoutAlign!="client";}).concat(tojo.filter(_4e2,function(item){return item.layoutAlign=="client";}));tojo.forEach(_4e2,function(_4e5){var elm=_4e5.domNode,pos=_4e5.layoutAlign;var _4e8=elm.style;_4e8.left=dim.l+"px";_4e8.top=dim.t+"px";_4e8.bottom=_4e8.right="auto";tojo.addClass(elm,"dijitAlign"+_4db(pos));if(pos=="top"||pos=="bottom"){size(_4e5,{w:dim.w});dim.h-=_4e5.h;if(pos=="top"){dim.t+=_4e5.h;}else{_4e8.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_4e5,{h:dim.h});dim.w-=_4e5.w;if(pos=="left"){dim.l+=_4e5.w;}else{_4e8.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_4e5,dim);}}}});};})();}if(!tojo._hasResource["dijit.form._FormWidget"]){tojo._hasResource["dijit.form._FormWidget"]=true;tojo.provide("dijit.form._FormWidget");tojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:tojo.mixin(tojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_4e9){this.disabled=_4e9;tojo.attr(this.focusNode,"disabled",_4e9);dijit.setWaiState(this.focusNode,"disabled",_4e9);if(_4e9){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_4ea){tojo.deprecated("setDisabled("+_4ea+") is deprecated. Use attr('disabled',"+_4ea+") instead.","","2.0");this.attr("disabled",_4ea);},_scroll:true,_onFocus:function(e){if(this._scroll){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_4ec){var _4ed=_4ec.currentTarget;if(_4ed&&_4ed.getAttribute){this.stateModifier=_4ed.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_4ec.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _4ee=this.connect(tojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_4ee);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(tojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){var _4ef=this.baseClass.split(" ");function multiply(_4f0){_4ef=_4ef.concat(tojo.map(_4ef,function(c){return c+_4f0;}),"dijit"+_4f0);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_4f3={};tojo.forEach(tn.className.split(" "),function(c){_4f3[c]=true;});if("_stateClasses" in this){tojo.forEach(this._stateClasses,function(c){delete _4f3[c];});}tojo.forEach(_4ef,function(c){_4f3[c]=true;});var _4f7=[];for(var c in _4f3){_4f7.push(c);}tn.className=_4f7.join(" ");this._stateClasses=_4ef;},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(_4fb){},_onChangeActive:false,_handleOnChange:function(_4fc,_4fd){this._lastValue=_4fc;if(this._lastValueReported==undefined&&(_4fd===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_4fc;}if((this.intermediateChanges||_4fd||_4fd===undefined)&&((typeof _4fc!=typeof this._lastValueReported)||this.compare(_4fc,this._lastValueReported)!=0)){this._lastValueReported=_4fc;if(this._onChangeActive){this.onChange(_4fc);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_4fe){tojo.deprecated("dijit.form._FormWidget:setValue("+_4fe+") is deprecated.  Use attr('value',"+_4fe+") instead.","","2.0");this.attr("value",_4fe);},getValue:function(){tojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(tojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(tojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});tojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:tojo.mixin(tojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){if(tojo.isIE||tojo.isSafari){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_501,_502){this.value=_501;this._handleOnChange(_501,_502);},_getValueAttr:function(_503){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_valueChanged:function(){var v=this.attr("value");var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyDown:function(e){if(e.keyCode==tojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(tojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=tojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(tojo.isSafari){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=tojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}},_onKeyPress:function(e){if(e.charOrCode==tojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){this.undo();tojo.stopEvent(e);return false;}else{if(this.intermediateChanges){var _509=this;setTimeout(function(){_509._handleOnChange(_509.attr("value"),false);},0);}}return true;}});}if(!tojo._hasResource["dijit.dijit"]){tojo._hasResource["dijit.dijit"]=true;tojo.provide("dijit.dijit");}if(!tojo._hasResource["dijit.Declaration"]){tojo._hasResource["dijit.Declaration"]=true;tojo.provide("dijit.Declaration");tojo.declare("dijit.Declaration",dijit._Widget,{_noScript:true,widgetClass:"",replaceVars:true,defaults:null,mixins:[],buildRendering:function(){var src=this.srcNodeRef.parentNode.removeChild(this.srcNodeRef),_50b=tojo.query("> script[type='tojo/method'][event='preamble']",src).orphan(),_50c=tojo.query("> script[type^='tojo/method'][event]",src).orphan(),_50d=tojo.query("> script[type^='tojo/method']",src).orphan(),_50e=tojo.query("> script[type^='tojo/connect']",src).orphan(),_50f=src.nodeName;var _510=this.defaults||{};tojo.forEach(_50c,function(s){var evt=s.getAttribute("event"),func=tojo.parser._functionFromScript(s);_510[evt]=func;});this.mixins=this.mixins.length?tojo.map(this.mixins,function(name){return tojo.getObject(name);}):[dijit._Widget,dijit._Templated];_510.widgetsInTemplate=true;_510._skipNodeCache=true;_510.templateString="<"+_50f+" class='"+src.className+"' tojoAttachPoint='"+(src.getAttribute("tojoAttachPoint")||"")+"' tojoAttachEvent='"+(src.getAttribute("tojoAttachEvent")||"")+"' >"+src.innerHTML.replace(/\%7B/g,"{").replace(/\%7D/g,"}")+"</"+_50f+">";tojo.query("[tojoType]",src).forEach(function(node){node.removeAttribute("tojoType");});var wc=tojo.declare(this.widgetClass,this.mixins,_510);var _517=_50e.concat(_50d);tojo.forEach(_517,function(s){var evt=s.getAttribute("event")||"postscript",func=tojo.parser._functionFromScript(s);tojo.connect(wc.prototype,evt,func);});}});}if(!tojo._hasResource["dijit.layout.ContentPane"]){tojo._hasResource["dijit.layout.ContentPane"]=true;tojo.provide("dijit.layout.ContentPane");tojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _51b=tojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=tojo.string.substitute(this.loadingMessage,_51b);this.errorMessage=tojo.string.substitute(this.errorMessage,_51b);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}tojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _51c=tojo.query(">",this.containerNode),_51d=_51c.filter(function(node){return tojo.hasAttr(node,"tojoType")||tojo.hasAttr(node,"widgetId");}),_51f=tojo.filter(_51d.map(dijit.byNode),function(_520){return _520&&_520.domNode&&_520.resize;});if(_51c.length==_51d.length&&_51f.length==1){this.isContainer=true;this._singleChild=_51f[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){tojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",href);},_setHrefAttr:function(href){this.href=href;if(this._created){return this._prepareLoad();}},setContent:function(data){tojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){this.href="";this.cancel();this._setContent(data||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||tojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_526){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(size){tojo.marginBox(this.domNode,size);var node=this.containerNode,mb=tojo.mixin(tojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_52b){this.cancel();this.isLoaded=false;this._loadCheck(_52b);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_52d){var _52e=this._isShown();if(this.href&&(_52d||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_52e&&!this._xhrDfd)||(!this.isLoaded&&_52e&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _530={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(tojo.isObject(this.ioArgs)){tojo.mixin(_530,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||tojo.xhrGet)(_530);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.cancelled){self._onError("Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(data){this.isLoaded=true;try{this.onLoad(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _535=this._contentSetter;if(_535){_535.empty();}else{this.inherited(arguments);tojo.html._emptyNode(this.containerNode);}},_setContent:function(cont,_537){this.destroyDescendants();this._isRealContent=!_537;var _538=this._contentSetter;if(!(_538&&_538 instanceof tojo.html._ContentSetter)){_538=this._contentSetter=new tojo.html._ContentSetter({node:this.containerNode,_onError:tojo.hitch(this,this._onError),onContentError:tojo.hitch(this,function(e){var _53a=this.onContentError(e);try{this.containerNode.innerHTML=_53a;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _53b=tojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});tojo.mixin(_538,_53b);_538.set((tojo.isObject(cont)&&cont.domNode)?cont.domNode:cont);delete this._contentSetterParams;if(!_537){this._onLoadHandler(cont);}},_onError:function(type,err,_53e){var _53f=this["on"+type+"Error"].call(this,err);if(_53e){console.error(_53e,err);}else{if(_53f){this._setContent(_53f,true);}}},_createSubWidgets:function(){try{tojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_541){},onDownloadError:function(_542){return this.errorMessage;},onDownloadEnd:function(){}});}if(!tojo._hasResource["dijit.form.Button"]){tojo._hasResource["dijit.form.Button"]=true;tojo.provide("dijit.form.Button");tojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\ttojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\r\n\t><span class=\"dijitReset dijitRight dijitInline\"\r\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\r\n\t\t\t\ttojoAttachPoint=\"titleNode,focusNode\" \r\n\t\t\t\tname=\"${name}\" type=\"${type}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" tojoAttachPoint=\"iconNode\" \r\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span \r\n\t\t\t\t></span \r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\" \r\n\t\t\t\t\tid=\"${id}_label\"  \r\n\t\t\t\t\ttojoAttachPoint=\"containerNode\"\r\n\t\t\t\t></span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",attributeMap:tojo.mixin(tojo.clone(dijit.form._FormWidget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){if(this.disabled||this.readOnly){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(e.type!="click"){tojo.stopEvent(e);}if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!this.focusNode.form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _546=dijit.byNode(node);if(_546&&typeof _546._onSubmit=="function"){_546._onSubmit(e);break;}}}}},_fillContent:function(_547){if(_547&&!("label" in this.params)){this.attr("label",_547.innerHTML);}},postCreate:function(){if(this.showLabel==false){tojo.addClass(this.containerNode,"dijitDisplayNone");}tojo.setSelectable(this.focusNode,false);this.inherited(arguments);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_54a){tojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_54a);},_setLabelAttr:function(_54b){this.containerNode.innerHTML=this.label=_54b;this._layoutHack();if(this.showLabel==false&&!this.params.title){this.titleNode.title=tojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}}});tojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container],{baseClass:"dijitDropDownButton",templateString:"<span class=\"dijit dijitReset dijitLeft dijitInline\"\r\n\ttojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onclick:_onDropDownClick,onkeydown:_onDropDownKeydown,onblur:_onDropDownBlur,onkeypress:_onKey\"\r\n\t><span class='dijitReset dijitRight dijitInline'\r\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\r\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\" \r\n\t\t\t\ttype=\"${type}\" name=\"${name}\"\r\n\t\t\t\ttojoAttachPoint=\"focusNode,titleNode\" \r\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\r\n\t\t\t\t><span class=\"dijitReset dijitInline\" \r\n\t\t\t\t\ttojoAttachPoint=\"iconNode\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"  \r\n\t\t\t\t\ttojoAttachPoint=\"containerNode,popupStateNode\" \r\n\t\t\t\t\tid=\"${id}_label\"\r\n\t\t\t\t></span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\r\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\r\n\t\t\t></button\r\n\t\t></span\r\n\t></span\r\n></span>\r\n",_fillContent:function(){if(this.srcNodeRef){var _54c=tojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_54c[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown){var _54d=tojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_54d);delete this.dropDownContainer;}dijit.popup.prepare(this.dropDown.domNode);this.inherited(arguments);},destroyDescendants:function(){if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}this.inherited(arguments);},_onArrowClick:function(e){if(this.disabled||this.readOnly){return;}this._toggleDropDown();},_onDropDownClick:function(e){var _550=tojo.isFF&&tojo.isFF<3&&navigator.appVersion.indexOf("Macintosh")!=-1;if(!_550||e.detail!=0||this._seenKeydown){this._onArrowClick(e);}this._seenKeydown=false;},_onDropDownKeydown:function(e){this._seenKeydown=true;},_onDropDownBlur:function(e){this._seenKeydown=false;},_onKey:function(e){if(this.disabled||this.readOnly){return;}if(e.charOrCode==tojo.keys.DOWN_ARROW){if(!this.dropDown||this.dropDown.domNode.style.visibility=="hidden"){tojo.stopEvent(e);this._toggleDropDown();}}},_onBlur:function(){this._closeDropDown();this.inherited(arguments);},_toggleDropDown:function(){if(this.disabled||this.readOnly){return;}dijit.focus(this.popupStateNode);var _554=this.dropDown;if(!_554){return;}if(!this._opened){if(_554.href&&!_554.isLoaded){var self=this;var _556=tojo.connect(_554,"onLoad",function(){tojo.disconnect(_556);self._openDropDown();});_554._loadCheck(true);return;}else{this._openDropDown();}}else{this._closeDropDown();}},_openDropDown:function(){var _557=this.dropDown;var _558=_557.domNode.style.width;var self=this;dijit.popup.open({parent:this,popup:_557,around:this.domNode,orient:this.isLeftToRight()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:function(){self._closeDropDown(true);},onCancel:function(){self._closeDropDown(true);},onClose:function(){_557.domNode.style.width=_558;self.popupStateNode.removeAttribute("popupActive");self._opened=false;}});if(this.domNode.offsetWidth>_557.domNode.offsetWidth){var _55a=null;if(!this.isLeftToRight()){_55a=_557.domNode.parentNode;var _55b=_55a.offsetLeft+_55a.offsetWidth;}tojo.marginBox(_557.domNode,{w:this.domNode.offsetWidth});if(_55a){_55a.style.left=_55b-this.domNode.offsetWidth+"px";}}this.popupStateNode.setAttribute("popupActive","true");this._opened=true;if(_557.focus){_557.focus();}},_closeDropDown:function(_55c){if(this._opened){dijit.popup.close(this.dropDown);if(_55c){this.focus();}this._opened=false;}}});tojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:"<table class='dijit dijitReset dijitInline dijitLeft'\r\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\r\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\r\n\t\t><td class=\"dijitReset dijitStretch dijitButtonContents dijitButtonNode\"\r\n\t\t\ttojoAttachEvent=\"ondijitclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"  tojoAttachPoint=\"titleNode\"\r\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\r\n\t\t\t><div class=\"dijitReset dijitInline\" tojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\r\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" tojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\r\n\t\t></td\r\n\t\t><td class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\ttojoAttachPoint=\"popupStateNode,focusNode\"\r\n\t\t\ttojoAttachEvent=\"ondijitclick:_onArrowClick, onkeypress:_onKey,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\tstateModifier=\"DownArrow\"\r\n\t\t\ttitle=\"${optionsTitle}\" name=\"${name}\"\r\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\r\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\r\n\t\t></td\r\n\t></tr></tbody\r\n></table>\r\n",attributeMap:tojo.mixin(tojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",name:"",tabIndex:["focusNode","titleNode"]}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){this.inherited(arguments);this._focalNodes=[this.titleNode,this.popupStateNode];tojo.forEach(this._focalNodes,tojo.hitch(this,function(node){if(tojo.isIE){this.connect(node,"onactivate",this._onNodeFocus);this.connect(node,"ondeactivate",this._onNodeBlur);}else{this.connect(node,"onfocus",this._onNodeFocus);this.connect(node,"onblur",this._onNodeBlur);}}));},focusFocalNode:function(node){this._focusedNode=node;dijit.focus(node);},hasNextFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[1];},focusNext:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?1:0];dijit.focus(this._focusedNode);},hasPrevFocalNode:function(){return this._focusedNode!==this.getFocalNodes()[0];},focusPrev:function(){this._focusedNode=this.getFocalNodes()[this._focusedNode?0:1];dijit.focus(this._focusedNode);},getFocalNodes:function(){return this._focalNodes;},_onNodeFocus:function(evt){this._focusedNode=evt.currentTarget;var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";tojo.addClass(this._focusedNode,fnc);},_onNodeBlur:function(evt){var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";tojo.removeClass(evt.currentTarget,fnc);},_onBlur:function(){this.inherited(arguments);this._focusedNode=null;}});tojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:tojo.mixin(tojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.attr("checked",!this.checked);},_setCheckedAttr:function(_564){this.checked=_564;tojo.attr(this.focusNode||this.domNode,"checked",_564);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_564);this._setStateClass();this._handleOnChange(_564,true);},setChecked:function(_565){tojo.deprecated("setChecked("+_565+") is deprecated. Use attr('checked',"+_565+") instead.","","2.0");this.attr("checked",_565);},reset:function(){this._hasBeenBlurred=false;this.attr("checked",this.params.checked||false);}});}if(!tojo._hasResource["dijit.Menu"]){tojo._hasResource["dijit.Menu"]=true;tojo.provide("dijit.Menu");tojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" tojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" tojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(tojo.body());}else{tojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([tojo.keys.UP_ARROW],[tojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}tojo.forEach(this.getChildren(),function(_566){_566.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_567){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case tojo.keys.RIGHT_ARROW:this._moveToPopup(evt);tojo.stopEvent(evt);break;case tojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{tojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(tojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_570){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_570))||dijit.Menu._iframeContentDocument(_570)["__parent__"]||(_570.name&&tojo.doc.frames[_570.name])||null;return win;},_iframeContentDocument:function(_572){var doc=_572.contentDocument||(_572.contentWindow&&_572.contentWindow.document)||(_572.name&&tojo.doc.frames[_572.name]&&tojo.doc.frames[_572.name].document)||null;return doc;},bindDomNode:function(node){node=tojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=tojo.withGlobal(win,tojo.body);}var cn=(node==tojo.body()?tojo.doc:node);node[this.id]=this._bindings.push([tojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),tojo.connect(cn,"onkeydown",this,"_contextKey"),tojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_577){var node=tojo.byId(_577);if(node){var bid=node[this.id]-1,b=this._bindings[bid];tojo.forEach(b,tojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==tojo.keys.F10){tojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(tojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}tojo.stopEvent(e);var x,y;if(tojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _581=tojo.coords(e.target,true);x=_581.x+10;y=_581.y+10;}var self=this;var _583=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_583);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _585=this.focusedChild;var _586=_585.popup;if(_586.isShowingNow){return;}_586.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_586,around:_585.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_586);_585.focus();self.currentPopup=null;}});this.currentPopup=_586;if(_586.focus){_586.focus();}},uninitialize:function(){tojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});tojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" tojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"tojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon\" tojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" tojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div tojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:tojo.mixin(tojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",disabled:false,_fillContent:function(_588){if(_588&&!("label" in this.params)){this.attr("label",_588.innerHTML);}},postCreate:function(){tojo.setSelectable(this.domNode,false);tojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);tojo.stopEvent(evt);},onClick:function(evt){},focus:function(){tojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){tojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_58b){tojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_58b);},setDisabled:function(_58c){tojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_58c);},_setDisabledAttr:function(_58d){this.disabled=_58d;tojo[_58d?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_58d?"true":"false");}});tojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _58e=tojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_58e[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=tojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}tojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";tojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});tojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){tojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});tojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" tojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"tojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" tojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" tojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div tojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_590){tojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_590);dijit.setWaiState(this.domNode,"checked",_590);this.checked=_590;},onChange:function(_591){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!tojo._hasResource["dijit.layout.StackContainer"]){tojo._hasResource["dijit.layout.StackContainer"]=true;tojo.provide("dijit.layout.StackContainer");tojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,baseClass:"dijitStackContainer",_started:false,postCreate:function(){this.inherited(arguments);dijit.setWaiRole(this.containerNode,"tabpanel");this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _593=this.getChildren();tojo.forEach(_593,this._setupChild,this);tojo.some(_593,function(_594){if(_594.selected){this.selectedChildWidget=_594;}return _594.selected;},this);var _595=this.selectedChildWidget;if(!_595&&_593[0]){_595=this.selectedChildWidget=_593[0];_595.selected=true;}if(_595){this._showChild(_595);}tojo.publish(this.id+"-startup",[{children:_593,selected:_595}]);this.inherited(arguments);},_setupChild:function(_596){this.inherited(arguments);_596.domNode.style.display="none";_596.domNode.style.position="relative";_596.domNode.title="";return _596;},addChild:function(_597,_598){this.inherited(arguments);if(this._started){tojo.publish(this.id+"-addChild",[_597,_598]);this.layout();if(!this.selectedChildWidget){this.selectChild(_597);}}},removeChild:function(page){this.inherited(arguments);if(this._beingDestroyed){return;}if(this._started){tojo.publish(this.id+"-removeChild",[page]);this.layout();}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _59a=this.getChildren();if(_59a.length){this.selectChild(_59a[0]);}}}},selectChild:function(page){page=dijit.byId(page);if(this.selectedChildWidget!=page){this._transition(page,this.selectedChildWidget);this.selectedChildWidget=page;tojo.publish(this.id+"-selectChild",[page]);}},_transition:function(_59c,_59d){if(_59d){this._hideChild(_59d);}this._showChild(_59c);if(this.doLayout&&_59c.resize){_59c.resize(this._containerContentBox||this._contentBox);}},_adjacent:function(_59e){var _59f=this.getChildren();var _5a0=tojo.indexOf(_59f,this.selectedChildWidget);_5a0+=_59e?1:_59f.length-1;return _59f[_5a0%_59f.length];},forward:function(){this.selectChild(this._adjacent(true));},back:function(){this.selectChild(this._adjacent(false));},_onKeyPress:function(e){tojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._contentBox);}},_showChild:function(page){var _5a3=this.getChildren();page.isFirstChild=(page==_5a3[0]);page.isLastChild=(page==_5a3[_5a3.length-1]);page.selected=true;page.domNode.style.display="";if(page._loadCheck){page._loadCheck();}if(page.onShow){page.onShow();}},_hideChild:function(page){page.selected=false;page.domNode.style.display="none";if(page.onHide){page.onHide();}},closeChild:function(page){var _5a6=page.onClose(this,page);if(_5a6){this.removeChild(page);page.destroyRecursive();}},destroy:function(){this._beingDestroyed=true;this.inherited(arguments);}});tojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span wairole='tablist' tojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",postCreate:function(){dijit.setWaiRole(this.domNode,"tablist");this.pane2button={};this.pane2handles={};this.pane2menu={};this._subscriptions=[tojo.subscribe(this.containerId+"-startup",this,"onStartup"),tojo.subscribe(this.containerId+"-addChild",this,"onAddChild"),tojo.subscribe(this.containerId+"-removeChild",this,"onRemoveChild"),tojo.subscribe(this.containerId+"-selectChild",this,"onSelectChild"),tojo.subscribe(this.containerId+"-containerKeyPress",this,"onContainerKeyPress")];},onStartup:function(info){tojo.forEach(info.children,this.onAddChild,this);this.onSelectChild(info.selected);},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(pane);}tojo.forEach(this._subscriptions,tojo.unsubscribe);this.inherited(arguments);},onAddChild:function(page,_5aa){var _5ab=tojo.doc.createElement("span");this.domNode.appendChild(_5ab);var cls=tojo.getObject(this.buttonWidget);var _5ad=new cls({label:page.title,closeButton:page.closable},_5ab);this.addChild(_5ad,_5aa);this.pane2button[page]=_5ad;page.controlButton=_5ad;var _5ae=[];_5ae.push(tojo.connect(_5ad,"onClick",tojo.hitch(this,"onButtonClick",page)));if(page.closable){_5ae.push(tojo.connect(_5ad,"onClickCloseButton",tojo.hitch(this,"onCloseButtonClick",page)));var _5af=tojo.i18n.getLocalization("dijit","common");var _5b0=new dijit.Menu({targetNodeIds:[_5ad.id],id:_5ad.id+"_Menu"});var _5b1=new dijit.MenuItem({label:_5af.itemClose});_5ae.push(tojo.connect(_5b1,"onClick",tojo.hitch(this,"onCloseButtonClick",page)));_5b0.addChild(_5b1);this.pane2menu[page]=_5b0;}this.pane2handles[page]=_5ae;if(!this._currentChild){_5ad.focusNode.setAttribute("tabIndex","0");this._currentChild=page;}if(!this.isLeftToRight()&&tojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}tojo.forEach(this.pane2handles[page],tojo.disconnect);delete this.pane2handles[page];var menu=this.pane2menu[page];if(menu){menu.destroyRecursive();delete this.pane2menu[page];}var _5b4=this.pane2button[page];if(_5b4){_5b4.destroy();delete this.pane2button[page];}},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _5b6=this.pane2button[this._currentChild];_5b6.attr("checked",false);_5b6.focusNode.setAttribute("tabIndex","-1");}var _5b7=this.pane2button[page];_5b7.attr("checked",true);this._currentChild=page;_5b7.focusNode.setAttribute("tabIndex","0");var _5b8=dijit.byId(this.containerId);dijit.setWaiState(_5b8.containerNode,"labelledby",_5b7.id);},onButtonClick:function(page){var _5ba=dijit.byId(this.containerId);_5ba.selectChild(page);},onCloseButtonClick:function(page){var _5bc=dijit.byId(this.containerId);_5bc.closeChild(page);var b=this.pane2button[this._currentChild];if(b){dijit.focus(b.focusNode||b.domNode);}},adjacent:function(_5be){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_5be=!_5be;}var _5bf=this.getChildren();var _5c0=tojo.indexOf(_5bf,this.pane2button[this._currentChild]);var _5c1=_5be?1:_5bf.length-1;return _5bf[(_5c0+_5c1)%_5bf.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _5c3=null;if(e.ctrlKey||!e._djpage){var k=tojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_5c3=false;}break;case k.PAGE_UP:if(e.ctrlKey){_5c3=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_5c3=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_5c3=true;}break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}tojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();tojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}tojo.stopEvent(e);}}}}if(_5c3!==null){this.adjacent(_5c3).onClick();tojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});tojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",postCreate:function(evt){dijit.setWaiRole((this.focusNode||this.domNode),"tab");this.inherited(arguments);},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});tojo.extend(dijit._Widget,{title:"",selected:false,closable:false,onClose:function(){return true;}});}if(!tojo._hasResource["dijit.layout.TabContainer"]){tojo._hasResource["dijit.layout.TabContainer"]=true;tojo.provide("dijit.layout.TabContainer");tojo.declare("dijit.layout.TabContainer",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,templateString:null,templateString:"<div class=\"dijitTabContainer\">\r\n\t<div tojoAttachPoint=\"tablistNode\"></div>\r\n\t<div tojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\r\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" tojoAttachPoint=\"containerNode\"></div>\r\n</div>\r\n",_controllerWidget:"dijit.layout.TabController",postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.inherited(arguments);},postCreate:function(){this.inherited(arguments);var _5c9=tojo.getObject(this._controllerWidget);this.tablist=new _5c9({id:this.id+"_tablist",tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout")},this.tablistNode);if(this.tabStrip){tojo.addClass(this.tablist.domNode,this.baseClass+"Strip");}},_setupChild:function(tab){tojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);return tab;},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this.doLayout){return;}var _5cb=this.tabPosition.replace(/-h/,"");var _5cc=[{domNode:this.tablist.domNode,layoutAlign:_5cb},{domNode:this.tablistSpacer,layoutAlign:_5cb},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_5cc);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_5cc[2]);if(this.selectedChildWidget){this._showChild(this.selectedChildWidget);if(this.doLayout&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox);}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});tojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div wairole='tablist' tojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",doLayout:true,buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _5cd=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_5cd=Math.max(_5cd,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_5cd+"px";}}});tojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",templateString:"<div waiRole=\"presentation\" tojoAttachEvent='onclick:onClick,onmouseenter:_onMouse,onmouseleave:_onMouse'>\r\n    <div waiRole=\"presentation\" class='dijitTabInnerDiv' tojoAttachPoint='innerDiv'>\r\n        <div waiRole=\"presentation\" class='dijitTabContent' tojoAttachPoint='tabContent'>\r\n\t        <span tojoAttachPoint='containerNode,focusNode' class='tabLabel'>${!label}</span><img class =\"dijitTabButtonSpacer\" src=\"${_blankGif}\" />\r\n\t        <div class=\"dijitInline closeNode\" tojoAttachPoint='closeNode' tojoAttachEvent='onclick:onClickCloseButton'>\r\n\t        \t<img src=\"${_blankGif}\" alt=\"\" tojoAttachPoint='closeButtonNode' class='closeImage' tojoAttachEvent='onmouseenter:_onMouse, onmouseleave:_onMouse' stateModifier='CloseButton' waiRole=\"presentation\"/>\r\n\t            <span tojoAttachPoint='closeText' class='closeText'>x</span>\r\n\t        </div>\r\n        </div>\r\n    </div>\r\n</div>\r\n",_scroll:false,postCreate:function(){if(this.closeButton){tojo.addClass(this.innerDiv,"dijitClosable");var _5d0=tojo.i18n.getLocalization("dijit","common");if(this.closeNode){tojo.attr(this.closeNode,"title",_5d0.itemClose);tojo.attr(this.closeButtonNode,"title",_5d0.itemClose);}}else{this.closeNode.style.display="none";}this.inherited(arguments);tojo.setSelectable(this.containerNode,false);}});}if(!tojo._hasResource["dijit.form.Form"]){tojo._hasResource["dijit.form.Form"]=true;tojo.provide("dijit.form.Form");tojo.declare("dijit.form._FormMixin",null,{reset:function(){tojo.forEach(this.getDescendants(),function(_5d1){if(_5d1.reset){_5d1.reset();}});},validate:function(){var _5d2=false;return tojo.every(tojo.map(this.getDescendants(),function(_5d3){_5d3._hasBeenBlurred=true;var _5d4=_5d3.disabled||!_5d3.validate||_5d3.validate();if(!_5d4&&!_5d2){dijit.scrollIntoView(_5d3.containerNode||_5d3.domNode);_5d3.focus();_5d2=true;}return _5d4;}),function(item){return item;});},setValues:function(val){tojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(obj){var map={};tojo.forEach(this.getDescendants(),function(_5d9){if(!_5d9.name){return;}var _5da=map[_5d9.name]||(map[_5d9.name]=[]);_5da.push(_5d9);});for(var name in map){if(!map.hasOwnProperty(name)){continue;}var _5dc=map[name],_5dd=tojo.getObject(name,false,obj);if(_5dd===undefined){continue;}if(!tojo.isArray(_5dd)){_5dd=[_5dd];}if(typeof _5dc[0].checked=="boolean"){tojo.forEach(_5dc,function(w,i){w.attr("value",tojo.indexOf(_5dd,w.value)!=-1);});}else{if(_5dc[0]._multiValue){_5dc[0].attr("value",_5dd);}else{tojo.forEach(_5dc,function(w,i){w.attr("value",_5dd[i]);});}}}},getValues:function(){tojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_getValueAttr:function(){var obj={};tojo.forEach(this.getDescendants(),function(_5e3){var name=_5e3.name;if(!name||_5e3.disabled){return;}var _5e5=_5e3.attr("value");if(typeof _5e3.checked=="boolean"){if(/Radio/.test(_5e3.declaredClass)){if(_5e5!==false){tojo.setObject(name,_5e5,obj);}}else{var ary=tojo.getObject(name,false,obj);if(!ary){ary=[];tojo.setObject(name,ary,obj);}if(_5e5!==false){ary.push(_5e5);}}}else{tojo.setObject(name,_5e5,obj);}});return obj;},isValid:function(){this._invalidWidgets=[];return tojo.every(this.getDescendants(),function(_5e7){var _5e8=_5e7.disabled||!_5e7.isValid||_5e7.isValid();if(!_5e8){this._invalidWidgets.push(_5e7);}return _5e8;},this);},onValidStateChange:function(_5e9){},_widgetChange:function(_5ea){var _5eb=this._lastValidState;if(!_5ea||this._lastValidState===undefined){_5eb=this.isValid();if(this._lastValidState===undefined){this._lastValidState=_5eb;}}else{if(_5ea.isValid){this._invalidWidgets=tojo.filter(this._invalidWidgets||[],function(w){return (w!=_5ea);},this);if(!_5ea.isValid()&&!_5ea.attr("disabled")){this._invalidWidgets.push(_5ea);}_5eb=(this._invalidWidgets.length===0);}}if(_5eb!==this._lastValidState){this._lastValidState=_5eb;this.onValidStateChange(_5eb);}},connectChildren:function(){tojo.forEach(this._changeConnections,tojo.hitch(this,"disconnect"));var _5ed=this;var _5ee=this._changeConnections=[];tojo.forEach(tojo.filter(this.getDescendants(),function(item){return item.validate;}),function(_5f0){_5ee.push(_5ed.connect(_5f0,"validate",tojo.hitch(_5ed,"_widgetChange",_5f0)));_5ee.push(_5ed.connect(_5f0,"_setDisabledAttr",tojo.hitch(_5ed,"_widgetChange",_5f0)));});this._widgetChange(null);},startup:function(){this.inherited(arguments);this._changeConnections=[];this.connectChildren();}});tojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],{name:"",action:"",method:"",encType:"","accept-charset":"",accept:"",target:"",templateString:"<form tojoAttachPoint='containerNode' tojoAttachEvent='onreset:_onReset,onsubmit:_onSubmit' name='${name}'></form>",attributeMap:tojo.mixin(tojo.clone(dijit._Widget.prototype.attributeMap),{action:"",method:"",encType:"","accept-charset":"",accept:"",target:""}),execute:function(_5f1){},onExecute:function(){},_setEncTypeAttr:function(_5f2){this.encType=_5f2;tojo.attr(this.domNode,"encType",_5f2);if(tojo.isIE){this.domNode.encoding=_5f2;}},postCreate:function(){if(tojo.isIE&&this.srcNodeRef&&this.srcNodeRef.attributes){var item=this.srcNodeRef.attributes.getNamedItem("encType");if(item&&!item.specified&&(typeof item.value=="string")){this.attr("encType",item.value);}}this.inherited(arguments);},onReset:function(e){return true;},_onReset:function(e){var faux={returnValue:true,preventDefault:function(){this.returnValue=false;},stopPropagation:function(){},currentTarget:e.currentTarget,target:e.target};if(!(this.onReset(faux)===false)&&faux.returnValue){this.reset();}tojo.stopEvent(e);return false;},_onSubmit:function(e){var fp=dijit.form.Form.prototype;if(this.execute!=fp.execute||this.onExecute!=fp.onExecute){tojo.deprecated("dijit.form.Form:execute()/onExecute() are deprecated. Use onSubmit() instead.","","2.0");this.onExecute();this.execute(this.getValues());}if(this.onSubmit(e)===false){tojo.stopEvent(e);}},onSubmit:function(e){return this.isValid();},submit:function(){if(!(this.onSubmit()===false)){this.containerNode.submit();}}});}if(!tojo._hasResource["dijit.Dialog"]){tojo._hasResource["dijit.Dialog"]=true;tojo.provide("dijit.Dialog");tojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper' id='${id}_wrapper'><div class='dijitDialogUnderlay ${class}' id='${id}' tojoAttachPoint='node'></div></div>",attributeMap:{},postCreate:function(){tojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);},layout:function(){var _5fa=dijit.getViewport();var is=this.node.style,os=this.domNode.style;os.top=_5fa.t+"px";os.left=_5fa.l+"px";is.width=_5fa.w+"px";is.height=_5fa.h+"px";var _5fd=dijit.getViewport();if(_5fa.w!=_5fd.w){is.width=_5fd.w+"px";}if(_5fa.h!=_5fd.h){is.height=_5fd.h+"px";}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block";}},hide:function(){this.domNode.style.display="none";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none";}},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy();}}});tojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_5fe){},onCancel:function(){},onExecute:function(){},_onSubmit:function(){this.onExecute();this.execute(this.attr("value"));},_getFocusItems:function(_5ff){var _600=dijit._getTabNavigable(tojo.byId(_5ff));this._firstFocusItem=_600.lowest||_600.first||_5ff;this._lastFocusItem=_600.last||_600.highest||this._firstFocusItem;if(tojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&tojo.attr(this._firstFocusItem,"type").toLowerCase()=="file"){tojo.attr(_5ff,"tabindex","0");this._firstFocusItem=_5ff;}}});tojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:null,templateString:"<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\r\n\t<div tojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\r\n\t<span tojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\r\n\t<span tojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" tojoAttachEvent=\"onclick: onCancel\" title=\"${buttonCancel}\">\r\n\t\t<span tojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\r\n\t</span>\r\n\t</div>\r\n\t\t<div tojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\r\n</div>\r\n",attributeMap:tojo.mixin(tojo.clone(dijit._Widget.prototype.attributeMap),{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}]}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,postMixInProperties:function(){var _601=tojo.i18n.getLocalization("dijit","common");tojo.mixin(this,_601);this.inherited(arguments);},postCreate:function(){var s=this.domNode.style;s.visibility="hidden";s.position="absolute";s.display="";s.top="-9999px";tojo.body().appendChild(this.domNode);this.inherited(arguments);this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide");this._modalconnects=[];},onLoad:function(){this._position();this.inherited(arguments);},_endDrag:function(e){if(e&&e.node&&e.node===this.domNode){var vp=dijit.getViewport();var p=e._leftTop||tojo.coords(e.node,true);this._relativePosition={t:p.t-vp.t,l:p.l-vp.l};}},_setup:function(){var node=this.domNode;if(this.titleBar&&this.draggable){this._moveable=(tojo.isIE==6)?new tojo.dnd.TimedMoveable(node,{handle:this.titleBar}):new tojo.dnd.Moveable(node,{handle:this.titleBar,timeout:0});tojo.subscribe("/dnd/move/stop",this,"_endDrag");}else{tojo.addClass(node,"dijitDialogFixed");}this._underlay=new dijit.DialogUnderlay({id:this.id+"_underlay","class":tojo.map(this["class"].split(/\s/),function(s){return s+"_underlay";}).join(" ")});var _608=this._underlay;this._fadeIn=tojo.fadeIn({node:node,duration:this.duration,onBegin:tojo.hitch(_608,"show")});this._fadeOut=tojo.fadeOut({node:node,duration:this.duration,onEnd:function(){node.style.visibility="hidden";node.style.top="-9999px";_608.hide();}});},uninitialize:function(){if(this._fadeIn&&this._fadeIn.status()=="playing"){this._fadeIn.stop();}if(this._fadeOut&&this._fadeOut.status()=="playing"){this._fadeOut.stop();}if(this._underlay){this._underlay.destroy();}if(this._moveable){this._moveable.destroy();}},_size:function(){var mb=tojo.marginBox(this.domNode);var _60a=dijit.getViewport();if(mb.w>=_60a.w||mb.h>=_60a.h){tojo.style(this.containerNode,{width:Math.min(mb.w,Math.floor(_60a.w*0.75))+"px",height:Math.min(mb.h,Math.floor(_60a.h*0.75))+"px",overflow:"auto",position:"relative"});}},_position:function(){if(!tojo.hasClass(tojo.body(),"tojoMove")){var node=this.domNode;var _60c=dijit.getViewport();var p=this._relativePosition;var mb=p?null:tojo.marginBox(node);tojo.style(node,{left:Math.floor(_60c.l+(p?p.l:(_60c.w-mb.w)/2))+"px",top:Math.floor(_60c.t+(p?p.t:(_60c.h-mb.h)/2))+"px"});}},_onKey:function(evt){if(evt.charOrCode){var dk=tojo.keys;var node=evt.target;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.domNode);}var _612=(this._firstFocusItem==this._lastFocusItem);if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_612){dijit.focus(this._lastFocusItem);}tojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_612){dijit.focus(this._firstFocusItem);}tojo.stopEvent(evt);}else{while(node){if(node==this.domNode){if(evt.charOrCode==dk.ESCAPE){this.onCancel();}else{return;}}node=node.parentNode;}if(evt.charOrCode!==dk.TAB){tojo.stopEvent(evt);}else{if(!tojo.isOpera){try{this._firstFocusItem.focus();}catch(e){}}}}}}},show:function(){if(this.open){return;}if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true;}if(this._fadeOut.status()=="playing"){this._fadeOut.stop();}this._modalconnects.push(tojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(tojo.connect(window,"onresize",this,"layout"));this._modalconnects.push(tojo.connect(tojo.doc.documentElement,"onkeypress",this,"_onKey"));tojo.style(this.domNode,{opacity:0,visibility:""});this.open=true;this._loadCheck();this._size();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);if(this.autofocus){this._getFocusItems(this.domNode);setTimeout(tojo.hitch(dijit,"focus",this._firstFocusItem),50);}},hide:function(){if(!this._alreadyInitialized){return;}if(this._fadeIn.status()=="playing"){this._fadeIn.stop();}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false;}tojo.forEach(this._modalconnects,tojo.disconnect);this._modalconnects=[];if(this.refocus){this.connect(this._fadeOut,"onEnd",tojo.hitch(dijit,"focus",this._savedFocus));}if(this._relativePosition){delete this._relativePosition;}this.open=false;},layout:function(){if(this.domNode.style.visibility!="hidden"){this._underlay.layout();this._position();}},destroy:function(){tojo.forEach(this._modalconnects,tojo.disconnect);if(this.refocus&&this.open){setTimeout(tojo.hitch(dijit,"focus",this._savedFocus),25);}this.inherited(arguments);}});tojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,"class":"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:null,templateString:"<div waiRole=\"presentation\">\r\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\r\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" tojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\r\n</div>\r\n",postCreate:function(){this.inherited(arguments);this.connect(this.containerNode,"onkeypress","_onKey");this.containerNode.title=this.title;},orient:function(node,_614,_615){this.domNode.className=this["class"]+" dijitTooltipAB"+(_615.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_615.charAt(0)=="T"?"Below":"Above");},onOpen:function(pos){this.orient(this.domNode,pos.aroundCorner,pos.corner);this._loadCheck();if(this.autofocus){this._getFocusItems(this.containerNode);dijit.focus(this._firstFocusItem);}},_onKey:function(evt){var node=evt.target;var dk=tojo.keys;if(evt.charOrCode===dk.TAB){this._getFocusItems(this.containerNode);}var _61a=(this._firstFocusItem==this._lastFocusItem);if(evt.charOrCode==dk.ESCAPE){this.onCancel();tojo.stopEvent(evt);}else{if(node==this._firstFocusItem&&evt.shiftKey&&evt.charOrCode===dk.TAB){if(!_61a){dijit.focus(this._lastFocusItem);}tojo.stopEvent(evt);}else{if(node==this._lastFocusItem&&evt.charOrCode===dk.TAB&&!evt.shiftKey){if(!_61a){dijit.focus(this._firstFocusItem);}tojo.stopEvent(evt);}else{if(evt.charOrCode===dk.TAB){evt.stopPropagation();}}}}}});}if(!tojo._hasResource["dijit.form.TextBox"]){tojo._hasResource["dijit.form.TextBox"]=true;tojo.provide("dijit.form.TextBox");tojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",templateString:"<input class=\"dijit dijitReset dijitLeft\" tojoAttachPoint='textbox,focusNode' name=\"${name}\"\r\n\ttojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse,onfocus:_onMouse,onblur:_onMouse,onkeypress:_onKeyPress'\r\n\tautocomplete=\"off\" type=\"${type}\"\r\n\t/>\r\n",baseClass:"dijitTextBox",attributeMap:tojo.mixin(tojo.clone(dijit.form._FormValueWidget.prototype.attributeMap),{maxLength:"focusNode"}),_getValueAttr:function(){return this.parse(this.attr("displayedValue"),this.constraints);},_setValueAttr:function(_61b,_61c,_61d){var _61e;if(_61b!==undefined){_61e=this.filter(_61b);if(_61e!==null&&((typeof _61e!="number")||!isNaN(_61e))){if(typeof _61d!="string"){_61d=this.format(_61e,this.constraints);}}else{_61d="";}}if(_61d!=null&&_61d!=undefined){this.textbox.value=_61d;}dijit.form.TextBox.superclass._setValueAttr.call(this,_61e,_61c);},displayedValue:"",getDisplayedValue:function(){tojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");return this.attr("displayedValue");},_getDisplayedValueAttr:function(){return this.filter(this.textbox.value);},setDisplayedValue:function(_61f){tojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");this.attr("displayedValue",_61f);},_setDisplayedValueAttr:function(_620){this.textbox.value=_620;this._setValueAttr(this.attr("value"));},format:function(_621,_622){return ((_621==null||_621==undefined)?"":(_621.toString?_621.toString():_621));},parse:function(_623,_624){return _623;},postCreate:function(){this.textbox.setAttribute("value",this.textbox.value);this.inherited(arguments);this._layoutHack();},filter:function(val){if(typeof val!="string"){return val;}if(this.trim){val=tojo.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.attr("value"),(this.isValid?this.isValid():true));},_onBlur:function(){this._setBlurValue();this.inherited(arguments);}});dijit.selectInputText=function(_627,_628,stop){var _62a=tojo.global;var _62b=tojo.doc;_627=tojo.byId(_627);if(isNaN(_628)){_628=0;}if(isNaN(stop)){stop=_627.value?_627.value.length:0;}_627.focus();if(_62b["selection"]&&tojo.body()["createTextRange"]){if(_627.createTextRange){var _62c=_627.createTextRange();with(_62c){collapse(true);moveStart("character",_628);moveEnd("character",stop);select();}}}else{if(_62a["getSelection"]){var _62d=_62a.getSelection();if(_627.setSelectionRange){_627.setSelectionRange(_628,stop);}}}};}if(!tojo._hasResource["dijit.InlineEditBox"]){tojo._hasResource["dijit.InlineEditBox"]=true;tojo.provide("dijit.InlineEditBox");tojo.declare("dijit.InlineEditBox",dijit._Widget,{editing:false,autoSave:true,buttonSave:"",buttonCancel:"",renderAsHtml:false,editor:"dijit.form.TextBox",editorParams:{},onChange:function(_62e){},onCancel:function(){},width:"100%",value:"",noValueIndicator:"<span style='font-family: wingdings; text-decoration: underline;'>&nbsp;&nbsp;&nbsp;&nbsp;&#x270d;&nbsp;&nbsp;&nbsp;&nbsp;</span>",constructor:function(){this.editorParams={};},postMixInProperties:function(){this.inherited(arguments);this.displayNode=this.srcNodeRef;var _62f={ondijitclick:"_onClick",onmouseover:"_onMouseOver",onmouseout:"_onMouseOut",onfocus:"_onMouseOver",onblur:"_onMouseOut"};for(var name in _62f){this.connect(this.displayNode,name,_62f[name]);}dijit.setWaiRole(this.displayNode,"button");if(!this.displayNode.getAttribute("tabIndex")){this.displayNode.setAttribute("tabIndex",0);}this.attr("value",this.value||this.displayNode.innerHTML);},setDisabled:function(_631){tojo.deprecated("dijit.InlineEditBox.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_631);},_setDisabledAttr:function(_632){this.disabled=_632;dijit.setWaiState(this.domNode,"disabled",_632);},_onMouseOver:function(){tojo.addClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onMouseOut:function(){tojo.removeClass(this.displayNode,this.disabled?"dijitDisabledClickableRegion":"dijitClickableRegion");},_onClick:function(e){if(this.disabled){return;}if(e){tojo.stopEvent(e);}this._onMouseOut();setTimeout(tojo.hitch(this,"edit"),0);},edit:function(){if(this.disabled||this.editing){return;}this.editing=true;var _634=(this.renderAsHtml?this.value:this.value.replace(/\s*\r?\n\s*/g,"").replace(/<br\/?>/gi,"\n").replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,"\""));var _635=tojo.doc.createElement("span");tojo.place(_635,this.domNode,"before");var ew=this.editWidget=new dijit._InlineEditor({value:tojo.trim(_634),autoSave:this.autoSave,buttonSave:this.buttonSave,buttonCancel:this.buttonCancel,renderAsHtml:this.renderAsHtml,editor:this.editor,editorParams:this.editorParams,style:tojo.getComputedStyle(this.displayNode),save:tojo.hitch(this,"save"),cancel:tojo.hitch(this,"cancel"),width:this.width},_635);var ews=ew.domNode.style;this.displayNode.style.display="none";ews.position="static";ews.visibility="visible";this.domNode=ew.domNode;setTimeout(function(){if(ew.editWidget._resetValue===undefined){ew.editWidget._resetValue=ew.getValue();}ew.focus();},100);},_showText:function(_638){this.displayNode.style.display="";var ew=this.editWidget;var ews=ew.domNode.style;ews.position="absolute";ews.visibility="hidden";this.domNode=this.displayNode;if(_638){dijit.focus(this.displayNode);}ews.display="none";setTimeout(function(){ew.destroy();delete ew;if(tojo.isIE){dijit.focus(dijit.getFocus());}},1000);},save:function(_63b){if(this.disabled||!this.editing){return;}this.editing=false;var _63c=this.editWidget.getValue()+"";this.attr("value",this.renderAsHtml?_63c:_63c.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/\n/g,"<br>"));this.onChange(_63c);this._showText(_63b);},setValue:function(val){tojo.deprecated("dijit.InlineEditBox.setValue() is deprecated.  Use attr('value', ...) instead.","","2.0");return this.attr("value",val);},_setValueAttr:function(val){this.value=val;this.displayNode.innerHTML=tojo.trim(val)||this.noValueIndicator;},getValue:function(){tojo.deprecated("dijit.InlineEditBox.getValue() is deprecated.  Use attr('value') instead.","","2.0");return this.attr("value");},cancel:function(_63f){this.editing=false;this.onCancel();this._showText(_63f);}});tojo.declare("dijit._InlineEditor",[dijit._Widget,dijit._Templated],{templateString:"<span tojoAttachPoint=\"editNode\" waiRole=\"presentation\" style=\"position: absolute; visibility:hidden\" class=\"dijitReset dijitInline\"\r\n\ttojoAttachEvent=\"onkeypress: _onKeyPress\" \r\n\t><span tojoAttachPoint=\"editorPlaceholder\"></span\r\n\t><span tojoAttachPoint=\"buttonContainer\"\r\n\t\t><button class='saveButton' tojoAttachPoint=\"saveButton\" tojoType=\"dijit.form.Button\" tojoAttachEvent=\"onClick:save\" disabled=\"true\" label=\"${buttonSave}\"></button\r\n\t\t><button class='cancelButton' tojoAttachPoint=\"cancelButton\" tojoType=\"dijit.form.Button\" tojoAttachEvent=\"onClick:cancel\" label=\"${buttonCancel}\"></button\r\n\t></span\r\n></span>\r\n",widgetsInTemplate:true,postMixInProperties:function(){this.inherited(arguments);this.messages=tojo.i18n.getLocalization("dijit","common",this.lang);tojo.forEach(["buttonSave","buttonCancel"],function(prop){if(!this[prop]){this[prop]=this.messages[prop];}},this);},postCreate:function(){var cls=tojo.getObject(this.editor);var _642=this.style;var _643="line-height:"+_642.lineHeight+";";tojo.forEach(["Weight","Family","Size","Style"],function(prop){_643+="font-"+prop+":"+_642["font"+prop]+";";},this);tojo.forEach(["marginTop","marginBottom","marginLeft","marginRight"],function(prop){this.domNode.style[prop]=_642[prop];},this);if(this.width=="100%"){_643+="width:100%;";this.domNode.style.display="block";}else{_643+="width:"+(this.width+(Number(this.width)==this.width?"px":""))+";";}this.editorParams.style=_643;this.editorParams["displayedValue" in cls.prototype?"displayedValue":"value"]=this.value;var ew=this.editWidget=new cls(this.editorParams,this.editorPlaceholder);this.connect(ew,"onChange","_onChange");this.connect(ew,"onKeyPress","_onKeyPress");if(this.autoSave){this.buttonContainer.style.display="none";}},destroy:function(){this.editWidget.destroy();this.inherited(arguments);},getValue:function(){var ew=this.editWidget;return ew.attr("displayedValue" in ew?"displayedValue":"value");},_onKeyPress:function(e){if(this._exitInProgress){return;}if(this.autoSave){if(e.altKey||e.ctrlKey){return;}if(e.charOrCode==tojo.keys.ESCAPE){tojo.stopEvent(e);this._exitInProgress=true;this.cancel(true);}else{if(e.charOrCode==tojo.keys.ENTER){tojo.stopEvent(e);this._exitInProgress=true;this.save(true);}else{if(e.charOrCode===tojo.keys.TAB){this._exitInProgress=true;setTimeout(tojo.hitch(this,"save",false),0);}}}}else{var _649=this;setTimeout(function(){_649.saveButton.attr("disabled",_649.getValue()==_649.editWidget._resetValue);},100);}},_onBlur:function(){this.inherited(arguments);if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;if(this.getValue()==this.editWidget._resetValue){this.cancel(false);}else{this.save(false);}}},_onChange:function(){if(this._exitInProgress){return;}if(this.autoSave){this._exitInProgress=true;this.save(true);}else{this.saveButton.attr("disabled",(this.getValue()==this.editWidget._resetValue)||!this.enableSave());}},enableSave:function(){return this.editWidget.isValid?this.editWidget.isValid():true;},focus:function(){this.editWidget.focus();dijit.selectInputText(this.editWidget.focusNode);}});}if(!tojo._hasResource["dijit.Tooltip"]){tojo._hasResource["dijit.Tooltip"]=true;tojo.provide("dijit.Tooltip");tojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:"<div class=\"dijitTooltip dijitTooltipLeft\" id=\"tojoTooltip\">\r\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" tojoAttachPoint=\"containerNode\" waiRole='alert'></div>\r\n\t<div class=\"dijitTooltipConnector\"></div>\r\n</div>\r\n",postCreate:function(){tojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=tojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:tojo.hitch(this,"_onShow")});this.fadeOut=tojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:tojo.hitch(this,"_onHide")});},show:function(_64a,_64b,_64c){if(this.aroundNode&&this.aroundNode===_64b){return;}if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_64a;this.domNode.style.top=(this.domNode.offsetTop+1)+"px";var _64d={};var ltr=this.isLeftToRight();tojo.forEach((_64c&&_64c.length)?_64c:dijit.Tooltip.defaultPosition,function(pos){switch(pos){case "after":_64d[ltr?"BR":"BL"]=ltr?"BL":"BR";break;case "before":_64d[ltr?"BL":"BR"]=ltr?"BR":"BL";break;case "below":_64d[ltr?"BL":"BR"]=ltr?"TL":"TR";_64d[ltr?"BR":"BL"]=ltr?"TR":"TL";break;case "above":default:_64d[ltr?"TL":"TR"]=ltr?"BL":"BR";_64d[ltr?"TR":"TL"]=ltr?"BR":"BL";break;}});var pos=dijit.placeOnScreenAroundElement(this.domNode,_64b,_64d,tojo.hitch(this,"orient"));tojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_64b;},orient:function(node,_652,_653){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"}[_652+"-"+_653];},_onShow:function(){if(tojo.isIE){this.domNode.style.filter="";}},hide:function(_654){if(this._onDeck&&this._onDeck[1]==_654){this._onDeck=null;}else{if(this.aroundNode===_654){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_655,_656,_657){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_655,_656,_657);};dijit.hideTooltip=function(_658){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_658);};tojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],postCreate:function(){tojo.addClass(this.domNode,"dijitTooltipData");this._connectNodes=[];tojo.forEach(this.connectId,function(id){var node=tojo.byId(id);if(node){this._connectNodes.push(node);tojo.forEach(["onMouseEnter","onMouseLeave","onFocus","onBlur"],function(_65b){this.connect(node,_65b.toLowerCase(),"_"+_65b);},this);if(tojo.isIE){node.style.zoom=1;}}},this);},_onMouseEnter:function(e){this._onHover(e);},_onMouseLeave:function(e){this._onUnHover(e);},_onFocus:function(e){this._focus=true;this._onHover(e);this.inherited(arguments);},_onBlur:function(e){this._focus=false;this._onUnHover(e);this.inherited(arguments);},_onHover:function(e){if(!this._showTimer){var _661=e.target;this._showTimer=setTimeout(tojo.hitch(this,function(){this.open(_661);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_663){_663=_663||this._connectNodes[0];if(!_663){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_663,this.position);this._connectNode=_663;},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},uninitialize:function(){this.close();}});dijit.Tooltip.defaultPosition=["after","before"];}if(!tojo._hasResource["dijit.Tree"]){tojo._hasResource["dijit.Tree"]=true;tojo.provide("dijit.Tree");tojo.declare("dijit._TreeNode",[dijit._Widget,dijit._Templated,dijit._Container,dijit._Contained],{item:null,isTreeNode:true,label:"",isExpandable:null,isExpanded:false,state:"UNCHECKED",templateString:"<div class=\"dijitTreeNode\" waiRole=\"presentation\"\r\n\t><div tojoAttachPoint=\"rowNode\" class=\"dijitTreeRow\" waiRole=\"presentation\"\r\n\t\t><img src=\"${_blankGif}\" alt=\"\" tojoAttachPoint=\"expandoNode\" class=\"dijitTreeExpando\" waiRole=\"presentation\"\r\n\t\t><span tojoAttachPoint=\"expandoNodeText\" class=\"dijitExpandoText\" waiRole=\"presentation\"\r\n\t\t></span\r\n\t\t><span tojoAttachPoint=\"contentNode\" tojoAttachEvent=\"onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave\"\r\n\t\t\tclass=\"dijitTreeContent\" waiRole=\"presentation\">\r\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" tojoAttachPoint=\"iconNode\" class=\"dijitTreeIcon\" waiRole=\"presentation\"\r\n\t\t\t><span tojoAttachPoint=\"labelNode\" class=\"dijitTreeLabel\" wairole=\"treeitem\" tabindex=\"-1\" waiState=\"selected-false\" tojoAttachEvent=\"onfocus:_onNodeFocus\"></span>\r\n\t\t</span\r\n\t></div>\r\n\t<div tojoAttachPoint=\"containerNode\" class=\"dijitTreeContainer\" waiRole=\"presentation\" style=\"display: none;\"></div>\r\n</div>\r\n",postCreate:function(){this.setLabelNode(this.label);this._setExpando();this._updateItemClasses(this.item);if(this.isExpandable){dijit.setWaiState(this.labelNode,"expanded",this.isExpanded);}},markProcessing:function(){this.state="LOADING";this._setExpando(true);},unmarkProcessing:function(){this._setExpando(false);},_updateItemClasses:function(item){var tree=this.tree,_666=tree.model;if(tree._v10Compat&&item===_666.root){item=null;}this.iconNode.className="dijitTreeIcon "+tree.getIconClass(item,this.isExpanded);this.labelNode.className="dijitTreeLabel "+tree.getLabelClass(item,this.isExpanded);},_updateLayout:function(){var _667=this.getParent();if(!_667||_667.rowNode.style.display=="none"){tojo.addClass(this.domNode,"dijitTreeIsRoot");}else{tojo.toggleClass(this.domNode,"dijitTreeIsLast",!this.getNextSibling());}},_setExpando:function(_668){var _669=["dijitTreeExpandoLoading","dijitTreeExpandoOpened","dijitTreeExpandoClosed","dijitTreeExpandoLeaf"];var _66a=["*","-","+","*"];var idx=_668?0:(this.isExpandable?(this.isExpanded?1:2):3);tojo.forEach(_669,function(s){tojo.removeClass(this.expandoNode,s);},this);tojo.addClass(this.expandoNode,_669[idx]);this.expandoNodeText.innerHTML=_66a[idx];},expand:function(){if(this.isExpanded){return;}this._wipeOut&&this._wipeOut.stop();this.isExpanded=true;dijit.setWaiState(this.labelNode,"expanded","true");dijit.setWaiRole(this.containerNode,"group");this.contentNode.className="dijitTreeContent dijitTreeContentExpanded";this._setExpando();this._updateItemClasses(this.item);if(!this._wipeIn){this._wipeIn=tojo.fx.wipeIn({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeIn.play();},collapse:function(){if(!this.isExpanded){return;}this._wipeIn&&this._wipeIn.stop();this.isExpanded=false;dijit.setWaiState(this.labelNode,"expanded","false");this.contentNode.className="dijitTreeContent";this._setExpando();this._updateItemClasses(this.item);if(!this._wipeOut){this._wipeOut=tojo.fx.wipeOut({node:this.containerNode,duration:dijit.defaultDuration});}this._wipeOut.play();},setLabelNode:function(_66d){this.labelNode.innerHTML="";this.labelNode.appendChild(tojo.doc.createTextNode(_66d));},setChildItems:function(_66e){var tree=this.tree,_670=tree.model;this.getChildren().forEach(function(_671){dijit._Container.prototype.removeChild.call(this,_671);},this);this.state="LOADED";if(_66e&&_66e.length>0){this.isExpandable=true;tojo.forEach(_66e,function(item){var id=_670.getIdentity(item),_674=tree._itemNodeMap[id],node=(_674&&!_674.getParent())?_674:this.tree._createTreeNode({item:item,tree:tree,isExpandable:_670.mayHaveChildren(item),label:tree.getLabel(item)});this.addChild(node);tree._itemNodeMap[id]=node;if(this.tree.persist){if(tree._openedItemIds[id]){tree._expandNode(node);}}},this);tojo.forEach(this.getChildren(),function(_676,idx){_676._updateLayout();});}else{this.isExpandable=false;}if(this._setExpando){this._setExpando(false);}if(this==tree.rootNode){var fc=this.tree.showRoot?this:this.getChildren()[0],_679=fc?fc.labelNode:this.domNode;_679.setAttribute("tabIndex","0");tree.lastFocused=fc;}},removeChild:function(node){this.inherited(arguments);var _67b=this.getChildren();if(_67b.length==0){this.isExpandable=false;this.collapse();}tojo.forEach(_67b,function(_67c){_67c._updateLayout();});},makeExpandable:function(){this.isExpandable=true;this._setExpando(false);},_onNodeFocus:function(evt){var node=dijit.getEnclosingWidget(evt.target);this.tree._onTreeFocus(node);},_onMouseEnter:function(evt){tojo.addClass(this.contentNode,"dijitTreeNodeHover");},_onMouseLeave:function(evt){tojo.removeClass(this.contentNode,"dijitTreeNodeHover");}});tojo.declare("dijit.Tree",[dijit._Widget,dijit._Templated],{store:null,model:null,query:null,label:"",showRoot:true,childrenAttr:["children"],openOnClick:false,templateString:"<div class=\"dijitTreeContainer\" waiRole=\"tree\"\r\n\ttojoAttachEvent=\"onclick:_onClick,onkeypress:_onKeyPress\">\r\n</div>\r\n",isExpandable:true,isTree:true,persist:true,dndController:null,dndParams:["onDndDrop","itemCreator","onDndCancel","checkAcceptance","checkItemAcceptance","dragThreshold"],onDndDrop:null,itemCreator:null,onDndCancel:null,checkAcceptance:null,checkItemAcceptance:null,dragThreshold:0,_publish:function(_681,_682){tojo.publish(this.id,[tojo.mixin({tree:this,event:_681},_682||{})]);},postMixInProperties:function(){this.tree=this;this._itemNodeMap={};if(!this.cookieName){this.cookieName=this.id+"SaveStateCookie";}},postCreate:function(){if(this.persist){var _683=tojo.cookie(this.cookieName);this._openedItemIds={};if(_683){tojo.forEach(_683.split(","),function(item){this._openedItemIds[item]=true;},this);}}if(!this.model){this._store2model();}this.connect(this.model,"onChange","_onItemChange");this.connect(this.model,"onChildrenChange","_onItemChildrenChange");this.connect(this.model,"onDelete","_onItemDelete");this._load();this.inherited(arguments);if(this.dndController){if(tojo.isString(this.dndController)){this.dndController=tojo.getObject(this.dndController);}var _685={};for(var i=0;i<this.dndParams.length;i++){if(this[this.dndParams[i]]){_685[this.dndParams[i]]=this[this.dndParams[i]];}}this.dndController=new this.dndController(this,_685);}},_store2model:function(){this._v10Compat=true;tojo.deprecated("Tree: from version 2.0, should specify a model object rather than a store/query");var _687={id:this.id+"_ForestStoreModel",store:this.store,query:this.query,childrenAttrs:this.childrenAttr};if(this.params.mayHaveChildren){_687.mayHaveChildren=tojo.hitch(this,"mayHaveChildren");}if(this.params.getItemChildren){_687.getChildren=tojo.hitch(this,function(item,_689,_68a){this.getItemChildren((this._v10Compat&&item===this.model.root)?null:item,_689,_68a);});}this.model=new dijit.tree.ForestStoreModel(_687);this.showRoot=Boolean(this.label);},_load:function(){this.model.getRoot(tojo.hitch(this,function(item){var rn=this.rootNode=this.tree._createTreeNode({item:item,tree:this,isExpandable:true,label:this.label||this.getLabel(item)});if(!this.showRoot){rn.rowNode.style.display="none";}this.domNode.appendChild(rn.domNode);this._itemNodeMap[this.model.getIdentity(item)]=rn;rn._updateLayout();this._expandNode(rn);}),function(err){console.error(this,": error loading root: ",err);});},mayHaveChildren:function(item){},getItemChildren:function(_68f,_690){},getLabel:function(item){return this.model.getLabel(item);},getIconClass:function(item,_693){return (!item||this.model.mayHaveChildren(item))?(_693?"dijitFolderOpened":"dijitFolderClosed"):"dijitLeaf";},getLabelClass:function(item,_695){},_onKeyPress:function(e){if(e.altKey){return;}var dk=tojo.keys;var _698=dijit.getEnclosingWidget(e.target);if(!_698){return;}var key=e.charOrCode;if(typeof key=="string"){if(!e.altKey&&!e.ctrlKey&&!e.shiftKey&&!e.metaKey){this._onLetterKeyNav({node:_698,key:key.toLowerCase()});tojo.stopEvent(e);}}else{var map=this._keyHandlerMap;if(!map){map={};map[dk.ENTER]="_onEnterKey";map[this.isLeftToRight()?dk.LEFT_ARROW:dk.RIGHT_ARROW]="_onLeftArrow";map[this.isLeftToRight()?dk.RIGHT_ARROW:dk.LEFT_ARROW]="_onRightArrow";map[dk.UP_ARROW]="_onUpArrow";map[dk.DOWN_ARROW]="_onDownArrow";map[dk.HOME]="_onHomeKey";map[dk.END]="_onEndKey";this._keyHandlerMap=map;}if(this._keyHandlerMap[key]){this[this._keyHandlerMap[key]]({node:_698,item:_698.item});tojo.stopEvent(e);}}},_onEnterKey:function(_69b){this._publish("execute",{item:_69b.item,node:_69b.node});this.onClick(_69b.item,_69b.node);},_onDownArrow:function(_69c){var node=this._getNextNode(_69c.node);if(node&&node.isTreeNode){this.focusNode(node);}},_onUpArrow:function(_69e){var node=_69e.node;var _6a0=node.getPreviousSibling();if(_6a0){node=_6a0;while(node.isExpandable&&node.isExpanded&&node.hasChildren()){var _6a1=node.getChildren();node=_6a1[_6a1.length-1];}}else{var _6a2=node.getParent();if(!(!this.showRoot&&_6a2===this.rootNode)){node=_6a2;}}if(node&&node.isTreeNode){this.focusNode(node);}},_onRightArrow:function(_6a3){var node=_6a3.node;if(node.isExpandable&&!node.isExpanded){this._expandNode(node);}else{if(node.hasChildren()){node=node.getChildren()[0];if(node&&node.isTreeNode){this.focusNode(node);}}}},_onLeftArrow:function(_6a5){var node=_6a5.node;if(node.isExpandable&&node.isExpanded){this._collapseNode(node);}else{var _6a7=node.getParent();if(_6a7&&_6a7.isTreeNode&&!(!this.showRoot&&_6a7===this.rootNode)){this.focusNode(_6a7);}}},_onHomeKey:function(){var node=this._getRootOrFirstNode();if(node){this.focusNode(node);}},_onEndKey:function(_6a9){var node=this;while(node.isExpanded){var c=node.getChildren();node=c[c.length-1];}if(node&&node.isTreeNode){this.focusNode(node);}},_onLetterKeyNav:function(_6ac){var node=_6ac.node,_6ae=node,key=_6ac.key;do{node=this._getNextNode(node);if(!node){node=this._getRootOrFirstNode();}}while(node!==_6ae&&(node.label.charAt(0).toLowerCase()!=key));if(node&&node.isTreeNode){if(node!==_6ae){this.focusNode(node);}}},_onClick:function(e){var _6b1=e.target;var _6b2=dijit.getEnclosingWidget(_6b1);if(!_6b2||!_6b2.isTreeNode){return;}if((this.openOnClick&&_6b2.isExpandable)||(_6b1==_6b2.expandoNode||_6b1==_6b2.expandoNodeText)){if(_6b2.isExpandable){this._onExpandoClick({node:_6b2});}}else{this._publish("execute",{item:_6b2.item,node:_6b2});this.onClick(_6b2.item,_6b2);this.focusNode(_6b2);}tojo.stopEvent(e);},_onExpandoClick:function(_6b3){var node=_6b3.node;this.focusNode(node);if(node.isExpanded){this._collapseNode(node);}else{this._expandNode(node);}},onClick:function(item,node){},onOpen:function(item,node){},onClose:function(item,node){},_getNextNode:function(node){if(node.isExpandable&&node.isExpanded&&node.hasChildren()){return node.getChildren()[0];}else{while(node&&node.isTreeNode){var _6bc=node.getNextSibling();if(_6bc){return _6bc;}node=node.getParent();}return null;}},_getRootOrFirstNode:function(){return this.showRoot?this.rootNode:this.rootNode.getChildren()[0];},_collapseNode:function(node){if(node.isExpandable){if(node.state=="LOADING"){return;}node.collapse();this.onClose(node.item,node);if(this.persist&&node.item){delete this._openedItemIds[this.model.getIdentity(node.item)];this._saveState();}}},_expandNode:function(node){if(!node.isExpandable){return;}var _6bf=this.model,item=node.item;switch(node.state){case "LOADING":return;case "UNCHECKED":node.markProcessing();var _6c1=this;_6bf.getChildren(item,function(_6c2){node.unmarkProcessing();node.setChildItems(_6c2);_6c1._expandNode(node);},function(err){console.error(_6c1,": error loading root children: ",err);});break;default:node.expand();this.onOpen(node.item,node);if(this.persist&&item){this._openedItemIds[_6bf.getIdentity(item)]=true;this._saveState();}}},blurNode:function(){var node=this.lastFocused;if(!node){return;}var _6c5=node.labelNode;tojo.removeClass(_6c5,"dijitTreeLabelFocused");_6c5.setAttribute("tabIndex","-1");dijit.setWaiState(_6c5,"selected",false);this.lastFocused=null;},focusNode:function(node){node.labelNode.focus();},_onBlur:function(){this.inherited(arguments);if(this.lastFocused){var _6c7=this.lastFocused.labelNode;tojo.removeClass(_6c7,"dijitTreeLabelFocused");}},_onTreeFocus:function(node){if(node){if(node!=this.lastFocused){this.blurNode();}var _6c9=node.labelNode;_6c9.setAttribute("tabIndex","0");dijit.setWaiState(_6c9,"selected",true);tojo.addClass(_6c9,"dijitTreeLabelFocused");this.lastFocused=node;}},_onItemDelete:function(item){var _6cb=this.model.getIdentity(item);var node=this._itemNodeMap[_6cb];if(node){var _6cd=node.getParent();if(_6cd){_6cd.removeChild(node);}delete this._itemNodeMap[_6cb];node.destroyRecursive();}},_onItemChange:function(item){var _6cf=this.model,_6d0=_6cf.getIdentity(item),node=this._itemNodeMap[_6d0];if(node){node.setLabelNode(this.getLabel(item));node._updateItemClasses(item);}},_onItemChildrenChange:function(_6d2,_6d3){var _6d4=this.model,_6d5=_6d4.getIdentity(_6d2),_6d6=this._itemNodeMap[_6d5];if(_6d6){_6d6.setChildItems(_6d3);}},_onItemDelete:function(item){var _6d8=this.model,_6d9=_6d8.getIdentity(item),node=this._itemNodeMap[_6d9];if(node){node.destroyRecursive();delete this._itemNodeMap[_6d9];}},_saveState:function(){if(!this.persist){return;}var ary=[];for(var id in this._openedItemIds){ary.push(id);}tojo.cookie(this.cookieName,ary.join(","),{expires:365});},destroy:function(){if(this.rootNode){this.rootNode.destroyRecursive();}if(this.dndController&&!tojo.isString(this.dndController)){this.dndController.destroy();}this.rootNode=null;this.inherited(arguments);},destroyRecursive:function(){this.destroy();},_createTreeNode:function(args){return new dijit._TreeNode(args);}});tojo.declare("dijit.tree.TreeStoreModel",null,{store:null,childrenAttrs:["children"],labelAttr:"",root:null,query:null,constructor:function(args){tojo.mixin(this,args);this.connects=[];var _6df=this.store;if(!_6df.getFeatures()["tojo.data.api.Identity"]){throw new Error("dijit.Tree: store must support tojo.data.Identity");}if(_6df.getFeatures()["tojo.data.api.Notification"]){this.connects=this.connects.concat([tojo.connect(_6df,"onNew",this,"_onNewItem"),tojo.connect(_6df,"onDelete",this,"_onDeleteItem"),tojo.connect(_6df,"onSet",this,"_onSetItem")]);}},destroy:function(){tojo.forEach(this.connects,tojo.disconnect);},getRoot:function(_6e0,_6e1){if(this.root){_6e0(this.root);}else{this.store.fetch({query:this.query,onComplete:tojo.hitch(this,function(_6e2){if(_6e2.length!=1){throw new Error(this.declaredClass+": query "+tojo.toJson(this.query)+" returned "+_6e2.length+" items, but must return exactly one item");}this.root=_6e2[0];_6e0(this.root);}),onError:_6e1});}},mayHaveChildren:function(item){return tojo.some(this.childrenAttrs,function(attr){return this.store.hasAttribute(item,attr);},this);},getChildren:function(_6e5,_6e6,_6e7){var _6e8=this.store;var _6e9=[];for(var i=0;i<this.childrenAttrs.length;i++){var vals=_6e8.getValues(_6e5,this.childrenAttrs[i]);_6e9=_6e9.concat(vals);}var _6ec=0;tojo.forEach(_6e9,function(item){if(!_6e8.isItemLoaded(item)){_6ec++;}});if(_6ec==0){_6e6(_6e9);}else{var _6ee=function _6ee(item){if(--_6ec==0){_6e6(_6e9);}};tojo.forEach(_6e9,function(item){if(!_6e8.isItemLoaded(item)){_6e8.loadItem({item:item,onItem:_6ee,onError:_6e7});}});}},getIdentity:function(item){return this.store.getIdentity(item);},getLabel:function(item){if(this.labelAttr){return this.store.getValue(item,this.labelAttr);}else{return this.store.getLabel(item);}},newItem:function(args,_6f4){var _6f5={parent:_6f4,attribute:this.childrenAttrs[0]};return this.store.newItem(args,_6f5);},pasteItem:function(_6f6,_6f7,_6f8,_6f9){var _6fa=this.store,_6fb=this.childrenAttrs[0];if(_6f7){tojo.forEach(this.childrenAttrs,function(attr){if(_6fa.containsValue(_6f7,attr,_6f6)){if(!_6f9){var _6fd=tojo.filter(_6fa.getValues(_6f7,attr),function(x){return x!=_6f6;});_6fa.setValues(_6f7,attr,_6fd);}_6fb=attr;}});}if(_6f8){_6fa.setValues(_6f8,_6fb,_6fa.getValues(_6f8,_6fb).concat(_6f6));}},onChange:function(item){},onChildrenChange:function(_700,_701){},onDelete:function(_702,_703){},_onNewItem:function(item,_705){if(!_705){return;}this.getChildren(_705.item,tojo.hitch(this,function(_706){this.onChildrenChange(_705.item,_706);}));},_onDeleteItem:function(item){this.onDelete(item);},_onSetItem:function(item,_709,_70a,_70b){if(tojo.indexOf(this.childrenAttrs,_709)!=-1){this.getChildren(item,tojo.hitch(this,function(_70c){this.onChildrenChange(item,_70c);}));}else{this.onChange(item);}}});tojo.declare("dijit.tree.ForestStoreModel",dijit.tree.TreeStoreModel,{rootId:"$root$",rootLabel:"ROOT",query:null,constructor:function(_70d){this.root={store:this,root:true,id:_70d.rootId,label:_70d.rootLabel,children:_70d.rootChildren};},mayHaveChildren:function(item){return item===this.root||this.inherited(arguments);},getChildren:function(_70f,_710,_711){if(_70f===this.root){if(this.root.children){_710(this.root.children);}else{this.store.fetch({query:this.query,onComplete:tojo.hitch(this,function(_712){this.root.children=_712;_710(_712);}),onError:_711});}}else{this.inherited(arguments);}},getIdentity:function(item){return (item===this.root)?this.root.id:this.inherited(arguments);},getLabel:function(item){return (item===this.root)?this.root.label:this.inherited(arguments);},newItem:function(args,_716){if(_716===this.root){this.onNewRootItem(args);return this.store.newItem(args);}else{return this.inherited(arguments);}},onNewRootItem:function(args){},pasteItem:function(_718,_719,_71a,_71b){if(_719===this.root){if(!_71b){this.onLeaveRoot(_718);}}dijit.tree.TreeStoreModel.prototype.pasteItem.call(this,_718,_719===this.root?null:_719,_71a===this.root?null:_71a);if(_71a===this.root){this.onAddToRoot(_718);}},onAddToRoot:function(item){console.log(this,": item ",item," added to root");},onLeaveRoot:function(item){console.log(this,": item ",item," removed from root");},_requeryTop:function(){var _71e=this.root.children||[];this.store.fetch({query:this.query,onComplete:tojo.hitch(this,function(_71f){this.root.children=_71f;if(_71e.length!=_71f.length||tojo.some(_71e,function(item,idx){return _71f[idx]!=item;})){this.onChildrenChange(this.root,_71f);}})});},_onNewItem:function(item,_723){this._requeryTop();this.inherited(arguments);},_onDeleteItem:function(item){if(tojo.indexOf(this.root.children,item)!=-1){this._requeryTop();}this.inherited(arguments);}});}if(!tojo._hasResource["dijit.ColorPalette"]){tojo._hasResource["dijit.ColorPalette"]=true;tojo.provide("dijit.ColorPalette");tojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":tojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":tojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:"<div class=\"dijitInline dijitColorPalette\">\r\n\t<div class=\"dijitColorPaletteInner\" tojoAttachPoint=\"divNode\" waiRole=\"grid\" tabIndex=\"${tabIndex}\">\r\n\t\t<img class=\"dijitColorPaletteUnder\" tojoAttachPoint=\"imageNode\" waiRole=\"presentation\">\r\n\t</div>\t\r\n</div>\r\n",_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",postCreate:function(){tojo.mixin(this.divNode.style,this._paletteDims[this.palette]);this.imageNode.setAttribute("src",this._imagePaths[this.palette]);var _725=this._palettes[this.palette];this.domNode.style.position="relative";this._cellNodes=[];this.colorNames=tojo.i18n.getLocalization("tojo","colors",this.lang);var url=this._blankGif,_727=new tojo.Color(),_728=this._paletteCoords;for(var row=0;row<_725.length;row++){for(var col=0;col<_725[row].length;col++){var _72b=tojo.doc.createElement("img");_72b.src=url;tojo.addClass(_72b,"dijitPaletteImg");var _72c=_725[row][col],_72d=_727.setColor(tojo.Color.named[_72c]);_72b.alt=this.colorNames[_72c];_72b.color=_72d.toHex();var _72e=_72b.style;_72e.color=_72e.backgroundColor=_72b.color;var _72f=tojo.doc.createElement("span");_72f.appendChild(_72b);tojo.forEach(["Dijitclick","MouseEnter","Focus","Blur"],function(_730){this.connect(_72f,"on"+_730.toLowerCase(),"_onCell"+_730);},this);this.divNode.appendChild(_72f);var _731=_72f.style;_731.top=_728.topOffset+(row*_728.cHeight)+"px";_731.left=_728.leftOffset+(col*_728.cWidth)+"px";tojo.attr(_72f,"tabindex","-1");_72f.title=this.colorNames[_72c];tojo.addClass(_72f,"dijitPaletteCell");dijit.setWaiRole(_72f,"gridcell");_72f.index=this._cellNodes.length;this._cellNodes.push(_72f);}}this._xDim=_725[0].length;this._yDim=_725.length;this.connect(this.divNode,"onfocus","_onDivNodeFocus");var _732={UP_ARROW:-this._xDim,DOWN_ARROW:this._xDim,RIGHT_ARROW:1,LEFT_ARROW:-1};for(var key in _732){this._connects.push(dijit.typematic.addKeyListener(this.domNode,{charOrCode:tojo.keys[key],ctrlKey:false,altKey:false,shiftKey:false},this,function(){var _734=_732[key];return function(_735){this._navigateByKey(_734,_735);};}(),this.timeoutChangeRate,this.defaultTimeout));}},focus:function(){this._focusFirst();},onChange:function(_736){},_focusFirst:function(){this._currentFocus=0;var _737=this._cellNodes[this._currentFocus];window.setTimeout(function(){dijit.focus(_737);},0);},_onDivNodeFocus:function(evt){if(evt.target===this.divNode){this._focusFirst();}},_onFocus:function(){tojo.attr(this.divNode,"tabindex","-1");},_onBlur:function(){this._removeCellHighlight(this._currentFocus);tojo.attr(this.divNode,"tabindex",this.tabIndex);},_onCellDijitclick:function(evt){var _73a=evt.currentTarget;if(this._currentFocus!=_73a.index){this._currentFocus=_73a.index;window.setTimeout(function(){dijit.focus(_73a);},0);}this._selectColor(_73a);tojo.stopEvent(evt);},_onCellMouseEnter:function(evt){var _73c=evt.currentTarget;this._setCurrent(_73c);window.setTimeout(function(){dijit.focus(_73c);},0);},_onCellFocus:function(evt){this._setCurrent(evt.currentTarget);},_setCurrent:function(node){this._removeCellHighlight(this._currentFocus);this._currentFocus=node.index;tojo.addClass(node,"dijitPaletteCellHighlight");},_onCellBlur:function(evt){this._removeCellHighlight(this._currentFocus);},_removeCellHighlight:function(_740){tojo.removeClass(this._cellNodes[_740],"dijitPaletteCellHighlight");},_selectColor:function(_741){var img=_741.getElementsByTagName("img")[0];this.onChange(this.value=img.color);},_navigateByKey:function(_743,_744){if(_744==-1){return;}var _745=this._currentFocus+_743;if(_745<this._cellNodes.length&&_745>-1){var _746=this._cellNodes[_745];_746.focus();}}});}if(!tojo._hasResource["dijit.form.ValidationTextBox"]){tojo._hasResource["dijit.form.ValidationTextBox"]=true;tojo.provide("dijit.form.ValidationTextBox");tojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\ttojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input class=\"dijitReset\" tojoAttachPoint='textbox,focusNode' tojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete=\"off\"\r\n\t\t\ttype='${type}' name='${name}'\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_747){return this.regExp;},state:"",tooltipPosition:[],_setValueAttr:function(){this.inherited(arguments);this.validate(this._focused);},validator:function(_748,_749){return (new RegExp("^(?:"+this.regExpGen(_749)+")"+(this.required?"":"?")+"$")).test(_748)&&(!this.required||!this._isEmpty(_748))&&(this._isEmpty(_748)||this.parse(_748,_749)!==undefined);},_isValidSubset:function(){return this.textbox.value.search(this._partialre)==0;},isValid:function(_74a){return this.validator(this.textbox.value,this.constraints);},_isEmpty:function(_74b){return /^\s*$/.test(_74b);},getErrorMessage:function(_74c){return this.invalidMessage;},getPromptMessage:function(_74d){return this.promptMessage;},_maskValidSubsetError:true,validate:function(_74e){var _74f="";var _750=this.disabled||this.isValid(_74e);if(_750){this._maskValidSubsetError=true;}var _751=!_750&&_74e&&this._isValidSubset();var _752=this._isEmpty(this.textbox.value);this.state=(_750||(!this._hasBeenBlurred&&_752)||_751)?"":"Error";if(this.state=="Error"){this._maskValidSubsetError=false;}this._setStateClass();dijit.setWaiState(this.focusNode,"invalid",_750?"false":"true");if(_74e){if(_752){_74f=this.getPromptMessage(true);}if(!_74f&&(this.state=="Error"||(_751&&!this._maskValidSubsetError))){_74f=this.getErrorMessage(true);}}this.displayMessage(_74f);return _750;},_message:"",displayMessage:function(_753){if(this._message==_753){return;}this._message=_753;dijit.hideTooltip(this.domNode);if(_753){dijit.showTooltip(_753,this.domNode,this.tooltipPosition);}},_refreshState:function(){this.validate(this._focused);},_update:function(e){this._refreshState();this._onMouse(e);},constructor:function(){this.constraints={};},postMixInProperties:function(){this.inherited(arguments);this.constraints.locale=this.lang;this.messages=tojo.i18n.getLocalization("dijit.form","validate",this.lang);if(this.invalidMessage=="$_unset_$"){this.invalidMessage=this.messages.invalidMessage;}var p=this.regExpGen(this.constraints);this.regExp=p;var _756="";if(p!=".*"){this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){switch(re.charAt(0)){case "{":case "+":case "?":case "*":case "^":case "$":case "|":case "(":_756+=re;break;case ")":_756+="|$)";break;default:_756+="(?:"+re+"|$)";break;}});}try{"".search(_756);}catch(e){_756=this.regExp;console.debug("RegExp error in "+this.declaredClass+": "+this.regExp);}this._partialre="^(?:"+_756+")$";},_setDisabledAttr:function(_758){this.inherited(arguments);if(this.valueNode){this.valueNode.disabled=_758;}this._refreshState();},_setRequiredAttr:function(_759){this.required=_759;dijit.setWaiState(this.focusNode,"required",_759);this._refreshState();},postCreate:function(){if(tojo.isIE){var s=tojo.getComputedStyle(this.focusNode);if(s){var ff=s.fontFamily;if(ff){this.focusNode.style.fontFamily=ff;}}}this.inherited(arguments);}});tojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{serialize:function(val,_75d){return val.toString?val.toString():"";},toString:function(){var val=this.filter(this.attr("value"));return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";},validate:function(){this.valueNode.value=this.toString();return this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);var _75f=this.textbox;var _760=(this.valueNode=tojo.doc.createElement("input"));_760.setAttribute("type",_75f.type);tojo.style(_760,"display","none");this.valueNode.name=this.textbox.name;tojo.place(_760,_75f,"after");this.textbox.name=this.textbox.name+"_displayed_";this.textbox.removeAttribute("name");},_setDisabledAttr:function(_761){this.inherited(arguments);tojo.attr(this.valueNode,"disabled",_761);}});tojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_762,_763){var _764="min" in _763;var _765="max" in _763;if(_764||_765){return (!_764||this.compare(_762,_763.min)>=0)&&(!_765||this.compare(_762,_763.max)<=0);}return true;},isInRange:function(_766){return this.rangeCheck(this.attr("value"),this.constraints);},_isDefinitelyOutOfRange:function(){var val=this.attr("value");var _768=false;var _769=false;if("min" in this.constraints){var min=this.constraints.min;val=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);_768=(typeof val=="number")&&val<0;}if("max" in this.constraints){var max=this.constraints.max;val=this.compare(val,((typeof max!="number")||max>0)?max:0);_769=(typeof val=="number")&&val>0;}return _768||_769;},_isValidSubset:function(){return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();},isValid:function(_76c){return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_76c));},getErrorMessage:function(_76d){if(dijit.form.RangeBoundTextBox.superclass.isValid.call(this,false)&&!this.isInRange(_76d)){return this.rangeMessage;}return this.inherited(arguments);},postMixInProperties:function(){this.inherited(arguments);if(!this.rangeMessage){this.messages=tojo.i18n.getLocalization("dijit.form","validate",this.lang);this.rangeMessage=this.messages.rangeMessage;}},postCreate:function(){this.inherited(arguments);if(this.constraints.min!==undefined){dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);}if(this.constraints.max!==undefined){dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);}},_setValueAttr:function(_76e,_76f){dijit.setWaiState(this.focusNode,"valuenow",_76e);this.inherited(arguments);}});}if(!tojo._hasResource["dijit.form.ComboBox"]){tojo._hasResource["dijit.form.ComboBox"]=true;tojo.provide("dijit.form.ComboBox");tojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:"<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\ttojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" tojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\r\n\t><div style=\"overflow:hidden;\"\r\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\r\n\t\t\ttojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\r\n\t\t\ttojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\r\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\r\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\r\n\t\t></div\r\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\r\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\r\n\t\t><div class=\"dijitReset dijitInputField\"\r\n\t\t\t><input type=\"text\" autocomplete=\"off\" name=\"${name}\" class='dijitReset'\r\n\t\t\ttojoAttachEvent=\"onkeypress:_onKeyPress, onfocus:_update, compositionend\"\r\n\t\t\ttojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\r\n\t\t/></div\r\n\t></div\r\n></div>\r\n",baseClass:"dijitComboBox",_getCaretPos:function(_770){var pos=0;if(typeof (_770.selectionStart)=="number"){pos=_770.selectionStart;}else{if(tojo.isIE){var tr=tojo.doc.selection.createRange().duplicate();var ntr=_770.createTextRange();tr.move("character",0);ntr.move("character",0);try{ntr.setEndPoint("EndToEnd",tr);pos=String(ntr.text).replace(/\r/g,"").length;}catch(e){}}}return pos;},_setCaretPos:function(_774,_775){_775=parseInt(_775);dijit.selectInputText(_774,_775,_775);},_setDisabledAttr:function(_776){dijit.setWaiState(this.comboNode,"disabled",_776);},_onKeyPress:function(evt){var key=evt.charOrCode;if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==tojo.keys.SHIFT){return;}var _779=false;var pw=this._popupWidget;var dk=tojo.keys;if(this._isShowingNow){pw.handleKey(key);}switch(key){case dk.PAGE_DOWN:case dk.DOWN_ARROW:if(!this._isShowingNow||this._prev_key_esc){this._arrowPressed();_779=true;}else{this._announceOption(pw.getHighlightedOption());}tojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.PAGE_UP:case dk.UP_ARROW:if(this._isShowingNow){this._announceOption(pw.getHighlightedOption());}tojo.stopEvent(evt);this._prev_key_backspace=false;this._prev_key_esc=false;break;case dk.ENTER:var _77c;if(this._isShowingNow&&(_77c=pw.getHighlightedOption())){if(_77c==pw.nextButton){this._nextSearch(1);tojo.stopEvent(evt);break;}else{if(_77c==pw.previousButton){this._nextSearch(-1);tojo.stopEvent(evt);break;}}}else{this._setDisplayedValueAttr(this.attr("displayedValue"),true);}evt.preventDefault();case dk.TAB:var _77d=this.attr("displayedValue");if(pw&&(_77d==pw._messages["previousMessage"]||_77d==pw._messages["nextMessage"])){break;}if(this._isShowingNow){this._prev_key_backspace=false;this._prev_key_esc=false;if(pw.getHighlightedOption()){pw.attr("value",{target:pw.getHighlightedOption()});}this._lastQuery=null;this._hideResultList();}break;case " ":this._prev_key_backspace=false;this._prev_key_esc=false;if(this._isShowingNow&&pw.getHighlightedOption()){tojo.stopEvent(evt);this._selectOption();this._hideResultList();}else{_779=true;}break;case dk.ESCAPE:this._prev_key_backspace=false;this._prev_key_esc=true;if(this._isShowingNow){tojo.stopEvent(evt);this._hideResultList();}else{this.inherited(arguments);}break;case dk.DELETE:case dk.BACKSPACE:this._prev_key_esc=false;this._prev_key_backspace=true;_779=true;break;case dk.RIGHT_ARROW:case dk.LEFT_ARROW:this._prev_key_backspace=false;this._prev_key_esc=false;break;default:this._prev_key_backspace=false;this._prev_key_esc=false;_779=typeof key=="string";}if(this.searchTimer){clearTimeout(this.searchTimer);}if(_779){setTimeout(tojo.hitch(this,"_startSearchFromInput"),1);}},_autoCompleteText:function(text){var fn=this.focusNode;dijit.selectInputText(fn,fn.value.length);var _780=this.ignoreCase?"toLowerCase":"substr";if(text[_780](0).indexOf(this.focusNode.value[_780](0))==0){var cpos=this._getCaretPos(fn);if((cpos+1)>fn.value.length){fn.value=text;dijit.selectInputText(fn,cpos);}}else{fn.value=text;dijit.selectInputText(fn);}},_openResultList:function(_782,_783){if(this.disabled||this.readOnly||(_783.query[this.searchAttr]!=this._lastQuery)){return;}this._popupWidget.clearResultList();if(!_782.length){this._hideResultList();return;}var _784=new String(this.store.getValue(_782[0],this.searchAttr));if(_784&&this.autoComplete&&!this._prev_key_backspace&&(_783.query[this.searchAttr]!="*")){this._autoCompleteText(_784);}_783._maxOptions=this._maxOptions;this._popupWidget.createOptions(_782,_783,tojo.hitch(this,"_getMenuLabelFromItem"));this._showResultList();if(_783.direction){if(1==_783.direction){this._popupWidget.highlightFirstOption();}else{if(-1==_783.direction){this._popupWidget.highlightLastOption();}}this._announceOption(this._popupWidget.getHighlightedOption());}},_showResultList:function(){this._hideResultList();var _785=this._popupWidget.getItems(),_786=Math.min(_785.length,this.maxListLength);this._arrowPressed();this.displayMessage("");tojo.style(this._popupWidget.domNode,{width:"",height:""});var best=this.open();var _788=tojo.marginBox(this._popupWidget.domNode);this._popupWidget.domNode.style.overflow=((best.h==_788.h)&&(best.w==_788.w))?"hidden":"auto";var _789=best.w;if(best.h<this._popupWidget.domNode.scrollHeight){_789+=16;}tojo.marginBox(this._popupWidget.domNode,{h:best.h,w:Math.max(_789,this.domNode.offsetWidth)});dijit.setWaiState(this.comboNode,"expanded","true");},_hideResultList:function(){if(this._isShowingNow){dijit.popup.close(this._popupWidget);this._arrowIdle();this._isShowingNow=false;dijit.setWaiState(this.comboNode,"expanded","false");dijit.removeWaiState(this.focusNode,"activedescendant");}},_setBlurValue:function(){var _78a=this.attr("displayedValue");var pw=this._popupWidget;if(pw&&(_78a==pw._messages["previousMessage"]||_78a==pw._messages["nextMessage"])){this._setValueAttr(this._lastValueReported,true);}else{this.attr("displayedValue",_78a);}},_onBlur:function(){this._hideResultList();this._arrowIdle();this.inherited(arguments);},_announceOption:function(node){if(node==null){return;}var _78d;if(node==this._popupWidget.nextButton||node==this._popupWidget.previousButton){_78d=node.innerHTML;}else{_78d=this.store.getValue(node.item,this.searchAttr);}this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));dijit.setWaiState(this.focusNode,"activedescendant",tojo.attr(node,"id"));this._autoCompleteText(_78d);},_selectOption:function(evt){var tgt=null;if(!evt){evt={target:this._popupWidget.getHighlightedOption()};}if(!evt.target){this.attr("displayedValue",this.attr("displayedValue"));return;}else{tgt=evt.target;}if(!evt.noHide){this._hideResultList();this._setCaretPos(this.focusNode,this.store.getValue(tgt.item,this.searchAttr).length);}this._doSelect(tgt);},_doSelect:function(tgt){this.item=tgt.item;this.attr("value",this.store.getValue(tgt.item,this.searchAttr));},_onArrowMouseDown:function(evt){if(this.disabled||this.readOnly){return;}tojo.stopEvent(evt);this.focus();if(this._isShowingNow){this._hideResultList();}else{this._startSearch("");}},_startSearchFromInput:function(){this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));},_getQueryString:function(text){return tojo.string.substitute(this.queryExpr,[text]);},_startSearch:function(key){if(!this._popupWidget){var _794=this.id+"_popup";this._popupWidget=new dijit.form._ComboBoxMenu({onChange:tojo.hitch(this,this._selectOption),id:_794});dijit.removeWaiState(this.focusNode,"activedescendant");dijit.setWaiState(this.textbox,"owns",_794);}this.item=null;var _795=tojo.clone(this.query);this._lastInput=key;this._lastQuery=_795[this.searchAttr]=this._getQueryString(key);this.searchTimer=setTimeout(tojo.hitch(this,function(_796,_797){var _798={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_796,onBegin:tojo.hitch(this,"_setMaxOptions"),onComplete:tojo.hitch(this,"_openResultList"),onError:function(_799){console.error("dijit.form.ComboBox: "+_799);tojo.hitch(_797,"_hideResultList")();},start:0,count:this.pageSize};tojo.mixin(_798,_797.fetchProperties);var _79a=_797.store.fetch(_798);var _79b=function(_79c,_79d){_79c.start+=_79c.count*_79d;_79c.direction=_79d;this.store.fetch(_79c);};this._nextSearch=this._popupWidget.onPage=tojo.hitch(this,_79b,_79a);},_795,this),this.searchDelay);},_setMaxOptions:function(size,_79f){this._maxOptions=size;},_getValueField:function(){return this.searchAttr;},_arrowPressed:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){tojo.addClass(this.downArrowNode,"dijitArrowButtonActive");}},_arrowIdle:function(){if(!this.disabled&&!this.readOnly&&this.hasDownArrow){tojo.removeClass(this.downArrowNode,"tojoArrowButtonPushed");}},compositionend:function(evt){this._onKeyPress({charCode:-1});},constructor:function(){this.query={};this.fetchProperties={};},postMixInProperties:function(){if(!this.hasDownArrow){this.baseClass="dijitTextBox";}if(!this.store){var _7a1=this.srcNodeRef;this.store=new dijit.form._ComboBoxDataStore(_7a1);if(!this.value||((typeof _7a1.selectedIndex=="number")&&_7a1.selectedIndex.toString()===this.value)){var item=this.store.fetchSelectedItem();if(item){this.value=this.store.getValue(item,this._getValueField());}}}},_postCreate:function(){var _7a3=tojo.query("label[for=\""+this.id+"\"]");if(_7a3.length){_7a3[0].id=(this.id+"_label");var cn=this.comboNode;dijit.setWaiState(cn,"labelledby",_7a3[0].id);}},uninitialize:function(){if(this._popupWidget){this._hideResultList();this._popupWidget.destroy();}},_getMenuLabelFromItem:function(item){var _7a6=this.store.getValue(item,this.labelAttr||this.searchAttr);var _7a7=this.labelType;if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){_7a6=this.doHighlight(_7a6,this._escapeHtml(this._lastInput));_7a7="html";}return {html:_7a7=="html",label:_7a6};},doHighlight:function(_7a8,find){var _7aa="i"+(this.highlightMatch=="all"?"g":"");var _7ab=this._escapeHtml(_7a8);var ret=_7ab.replace(new RegExp("^("+find+")",_7aa),"<span class=\"dijitComboBoxHighlightMatch\">$1</span>");if(_7ab==ret){ret=_7ab.replace(new RegExp(" ("+find+")",_7aa)," <span class=\"dijitComboBoxHighlightMatch\">$1</span>");}return ret;},_escapeHtml:function(str){str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");return str;},open:function(){this._isShowingNow=true;return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});},reset:function(){this.item=null;this.inherited(arguments);}});tojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' tojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' tojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' tojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,postMixInProperties:function(){this._messages=tojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);this.inherited("postMixInProperties",arguments);},_setValueAttr:function(_7ae){this.value=_7ae;this.onChange(_7ae);},onChange:function(_7af){},onPage:function(_7b0){},postCreate:function(){this.previousButton.innerHTML=this._messages["previousMessage"];this.nextButton.innerHTML=this._messages["nextMessage"];this.inherited(arguments);},onClose:function(){this._blurOptionNode();},_createOption:function(item,_7b2){var _7b3=_7b2(item);var _7b4=tojo.doc.createElement("li");dijit.setWaiRole(_7b4,"option");if(_7b3.html){_7b4.innerHTML=_7b3.label;}else{_7b4.appendChild(tojo.doc.createTextNode(_7b3.label));}if(_7b4.innerHTML==""){_7b4.innerHTML="&nbsp;";}_7b4.item=item;return _7b4;},createOptions:function(_7b5,_7b6,_7b7){this.previousButton.style.display=(_7b6.start==0)?"none":"";tojo.attr(this.previousButton,"id",this.id+"_prev");tojo.forEach(_7b5,function(item,i){var _7ba=this._createOption(item,_7b7);_7ba.className="dijitReset dijitMenuItem";tojo.attr(_7ba,"id",this.id+i);this.domNode.insertBefore(_7ba,this.nextButton);},this);var _7bb=false;if(_7b6._maxOptions&&_7b6._maxOptions!=-1){if((_7b6.start+_7b6.count)<_7b6._maxOptions){_7bb=true;}else{if((_7b6.start+_7b6.count)>(_7b6._maxOptions-1)){if(_7b6.count==_7b5.length){_7bb=true;}}}}else{if(_7b6.count==_7b5.length){_7bb=true;}}this.nextButton.style.display=_7bb?"":"none";tojo.attr(this.nextButton,"id",this.id+"_next");},clearResultList:function(){while(this.domNode.childNodes.length>2){this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);}},getItems:function(){return this.domNode.childNodes;},getListLength:function(){return this.domNode.childNodes.length-2;},_onMouseDown:function(evt){tojo.stopEvent(evt);},_onMouseUp:function(evt){if(evt.target===this.domNode){return;}else{if(evt.target==this.previousButton){this.onPage(-1);}else{if(evt.target==this.nextButton){this.onPage(1);}else{var tgt=evt.target;while(!tgt.item){tgt=tgt.parentNode;}this._setValueAttr({target:tgt},true);}}}},_onMouseOver:function(evt){if(evt.target===this.domNode){return;}var tgt=evt.target;if(!(tgt==this.previousButton||tgt==this.nextButton)){while(!tgt.item){tgt=tgt.parentNode;}}this._focusOptionNode(tgt);},_onMouseOut:function(evt){if(evt.target===this.domNode){return;}this._blurOptionNode();},_focusOptionNode:function(node){if(this._highlighted_option!=node){this._blurOptionNode();this._highlighted_option=node;tojo.addClass(this._highlighted_option,"dijitMenuItemHover");}},_blurOptionNode:function(){if(this._highlighted_option){tojo.removeClass(this._highlighted_option,"dijitMenuItemHover");this._highlighted_option=null;}},_highlightNextOption:function(){var fc=this.domNode.firstChild;if(!this.getHighlightedOption()){this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);}else{var ns=this._highlighted_option.nextSibling;if(ns&&ns.style.display!="none"){this._focusOptionNode(ns);}}dijit.scrollIntoView(this._highlighted_option);},highlightFirstOption:function(){this._focusOptionNode(this.domNode.firstChild.nextSibling);dijit.scrollIntoView(this._highlighted_option);},highlightLastOption:function(){this._focusOptionNode(this.domNode.lastChild.previousSibling);dijit.scrollIntoView(this._highlighted_option);},_highlightPrevOption:function(){var lc=this.domNode.lastChild;if(!this.getHighlightedOption()){this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);}else{var ps=this._highlighted_option.previousSibling;if(ps&&ps.style.display!="none"){this._focusOptionNode(ps);}}dijit.scrollIntoView(this._highlighted_option);},_page:function(up){var _7c8=0;var _7c9=this.domNode.scrollTop;var _7ca=tojo.style(this.domNode,"height");if(!this.getHighlightedOption()){this._highlightNextOption();}while(_7c8<_7ca){if(up){if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){break;}this._highlightPrevOption();}else{if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){break;}this._highlightNextOption();}var _7cb=this.domNode.scrollTop;_7c8+=(_7cb-_7c9)*(up?-1:1);_7c9=_7cb;}},pageUp:function(){this._page(true);},pageDown:function(){this._page(false);},getHighlightedOption:function(){var ho=this._highlighted_option;return (ho&&ho.parentNode)?ho:null;},handleKey:function(key){switch(key){case tojo.keys.DOWN_ARROW:this._highlightNextOption();break;case tojo.keys.PAGE_DOWN:this.pageDown();break;case tojo.keys.UP_ARROW:this._highlightPrevOption();break;case tojo.keys.PAGE_UP:this.pageUp();break;}}});tojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{postMixInProperties:function(){dijit.form.ComboBoxMixin.prototype.postMixInProperties.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postMixInProperties.apply(this,arguments);},postCreate:function(){dijit.form.ComboBoxMixin.prototype._postCreate.apply(this,arguments);dijit.form.ValidationTextBox.prototype.postCreate.apply(this,arguments);},_setDisabledAttr:function(_7ce){dijit.form.ValidationTextBox.prototype._setDisabledAttr.apply(this,arguments);dijit.form.ComboBoxMixin.prototype._setDisabledAttr.apply(this,arguments);},_setValueAttr:function(_7cf,_7d0){if(!_7cf){_7cf="";}dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_7cf,_7d0);}});tojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(root){this.root=root;tojo.query("> option",root).forEach(function(node){node.innerHTML=tojo.trim(node.innerHTML);});},getValue:function(item,_7d4,_7d5){return (_7d4=="value")?item.value:(item.innerText||item.textContent||"");},isItemLoaded:function(_7d6){return true;},getFeatures:function(){return {"tojo.data.api.Read":true,"tojo.data.api.Identity":true};},_fetchItems:function(args,_7d8,_7d9){if(!args.query){args.query={};}if(!args.query.name){args.query.name="";}if(!args.queryOptions){args.queryOptions={};}var _7da=tojo.data.util.filter.patternToRegExp(args.query.name,args.queryOptions.ignoreCase),_7db=tojo.query("> option",this.root).filter(function(_7dc){return (_7dc.innerText||_7dc.textContent||"").match(_7da);});if(args.sort){_7db.sort(tojo.data.util.sorter.createSortFunction(args.sort,this));}_7d8(_7db,args);},close:function(_7dd){return;},getLabel:function(item){return item.innerHTML;},getIdentity:function(item){return tojo.attr(item,"value");},fetchItemByIdentity:function(args){var item=tojo.query("option[value='"+args.identity+"']",this.root)[0];args.onItem(item);},fetchSelectedItem:function(){var root=this.root,si=root.selectedIndex;return tojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",root)[0];}});tojo.extend(dijit.form._ComboBoxDataStore,tojo.data.util.simpleFetch);}if(!tojo._hasResource["dijit.form.Slider"]){tojo._hasResource["dijit.form.Slider"]=true;tojo.provide("dijit.form.Slider");tojo.declare("dijit.form.HorizontalSlider",[dijit.form._FormValueWidget,dijit._Container],{templateString:"<table class=\"dijit dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" tojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td tojoAttachPoint=\"containerNode,topDecoration\" class=\"dijitReset\" style=\"text-align:center;width:100%;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconH\" tabIndex=\"-1\" style=\"display:none\" tojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderLeftBumper dijitSliderLeftBumper\" tojoAttachEvent=\"onclick:_onClkDecBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><input tojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><div class=\"dijitReset dijitSliderBarContainerH\" waiRole=\"presentation\" tojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" tojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderProgressBar dijitSliderProgressBarH\" tojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable dijitSliderMoveableH\" \r\n\t\t\t\t\t\t><div tojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleH\" tojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t\t><div waiRole=\"presentation\" tojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarH dijitSliderRemainingBar dijitSliderRemainingBarH\" tojoAttachEvent=\"onclick:_onBarClick\"></div\r\n\t\t\t></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperH dijitSliderRightBumper dijitSliderRightBumper\" tojoAttachEvent=\"onclick:_onClkIncBumper\"></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerH\" style=\"right:0px;\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconH\" tabIndex=\"-1\" style=\"display:none\" tojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t\t><td tojoAttachPoint=\"containerNode,bottomDecoration\" class=\"dijitReset\" style=\"text-align:center;\"></td\r\n\t\t><td class=\"dijitReset\" colspan=\"2\"></td\r\n\t></tr\r\n></table>\r\n",value:0,showButtons:true,minimum:0,maximum:100,discreteValues:Infinity,pageIncrement:2,clickSelect:true,slideDuration:dijit.defaultDuration,widgetsInTemplate:true,attributeMap:tojo.mixin(tojo.clone(dijit.form._FormWidget.prototype.attributeMap),{id:"",name:"valueNode"}),baseClass:"dijitSlider",_mousePixelCoord:"pageX",_pixelCount:"w",_startingPixelCoord:"x",_startingPixelCount:"l",_handleOffsetCoord:"left",_progressPixelSize:"width",_onKeyPress:function(e){if(this.disabled||this.readOnly||e.altKey||e.ctrlKey){return;}switch(e.charOrCode){case tojo.keys.HOME:this._setValueAttr(this.minimum,true);break;case tojo.keys.END:this._setValueAttr(this.maximum,true);break;case ((this._descending||this.isLeftToRight())?tojo.keys.RIGHT_ARROW:tojo.keys.LEFT_ARROW):case (this._descending===false?tojo.keys.DOWN_ARROW:tojo.keys.UP_ARROW):case (this._descending===false?tojo.keys.PAGE_DOWN:tojo.keys.PAGE_UP):this.increment(e);break;case ((this._descending||this.isLeftToRight())?tojo.keys.LEFT_ARROW:tojo.keys.RIGHT_ARROW):case (this._descending===false?tojo.keys.UP_ARROW:tojo.keys.DOWN_ARROW):case (this._descending===false?tojo.keys.PAGE_UP:tojo.keys.PAGE_DOWN):this.decrement(e);break;default:this.inherited(arguments);return;}tojo.stopEvent(e);},_onHandleClick:function(e){if(this.disabled||this.readOnly){return;}if(!tojo.isIE){dijit.focus(this.sliderHandle);}tojo.stopEvent(e);},_isReversed:function(){return !this.isLeftToRight();},_onBarClick:function(e){if(this.disabled||this.readOnly||!this.clickSelect){return;}dijit.focus(this.sliderHandle);tojo.stopEvent(e);var _7e7=tojo.coords(this.sliderBarContainer,true);var _7e8=e[this._mousePixelCoord]-_7e7[this._startingPixelCoord];this._setPixelValue(this._isReversed()?(_7e7[this._pixelCount]-_7e8):_7e8,_7e7[this._pixelCount],true);},_setPixelValue:function(_7e9,_7ea,_7eb){if(this.disabled||this.readOnly){return;}_7e9=_7e9<0?0:_7ea<_7e9?_7ea:_7e9;var _7ec=this.discreteValues;if(_7ec<=1||_7ec==Infinity){_7ec=_7ea;}_7ec--;var _7ed=_7ea/_7ec;var _7ee=Math.round(_7e9/_7ed);this._setValueAttr((this.maximum-this.minimum)*_7ee/_7ec+this.minimum,_7eb);},_setValueAttr:function(_7ef,_7f0){this.valueNode.value=this.value=_7ef;dijit.setWaiState(this.focusNode,"valuenow",_7ef);this.inherited(arguments);var _7f1=(_7ef-this.minimum)/(this.maximum-this.minimum);var _7f2=(this._descending===false)?this.remainingBar:this.progressBar;var _7f3=(this._descending===false)?this.progressBar:this.remainingBar;if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}if(_7f0&&this.slideDuration>0&&_7f2.style[this._progressPixelSize]){var _7f4=this;var _7f5={};var _7f6=parseFloat(_7f2.style[this._progressPixelSize]);var _7f7=this.slideDuration*(_7f1-_7f6/100);if(_7f7==0){return;}if(_7f7<0){_7f7=0-_7f7;}_7f5[this._progressPixelSize]={start:_7f6,end:_7f1*100,units:"%"};this._inProgressAnim=tojo.animateProperty({node:_7f2,duration:_7f7,onAnimate:function(v){_7f3.style[_7f4._progressPixelSize]=(100-parseFloat(v[_7f4._progressPixelSize]))+"%";},onEnd:function(){delete _7f4._inProgressAnim;},properties:_7f5});this._inProgressAnim.play();}else{_7f2.style[this._progressPixelSize]=(_7f1*100)+"%";_7f3.style[this._progressPixelSize]=((1-_7f1)*100)+"%";}},_bumpValue:function(_7f9){if(this.disabled||this.readOnly){return;}var s=tojo.getComputedStyle(this.sliderBarContainer);var c=tojo._getContentBox(this.sliderBarContainer,s);var _7fc=this.discreteValues;if(_7fc<=1||_7fc==Infinity){_7fc=c[this._pixelCount];}_7fc--;var _7fd=(this.value-this.minimum)*_7fc/(this.maximum-this.minimum)+_7f9;if(_7fd<0){_7fd=0;}if(_7fd>_7fc){_7fd=_7fc;}_7fd=_7fd*(this.maximum-this.minimum)/_7fc+this.minimum;this._setValueAttr(_7fd,true);},_onClkIncBumper:function(){this._setValueAttr(this._descending===false?this.minimum:this.maximum,true);},_onClkDecBumper:function(){this._setValueAttr(this._descending===false?this.maximum:this.minimum,true);},decrement:function(e){this._bumpValue(e.charOrCode==tojo.keys.PAGE_DOWN?-this.pageIncrement:-1);},increment:function(e){this._bumpValue(e.charOrCode==tojo.keys.PAGE_UP?this.pageIncrement:1);},_mouseWheeled:function(evt){tojo.stopEvent(evt);var _801=!tojo.isMozilla;var _802=evt[(_801?"wheelDelta":"detail")]*(_801?1:-1);this[(_802<0?"decrement":"increment")](evt);},startup:function(){tojo.forEach(this.getChildren(),function(_803){if(this[_803.container]!=this.containerNode){this[_803.container].appendChild(_803.domNode);}},this);},_typematicCallback:function(_804,_805,e){if(_804==-1){return;}this[(_805==(this._descending?this.incrementButton:this.decrementButton))?"decrement":"increment"](e);},postCreate:function(){if(this.showButtons){this.incrementButton.style.display="";this.decrementButton.style.display="";this._connects.push(dijit.typematic.addMouseListener(this.decrementButton,this,"_typematicCallback",25,500));this._connects.push(dijit.typematic.addMouseListener(this.incrementButton,this,"_typematicCallback",25,500));}this.connect(this.domNode,!tojo.isMozilla?"onmousewheel":"DOMMouseScroll","_mouseWheeled");var _807=this;var _808=function(){dijit.form._SliderMover.apply(this,arguments);this.widget=_807;};tojo.extend(_808,dijit.form._SliderMover.prototype);this._movable=new tojo.dnd.Moveable(this.sliderHandle,{mover:_808});var _809=tojo.query("label[for=\""+this.id+"\"]");if(_809.length){_809[0].id=(this.id+"_label");dijit.setWaiState(this.focusNode,"labelledby",_809[0].id);}dijit.setWaiState(this.focusNode,"valuemin",this.minimum);dijit.setWaiState(this.focusNode,"valuemax",this.maximum);this.inherited(arguments);},destroy:function(){this._movable.destroy();if(this._inProgressAnim&&this._inProgressAnim.status!="stopped"){this._inProgressAnim.stop(true);}this.inherited(arguments);}});tojo.declare("dijit.form.VerticalSlider",dijit.form.HorizontalSlider,{templateString:"<table class=\"dijitReset dijitSlider\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" rules=\"none\" tojoAttachEvent=\"onkeypress:_onKeyPress\"\r\n><tbody class=\"dijitReset\"\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderIncrementIconV\" tabIndex=\"-1\" style=\"display:none\" tojoAttachPoint=\"decrementButton\"><span class=\"dijitSliderButtonInner\">+</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderTopBumper dijitSliderTopBumper\" tojoAttachEvent=\"onclick:_onClkIncBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td tojoAttachPoint=\"leftDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t\t><td class=\"dijitReset\" style=\"height:100%;\"\r\n\t\t\t><input tojoAttachPoint=\"valueNode\" type=\"hidden\" name=\"${name}\"\r\n\t\t\t/><center class=\"dijitReset dijitSliderBarContainerV\" waiRole=\"presentation\" tojoAttachPoint=\"sliderBarContainer\"\r\n\t\t\t\t><div waiRole=\"presentation\" tojoAttachPoint=\"remainingBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderRemainingBar dijitSliderRemainingBarV\" tojoAttachEvent=\"onclick:_onBarClick\"><!--#5629--></div\r\n\t\t\t\t><div waiRole=\"presentation\" tojoAttachPoint=\"progressBar\" class=\"dijitSliderBar dijitSliderBarV dijitSliderProgressBar dijitSliderProgressBarV\" tojoAttachEvent=\"onclick:_onBarClick\"\r\n\t\t\t\t\t><div class=\"dijitSliderMoveable\" style=\"vertical-align:top;\" \r\n\t\t\t\t\t\t><div tojoAttachPoint=\"sliderHandle,focusNode\" class=\"dijitSliderImageHandle dijitSliderImageHandleV\" tojoAttachEvent=\"onmousedown:_onHandleClick\" waiRole=\"slider\" valuemin=\"${minimum}\" valuemax=\"${maximum}\"></div\r\n\t\t\t\t\t></div\r\n\t\t\t\t></div\r\n\t\t\t></center\r\n\t\t></td\r\n\t\t><td tojoAttachPoint=\"containerNode,rightDecoration\" class=\"dijitReset\" style=\"text-align:center;height:100%;\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset\"\r\n\t\t\t><center><div class=\"dijitSliderBar dijitSliderBumper dijitSliderBumperV dijitSliderBottomBumper dijitSliderBottomBumper\" tojoAttachEvent=\"onclick:_onClkDecBumper\"></div></center\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n\t><tr class=\"dijitReset\"\r\n\t\t><td class=\"dijitReset\"></td\r\n\t\t><td class=\"dijitReset dijitSliderButtonContainer dijitSliderButtonContainerV\"\r\n\t\t\t><div class=\"dijitSliderDecrementIconV\" tabIndex=\"-1\" style=\"display:none\" tojoAttachPoint=\"incrementButton\"><span class=\"dijitSliderButtonInner\">-</span></div\r\n\t\t></td\r\n\t\t><td class=\"dijitReset\"></td\r\n\t></tr\r\n></tbody></table>\r\n",_mousePixelCoord:"pageY",_pixelCount:"h",_startingPixelCoord:"y",_startingPixelCount:"t",_handleOffsetCoord:"top",_progressPixelSize:"height",_descending:true,startup:function(){if(this._started){return;}if(!this.isLeftToRight()&&tojo.isMoz){if(this.leftDecoration){this._rtlRectify(this.leftDecoration);}if(this.rightDecoration){this._rtlRectify(this.rightDecoration);}}this.inherited(arguments);},_isReversed:function(){return this._descending;},_rtlRectify:function(_80a){var _80b=[];while(_80a.firstChild){_80b.push(_80a.firstChild);_80a.removeChild(_80a.firstChild);}for(var i=_80b.length-1;i>=0;i--){if(_80b[i]){_80a.appendChild(_80b[i]);}}}});tojo.declare("dijit.form._SliderMover",tojo.dnd.Mover,{onMouseMove:function(e){var _80e=this.widget;var _80f=_80e._abspos;if(!_80f){_80f=_80e._abspos=tojo.coords(_80e.sliderBarContainer,true);_80e._setPixelValue_=tojo.hitch(_80e,"_setPixelValue");_80e._isReversed_=_80e._isReversed();}var _810=e[_80e._mousePixelCoord]-_80f[_80e._startingPixelCoord];_80e._setPixelValue_(_80e._isReversed_?(_80f[_80e._pixelCount]-_810):_810,_80f[_80e._pixelCount],false);},destroy:function(e){tojo.dnd.Mover.prototype.destroy.apply(this,arguments);var _812=this.widget;_812._abspos=null;_812._setValueAttr(_812.value,true);}});tojo.declare("dijit.form.HorizontalRule",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH\"></div>",count:3,container:"containerNode",ruleStyle:"",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkH\" style=\"left:",_positionSuffix:"%;",_suffix:"\"></div>",_genHTML:function(pos,ndx){return this._positionPrefix+pos+this._positionSuffix+this.ruleStyle+this._suffix;},_isHorizontal:true,postCreate:function(){var _815;if(this.count==1){_815=this._genHTML(50,0);}else{var i;var _817=100/(this.count-1);if(!this._isHorizontal||this.isLeftToRight()){_815=this._genHTML(0,0);for(i=1;i<this.count-1;i++){_815+=this._genHTML(_817*i,i);}_815+=this._genHTML(100,this.count-1);}else{_815=this._genHTML(100,0);for(i=1;i<this.count-1;i++){_815+=this._genHTML(100-_817*i,i);}_815+=this._genHTML(0,this.count-1);}}this.domNode.innerHTML=_815;}});tojo.declare("dijit.form.VerticalRule",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleMark dijitRuleMarkV\" style=\"top:",_isHorizontal:false});tojo.declare("dijit.form.HorizontalRuleLabels",dijit.form.HorizontalRule,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerH dijitRuleLabelsContainer dijitRuleLabelsContainerH\"></div>",labelStyle:"",labels:[],numericMargin:0,minimum:0,maximum:1,constraints:{pattern:"#%"},_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerH\" style=\"left:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelH\">",_suffix:"</span></div>",_calcPosition:function(pos){return pos;},_genHTML:function(pos,ndx){return this._positionPrefix+this._calcPosition(pos)+this._positionSuffix+this.labelStyle+this._labelPrefix+this.labels[ndx]+this._suffix;},getLabels:function(){var _81b=this.labels;if(!_81b.length){_81b=tojo.query("> li",this.srcNodeRef).map(function(node){return String(node.innerHTML);});}this.srcNodeRef.innerHTML="";if(!_81b.length&&this.count>1){var _81d=this.minimum;var inc=(this.maximum-_81d)/(this.count-1);for(var i=0;i<this.count;i++){_81b.push((i<this.numericMargin||i>=(this.count-this.numericMargin))?"":tojo.number.format(_81d,this.constraints));_81d+=inc;}}return _81b;},postMixInProperties:function(){this.inherited(arguments);this.labels=this.getLabels();this.count=this.labels.length;}});tojo.declare("dijit.form.VerticalRuleLabels",dijit.form.HorizontalRuleLabels,{templateString:"<div class=\"dijitRuleContainer dijitRuleContainerV dijitRuleLabelsContainer dijitRuleLabelsContainerV\"></div>",_positionPrefix:"<div class=\"dijitRuleLabelContainer dijitRuleLabelContainerV\" style=\"top:",_labelPrefix:"\"><span class=\"dijitRuleLabel dijitRuleLabelV\">",_calcPosition:function(pos){return 100-pos;},_isHorizontal:false});}if(!tojo._hasResource["dijit._editor.selection"]){tojo._hasResource["dijit._editor.selection"]=true;tojo.provide("dijit._editor.selection");tojo.mixin(dijit._editor.selection,{getType:function(){if(tojo.doc.selection){return tojo.doc.selection.type.toLowerCase();}else{var _821="text";var oSel;try{oSel=tojo.global.getSelection();}catch(e){}if(oSel&&oSel.rangeCount==1){var _823=oSel.getRangeAt(0);if((_823.startContainer==_823.endContainer)&&((_823.endOffset-_823.startOffset)==1)&&(_823.startContainer.nodeType!=3)){_821="control";}}return _821;}},getSelectedText:function(){if(tojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return tojo.doc.selection.createRange().text;}else{var _824=tojo.global.getSelection();if(_824){return _824.toString();}}return "";},getSelectedHtml:function(){if(tojo.doc.selection){if(dijit._editor.selection.getType()=="control"){return null;}return tojo.doc.selection.createRange().htmlText;}else{var _825=tojo.global.getSelection();if(_825&&_825.rangeCount){var frag=_825.getRangeAt(0).cloneContents();var div=tojo.doc.createElement("div");div.appendChild(frag);return div.innerHTML;}return null;}},getSelectedElement:function(){if(dijit._editor.selection.getType()=="control"){if(tojo.doc.selection){var _828=tojo.doc.selection.createRange();if(_828&&_828.item){return tojo.doc.selection.createRange().item(0);}}else{var _829=tojo.global.getSelection();return _829.anchorNode.childNodes[_829.anchorOffset];}}return null;},getParentElement:function(){if(dijit._editor.selection.getType()=="control"){var p=this.getSelectedElement();if(p){return p.parentNode;}}else{if(tojo.doc.selection){var r=tojo.doc.selection.createRange();r.collapse(true);return r.parentElement();}else{var _82c=tojo.global.getSelection();if(_82c){var node=_82c.anchorNode;while(node&&(node.nodeType!=1)){node=node.parentNode;}return node;}}}return null;},hasAncestorElement:function(_82e){return this.getAncestorElement.apply(this,arguments)!=null;},getAncestorElement:function(_82f){var node=this.getSelectedElement()||this.getParentElement();return this.getParentOfType(node,arguments);},isTag:function(node,tags){if(node&&node.tagName){var _nlc=node.tagName.toLowerCase();for(var i=0;i<tags.length;i++){var _tlc=String(tags[i]).toLowerCase();if(_nlc==_tlc){return _tlc;}}}return "";},getParentOfType:function(node,tags){while(node){if(this.isTag(node,tags).length){return node;}node=node.parentNode;}return null;},collapse:function(_838){if(window["getSelection"]){var _839=tojo.global.getSelection();if(_839.removeAllRanges){if(_838){_839.collapseToStart();}else{_839.collapseToEnd();}}else{_839.collapse(_838);}}else{if(tojo.doc.selection){var _83a=tojo.doc.selection.createRange();_83a.collapse(_838);_83a.select();}}},remove:function(){var _s=tojo.doc.selection;if(_s){if(_s.type.toLowerCase()!="none"){_s.clear();}return _s;}else{_s=tojo.global.getSelection();_s.deleteFromDocument();return _s;}},selectElementChildren:function(_83c,_83d){var _83e=tojo.global;var _83f=tojo.doc;_83c=tojo.byId(_83c);if(_83f.selection&&tojo.body().createTextRange){var _840=_83c.ownerDocument.body.createTextRange();_840.moveToElementText(_83c);if(!_83d){try{_840.select();}catch(e){}}}else{if(_83e.getSelection){var _841=_83e.getSelection();if(_841.setBaseAndExtent){_841.setBaseAndExtent(_83c,0,_83c,_83c.innerText.length-1);}else{if(_841.selectAllChildren){_841.selectAllChildren(_83c);}}}}},selectElement:function(_842,_843){var _844,_845=tojo.doc;_842=tojo.byId(_842);if(_845.selection&&tojo.body().createTextRange){try{_844=tojo.body().createControlRange();_844.addElement(_842);if(!_843){_844.select();}}catch(e){this.selectElementChildren(_842,_843);}}else{if(tojo.global.getSelection){var _846=tojo.global.getSelection();if(_846.removeAllRanges){_844=_845.createRange();_844.selectNode(_842);_846.removeAllRanges();_846.addRange(_844);}}}}});}if(!tojo._hasResource["dijit._editor.range"]){tojo._hasResource["dijit._editor.range"]=true;tojo.provide("dijit._editor.range");dijit.range={};dijit.range.getIndex=function(node,_848){var ret=[],retR=[];var stop=_848;var _84c=node;var _84d,n;while(node!=stop){var i=0;_84d=node.parentNode;while((n=_84d.childNodes[i++])){if(n===node){--i;break;}}if(i>=_84d.childNodes.length){tojo.debug("Error finding index of a node in dijit.range.getIndex");}ret.unshift(i);retR.unshift(i-_84d.childNodes.length);node=_84d;}if(ret.length>0&&_84c.nodeType==3){n=_84c.previousSibling;while(n&&n.nodeType==3){ret[ret.length-1]--;n=n.previousSibling;}n=_84c.nextSibling;while(n&&n.nodeType==3){retR[retR.length-1]++;n=n.nextSibling;}}return {o:ret,r:retR};};dijit.range.getNode=function(_850,_851){if(!tojo.isArray(_850)||_850.length==0){return _851;}var node=_851;tojo.every(_850,function(i){if(i>=0&&i<node.childNodes.length){node=node.childNodes[i];}else{node=null;console.debug("Error: can not find node with index",_850,"under parent node",_851);return false;}return true;});return node;};dijit.range.getCommonAncestor=function(n1,n2){var _856=function(n){var as=[];while(n){as.unshift(n);if(n.nodeName!="BODY"){n=n.parentNode;}else{break;}}return as;};var n1as=_856(n1);var n2as=_856(n2);var m=Math.min(n1as.length,n2as.length);var com=n1as[0];for(var i=1;i<m;i++){if(n1as[i]===n2as[i]){com=n1as[i];}else{break;}}return com;};dijit.range.getAncestor=function(node,_85f,root){root=root||node.ownerDocument.body;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(_85f.test(name)){return node;}node=node.parentNode;}return null;};dijit.range.BlockTagNames=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|DT|DE)$/;dijit.range.getBlockAncestor=function(node,_863,root){root=root||node.ownerDocument.body;_863=_863||dijit.range.BlockTagNames;var _865=null,_866;while(node&&node!==root){var name=node.nodeName.toUpperCase();if(!_865&&_863.test(name)){_865=node;}if(!_866&&(/^(?:BODY|TD|TH|CAPTION)$/).test(name)){_866=node;}node=node.parentNode;}return {blockNode:_865,blockContainer:_866||node.ownerDocument.body};};dijit.range.atBeginningOfContainer=function(_868,node,_86a){var _86b=false;var _86c=(_86a==0);if(!_86c&&node.nodeType==3){if(tojo.trim(node.nodeValue.substr(0,_86a))==0){_86c=true;}}if(_86c){var _86d=node;_86b=true;while(_86d&&_86d!==_868){if(_86d.previousSibling){_86b=false;break;}_86d=_86d.parentNode;}}return _86b;};dijit.range.atEndOfContainer=function(_86e,node,_870){var _871=false;var _872=(_870==(node.length||node.childNodes.length));if(!_872&&node.nodeType==3){if(tojo.trim(node.nodeValue.substr(_870))==0){_872=true;}}if(_872){var _873=node;_871=true;while(_873&&_873!==_86e){if(_873.nextSibling){_871=false;break;}_873=_873.parentNode;}}return _871;};dijit.range.adjacentNoneTextNode=function(_874,next){var node=_874;var len=(0-_874.length)||0;var prop=next?"nextSibling":"previousSibling";while(node){if(node.nodeType!=3){break;}len+=node.length;node=node[prop];}return [node,len];};dijit.range._w3c=Boolean(window["getSelection"]);dijit.range.create=function(){if(dijit.range._w3c){return tojo.doc.createRange();}else{return new dijit.range.W3CRange;}};dijit.range.getSelection=function(win,_87a){if(dijit.range._w3c){return win.getSelection();}else{var s=new dijit.range.ie.selection(win);if(!_87a){s._getCurrentSelection();}return s;}};if(!dijit.range._w3c){dijit.range.ie={cachedSelection:{},selection:function(win){this._ranges=[];this.addRange=function(r,_87e){this._ranges.push(r);if(!_87e){r._select();}this.rangeCount=this._ranges.length;};this.removeAllRanges=function(){this._ranges=[];this.rangeCount=0;};var _87f=function(){var r=win.document.selection.createRange();var type=win.document.selection.type.toUpperCase();if(type=="CONTROL"){return new dijit.range.W3CRange(dijit.range.ie.decomposeControlRange(r));}else{return new dijit.range.W3CRange(dijit.range.ie.decomposeTextRange(r));}};this.getRangeAt=function(i){return this._ranges[i];};this._getCurrentSelection=function(){this.removeAllRanges();var r=_87f();if(r){this.addRange(r,true);}};},decomposeControlRange:function(_884){var _885=_884.item(0),_886=_884.item(_884.length-1);var _887=_885.parentNode,_888=_886.parentNode;var _889=dijit.range.getIndex(_885,_887).o;var _88a=dijit.range.getIndex(_886,_888).o+1;return [[_887,_889],[_888,_88a]];},getEndPoint:function(_88b,end){var _88d=_88b.duplicate();_88d.collapse(!end);var _88e="EndTo"+(end?"End":"Start");var _88f=_88d.parentElement();var _890,_891,_892;if(_88f.childNodes.length>0){tojo.every(_88f.childNodes,function(node,i){var _895;if(node.nodeType!=3){_88d.moveToElementText(node);if(_88d.compareEndPoints(_88e,_88b)>0){_890=node.previousSibling;if(_892&&_892.nodeType==3){_890=_892;_895=true;}else{_890=_88f;_891=i;return false;}}else{if(i==_88f.childNodes.length-1){_890=_88f;_891=_88f.childNodes.length;return false;}}}else{if(i==_88f.childNodes.length-1){_890=node;_895=true;}}if(_895&&_890){var _896=dijit.range.adjacentNoneTextNode(_890)[0];if(_896){_890=_896.nextSibling;}else{_890=_88f.firstChild;}var _897=dijit.range.adjacentNoneTextNode(_890);_896=_897[0];var _898=_897[1];if(_896){_88d.moveToElementText(_896);_88d.collapse(false);}else{_88d.moveToElementText(_88f);}_88d.setEndPoint(_88e,_88b);_891=_88d.text.length-_898;return false;}_892=node;return true;});}else{_890=_88f;_891=0;}if(!end&&_890.nodeType!=3&&_891==_890.childNodes.length){if(_890.nextSibling&&_890.nextSibling.nodeType==3){_890=_890.nextSibling;_891=0;}}return [_890,_891];},setEndPoint:function(_899,_89a,_89b){var _89c=_899.duplicate(),node,len;if(_89a.nodeType!=3){_89c.moveToElementText(_89a);_89c.collapse(true);if(_89b==_89a.childNodes.length){if(_89b>0){node=_89a.lastChild;len=0;while(node&&node.nodeType==3){len+=node.length;_89a=node;node=node.previousSibling;}if(node){_89c.moveToElementText(node);}_89c.collapse(false);_89b=len;}else{_89c.moveToElementText(_89a);_89c.collapse(true);}}else{if(_89b>0){node=_89a.childNodes[_89b-1];if(node.nodeType==3){_89a=node;_89b=node.length;}else{_89c.moveToElementText(node);_89c.collapse(false);}}}}if(_89a.nodeType==3){var _89f=dijit.range.adjacentNoneTextNode(_89a);var _8a0=_89f[0];len=_89f[1];if(_8a0){_89c.moveToElementText(_8a0);_89c.collapse(false);if(_8a0.contentEditable!="inherit"){len++;}}else{_89c.moveToElementText(_89a.parentNode);_89c.collapse(true);}_89b+=len;if(_89b>0){if(_89c.move("character",_89b)!=_89b){console.error("Error when moving!");}}}return _89c;},decomposeTextRange:function(_8a1){var _8a2=dijit.range.ie.getEndPoint(_8a1);var _8a3=_8a2[0],_8a4=_8a2[1];var _8a5=_8a2[0],_8a6=_8a2[1];if(_8a1.htmlText.length){if(_8a1.htmlText==_8a1.text){_8a6=_8a4+_8a1.text.length;}else{_8a2=dijit.range.ie.getEndPoint(_8a1,true);_8a5=_8a2[0],_8a6=_8a2[1];}}return [[_8a3,_8a4],[_8a5,_8a6]];},setRange:function(_8a7,_8a8,_8a9,_8aa,_8ab,_8ac){var _8ad=dijit.range.ie.setEndPoint(_8a7,_8a8,_8a9);_8a7.setEndPoint("StartToStart",_8ad);var _8ae=_8ad;if(!_8ac){_8ae=dijit.range.ie.setEndPoint(_8a7,_8aa,_8ab);}_8a7.setEndPoint("EndToEnd",_8ae);return _8a7;}};tojo.declare("dijit.range.W3CRange",null,{constructor:function(){if(arguments.length>0){this.setStart(arguments[0][0][0],arguments[0][0][1]);this.setEnd(arguments[0][1][0],arguments[0][1][1]);}else{this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}},_simpleSetEndPoint:function(node,_8b0,end){var r=(this._body||node.ownerDocument.body).createTextRange();if(node.nodeType!=1){r.moveToElementText(node.parentNode);}else{r.moveToElementText(node);}r.collapse(true);_8b0.setEndPoint(end?"EndToEnd":"StartToStart",r);},_updateInternal:function(){if(this.startContainer!==this.endContainer){this.commonAncestorContainer=dijit.range.getCommonAncestor(this.startContainer,this.endContainer);}else{this.commonAncestorContainer=this.startContainer;}this.collapsed=(this.startContainer===this.endContainer)&&(this.startOffset==this.endOffset);},setStart:function(node,_8b4){_8b4=parseInt(_8b4);if(this.startContainer===node&&this.startOffset==_8b4){return;}delete this._cachedBookmark;this.startContainer=node;this.startOffset=_8b4;if(!this.endContainer){this.setEnd(node,_8b4);}else{this._updateInternal();}},setEnd:function(node,_8b6){_8b6=parseInt(_8b6);if(this.endContainer===node&&this.endOffset==_8b6){return;}delete this._cachedBookmark;this.endContainer=node;this.endOffset=_8b6;if(!this.startContainer){this.setStart(node,_8b6);}else{this._updateInternal();}},setStartAfter:function(node,_8b8){this._setPoint("setStart",node,_8b8,1);},setStartBefore:function(node,_8ba){this._setPoint("setStart",node,_8ba,0);},setEndAfter:function(node,_8bc){this._setPoint("setEnd",node,_8bc,1);},setEndBefore:function(node,_8be){this._setPoint("setEnd",node,_8be,0);},_setPoint:function(what,node,_8c1,ext){var _8c3=dijit.range.getIndex(node,node.parentNode).o;this[what](node.parentNode,_8c3.pop()+ext);},_getIERange:function(){var r=(this._body||this.endContainer.ownerDocument.body).createTextRange();dijit.range.ie.setRange(r,this.startContainer,this.startOffset,this.endContainer,this.endOffset,this.collapsed);return r;},getBookmark:function(body){this._getIERange();return this._cachedBookmark;},_select:function(){var r=this._getIERange();r.select();},deleteContents:function(){var r=this._getIERange();r.pasteHTML("");this.endContainer=this.startContainer;this.endOffset=this.startOffset;this.collapsed=true;},cloneRange:function(){var r=new dijit.range.W3CRange([[this.startContainer,this.startOffset],[this.endContainer,this.endOffset]]);r._body=this._body;return r;},detach:function(){this._body=null;this.commonAncestorContainer=null;this.startContainer=null;this.startOffset=0;this.endContainer=null;this.endOffset=0;this.collapsed=true;}});}}if(!tojo._hasResource["dijit._editor.html"]){tojo._hasResource["dijit._editor.html"]=true;tojo.provide("dijit._editor.html");dijit._editor.escapeXml=function(str,_8ca){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_8ca){str=str.replace(/'/gm,"&#39;");}return str;};dijit._editor.getNodeHtml=function(node){var _8cc;switch(node.nodeType){case 1:_8cc="<"+node.nodeName.toLowerCase();var _8cd=[];if(tojo.isIE&&node.outerHTML){var s=node.outerHTML;s=s.substr(0,s.indexOf(">")).replace(/(['"])[^"']*\1/g,"");var reg=/([^\s=]+)=/g;var m,key;while((m=reg.exec(s))){key=m[1];if(key.substr(0,3)!="_dj"){if(key=="src"||key=="href"){if(node.getAttribute("_djrealurl")){_8cd.push([key,node.getAttribute("_djrealurl")]);continue;}}var val;switch(key){case "style":val=node.style.cssText.toLowerCase();break;case "class":val=node.className;break;default:val=node.getAttribute(key);}_8cd.push([key,val.toString()]);}}}else{var attr,i=0;while((attr=node.attributes[i++])){var n=attr.name;if(n.substr(0,3)!="_dj"){var v=attr.value;if(n=="src"||n=="href"){if(node.getAttribute("_djrealurl")){v=node.getAttribute("_djrealurl");}}_8cd.push([n,v]);}}}_8cd.sort(function(a,b){return a[0]<b[0]?-1:(a[0]==b[0]?0:1);});var j=0;while((attr=_8cd[j++])){_8cc+=" "+attr[0]+"=\""+(tojo.isString(attr[1])?dijit._editor.escapeXml(attr[1],true):attr[1])+"\"";}if(node.childNodes.length){_8cc+=">"+dijit._editor.getChildrenHtml(node)+"</"+node.nodeName.toLowerCase()+">";}else{_8cc+=" />";}break;case 3:_8cc=dijit._editor.escapeXml(node.nodeValue,true);break;case 8:_8cc="<!--"+dijit._editor.escapeXml(node.nodeValue,true)+"-->";break;default:_8cc="<!-- Element not recognized - Type: "+node.nodeType+" Name: "+node.nodeName+"-->";}return _8cc;};dijit._editor.getChildrenHtml=function(dom){var out="";if(!dom){return out;}var _8dc=dom["childNodes"]||dom;var node,i=0;while((node=_8dc[i++])){out+=dijit._editor.getNodeHtml(node);}return out;};}if(!tojo._hasResource["dijit._editor.RichText"]){tojo._hasResource["dijit._editor.RichText"]=true;tojo.provide("dijit._editor.RichText");if(!tojo.config["useXDomain"]||tojo.config["allowXdRichTextSave"]){if(tojo._postLoad){(function(){var _8df=tojo.doc.createElement("textarea");_8df.id=dijit._scopeName+"._editor.RichText.savedContent";var s=_8df.style;s.display="none";s.position="absolute";s.top="-100px";s.left="-100px";s.height="3px";s.width="3px";tojo.body().appendChild(_8df);})();}else{try{tojo.doc.write("<textarea id=\""+dijit._scopeName+"._editor.RichText.savedContent\" "+"style=\"display:none;position:absolute;top:-100px;left:-100px;height:3px;width:3px;overflow:hidden;\"></textarea>");}catch(e){}}}tojo.declare("dijit._editor.RichText",dijit._Widget,{constructor:function(_8e1){this.contentPreFilters=[];this.contentPostFilters=[];this.contentDomPreFilters=[];this.contentDomPostFilters=[];this.editingAreaStyleSheets=[];this._keyHandlers={};this.contentPreFilters.push(tojo.hitch(this,"_preFixUrlAttributes"));if(tojo.isMoz){this.contentPreFilters.push(this._fixContentForMoz);this.contentPostFilters.push(this._removeMozBogus);}if(tojo.isSafari){this.contentPostFilters.push(this._removeSafariBogus);}this.onLoadDeferred=new tojo.Deferred();},inheritWidth:false,focusOnLoad:false,name:"",styleSheets:"",_content:"",height:"300px",minHeight:"1em",isClosed:true,isLoaded:false,_SEPARATOR:"@@**%%__RICHTEXTBOUNDRY__%%**@@",onLoadDeferred:null,isTabIndent:false,postCreate:function(){if("textarea"==this.domNode.tagName.toLowerCase()){console.warn("RichText should not be used with the TEXTAREA tag.  See dijit._editor.RichText docs.");}tojo.publish(dijit._scopeName+"._editor.RichText::init",[this]);this.open();this.setupDefaultShortcuts();},setupDefaultShortcuts:function(){var exec=tojo.hitch(this,function(cmd,arg){return function(){return !this.execCommand(cmd,arg);};});var _8e5={b:exec("bold"),i:exec("italic"),u:exec("underline"),a:exec("selectall"),s:function(){this.save(true);},m:function(){this.isTabIndent=!this.isTabIndent;},"1":exec("formatblock","h1"),"2":exec("formatblock","h2"),"3":exec("formatblock","h3"),"4":exec("formatblock","h4"),"\\":exec("insertunorderedlist")};if(!tojo.isIE){_8e5.Z=exec("redo");}for(var key in _8e5){this.addKeyHandler(key,true,false,_8e5[key]);}},events:["onKeyPress","onKeyDown","onKeyUp","onClick"],captureEvents:[],_editorCommandsLocalized:false,_localizeEditorCommands:function(){if(this._editorCommandsLocalized){return;}this._editorCommandsLocalized=true;var _8e7=["div","p","pre","h1","h2","h3","h4","h5","h6","ol","ul","address"];var _8e8="",_8e9,i=0;while((_8e9=_8e7[i++])){if(_8e9.charAt(1)!="l"){_8e8+="<"+_8e9+"><span>content</span></"+_8e9+"><br/>";}else{_8e8+="<"+_8e9+"><li>content</li></"+_8e9+"><br/>";}}var div=tojo.doc.createElement("div");tojo.style(div,{position:"absolute",left:"-2000px",top:"-2000px"});tojo.doc.body.appendChild(div);div.innerHTML=_8e8;var node=div.firstChild;while(node){dijit._editor.selection.selectElement(node.firstChild);tojo.withGlobal(this.window,"selectElement",dijit._editor.selection,[node.firstChild]);var _8ed=node.tagName.toLowerCase();this._local2NativeFormatNames[_8ed]=document.queryCommandValue("formatblock");this._native2LocalFormatNames[this._local2NativeFormatNames[_8ed]]=_8ed;node=node.nextSibling.nextSibling;}tojo.body().removeChild(div);},open:function(_8ee){if((!this.onLoadDeferred)||(this.onLoadDeferred.fired>=0)){this.onLoadDeferred=new tojo.Deferred();}if(!this.isClosed){this.close();}tojo.publish(dijit._scopeName+"._editor.RichText::open",[this]);this._content="";if((arguments.length==1)&&(_8ee["nodeName"])){this.domNode=_8ee;}var dn=this.domNode;var html;if((dn["nodeName"])&&(dn.nodeName.toLowerCase()=="textarea")){var ta=this.textarea=dn;this.name=ta.name;html=this._preFilterContent(ta.value);dn=this.domNode=tojo.doc.createElement("div");dn.setAttribute("widgetId",this.id);ta.removeAttribute("widgetId");dn.cssText=ta.cssText;dn.className+=" "+ta.className;tojo.place(dn,ta,"before");var _8f2=tojo.hitch(this,function(){with(ta.style){display="block";position="absolute";left=top="-1000px";if(tojo.isIE){this.__overflow=overflow;overflow="hidden";}}});if(tojo.isIE){setTimeout(_8f2,10);}else{_8f2();}if(ta.form){tojo.connect(ta.form,"onsubmit",this,function(){ta.value=this.getValue();});}}else{html=this._preFilterContent(dijit._editor.getChildrenHtml(dn));dn.innerHTML="";}if(html==""){html="&nbsp;";}var _8f3=tojo.contentBox(dn);this._oldHeight=_8f3.h;this._oldWidth=_8f3.w;this.savedContent=html;if((dn["nodeName"])&&(dn.nodeName=="LI")){dn.innerHTML=" <br>";}this.editingArea=dn.ownerDocument.createElement("div");dn.appendChild(this.editingArea);if(this.name!=""&&(!tojo.config["useXDomain"]||tojo.config["allowXdRichTextSave"])){var _8f4=tojo.byId(dijit._scopeName+"._editor.RichText.savedContent");if(_8f4.value!=""){var _8f5=_8f4.value.split(this._SEPARATOR),i=0,dat;while((dat=_8f5[i++])){var data=dat.split(":");if(data[0]==this.name){html=data[1];_8f5.splice(i,1);break;}}}this.connect(window,"onbeforeunload","_saveContent");}this.isClosed=false;if(tojo.isIE||tojo.isSafari||tojo.isOpera){var burl=tojo.config["tojoBlankHtmlUrl"]||(tojo.moduleUrl("tojo","resources/blank.html")+"");var ifr=this.editorObject=this.iframe=tojo.doc.createElement("iframe");ifr.id=this.id+"_iframe";ifr.src=burl;ifr.style.border="none";ifr.style.width="100%";ifr.frameBorder=0;this.editingArea.appendChild(ifr);var h=null;var _8fc=tojo.hitch(this,function(){if(h){tojo.disconnect(h);h=null;}this.window=ifr.contentWindow;var d=this.document=this.window.document;d.open();d.write(this._getIframeDocTxt(html));d.close();if(this._layoutMode){ifr.style.height="100%";}else{if(tojo.isIE>=7){if(this.height){ifr.style.height=this.height;}if(this.minHeight){ifr.style.minHeight=this.minHeight;}}else{ifr.style.height=this.height?this.height:this.minHeight;}}if(tojo.isIE){this._localizeEditorCommands();}this.onLoad();this.savedContent=this.getValue(true);});if(tojo.isIE&&tojo.isIE<=7){var t=setInterval(function(){if(ifr.contentWindow.isLoaded){clearInterval(t);_8fc();}},100);}else{h=tojo.connect(((tojo.isIE)?ifr.contentWindow:ifr),"onload",_8fc);}}else{this._drawIframe(html);this.savedContent=this.getValue(true);}if(dn.nodeName=="LI"){dn.lastChild.style.marginTop="-1.2em";}if(this.domNode.nodeName=="LI"){this.domNode.lastChild.style.marginTop="-1.2em";}tojo.addClass(this.domNode,"RichTextEditable");},_local2NativeFormatNames:{},_native2LocalFormatNames:{},_localizedIframeTitles:null,_getIframeDocTxt:function(html){var _cs=tojo.getComputedStyle(this.domNode);if(tojo.isIE||(!this.height&&!tojo.isMoz)){html="<div>"+html+"</div>";}var font=[_cs.fontWeight,_cs.fontSize,_cs.fontFamily].join(" ");var _902=_cs.lineHeight;if(_902.indexOf("px")>=0){_902=parseFloat(_902)/parseFloat(_cs.fontSize);}else{if(_902.indexOf("em")>=0){_902=parseFloat(_902);}else{_902="1.0";}}var _903="";this.style.replace(/(^|;)(line-|font-?)[^;]+/g,function(_904){_903+=_904.replace(/^;/g,"")+";";});return [this.isLeftToRight()?"<html><head>":"<html dir='rtl'><head>",(tojo.isMoz?"<title>"+this._localizedIframeTitles.iframeEditTitle+"</title>":""),"<style>","body,html {","\tbackground:transparent;","\tpadding: 1em 0 0 0;","\tmargin: -1em 0 0 0;","\theight: 100%;","}","body{","\ttop:0px; left:0px; right:0px;","\tfont:",font,";",((this.height||tojo.isOpera)?"":"position: fixed;"),"\tmin-height:",this.minHeight,";","\tline-height:",_902,"}","p{ margin: 1em 0 !important; }",(this.height?"":"body,html{height:auto;overflow-y:hidden;/*for IE*/} body > div {overflow-x:auto;/*for FF to show vertical scrollbar*/}"),"li > ul:-moz-first-node, li > ol:-moz-first-node{ padding-top: 1.2em; } ","li{ min-height:1.2em; }","</style>",this._applyEditingAreaStyleSheets(),"</head><body style='"+_903+"'>"+html+"</body></html>"].join("");},_drawIframe:function(html){if(!this.iframe){var ifr=this.iframe=tojo.doc.createElement("iframe");ifr.id=this.id+"_iframe";var ifrs=ifr.style;ifrs.border="none";ifrs.lineHeight="0";ifrs.verticalAlign="bottom";this.editorObject=this.iframe;this._localizedIframeTitles=tojo.i18n.getLocalization("dijit.form","Textarea");var _908=tojo.query("label[for=\""+this.id+"\"]");if(_908.length){this._localizedIframeTitles.iframeEditTitle=_908[0].innerHTML+" "+this._localizedIframeTitles.iframeEditTitle;}}this.iframe.style.width=this.inheritWidth?this._oldWidth:"100%";if(this._layoutMode){this.iframe.style.height="100%";}else{if(this.height){this.iframe.style.height=this.height;}else{this.iframe.height=this._oldHeight;}}var _909;if(this.textarea){_909=this.srcNodeRef;}else{_909=tojo.doc.createElement("div");_909.style.display="none";_909.innerHTML=html;this.editingArea.appendChild(_909);}this.editingArea.appendChild(this.iframe);var _90a=tojo.hitch(this,function(){if(!this.editNode){if(!this.document){try{if(this.iframe.contentWindow){this.window=this.iframe.contentWindow;this.document=this.iframe.contentWindow.document;}else{if(this.iframe.contentDocument){this.window=this.iframe.contentDocument.window;this.document=this.iframe.contentDocument;}}}catch(e){}if(!this.document){setTimeout(_90a,50);return;}var _90b=this.document;_90b.open();if(tojo.isAIR){_90b.body.innerHTML=html;}else{_90b.write(this._getIframeDocTxt(html));}_90b.close();tojo._destroyElement(_909);}if(!this.document.body){setTimeout(_90a,50);return;}this.onLoad();}else{tojo._destroyElement(_909);this.editNode.innerHTML=html;this.onDisplayChanged();}this._preDomFilterContent(this.editNode);});_90a();},_applyEditingAreaStyleSheets:function(){var _90c=[];if(this.styleSheets){_90c=this.styleSheets.split(";");this.styleSheets="";}_90c=_90c.concat(this.editingAreaStyleSheets);this.editingAreaStyleSheets=[];var text="",i=0,url;while((url=_90c[i++])){var _910=(new tojo._Url(tojo.global.location,url)).toString();this.editingAreaStyleSheets.push(_910);text+="<link rel=\"stylesheet\" type=\"text/css\" href=\""+_910+"\"/>";}return text;},addStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new tojo._Url(tojo.global.location,url)).toString();}if(tojo.indexOf(this.editingAreaStyleSheets,url)>-1){return;}this.editingAreaStyleSheets.push(url);if(this.document.createStyleSheet){this.document.createStyleSheet(url);}else{var head=this.document.getElementsByTagName("head")[0];var _914=this.document.createElement("link");with(_914){rel="stylesheet";type="text/css";href=url;}head.appendChild(_914);}},removeStyleSheet:function(uri){var url=uri.toString();if(url.charAt(0)=="."||(url.charAt(0)!="/"&&!uri.host)){url=(new tojo._Url(tojo.global.location,url)).toString();}var _917=tojo.indexOf(this.editingAreaStyleSheets,url);if(_917==-1){return;}delete this.editingAreaStyleSheets[_917];tojo.withGlobal(this.window,"query",tojo,["link:[href=\""+url+"\"]"]).orphan();},disabled:true,_mozSettingProps:["styleWithCSS","insertBrOnReturn"],_setDisabledAttr:function(_918){if(!this.editNode||"_delayedDisabled" in this){this._delayedDisabled=_918;return;}_918=Boolean(_918);if(tojo.isIE||tojo.isSafari||tojo.isOpera){var _919=tojo.isIE&&(this.isLoaded||!this.focusOnLoad);if(_919){this.editNode.unselectable="on";}this.editNode.contentEditable=!_918;if(_919){var _91a=this;setTimeout(function(){_91a.editNode.unselectable="off";},0);}}else{if(_918){this._mozSettings=[false,this.blockNodeForEnter==="BR"];}this.document.designMode=(_918?"off":"on");if(!_918&&this._mozSettingProps){var ps=this._mozSettingProps;for(var n in ps){if(ps.hasOwnProperty(n)){try{this.document.execCommand(n,false,ps[n]);}catch(e){}}}}}this.disabled=_918;},_isResized:function(){return false;},onLoad:function(e){if(!this.window.__registeredWindow){this.window.__registeredWindow=true;dijit.registerWin(this.window);}if(!tojo.isIE&&(this.height||tojo.isMoz)){this.editNode=this.document.body;}else{this.editNode=this.document.body.firstChild;var _91e=this;if(tojo.isIE){var _91f=this.tabStop=tojo.doc.createElement("<div tabIndex=-1>");this.editingArea.appendChild(_91f);this.iframe.onfocus=function(){_91e.editNode.setActive();};}}this.focusNode=this.editNode;try{this.attr("disabled",false);}catch(e){var _920=tojo.connect(this,"onClick",this,function(){this.attr("disabled",false);tojo.disconnect(_920);});}this._preDomFilterContent(this.editNode);var _921=this.events.concat(this.captureEvents);var ap=(this.iframe)?this.document:this.editNode;tojo.forEach(_921,function(item){this.connect(ap,item.toLowerCase(),item);},this);if(tojo.isIE){this.connect(this.document,"onmousedown","_onIEMouseDown");this.editNode.style.zoom=1;}if(this.focusOnLoad){tojo.addOnLoad(tojo.hitch(this,"focus"));}this.onDisplayChanged(e);if("_delayedDisabled" in this){var d=this._delayedDisabled;delete this._delayedDisabled;this.attr("disabled",d);}this.isLoaded=true;if(this.onLoadDeferred){this.onLoadDeferred.callback(true);}},onKeyDown:function(e){if(e.keyCode===tojo.keys.TAB&&this.isTabIndent){tojo.stopEvent(e);if(this.queryCommandEnabled((e.shiftKey?"outdent":"indent"))){this.execCommand((e.shiftKey?"outdent":"indent"));}}if(tojo.isIE){if(e.keyCode==tojo.keys.TAB&&!this.isTabIndent){if(e.shiftKey&&!e.ctrlKey&&!e.altKey){this.iframe.focus();}else{if(!e.shiftKey&&!e.ctrlKey&&!e.altKey){this.tabStop.focus();}}}else{if(e.keyCode===tojo.keys.BACKSPACE&&this.document.selection.type==="Control"){tojo.stopEvent(e);this.execCommand("delete");}else{if((65<=e.keyCode&&e.keyCode<=90)||(e.keyCode>=37&&e.keyCode<=40)){e.charCode=e.keyCode;this.onKeyPress(e);}}}}else{if(tojo.isMoz&&!this.isTabIndent){if(e.keyCode==tojo.keys.TAB&&!e.shiftKey&&!e.ctrlKey&&!e.altKey&&this.iframe){var _926=tojo.isFF<3?this.iframe.contentDocument:this.iframe;_926.title=this._localizedIframeTitles.iframeFocusTitle;this.iframe.focus();tojo.stopEvent(e);}else{if(e.keyCode==tojo.keys.TAB&&e.shiftKey){if(this.toolbar){this.toolbar.focus();}tojo.stopEvent(e);}}}}return true;},onKeyUp:function(e){return;},setDisabled:function(_928){tojo.deprecated("dijit.Editor::setDisabled is deprecated","use dijit.Editor::attr(\"disabled\",boolean) instead",2);this.attr("disabled",_928);},_setValueAttr:function(_929){this.setValue(_929);},onKeyPress:function(e){var c=(e.keyChar&&e.keyChar.toLowerCase())||e.keyCode;var _92c=this._keyHandlers[c];var args=arguments;if(_92c){tojo.forEach(_92c,function(h){if((!!h.shift==!!e.shiftKey)&&(!!h.ctrl==!!e.ctrlKey)){if(!h.handler.apply(this,args)){e.preventDefault();}}},this);}if(!this._onKeyHitch){this._onKeyHitch=tojo.hitch(this,"onKeyPressed");}setTimeout(this._onKeyHitch,1);return true;},addKeyHandler:function(key,ctrl,_931,_932){if(!tojo.isArray(this._keyHandlers[key])){this._keyHandlers[key]=[];}this._keyHandlers[key].push({shift:_931||false,ctrl:ctrl||false,handler:_932});},onKeyPressed:function(){this.onDisplayChanged();},onClick:function(e){this.onDisplayChanged(e);},_onIEMouseDown:function(e){if(!this._focused&&!this.disabled){this.focus();}},_onBlur:function(e){this.inherited(arguments);var _c=this.getValue(true);if(_c!=this.savedContent){this.onChange(_c);this.savedContent=_c;}if(tojo.isMoz&&this.iframe){var _937=tojo.isFF<3?this.iframe.contentDocument:this.iframe;_937.title=this._localizedIframeTitles.iframeEditTitle;}},_initialFocus:true,_onFocus:function(e){if(tojo.isMoz&&this._initialFocus){this._initialFocus=false;if(this.editNode.innerHTML.replace(/^\s+|\s+$/g,"")=="&nbsp;"){this.placeCursorAtStart();}}this.inherited(arguments);},blur:function(){if(!tojo.isIE&&this.window.document.documentElement&&this.window.document.documentElement.focus){this.window.document.documentElement.focus();}else{if(tojo.doc.body.focus){tojo.doc.body.focus();}}},focus:function(){if(!tojo.isIE){dijit.focus(this.iframe);}else{if(this.editNode&&this.editNode.focus){this.iframe.fireEvent("onfocus",document.createEventObject());}}},updateInterval:200,_updateTimer:null,onDisplayChanged:function(e){if(this._updateTimer){clearTimeout(this._updateTimer);}if(!this._updateHandler){this._updateHandler=tojo.hitch(this,"onNormalizedDisplayChanged");}this._updateTimer=setTimeout(this._updateHandler,this.updateInterval);},onNormalizedDisplayChanged:function(){delete this._updateTimer;},onChange:function(_93a){},_normalizeCommand:function(cmd){var _93c=cmd.toLowerCase();if(_93c=="formatblock"){if(tojo.isSafari){_93c="heading";}}else{if(_93c=="hilitecolor"&&!tojo.isMoz){_93c="backcolor";}}return _93c;},_qcaCache:{},queryCommandAvailable:function(_93d){var ca=this._qcaCache[_93d];if(ca!=undefined){return ca;}return this._qcaCache[_93d]=this._queryCommandAvailable(_93d);},_queryCommandAvailable:function(_93f){var ie=1;var _941=1<<1;var _942=1<<2;var _943=1<<3;var _944=1<<4;var _945=tojo.isSafari;function isSupportedBy(_946){return {ie:Boolean(_946&ie),mozilla:Boolean(_946&_941),safari:Boolean(_946&_942),safari420:Boolean(_946&_944),opera:Boolean(_946&_943)};};var _947=null;switch(_93f.toLowerCase()){case "bold":case "italic":case "underline":case "subscript":case "superscript":case "fontname":case "fontsize":case "forecolor":case "hilitecolor":case "justifycenter":case "justifyfull":case "justifyleft":case "justifyright":case "delete":case "selectall":case "toggledir":_947=isSupportedBy(_941|ie|_942|_943);break;case "createlink":case "unlink":case "removeformat":case "inserthorizontalrule":case "insertimage":case "insertorderedlist":case "insertunorderedlist":case "indent":case "outdent":case "formatblock":case "inserthtml":case "undo":case "redo":case "strikethrough":case "tabindent":_947=isSupportedBy(_941|ie|_943|_944);break;case "blockdirltr":case "blockdirrtl":case "dirltr":case "dirrtl":case "inlinedirltr":case "inlinedirrtl":_947=isSupportedBy(ie);break;case "cut":case "copy":case "paste":_947=isSupportedBy(ie|_941|_944);break;case "inserttable":_947=isSupportedBy(_941|ie);break;case "insertcell":case "insertcol":case "insertrow":case "deletecells":case "deletecols":case "deleterows":case "mergecells":case "splitcell":_947=isSupportedBy(ie|_941);break;default:return false;}return (tojo.isIE&&_947.ie)||(tojo.isMoz&&_947.mozilla)||(tojo.isSafari&&_947.safari)||(_945&&_947.safari420)||(tojo.isOpera&&_947.opera);},execCommand:function(_948,_949){var _94a;this.focus();_948=this._normalizeCommand(_948);if(_949!=undefined){if(_948=="heading"){throw new Error("unimplemented");}else{if((_948=="formatblock")&&tojo.isIE){_949="<"+_949+">";}}}if(_948=="inserthtml"){_949=this._preFilterContent(_949);_94a=true;if(tojo.isIE){var _94b=this.document.selection.createRange();if(this.document.selection.type.toUpperCase()=="CONTROL"){var n=_94b.item(0);while(_94b.length){_94b.remove(_94b.item(0));}n.outerHTML=_949;}else{_94b.pasteHTML(_949);}_94b.select();}else{if(tojo.isMoz&&!_949.length){this._sCall("remove");}else{_94a=this.document.execCommand(_948,false,_949);}}}else{if((_948=="unlink")&&(this.queryCommandEnabled("unlink"))&&(tojo.isMoz||tojo.isSafari)){var a=this._sCall("getAncestorElement",["a"]);this._sCall("selectElement",[a]);_94a=this.document.execCommand("unlink",false,null);}else{if((_948=="hilitecolor")&&(tojo.isMoz)){this.document.execCommand("styleWithCSS",false,true);_94a=this.document.execCommand(_948,false,_949);this.document.execCommand("styleWithCSS",false,false);}else{if((tojo.isIE)&&((_948=="backcolor")||(_948=="forecolor"))){_949=arguments.length>1?_949:null;_94a=this.document.execCommand(_948,false,_949);}else{_949=arguments.length>1?_949:null;if(_949||_948!="createlink"){_94a=this.document.execCommand(_948,false,_949);}}}}}this.onDisplayChanged();return _94a;},queryCommandEnabled:function(_94e){if(this.disabled){return false;}_94e=this._normalizeCommand(_94e);if(tojo.isMoz||tojo.isSafari){if(_94e=="unlink"){this._sCall("hasAncestorElement",["a"]);}else{if(_94e=="inserttable"){return true;}}}if(tojo.isSafari){if(_94e=="copy"){_94e="cut";}else{if(_94e=="paste"){return true;}}}if(_94e=="indent"){var li=this._sCall("getAncestorElement",["li"]);var n=li&&li.previousSibling;while(n){if(n.nodeType==1){return true;}n=n.previousSibling;}return false;}else{if(_94e=="outdent"){return this._sCall("hasAncestorElement",["li"]);}}var elem=tojo.isIE?this.document.selection.createRange():this.document;return elem.queryCommandEnabled(_94e);},queryCommandState:function(_952){if(this.disabled){return false;}_952=this._normalizeCommand(_952);return this.document.queryCommandState(_952);},queryCommandValue:function(_953){if(this.disabled){return false;}var r;_953=this._normalizeCommand(_953);if(tojo.isIE&&_953=="formatblock"){r=this._native2LocalFormatNames[this.document.queryCommandValue(_953)];}else{r=this.document.queryCommandValue(_953);}return r;},_sCall:function(name,args){return tojo.withGlobal(this.window,name,dijit._editor.selection,args);},placeCursorAtStart:function(){this.focus();var _957=false;if(tojo.isMoz){var _958=this.editNode.firstChild;while(_958){if(_958.nodeType==3){if(_958.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_957=true;this._sCall("selectElement",[_958]);break;}}else{if(_958.nodeType==1){_957=true;this._sCall("selectElementChildren",[_958]);break;}}_958=_958.nextSibling;}}else{_957=true;this._sCall("selectElementChildren",[this.editNode]);}if(_957){this._sCall("collapse",[true]);}},placeCursorAtEnd:function(){this.focus();var _959=false;if(tojo.isMoz){var last=this.editNode.lastChild;while(last){if(last.nodeType==3){if(last.nodeValue.replace(/^\s+|\s+$/g,"").length>0){_959=true;this._sCall("selectElement",[last]);break;}}else{if(last.nodeType==1){_959=true;if(last.lastChild){this._sCall("selectElement",[last.lastChild]);}else{this._sCall("selectElement",[last]);}break;}}last=last.previousSibling;}}else{_959=true;this._sCall("selectElementChildren",[this.editNode]);}if(_959){this._sCall("collapse",[false]);}},getValue:function(_95b){if(this.textarea){if(this.isClosed||!this.isLoaded){return this.textarea.value;}}return this._postFilterContent(null,_95b);},_getValueAttr:function(){return this.getValue();},setValue:function(html){if(!this.isLoaded){this.onLoadDeferred.addCallback(tojo.hitch(this,function(){this.setValue(html);}));return;}if(this.textarea&&(this.isClosed||!this.isLoaded)){this.textarea.value=html;}else{html=this._preFilterContent(html);var node=this.isClosed?this.domNode:this.editNode;node.innerHTML=html;this._preDomFilterContent(node);}this.onDisplayChanged();},replaceValue:function(html){if(this.isClosed){this.setValue(html);}else{if(this.window&&this.window.getSelection&&!tojo.isMoz){this.setValue(html);}else{if(this.window&&this.window.getSelection){html=this._preFilterContent(html);this.execCommand("selectall");if(tojo.isMoz&&!html){html="&nbsp;";}this.execCommand("inserthtml",html);this._preDomFilterContent(this.editNode);}else{if(this.document&&this.document.selection){this.setValue(html);}}}}},_preFilterContent:function(html){var ec=html;tojo.forEach(this.contentPreFilters,function(ef){if(ef){ec=ef(ec);}});return ec;},_preDomFilterContent:function(dom){dom=dom||this.editNode;tojo.forEach(this.contentDomPreFilters,function(ef){if(ef&&tojo.isFunction(ef)){ef(dom);}},this);},_postFilterContent:function(dom,_965){var ec;if(!tojo.isString(dom)){dom=dom||this.editNode;if(this.contentDomPostFilters.length){if(_965){dom=tojo.clone(dom);}tojo.forEach(this.contentDomPostFilters,function(ef){dom=ef(dom);});}ec=dijit._editor.getChildrenHtml(dom);}else{ec=dom;}if(!tojo.trim(ec.replace(/^\xA0\xA0*/,"").replace(/\xA0\xA0*$/,"")).length){ec="";}tojo.forEach(this.contentPostFilters,function(ef){ec=ef(ec);});return ec;},_saveContent:function(e){var _96a=tojo.byId(dijit._scopeName+"._editor.RichText.savedContent");_96a.value+=this._SEPARATOR+this.name+":"+this.getValue();},escapeXml:function(str,_96c){str=str.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");if(!_96c){str=str.replace(/'/gm,"&#39;");}return str;},getNodeHtml:function(node){tojo.deprecated("dijit.Editor::getNodeHtml is deprecated","use dijit._editor.getNodeHtml instead",2);return dijit._editor.getNodeHtml(node);},getNodeChildrenHtml:function(dom){tojo.deprecated("dijit.Editor::getNodeChildrenHtml is deprecated","use dijit._editor.getChildrenHtml instead",2);return dijit._editor.getChildrenHtml(dom);},close:function(save,_970){if(this.isClosed){return false;}if(!arguments.length){save=true;}this._content=this.getValue();var _971=(this.savedContent!=this._content);if(this.interval){clearInterval(this.interval);}if(this.textarea){with(this.textarea.style){position="";left=top="";if(tojo.isIE){overflow=this.__overflow;this.__overflow=null;}}this.textarea.value=save?this._content:this.savedContent;tojo._destroyElement(this.domNode);this.domNode=this.textarea;}else{this.domNode.innerHTML=save?this._content:this.savedContent;}tojo.removeClass(this.domNode,"RichTextEditable");this.isClosed=true;this.isLoaded=false;delete this.editNode;if(this.window&&this.window._frameElement){this.window._frameElement=null;}this.window=null;this.document=null;this.editingArea=null;this.editorObject=null;return _971;},destroyRendering:function(){},destroy:function(){this.destroyRendering();if(!this.isClosed){this.close(false);}this.inherited("destroy",arguments);},_removeMozBogus:function(html){return html.replace(/\stype="_moz"/gi,"").replace(/\s_moz_dirty=""/gi,"");},_removeSafariBogus:function(html){return html.replace(/\sclass="webkit-block-placeholder"/gi,"");},_fixContentForMoz:function(html){return html.replace(/<(\/)?strong([ \>])/gi,"<$1b$2").replace(/<(\/)?em([ \>])/gi,"<$1i$2");},_preFixUrlAttributes:function(html){return html.replace(/(?:(<a(?=\s).*?\shref=)("|')(.*?)\2)|(?:(<a\s.*?href=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2").replace(/(?:(<img(?=\s).*?\ssrc=)("|')(.*?)\2)|(?:(<img\s.*?src=)([^"'][^ >]+))/gi,"$1$4$2$3$5$2 _djrealurl=$2$3$5$2");}});}if(!tojo._hasResource["dijit.Toolbar"]){tojo._hasResource["dijit.Toolbar"]=true;tojo.provide("dijit.Toolbar");tojo.declare("dijit.Toolbar",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{templateString:"<div class=\"dijit dijitToolbar\" waiRole=\"toolbar\" tabIndex=\"${tabIndex}\" tojoAttachPoint=\"containerNode\">"+"</div>",tabIndex:"0",postCreate:function(){this.connectKeyNavHandlers(this.isLeftToRight()?[tojo.keys.LEFT_ARROW]:[tojo.keys.RIGHT_ARROW],this.isLeftToRight()?[tojo.keys.RIGHT_ARROW]:[tojo.keys.LEFT_ARROW]);},startup:function(){if(this._started){return;}this.startupKeyNavChildren();this.inherited(arguments);}});tojo.declare("dijit.ToolbarSeparator",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitToolbarSeparator dijitInline\"></div>",postCreate:function(){tojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!tojo._hasResource["dijit._editor._Plugin"]){tojo._hasResource["dijit._editor._Plugin"]=true;tojo.provide("dijit._editor._Plugin");tojo.declare("dijit._editor._Plugin",null,{constructor:function(args,node){if(args){tojo.mixin(this,args);}this._connects=[];},editor:null,iconClassPrefix:"dijitEditorIcon",button:null,queryCommand:null,command:"",commandArg:null,useDefaultCommand:true,buttonClass:dijit.form.Button,getLabel:function(key){return this.editor.commands[key];},_initButton:function(_979){if(this.command.length){var _97a=this.getLabel(this.command);var _97b=this.iconClassPrefix+" "+this.iconClassPrefix+this.command.charAt(0).toUpperCase()+this.command.substr(1);if(!this.button){_979=tojo.mixin({label:_97a,showLabel:false,iconClass:_97b,dropDown:this.dropDown,tabIndex:"-1"},_979||{});this.button=new this.buttonClass(_979);}}},destroy:function(f){tojo.forEach(this._connects,tojo.disconnect);},connect:function(o,f,tf){this._connects.push(tojo.connect(o,f,this,tf));},updateState:function(){var _e=this.editor;var _c=this.command;if(!_e){return;}if(!_e.isLoaded){return;}if(!_c.length){return;}if(this.button){try{var _982=_e.queryCommandEnabled(_c);if(this.enabled!==_982){this.enabled=_982;this.button.attr("disabled",!_982);}if(typeof this.button.checked=="boolean"){var _983=_e.queryCommandState(_c);if(this.checked!==_983){this.checked=_983;this.button.attr("checked",_e.queryCommandState(_c));}}}catch(e){console.debug(e);}}},setEditor:function(_984){this.editor=_984;this._initButton();if(this.command.length&&!this.editor.queryCommandAvailable(this.command)){if(this.button){this.button.domNode.style.display="none";}}if(this.button&&this.useDefaultCommand){this.connect(this.button,"onClick",tojo.hitch(this.editor,"execCommand",this.command,this.commandArg));}this.connect(this.editor,"onNormalizedDisplayChanged","updateState");},setToolbar:function(_985){if(this.button){_985.addChild(this.button);}}});}if(!tojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]){tojo._hasResource["dijit._editor.plugins.EnterKeyHandling"]=true;tojo.provide("dijit._editor.plugins.EnterKeyHandling");tojo.declare("dijit._editor.plugins.EnterKeyHandling",dijit._editor._Plugin,{blockNodeForEnter:"BR",constructor:function(args){if(args){tojo.mixin(this,args);}},setEditor:function(_987){this.editor=_987;if(this.blockNodeForEnter=="BR"){if(tojo.isIE){_987.contentDomPreFilters.push(tojo.hitch(this,"regularPsToSingleLinePs"));_987.contentDomPostFilters.push(tojo.hitch(this,"singleLinePsToRegularPs"));_987.onLoadDeferred.addCallback(tojo.hitch(this,"_fixNewLineBehaviorForIE"));}else{_987.onLoadDeferred.addCallback(tojo.hitch(this,function(d){try{this.editor.document.execCommand("insertBrOnReturn",false,true);}catch(e){}return d;}));}}else{if(this.blockNodeForEnter){tojo["require"]("dijit._editor.range");var h=tojo.hitch(this,this.handleEnterKey);_987.addKeyHandler(13,0,0,h);_987.addKeyHandler(13,0,1,h);this.connect(this.editor,"onKeyPressed","onKeyPressed");}}},connect:function(o,f,tf){if(!this._connects){this._connects=[];}this._connects.push(tojo.connect(o,f,this,tf));},destroy:function(){tojo.forEach(this._connects,tojo.disconnect);this._connects=[];},onKeyPressed:function(e){if(this._checkListLater){if(tojo.withGlobal(this.editor.window,"isCollapsed",dijit)){var _98e=tojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,["LI"]);if(!_98e){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);var _98f=tojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]);if(_98f){_98f.innerHTML=this.bogusHtmlContent;if(tojo.isIE){var r=this.editor.document.selection.createRange();r.move("character",-1);r.select();}}else{alert("onKeyPressed: Can not find the new block node");}}else{if(tojo.isMoz){if(_98e.parentNode.parentNode.nodeName=="LI"){_98e=_98e.parentNode.parentNode;}}var fc=_98e.firstChild;if(fc&&fc.nodeType==1&&(fc.nodeName=="UL"||fc.nodeName=="OL")){_98e.insertBefore(fc.ownerDocument.createTextNode("Â "),fc);var _992=dijit.range.create();_992.setStart(_98e.firstChild,0);var _993=dijit.range.getSelection(this.editor.window,true);_993.removeAllRanges();_993.addRange(_992);}}}this._checkListLater=false;}if(this._pressedEnterInBlock){if(this._pressedEnterInBlock.previousSibling){this.removeTrailingBr(this._pressedEnterInBlock.previousSibling);}delete this._pressedEnterInBlock;}},bogusHtmlContent:"&nbsp;",blockNodes:/^(?:P|H1|H2|H3|H4|H5|H6|LI)$/,handleEnterKey:function(e){if(!this.blockNodeForEnter){return true;}var _995,_996,_997,doc=this.editor.document,br;if(e.shiftKey||this.blockNodeForEnter=="BR"){var _99a=tojo.withGlobal(this.editor.window,"getParentElement",dijit._editor.selection);var _99b=dijit.range.getAncestor(_99a,this.blockNodes);if(_99b){if(!e.shiftKey&&_99b.tagName=="LI"){return true;}_995=dijit.range.getSelection(this.editor.window);_996=_995.getRangeAt(0);if(!_996.collapsed){_996.deleteContents();}if(dijit.range.atBeginningOfContainer(_99b,_996.startContainer,_996.startOffset)){if(e.shiftKey){br=doc.createElement("br");_997=dijit.range.create();_99b.insertBefore(br,_99b.firstChild);_997.setStartBefore(br.nextSibling);_995.removeAllRanges();_995.addRange(_997);}else{tojo.place(br,_99b,"before");}}else{if(dijit.range.atEndOfContainer(_99b,_996.startContainer,_996.startOffset)){_997=dijit.range.create();br=doc.createElement("br");if(e.shiftKey){_99b.appendChild(br);_99b.appendChild(doc.createTextNode("Â "));_997.setStart(_99b.lastChild,0);}else{tojo.place(br,_99b,"after");_997.setStartAfter(_99b);}_995.removeAllRanges();_995.addRange(_997);}else{return true;}}}else{dijit._editor.RichText.prototype.execCommand.call(this.editor,"inserthtml","<br>");}return false;}var _99c=true;_995=dijit.range.getSelection(this.editor.window);_996=_995.getRangeAt(0);if(!_996.collapsed){_996.deleteContents();}var _99d=dijit.range.getBlockAncestor(_996.endContainer,null,this.editor.editNode);var _99e=_99d.blockNode;if((this._checkListLater=(_99e&&(_99e.nodeName=="LI"||_99e.parentNode.nodeName=="LI")))){if(tojo.isMoz){this._pressedEnterInBlock=_99e;}if(/^(?:\s|&nbsp;)$/.test(_99e.innerHTML)){_99e.innerHTML="";}return true;}if(!_99d.blockNode||_99d.blockNode===this.editor.editNode){dijit._editor.RichText.prototype.execCommand.call(this.editor,"formatblock",this.blockNodeForEnter);_99d={blockNode:tojo.withGlobal(this.editor.window,"getAncestorElement",dijit._editor.selection,[this.blockNodeForEnter]),blockContainer:this.editor.editNode};if(_99d.blockNode){if(!(_99d.blockNode.textContent||_99d.blockNode.innerHTML).replace(/^\s+|\s+$/g,"").length){this.removeTrailingBr(_99d.blockNode);return false;}}else{_99d.blockNode=this.editor.editNode;}_995=dijit.range.getSelection(this.editor.window);_996=_995.getRangeAt(0);}var _99f=doc.createElement(this.blockNodeForEnter);_99f.innerHTML=this.bogusHtmlContent;this.removeTrailingBr(_99d.blockNode);if(dijit.range.atEndOfContainer(_99d.blockNode,_996.endContainer,_996.endOffset)){if(_99d.blockNode===_99d.blockContainer){_99d.blockNode.appendChild(_99f);}else{tojo.place(_99f,_99d.blockNode,"after");}_99c=false;_997=dijit.range.create();_997.setStart(_99f,0);_995.removeAllRanges();_995.addRange(_997);if(this.editor.height){_99f.scrollIntoView(false);}}else{if(dijit.range.atBeginningOfContainer(_99d.blockNode,_996.startContainer,_996.startOffset)){tojo.place(_99f,_99d.blockNode,_99d.blockNode===_99d.blockContainer?"first":"before");if(_99f.nextSibling&&this.editor.height){_99f.nextSibling.scrollIntoView(false);}_99c=false;}else{if(tojo.isMoz){this._pressedEnterInBlock=_99d.blockNode;}}}return _99c;},removeTrailingBr:function(_9a0){var para=/P|DIV|LI/i.test(_9a0.tagName)?_9a0:dijit._editor.selection.getParentOfType(_9a0,["P","DIV","LI"]);if(!para){return;}if(para.lastChild){if((para.childNodes.length>1&&para.lastChild.nodeType==3&&/^[\s\xAD]*$/.test(para.lastChild.nodeValue))||(para.lastChild&&para.lastChild.tagName=="BR")){tojo._destroyElement(para.lastChild);}}if(!para.childNodes.length){para.innerHTML=this.bogusHtmlContent;}},_fixNewLineBehaviorForIE:function(d){if(this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS===undefined){var _9a3="p{margin:0 !important;}";var _9a4=function(_9a5,doc,URI){if(!_9a5){return null;}if(!doc){doc=document;}var _9a8=doc.createElement("style");_9a8.setAttribute("type","text/css");var head=doc.getElementsByTagName("head")[0];if(!head){console.debug("No head tag in document, aborting styles");return null;}else{head.appendChild(_9a8);}if(_9a8.styleSheet){var _9aa=function(){try{_9a8.styleSheet.cssText=_9a5;}catch(e){console.debug(e);}};if(_9a8.styleSheet.disabled){setTimeout(_9aa,10);}else{_9aa();}}else{var _9ab=doc.createTextNode(_9a5);_9a8.appendChild(_9ab);}return _9a8;};_9a4(_9a3,this.editor.document);this.editor.document.__INSERTED_EDITIOR_NEWLINE_CSS=true;return d;}return null;},regularPsToSingleLinePs:function(_9ac,_9ad){function wrapLinesInPs(el){function wrapNodes(_9af){var newP=_9af[0].ownerDocument.createElement("p");_9af[0].parentNode.insertBefore(newP,_9af[0]);tojo.forEach(_9af,function(node){newP.appendChild(node);});};var _9b2=0;var _9b3=[];var _9b4;while(_9b2<el.childNodes.length){_9b4=el.childNodes[_9b2];if(_9b4.nodeType==3||(_9b4.nodeType==1&&_9b4.nodeName!="BR"&&tojo.style(_9b4,"display")!="block")){_9b3.push(_9b4);}else{var _9b5=_9b4.nextSibling;if(_9b3.length){wrapNodes(_9b3);_9b2=(_9b2+1)-_9b3.length;if(_9b4.nodeName=="BR"){tojo._destroyElement(_9b4);}}_9b3=[];}_9b2++;}if(_9b3.length){wrapNodes(_9b3);}};function splitP(el){var _9b7=null;var _9b8=[];var _9b9=el.childNodes.length-1;for(var i=_9b9;i>=0;i--){_9b7=el.childNodes[i];if(_9b7.nodeName=="BR"){var newP=_9b7.ownerDocument.createElement("p");tojo.place(newP,el,"after");if(_9b8.length==0&&i!=_9b9){newP.innerHTML="&nbsp;";}tojo.forEach(_9b8,function(node){newP.appendChild(node);});tojo._destroyElement(_9b7);_9b8=[];}else{_9b8.unshift(_9b7);}}};var _9bd=[];var ps=_9ac.getElementsByTagName("p");tojo.forEach(ps,function(p){_9bd.push(p);});tojo.forEach(_9bd,function(p){if((p.previousSibling)&&(p.previousSibling.nodeName=="P"||tojo.style(p.previousSibling,"display")!="block")){var newP=p.parentNode.insertBefore(this.document.createElement("p"),p);newP.innerHTML=_9ad?"":"&nbsp;";}splitP(p);},this.editor);wrapLinesInPs(_9ac);return _9ac;},singleLinePsToRegularPs:function(_9c2){function getParagraphParents(node){var ps=node.getElementsByTagName("p");var _9c5=[];for(var i=0;i<ps.length;i++){var p=ps[i];var _9c8=false;for(var k=0;k<_9c5.length;k++){if(_9c5[k]===p.parentNode){_9c8=true;break;}}if(!_9c8){_9c5.push(p.parentNode);}}return _9c5;};function isParagraphDelimiter(node){if(node.nodeType!=1||node.tagName!="P"){return tojo.style(node,"display")=="block";}else{if(!node.childNodes.length||node.innerHTML=="&nbsp;"){return true;}}return false;};var _9cb=getParagraphParents(_9c2);for(var i=0;i<_9cb.length;i++){var _9cd=_9cb[i];var _9ce=null;var node=_9cd.firstChild;var _9d0=null;while(node){if(node.nodeType!="1"||node.tagName!="P"){_9ce=null;}else{if(isParagraphDelimiter(node)){_9d0=node;_9ce=null;}else{if(_9ce==null){_9ce=node;}else{if((!_9ce.lastChild||_9ce.lastChild.nodeName!="BR")&&(node.firstChild)&&(node.firstChild.nodeName!="BR")){_9ce.appendChild(this.editor.document.createElement("br"));}while(node.firstChild){_9ce.appendChild(node.firstChild);}_9d0=node;}}}node=node.nextSibling;if(_9d0){tojo._destroyElement(_9d0);_9d0=null;}}}return _9c2;}});}if(!tojo._hasResource["dijit.Editor"]){tojo._hasResource["dijit.Editor"]=true;tojo.provide("dijit.Editor");tojo.declare("dijit.Editor",dijit._editor.RichText,{plugins:null,extraPlugins:null,constructor:function(){if(!tojo.isArray(this.plugins)){this.plugins=["undo","redo","|","cut","copy","paste","|","bold","italic","underline","strikethrough","|","insertOrderedList","insertUnorderedList","indent","outdent","|","justifyLeft","justifyRight","justifyCenter","justifyFull","dijit._editor.plugins.EnterKeyHandling"];}this._plugins=[];this._editInterval=this.editActionInterval*1000;if(tojo.isIE){this.events.push("onBeforeDeactivate");}},postCreate:function(){if(this.customUndo){tojo["require"]("dijit._editor.range");this._steps=this._steps.slice(0);this._undoedSteps=this._undoedSteps.slice(0);}if(tojo.isArray(this.extraPlugins)){this.plugins=this.plugins.concat(this.extraPlugins);}this.inherited(arguments);this.commands=tojo.i18n.getLocalization("dijit._editor","commands",this.lang);if(!this.toolbar){this.toolbar=new dijit.Toolbar({});tojo.place(this.toolbar.domNode,this.editingArea,"before");}tojo.forEach(this.plugins,this.addPlugin,this);this.onNormalizedDisplayChanged();this.toolbar.startup();},destroy:function(){tojo.forEach(this._plugins,function(p){if(p&&p.destroy){p.destroy();}});this._plugins=[];this.toolbar.destroy();delete this.toolbar;this.inherited(arguments);},addPlugin:function(_9d2,_9d3){var args=tojo.isString(_9d2)?{name:_9d2}:_9d2;if(!args.setEditor){var o={"args":args,"plugin":null,"editor":this};tojo.publish(dijit._scopeName+".Editor.getPlugin",[o]);if(!o.plugin){var pc=tojo.getObject(args.name);if(pc){o.plugin=new pc(args);}}if(!o.plugin){console.warn("Cannot find plugin",_9d2);return;}_9d2=o.plugin;}if(arguments.length>1){this._plugins[_9d3]=_9d2;}else{this._plugins.push(_9d2);}_9d2.setEditor(this);if(tojo.isFunction(_9d2.setToolbar)){_9d2.setToolbar(this.toolbar);}},startup:function(){},resize:function(){dijit.layout._LayoutWidget.prototype.resize.apply(this,arguments);},layout:function(){this.editingArea.style.height=(this._contentBox.h-tojo.marginBox(this.toolbar.domNode).h)+"px";if(this.iframe){this.iframe.style.height="100%";}this._layoutMode=true;},onBeforeDeactivate:function(e){if(this.customUndo){this.endEditing(true);}this._saveSelection();},customUndo:tojo.isIE,editActionInterval:3,beginEditing:function(cmd){if(!this._inEditing){this._inEditing=true;this._beginEditing(cmd);}if(this.editActionInterval>0){if(this._editTimer){clearTimeout(this._editTimer);}this._editTimer=setTimeout(tojo.hitch(this,this.endEditing),this._editInterval);}},_steps:[],_undoedSteps:[],execCommand:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return this[cmd]();}else{if(this.customUndo){this.endEditing();this._beginEditing();}try{var r=this.inherited("execCommand",arguments);if(tojo.isSafari&&cmd=="paste"&&!r){var su=tojo.string.substitute,_isM=navigator.userAgent.indexOf("Macintosh")!=-1;alert(su(this.commands.systemShortcut,[this.commands[cmd],su(this.commands[_isM?"appleKey":"ctrlKey"],["V"])]));}}catch(e){if(tojo.isMoz&&/copy|cut|paste/.test(cmd)){var sub=tojo.string.substitute,_9de={cut:"X",copy:"C",paste:"V"},_9df=navigator.userAgent.indexOf("Macintosh")!=-1;alert(sub(this.commands.systemShortcutFF,[this.commands[cmd],sub(this.commands[_9df?"appleKey":"ctrlKey"],[_9de[cmd]])]));}r=false;}if(this.customUndo){this._endEditing();}return r;}},queryCommandEnabled:function(cmd){if(this.customUndo&&(cmd=="undo"||cmd=="redo")){return cmd=="undo"?(this._steps.length>1):(this._undoedSteps.length>0);}else{return this.inherited("queryCommandEnabled",arguments);}},focus:function(){var _9e1=0;if(this._savedSelection&&tojo.isIE){_9e1=dijit._curFocus!=this.editNode;}this.inherited(arguments);if(_9e1){this._restoreSelection();}},_moveToBookmark:function(b){var _9e3=b;if(tojo.isIE){if(tojo.isArray(b)){_9e3=[];tojo.forEach(b,function(n){_9e3.push(dijit.range.getNode(n,this.editNode));},this);}}else{var r=dijit.range.create();r.setStart(dijit.range.getNode(b.startContainer,this.editNode),b.startOffset);r.setEnd(dijit.range.getNode(b.endContainer,this.editNode),b.endOffset);_9e3=r;}tojo.withGlobal(this.window,"moveToBookmark",dijit,[_9e3]);},_changeToStep:function(from,to){this.setValue(to.text);var b=to.bookmark;if(!b){return;}this._moveToBookmark(b);},undo:function(){this.endEditing(true);var s=this._steps.pop();if(this._steps.length>0){this.focus();this._changeToStep(s,this._steps[this._steps.length-1]);this._undoedSteps.push(s);this.onDisplayChanged();return true;}return false;},redo:function(){this.endEditing(true);var s=this._undoedSteps.pop();if(s&&this._steps.length>0){this.focus();this._changeToStep(this._steps[this._steps.length-1],s);this._steps.push(s);this.onDisplayChanged();return true;}return false;},endEditing:function(_9eb){if(this._editTimer){clearTimeout(this._editTimer);}if(this._inEditing){this._endEditing(_9eb);this._inEditing=false;}},_getBookmark:function(){var b=tojo.withGlobal(this.window,dijit.getBookmark);var tmp=[];if(tojo.isIE){if(tojo.isArray(b)){tojo.forEach(b,function(n){tmp.push(dijit.range.getIndex(n,this.editNode).o);},this);b=tmp;}}else{tmp=dijit.range.getIndex(b.startContainer,this.editNode).o;b={startContainer:tmp,startOffset:b.startOffset,endContainer:b.endContainer===b.startContainer?tmp:dijit.range.getIndex(b.endContainer,this.editNode).o,endOffset:b.endOffset};}return b;},_beginEditing:function(cmd){if(this._steps.length===0){this._steps.push({"text":this.savedContent,"bookmark":this._getBookmark()});}},_endEditing:function(_9f0){var v=this.getValue(true);this._undoedSteps=[];this._steps.push({text:v,bookmark:this._getBookmark()});},onKeyDown:function(e){if(!tojo.isIE&&!this.iframe&&e.keyCode==tojo.keys.TAB&&!this.tabIndent){this._saveSelection();}if(!this.customUndo){this.inherited("onKeyDown",arguments);return;}var k=e.keyCode,ks=tojo.keys;if(e.ctrlKey&&!e.altKey){if(k==90||k==122){tojo.stopEvent(e);this.undo();return;}else{if(k==89||k==121){tojo.stopEvent(e);this.redo();return;}}}this.inherited("onKeyDown",arguments);switch(k){case ks.ENTER:case ks.BACKSPACE:case ks.DELETE:this.beginEditing();break;case 88:case 86:if(e.ctrlKey&&!e.altKey&&!e.metaKey){this.endEditing();if(e.keyCode==88){this.beginEditing("cut");setTimeout(tojo.hitch(this,this.endEditing),1);}else{this.beginEditing("paste");setTimeout(tojo.hitch(this,this.endEditing),1);}break;}default:if(!e.ctrlKey&&!e.altKey&&!e.metaKey&&(e.keyCode<tojo.keys.F1||e.keyCode>tojo.keys.F15)){this.beginEditing();break;}case ks.ALT:this.endEditing();break;case ks.UP_ARROW:case ks.DOWN_ARROW:case ks.LEFT_ARROW:case ks.RIGHT_ARROW:case ks.HOME:case ks.END:case ks.PAGE_UP:case ks.PAGE_DOWN:this.endEditing(true);break;case ks.CTRL:case ks.SHIFT:case ks.TAB:break;}},_onBlur:function(){this.inherited("_onBlur",arguments);this.endEditing(true);},_saveSelection:function(){this._savedSelection=this._getBookmark();},_restoreSelection:function(){if(this._savedSelection){this._moveToBookmark(this._savedSelection);delete this._savedSelection;}},_onFocus:function(){this._restoreSelection();this.inherited(arguments);},onClick:function(){this.endEditing(true);this.inherited("onClick",arguments);}});tojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}var args=o.args,p;var _p=dijit._editor._Plugin;var name=args.name;switch(name){case "undo":case "redo":case "cut":case "copy":case "paste":case "insertOrderedList":case "insertUnorderedList":case "indent":case "outdent":case "justifyCenter":case "justifyFull":case "justifyLeft":case "justifyRight":case "delete":case "selectAll":case "removeFormat":case "unlink":case "insertHorizontalRule":p=new _p({command:name});break;case "bold":case "italic":case "underline":case "strikethrough":case "subscript":case "superscript":p=new _p({buttonClass:dijit.form.ToggleButton,command:name});break;case "|":p=new _p({button:new dijit.ToolbarSeparator()});}o.plugin=p;});}if(!tojo._hasResource["dijit._editor.plugins.AlwaysShowToolbar"]){tojo._hasResource["dijit._editor.plugins.AlwaysShowToolbar"]=true;tojo.provide("dijit._editor.plugins.AlwaysShowToolbar");tojo.declare("dijit._editor.plugins.AlwaysShowToolbar",dijit._editor._Plugin,{_handleScroll:true,setEditor:function(e){if(!e.iframe){console.log("Port AlwaysShowToolbar plugin to work with Editor without iframe");return;}this.editor=e;e.onLoadDeferred.addCallback(tojo.hitch(this,this.enable));},enable:function(d){this._updateHeight();this.connect(window,"onscroll","globalOnScrollHandler");this.connect(this.editor,"onNormalizedDisplayChanged","_updateHeight");return d;},_updateHeight:function(){var e=this.editor;if(!e.isLoaded){return;}if(e.height){return;}var _9fd=tojo.marginBox(e.editNode).h;if(tojo.isOpera){_9fd=e.editNode.scrollHeight;}if(!_9fd){_9fd=tojo.marginBox(e.document.body).h;}if(_9fd==0){console.debug("Can not figure out the height of the editing area!");return;}if(_9fd!=this._lastHeight){this._lastHeight=_9fd;tojo.marginBox(e.iframe,{h:this._lastHeight});}},_lastHeight:0,globalOnScrollHandler:function(){var _9fe=tojo.isIE<7;if(!this._handleScroll){return;}var tdn=this.editor.toolbar.domNode;var db=tojo.body;if(!this._scrollSetUp){this._scrollSetUp=true;this._scrollThreshold=tojo._abs(tdn,true).y;}var _a01=tojo._docScroll().y;var s=tdn.style;if(_a01>this._scrollThreshold&&_a01<this._scrollThreshold+this._lastHeight){if(!this._fixEnabled){var _a03=tojo.marginBox(tdn);this.editor.iframe.style.marginTop=_a03.h+"px";if(_9fe){s.left=tojo._abs(tdn).x;if(tdn.previousSibling){this._IEOriginalPos=["after",tdn.previousSibling];}else{if(tdn.nextSibling){this._IEOriginalPos=["before",tdn.nextSibling];}else{this._IEOriginalPos=["last",tdn.parentNode];}}tojo.body().appendChild(tdn);tojo.addClass(tdn,"dijitIEFixedToolbar");}else{s.position="fixed";s.top="0px";}tojo.marginBox(tdn,{w:_a03.w});s.zIndex=2000;this._fixEnabled=true;}var _a04=(this.height)?parseInt(this.editor.height):this.editor._lastHeight;s.display=(_a01>this._scrollThreshold+_a04)?"none":"";}else{if(this._fixEnabled){this.editor.iframe.style.marginTop="";s.position="";s.top="";s.zIndex="";s.display="";if(_9fe){s.left="";tojo.removeClass(tdn,"dijitIEFixedToolbar");if(this._IEOriginalPos){tojo.place(tdn,this._IEOriginalPos[1],this._IEOriginalPos[0]);this._IEOriginalPos=null;}else{tojo.place(tdn,this.editor.iframe,"before");}}s.width="";this._fixEnabled=false;}}},destroy:function(){this._IEOriginalPos=null;this._handleScroll=false;tojo.forEach(this._connects,tojo.disconnect);if(tojo.isIE<7){tojo.removeClass(this.editor.toolbar.domNode,"dijitIEFixedToolbar");}}});}if(!tojo._hasResource["dijit._editor.plugins.TextColor"]){tojo._hasResource["dijit._editor.plugins.TextColor"]=true;tojo.provide("dijit._editor.plugins.TextColor");tojo.declare("dijit._editor.plugins.TextColor",dijit._editor._Plugin,{buttonClass:dijit.form.DropDownButton,constructor:function(){this.dropDown=new dijit.ColorPalette();this.connect(this.dropDown,"onChange",function(_a05){this.editor.execCommand(this.command,_a05);});}});tojo.subscribe(dijit._scopeName+".Editor.getPlugin",null,function(o){if(o.plugin){return;}switch(o.args.name){case "foreColor":case "hiliteColor":o.plugin=new dijit._editor.plugins.TextColor({command:o.args.name});}});}if(!tojo._hasResource["tojox.data.dom"]){tojo._hasResource["tojox.data.dom"]=true;tojo.provide("tojox.data.dom");tojo.experimental("tojox.data.dom");tojox.data.dom.createDocument=function(str,_a08){var _a09=tojo.doc;if(!_a08){_a08="text/xml";}if(str&&tojo.trim(str)!==""&&(typeof tojo.global["DOMParser"])!=="undefined"){var _a0a=new DOMParser();return _a0a.parseFromString(str,_a08);}else{if((typeof tojo.global["ActiveXObject"])!=="undefined"){var _a0b=["MSXML2","Microsoft","MSXML","MSXML3"];for(var i=0;i<_a0b.length;i++){try{var doc=new ActiveXObject(_a0b[i]+".XMLDOM");if(str){if(doc){doc.async=false;doc.loadXML(str);return doc;}else{console.log("loadXML didn't work?");}}else{if(doc){return doc;}}}catch(e){}}}else{if((_a09.implementation)&&(_a09.implementation.createDocument)){if(str&&tojo.trim(str)!==""){if(_a09.createElement){var tmp=_a09.createElement("xml");tmp.innerHTML=str;var _a0f=_a09.implementation.createDocument("foo","",null);for(var i=0;i<tmp.childNodes.length;i++){_a0f.importNode(tmp.childNodes.item(i),true);}return _a0f;}}else{return _a09.implementation.createDocument("","",null);}}}}return null;};tojox.data.dom.textContent=function(node,text){if(arguments.length>1){var _a12=node.ownerDocument||tojo.doc;tojox.data.dom.replaceChildren(node,_a12.createTextNode(text));return text;}else{if(node.textContent!==undefined){return node.textContent;}var _a13="";if(node==null){return _a13;}for(var i=0;i<node.childNodes.length;i++){switch(node.childNodes[i].nodeType){case 1:case 5:_a13+=tojox.data.dom.textContent(node.childNodes[i]);break;case 3:case 2:case 4:_a13+=node.childNodes[i].nodeValue;break;default:break;}}return _a13;}};tojox.data.dom.replaceChildren=function(node,_a16){var _a17=[];if(tojo.isIE){for(var i=0;i<node.childNodes.length;i++){_a17.push(node.childNodes[i]);}}tojox.data.dom.removeChildren(node);for(var i=0;i<_a17.length;i++){tojo._destroyElement(_a17[i]);}if(!tojo.isArray(_a16)){node.appendChild(_a16);}else{for(var i=0;i<_a16.length;i++){node.appendChild(_a16[i]);}}};tojox.data.dom.removeChildren=function(node){var _a1a=node.childNodes.length;while(node.hasChildNodes()){node.removeChild(node.firstChild);}return _a1a;};tojox.data.dom.innerXML=function(node){if(node.innerXML){return node.innerXML;}else{if(node.xml){return node.xml;}else{if(typeof XMLSerializer!="undefined"){return (new XMLSerializer()).serializeToString(node);}}}};}if(!tojo._hasResource["tojox.xml.DomParser"]){tojo._hasResource["tojox.xml.DomParser"]=true;tojo.provide("tojox.xml.DomParser");tojox.xml.DomParser=new (function(){var _a1c={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9};var _a1d=/<([^>\/\s+]*)([^>]*)>([^<]*)/g;var _a1e=/([^=]*)=(("([^"]*)")|('([^']*)'))/g;var _a1f=/<!ENTITY\s+([^"]*)\s+"([^"]*)">/g;var _a20=/<!\[CDATA\[([\u0001-\uFFFF]*?)\]\]>/g;var _a21=/<!--([\u0001-\uFFFF]*?)-->/g;var trim=/^\s+|\s+$/g;var _a23=/\s+/g;var egt=/\&gt;/g;var elt=/\&lt;/g;var _a26=/\&quot;/g;var _a27=/\&apos;/g;var eamp=/\&amp;/g;var dNs="_def_";function _doc(){return new (function(){var all={};this.nodeType=_a1c.DOCUMENT;this.nodeName="#document";this.namespaces={};this._nsPaths={};this.childNodes=[];this.documentElement=null;this._add=function(obj){if(typeof (obj.id)!="undefined"){all[obj.id]=obj;}};this._remove=function(id){if(all[id]){delete all[id];}};this.byId=this.getElementById=function(id){return all[id];};this.byName=this.getElementsByTagName=byName;this.byNameNS=this.getElementsByTagNameNS=byNameNS;this.childrenByName=childrenByName;})();};function byName(name){function __(node,name,arr){tojo.forEach(node.childNodes,function(c){if(c.nodeType==_a1c.ELEMENT){if(name=="*"){arr.push(c);}else{if(c.nodeName==name){arr.push(c);}}__(c,name,arr);}});};var a=[];__(this,name,a);return a;};function byNameNS(name,ns){function __(node,name,ns,arr){tojo.forEach(node.childNodes,function(c){if(c.nodeType==_a1c.ELEMENT){if(name=="*"&&c.ownerDocument._nsPaths[ns]==c.namespace){arr.push(c);}else{if(c.localName==name&&c.ownerDocument._nsPaths[ns]==c.namespace){arr.push(c);}}__(c,name,ns,arr);}});};if(!ns){ns=dNs;}var a=[];__(this,name,ns,a);return a;};function childrenByName(name){var a=[];tojo.forEach(this.childNodes,function(c){if(c.nodeType==_a1c.ELEMENT){if(name=="*"){a.push(c);}else{if(c.nodeName==name){a.push(c);}}}});return a;};function _createTextNode(v){return {nodeType:_a1c.TEXT,nodeName:"#text",nodeValue:v.replace(_a23," ").replace(egt,">").replace(elt,"<").replace(_a27,"'").replace(_a26,"\"").replace(eamp,"&")};};function getAttr(name){for(var i=0;i<this.attributes.length;i++){if(this.attributes[i].nodeName==name){return this.attributes[i].nodeValue;}}return null;};function getAttrNS(name,ns){for(var i=0;i<this.attributes.length;i++){if(this.ownerDocument._nsPaths[ns]==this.attributes[i].namespace&&this.attributes[i].localName==name){return this.attributes[i].nodeValue;}}return null;};function setAttr(name,val){var old=null;for(var i=0;i<this.attributes.length;i++){if(this.attributes[i].nodeName==name){old=this.attributes[i].nodeValue;this.attributes[i].nodeValue=val;break;}}if(name=="id"){if(old!=null){this.ownerDocument._remove(old);}this.ownerDocument._add(this);}};function setAttrNS(name,val,ns){for(var i=0;i<this.attributes.length;i++){if(this.ownerDocument._nsPaths[ns]==this.attributes[i].namespace&&this.attributes[i].localName==name){this.attributes[i].nodeValue=val;return;}}};function prev(){var p=this.parentNode;if(p){for(var i=0;i<p.childNodes.length;i++){if(p.childNodes[i]==this&&i>0){return p.childNodes[i-1];}}}return null;};function next(){var p=this.parentNode;if(p){for(var i=0;i<p.childNodes.length;i++){if(p.childNodes[i]==this&&(i+1)<p.childNodes.length){return p.childNodes[i+1];}}}return null;};this.parse=function(str){var root=_doc();if(str==null){return root;}if(str.length==0){return root;}if(str.indexOf("<!ENTITY")>0){var _a53,eRe=[];if(_a1f.test(str)){_a1f.lastIndex=0;while((_a53=_a1f.exec(str))!=null){eRe.push({entity:"&"+_a53[1].replace(trim,"")+";",expression:_a53[2]});}for(var i=0;i<eRe.length;i++){str=str.replace(new RegExp(eRe[i].entity,"g"),eRe[i].expression);}}}var _a56=[],_a57;while((_a57=_a20.exec(str))!=null){_a56.push(_a57[1]);}for(var i=0;i<_a56.length;i++){str=str.replace(_a56[i],i);}var _a58=[],_a59;while((_a59=_a21.exec(str))!=null){_a58.push(_a59[1]);}for(i=0;i<_a58.length;i++){str=str.replace(_a58[i],i);}var res,obj=root;while((res=_a1d.exec(str))!=null){if(res[2].charAt(0)=="/"&&res[2].replace(trim,"").length>1){if(obj.parentNode){obj=obj.parentNode;}var text=(res[3]||"").replace(trim,"");if(text.length>0){obj.childNodes.push(_createTextNode(text));}}else{if(res[1].length>0){if(res[1].charAt(0)=="?"){var name=res[1].substr(1);var _a5e=res[2].substr(0,res[2].length-2);obj.childNodes.push({nodeType:_a1c.PROCESSING_INSTRUCTION,nodeName:name,nodeValue:_a5e});}else{if(res[1].charAt(0)=="!"){if(res[1].indexOf("![CDATA[")==0){var val=parseInt(res[1].replace("![CDATA[","").replace("]]",""));obj.childNodes.push({nodeType:_a1c.CDATA_SECTION,nodeName:"#cdata-section",nodeValue:_a56[val]});}else{if(res[1].substr(0,3)=="!--"){var val=parseInt(res[1].replace("!--","").replace("--",""));obj.childNodes.push({nodeType:_a1c.COMMENT,nodeName:"#comment",nodeValue:_a58[val]});}}}else{var name=res[1].replace(trim,"");var o={nodeType:_a1c.ELEMENT,nodeName:name,localName:name,namespace:dNs,ownerDocument:root,attributes:[],parentNode:null,childNodes:[]};if(name.indexOf(":")>-1){var t=name.split(":");o.namespace=t[0];o.localName=t[1];}o.byName=o.getElementsByTagName=byName;o.byNameNS=o.getElementsByTagNameNS=byNameNS;o.childrenByName=childrenByName;o.getAttribute=getAttr;o.getAttributeNS=getAttrNS;o.setAttribute=setAttr;o.setAttributeNS=setAttrNS;o.previous=o.previousSibling=prev;o.next=o.nextSibling=next;var attr;while((attr=_a1e.exec(res[2]))!=null){if(attr.length>0){var name=attr[1].replace(trim,"");var val=(attr[4]||attr[6]||"").replace(_a23," ").replace(egt,">").replace(elt,"<").replace(_a27,"'").replace(_a26,"\"").replace(eamp,"&");if(name.indexOf("xmlns")==0){if(name.indexOf(":")>0){var ns=name.split(":");root.namespaces[ns[1]]=val;root._nsPaths[val]=ns[1];}else{root.namespaces[dNs]=val;root._nsPaths[val]=dNs;}}else{var ln=name;var ns=dNs;if(name.indexOf(":")>0){var t=name.split(":");ln=t[1];ns=t[0];}o.attributes.push({nodeType:_a1c.ATTRIBUTE,nodeName:name,localName:ln,namespace:ns,nodeValue:val});if(ln=="id"){o.id=val;}}}}root._add(o);if(obj){obj.childNodes.push(o);o.parentNode=obj;if(res[2].charAt(res[2].length-1)!="/"){obj=o;}}var text=res[3];if(text.length>0){obj.childNodes.push(_createTextNode(text));}}}}}}for(var i=0;i<root.childNodes.length;i++){var e=root.childNodes[i];if(e.nodeType==_a1c.ELEMENT){root.documentElement=e;break;}}return root;};})();}tojo.provide("tojo.nls.tojoPackage_en");tojo.provide("tojo.cldr.nls.number");tojo.cldr.nls.number._built=true;tojo.provide("tojo.cldr.nls.number.en");tojo.cldr.nls.number.en={"group":",","percentSign":"%","exponential":"E","percentFormat":"#,##0%","scientificFormat":"#E0","list":";","infinity":"?","patternDigit":"#","minusSign":"-","decimal":".","nan":"NaN","nativeZeroDigit":"0","perMille":"‰","decimalFormat":"#,##0.###","currencyFormat":"¤#,##0.00;(¤#,##0.00)","plusSign":"+","currencySpacing-afterCurrency-currencyMatch":"[:letter:]","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","currencySpacing-afterCurrency-insertBetween":" ","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]","currencySpacing-beforeCurrency-insertBetween":" "};tojo.provide("dijit.nls.loading");dijit.nls.loading._built=true;tojo.provide("dijit.nls.loading.en");dijit.nls.loading.en={"loadingState":"Loading...","errorState":"Sorry, an error occurred"};tojo.provide("dijit.nls.common");dijit.nls.common._built=true;tojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};tojo.provide("dijit.nls.common");dijit.nls.common._built=true;tojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};tojo.provide("dijit.nls.common");dijit.nls.common._built=true;tojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};tojo.provide("dijit.nls.common");dijit.nls.common._built=true;tojo.provide("dijit.nls.common.en");dijit.nls.common.en={"buttonOk":"OK","buttonCancel":"Cancel","buttonSave":"Save","itemClose":"Close"};tojo.provide("tojo.nls.colors");tojo.nls.colors._built=true;tojo.provide("tojo.nls.colors.en");tojo.nls.colors.en={"lightsteelblue":"light steel blue","orangered":"orange red","midnightblue":"midnight blue","cadetblue":"cadet blue","seashell":"seashell","slategrey":"slate gray","coral":"coral","darkturquoise":"dark turquoise","antiquewhite":"antique white","mediumspringgreen":"medium spring green","salmon":"salmon","darkgrey":"dark gray","ivory":"ivory","greenyellow":"green-yellow","mistyrose":"misty rose","lightsalmon":"light salmon","silver":"silver","dimgrey":"dim gray","orange":"orange","white":"white","navajowhite":"navajo white","royalblue":"royal blue","deeppink":"deep pink","lime":"lime","oldlace":"old lace","chartreuse":"chartreuse","darkcyan":"dark cyan","yellow":"yellow","linen":"linen","olive":"olive","gold":"gold","lawngreen":"lawn green","lightyellow":"light yellow","tan":"tan","darkviolet":"dark violet","lightslategrey":"light slate gray","grey":"gray","darkkhaki":"dark khaki","green":"green","deepskyblue":"deep sky blue","aqua":"aqua","sienna":"sienna","mintcream":"mint cream","rosybrown":"rosy brown","mediumslateblue":"medium slate blue","magenta":"magenta","lightseagreen":"light sea green","cyan":"cyan","olivedrab":"olive drab","darkgoldenrod":"dark goldenrod","slateblue":"slate blue","mediumaquamarine":"medium aquamarine","lavender":"lavender","mediumseagreen":"medium sea green","maroon":"maroon","darkslategray":"dark slate gray","mediumturquoise":"medium turquoise","ghostwhite":"ghost white","darkblue":"dark blue","mediumvioletred":"medium violet-red","brown":"brown","lightgray":"light gray","sandybrown":"sandy brown","pink":"pink","firebrick":"fire brick","indigo":"indigo","snow":"snow","darkorchid":"dark orchid","turquoise":"turquoise","chocolate":"chocolate","springgreen":"spring green","moccasin":"moccasin","navy":"navy","lemonchiffon":"lemon chiffon","teal":"teal","floralwhite":"floral white","cornflowerblue":"cornflower blue","paleturquoise":"pale turquoise","purple":"purple","gainsboro":"gainsboro","plum":"plum","red":"red","blue":"blue","forestgreen":"forest green","darkgreen":"dark green","honeydew":"honeydew","darkseagreen":"dark sea green","lightcoral":"light coral","palevioletred":"pale violet-red","mediumpurple":"medium purple","saddlebrown":"saddle brown","darkmagenta":"dark magenta","thistle":"thistle","whitesmoke":"white smoke","wheat":"wheat","violet":"violet","lightskyblue":"light sky blue","goldenrod":"goldenrod","mediumblue":"medium blue","skyblue":"sky blue","crimson":"crimson","darksalmon":"dark salmon","darkred":"dark red","darkslategrey":"dark slate gray","peru":"peru","lightgrey":"light gray","lightgoldenrodyellow":"light goldenrod yellow","blanchedalmond":"blanched almond","aliceblue":"alice blue","bisque":"bisque","slategray":"slate gray","palegoldenrod":"pale goldenrod","darkorange":"dark orange","aquamarine":"aquamarine","lightgreen":"light green","burlywood":"burlywood","dodgerblue":"dodger blue","darkgray":"dark gray","lightcyan":"light cyan","powderblue":"powder blue","blueviolet":"blue-violet","orchid":"orchid","dimgray":"dim gray","beige":"beige","fuchsia":"fuchsia","lavenderblush":"lavender blush","hotpink":"hot pink","steelblue":"steel blue","tomato":"tomato","lightpink":"light pink","limegreen":"lime green","indianred":"indian red","papayawhip":"papaya whip","lightslategray":"light slate gray","gray":"gray","mediumorchid":"medium orchid","cornsilk":"cornsilk","black":"black","seagreen":"sea green","darkslateblue":"dark slate blue","khaki":"khaki","lightblue":"light blue","palegreen":"pale green","azure":"azure","peachpuff":"peach puff","darkolivegreen":"dark olive green","yellowgreen":"yellow green"};tojo.provide("dijit.form.nls.validate");dijit.form.nls.validate._built=true;tojo.provide("dijit.form.nls.validate.en");dijit.form.nls.validate.en={"rangeMessage":"This value is out of range.","invalidMessage":"The value entered is not valid.","missingMessage":"This value is required."};tojo.provide("dijit.form.nls.ComboBox");dijit.form.nls.ComboBox._built=true;tojo.provide("dijit.form.nls.ComboBox.en");dijit.form.nls.ComboBox.en={"previousMessage":"Previous choices","nextMessage":"More choices"};tojo.provide("dijit.form.nls.Textarea");dijit.form.nls.Textarea._built=true;tojo.provide("dijit.form.nls.Textarea.en");dijit.form.nls.Textarea.en={"iframeEditTitle":"edit area","iframeFocusTitle":"edit area frame"};tojo.provide("dijit._editor.nls.commands");dijit._editor.nls.commands._built=true;tojo.provide("dijit._editor.nls.commands.en");dijit._editor.nls.commands.en={"removeFormat":"Remove Format","copy":"Copy","paste":"Paste","selectAll":"Select All","insertOrderedList":"Numbered List","insertTable":"Insert/Edit Table","underline":"Underline","foreColor":"Foreground Color","htmlToggle":"HTML Source","formatBlock":"Paragraph Style","insertHorizontalRule":"Horizontal Rule","delete":"Delete","appleKey":"?${0}","insertUnorderedList":"Bullet List","tableProp":"Table Property","insertImage":"Insert Image","superscript":"Superscript","subscript":"Subscript","createLink":"Create Link","undo":"Undo","italic":"Italic","fontName":"Font Name","justifyLeft":"Align Left","unlink":"Remove Link","toggleTableBorder":"Toggle Table Border","ctrlKey":"ctrl+${0}","fontSize":"Font Size","systemShortcut":"The \"${0}\" action is only available in your browser using a keyboard shortcut. Use ${1}.","indent":"Indent","redo":"Redo","strikethrough":"Strikethrough","justifyFull":"Justify","justifyCenter":"Align Center","hiliteColor":"Background Color","deleteTable":"Delete Table","outdent":"Outdent","cut":"Cut","plainFormatBlock":"Paragraph Style","toggleDir":"Toggle Direction","bold":"Bold","tabIndent":"Tab Indent","systemShortcutFF":"The \"${0}\" action is only available in Mozilla Firefox using a keyboard shortcut. Use ${1}.","justifyRight":"Align Right"};


