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

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

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.getObject("date.stamp",true,dojo);dojo.date.stamp.fromISOString=function(_1,_2){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;if(_3){_3.shift();if(_3[1]){_3[1]--;}if(_3[6]){_3[6]*=1000;}if(_2){_2=new Date(_2);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){return _2["get"+_5]();}),function(_6,_7){_3[_7]=_3[_7]||_6;});}_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);if(_3[0]<100){_4.setFullYear(_3[0]||1970);}var _8=0,_9=_3[7]&&_3[7].charAt(0);if(_9!="Z"){_8=((_3[8]||0)*60)+(Number(_3[9])||0);if(_9!="-"){_8*=-1;}}if(_9){_8-=_4.getTimezoneOffset();}if(_8){_4.setTime(_4.getTime()+_8*60000);}}return _4;};dojo.date.stamp.toISOString=function(_a,_b){var _c=function(n){return (n<10)?"0"+n:n;};_b=_b||{};var _d=[],_e=_b.zulu?"getUTC":"get",_f="";if(_b.selector!="time"){var _10=_a[_e+"FullYear"]();_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");}_d.push(_f);if(_b.selector!="date"){var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");var _12=_a[_e+"Milliseconds"]();if(_b.milliseconds){_11+="."+(_12<100?"0":"")+_c(_12);}if(_b.zulu){_11+="Z";}else{if(_b.selector!="time"){var _13=_a.getTimezoneOffset();var _14=Math.abs(_13);_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);}}_d.push(_11);}return _d.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;function _15(_16){if(d.isString(_16)){return "string";}if(typeof _16=="number"){return "number";}if(typeof _16=="boolean"){return "boolean";}if(d.isFunction(_16)){return "function";}if(d.isArray(_16)){return "array";}if(_16 instanceof Date){return "date";}if(_16 instanceof d._Url){return "url";}return "object";};function _17(_18,_19){switch(_19){case "string":return _18;case "number":return _18.length?Number(_18):NaN;case "boolean":return typeof _18=="boolean"?_18:!(_18.toLowerCase()=="false");case "function":if(d.isFunction(_18)){_18=_18.toString();_18=d.trim(_18.substring(_18.indexOf("{")+1,_18.length-1));}try{if(_18===""||_18.search(/[^\w\.]+/i)!=-1){return new Function(_18);}else{return d.getObject(_18,false)||new Function(_18);}}catch(e){return new Function();}case "array":return _18?_18.split(/\s*,\s*/):[];case "date":switch(_18){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_18);}case "url":return d.baseUrl+_18;default:return d.fromJson(_18);}};var _1a={},_1b={};d.connect(d,"extend",function(){_1b={};});function _1c(cls,_1d){for(var _1e in cls){if(_1e.charAt(0)=="_"){continue;}if(_1e in _1a){continue;}_1d[_1e]=_15(cls[_1e]);}return _1d;};function _1f(_20,_21){var c=_1b[_20];if(!c){var cls=d.getObject(_20),_22=null;if(!cls){return null;}if(!_21){_22=_1c(cls.prototype,{});}c={cls:cls,params:_22};}else{if(!_21&&!c.params){c.params=_1c(c.cls.prototype,{});}}return c;};this._functionFromScript=function(_23,_24){var _25="";var _26="";var _27=(_23.getAttribute(_24+"args")||_23.getAttribute("args"));if(_27){d.forEach(_27.split(/\s*,\s*/),function(_28,idx){_25+="var "+_28+" = arguments["+idx+"]; ";});}var _29=_23.getAttribute("with");if(_29&&_29.length){d.forEach(_29.split(/\s*,\s*/),function(_2a){_25+="with("+_2a+"){";_26+="}";});}return new Function(_25+_23.innerHTML+_26);};this.instantiate=function(_2b,_2c,_2d){var _2e=[],_2c=_2c||{};_2d=_2d||{};var _2f=(_2d.scope||d._scopeName)+"Type",_30="data-"+(_2d.scope||d._scopeName)+"-";d.forEach(_2b,function(obj){if(!obj){return;}var _31,_32,_33,_34,_35,_36;if(obj.node){_31=obj.node;_32=obj.type;_36=obj.fastpath;_33=obj.clsInfo||(_32&&_1f(_32,_36));_34=_33&&_33.cls;_35=obj.scripts;}else{_31=obj;_32=_2f in _2c?_2c[_2f]:_31.getAttribute(_2f);_33=_32&&_1f(_32);_34=_33&&_33.cls;_35=(_34&&(_34._noScript||_34.prototype._noScript)?[]:d.query("> script[type^='dojo/']",_31));}if(!_33){throw new Error("Could not load class '"+_32);}var _37={};if(_2d.defaults){d._mixin(_37,_2d.defaults);}if(obj.inherited){d._mixin(_37,obj.inherited);}if(_36){var _38=_31.getAttribute(_30+"props");if(_38&&_38.length){try{_38=d.fromJson.call(_2d.propsThis,"{"+_38+"}");d._mixin(_37,_38);}catch(e){throw new Error(e.toString()+" in data-dojo-props='"+_38+"'");}}var _39=_31.getAttribute(_30+"attach-point");if(_39){_37.dojoAttachPoint=_39;}var _3a=_31.getAttribute(_30+"attach-event");if(_3a){_37.dojoAttachEvent=_3a;}dojo.mixin(_37,_2c);}else{var _3b=_31.attributes;for(var _3c in _33.params){var _3d=_3c in _2c?{value:_2c[_3c],specified:true}:_3b.getNamedItem(_3c);if(!_3d||(!_3d.specified&&(!dojo.isIE||_3c.toLowerCase()!="value"))){continue;}var _3e=_3d.value;switch(_3c){case "class":_3e="className" in _2c?_2c.className:_31.className;break;case "style":_3e="style" in _2c?_2c.style:(_31.style&&_31.style.cssText);}var _3f=_33.params[_3c];if(typeof _3e=="string"){_37[_3c]=_17(_3e,_3f);}else{_37[_3c]=_3e;}}}var _40=[],_41=[];d.forEach(_35,function(_42){_31.removeChild(_42);var _43=(_42.getAttribute(_30+"event")||_42.getAttribute("event")),_32=_42.getAttribute("type"),nf=d.parser._functionFromScript(_42,_30);if(_43){if(_32=="dojo/connect"){_40.push({event:_43,func:nf});}else{_37[_43]=nf;}}else{_41.push(nf);}});var _44=_34.markupFactory||_34.prototype&&_34.prototype.markupFactory;var _45=_44?_44(_37,_31,_34):new _34(_37,_31);_2e.push(_45);var _46=(_31.getAttribute(_30+"id")||_31.getAttribute("jsId"));if(_46){d.setObject(_46,_45);}d.forEach(_40,function(_47){d.connect(_45,_47.event,null,_47.func);});d.forEach(_41,function(_48){_48.call(_45);});});if(!_2c._started){d.forEach(_2e,function(_49){if(!_2d.noStart&&_49&&dojo.isFunction(_49.startup)&&!_49._started&&(!_49.getParent||!_49.getParent())){_49.startup();}});}return _2e;};this.parse=function(_4a,_4b){var _4c;if(!_4b&&_4a&&_4a.rootNode){_4b=_4a;_4c=_4b.rootNode;}else{_4c=_4a;}_4c=_4c?dojo.byId(_4c):dojo.body();_4b=_4b||{};var _4d=(_4b.scope||d._scopeName)+"Type",_4e="data-"+(_4b.scope||d._scopeName)+"-";function _4f(_50,_51){var _52=dojo.clone(_50.inherited);dojo.forEach(["dir","lang"],function(_53){var val=_50.node.getAttribute(_53);if(val){_52[_53]=val;}});var _54=_50.clsInfo&&!_50.clsInfo.cls.prototype._noScript?_50.scripts:null;var _55=(!_50.clsInfo||!_50.clsInfo.cls.prototype.stopParser)||(_4b&&_4b.template);for(var _56=_50.node.firstChild;_56;_56=_56.nextSibling){if(_56.nodeType==1){var _57,_58=_55&&_56.getAttribute(_4e+"type");if(_58){_57=_58;}else{_57=_55&&_56.getAttribute(_4d);}var _59=_58==_57;if(_57){var _5a={"type":_57,fastpath:_59,clsInfo:_1f(_57,_59),node:_56,scripts:[],inherited:_52};_51.push(_5a);_4f(_5a,_51);}else{if(_54&&_56.nodeName.toLowerCase()=="script"){_57=_56.getAttribute("type");if(_57&&/^dojo\/\w/i.test(_57)){_54.push(_56);}}else{if(_55){_4f({node:_56,inherited:_52},_51);}}}}}};var _5b={};if(_4b&&_4b.inherited){for(var key in _4b.inherited){if(_4b.inherited[key]){_5b[key]=_4b.inherited[key];}}}var _5c=[];_4f({node:_4c,inherited:_5b},_5c);var _5d=_4b&&_4b.template?{template:true}:null;return this.instantiate(_5c,_5d,_4b);};}();(function(){var _5e=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.getObject("dijit.wai.onload")===dojo._loaders[0]){dojo._loaders.splice(1,0,_5e);}else{dojo._loaders.unshift(_5e);}})();}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_5f){if(this._hash[_5f.id]){throw new Error("Tried to register widget with id=="+_5f.id+" but that id is already registered");}this._hash[_5f.id]=_5f;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_60,_61){_61=_61||dojo.global;var i=0,id;for(id in this._hash){_60.call(_61,this._hash[id],i++,this._hash);}return this;},filter:function(_62,_63){_63=_63||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_62.call(_63,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_64;for(id in this._hash){_64=this._hash[id];if(_64.declaredClass==cls){res.add(_64);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_65,_66){return dojo.map(this.toArray(),_65,_66);},every:function(_67,_68){_68=_68||dojo.global;var x=0,i;for(i in this._hash){if(!_67.call(_68,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_69,_6a){_6a=_6a||dojo.global;var x=0,i;for(i in this._hash){if(_69.call(_6a,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _6b=dijit.registry._hash,_6c=dojo.attr,_6d=dojo.hasAttr,_6e=dojo.style;dijit.byId=function(id){return typeof id=="string"?_6b[id]:id;};var _6f={};dijit.getUniqueId=function(_70){var id;do{id=_70+"_"+(_70 in _6f?++_6f[_70]:_6f[_70]=0);}while(_6b[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_71){var _72=[];function _73(_74){for(var _75=_74.firstChild;_75;_75=_75.nextSibling){if(_75.nodeType==1){var _76=_75.getAttribute("widgetId");if(_76){var _77=_6b[_76];if(_77){_72.push(_77);}}else{_73(_75);}}}};_73(_71);return _72;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_78){if(!_78._destroyed){if(_78.destroyRecursive){_78.destroyRecursive();}else{if(_78.destroy){_78.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_79){return _6b[_79.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_7a){while(_7a){var id=_7a.getAttribute&&_7a.getAttribute("widgetId");if(id){return _6b[id];}_7a=_7a.parentNode;}return null;};var _7b=(dijit._isElementShown=function(_7c){var s=_6e(_7c);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6c(_7c,"type")!="hidden");});dijit.hasDefaultTabStop=function(_7d){switch(_7d.nodeName.toLowerCase()){case "a":return _6d(_7d,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":var _7e;try{var _7f=_7d.contentDocument;if("designMode" in _7f&&_7f.designMode=="on"){return true;}_7e=_7f.body;}catch(e1){try{_7e=_7d.contentWindow.document.body;}catch(e2){return false;}}return _7e.contentEditable=="true"||(_7e.firstChild&&_7e.firstChild.contentEditable=="true");default:return _7d.contentEditable=="true";}};var _80=(dijit.isTabNavigable=function(_81){if(_6c(_81,"disabled")){return false;}else{if(_6d(_81,"tabIndex")){return _6c(_81,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_81);}}});dijit._getTabNavigable=function(_82){var _83,_84,_85,_86,_87,_88,_89={};function _8a(_8b){return _8b&&_8b.tagName.toLowerCase()=="input"&&_8b.type&&_8b.type.toLowerCase()=="radio"&&_8b.name&&_8b.name.toLowerCase();};var _8c=function(_8d){dojo.query("> *",_8d).forEach(function(_8e){if((dojo.isIE<=9&&_8e.scopeName!=="HTML")||!_7b(_8e)){return;}if(_80(_8e)){var _8f=_6c(_8e,"tabIndex");if(!_6d(_8e,"tabIndex")||_8f==0){if(!_83){_83=_8e;}_84=_8e;}else{if(_8f>0){if(!_85||_8f<_86){_86=_8f;_85=_8e;}if(!_87||_8f>=_88){_88=_8f;_87=_8e;}}}var rn=_8a(_8e);if(dojo.attr(_8e,"checked")&&rn){_89[rn]=_8e;}}if(_8e.nodeName.toUpperCase()!="SELECT"){_8c(_8e);}});};if(_7b(_82)){_8c(_82);}function rs(_90){return _89[_8a(_90)]||_90;};return {first:rs(_83),last:rs(_84),lowest:rs(_85),highest:rs(_87)};};dijit.getFirstInTabbingOrder=function(_91){var _92=dijit._getTabNavigable(dojo.byId(_91));return _92.lowest?_92.lowest:_92.first;};dijit.getLastInTabbingOrder=function(_93){var _94=dijit._getTabNavigable(dojo.byId(_93));return _94.last?_94.last:_94.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["dojo.Stateful"]){dojo._hasResource["dojo.Stateful"]=true;dojo.provide("dojo.Stateful");dojo.declare("dojo.Stateful",null,{postscript:function(_95){if(_95){dojo.mixin(this,_95);}},get:function(_96){return this[_96];},set:function(_97,_98){if(typeof _97==="object"){for(var x in _97){this.set(x,_97[x]);}return this;}var _99=this[_97];this[_97]=_98;if(this._watchCallbacks){this._watchCallbacks(_97,_99,_98);}return this;},watch:function(_9a,_9b){var _9c=this._watchCallbacks;if(!_9c){var _9d=this;_9c=this._watchCallbacks=function(_9e,_9f,_a0,_a1){var _a2=function(_a3){if(_a3){_a3=_a3.slice();for(var i=0,l=_a3.length;i<l;i++){try{_a3[i].call(_9d,_9e,_9f,_a0);}catch(e){console.error(e);}}}};_a2(_9c["_"+_9e]);if(!_a1){_a2(_9c["*"]);}};}if(!_9b&&typeof _9a==="function"){_9b=_9a;_9a="*";}else{_9a="_"+_9a;}var _a4=_9c[_9a];if(typeof _a4!=="object"){_a4=_9c[_9a]=[];}_a4.push(_9b);return {unwatch:function(){_a4.splice(dojo.indexOf(_a4,_9b),1);}};}});}if(!dojo._hasResource["dijit._WidgetBase"]){dojo._hasResource["dijit._WidgetBase"]=true;dojo.provide("dijit._WidgetBase");(function(){dojo.declare("dijit._WidgetBase",dojo.Stateful,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_a5,_a6){this.create(_a5,_a6);},create:function(_a7,_a8){this.srcNodeRef=dojo.byId(_a8);this._connects=[];this._subscribes=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_a7){this.params=_a7;dojo._mixin(this,_a7);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _a9=this.srcNodeRef;if(_a9&&_a9.parentNode&&this.domNode!==_a9){_a9.parentNode.replaceChild(this.domNode,_a9);}}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 _aa=function(_ab,_ac){if((_ac.params&&_ab in _ac.params)||_ac[_ab]){_ac.set(_ab,_ac[_ab]);}};for(var _ad in this.attributeMap){_aa(_ad,this);}dojo.forEach(this._getSetterAttributes(),function(a){if(!(a in this.attributeMap)){_aa(a,this);}},this);},_getSetterAttributes:function(){var _ae=this.constructor;if(!_ae._setterAttrs){var r=(_ae._setterAttrs=[]),_af,_b0=_ae.prototype;for(var _b1 in _b0){if(dojo.isFunction(_b0[_b1])&&(_af=_b1.match(/^_set([a-zA-Z]*)Attr$/))&&_af[1]){r.push(_af[1].charAt(0).toLowerCase()+_af[1].substr(1));}}}return _ae._setterAttrs;},postMixInProperties:function(){},buildRendering:function(){if(!this.domNode){this.domNode=this.srcNodeRef||dojo.create("div");}if(this.baseClass){var _b2=this.baseClass.split(" ");if(!this.isLeftToRight()){_b2=_b2.concat(dojo.map(_b2,function(_b3){return _b3+"Rtl";}));}dojo.addClass(this.domNode,_b2);}},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_b4){this._beingDestroyed=true;this.destroyDescendants(_b4);this.destroy(_b4);},destroy:function(_b5){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_b6){dfe(_b6,d.disconnect);});dfe(this._subscribes,function(_b7){dun(_b7);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_b5);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_b8){if(this.bgIframe){this.bgIframe.destroy(_b8);delete this.bgIframe;}if(this.domNode){if(_b8){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_b8){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_b9){dojo.forEach(this.getChildren(),function(_ba){if(_ba.destroyRecursive){_ba.destroyRecursive(_b9);}});},uninitialize:function(){return false;},_setClassAttr:function(_bb){var _bc=this[this.attributeMap["class"]||"domNode"];dojo.replaceClass(_bc,_bb,this["class"]);this._set("class",_bb);},_setStyleAttr:function(_bd){var _be=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_bd)){dojo.style(_be,_bd);}else{if(_be.style.cssText){_be.style.cssText+="; "+_bd;}else{_be.style.cssText=_bd;}}this._set("style",_bd);},_attrToDom:function(_bf,_c0){var _c1=this.attributeMap[_bf];dojo.forEach(dojo.isArray(_c1)?_c1:[_c1],function(_c2){var _c3=this[_c2.node||_c2||"domNode"];var _c4=_c2.type||"attribute";switch(_c4){case "attribute":if(dojo.isFunction(_c0)){_c0=dojo.hitch(this,_c0);}var _c5=_c2.attribute?_c2.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_bf)?_bf.toLowerCase():_bf);dojo.attr(_c3,_c5,_c0);break;case "innerText":_c3.innerHTML="";_c3.appendChild(dojo.doc.createTextNode(_c0));break;case "innerHTML":_c3.innerHTML=_c0;break;case "class":dojo.replaceClass(_c3,_c0,this[_bf]);break;}},this);},get:function(_c6){var _c7=this._getAttrNames(_c6);return this[_c7.g]?this[_c7.g]():this[_c6];},set:function(_c8,_c9){if(typeof _c8==="object"){for(var x in _c8){this.set(x,_c8[x]);}return this;}var _ca=this._getAttrNames(_c8);if(this[_ca.s]){var _cb=this[_ca.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(_c8 in this.attributeMap){this._attrToDom(_c8,_c9);}this._set(_c8,_c9);}return _cb||this;},_attrPairNames:{},_getAttrNames:function(_cc){var apn=this._attrPairNames;if(apn[_cc]){return apn[_cc];}var uc=_cc.charAt(0).toUpperCase()+_cc.substr(1);return (apn[_cc]={n:_cc+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});},_set:function(_cd,_ce){var _cf=this[_cd];this[_cd]=_ce;if(this._watchCallbacks&&this._created&&_ce!==_cf){this._watchCallbacks(_cd,_cf,_ce);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},connect:function(obj,_d0,_d1){var _d2=[dojo._connect(obj,_d0,this,_d1)];this._connects.push(_d2);return _d2;},disconnect:function(_d3){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_d3){dojo.forEach(_d3,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_d4,_d5){var _d6=dojo.subscribe(_d4,this,_d5);this._subscribes.push(_d6);return _d6;},unsubscribe:function(_d7){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_d7){dojo.unsubscribe(_d7);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},placeAt:function(_d8,_d9){if(_d8.declaredClass&&_d8.addChild){_d8.addChild(this,_d9);}else{dojo.place(this.domNode,_d8,_d9);}return this;},defer:function(fcn,_da){var _db=setTimeout(dojo.hitch(this,function(){_db=null;if(!this._destroyed){dojo.hitch(this,fcn)();}}),_da||0);return {remove:function(){if(_db){clearTimeout(_db);_db=null;}return null;}};}});})();}if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.getObject("window",true,dojo);dojo.window.getBox=function(){var _dc=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _dd=dojo._docScroll();return {w:_dc.clientWidth,h:_dc.clientHeight,l:_dd.x,t:_dd.y};};dojo.window.get=function(doc){if(dojo.isIE&&window!==document.parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc.parentWindow||doc.defaultView;};dojo.window.scrollIntoView=function(_de,pos){_de=dojo.byId(_de);var _df,doc=_de.ownerDocument||dojo.doc;if(!("rtl_adjust_position_for_verticalScrollBar" in dojo.window)){_df=dojo.body();var _e0=dojo.create("div",{style:{overflow:"scroll",overflowX:"visible",direction:"rtl",visibility:"hidden",position:"absolute",left:"0",top:"0",width:"64px",height:"64px"}},_df,"last"),div=dojo.create("div",{style:{overflow:"hidden",direction:"ltr"}},_e0,"last");dojo.window.rtl_adjust_position_for_verticalScrollBar=dojo.position(div).x!=0;_e0.removeChild(div);_df.removeChild(_e0);}if(!("position_fixed_support" in dojo.window)){_df=dojo.body();var _e1=dojo.create("span",{style:{visibility:"hidden",position:"fixed",left:"1px",top:"1px"}},_df,"last"),_e2=dojo.create("span",{style:{position:"fixed",left:"0",top:"0"}},_e1,"last");dojo.window.position_fixed_support=dojo.position(_e2).x!=dojo.position(_e1).x;_e1.removeChild(_e2);_df.removeChild(_e1);}try{_df=doc.body||doc.getElementsByTagName("body")[0];var _e3=doc.documentElement||_df.parentNode,_e4=dojo.isIE,_e5=dojo.isWebKit;if(_de==_df||_de==_e3){return;}if(!(dojo.isMozilla||_e4||_e5||dojo.isOpera)&&("scrollIntoView" in _de)){_de.scrollIntoView(false);return;}var _e6=doc.compatMode=="BackCompat",_e7=Math.min(_df.clientWidth||_e3.clientWidth,_e3.clientWidth||_df.clientWidth),_e8=Math.min(_df.clientHeight||_e3.clientHeight,_e3.clientHeight||_df.clientHeight),_e9=(_e5||_e6)?_df:_e3,_ea=pos||dojo.position(_de),el=_de.parentNode,_eb=function(el){return (_e4<=6||(_e4==7&&_e6))?false:(dojo.window.position_fixed_support&&(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_eb(_de)){return;}while(el){if(el==_df){el=_e9;}var _ec=dojo.position(el),_ed=_eb(el),rtl=dojo.getComputedStyle(el).direction.toLowerCase()=="rtl";if(el==_e9){_ec.w=_e7;_ec.h=_e8;if(_e9==_e3&&_e4&&rtl){_ec.x+=_e9.offsetWidth-_ec.w;}if(_ec.x<0||!_e4||_e4>=9){_ec.x=0;}if(_ec.y<0||!_e4||_e4>=9){_ec.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_ec.w-=pb.w;_ec.h-=pb.h;_ec.x+=pb.l;_ec.y+=pb.t;var _ee=el.clientWidth,_ef=_ec.w-_ee;if(_ee>0&&_ef>0){if(rtl&&dojo.window.rtl_adjust_position_for_verticalScrollBar){_ec.x+=_ef;}_ec.w=_ee;}_ee=el.clientHeight;_ef=_ec.h-_ee;if(_ee>0&&_ef>0){_ec.h=_ee;}}if(_ed){if(_ec.y<0){_ec.h+=_ec.y;_ec.y=0;}if(_ec.x<0){_ec.w+=_ec.x;_ec.x=0;}if(_ec.y+_ec.h>_e8){_ec.h=_e8-_ec.y;}if(_ec.x+_ec.w>_e7){_ec.w=_e7-_ec.x;}}var l=_ea.x-_ec.x,t=_ea.y-_ec.y,r=l+_ea.w-_ec.w,bot=t+_ea.h-_ec.h;var s,old;if(r*l>0&&(!!el.scrollLeft||el==_e9||el.scrollWidth>el.offsetHeight)){s=Math[l<0?"max":"min"](l,r);if(rtl&&((_e4==8&&!_e6)||_e4>=9)){s=-s;}old=el.scrollLeft;el.scrollLeft+=s;s=el.scrollLeft-old;_ea.x-=s;}if(bot*t>0&&(!!el.scrollTop||el==_e9||el.scrollHeight>el.offsetHeight)){s=Math.ceil(Math[t<0?"max":"min"](t,bot));old=el.scrollTop;el.scrollTop+=s;s=el.scrollTop-old;_ea.y-=s;}el=(el!=_e9)&&!_ed&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_de.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_f0){var _f1=dojo.doc,_f2=_f0.mark;if(_f2){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_f2.pRange){var r=_f2;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_f2);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_f1.selection&&_f2){var rg;if(_f2.pRange){rg=_f2.range;}else{if(dojo.isArray(_f2)){rg=_f1.body.createControlRange();dojo.forEach(_f2,function(n){rg.addElement(n);});}else{rg=_f1.body.createTextRange();rg.moveToBookmark(_f2);}}rg.select();}}}},getFocus:function(_f3,_f4){var _f5=!dijit._curFocus||(_f3&&dojo.isDescendant(dijit._curFocus,_f3.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_f5,bookmark:(_f5==dijit._curFocus)&&dojo.withGlobal(_f4||dojo.global,dijit.getBookmark),openedForWindow:_f4};},focus:function(_f6){if(!_f6){return;}var _f7="node" in _f6?_f6.node:_f6,_f8=_f6.bookmark,_f9=_f6.openedForWindow,_fa=_f8?_f8.isCollapsed:false;if(_f7){var _fb=(_f7.tagName.toLowerCase()=="iframe")?_f7.contentWindow:_f7;if(_fb&&_fb.focus){try{_fb.focus();}catch(e){}}dijit._onFocusNode(_f7);}if(_f8&&dojo.withGlobal(_f9||dojo.global,dijit.isCollapsed)&&!_fa){if(_f9){_f9.focus();}try{dojo.withGlobal(_f9||dojo.global,dijit.moveToBookmark,null,[_f8]);}catch(e2){}}},_activeStack:[],registerIframe:function(_fc){return dijit.registerWin(_fc.contentWindow,_fc);},unregisterIframe:function(_fd){dijit.unregisterWin(_fd);},registerWin:function(_fe,_ff){var _100=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_ff||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_fe.document.documentElement:_fe.document;if(doc){if(dojo.isIE){_fe.document.body.attachEvent("onmousedown",_100);var _101=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_ff||evt.srcElement);}else{dijit._onTouchNode(_ff||evt.srcElement);}};doc.attachEvent("onactivate",_101);var _102=function(evt){dijit._onBlurNode(_ff||evt.srcElement);};doc.attachEvent("ondeactivate",_102);return function(){_fe.document.detachEvent("onmousedown",_100);doc.detachEvent("onactivate",_101);doc.detachEvent("ondeactivate",_102);doc=null;};}else{doc.body.addEventListener("mousedown",_100,true);var _103=function(evt){dijit._onFocusNode(_ff||evt.target);};doc.addEventListener("focus",_103,true);var _104=function(evt){dijit._onBlurNode(_ff||evt.target);};doc.addEventListener("blur",_104,true);return function(){doc.body.removeEventListener("mousedown",_100,true);doc.removeEventListener("focus",_103,true);doc.removeEventListener("blur",_104,true);doc=null;};}}},unregisterWin:function(_105){_105&&_105();},_onBlurNode:function(node){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(node,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _106=[];try{while(node){var _107=dojo.attr(node,"dijitPopupParent");if(_107){node=dijit.byId(_107).domNode;}else{if(node.tagName&&node.tagName.toLowerCase()=="body"){if(node===dojo.body()){break;}node=dojo.window.get(node.ownerDocument).frameElement;}else{var id=node.getAttribute&&node.getAttribute("widgetId"),_108=id&&dijit.byId(id);if(_108&&!(by=="mouse"&&_108.get("disabled"))){_106.unshift(id);}node=node.parentNode;}}}}catch(e){}dijit._setStack(_106,by);},_onFocusNode:function(node){if(!node){return;}if(node.nodeType==9){return;}dijit._onTouchNode(node);if(node==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=node;dojo.publish("focusNode",[node]);},_setStack:function(_109,by){var _10a=dijit._activeStack;dijit._activeStack=_109;for(var _10b=0;_10b<Math.min(_10a.length,_109.length);_10b++){if(_10a[_10b]!=_109[_10b]){break;}}var _10c;for(var i=_10a.length-1;i>=_10b;i--){_10c=dijit.byId(_10a[i]);if(_10c){_10c._focused=false;_10c.set("focused",false);_10c._hasBeenBlurred=true;if(_10c._onBlur){_10c._onBlur(by);}dojo.publish("widgetBlur",[_10c,by]);}}for(i=_10b;i<_109.length;i++){_10c=dijit.byId(_109[i]);if(_10c){_10c._focused=true;_10c.set("focused",true);if(_10c._onFocus){_10c._onFocus(by);}dojo.publish("widgetFocus",[_10c,by]);}}}});dojo.addOnLoad(function(){var _10d=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_10d);_10d=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_10e){this.pairs=[];this.returnWrappers=_10e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(name,_10f,wrap,_110,_111){this.pairs[((_111)?"unshift":"push")]([name,_10f,wrap,_110]);},match:function(){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[1].apply(this,arguments)){if((pair[3])||(this.returnWrappers)){return pair[2];}else{return pair[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(name){for(var i=0;i<this.pairs.length;i++){var pair=this.pairs[i];if(pair[0]==name){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){return dojo.window.getBox();};dijit.placeOnScreen=function(node,pos,_112,_113){var _114=dojo.map(_112,function(_115){var c={corner:_115,pos:{x:pos.x,y:pos.y}};if(_113){c.pos.x+=_115.charAt(1)=="L"?_113.x:-_113.x;c.pos.y+=_115.charAt(0)=="T"?_113.y:-_113.y;}return c;});return dijit._place(node,_114);};dijit._place=function(node,_116,_117,_118){var view=dojo.window.getBox();if(!node.parentNode||String(node.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(node);}var best=null;dojo.some(_116,function(_119){var _11a=_119.corner;var pos=_119.pos;var _11b=0;var _11c={w:_11a.charAt(1)=="L"?(view.l+view.w)-pos.x:pos.x-view.l,h:_11a.charAt(1)=="T"?(view.t+view.h)-pos.y:pos.y-view.t};if(_117){var res=_117(node,_119.aroundCorner,_11a,_11c,_118);_11b=typeof res=="undefined"?0:res;}var _11d=node.style;var _11e=_11d.display;var _11f=_11d.visibility;_11d.visibility="hidden";_11d.display="";var mb=dojo.marginBox(node);_11d.display=_11e;_11d.visibility=_11f;var _120=Math.max(view.l,_11a.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_121=Math.max(view.t,_11a.charAt(0)=="T"?pos.y:(pos.y-mb.h)),endX=Math.min(view.l+view.w,_11a.charAt(1)=="L"?(_120+mb.w):pos.x),endY=Math.min(view.t+view.h,_11a.charAt(0)=="T"?(_121+mb.h):pos.y),_122=endX-_120,_123=endY-_121;_11b+=(mb.w-_122)+(mb.h-_123);if(best==null||_11b<best.overflow){best={corner:_11a,aroundCorner:_119.aroundCorner,x:_120,y:_121,w:_122,h:_123,overflow:_11b,spaceAvailable:_11c};}return !_11b;});if(best.overflow&&_117){_117(node,best.aroundCorner,best.corner,best.spaceAvailable,_118);}var l=dojo._isBodyLtr(),s=node.style;s.top=best.y+"px";s[l?"left":"right"]=(l?best.x:view.w-best.x-best.w)+"px";s[l?"right":"left"]="auto";return best;};dijit.placeOnScreenAroundNode=function(node,_124,_125,_126){_124=dojo.byId(_124);var _127=dojo.position(_124,true);return dijit._placeOnScreenAroundRect(node,_127.x,_127.y,_127.w,_127.h,_125,_126);};dijit.placeOnScreenAroundRectangle=function(node,_128,_129,_12a){return dijit._placeOnScreenAroundRect(node,_128.x,_128.y,_128.width,_128.height,_129,_12a);};dijit._placeOnScreenAroundRect=function(node,x,y,_12b,_12c,_12d,_12e){var _12f=[];for(var _130 in _12d){_12f.push({aroundCorner:_130,corner:_12d[_130],pos:{x:x+(_130.charAt(1)=="L"?0:_12b),y:y+(_130.charAt(0)=="T"?0:_12c)}});}return dijit._place(node,_12f,_12e,{w:_12b,h:_12c});};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(node,_131,_132,_133){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_134,_135){var _136={};dojo.forEach(_134,function(pos){switch(pos){case "after":_136[_135?"BR":"BL"]=_135?"BL":"BR";break;case "before":_136[_135?"BL":"BR"]=_135?"BR":"BL";break;case "below-alt":_135=!_135;case "below":_136[_135?"BL":"BR"]=_135?"TL":"TR";_136[_135?"BR":"BL"]=_135?"TR":"TL";break;case "above-alt":_135=!_135;case "above":default:_136[_135?"TL":"TR"]=_135?"BL":"BR";_136[_135?"TR":"TL"]=_135?"BR":"BL";break;}});return _136;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,_createWrapper:function(_137){var node=_137.domNode||_137,_138=_137.declaredClass?_137._popupWrapper:node.parentNode&&dojo.hasClass(node.parentNode,"dijitPopup")?node.parentNode:null;if(!_138){_138=dojo.create("div",{"class":"dijitPopup",style:{display:"none"},role:"presentation"},dojo.body());_138.appendChild(node);var s=node.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_137.declaredClass){_137._popupWrapper=_138;dojo.connect(_137,"destroy",function(){dojo.destroy(_138);delete _137._popupWrapper;});}}return _138;},moveOffScreen:function(_139){var _13a=this._createWrapper(_139);dojo.style(_13a,{visibility:"hidden",top:"-9999px",display:""});},hide:function(_13b){var _13c=this._createWrapper(_13b);dojo.style(_13c,"display","none");},getTopPopup:function(){var _13d=this._stack;for(var pi=_13d.length-1;pi>0&&_13d[pi].parent===_13d[pi-1].widget;pi--){}return _13d[pi];},open:function(args){var _13e=this._stack,_13f=args.popup,_140=args.orient||((args.parent?args.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_141=args.around,id=(args.around&&args.around.id)?(args.around.id+"_dropdown"):("popup_"+this._idGen++);while(_13e.length&&(!args.parent||!dojo.isDescendant(args.parent.domNode,_13e[_13e.length-1].widget.domNode))){dijit.popup.close(_13e[_13e.length-1].widget);}var _142=this._createWrapper(_13f);dojo.attr(_142,{id:id,style:{zIndex:this._beginZIndex+_13e.length},"class":"dijitPopup "+(_13f.baseClass||_13f["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:args.parent?args.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_13f.bgIframe){_13f.bgIframe=new dijit.BackgroundIframe(_142);}}var best=_141?dijit.placeOnScreenAroundElement(_142,_141,_140,_13f.orient?dojo.hitch(_13f,"orient"):null):dijit.placeOnScreen(_142,args,_140=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],args.padding);_142.style.display="";_142.style.visibility="visible";_13f.domNode.style.visibility="visible";var _143=[];_143.push(dojo.connect(_142,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&args.onCancel){dojo.stopEvent(evt);args.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _144=this.getTopPopup();if(_144&&_144.onCancel){_144.onCancel();}}}}));if(_13f.onCancel){_143.push(dojo.connect(_13f,"onCancel",args.onCancel));}_143.push(dojo.connect(_13f,_13f.onExecute?"onExecute":"onChange",this,function(){var _145=this.getTopPopup();if(_145&&_145.onExecute){_145.onExecute();}}));_13e.push({widget:_13f,parent:args.parent,onExecute:args.onExecute,onCancel:args.onCancel,onClose:args.onClose,handlers:_143});if(_13f.onOpen){_13f.onOpen(best);}return best;},close:function(_146){var _147=this._stack;while((_146&&dojo.some(_147,function(elem){return elem.widget==_146;}))||(!_146&&_147.length)){var top=_147.pop(),_148=top.widget,_149=top.onClose;if(_148.onClose){_148.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_148&&_148.domNode){this.hide(_148);}if(_149){_149();}}}};dijit._frames=new function(){var _14a=[];this.pop=function(){var _14b;if(_14a.length){_14b=_14a.pop();_14b.style.display="";}else{if(dojo.isIE<9){var burl=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var html="<iframe src='"+burl+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_14b=dojo.doc.createElement(html);}else{_14b=dojo.create("iframe");_14b.src="javascript:\"\"";_14b.className="dijitBackgroundIframe";dojo.style(_14b,"opacity",0.1);}_14b.tabIndex=-1;dijit.setWaiRole(_14b,"presentation");}return _14b;};this.push=function(_14c){_14c.style.display="none";_14a.push(_14c);};}();dijit.BackgroundIframe=function(node){if(!node.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _14d=(this.iframe=dijit._frames.pop());node.appendChild(_14d);if(dojo.isIE<7||dojo.isQuirks){this.resize(node);this._conn=dojo.connect(node,"onresize",this,function(){this.resize(node);});}else{dojo.style(_14d,{width:"100%",height:"100%"});}}};dojo.extend(dijit.BackgroundIframe,{resize:function(node){if(this.iframe){dojo.style(this.iframe,{width:node.offsetWidth+"px",height:node.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(node,pos){dojo.window.scrollIntoView(node,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,html=d.doc.documentElement,ie=d.isIE,_14e=d.isOpera,maj=Math.floor,ff=d.isFF,_14f=d.boxModel.replace(/-/,""),_150={dj_quirks:d.isQuirks,dj_opera:_14e,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla};if(ie){_150["dj_ie"]=true;_150["dj_ie"+maj(ie)]=true;_150["dj_iequirks"]=d.isQuirks;}if(ff){_150["dj_ff"+maj(ff)]=true;}_150["dj_"+_14f]=true;var _151="";for(var clz in _150){if(_150[clz]){_151+=clz+" ";}}html.className=d.trim(html.className+" "+_151);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _152="dj_rtl dijitRtl "+_151.replace(/ /g,"-rtl ");html.className=d.trim(html.className+" "+_152);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_153,node,_154,obj,_155,_156,_157){if(obj!=this._obj){this.stop();this._initialDelay=_156||500;this._subsequentDelay=_155||0.9;this._minDelay=_157||10;this._obj=obj;this._evt=evt;this._node=node;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_153,_154);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(node,_158,_159,_15a,_15b,_15c,_15d){if(_158.keyCode){_158.charOrCode=_158.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_158.charCode){_158.charOrCode=String.fromCharCode(_158.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(node,"onkeypress",this,function(evt){if(evt.charOrCode==_158.charOrCode&&(_158.ctrlKey===undefined||_158.ctrlKey==evt.ctrlKey)&&(_158.altKey===undefined||_158.altKey==evt.altKey)&&(_158.metaKey===undefined||_158.metaKey==(evt.metaKey||false))&&(_158.shiftKey===undefined||_158.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_159,node,_15a,_158,_15b,_15c,_15d);}else{if(dijit.typematic._obj==_158){dijit.typematic.stop();}}}),dojo.connect(node,"onkeyup",this,function(evt){if(dijit.typematic._obj==_158){dijit.typematic.stop();}})];},addMouseListener:function(node,_15e,_15f,_160,_161,_162){var dc=dojo.connect;return [dc(node,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_15e,node,_15f,node,_160,_161,_162);}),dc(node,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(node,"mousemove",this,function(evt){evt.preventDefault();}),dc(node,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE<9){dijit.typematic.trigger(evt,_15e,node,_15f,node,_160,_161,_162);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_163,_164,_165,_166,_167,_168,_169,_16a){return this.addKeyListener(_164,_165,_166,_167,_168,_169,_16a).concat(this.addMouseListener(_163,_166,_167,_168,_169,_16a));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());var cs=dojo.getComputedStyle(div);if(cs){var _16b=cs.backgroundImage;var _16c=(cs.borderTopColor==cs.borderRightColor)||(_16b!=null&&(_16b=="none"||_16b=="url(invalid-url:)"));dojo[_16c?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(elem,role){var _16d=this.getWaiRole(elem);return role?(_16d.indexOf(role)>-1):(_16d.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace("wairole:",""));},setWaiRole:function(elem,role){dojo.attr(elem,"role",role);},removeWaiRole:function(elem,role){var _16e=dojo.attr(elem,"role");if(!_16e){return;}if(role){var t=dojo.trim((" "+_16e+" ").replace(" "+role+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_16f){return elem.hasAttribute?elem.hasAttribute("aria-"+_16f):!!elem.getAttribute("aria-"+_16f);},getWaiState:function(elem,_170){return elem.getAttribute("aria-"+_170)||"";},setWaiState:function(elem,_171,_172){elem.setAttribute("aria-"+_171,_172);},removeWaiState:function(elem,_173){elem.removeAttribute("aria-"+_173);}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.connect(dojo,"_connect",function(_174,_175){if(_174&&dojo.isFunction(_174._onConnect)){_174._onConnect(_175);}});dijit._connectOnUseEventHandler=function(_176){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _177=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_177);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_177);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){dojo.declare("dijit._Widget",dijit._WidgetBase,{_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,create:function(_178,_179){this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}this.inherited(arguments);if(this.domNode){for(attr in this.params){this._onConnect(attr);}}},_onConnect:function(_17a){if(_17a in this._deferredConnects){var _17b=this[this._deferredConnects[_17a]||"domNode"];this.connect(_17b,_17a.toLowerCase(),_17a);delete this._deferredConnects[_17a];}},focused:false,isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_17c){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_17c);},attr:function(name,_17d){if(dojo.config.isDebug){var _17e=arguments.callee._ach||(arguments.callee._ach={}),_17f=(arguments.callee.caller||"unknown caller").toString();if(!_17e[_17f]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_17f,"","2.0");_17e[_17f]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},nodesWithKeyClick:["input","button"],connect:function(obj,_180,_181){var d=dojo,dc=d._connect,_182=this.inherited(arguments,[obj,_180=="ondijitclick"?"onclick":_180,_181]);if(_180=="ondijitclick"){if(d.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_181);_182.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;if(!("openDropDown" in this&&obj==this._buttonNode)){e.preventDefault();}}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target==dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}}return _182;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _183=dijit.getEnclosingWidget(this.domNode.parentNode);return _183&&_183.isContainer?_183:null;},_getSibling:function(_184){var node=this.domNode;do{node=node[_184+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_185,_186){var _187=this.containerNode;if(_186&&typeof _186=="number"){var _188=this.getChildren();if(_188&&_188.length>=_186){_187=_188[_186-1].domNode;_186="after";}}dojo.place(_185.domNode,_187,_186);if(this._started&&!_185._started){_185.startup();}},removeChild:function(_189){if(typeof _189=="number"){_189=this.getChildren()[_189];}if(_189){var node=_189.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_18a){dojo.forEach(this.getChildren(),function(_18b){_18b.destroyRecursive(_18a);});},_getSiblingOfChild:function(_18c,dir){var node=_18c.domNode,_18d=(dir>0?"nextSibling":"previousSibling");do{node=node[_18d];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_18e){return dojo.indexOf(this.getChildren(),_18e);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_18f){_18f.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this.inherited(arguments);var _190=this.getParent&&this.getParent();if(!(_190&&_190.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_191,_192){var node=this.domNode;if(_191){dojo.marginBox(node,_191);if(_191.t){node.style.top=_191.t+"px";}if(_191.l){node.style.left=_191.l+"px";}}var mb=_192||{};dojo.mixin(mb,_191||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_193){var cls=this.baseClass+"-child "+(_193.baseClass?this.baseClass+"-"+_193.baseClass:"");dojo.addClass(_193.domNode,cls);},addChild:function(_194,_195){this.inherited(arguments);if(this._started){this._setupChild(_194);}},removeChild:function(_196){var cls=this.baseClass+"-child"+(_196.baseClass?" "+this.baseClass+"-"+_196.baseClass:"");dojo.removeClass(_196.domNode,cls);this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _197=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_198,dim){var _199=_198.resize?_198.resize(dim):dojo.marginBox(_198.domNode,dim);if(_199){dojo.mixin(_198,_199);}else{dojo.mixin(_198,dojo.marginBox(_198.domNode));dojo.mixin(_198,dim);}};dijit.layout.layoutChildren=function(_19a,dim,_19b,_19c,_19d){dim=dojo.mixin({},dim);dojo.addClass(_19a,"dijitLayoutContainer");_19b=dojo.filter(_19b,function(item){return item.region!="center"&&item.layoutAlign!="client";}).concat(dojo.filter(_19b,function(item){return item.region=="center"||item.layoutAlign=="client";}));dojo.forEach(_19b,function(_19e){var elm=_19e.domNode,pos=(_19e.region||_19e.layoutAlign);var _19f=elm.style;_19f.left=dim.l+"px";_19f.top=dim.t+"px";_19f.position="absolute";dojo.addClass(elm,"dijitAlign"+_197(pos));var _1a0={};if(_19c&&_19c==_19e.id){_1a0[_19e.region=="top"||_19e.region=="bottom"?"h":"w"]=_19d;}if(pos=="top"||pos=="bottom"){_1a0.w=dim.w;size(_19e,_1a0);dim.h-=_19e.h;if(pos=="top"){dim.t+=_19e.h;}else{_19f.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_1a0.h=dim.h;size(_19e,_1a0);dim.w-=_19e.w;if(pos=="left"){dim.l+=_19e.w;}else{_19f.left=dim.l+dim.w+"px";}}else{if(pos=="client"||pos=="center"){size(_19e,dim);}}}});};})();}if(!dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]){dojo._hasResource["dijit.layout._ContentPaneResizeMixin"]=true;dojo.provide("dijit.layout._ContentPaneResizeMixin");dojo.declare("dijit.layout._ContentPaneResizeMixin",null,{doLayout:true,isContainer:true,isLayoutContainer:true,_startChildren:function(){dojo.forEach(this.getChildren(),function(_1a1){_1a1.startup();_1a1._started=true;});},startup:function(){if(this._started){return;}var _1a2=dijit._Contained.prototype.getParent.call(this);this._childOfLayoutWidget=_1a2&&_1a2.isLayoutContainer;this._needLayout=!this._childOfLayoutWidget;this.inherited(arguments);this._startChildren();if(this._isShown()){this._onShow();}if(!this._childOfLayoutWidget){this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this._needLayout=!this._childOfLayoutWidget;this.resize();});}},_checkIfSingleChild:function(){var _1a3=dojo.query("> *",this.containerNode).filter(function(node){return node.tagName!=="SCRIPT";}),_1a4=_1a3.filter(function(node){return dojo.hasAttr(node,"data-dojo-type")||dojo.hasAttr(node,"dojoType")||dojo.hasAttr(node,"widgetId");}),_1a5=dojo.filter(_1a4.map(dijit.byNode),function(_1a6){return _1a6&&_1a6.domNode&&_1a6.resize;});if(_1a3.length==_1a4.length&&_1a5.length==1){this._singleChild=_1a5[0];}else{delete this._singleChild;}dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);},resize:function(_1a7,_1a8){if(!this._wasShown&&this.open!==false){this._onShow();}this._resizeCalled=true;this._scheduleLayout(_1a7,_1a8);},_scheduleLayout:function(_1a9,_1aa){if(this._isShown()){this._layout(_1a9,_1aa);}else{this._needLayout=true;this._changeSize=_1a9;this._resultSize=_1aa;}},_layout:function(_1ab,_1ac){if(_1ab){dojo.marginBox(this.domNode,_1ab);}var cn=this.containerNode;if(cn===this.domNode){var mb=_1ac||{};dojo.mixin(mb,_1ab||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(cn),mb);}this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);}else{this._contentBox=dojo.contentBox(cn);}this._layoutChildren();delete this._needLayout;},_layoutChildren:function(){if(this.doLayout){this._checkIfSingleChild();}if(this._singleChild&&this._singleChild.resize){var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}else{dojo.forEach(this.getChildren(),function(_1ad){if(_1ad.resize){_1ad.resize();}});}},_isShown:function(){if(this._childOfLayoutWidget){if(this._resizeCalled&&"open" in this){return this.open;}return this._resizeCalled;}else{if("open" in this){return this.open;}else{var node=this.domNode,_1ae=this.domNode.parentNode;return (node.style.display!="none")&&(node.style.visibility!="hidden")&&!dojo.hasClass(node,"dijitHidden")&&_1ae&&_1ae.style&&(_1ae.style.display!="none");}}},_onShow:function(){if(this._needLayout){this._layout(this._changeSize,this._resultSize);}this.inherited(arguments);this._wasShown=true;}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.getObject("string",true,dojo);dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1af,map,_1b0,_1b1){_1b1=_1b1||dojo.global;_1b0=_1b0?dojo.hitch(_1b1,_1b0):function(v){return v;};return _1af.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1b2,key,_1b3){var _1b4=dojo.getObject(key,false,map);if(_1b3){_1b4=dojo.getObject(_1b3,false,_1b1).call(_1b1,_1b4,key);}return _1b0(_1b4,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");dojo.getObject("html",true,dojo);(function(){var _1b5=0,d=dojo;dojo.html._secureForInnerHtml=function(cont){return cont.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=dojo.empty;dojo.html._setNodeContent=function(node,cont){d.empty(node);if(cont){if(typeof cont=="string"){cont=d._toDom(cont,node.ownerDocument);}if(!cont.nodeType&&d.isArrayLike(cont)){for(var _1b6=cont.length,i=0;i<cont.length;i=_1b6==cont.length?i+1:0){d.place(cont[i],node,"last");}}else{d.place(cont,node,"last");}}return node;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,parserScope:dojo._scopeName,startup:true,constructor:function(_1b7,node){dojo.mixin(this,_1b7||{});node=this.node=dojo.byId(this.node||node);if(!this.id){this.id=["Setter",(node)?node.id||node.tagName:"",_1b5++].join("_");}},set:function(cont,_1b8){if(undefined!==cont){this.content=cont;}if(_1b8){this._mixin(_1b8);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var node=this.node;if(!node){throw new Error(this.declaredClass+": setContent given no node");}try{node=dojo.html._setNodeContent(node,this.content);}catch(e){var _1b9=this.onContentError(e);try{node.innerHTML=_1b9;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=node;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var cont=this.content;if(dojo.isString(cont)){if(this.cleanContent){cont=dojo.html._secureForInnerHtml(cont);}if(this.extractContent){var _1ba=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1ba){cont=_1ba[1];}}}this.empty();this.content=cont;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_1bb){var _1bc={},key;for(key in _1bb){if(key in _1bc){continue;}this[key]=_1bb[key];}},_parse:function(){var _1bd=this.node;try{var _1be={};dojo.forEach(["dir","lang","textDir"],function(name){if(this[name]){_1be[name]=this[name];}},this);this.parseResults=dojo.parser.parse({rootNode:_1bd,noStart:!this.startup,inherited:_1be,scope:this.parserScope});}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(type,err,_1bf){var _1c0=this["on"+type+"Error"].call(this,err);if(_1bf){console.error(_1bf,err);}else{if(_1c0){dojo.html._setNodeContent(this.node,_1c0,true);}}}});dojo.html.set=function(node,cont,_1c1){if(undefined==cont){console.warn("dojo.html.set: no cont argument provided, using empty string");cont="";}if(!_1c1){return dojo.html._setNodeContent(node,cont,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_1c1,{content:cont,node:node}));return op.set();}};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.getObject("i18n",true,dojo);dojo.i18n.getLocalization=dojo.i18n.getLocalization||function(_1c2,_1c3,_1c4){_1c4=dojo.i18n.normalizeLocale(_1c4);var _1c5=_1c4.split("-");var _1c6=[_1c2,"nls",_1c3].join(".");var _1c7=dojo._loadedModules[_1c6];if(_1c7){var _1c8;for(var i=_1c5.length;i>0;i--){var loc=_1c5.slice(0,i).join("_");if(_1c7[loc]){_1c8=_1c7[loc];break;}}if(!_1c8){_1c8=_1c7.ROOT;}if(_1c8){var _1c9=function(){};_1c9.prototype=_1c8;return new _1c9();}}throw new Error("Bundle not found: "+_1c3+" in "+_1c2+" , locale="+_1c4);};dojo.i18n.normalizeLocale=function(_1ca){var _1cb=(_1ca?_1ca:dojo.locale).toLowerCase();if(_1cb=="root"){_1cb="ROOT";}return _1cb;};dojo.i18n._requireLocalization=function(_1cc,_1cd,_1ce,_1cf){var _1d0=dojo.i18n.normalizeLocale(_1ce);var _1d1=[_1cc,"nls",_1cd].join(".");var _1d2="";if(_1cf){var _1d3=_1cf.split(",");for(var i=0;i<_1d3.length;i++){if(_1d0["indexOf"](_1d3[i])==0){if(_1d3[i].length>_1d2.length){_1d2=_1d3[i];}}}if(!_1d2){_1d2="ROOT";}}var _1d4=_1cf?_1d2:_1d0;var _1d5=dojo._loadedModules[_1d1];var _1d6=null;if(_1d5){if(dojo.config.localizationComplete&&_1d5._built){return;}var _1d7=_1d4.replace(/-/g,"_");var _1d8=_1d1+"."+_1d7;_1d6=dojo._loadedModules[_1d8];}if(!_1d6){_1d5=dojo["provide"](_1d1);var syms=dojo._getModuleSymbols(_1cc);var _1d9=syms.concat("nls").join("/");var _1da;dojo.i18n._searchLocalePath(_1d4,_1cf,function(loc){var _1db=loc.replace(/-/g,"_");var _1dc=_1d1+"."+_1db;var _1dd=false;if(!dojo._loadedModules[_1dc]){dojo["provide"](_1dc);var _1de=[_1d9];if(loc!="ROOT"){_1de.push(loc);}_1de.push(_1cd);var _1df=_1de.join("/")+".js";_1dd=dojo._loadPath(_1df,null,function(hash){hash=hash.root||hash;var _1e0=function(){};_1e0.prototype=_1da;_1d5[_1db]=new _1e0();for(var j in hash){_1d5[_1db][j]=hash[j];}});}else{_1dd=true;}if(_1dd&&_1d5[_1db]){_1da=_1d5[_1db];}else{_1d5[_1db]=_1da;}if(_1cf){return true;}});}if(_1cf&&_1d0!=_1d2){_1d5[_1d0.replace(/-/g,"_")]=_1d5[_1d2.replace(/-/g,"_")];}};(function(){var _1e1=dojo.config.extraLocale;if(_1e1){if(!_1e1 instanceof Array){_1e1=[_1e1];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_1e2,_1e3){req(m,b,_1e2,_1e3);if(_1e2){return;}for(var i=0;i<_1e1.length;i++){req(m,b,_1e1[i],_1e3);}};}})();dojo.i18n._searchLocalePath=function(_1e4,down,_1e5){_1e4=dojo.i18n.normalizeLocale(_1e4);var _1e6=_1e4.split("-");var _1e7=[];for(var i=_1e6.length;i>0;i--){_1e7.push(_1e6.slice(0,i).join("-"));}_1e7.push(false);if(down){_1e7.reverse();}for(var j=_1e7.length-1;j>=0;j--){var loc=_1e7[j]||"ROOT";var stop=_1e5(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_1e8,_1e9){function _1ea(_1eb){_1eb=dojo.i18n.normalizeLocale(_1eb);dojo.i18n._searchLocalePath(_1eb,true,function(loc){for(var i=0;i<_1e9.length;i++){if(_1e9[i]==loc){dojo["require"](_1e8+"_"+loc);return true;}}return false;});};_1ea();var _1ec=dojo.config.extraLocale||[];for(var i=0;i<_1ec.length;i++){_1ea(_1ec[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",[dijit._Widget,dijit.layout._ContentPaneResizeMixin],{href:"",extractContent:false,parseOnLoad:true,parserScope:dojo._scopeName,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",ioArgs:{},onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),stopParser:true,template:false,create:function(_1ed,_1ee){if((!_1ed||!_1ed.template)&&_1ee&&!("href" in _1ed)&&!("content" in _1ed)){var df=dojo.doc.createDocumentFragment();_1ee=dojo.byId(_1ee);while(_1ee.firstChild){df.appendChild(_1ee.firstChild);}_1ed=dojo.delegate(_1ed,{content:df});}this.inherited(arguments,[_1ed,_1ee]);},postMixInProperties:function(){this.inherited(arguments);var _1ef=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_1ef);this.errorMessage=dojo.string.substitute(this.errorMessage,_1ef);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}this.domNode.title="";if(!dojo.attr(this.domNode,"role")){dijit.setWaiRole(this.domNode,"group");}},_startChildren:function(){this.inherited(arguments);if(this._contentSetter){dojo.forEach(this._contentSetter.parseResults,function(obj){if(!obj._started&&!obj._destroyed&&dojo.isFunction(obj.startup)){obj.startup();obj._started=true;}},this);}},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use set('href', ...) instead.","","2.0");return this.set("href",href);},_setHrefAttr:function(href){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._set("href",href);if(this.preload||(this._created&&this._isShown())){this._load();}else{this._hrefChanged=true;}return this.onLoadDeferred;},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use set('content', ...) instead.","","2.0");this.set("content",data);},_setContentAttr:function(data){this._set("href","");this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));if(this._created){this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));}this._setContent(data||"");this._isDownloaded=false;return this.onLoadDeferred;},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;this.onLoadDeferred=null;},uninitialize:function(){if(this._beingDestroyed){this.cancel();}this.inherited(arguments);},destroyRecursive:function(_1f0){if(this._beingDestroyed){return;}this.inherited(arguments);},_onShow:function(){this.inherited(arguments);if(this.href){if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){return this.refresh();}}},refresh:function(){this.cancel();this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));this.onLoadDeferred.addCallback(dojo.hitch(this,"onLoad"));this._load();return this.onLoadDeferred;},_load:function(){this._setContent(this.onDownloadStart(),true);var self=this;var _1f1={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_1f1,this.ioArgs);}var hand=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_1f1));hand.addCallback(function(html){try{self._isDownloaded=true;self._setContent(html,false);self.onDownloadEnd();}catch(err){self._onError("Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.canceled){self._onError("Download",err);}delete self._xhrDfd;return err;});delete this._hrefChanged;},_onLoadHandler:function(data){this._set("isLoaded",true);try{this.onLoadDeferred.callback(data);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);}},_onUnloadHandler:function(){this._set("isLoaded",false);try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);}},destroyDescendants:function(){if(this.isLoaded){this._onUnloadHandler();}var _1f2=this._contentSetter;dojo.forEach(this.getChildren(),function(_1f3){if(_1f3.destroyRecursive){_1f3.destroyRecursive();}});if(_1f2){dojo.forEach(_1f2.parseResults,function(_1f4){if(_1f4.destroyRecursive&&_1f4.domNode&&_1f4.domNode.parentNode==dojo.body()){_1f4.destroyRecursive();}});delete _1f2.parseResults;}dojo.html._emptyNode(this.containerNode);delete this._singleChild;},_setContent:function(cont,_1f5){this.destroyDescendants();var _1f6=this._contentSetter;if(!(_1f6&&_1f6 instanceof dojo.html._ContentSetter)){_1f6=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _1f7=this.onContentError(e);try{this.containerNode.innerHTML=_1f7;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _1f8=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad,parserScope:this.parserScope,startup:false,dir:this.dir,lang:this.lang},this._contentSetterParams||{});_1f6.set((dojo.isObject(cont)&&cont.domNode)?cont.domNode:cont,_1f8);delete this._contentSetterParams;if(this.doLayout){this._checkIfSingleChild();}if(!_1f5){if(this._started){this._startChildren();this._scheduleLayout();}this._onLoadHandler(cont);}},_onError:function(type,err,_1f9){this.onLoadDeferred.errback(err);var _1fa=this["on"+type+"Error"].call(this,err);if(_1f9){console.error(_1f9,err);}else{if(_1fa){this._setContent(_1fa,true);}}},onLoad:function(data){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_1fb){},onDownloadError:function(_1fc){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");var cache={};dojo.cache=function(_1fd,url,_1fe){if(typeof _1fd=="string"){var _1ff=dojo.moduleUrl(_1fd,url);}else{_1ff=_1fd;_1fe=url;}var key=_1ff.toString();var val=_1fe;if(_1fe!=undefined&&!dojo.isString(_1fe)){val=("value" in _1fe?_1fe.value:undefined);}var _200=_1fe&&_1fe.sanitize?true:false;if(typeof val=="string"){val=cache[key]=_200?dojo.cache._sanitize(val):val;}else{if(val===null){delete cache[key];}else{if(!(key in cache)){val=dojo._getText(key);cache[key]=_200?dojo.cache._sanitize(val):val;}val=cache[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _201=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_201){val=_201[1];}}else{val="";}return val;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];this._attachEvents=[];},_stringRepl:function(tmpl){var _202=this.declaredClass,_203=this;return dojo.string.substitute(tmpl,this,function(_204,key){if(key.charAt(0)=="!"){_204=dojo.getObject(key.substr(1),false,_203);}if(typeof _204=="undefined"){throw new Error(_202+" template:"+key);}if(_204==null){return "";}return key.charAt(0)=="!"?_204:_204.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _205=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_205)){node=dojo._toDom(this._stringRepl(_205));if(node.nodeType!=1){throw new Error("Invalid template: "+_205);}}else{node=_205.cloneNode(true);}this.domNode=node;this.inherited(arguments);this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,template:true,inherited:{dir:this.dir,lang:this.lang},propsThis:this,scope:"dojo"}));this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_206){var dest=this.containerNode;if(_206&&dest){while(_206.hasChildNodes()){dest.appendChild(_206.firstChild);}}},_attachTemplateNodes:function(_207,_208){_208=_208||function(n,p){return n.getAttribute(p);};var _209=dojo.isArray(_207)?_207:(_207.all||_207.getElementsByTagName("*"));var x=dojo.isArray(_207)?0:-1;for(;x<_209.length;x++){var _20a=(x==-1)?_207:_209[x];if(this.widgetsInTemplate&&(_208(_20a,"dojoType")||_208(_20a,"data-dojo-type"))){continue;}var _20b=_208(_20a,"dojoAttachPoint")||_208(_20a,"data-dojo-attach-point");if(_20b){var _20c,_20d=_20b.split(/\s*,\s*/);while((_20c=_20d.shift())){if(dojo.isArray(this[_20c])){this[_20c].push(_20a);}else{this[_20c]=_20a;}this._attachPoints.push(_20c);}}var _20e=_208(_20a,"dojoAttachEvent")||_208(_20a,"data-dojo-attach-event");if(_20e){var _20f,_210=_20e.split(/\s*,\s*/);var trim=dojo.trim;while((_20f=_210.shift())){if(_20f){var _211=null;if(_20f.indexOf(":")!=-1){var _212=_20f.split(":");_20f=trim(_212[0]);_211=trim(_212[1]);}else{_20f=trim(_20f);}if(!_211){_211=_20f;}this._attachEvents.push(this.connect(_20a,_20f,_211));}}}var role=_208(_20a,"waiRole");if(role){dijit.setWaiRole(_20a,role);}var _213=_208(_20a,"waiState");if(_213){dojo.forEach(_213.split(/\s*,\s*/),function(_214){if(_214.indexOf("-")!=-1){var pair=_214.split("-");dijit.setWaiState(_20a,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_215){delete this[_215];},this);this._attachPoints=[];dojo.forEach(this._attachEvents,this.disconnect,this);this._attachEvents=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_216,_217,_218){var _219=dijit._Templated._templateCache;var key=_217||_216;var _21a=_219[key];if(_21a){try{if(!_21a.ownerDocument||_21a.ownerDocument==dojo.doc){return _21a;}}catch(e){}dojo.destroy(_21a);}if(!_217){_217=dojo.cache(_216,{sanitize:true});}_217=dojo.string.trim(_217);if(_218||_217.match(/\$\{([^\}]+)\}/g)){return (_219[key]=_217);}else{var node=dojo._toDom(_217);if(node.nodeType!=1){throw new Error("Invalid template: "+_217);}return (_219[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _21b=dijit._Templated._templateCache;for(var key in _21b){var _21c=_21b[key];if(typeof _21c=="object"){dojo.destroy(_21c);}delete _21b[key];}});}dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.layout.LinkPane"]){dojo._hasResource["dijit.layout.LinkPane"]=true;dojo.provide("dijit.layout.LinkPane");dojo.declare("dijit.layout.LinkPane",[dijit.layout.ContentPane,dijit._Templated],{templateString:"<div class=\"dijitLinkPane\" dojoAttachPoint=\"containerNode\"></div>",postMixInProperties:function(){if(this.srcNodeRef){this.title+=this.srcNodeRef.innerHTML;}this.inherited(arguments);},_fillContent:function(_21d){}});}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.getObject("regexp",true,dojo);dojo.regexp.escapeString=function(str,_21e){return str.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){if(_21e&&_21e.indexOf(ch)!=-1){return ch;}return "\\"+ch;});};dojo.regexp.buildGroupRE=function(arr,re,_21f){if(!(arr instanceof Array)){return re(arr);}var b=[];for(var i=0;i<arr.length;i++){b.push(re(arr[i]));}return dojo.regexp.group(b.join("|"),_21f);};dojo.regexp.group=function(_220,_221){return "("+(_221?"?:":"")+_220+")";};}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_222,_223){var c=document.cookie;if(arguments.length==1){var _224=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _224?decodeURIComponent(_224[1]):undefined;}else{_223=_223||{};var exp=_223.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_223.expires=d;}if(exp&&exp.toUTCString){_223.expires=exp.toUTCString();}_222=encodeURIComponent(_222);var _225=name+"="+_222,_226;for(_226 in _223){_225+="; "+_226;var _227=_223[_226];if(_227!==true){_225+="="+_227;}}document.cookie=_225;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},hovering:false,active:false,_applyAttributes:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);dojo.forEach(["disabled","readOnly","checked","selected","focused","state","hovering","active"],function(attr){this.watch(attr,dojo.hitch(this,"_setStateClass"));},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_228){if(!this.disabled){switch(_228.type){case "mouseenter":case "mouseover":this._set("hovering",true);this._set("active",this._mouseDown);break;case "mouseleave":case "mouseout":this._set("hovering",false);this._set("active",false);break;case "mousedown":this._set("active",true);this._mouseDown=true;var _229=this.connect(dojo.body(),"onmouseup",function(){this._mouseDown=false;this._set("active",false);this.disconnect(_229);});break;}}},_setStateClass:function(){var _22a=this.baseClass.split(" ");function _22b(_22c){_22a=_22a.concat(dojo.map(_22a,function(c){return c+_22c;}),"dijit"+_22c);};if(!this.isLeftToRight()){_22b("Rtl");}if(this.checked){_22b("Checked");}if(this.state){_22b(this.state);}if(this.selected){_22b("Selected");}if(this.disabled){_22b("Disabled");}else{if(this.readOnly){_22b("ReadOnly");}else{if(this.active){_22b("Active");}else{if(this.hovering){_22b("Hover");}}}}if(this._focused){_22b("Focused");}var tn=this.stateNode||this.domNode,_22d={};dojo.forEach(tn.className.split(" "),function(c){_22d[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _22d[c];});}dojo.forEach(_22a,function(c){_22d[c]=true;});var _22e=[];for(var c in _22d){_22e.push(c);}tn.className=_22e.join(" ");this._stateClasses=_22a;},_trackMouseState:function(node,_22f){var _230=false,_231=false,_232=false;var self=this,cn=dojo.hitch(this,"connect",node);function _233(){var _234=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_22f+"Hover",_230&&!_231&&!_234);dojo.toggleClass(node,_22f+"Active",_231&&!_234);dojo.toggleClass(node,_22f+"Focused",_232&&!_234);};cn("onmouseenter",function(){_230=true;_233();});cn("onmouseleave",function(){_230=false;_231=false;_233();});cn("onmousedown",function(){_231=true;_233();});cn("onmouseup",function(){_231=false;_233();});cn("onfocus",function(){_232=true;_233();});cn("onblur",function(){_232=false;_233();});this.watch("disabled",_233);this.watch("readOnly",_233);}});}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_235){this._set("disabled",_235);dojo.attr(this.focusNode,"disabled",_235);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_235);}dijit.setWaiState(this.focusNode,"disabled",_235);if(_235){this._set("hovering",false);this._set("active",false);var _236="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_236)?_236:[_236],function(_237){var node=this[_237];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{if(this.tabIndex!=""){this.focusNode.setAttribute("tabIndex",this.tabIndex);}}},setDisabled:function(_238){dojo.deprecated("setDisabled("+_238+") is deprecated. Use set('disabled',"+_238+") instead.","","2.0");this.set("disabled",_238);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){if(!this.disabled){dijit.focus(this.focusNode);}},compare:function(val1,val2){if(typeof val1=="number"&&typeof val2=="number"){return (isNaN(val1)&&isNaN(val2))?0:val1-val2;}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_239){},_onChangeActive:false,_handleOnChange:function(_23a,_23b){if(this._lastValueReported==undefined&&(_23b===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_23a;}this._pendingOnChange=this._pendingOnChange||(typeof _23a!=typeof this._lastValueReported)||(this.compare(_23a,this._lastValueReported)!=0);if((this.intermediateChanges||_23b||_23b===undefined)&&this._pendingOnChange){this._lastValueReported=_23a;this._pendingOnChange=false;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_23a);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_23c){dojo.deprecated("dijit.form._FormWidget:setValue("+_23c+") is deprecated.  Use set('value',"+_23c+") instead.","","2.0");this.set("value",_23c);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&dojo.mouseButtons.isLeft(e)&&this.isFocusable()){var _23d=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_23d);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_23e){dojo.attr(this.focusNode,"readOnly",_23e);dijit.setWaiState(this.focusNode,"readonly",_23e);this._set("readOnly",_23e);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._lastValueReported=this._resetValue=this.value;}},_setValueAttr:function(_23f,_240){this._handleOnChange(_23f,_240);},_handleOnChange:function(_241,_242){this._set("value",_241);this.inherited(arguments);},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _243=this.domNode;var _244=_243.parentNode;var _245=_243.firstChild||_243;var _246=_245.style.filter;var _247=this;while(_244&&_244.clientHeight==0){(function ping(){var _248=_247.connect(_244,"onscroll",function(e){_247.disconnect(_248);_245.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_245.style.filter=_246;},0);});})();_244=_244.parentNode;}}}});}if(!dojo._hasResource["dijit._HasDropDown"]){dojo._hasResource["dijit._HasDropDown"]=true;dojo.provide("dijit._HasDropDown");dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouseDown:function(e){if(this.disabled||this.readOnly){return;}e.preventDefault();this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseUp");this.toggleDropDown();},_onDropDownMouseUp:function(e){if(e&&this._docHandler){this.disconnect(this._docHandler);}var _249=this.dropDown,_24a=false;if(e&&this._opened){var c=dojo.position(this._buttonNode,true);if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){var t=e.target;while(t&&!_24a){if(dojo.hasClass(t,"dijitPopup")){_24a=true;}else{t=t.parentNode;}}if(_24a){t=e.target;if(_249.onItemClick){var _24b;while(t&&!(_24b=dijit.byNode(t))){t=t.parentNode;}if(_24b&&_24b.onClick&&_24b.getParent){_24b.getParent().onItemClick(_24b,e);}}return;}}}if(this._opened&&_249.focus&&_249.autoFocus!==false){window.setTimeout(dojo.hitch(_249,"focus"),1);}},_onDropDownClick:function(e){if(this._stopClickEvents){dojo.stopEvent(e);}},buildRendering:function(){this.inherited(arguments);this._buttonNode=this._buttonNode||this.focusNode||this.domNode;this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;var _24c={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_24c+"ArrowButton");},postCreate:function(){this.inherited(arguments);this.connect(this._buttonNode,"onmousedown","_onDropDownMouseDown");this.connect(this._buttonNode,"onclick","_onDropDownClick");this.connect(this.focusNode,"onkeypress","_onKey");this.connect(this.focusNode,"onkeyup","_onKeyUp");},destroy:function(){if(this.dropDown){if(!this.dropDown._destroyed){this.dropDown.destroyRecursive();}delete this.dropDown;}this.inherited(arguments);},_onKey:function(e){if(this.disabled||this.readOnly){return;}var d=this.dropDown,_24d=e.target;if(d&&this._opened&&d.handleKey){if(d.handleKey(e)===false){dojo.stopEvent(e);return;}}if(d&&this._opened&&e.charOrCode==dojo.keys.ESCAPE){this.closeDropDown();dojo.stopEvent(e);}else{if(!this._opened&&(e.charOrCode==dojo.keys.DOWN_ARROW||((e.charOrCode==dojo.keys.ENTER||e.charOrCode==" ")&&((_24d.tagName||"").toLowerCase()!=="input"||(_24d.type&&_24d.type.toLowerCase()!=="text"))))){this._toggleOnKeyUp=true;dojo.stopEvent(e);}}},_onKeyUp:function(){if(this._toggleOnKeyUp){delete this._toggleOnKeyUp;this.toggleDropDown();var d=this.dropDown;if(d&&d.focus){setTimeout(dojo.hitch(d,"focus"),1);}}},_onBlur:function(){var _24e=dijit._curFocus&&this.dropDown&&dojo.isDescendant(dijit._curFocus,this.dropDown.domNode);this.closeDropDown(_24e);this.inherited(arguments);},isLoaded:function(){return true;},loadDropDown:function(_24f){_24f();},toggleDropDown:function(){if(this.disabled||this.readOnly){return;}if(!this._opened){if(!this.isLoaded()){this.loadDropDown(dojo.hitch(this,"openDropDown"));return;}else{this.openDropDown();}}else{this.closeDropDown();}},openDropDown:function(){var _250=this.dropDown,_251=_250.domNode,_252=this._aroundNode||this.domNode,self=this;if(!this._preparedNode){this._preparedNode=true;if(_251.style.width){this._explicitDDWidth=true;}if(_251.style.height){this._explicitDDHeight=true;}}if(this.maxHeight||this.forceWidth||this.autoWidth){var _253={display:"",visibility:"hidden"};if(!this._explicitDDWidth){_253.width="";}if(!this._explicitDDHeight){_253.height="";}dojo.style(_251,_253);var _254=this.maxHeight;if(_254==-1){var _255=dojo.window.getBox(),_256=dojo.position(_252,false);_254=Math.floor(Math.max(_256.y,_255.h-(_256.y+_256.h)));}if(_250.startup&&!_250._started){_250.startup();}dijit.popup.moveOffScreen(_250);var mb=dojo._getMarginSize(_251);var _257=(_254&&mb.h>_254);dojo.style(_251,{overflowX:"hidden",overflowY:_257?"auto":"hidden"});if(_257){mb.h=_254;if("w" in mb){mb.w+=16;}}else{delete mb.h;}if(this.forceWidth){mb.w=_252.offsetWidth;}else{if(this.autoWidth){mb.w=Math.max(mb.w,_252.offsetWidth);}else{delete mb.w;}}if(dojo.isFunction(_250.resize)){_250.resize(mb);}else{dojo.marginBox(_251,mb);}}var _258=dijit.popup.open({parent:this,popup:_250,around:_252,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){self.closeDropDown(true);},onCancel:function(){self.closeDropDown(true);},onClose:function(){dojo.attr(self._popupStateNode,"popupActive",false);dojo.removeClass(self._popupStateNode,"dijitHasDropDownOpen");self._opened=false;}});dojo.attr(this._popupStateNode,"popupActive","true");dojo.addClass(self._popupStateNode,"dijitHasDropDownOpen");this._opened=true;return _258;},closeDropDown:function(_259){if(this._opened){if(_259){this.focus();}dijit.popup.close(this.dropDown);this._opened=false;}}});}if(!dojo._hasResource["dijit.form.Button"]){dojo._hasResource["dijit.form.Button"]=true;dojo.provide("dijit.form.Button");dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\"></span\n\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#x25CF;</span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t></span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"valueNode"}),_onClick:function(e){if(this.disabled){return false;}this._clicked();return this.onClick(e);},_onButtonClick:function(e){if(this._onClick(e)===false){e.preventDefault();}else{if(this.type=="submit"&&!(this.valueNode||this.focusNode).form){for(var node=this.domNode;node.parentNode;node=node.parentNode){var _25a=dijit.byNode(node);if(_25a&&typeof _25a._onSubmit=="function"){_25a._onSubmit(e);break;}}}else{if(this.valueNode){this.valueNode.click();e.preventDefault();}}}},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(_25b){if(_25b&&(!this.params||!("label" in this.params))){this.set("label",_25b.innerHTML);}},_setShowLabelAttr:function(val){if(this.containerNode){dojo.toggleClass(this.containerNode,"dijitDisplayNone",!val);}this._set("showLabel",val);},onClick:function(e){return true;},_clicked:function(e){},setLabel:function(_25c){dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_25c);},_setLabelAttr:function(_25d){this._set("label",_25d);this.containerNode.innerHTML=_25d;if(this.showLabel==false&&!this.params.title){this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},_setIconClassAttr:function(val){var _25e=this.iconClass||"dijitNoIcon",_25f=val||"dijitNoIcon";dojo.replaceClass(this.iconNode,_25f,_25e);this._set("iconClass",val);}});dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitInline\"\n\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\tdojoAttachEvent=\"ondijitclick:_onButtonClick\" dojoAttachPoint=\"_buttonNode\"\n\t\t><span class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\trole=\"button\" aria-haspopup=\"true\" aria-labelledby=\"${id}_label\"\n\t\t\t><span class=\"dijitReset dijitInline dijitIcon\"\n\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\tid=\"${id}_label\"\n\t\t\t></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\"></span\n\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t></span\n\t></span\n\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" class=\"dijitOffScreen\" tabIndex=\"-1\"\n\t\tdojoAttachPoint=\"valueNode\"\n/></span>\n"),_fillContent:function(){if(this.srcNodeRef){var _260=dojo.query("*",this.srcNodeRef);dijit.form.DropDownButton.superclass._fillContent.call(this,_260[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}if(!this.dropDown&&this.dropDownContainer){var _261=dojo.query("[widgetId]",this.dropDownContainer)[0];this.dropDown=dijit.byNode(_261);delete this.dropDownContainer;}if(this.dropDown){dijit.popup.hide(this.dropDown);}this.inherited(arguments);},isLoaded:function(){var _262=this.dropDown;return (!!_262&&(!_262.href||_262.isLoaded));},loadDropDown:function(){var _263=this.dropDown;if(!_263){return;}if(!this.isLoaded()){var _264=dojo.connect(_263,"onLoad",this,function(){dojo.disconnect(_264);this.openDropDown();});_263.refresh();}else{this.openDropDown();}},isFocusable:function(){return this.inherited(arguments)&&!this._mouseDown;}});dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class=\"dijit dijitReset dijitInline dijitLeft\"\n\tcellspacing='0' cellpadding='0' role=\"presentation\"\n\t><tbody role=\"presentation\"><tr role=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\" dojoAttachPoint=\"buttonNode\" dojoAttachEvent=\"ondijitclick:_onButtonClick,onkeypress:_onButtonKeyPress\"\n\t\t><div id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachPoint=\"titleNode\"\n\t\t\trole=\"button\" aria-labelledby=\"${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline dijitIcon\" dojoAttachPoint=\"iconNode\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" role=\"presentation\"></div\n\t\t></div\n\t\t></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onkeypress:_onArrowKeyPress\"\n\t\t\ttitle=\"${optionsTitle}\"\n\t\t\trole=\"button\" aria-haspopup=\"true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" role=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" role=\"presentation\">&#9660;</div\n\t\t></td\n\t\t><td style=\"display:none !important;\"\n\t\t\t><input ${!nameAttrSetting} type=\"${type}\" value=\"${value}\" dojoAttachPoint=\"valueNode\"\n\t\t/></td></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",cssStateNodes:{"buttonNode":"dijitButtonNode","titleNode":"dijitButtonContents","_popupStateNode":"dijitDownArrowButton"},_focusedNode:null,_onButtonKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){dijit.focus(this._popupStateNode);dojo.stopEvent(evt);}},_onArrowKeyPress:function(evt){if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){dijit.focus(this.titleNode);dojo.stopEvent(evt);}},focus:function(_265){if(!this.disabled){dijit.focus(_265=="start"?this.titleNode:this._popupStateNode);}}});dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){this.set("checked",!this.checked);},_setCheckedAttr:function(_266,_267){this._set("checked",_266);dojo.attr(this.focusNode||this.domNode,"checked",_266);dijit.setWaiState(this.focusNode||this.domNode,"pressed",_266);this._handleOnChange(_266,_267);},setChecked:function(_268){dojo.deprecated("setChecked("+_268+") is deprecated. Use set('checked',"+_268+") instead.","","2.0");this.set("checked",_268);},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);}});}if(!dojo._hasResource["dijit.form.ToggleButton"]){dojo._hasResource["dijit.form.ToggleButton"]=true;dojo.provide("dijit.form.ToggleButton");}if(!dojo._hasResource["dijit.layout.StackController"]){dojo._hasResource["dijit.layout.StackController"]=true;dojo.provide("dijit.layout.StackController");dojo.declare("dijit.layout.StackController",[dijit._Widget,dijit._Templated,dijit._Container],{templateString:"<span role='tablist' dojoAttachEvent='onkeypress' class='dijitStackController'></span>",containerId:"",buttonWidget:"dijit.layout._StackButton",constructor:function(){this.pane2button={};this.pane2connects={};this.pane2watches={};},buildRendering:function(){this.inherited(arguments);dijit.setWaiRole(this.domNode,"tablist");},postCreate:function(){this.inherited(arguments);this.subscribe(this.containerId+"-startup","onStartup");this.subscribe(this.containerId+"-addChild","onAddChild");this.subscribe(this.containerId+"-removeChild","onRemoveChild");this.subscribe(this.containerId+"-selectChild","onSelectChild");this.subscribe(this.containerId+"-containerKeyPress","onContainerKeyPress");},onStartup:function(info){dojo.forEach(info.children,this.onAddChild,this);if(info.selected){this.onSelectChild(info.selected);}},destroy:function(){for(var pane in this.pane2button){this.onRemoveChild(dijit.byId(pane));}this.inherited(arguments);},onAddChild:function(page,_269){var cls=dojo.getObject(this.buttonWidget);var _26a=new cls({id:this.id+"_"+page.id,label:page.title,dir:page.dir,lang:page.lang,showLabel:page.showTitle,iconClass:page.iconClass,closeButton:page.closable,title:page.tooltip});dijit.setWaiState(_26a.focusNode,"selected","false");var _26b=["title","showTitle","iconClass","closable","tooltip"],_26c=["label","showLabel","iconClass","closeButton","title"];this.pane2watches[page.id]=dojo.map(_26b,function(_26d,idx){return page.watch(_26d,function(name,_26e,_26f){_26a.set(_26c[idx],_26f);});});this.pane2connects[page.id]=[this.connect(_26a,"onClick",dojo.hitch(this,"onButtonClick",page)),this.connect(_26a,"onClickCloseButton",dojo.hitch(this,"onCloseButtonClick",page))];this.addChild(_26a,_269);this.pane2button[page.id]=_26a;page.controlButton=_26a;if(!this._currentChild){_26a.focusNode.setAttribute("tabIndex","0");dijit.setWaiState(_26a.focusNode,"selected","true");this._currentChild=page;}if(!this.isLeftToRight()&&dojo.isIE&&this._rectifyRtlTabList){this._rectifyRtlTabList();}},onRemoveChild:function(page){if(this._currentChild===page){this._currentChild=null;}dojo.forEach(this.pane2connects[page.id],dojo.hitch(this,"disconnect"));delete this.pane2connects[page.id];dojo.forEach(this.pane2watches[page.id],function(w){w.unwatch();});delete this.pane2watches[page.id];var _270=this.pane2button[page.id];if(_270){this.removeChild(_270);delete this.pane2button[page.id];_270.destroy();}delete page.controlButton;},onSelectChild:function(page){if(!page){return;}if(this._currentChild){var _271=this.pane2button[this._currentChild.id];_271.set("checked",false);dijit.setWaiState(_271.focusNode,"selected","false");_271.focusNode.setAttribute("tabIndex","-1");}var _272=this.pane2button[page.id];_272.set("checked",true);dijit.setWaiState(_272.focusNode,"selected","true");this._currentChild=page;_272.focusNode.setAttribute("tabIndex","0");var _273=dijit.byId(this.containerId);dijit.setWaiState(_273.containerNode,"labelledby",_272.id);},onButtonClick:function(page){var _274=dijit.byId(this.containerId);_274.selectChild(page);},onCloseButtonClick:function(page){var _275=dijit.byId(this.containerId);_275.closeChild(page);if(this._currentChild){var b=this.pane2button[this._currentChild.id];if(b){dijit.focus(b.focusNode||b.domNode);}}},adjacent:function(_276){if(!this.isLeftToRight()&&(!this.tabPosition||/top|bottom/.test(this.tabPosition))){_276=!_276;}var _277=this.getChildren();var _278=dojo.indexOf(_277,this.pane2button[this._currentChild.id]);var _279=_276?1:_277.length-1;return _277[(_278+_279)%_277.length];},onkeypress:function(e){if(this.disabled||e.altKey){return;}var _27a=null;if(e.ctrlKey||!e._djpage){var k=dojo.keys;switch(e.charOrCode){case k.LEFT_ARROW:case k.UP_ARROW:if(!e._djpage){_27a=false;}break;case k.PAGE_UP:if(e.ctrlKey){_27a=false;}break;case k.RIGHT_ARROW:case k.DOWN_ARROW:if(!e._djpage){_27a=true;}break;case k.PAGE_DOWN:if(e.ctrlKey){_27a=true;}break;case k.HOME:case k.END:var _27b=this.getChildren();if(_27b&&_27b.length){_27b[e.charOrCode==k.HOME?0:_27b.length-1].onClick();}dojo.stopEvent(e);break;case k.DELETE:if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);break;default:if(e.ctrlKey){if(e.charOrCode===k.TAB){this.adjacent(!e.shiftKey).onClick();dojo.stopEvent(e);}else{if(e.charOrCode=="w"){if(this._currentChild.closable){this.onCloseButtonClick(this._currentChild);}dojo.stopEvent(e);}}}}if(_27a!==null){this.adjacent(_27a).onClick();dojo.stopEvent(e);}}},onContainerKeyPress:function(info){info.e._djpage=info.page;this.onkeypress(info.e);}});dojo.declare("dijit.layout._StackButton",dijit.form.ToggleButton,{tabIndex:"-1",buildRendering:function(evt){this.inherited(arguments);dijit.setWaiRole((this.focusNode||this.domNode),"tab");},onClick:function(evt){dijit.focus(this.focusNode);},onClickCloseButton:function(evt){evt.stopPropagation();}});}if(!dojo._hasResource["dijit.layout.StackContainer"]){dojo._hasResource["dijit.layout.StackContainer"]=true;dojo.provide("dijit.layout.StackContainer");dojo.declare("dijit.layout.StackContainer",dijit.layout._LayoutWidget,{doLayout:true,persist:false,baseClass:"dijitStackContainer",buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitLayoutContainer");dijit.setWaiRole(this.containerNode,"tabpanel");},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onkeypress",this._onKeyPress);},startup:function(){if(this._started){return;}var _27c=this.getChildren();dojo.forEach(_27c,this._setupChild,this);if(this.persist){this.selectedChildWidget=dijit.byId(dojo.cookie(this.id+"_selectedChild"));}else{dojo.some(_27c,function(_27d){if(_27d.selected){this.selectedChildWidget=_27d;}return _27d.selected;},this);}var _27e=this.selectedChildWidget;if(!_27e&&_27c[0]){_27e=this.selectedChildWidget=_27c[0];_27e.selected=true;}dojo.publish(this.id+"-startup",[{children:_27c,selected:_27e}]);this.inherited(arguments);},resize:function(){if(!this._hasBeenShown){this._hasBeenShown=true;var _27f=this.selectedChildWidget;if(_27f){this._showChild(_27f);}}this.inherited(arguments);},_setupChild:function(_280){this.inherited(arguments);dojo.replaceClass(_280.domNode,"dijitHidden","dijitVisible");_280.domNode.title="";},addChild:function(_281,_282){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-addChild",[_281,_282]);this.layout();if(!this.selectedChildWidget){this.selectChild(_281);}}},removeChild:function(page){this.inherited(arguments);if(this._started){dojo.publish(this.id+"-removeChild",[page]);}if(this._beingDestroyed){return;}if(this.selectedChildWidget===page){this.selectedChildWidget=undefined;if(this._started){var _283=this.getChildren();if(_283.length){this.selectChild(_283[0]);}}}if(this._started){this.layout();}},selectChild:function(page,_284){page=dijit.byId(page);if(this.selectedChildWidget!=page){var d=this._transition(page,this.selectedChildWidget,_284);this._set("selectedChildWidget",page);dojo.publish(this.id+"-selectChild",[page]);if(this.persist){dojo.cookie(this.id+"_selectedChild",this.selectedChildWidget.id);}}return d;},_transition:function(_285,_286,_287){if(_286){this._hideChild(_286);}var d=this._showChild(_285);if(_285.resize){if(this.doLayout){_285.resize(this._containerContentBox||this._contentBox);}else{_285.resize();}}return d;},_adjacent:function(_288){var _289=this.getChildren();var _28a=dojo.indexOf(_289,this.selectedChildWidget);_28a+=_288?1:_289.length-1;return _289[_28a%_289.length];},forward:function(){return this.selectChild(this._adjacent(true),true);},back:function(){return this.selectChild(this._adjacent(false),true);},_onKeyPress:function(e){dojo.publish(this.id+"-containerKeyPress",[{e:e,page:this}]);},layout:function(){if(this.doLayout&&this.selectedChildWidget&&this.selectedChildWidget.resize){this.selectedChildWidget.resize(this._containerContentBox||this._contentBox);}},_showChild:function(page){var _28b=this.getChildren();page.isFirstChild=(page==_28b[0]);page.isLastChild=(page==_28b[_28b.length-1]);page._set("selected",true);dojo.replaceClass(page.domNode,"dijitVisible","dijitHidden");return page._onShow()||true;},_hideChild:function(page){page._set("selected",false);dojo.replaceClass(page.domNode,"dijitHidden","dijitVisible");page.onHide();},closeChild:function(page){var _28c=page.onClose(this,page);if(_28c){this.removeChild(page);page.destroyRecursive();}},destroyDescendants:function(_28d){dojo.forEach(this.getChildren(),function(_28e){this.removeChild(_28e);_28e.destroyRecursive(_28d);},this);}});dojo.extend(dijit._Widget,{selected:false,closable:false,iconClass:"",showTitle:true});}if(!dojo._hasResource["dijit.layout._TabContainerBase"]){dojo._hasResource["dijit.layout._TabContainerBase"]=true;dojo.provide("dijit.layout._TabContainerBase");dojo.declare("dijit.layout._TabContainerBase",[dijit.layout.StackContainer,dijit._Templated],{tabPosition:"top",baseClass:"dijitTabContainer",tabStrip:false,nested:false,templateString:dojo.cache("dijit.layout","templates/TabContainer.html","<div class=\"dijitTabContainer\">\n\t<div class=\"dijitTabListWrapper\" dojoAttachPoint=\"tablistNode\"></div>\n\t<div dojoAttachPoint=\"tablistSpacer\" class=\"dijitTabSpacer ${baseClass}-spacer\"></div>\n\t<div class=\"dijitTabPaneWrapper ${baseClass}-container\" dojoAttachPoint=\"containerNode\"></div>\n</div>\n"),postMixInProperties:function(){this.baseClass+=this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"");this.srcNodeRef&&dojo.style(this.srcNodeRef,"visibility","hidden");this.inherited(arguments);},buildRendering:function(){this.inherited(arguments);this.tablist=this._makeController(this.tablistNode);if(!this.doLayout){dojo.addClass(this.domNode,"dijitTabContainerNoLayout");}if(this.nested){dojo.addClass(this.domNode,"dijitTabContainerNested");dojo.addClass(this.tablist.containerNode,"dijitTabContainerTabListNested");dojo.addClass(this.tablistSpacer,"dijitTabContainerSpacerNested");dojo.addClass(this.containerNode,"dijitTabPaneWrapperNested");}else{dojo.addClass(this.domNode,"tabStrip-"+(this.tabStrip?"enabled":"disabled"));}},_setupChild:function(tab){dojo.addClass(tab.domNode,"dijitTabPane");this.inherited(arguments);},startup:function(){if(this._started){return;}this.tablist.startup();this.inherited(arguments);},layout:function(){if(!this._contentBox||typeof (this._contentBox.l)=="undefined"){return;}var sc=this.selectedChildWidget;if(this.doLayout){var _28f=this.tabPosition.replace(/-h/,"");this.tablist.layoutAlign=_28f;var _290=[this.tablist,{domNode:this.tablistSpacer,layoutAlign:_28f},{domNode:this.containerNode,layoutAlign:"client"}];dijit.layout.layoutChildren(this.domNode,this._contentBox,_290);this._containerContentBox=dijit.layout.marginBox2contentBox(this.containerNode,_290[2]);if(sc&&sc.resize){sc.resize(this._containerContentBox);}}else{if(this.tablist.resize){var s=this.tablist.domNode.style;s.width="0";var _291=dojo.contentBox(this.domNode).w;s.width="";this.tablist.resize({w:_291});}if(sc&&sc.resize){sc.resize();}}},destroy:function(){if(this.tablist){this.tablist.destroy();}this.inherited(arguments);}});}if(!dojo._hasResource["dijit._KeyNavContainer"]){dojo._hasResource["dijit._KeyNavContainer"]=true;dojo.provide("dijit._KeyNavContainer");dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_292,_293){var _294=(this._keyNavCodes={});var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_292,function(code){_294[code]=prev;});dojo.forEach(_293,function(code){_294[code]=next;});_294[dojo.keys.HOME]=dojo.hitch(this,"focusFirstChild");_294[dojo.keys.END]=dojo.hitch(this,"focusLastChild");this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_295,_296){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_295);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){var _297=this._getFirstFocusableChild();if(_297){this.focusChild(_297);}},focusLastChild:function(){var _298=this._getLastFocusableChild();if(_298){this.focusChild(_298);}},focusNext:function(){var _299=this._getNextFocusableChild(this.focusedChild,1);this.focusChild(_299);},focusPrev:function(){var _29a=this._getNextFocusableChild(this.focusedChild,-1);this.focusChild(_29a,true);},focusChild:function(_29b,last){if(this.focusedChild&&_29b!==this.focusedChild){this._onChildBlur(this.focusedChild);}_29b.set("tabIndex",this.tabIndex);_29b.focus(last?"end":"start");this._set("focusedChild",_29b);},_startupChild:function(_29c){_29c.set("tabIndex","-1");this.connect(_29c,"_onFocus",function(){_29c.set("tabIndex",this.tabIndex);});this.connect(_29c,"_onBlur",function(){_29c.set("tabIndex","-1");});},_onContainerFocus:function(evt){if(evt.target!==this.domNode){return;}this.focusFirstChild();dojo.attr(this.domNode,"tabIndex","-1");},_onBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabIndex",this.tabIndex);}this.inherited(arguments);},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_29d){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getLastFocusableChild:function(){return this._getNextFocusableChild(null,-1);},_getNextFocusableChild:function(_29e,dir){if(_29e){_29e=this._getSiblingOfChild(_29e,dir);}var _29f=this.getChildren();for(var i=0;i<_29f.length;i++){if(!_29e){_29e=_29f[(dir>0)?0:(_29f.length-1)];}if(_29e.isFocusable()){return _29e;}_29e=this._getSiblingOfChild(_29e,dir);}return null;}});}if(!dojo._hasResource["dijit.MenuItem"]){dojo._hasResource["dijit.MenuItem"]=true;dojo.provide("dijit.MenuItem");dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained,dijit._CssStateMixin],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\"/>\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),baseClass:"dijitMenuItem",label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_2a0){if(_2a0&&!("label" in this.params)){this.set("label",_2a0.innerHTML);}},buildRendering:function(){this.inherited(arguments);var _2a1=this.id+"_text";dojo.attr(this.containerNode,"id",_2a1);if(this.accelKeyNode){dojo.attr(this.accelKeyNode,"id",this.id+"_accel");_2a1+=" "+this.id+"_accel";}dijit.setWaiState(this.domNode,"labelledby",_2a1);dojo.setSelectable(this.domNode,false);},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);this._set("hovering",false);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){try{if(dojo.isIE==8){this.containerNode.focus();}dijit.focus(this.focusNode);}catch(e){}},_onFocus:function(){this._setSelected(true);this.getParent()._onItemFocus(this);this.inherited(arguments);},_setSelected:function(_2a2){dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_2a2);},setLabel:function(_2a3){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use set('label', ...) instead.","","2.0");this.set("label",_2a3);},setDisabled:function(_2a4){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use set('disabled', bool) instead.","","2.0");this.set("disabled",_2a4);},_setDisabledAttr:function(_2a5){dijit.setWaiState(this.focusNode,"disabled",_2a5?"true":"false");this._set("disabled",_2a5);},_setAccelKeyAttr:function(_2a6){this.accelKeyNode.style.display=_2a6?"":"none";this.accelKeyNode.innerHTML=_2a6;dojo.attr(this.containerNode,"colSpan",_2a6?"1":"2");this._set("accelKey",_2a6);}});}if(!dojo._hasResource["dijit.PopupMenuItem"]){dojo._hasResource["dijit.PopupMenuItem"]=true;dojo.provide("dijit.PopupMenuItem");dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _2a7=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_2a7[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.startup();this.popup.domNode.style.display="none";if(this.arrowWrapper){dojo.style(this.arrowWrapper,"visibility","");}dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){if(!this.popup._destroyed){this.popup.destroyRecursive();}delete this.popup;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.CheckedMenuItem"]){dojo._hasResource["dijit.CheckedMenuItem"]=true;dojo.provide("dijit.CheckedMenuItem");dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset dijitMenuItemIconCell\" role=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" role=\"presentation\">&nbsp;</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_2a8){dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_2a8);dijit.setWaiState(this.domNode,"checked",_2a8);this._set("checked",_2a8);},onChange:function(_2a9){},_onClick:function(e){if(!this.disabled){this.set("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.MenuSeparator"]){dojo._hasResource["dijit.MenuSeparator"]=true;dojo.provide("dijit.MenuSeparator");dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td class=\"dijitMenuSeparatorIconCell\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n\t<td colspan=\"3\" class=\"dijitMenuSeparatorLabelCell\">\n\t\t<div class=\"dijitMenuSeparatorTop dijitMenuSeparatorLabel\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_2aa){_2aa.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_2ab){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}else{var _2ac=this._getTopMenu();if(_2ac&&_2ac._isMenuBar){_2ac.focusNext();}}},_onPopupHover:function(evt){if(this.currentPopup&&this.currentPopup._pendingClose_timer){var _2ad=this.currentPopup.parentMenu;if(_2ad.focusedChild){_2ad.focusedChild._setSelected(false);}_2ad.focusedChild=this.currentPopup.from_item;_2ad.focusedChild._setSelected(true);this._stopPendingCloseTimer(this.currentPopup);}},onItemHover:function(item){if(this.isActive){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}}if(this.focusedChild){this.focusChild(item);}this._hoveredChild=item;},_onChildBlur:function(item){this._stopPopupTimer();item._setSelected(false);var _2ae=item.popup;if(_2ae){this._stopPendingCloseTimer(_2ae);_2ae._pendingClose_timer=setTimeout(function(){_2ae._pendingClose_timer=null;if(_2ae.parentMenu){_2ae.parentMenu.currentPopup=null;}dijit.popup.close(_2ae);},this.popupDelay);}},onItemUnhover:function(item){if(this.isActive){this._stopPopupTimer();}if(this._hoveredChild==item){this._hoveredChild=null;}},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_stopPendingCloseTimer:function(_2af){if(_2af._pendingClose_timer){clearTimeout(_2af._pendingClose_timer);_2af._pendingClose_timer=null;}},_stopFocusTimer:function(){if(this._focus_timer){clearTimeout(this._focus_timer);this._focus_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(typeof this.isShowingNow=="undefined"){this._markActive();}this.focusChild(item);if(item.disabled){return false;}if(item.popup){this._openPopup();}else{this.onExecute();item.onClick(evt);}},_openPopup:function(){this._stopPopupTimer();var _2b0=this.focusedChild;if(!_2b0){return;}var _2b1=_2b0.popup;if(_2b1.isShowingNow){return;}if(this.currentPopup){this._stopPendingCloseTimer(this.currentPopup);dijit.popup.close(this.currentPopup);}_2b1.parentMenu=this;_2b1.from_item=_2b0;var self=this;dijit.popup.open({parent:this,popup:_2b1,around:_2b0.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){self.focusChild(_2b0);self._cleanUp();_2b0._setSelected(true);self.focusedChild=_2b0;},onExecute:dojo.hitch(this,"_cleanUp")});this.currentPopup=_2b1;_2b1.connect(_2b1.domNode,"onmouseenter",dojo.hitch(self,"_onPopupHover"));if(_2b1.focus){_2b1._focus_timer=setTimeout(dojo.hitch(_2b1,function(){this._focus_timer=null;this.focus();}),0);}},_markActive:function(){this.isActive=true;dojo.replaceClass(this.domNode,"dijitMenuActive","dijitMenuPassive");},onOpen:function(e){this.isShowingNow=true;this._markActive();},_markInactive:function(){this.isActive=false;dojo.replaceClass(this.domNode,"dijitMenuPassive","dijitMenuActive");},onClose:function(){this._stopFocusTimer();this._markInactive();this.isShowingNow=false;this.parentMenu=null;},_closeChild:function(){this._stopPopupTimer();var _2b2=this.focusedChild&&this.focusedChild.from_item;if(this.currentPopup){if(dijit._curFocus&&dojo.isDescendant(dijit._curFocus,this.currentPopup.domNode)){this.focusedChild.focusNode.focus();}dijit.popup.close(this.currentPopup);this.currentPopup=null;}if(this.focusedChild){this.focusedChild._setSelected(false);this.focusedChild._onUnhover();this.focusedChild=null;}},_onItemFocus:function(item){if(this._hoveredChild&&this._hoveredChild!=item){this._hoveredChild._onUnhover();}},_onBlur:function(){this._cleanUp();this.inherited(arguments);},_cleanUp:function(){this._closeChild();if(typeof this.isShowingNow=="undefined"){this._markInactive();}}});dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){this._bindings=[];},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" role=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\" cellspacing=\"0\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),baseClass:"dijitMenu",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}var k=dojo.keys,l=this.isLeftToRight();this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case this._openSubMenuKey:this._moveToPopup(evt);dojo.stopEvent(evt);break;case this._closeSubMenuKey:if(this.parentMenu){if(this.parentMenu._isMenuBar){this.parentMenu.focusPrev();}else{this.onCancel(false);}}else{dojo.stopEvent(evt);}break;}},_iframeContentWindow:function(_2b3){var win=dojo.window.get(this._iframeContentDocument(_2b3))||this._iframeContentDocument(_2b3)["__parent__"]||(_2b3.name&&dojo.doc.frames[_2b3.name])||null;return win;},_iframeContentDocument:function(_2b4){var doc=_2b4.contentDocument||(_2b4.contentWindow&&_2b4.contentWindow.document)||(_2b4.name&&dojo.doc.frames[_2b4.name]&&dojo.doc.frames[_2b4.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var cn;if(node.tagName.toLowerCase()=="iframe"){var _2b5=node,win=this._iframeContentWindow(_2b5);cn=dojo.withGlobal(win,dojo.body);}else{cn=(node==dojo.body()?dojo.doc.documentElement:node);}var _2b6={node:node,iframe:_2b5};dojo.attr(node,"_dijitMenu"+this.id,this._bindings.push(_2b6));var _2b7=dojo.hitch(this,function(cn){return [dojo.connect(cn,this.leftClickToOpen?"onclick":"oncontextmenu",this,function(evt){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_2b5,{x:evt.pageX,y:evt.pageY});}),dojo.connect(cn,"onkeydown",this,function(evt){if(evt.shiftKey&&evt.keyCode==dojo.keys.F10){dojo.stopEvent(evt);this._scheduleOpen(evt.target,_2b5);}})];});_2b6.connects=cn?_2b7(cn):[];if(_2b5){_2b6.onloadHandler=dojo.hitch(this,function(){var win=this._iframeContentWindow(_2b5);cn=dojo.withGlobal(win,dojo.body);_2b6.connects=_2b7(cn);});if(_2b5.addEventListener){_2b5.addEventListener("load",_2b6.onloadHandler,false);}else{_2b5.attachEvent("onload",_2b6.onloadHandler);}}},unBindDomNode:function(_2b8){var node;try{node=dojo.byId(_2b8);}catch(e){return;}var _2b9="_dijitMenu"+this.id;if(node&&dojo.hasAttr(node,_2b9)){var bid=dojo.attr(node,_2b9)-1,b=this._bindings[bid];dojo.forEach(b.connects,dojo.disconnect);var _2ba=b.iframe;if(_2ba){if(_2ba.removeEventListener){_2ba.removeEventListener("load",b.onloadHandler,false);}else{_2ba.detachEvent("onload",b.onloadHandler);}}dojo.removeAttr(node,_2b9);delete this._bindings[bid];}},_scheduleOpen:function(_2bb,_2bc,_2bd){if(!this._openTimer){this._openTimer=setTimeout(dojo.hitch(this,function(){delete this._openTimer;this._openMyself({target:_2bb,iframe:_2bc,coords:_2bd});}),1);}},_openMyself:function(args){var _2be=args.target,_2bf=args.iframe,_2c0=args.coords;if(_2c0){if(_2bf){var od=_2be.ownerDocument,ifc=dojo.position(_2bf,true),win=this._iframeContentWindow(_2bf),_2c1=dojo.withGlobal(win,"_docScroll",dojo);var cs=dojo.getComputedStyle(_2bf),tp=dojo._toPixelValue,left=(dojo.isIE&&dojo.isQuirks?0:tp(_2bf,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_2bf,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_2bf,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_2bf,cs.borderTopWidth):0);_2c0.x+=ifc.x+left-_2c1.x;_2c0.y+=ifc.y+top-_2c1.y;}}else{_2c0=dojo.position(_2be,true);_2c0.x+=10;_2c0.y+=10;}var self=this;var _2c2=dijit.getFocus(this);function _2c3(){if(self.refocus){dijit.focus(_2c2);}dijit.popup.close(self);};dijit.popup.open({popup:this,x:_2c0.x,y:_2c0.y,onExecute:_2c3,onCancel:_2c3,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},uninitialize:function(){dojo.forEach(this._bindings,function(b){if(b){this.unBindDomNode(b.node);}},this);this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.TabController"]){dojo._hasResource["dijit.layout.TabController"]=true;dojo.provide("dijit.layout.TabController");dojo.declare("dijit.layout.TabController",dijit.layout.StackController,{templateString:"<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'></div>",tabPosition:"top",buttonWidget:"dijit.layout._TabButton",_rectifyRtlTabList:function(){if(0>=this.tabPosition.indexOf("-h")){return;}if(!this.pane2button){return;}var _2c4=0;for(var pane in this.pane2button){var ow=this.pane2button[pane].innerDiv.scrollWidth;_2c4=Math.max(_2c4,ow);}for(pane in this.pane2button){this.pane2button[pane].innerDiv.style.width=_2c4+"px";}}});dojo.declare("dijit.layout._TabButton",dijit.layout._StackButton,{baseClass:"dijitTab",cssStateNodes:{closeNode:"dijitTabCloseButton"},templateString:dojo.cache("dijit.layout","templates/_TabButton.html","<div role=\"presentation\" dojoAttachPoint=\"titleNode\" dojoAttachEvent='onclick:onClick'>\n    <div role=\"presentation\" class='dijitTabInnerDiv' dojoAttachPoint='innerDiv'>\n        <div role=\"presentation\" class='dijitTabContent' dojoAttachPoint='tabContent'>\n        \t<div role=\"presentation\" dojoAttachPoint='focusNode'>\n\t\t        <img src=\"${_blankGif}\" alt=\"\" class=\"dijitIcon dijitTabButtonIcon\" dojoAttachPoint='iconNode' />\n\t\t        <span dojoAttachPoint='containerNode' class='tabLabel'></span>\n\t\t        <span class=\"dijitInline dijitTabCloseButton dijitTabCloseIcon\" dojoAttachPoint='closeNode'\n\t\t        \t\tdojoAttachEvent='onclick: onClickCloseButton' role=\"presentation\">\n\t\t            <span dojoAttachPoint='closeText' class='dijitTabCloseText'>[x]</span\n\t\t        ></span>\n\t\t\t</div>\n        </div>\n    </div>\n</div>\n"),scrollOnFocus:false,buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.containerNode,false);},startup:function(){this.inherited(arguments);var n=this.domNode;setTimeout(function(){n.className=n.className;},1);},_setCloseButtonAttr:function(disp){this._set("closeButton",disp);dojo.toggleClass(this.innerDiv,"dijitClosable",disp);this.closeNode.style.display=disp?"":"none";if(disp){var _2c5=dojo.i18n.getLocalization("dijit","common");if(this.closeNode){dojo.attr(this.closeNode,"title",_2c5.itemClose);}var _2c5=dojo.i18n.getLocalization("dijit","common");this._closeMenu=new dijit.Menu({id:this.id+"_Menu",dir:this.dir,lang:this.lang,targetNodeIds:[this.domNode]});this._closeMenu.addChild(new dijit.MenuItem({label:_2c5.itemClose,dir:this.dir,lang:this.lang,onClick:dojo.hitch(this,"onClickCloseButton")}));}else{if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}}},_setLabelAttr:function(_2c6){this.inherited(arguments);if(this.showLabel==false&&!this.params.title){this.iconNode.alt=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");}},destroy:function(){if(this._closeMenu){this._closeMenu.destroyRecursive();delete this._closeMenu;}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout.ScrollingTabController"]){dojo._hasResource["dijit.layout.ScrollingTabController"]=true;dojo.provide("dijit.layout.ScrollingTabController");dojo.declare("dijit.layout.ScrollingTabController",dijit.layout.TabController,{templateString:dojo.cache("dijit.layout","templates/ScrollingTabController.html","<div class=\"dijitTabListContainer-${tabPosition}\" style=\"visibility:hidden\">\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerMenuButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_menuBtn\" containerId=\"${containerId}\" iconClass=\"dijitTabStripMenuIcon\"\n\t\t\tdropDownPosition=\"below-alt, above-alt\"\n\t\t\tdojoAttachPoint=\"_menuBtn\" showLabel=\"false\">&#9660;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_leftBtn\" iconClass=\"dijitTabStripSlideLeftIcon\"\n\t\t\tdojoAttachPoint=\"_leftBtn\" dojoAttachEvent=\"onClick: doSlideLeft\" showLabel=\"false\">&#9664;</div>\n\t<div dojoType=\"dijit.layout._ScrollingTabControllerButton\"\n\t\t\tclass=\"tabStripButton-${tabPosition}\"\n\t\t\tid=\"${id}_rightBtn\" iconClass=\"dijitTabStripSlideRightIcon\"\n\t\t\tdojoAttachPoint=\"_rightBtn\" dojoAttachEvent=\"onClick: doSlideRight\" showLabel=\"false\">&#9654;</div>\n\t<div class='dijitTabListWrapper' dojoAttachPoint='tablistWrapper'>\n\t\t<div role='tablist' dojoAttachEvent='onkeypress:onkeypress'\n\t\t\t\tdojoAttachPoint='containerNode' class='nowrapTabStrip'></div>\n\t</div>\n</div>\n"),useMenu:true,useSlider:true,tabStripClass:"",widgetsInTemplate:true,_minScroll:5,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{"class":"containerNode"}),buildRendering:function(){this.inherited(arguments);var n=this.domNode;this.scrollNode=this.tablistWrapper;this._initButtons();if(!this.tabStripClass){this.tabStripClass="dijitTabContainer"+this.tabPosition.charAt(0).toUpperCase()+this.tabPosition.substr(1).replace(/-.*/,"")+"None";dojo.addClass(n,"tabStrip-disabled");}dojo.addClass(this.tablistWrapper,this.tabStripClass);},onStartup:function(){this.inherited(arguments);dojo.style(this.domNode,"visibility","visible");this._postStartup=true;},onAddChild:function(page,_2c7){this.inherited(arguments);dojo.forEach(["label","iconClass"],function(attr){this.pane2watches[page.id].push(this.pane2button[page.id].watch(attr,dojo.hitch(this,function(name,_2c8,_2c9){if(this._postStartup&&this._dim){this.resize(this._dim);}})));},this);dojo.style(this.containerNode,"width",(dojo.style(this.containerNode,"width")+200)+"px");},onRemoveChild:function(page,_2ca){var _2cb=this.pane2button[page.id];if(this._selectedTab===_2cb.domNode){this._selectedTab=null;}this.inherited(arguments);},_initButtons:function(){this._btnWidth=0;this._buttons=dojo.query("> .tabStripButton",this.domNode).filter(function(btn){if((this.useMenu&&btn==this._menuBtn.domNode)||(this.useSlider&&(btn==this._rightBtn.domNode||btn==this._leftBtn.domNode))){this._btnWidth+=dojo._getMarginSize(btn).w;return true;}else{dojo.style(btn,"display","none");return false;}},this);},_getTabsWidth:function(){var _2cc=this.getChildren();if(_2cc.length){var _2cd=_2cc[this.isLeftToRight()?0:_2cc.length-1].domNode,_2ce=_2cc[this.isLeftToRight()?_2cc.length-1:0].domNode;return _2ce.offsetLeft+dojo.style(_2ce,"width")-_2cd.offsetLeft;}else{return 0;}},_enableBtn:function(_2cf){var _2d0=this._getTabsWidth();_2cf=_2cf||dojo.style(this.scrollNode,"width");return _2d0>0&&_2cf<_2d0;},resize:function(dim){if(this.domNode.offsetWidth==0){return;}this._dim=dim;this.scrollNode.style.height="auto";this._contentBox=dijit.layout.marginBox2contentBox(this.domNode,{h:0,w:dim.w});this._contentBox.h=this.scrollNode.offsetHeight;dojo.contentBox(this.domNode,this._contentBox);var _2d1=this._enableBtn(this._contentBox.w);this._buttons.style("display",_2d1?"":"none");this._leftBtn.layoutAlign="left";this._rightBtn.layoutAlign="right";this._menuBtn.layoutAlign=this.isLeftToRight()?"right":"left";dijit.layout.layoutChildren(this.domNode,this._contentBox,[this._menuBtn,this._leftBtn,this._rightBtn,{domNode:this.scrollNode,layoutAlign:"client"}]);if(this._selectedTab){if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var w=this.scrollNode,sl=this._convertToScrollLeft(this._getScrollForSelectedTab());w.scrollLeft=sl;}this._setButtonClass(this._getScroll());this._postResize=true;return {h:this._contentBox.h,w:dim.w};},_getScroll:function(){var sl=(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit)?this.scrollNode.scrollLeft:dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width")+(dojo.isIE==8?-1:1)*this.scrollNode.scrollLeft;return sl;},_convertToScrollLeft:function(val){if(this.isLeftToRight()||dojo.isIE<8||(dojo.isIE&&dojo.isQuirks)||dojo.isWebKit){return val;}else{var _2d2=dojo.style(this.containerNode,"width")-dojo.style(this.scrollNode,"width");return (dojo.isIE==8?-1:1)*(val-_2d2);}},onSelectChild:function(page){var tab=this.pane2button[page.id];if(!tab||!page){return;}var node=tab.domNode;if(this._postResize&&node!=this._selectedTab){this._selectedTab=node;var sl=this._getScroll();if(sl>node.offsetLeft||sl+dojo.style(this.scrollNode,"width")<node.offsetLeft+dojo.style(node,"width")){this.createSmoothScroll().play();}}this.inherited(arguments);},_getScrollBounds:function(){var _2d3=this.getChildren(),_2d4=dojo.style(this.scrollNode,"width"),_2d5=dojo.style(this.containerNode,"width"),_2d6=_2d5-_2d4,_2d7=this._getTabsWidth();if(_2d3.length&&_2d7>_2d4){return {min:this.isLeftToRight()?0:_2d3[_2d3.length-1].domNode.offsetLeft,max:this.isLeftToRight()?(_2d3[_2d3.length-1].domNode.offsetLeft+dojo.style(_2d3[_2d3.length-1].domNode,"width"))-_2d4:_2d6};}else{var _2d8=this.isLeftToRight()?0:_2d6;return {min:_2d8,max:_2d8};}},_getScrollForSelectedTab:function(){var w=this.scrollNode,n=this._selectedTab,_2d9=dojo.style(this.scrollNode,"width"),_2da=this._getScrollBounds();var pos=(n.offsetLeft+dojo.style(n,"width")/2)-_2d9/2;pos=Math.min(Math.max(pos,_2da.min),_2da.max);return pos;},createSmoothScroll:function(x){if(arguments.length>0){var _2db=this._getScrollBounds();x=Math.min(Math.max(x,_2db.min),_2db.max);}else{x=this._getScrollForSelectedTab();}if(this._anim&&this._anim.status()=="playing"){this._anim.stop();}var self=this,w=this.scrollNode,anim=new dojo._Animation({beforeBegin:function(){if(this.curve){delete this.curve;}var oldS=w.scrollLeft,newS=self._convertToScrollLeft(x);anim.curve=new dojo._Line(oldS,newS);},onAnimate:function(val){w.scrollLeft=val;}});this._anim=anim;this._setButtonClass(x);return anim;},_getBtnNode:function(e){var n=e.target;while(n&&!dojo.hasClass(n,"tabStripButton")){n=n.parentNode;}return n;},doSlideRight:function(e){this.doSlide(1,this._getBtnNode(e));},doSlideLeft:function(e){this.doSlide(-1,this._getBtnNode(e));},doSlide:function(_2dc,node){if(node&&dojo.hasClass(node,"dijitTabDisabled")){return;}var _2dd=dojo.style(this.scrollNode,"width");var d=(_2dd*0.75)*_2dc;var to=this._getScroll()+d;this._setButtonClass(to);this.createSmoothScroll(to).play();},_setButtonClass:function(_2de){var _2df=this._getScrollBounds();this._leftBtn.set("disabled",_2de<=_2df.min);this._rightBtn.set("disabled",_2de>=_2df.max);}});dojo.declare("dijit.layout._ScrollingTabControllerButtonMixin",null,{baseClass:"dijitTab tabStripButton",templateString:dojo.cache("dijit.layout","templates/_ScrollingTabControllerButton.html","<div dojoAttachEvent=\"onclick:_onButtonClick\">\n\t<div role=\"presentation\" class=\"dijitTabInnerDiv\" dojoattachpoint=\"innerDiv,focusNode\">\n\t\t<div role=\"presentation\" class=\"dijitTabContent dijitButtonContents\" dojoattachpoint=\"tabContent\">\n\t\t\t<img role=\"presentation\" alt=\"\" src=\"${_blankGif}\" class=\"dijitTabStripIcon\" dojoAttachPoint=\"iconNode\"/>\n\t\t\t<span dojoAttachPoint=\"containerNode,titleNode\" class=\"dijitButtonText\"></span>\n\t\t</div>\n\t</div>\n</div>\n"),tabIndex:"",isFocusable:function(){return false;}});dojo.declare("dijit.layout._ScrollingTabControllerButton",[dijit.form.Button,dijit.layout._ScrollingTabControllerButtonMixin]);dojo.declare("dijit.layout._ScrollingTabControllerMenuButton",[dijit.form.Button,dijit._HasDropDown,dijit.layout._ScrollingTabControllerButtonMixin],{containerId:"",tabIndex:"-1",isLoaded:function(){return false;},loadDropDown:function(_2e0){this.dropDown=new dijit.Menu({id:this.containerId+"_menu",dir:this.dir,lang:this.lang});var _2e1=dijit.byId(this.containerId);dojo.forEach(_2e1.getChildren(),function(page){var _2e2=new dijit.MenuItem({id:page.id+"_stcMi",label:page.title,iconClass:page.iconClass,dir:page.dir,lang:page.lang,onClick:function(){_2e1.selectChild(page);}});this.dropDown.addChild(_2e2);},this);_2e0();},closeDropDown:function(_2e3){this.inherited(arguments);if(this.dropDown){this.dropDown.destroyRecursive();delete this.dropDown;}}});}if(!dojo._hasResource["dijit.layout.TabContainer"]){dojo._hasResource["dijit.layout.TabContainer"]=true;dojo.provide("dijit.layout.TabContainer");dojo.declare("dijit.layout.TabContainer",dijit.layout._TabContainerBase,{useMenu:true,useSlider:true,controllerWidget:"",_makeController:function(_2e4){var cls=this.baseClass+"-tabs"+(this.doLayout?"":" dijitTabNoLayout"),_2e5=dojo.getObject(this.controllerWidget);return new _2e5({id:this.id+"_tablist",dir:this.dir,lang:this.lang,tabPosition:this.tabPosition,doLayout:this.doLayout,containerId:this.id,"class":cls,nested:this.nested,useMenu:this.useMenu,useSlider:this.useSlider,tabStripClass:this.tabStrip?this.baseClass+(this.tabStrip?"":"No")+"Strip":null},_2e4);},postMixInProperties:function(){this.inherited(arguments);if(!this.controllerWidget){this.controllerWidget=(this.tabPosition=="top"||this.tabPosition=="bottom")&&!this.nested?"dijit.layout.ScrollingTabController":"dijit.layout.TabController";}}});}if(!dojo._hasResource["dojo.data.util.filter"]){dojo._hasResource["dojo.data.util.filter"]=true;dojo.provide("dojo.data.util.filter");dojo.getObject("data.util.filter",true,dojo);dojo.data.util.filter.patternToRegExp=function(_2e6,_2e7){var rxp="^";var c=null;for(var i=0;i<_2e6.length;i++){c=_2e6.charAt(i);switch(c){case "\\":rxp+=c;i++;rxp+=_2e6.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(_2e7){return new RegExp(rxp,"mi");}else{return new RegExp(rxp,"m");}};}if(!dojo._hasResource["dojo.data.util.sorter"]){dojo._hasResource["dojo.data.util.sorter"]=true;dojo.provide("dojo.data.util.sorter");dojo.getObject("data.util.sorter",true,dojo);dojo.data.util.sorter.basicComparator=function(a,b){var r=-1;if(a===null){a=undefined;}if(b===null){b=undefined;}if(a==b){r=0;}else{if(a>b||a==null){r=1;}}return r;};dojo.data.util.sorter.createSortFunction=function(_2e8,_2e9){var _2ea=[];function _2eb(attr,dir,comp,s){return function(_2ec,_2ed){var a=s.getValue(_2ec,attr);var b=s.getValue(_2ed,attr);return dir*comp(a,b);};};var _2ee;var map=_2e9.comparatorMap;var bc=dojo.data.util.sorter.basicComparator;for(var i=0;i<_2e8.length;i++){_2ee=_2e8[i];var attr=_2ee.attribute;if(attr){var dir=(_2ee.descending)?-1:1;var comp=bc;if(map){if(typeof attr!=="string"&&("toString" in attr)){attr=attr.toString();}comp=map[attr]||bc;}_2ea.push(_2eb(attr,dir,comp,_2e9));}}return function(rowA,rowB){var i=0;while(i<_2ea.length){var ret=_2ea[i++](rowA,rowB);if(ret!==0){return ret;}}return 0;};};}if(!dojo._hasResource["dojo.data.util.simpleFetch"]){dojo._hasResource["dojo.data.util.simpleFetch"]=true;dojo.provide("dojo.data.util.simpleFetch");dojo.getObject("data.util.simpleFetch",true,dojo);dojo.data.util.simpleFetch.fetch=function(_2ef){_2ef=_2ef||{};if(!_2ef.store){_2ef.store=this;}var self=this;var _2f0=function(_2f1,_2f2){if(_2f2.onError){var _2f3=_2f2.scope||dojo.global;_2f2.onError.call(_2f3,_2f1,_2f2);}};var _2f4=function(_2f5,_2f6){var _2f7=_2f6.abort||null;var _2f8=false;var _2f9=_2f6.start?_2f6.start:0;var _2fa=(_2f6.count&&(_2f6.count!==Infinity))?(_2f9+_2f6.count):_2f5.length;_2f6.abort=function(){_2f8=true;if(_2f7){_2f7.call(_2f6);}};var _2fb=_2f6.scope||dojo.global;if(!_2f6.store){_2f6.store=self;}if(_2f6.onBegin){_2f6.onBegin.call(_2fb,_2f5.length,_2f6);}if(_2f6.sort){_2f5.sort(dojo.data.util.sorter.createSortFunction(_2f6.sort,self));}if(_2f6.onItem){for(var i=_2f9;(i<_2f5.length)&&(i<_2fa);++i){var item=_2f5[i];if(!_2f8){_2f6.onItem.call(_2fb,item,_2f6);}}}if(_2f6.onComplete&&!_2f8){var _2fc=null;if(!_2f6.onItem){_2fc=_2f5.slice(_2f9,_2fa);}_2f6.onComplete.call(_2fb,_2fc,_2f6);}};this._fetchItems(_2ef,_2f4,_2f0);return _2ef;};}if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){dojo._hasResource["dojo.data.ItemFileReadStore"]=true;dojo.provide("dojo.data.ItemFileReadStore");dojo.declare("dojo.data.ItemFileReadStore",null,{constructor:function(_2fd){this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._jsonFileUrl=_2fd.url;this._ccUrl=_2fd.url;this.url=_2fd.url;this._jsonData=_2fd.data;this.data=null;this._datatypeMap=_2fd.typeMap||{};if(!this._datatypeMap["Date"]){this._datatypeMap["Date"]={type:Date,deserialize:function(_2fe){return dojo.date.stamp.fromISOString(_2fe);}};}this._features={"dojo.data.api.Read":true,"dojo.data.api.Identity":true};this._itemsByIdentity=null;this._storeRefPropName="_S";this._itemNumPropName="_0";this._rootItemPropName="_RI";this._reverseRefMap="_RRM";this._loadInProgress=false;this._queuedFetches=[];if(_2fd.urlPreventCache!==undefined){this.urlPreventCache=_2fd.urlPreventCache?true:false;}if(_2fd.hierarchical!==undefined){this.hierarchical=_2fd.hierarchical?true:false;}if(_2fd.clearOnClose){this.clearOnClose=true;}if("failOk" in _2fd){this.failOk=_2fd.failOk?true:false;}},url:"",_ccUrl:"",data:null,typeMap:null,clearOnClose:false,urlPreventCache:false,failOk:false,hierarchical:true,_assertIsItem:function(item){if(!this.isItem(item)){throw new Error("dojo.data.ItemFileReadStore: Invalid item argument.");}},_assertIsAttribute:function(_2ff){if(typeof _2ff!=="string"){throw new Error("dojo.data.ItemFileReadStore: Invalid attribute argument.");}},getValue:function(item,_300,_301){var _302=this.getValues(item,_300);return (_302.length>0)?_302[0]:_301;},getValues:function(item,_303){this._assertIsItem(item);this._assertIsAttribute(_303);return (item[_303]||[]).slice(0);},getAttributes:function(item){this._assertIsItem(item);var _304=[];for(var key in item){if((key!==this._storeRefPropName)&&(key!==this._itemNumPropName)&&(key!==this._rootItemPropName)&&(key!==this._reverseRefMap)){_304.push(key);}}return _304;},hasAttribute:function(item,_305){this._assertIsItem(item);this._assertIsAttribute(_305);return (_305 in item);},containsValue:function(item,_306,_307){var _308=undefined;if(typeof _307==="string"){_308=dojo.data.util.filter.patternToRegExp(_307,false);}return this._containsValue(item,_306,_307,_308);},_containsValue:function(item,_309,_30a,_30b){return dojo.some(this.getValues(item,_309),function(_30c){if(_30c!==null&&!dojo.isObject(_30c)&&_30b){if(_30c.toString().match(_30b)){return true;}}else{if(_30a===_30c){return true;}}});},isItem:function(_30d){if(_30d&&_30d[this._storeRefPropName]===this){if(this._arrayOfAllItems[_30d[this._itemNumPropName]]===_30d){return true;}}return false;},isItemLoaded:function(_30e){return this.isItem(_30e);},loadItem:function(_30f){this._assertIsItem(_30f.item);},getFeatures:function(){return this._features;},getLabel:function(item){if(this._labelAttr&&this.isItem(item)){return this.getValue(item,this._labelAttr);}return undefined;},getLabelAttributes:function(item){if(this._labelAttr){return [this._labelAttr];}return null;},_fetchItems:function(_310,_311,_312){var self=this,_313=function(_314,_315){var _316=[],i,key;if(_314.query){var _317,_318=_314.queryOptions?_314.queryOptions.ignoreCase:false;var _319={};for(key in _314.query){_317=_314.query[key];if(typeof _317==="string"){_319[key]=dojo.data.util.filter.patternToRegExp(_317,_318);}else{if(_317 instanceof RegExp){_319[key]=_317;}}}for(i=0;i<_315.length;++i){var _31a=true;var _31b=_315[i];if(_31b===null){_31a=false;}else{for(key in _314.query){_317=_314.query[key];if(!self._containsValue(_31b,key,_317,_319[key])){_31a=false;}}}if(_31a){_316.push(_31b);}}_311(_316,_314);}else{for(i=0;i<_315.length;++i){var item=_315[i];if(item!==null){_316.push(item);}}_311(_316,_314);}};if(this._loadFinished){_313(_310,this._getItemsArray(_310.queryOptions));}else{if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_310,filter:_313});}else{this._loadInProgress=true;var _31c={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _31d=dojo.xhrGet(_31c);_31d.addCallback(function(data){try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;_313(_310,self._getItemsArray(_310.queryOptions));self._handleQueuedFetches();}catch(e){self._loadFinished=true;self._loadInProgress=false;_312(e,_310);}});_31d.addErrback(function(_31e){self._loadInProgress=false;_312(_31e,_310);});var _31f=null;if(_310.abort){_31f=_310.abort;}_310.abort=function(){var df=_31d;if(df&&df.fired===-1){df.cancel();df=null;}if(_31f){_31f.call(_310);}};}}else{if(this._jsonData){try{this._loadFinished=true;this._getItemsFromLoadedData(this._jsonData);this._jsonData=null;_313(_310,this._getItemsArray(_310.queryOptions));}catch(e){_312(e,_310);}}else{_312(new Error("dojo.data.ItemFileReadStore: No JSON source data was provided as either URL or a nested Javascript object."),_310);}}}},_handleQueuedFetches:function(){if(this._queuedFetches.length>0){for(var i=0;i<this._queuedFetches.length;i++){var _320=this._queuedFetches[i],_321=_320.args,_322=_320.filter;if(_322){_322(_321,this._getItemsArray(_321.queryOptions));}else{this.fetchItemByIdentity(_321);}}this._queuedFetches=[];}},_getItemsArray:function(_323){if(_323&&_323.deep){return this._arrayOfAllItems;}return this._arrayOfTopLevelItems;},close:function(_324){if(this.clearOnClose&&this._loadFinished&&!this._loadInProgress){if(((this._jsonFileUrl==""||this._jsonFileUrl==null)&&(this.url==""||this.url==null))&&this.data==null){console.debug("dojo.data.ItemFileReadStore: WARNING!  Data reload "+" information has not been provided."+"  Please set 'url' or 'data' to the appropriate value before"+" the next fetch");}this._arrayOfAllItems=[];this._arrayOfTopLevelItems=[];this._loadFinished=false;this._itemsByIdentity=null;this._loadInProgress=false;this._queuedFetches=[];}},_getItemsFromLoadedData:function(_325){var _326=false,self=this;function _327(_328){var _329=((_328!==null)&&(typeof _328==="object")&&(!dojo.isArray(_328)||_326)&&(!dojo.isFunction(_328))&&(_328.constructor==Object||dojo.isArray(_328))&&(typeof _328._reference==="undefined")&&(typeof _328._type==="undefined")&&(typeof _328._value==="undefined")&&self.hierarchical);return _329;};function _32a(_32b){self._arrayOfAllItems.push(_32b);for(var _32c in _32b){var _32d=_32b[_32c];if(_32d){if(dojo.isArray(_32d)){var _32e=_32d;for(var k=0;k<_32e.length;++k){var _32f=_32e[k];if(_327(_32f)){_32a(_32f);}}}else{if(_327(_32d)){_32a(_32d);}}}}};this._labelAttr=_325.label;var i,item;this._arrayOfAllItems=[];this._arrayOfTopLevelItems=_325.items;for(i=0;i<this._arrayOfTopLevelItems.length;++i){item=this._arrayOfTopLevelItems[i];if(dojo.isArray(item)){_326=true;}_32a(item);item[this._rootItemPropName]=true;}var _330={},key;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){if(key!==this._rootItemPropName){var _331=item[key];if(_331!==null){if(!dojo.isArray(_331)){item[key]=[_331];}}else{item[key]=[null];}}_330[key]=key;}}while(_330[this._storeRefPropName]){this._storeRefPropName+="_";}while(_330[this._itemNumPropName]){this._itemNumPropName+="_";}while(_330[this._reverseRefMap]){this._reverseRefMap+="_";}var _332;var _333=_325.identifier;if(_333){this._itemsByIdentity={};this._features["dojo.data.api.Identity"]=_333;for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];_332=item[_333];var _334=_332[0];if(!Object.hasOwnProperty.call(this._itemsByIdentity,_334)){this._itemsByIdentity[_334]=item;}else{if(this._jsonFileUrl){throw new Error("dojo.data.ItemFileReadStore:  The json data as specified by: ["+this._jsonFileUrl+"] is malformed.  Items within the list have identifier: ["+_333+"].  Value collided: ["+_334+"]");}else{if(this._jsonData){throw new Error("dojo.data.ItemFileReadStore:  The json data provided by the creation arguments is malformed.  Items within the list have identifier: ["+_333+"].  Value collided: ["+_334+"]");}}}}}else{this._features["dojo.data.api.Identity"]=Number;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];item[this._storeRefPropName]=this;item[this._itemNumPropName]=i;}for(i=0;i<this._arrayOfAllItems.length;++i){item=this._arrayOfAllItems[i];for(key in item){_332=item[key];for(var j=0;j<_332.length;++j){_331=_332[j];if(_331!==null&&typeof _331=="object"){if(("_type" in _331)&&("_value" in _331)){var type=_331._type;var _335=this._datatypeMap[type];if(!_335){throw new Error("dojo.data.ItemFileReadStore: in the typeMap constructor arg, no object class was specified for the datatype '"+type+"'");}else{if(dojo.isFunction(_335)){_332[j]=new _335(_331._value);}else{if(dojo.isFunction(_335.deserialize)){_332[j]=_335.deserialize(_331._value);}else{throw new Error("dojo.data.ItemFileReadStore: Value provided in typeMap was neither a constructor, nor a an object with a deserialize function");}}}}if(_331._reference){var _336=_331._reference;if(!dojo.isObject(_336)){_332[j]=this._getItemByIdentity(_336);}else{for(var k=0;k<this._arrayOfAllItems.length;++k){var _337=this._arrayOfAllItems[k],_338=true;for(var _339 in _336){if(_337[_339]!=_336[_339]){_338=false;}}if(_338){_332[j]=_337;}}}if(this.referenceIntegrity){var _33a=_332[j];if(this.isItem(_33a)){this._addReferenceToMap(_33a,item,key);}}}else{if(this.isItem(_331)){if(this.referenceIntegrity){this._addReferenceToMap(_331,item,key);}}}}}}}},_addReferenceToMap:function(_33b,_33c,_33d){},getIdentity:function(item){var _33e=this._features["dojo.data.api.Identity"];if(_33e===Number){return item[this._itemNumPropName];}else{var _33f=item[_33e];if(_33f){return _33f[0];}}return null;},fetchItemByIdentity:function(_340){var item,_341;if(!this._loadFinished){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null&&this._jsonData==null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){if(this._loadInProgress){this._queuedFetches.push({args:_340});}else{this._loadInProgress=true;var _342={url:self._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk};var _343=dojo.xhrGet(_342);_343.addCallback(function(data){var _344=_340.scope?_340.scope:dojo.global;try{self._getItemsFromLoadedData(data);self._loadFinished=true;self._loadInProgress=false;item=self._getItemByIdentity(_340.identity);if(_340.onItem){_340.onItem.call(_344,item);}self._handleQueuedFetches();}catch(error){self._loadInProgress=false;if(_340.onError){_340.onError.call(_344,error);}}});_343.addErrback(function(_345){self._loadInProgress=false;if(_340.onError){var _346=_340.scope?_340.scope:dojo.global;_340.onError.call(_346,_345);}});}}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;item=self._getItemByIdentity(_340.identity);if(_340.onItem){_341=_340.scope?_340.scope:dojo.global;_340.onItem.call(_341,item);}}}}else{item=this._getItemByIdentity(_340.identity);if(_340.onItem){_341=_340.scope?_340.scope:dojo.global;_340.onItem.call(_341,item);}}},_getItemByIdentity:function(_347){var item=null;if(this._itemsByIdentity&&Object.hasOwnProperty.call(this._itemsByIdentity,_347)){item=this._itemsByIdentity[_347];}else{if(Object.hasOwnProperty.call(this._arrayOfAllItems,_347)){item=this._arrayOfAllItems[_347];}}if(item===undefined){item=null;}return item;},getIdentityAttributes:function(item){var _348=this._features["dojo.data.api.Identity"];if(_348===Number){return null;}else{return [_348];}},_forceLoad:function(){var self=this;if(this._jsonFileUrl!==this._ccUrl){dojo.deprecated("dojo.data.ItemFileReadStore: ","To change the url, set the url property of the store,"+" not _jsonFileUrl.  _jsonFileUrl support will be removed in 2.0");this._ccUrl=this._jsonFileUrl;this.url=this._jsonFileUrl;}else{if(this.url!==this._ccUrl){this._jsonFileUrl=this.url;this._ccUrl=this.url;}}if(this.data!=null){this._jsonData=this.data;this.data=null;}if(this._jsonFileUrl){var _349={url:this._jsonFileUrl,handleAs:"json-comment-optional",preventCache:this.urlPreventCache,failOk:this.failOk,sync:true};var _34a=dojo.xhrGet(_349);_34a.addCallback(function(data){try{if(self._loadInProgress!==true&&!self._loadFinished){self._getItemsFromLoadedData(data);self._loadFinished=true;}else{if(self._loadInProgress){throw new Error("dojo.data.ItemFileReadStore:  Unable to perform a synchronous load, an async load is in progress.");}}}catch(e){console.log(e);throw e;}});_34a.addErrback(function(_34b){throw _34b;});}else{if(this._jsonData){self._getItemsFromLoadedData(self._jsonData);self._jsonData=null;self._loadFinished=true;}}}});dojo.extend(dojo.data.ItemFileReadStore,dojo.data.util.simpleFetch);}if(!dojo._hasResource["dojo.data.ItemFileWriteStore"]){dojo._hasResource["dojo.data.ItemFileWriteStore"]=true;dojo.provide("dojo.data.ItemFileWriteStore");dojo.declare("dojo.data.ItemFileWriteStore",dojo.data.ItemFileReadStore,{constructor:function(_34c){this._features["dojo.data.api.Write"]=true;this._features["dojo.data.api.Notification"]=true;this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};if(!this._datatypeMap["Date"].serialize){this._datatypeMap["Date"].serialize=function(obj){return dojo.date.stamp.toISOString(obj,{zulu:true});};}if(_34c&&(_34c.referenceIntegrity===false)){this.referenceIntegrity=false;}this._saveInProgress=false;},referenceIntegrity:true,_assert:function(_34d){if(!_34d){throw new Error("assertion failed in ItemFileWriteStore");}},_getIdentifierAttribute:function(){var _34e=this.getFeatures()["dojo.data.api.Identity"];return _34e;},newItem:function(_34f,_350){this._assert(!this._saveInProgress);if(!this._loadFinished){this._forceLoad();}if(typeof _34f!="object"&&typeof _34f!="undefined"){throw new Error("newItem() was passed something other than an object");}var _351=null;var _352=this._getIdentifierAttribute();if(_352===Number){_351=this._arrayOfAllItems.length;}else{_351=_34f[_352];if(typeof _351==="undefined"){throw new Error("newItem() was not passed an identity for the new item");}if(dojo.isArray(_351)){throw new Error("newItem() was not passed an single-valued identity");}}if(this._itemsByIdentity){this._assert(typeof this._itemsByIdentity[_351]==="undefined");}this._assert(typeof this._pending._newItems[_351]==="undefined");this._assert(typeof this._pending._deletedItems[_351]==="undefined");var _353={};_353[this._storeRefPropName]=this;_353[this._itemNumPropName]=this._arrayOfAllItems.length;if(this._itemsByIdentity){this._itemsByIdentity[_351]=_353;_353[_352]=[_351];}this._arrayOfAllItems.push(_353);var _354=null;if(_350&&_350.parent&&_350.attribute){_354={item:_350.parent,attribute:_350.attribute,oldValue:undefined};var _355=this.getValues(_350.parent,_350.attribute);if(_355&&_355.length>0){var _356=_355.slice(0,_355.length);if(_355.length===1){_354.oldValue=_355[0];}else{_354.oldValue=_355.slice(0,_355.length);}_356.push(_353);this._setValueOrValues(_350.parent,_350.attribute,_356,false);_354.newValue=this.getValues(_350.parent,_350.attribute);}else{this._setValueOrValues(_350.parent,_350.attribute,_353,false);_354.newValue=_353;}}else{_353[this._rootItemPropName]=true;this._arrayOfTopLevelItems.push(_353);}this._pending._newItems[_351]=_353;for(var key in _34f){if(key===this._storeRefPropName||key===this._itemNumPropName){throw new Error("encountered bug in ItemFileWriteStore.newItem");}var _357=_34f[key];if(!dojo.isArray(_357)){_357=[_357];}_353[key]=_357;if(this.referenceIntegrity){for(var i=0;i<_357.length;i++){var val=_357[i];if(this.isItem(val)){this._addReferenceToMap(val,_353,key);}}}}this.onNew(_353,_354);return _353;},_removeArrayElement:function(_358,_359){var _35a=dojo.indexOf(_358,_359);if(_35a!=-1){_358.splice(_35a,1);return true;}return false;},deleteItem:function(item){this._assert(!this._saveInProgress);this._assertIsItem(item);var _35b=item[this._itemNumPropName];var _35c=this.getIdentity(item);if(this.referenceIntegrity){var _35d=this.getAttributes(item);if(item[this._reverseRefMap]){item["backup_"+this._reverseRefMap]=dojo.clone(item[this._reverseRefMap]);}dojo.forEach(_35d,function(_35e){dojo.forEach(this.getValues(item,_35e),function(_35f){if(this.isItem(_35f)){if(!item["backupRefs_"+this._reverseRefMap]){item["backupRefs_"+this._reverseRefMap]=[];}item["backupRefs_"+this._reverseRefMap].push({id:this.getIdentity(_35f),attr:_35e});this._removeReferenceFromMap(_35f,item,_35e);}},this);},this);var _360=item[this._reverseRefMap];if(_360){for(var _361 in _360){var _362=null;if(this._itemsByIdentity){_362=this._itemsByIdentity[_361];}else{_362=this._arrayOfAllItems[_361];}if(_362){for(var _363 in _360[_361]){var _364=this.getValues(_362,_363)||[];var _365=dojo.filter(_364,function(_366){return !(this.isItem(_366)&&this.getIdentity(_366)==_35c);},this);this._removeReferenceFromMap(item,_362,_363);if(_365.length<_364.length){this._setValueOrValues(_362,_363,_365,true);}}}}}}this._arrayOfAllItems[_35b]=null;item[this._storeRefPropName]=null;if(this._itemsByIdentity){delete this._itemsByIdentity[_35c];}this._pending._deletedItems[_35c]=item;if(item[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,item);}this.onDelete(item);return true;},setValue:function(item,_367,_368){return this._setValueOrValues(item,_367,_368,true);},setValues:function(item,_369,_36a){return this._setValueOrValues(item,_369,_36a,true);},unsetAttribute:function(item,_36b){return this._setValueOrValues(item,_36b,[],true);},_setValueOrValues:function(item,_36c,_36d,_36e){this._assert(!this._saveInProgress);this._assertIsItem(item);this._assert(dojo.isString(_36c));this._assert(typeof _36d!=="undefined");var _36f=this._getIdentifierAttribute();if(_36c==_36f){throw new Error("ItemFileWriteStore does not have support for changing the value of an item's identifier.");}var _370=this._getValueOrValues(item,_36c);var _371=this.getIdentity(item);if(!this._pending._modifiedItems[_371]){var _372={};for(var key in item){if((key===this._storeRefPropName)||(key===this._itemNumPropName)||(key===this._rootItemPropName)){_372[key]=item[key];}else{if(key===this._reverseRefMap){_372[key]=dojo.clone(item[key]);}else{_372[key]=item[key].slice(0,item[key].length);}}}this._pending._modifiedItems[_371]=_372;}var _373=false;if(dojo.isArray(_36d)&&_36d.length===0){_373=delete item[_36c];_36d=undefined;if(this.referenceIntegrity&&_370){var _374=_370;if(!dojo.isArray(_374)){_374=[_374];}for(var i=0;i<_374.length;i++){var _375=_374[i];if(this.isItem(_375)){this._removeReferenceFromMap(_375,item,_36c);}}}}else{var _376;if(dojo.isArray(_36d)){var _377=_36d;_376=_36d.slice(0,_36d.length);}else{_376=[_36d];}if(this.referenceIntegrity){if(_370){var _374=_370;if(!dojo.isArray(_374)){_374=[_374];}var map={};dojo.forEach(_374,function(_378){if(this.isItem(_378)){var id=this.getIdentity(_378);map[id.toString()]=true;}},this);dojo.forEach(_376,function(_379){if(this.isItem(_379)){var id=this.getIdentity(_379);if(map[id.toString()]){delete map[id.toString()];}else{this._addReferenceToMap(_379,item,_36c);}}},this);for(var rId in map){var _37a;if(this._itemsByIdentity){_37a=this._itemsByIdentity[rId];}else{_37a=this._arrayOfAllItems[rId];}this._removeReferenceFromMap(_37a,item,_36c);}}else{for(var i=0;i<_376.length;i++){var _375=_376[i];if(this.isItem(_375)){this._addReferenceToMap(_375,item,_36c);}}}}item[_36c]=_376;_373=true;}if(_36e){this.onSet(item,_36c,_370,_36d);}return _373;},_addReferenceToMap:function(_37b,_37c,_37d){var _37e=this.getIdentity(_37c);var _37f=_37b[this._reverseRefMap];if(!_37f){_37f=_37b[this._reverseRefMap]={};}var _380=_37f[_37e];if(!_380){_380=_37f[_37e]={};}_380[_37d]=true;},_removeReferenceFromMap:function(_381,_382,_383){var _384=this.getIdentity(_382);var _385=_381[this._reverseRefMap];var _386;if(_385){for(_386 in _385){if(_386==_384){delete _385[_386][_383];if(this._isEmpty(_385[_386])){delete _385[_386];}}}if(this._isEmpty(_385)){delete _381[this._reverseRefMap];}}},_dumpReferenceMap:function(){var i;for(i=0;i<this._arrayOfAllItems.length;i++){var item=this._arrayOfAllItems[i];if(item&&item[this._reverseRefMap]){console.log("Item: ["+this.getIdentity(item)+"] is referenced by: "+dojo.toJson(item[this._reverseRefMap]));}}},_getValueOrValues:function(item,_387){var _388=undefined;if(this.hasAttribute(item,_387)){var _389=this.getValues(item,_387);if(_389.length==1){_388=_389[0];}else{_388=_389;}}return _388;},_flatten:function(_38a){if(this.isItem(_38a)){var item=_38a;var _38b=this.getIdentity(item);var _38c={_reference:_38b};return _38c;}else{if(typeof _38a==="object"){for(var type in this._datatypeMap){var _38d=this._datatypeMap[type];if(dojo.isObject(_38d)&&!dojo.isFunction(_38d)){if(_38a instanceof _38d.type){if(!_38d.serialize){throw new Error("ItemFileWriteStore:  No serializer defined for type mapping: ["+type+"]");}return {_type:type,_value:_38d.serialize(_38a)};}}else{if(_38a instanceof _38d){return {_type:type,_value:_38a.toString()};}}}}return _38a;}},_getNewFileContentString:function(){var _38e={};var _38f=this._getIdentifierAttribute();if(_38f!==Number){_38e.identifier=_38f;}if(this._labelAttr){_38e.label=this._labelAttr;}_38e.items=[];for(var i=0;i<this._arrayOfAllItems.length;++i){var item=this._arrayOfAllItems[i];if(item!==null){var _390={};for(var key in item){if(key!==this._storeRefPropName&&key!==this._itemNumPropName&&key!==this._reverseRefMap&&key!==this._rootItemPropName){var _391=key;var _392=this.getValues(item,_391);if(_392.length==1){_390[_391]=this._flatten(_392[0]);}else{var _393=[];for(var j=0;j<_392.length;++j){_393.push(this._flatten(_392[j]));_390[_391]=_393;}}}}_38e.items.push(_390);}}var _394=true;return dojo.toJson(_38e,_394);},_isEmpty:function(_395){var _396=true;if(dojo.isObject(_395)){var i;for(i in _395){_396=false;break;}}else{if(dojo.isArray(_395)){if(_395.length>0){_396=false;}}}return _396;},save:function(_397){this._assert(!this._saveInProgress);this._saveInProgress=true;var self=this;var _398=function(){self._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};self._saveInProgress=false;if(_397&&_397.onComplete){var _399=_397.scope||dojo.global;_397.onComplete.call(_399);}};var _39a=function(err){self._saveInProgress=false;if(_397&&_397.onError){var _39b=_397.scope||dojo.global;_397.onError.call(_39b,err);}};if(this._saveEverything){var _39c=this._getNewFileContentString();this._saveEverything(_398,_39a,_39c);}if(this._saveCustom){this._saveCustom(_398,_39a);}if(!this._saveEverything&&!this._saveCustom){_398();}},revert:function(){this._assert(!this._saveInProgress);var _39d;for(_39d in this._pending._modifiedItems){var _39e=this._pending._modifiedItems[_39d];var _39f=null;if(this._itemsByIdentity){_39f=this._itemsByIdentity[_39d];}else{_39f=this._arrayOfAllItems[_39d];}_39e[this._storeRefPropName]=this;for(key in _39f){delete _39f[key];}dojo.mixin(_39f,_39e);}var _3a0;for(_39d in this._pending._deletedItems){_3a0=this._pending._deletedItems[_39d];_3a0[this._storeRefPropName]=this;var _3a1=_3a0[this._itemNumPropName];if(_3a0["backup_"+this._reverseRefMap]){_3a0[this._reverseRefMap]=_3a0["backup_"+this._reverseRefMap];delete _3a0["backup_"+this._reverseRefMap];}this._arrayOfAllItems[_3a1]=_3a0;if(this._itemsByIdentity){this._itemsByIdentity[_39d]=_3a0;}if(_3a0[this._rootItemPropName]){this._arrayOfTopLevelItems.push(_3a0);}}for(_39d in this._pending._deletedItems){_3a0=this._pending._deletedItems[_39d];if(_3a0["backupRefs_"+this._reverseRefMap]){dojo.forEach(_3a0["backupRefs_"+this._reverseRefMap],function(_3a2){var _3a3;if(this._itemsByIdentity){_3a3=this._itemsByIdentity[_3a2.id];}else{_3a3=this._arrayOfAllItems[_3a2.id];}this._addReferenceToMap(_3a3,_3a0,_3a2.attr);},this);delete _3a0["backupRefs_"+this._reverseRefMap];}}for(_39d in this._pending._newItems){var _3a4=this._pending._newItems[_39d];_3a4[this._storeRefPropName]=null;this._arrayOfAllItems[_3a4[this._itemNumPropName]]=null;if(_3a4[this._rootItemPropName]){this._removeArrayElement(this._arrayOfTopLevelItems,_3a4);}if(this._itemsByIdentity){delete this._itemsByIdentity[_39d];}}this._pending={_newItems:{},_modifiedItems:{},_deletedItems:{}};return true;},isDirty:function(item){if(item){var _3a5=this.getIdentity(item);return new Boolean(this._pending._newItems[_3a5]||this._pending._modifiedItems[_3a5]||this._pending._deletedItems[_3a5]).valueOf();}else{if(!this._isEmpty(this._pending._newItems)||!this._isEmpty(this._pending._modifiedItems)||!this._isEmpty(this._pending._deletedItems)){return true;}return false;}},onSet:function(item,_3a6,_3a7,_3a8){},onNew:function(_3a9,_3aa){},onDelete:function(_3ab){},close:function(_3ac){if(this.clearOnClose){if(!this.isDirty()){this.inherited(arguments);}else{throw new Error("dojo.data.ItemFileWriteStore: There are unsaved changes present in the store.  Please save or revert the changes before invoking close.");}}}});}if(!dojo._hasResource["dijit.form.CheckBox"]){dojo._hasResource["dijit.form.CheckBox"]=true;dojo.provide("dijit.form.CheckBox");dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijit dijitReset dijitInline\" role=\"presentation\"\n\t><input\n\t \t${!nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_3ad){this._set("readOnly",_3ad);dojo.attr(this.focusNode,"readOnly",_3ad);dijit.setWaiState(this.focusNode,"readonly",_3ad);},_setValueAttr:function(_3ae,_3af){if(typeof _3ae=="string"){this._set("value",_3ae);dojo.attr(this.focusNode,"value",_3ae);_3ae=true;}if(this._created){this.set("checked",_3ae,_3af);}},_getValueAttr:function(){return (this.checked?this.value:false);},_setLabelAttr:undefined,postMixInProperties:function(){if(this.value==""){this.value="on";}this.checkedAttrSetting=this.checked?"checked":"";this.inherited(arguments);},_fillContent:function(_3b0){},reset:function(){this._hasBeenBlurred=false;this.set("checked",this.params.checked||false);this._set("value",this.params.value||"on");dojo.attr(this.focusNode,"value",this.value);},_onFocus:function(){if(this.id){dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");}this.inherited(arguments);},_onBlur:function(){if(this.id){dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");}this.inherited(arguments);},_onClick:function(e){if(this.readOnly){dojo.stopEvent(e);return false;}return this.inherited(arguments);}});dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_3b1){this.inherited(arguments);if(!this._created){return;}if(_3b1){var _3b2=this;dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_3b3){if(_3b3.name==_3b2.name&&_3b3!=_3b2.focusNode&&_3b3.form==_3b2.focusNode.form){var _3b4=dijit.getEnclosingWidget(_3b3);if(_3b4&&_3b4.checked){_3b4.set("checked",false);}}});}},_clicked:function(e){if(!this.checked){this.set("checked",true);}}});}if(!dojo._hasResource["dijit.Tooltip"]){dojo._hasResource["dijit.Tooltip"]=true;dojo.provide("dijit.Tooltip");dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\"\n\t><div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" role='alert'></div\n\t><div class=\"dijitTooltipConnector\" dojoAttachPoint=\"connectorNode\"></div\n></div>\n"),postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode);this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});},show:function(_3b5,_3b6,_3b7,rtl){if(this.aroundNode&&this.aroundNode===_3b6){return;}this.domNode.width="auto";if(this.fadeOut.status()=="playing"){this._onDeck=arguments;return;}this.containerNode.innerHTML=_3b5;var pos=dijit.placeOnScreenAroundElement(this.domNode,_3b6,dijit.getPopupAroundAlignment((_3b7&&_3b7.length)?_3b7:dijit.Tooltip.defaultPosition,!rtl),dojo.hitch(this,"orient"));dojo.style(this.domNode,"opacity",0);this.fadeIn.play();this.isShowingNow=true;this.aroundNode=_3b6;},orient:function(node,_3b8,_3b9,_3ba,_3bb){this.connectorNode.style.top="";var _3bc=_3ba.w-this.connectorNode.offsetWidth;node.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_3b8+"-"+_3b9];this.domNode.style.width="auto";var size=dojo.contentBox(this.domNode);var _3bd=Math.min((Math.max(_3bc,1)),size.w);var _3be=_3bd<size.w;this.domNode.style.width=_3bd+"px";if(_3be){this.containerNode.style.overflow="auto";var _3bf=this.containerNode.scrollWidth;this.containerNode.style.overflow="visible";if(_3bf>_3bd){_3bf=_3bf+dojo.style(this.domNode,"paddingLeft")+dojo.style(this.domNode,"paddingRight");this.domNode.style.width=_3bf+"px";}}if(_3b9.charAt(0)=="B"&&_3b8.charAt(0)=="B"){var mb=dojo.marginBox(node);var _3c0=this.connectorNode.offsetHeight;if(mb.h>_3ba.h){var _3c1=_3ba.h-(_3bb.h/2)-(_3c0/2);this.connectorNode.style.top=_3c1+"px";this.connectorNode.style.bottom="";}else{this.connectorNode.style.bottom=Math.min(Math.max(_3bb.h/2-_3c0/2,0),mb.h-_3c0)+"px";this.connectorNode.style.top="";}}else{this.connectorNode.style.top="";this.connectorNode.style.bottom="";}return Math.max(0,size.w-_3bc);},_onShow:function(){if(dojo.isIE){this.domNode.style.filter="";}},hide:function(_3c2){if(this._onDeck&&this._onDeck[1]==_3c2){this._onDeck=null;}else{if(this.aroundNode===_3c2){this.fadeIn.stop();this.isShowingNow=false;this.aroundNode=null;this.fadeOut.play();}else{}}},_onHide:function(){this.domNode.style.cssText="";this.containerNode.innerHTML="";if(this._onDeck){this.show.apply(this,this._onDeck);this._onDeck=null;}}});dijit.showTooltip=function(_3c3,_3c4,_3c5,rtl){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.show(_3c3,_3c4,_3c5,rtl);};dijit.hideTooltip=function(_3c6){if(!dijit._masterTT){dijit._masterTT=new dijit._MasterTooltip();}return dijit._masterTT.hide(_3c6);};dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],_setConnectIdAttr:function(_3c7){dojo.forEach(this._connections||[],function(_3c8){dojo.forEach(_3c8,dojo.hitch(this,"disconnect"));},this);var ary=dojo.isArrayLike(_3c7)?_3c7:(_3c7?[_3c7]:[]);this._connections=dojo.map(ary,function(id){var node=dojo.byId(id);return node?[this.connect(node,"onmouseenter","_onTargetMouseEnter"),this.connect(node,"onmouseleave","_onTargetMouseLeave"),this.connect(node,"onfocus","_onTargetFocus"),this.connect(node,"onblur","_onTargetBlur")]:[];},this);this._set("connectId",_3c7);this._connectIds=ary;},addTarget:function(node){var id=node.id||node;if(dojo.indexOf(this._connectIds,id)==-1){this.set("connectId",this._connectIds.concat(id));}},removeTarget:function(node){var id=node.id||node,idx=dojo.indexOf(this._connectIds,id);if(idx>=0){this._connectIds.splice(idx,1);this.set("connectId",this._connectIds);}},buildRendering:function(){this.inherited(arguments);dojo.addClass(this.domNode,"dijitTooltipData");},startup:function(){this.inherited(arguments);var ids=this.connectId;dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);},_onTargetMouseEnter:function(e){this._onHover(e);},_onTargetMouseLeave:function(e){this._onUnHover(e);},_onTargetFocus:function(e){this._focus=true;this._onHover(e);},_onTargetBlur:function(e){this._focus=false;this._onUnHover(e);},_onHover:function(e){if(!this._showTimer){var _3c9=e.target;this._showTimer=setTimeout(dojo.hitch(this,function(){this.open(_3c9);}),this.showDelay);}},_onUnHover:function(e){if(this._focus){return;}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}this.close();},open:function(_3ca){if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}dijit.showTooltip(this.label||this.domNode.innerHTML,_3ca,this.position,!this.isLeftToRight());this._connectNode=_3ca;this.onShow(_3ca,this.position);},close:function(){if(this._connectNode){dijit.hideTooltip(this._connectNode);delete this._connectNode;this.onHide();}if(this._showTimer){clearTimeout(this._showTimer);delete this._showTimer;}},onShow:function(_3cb,_3cc){},onHide:function(){},uninitialize:function(){this.close();this.inherited(arguments);}});dijit.Tooltip.defaultPosition=["after","before"];}if(!dojo._hasResource["dijit.form._FormSelectWidget"]){dojo._hasResource["dijit.form._FormSelectWidget"]=true;dojo.provide("dijit.form._FormSelectWidget");dojo.declare("dijit.form._FormSelectWidget",dijit.form._FormValueWidget,{multiple:false,options:null,store:null,query:null,queryOptions:null,onFetch:null,sortByLabel:true,loadChildrenOnOpen:false,getOptions:function(_3cd){var _3ce=_3cd,opts=this.options||[],l=opts.length;if(_3ce===undefined){return opts;}if(dojo.isArray(_3ce)){return dojo.map(_3ce,"return this.getOptions(item);",this);}if(dojo.isObject(_3cd)){if(!dojo.some(this.options,function(o,idx){if(o===_3ce||(o.value&&o.value===_3ce.value)){_3ce=idx;return true;}return false;})){_3ce=-1;}}if(typeof _3ce=="string"){for(var i=0;i<l;i++){if(opts[i].value===_3ce){_3ce=i;break;}}}if(typeof _3ce=="number"&&_3ce>=0&&_3ce<l){return this.options[_3ce];}return null;},addOption:function(_3cf){if(!dojo.isArray(_3cf)){_3cf=[_3cf];}dojo.forEach(_3cf,function(i){if(i&&dojo.isObject(i)){this.options.push(i);}},this);this._loadChildren();},removeOption:function(_3d0){if(!dojo.isArray(_3d0)){_3d0=[_3d0];}var _3d1=this.getOptions(_3d0);dojo.forEach(_3d1,function(i){if(i){this.options=dojo.filter(this.options,function(node,idx){return (node.value!==i.value||node.label!==i.label);});this._removeOptionItem(i);}},this);this._loadChildren();},updateOption:function(_3d2){if(!dojo.isArray(_3d2)){_3d2=[_3d2];}dojo.forEach(_3d2,function(i){var _3d3=this.getOptions(i),k;if(_3d3){for(k in i){_3d3[k]=i[k];}}},this);this._loadChildren();},setStore:function(_3d4,_3d5,_3d6){var _3d7=this.store;_3d6=_3d6||{};if(_3d7!==_3d4){dojo.forEach(this._notifyConnections||[],dojo.disconnect);delete this._notifyConnections;if(_3d4&&_3d4.getFeatures()["dojo.data.api.Notification"]){this._notifyConnections=[dojo.connect(_3d4,"onNew",this,"_onNewItem"),dojo.connect(_3d4,"onDelete",this,"_onDeleteItem"),dojo.connect(_3d4,"onSet",this,"_onSetItem")];}this._set("store",_3d4);}this._onChangeActive=false;if(this.options&&this.options.length){this.removeOption(this.options);}if(_3d4){this._loadingStore=true;_3d4.fetch(dojo.delegate(_3d6,{onComplete:function(_3d8,opts){if(this.sortByLabel&&!_3d6.sort&&_3d8.length){_3d8.sort(dojo.data.util.sorter.createSortFunction([{attribute:_3d4.getLabelAttributes(_3d8[0])[0]}],_3d4));}if(_3d6.onFetch){_3d8=_3d6.onFetch.call(this,_3d8,opts);}dojo.forEach(_3d8,function(i){this._addOptionForItem(i);},this);this._loadingStore=false;this.set("value","_pendingValue" in this?this._pendingValue:_3d5);delete this._pendingValue;if(!this.loadChildrenOnOpen){this._loadChildren();}else{this._pseudoLoadChildren(_3d8);}this._fetchedWith=opts;this._lastValueReported=this.multiple?[]:null;this._onChangeActive=true;this.onSetStore();this._handleOnChange(this.value);},scope:this}));}else{delete this._fetchedWith;}return _3d7;},_setValueAttr:function(_3d9,_3da){if(this._loadingStore){this._pendingValue=_3d9;return;}var opts=this.getOptions()||[];if(!dojo.isArray(_3d9)){_3d9=[_3d9];}dojo.forEach(_3d9,function(i,idx){if(!dojo.isObject(i)){i=i+"";}if(typeof i==="string"){_3d9[idx]=dojo.filter(opts,function(node){return node.value===i;})[0]||{value:"",label:""};}},this);_3d9=dojo.filter(_3d9,function(i){return i&&i.value;});if(!this.multiple&&(!_3d9[0]||!_3d9[0].value)&&opts.length){_3d9[0]=opts[0];}dojo.forEach(opts,function(i){i.selected=dojo.some(_3d9,function(v){return v.value===i.value;});});var val=dojo.map(_3d9,function(i){return i.value;}),disp=dojo.map(_3d9,function(i){return i.label;});this._set("value",this.multiple?val:val[0]);this._setDisplay(this.multiple?disp:disp[0]);this._updateSelection();this._handleOnChange(this.value,_3da);},_getDisplayedValueAttr:function(){var val=this.get("value");if(!dojo.isArray(val)){val=[val];}var ret=dojo.map(this.getOptions(val),function(v){if(v&&"label" in v){return v.label;}else{if(v){return v.value;}}return null;},this);return this.multiple?ret:ret[0];},_loadChildren:function(){if(this._loadingStore){return;}dojo.forEach(this._getChildren(),function(_3db){_3db.destroyRecursive();});dojo.forEach(this.options,this._addOptionItem,this);this._updateSelection();},_updateSelection:function(){this._set("value",this._getValueFromOpts());var val=this.value;if(!dojo.isArray(val)){val=[val];}if(val&&val[0]){dojo.forEach(this._getChildren(),function(_3dc){var _3dd=dojo.some(val,function(v){return _3dc.option&&(v===_3dc.option.value);});dojo.toggleClass(_3dc.domNode,this.baseClass+"SelectedOption",_3dd);dijit.setWaiState(_3dc.domNode,"selected",_3dd);},this);}},_getValueFromOpts:function(){var opts=this.getOptions()||[];if(!this.multiple&&opts.length){var opt=dojo.filter(opts,function(i){return i.selected;})[0];if(opt&&opt.value){return opt.value;}else{opts[0].selected=true;return opts[0].value;}}else{if(this.multiple){return dojo.map(dojo.filter(opts,function(i){return i.selected;}),function(i){return i.value;})||[];}}return "";},_onNewItem:function(item,_3de){if(!_3de||!_3de.parent){this._addOptionForItem(item);}},_onDeleteItem:function(item){var _3df=this.store;this.removeOption(_3df.getIdentity(item));},_onSetItem:function(item){this.updateOption(this._getOptionObjForItem(item));},_getOptionObjForItem:function(item){var _3e0=this.store,_3e1=_3e0.getLabel(item),_3e2=(_3e1?_3e0.getIdentity(item):null);return {value:_3e2,label:_3e1,item:item};},_addOptionForItem:function(item){var _3e3=this.store;if(!_3e3.isItemLoaded(item)){_3e3.loadItem({item:item,onComplete:function(i){this._addOptionForItem(item);},scope:this});return;}var _3e4=this._getOptionObjForItem(item);this.addOption(_3e4);},constructor:function(_3e5){this._oValue=(_3e5||{}).value||null;},buildRendering:function(){this.inherited(arguments);dojo.setSelectable(this.focusNode,false);},_fillContent:function(){var opts=this.options;if(!opts){opts=this.options=this.srcNodeRef?dojo.query(">",this.srcNodeRef).map(function(node){if(node.getAttribute("type")==="separator"){return {value:"",label:"",selected:false,disabled:false};}return {value:(node.getAttribute("data-"+dojo._scopeName+"-value")||node.getAttribute("value")),label:String(node.innerHTML),selected:node.getAttribute("selected")||false,disabled:node.getAttribute("disabled")||false};},this):[];}if(!this.value){this._set("value",this._getValueFromOpts());}else{if(this.multiple&&typeof this.value=="string"){this._set("value",this.value.split(","));}}},postCreate:function(){this.inherited(arguments);this.connect(this,"onChange","_updateSelection");this.connect(this,"startup","_loadChildren");this._setValueAttr(this.value,null);},startup:function(){this.inherited(arguments);var _3e6=this.store,_3e7={};dojo.forEach(["query","queryOptions","onFetch"],function(i){if(this[i]){_3e7[i]=this[i];}delete this[i];},this);if(_3e6&&_3e6.getFeatures()["dojo.data.api.Identity"]){this.store=null;this.setStore(_3e6,this._oValue,_3e7);}},destroy:function(){dojo.forEach(this._notifyConnections||[],dojo.disconnect);this.inherited(arguments);},_addOptionItem:function(_3e8){},_removeOptionItem:function(_3e9){},_setDisplay:function(_3ea){},_getChildren:function(){return [];},_getSelectedOptionsAttr:function(){return this.getOptions(this.get("value"));},_pseudoLoadChildren:function(_3eb){},onSetStore:function(){}});}if(!dojo._hasResource["dojox.form.CheckedMultiSelect"]){dojo._hasResource["dojox.form.CheckedMultiSelect"]=true;dojo.provide("dojox.form.CheckedMultiSelect");dojo.declare("dojox.form._CheckedMultiSelectItem",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,templateString:dojo.cache("dojox.form","resources/_CheckedMultiSelectItem.html","<div class=\"dijitReset ${baseClass}\"\n\t><input class=\"${baseClass}Box\" dojoType=\"dijit.form.CheckBox\" dojoAttachPoint=\"checkBox\" \n\t\tdojoAttachEvent=\"_onClick:_changeBox\" type=\"${_type.type}\" baseClass=\"${_type.baseClass}\"\n\t/><div class=\"dijitInline ${baseClass}Label\" dojoAttachPoint=\"labelNode\" dojoAttachEvent=\"onclick:_onClick\"></div\n></div>\n"),baseClass:"dojoxMultiSelectItem",option:null,parent:null,disabled:false,readOnly:false,postMixInProperties:function(){if(this.parent.multiple){this._type={type:"checkbox",baseClass:"dijitCheckBox"};}else{this._type={type:"radio",baseClass:"dijitRadio"};}this.disabled=this.option.disabled=this.option.disabled||false;this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.labelNode.innerHTML=this.option.label;},_changeBox:function(){if(this.get("disabled")||this.get("readOnly")){return;}if(this.parent.multiple){this.option.selected=this.checkBox.get("value")&&true;}else{this.parent.set("value",this.option.value);}this.parent._updateSelection();this.parent.focus();},_onClick:function(e){if(this.get("disabled")||this.get("readOnly")){dojo.stopEvent(e);}else{this.checkBox._onClick(e);}},_updateBox:function(){this.checkBox.set("value",this.option.selected);},_setDisabledAttr:function(_3ec){this.disabled=_3ec||this.option.disabled;this.checkBox.set("disabled",this.disabled);dojo.toggleClass(this.domNode,"dojoxMultiSelectDisabled",this.disabled);},_setReadOnlyAttr:function(_3ed){this.checkBox.set("readOnly",_3ed);this.readOnly=_3ed;}});dojo.declare("dojox.form.CheckedMultiSelect",dijit.form._FormSelectWidget,{templateString:dojo.cache("dojox.form","resources/CheckedMultiSelect.html","<div class=\"dijit dijitReset dijitInline\" dojoAttachEvent=\"onmousedown:_onMouseDown,onclick:focus\"\n\t><select class=\"${baseClass}Select\" multiple=\"true\" dojoAttachPoint=\"containerNode,focusNode\"></select\n\t><div dojoAttachPoint=\"wrapperDiv\"></div\n></div>\n"),baseClass:"dojoxMultiSelect",required:false,invalidMessage:"At least one item must be selected.",_message:"",tooltipPosition:[],_onMouseDown:function(e){dojo.stopEvent(e);},validator:function(){if(!this.required){return true;}return dojo.some(this.getOptions(),function(opt){return opt.selected&&opt.value!=null&&opt.value.toString().length!=0;});},validate:function(_3ee){dijit.hideTooltip(this.domNode);var _3ef=this.isValid(_3ee);if(!_3ef){this.displayMessage(this.invalidMessage);}return _3ef;},isValid:function(_3f0){return this.validator();},getErrorMessage:function(_3f1){return this.invalidMessage;},displayMessage:function(_3f2){dijit.hideTooltip(this.domNode);if(_3f2){dijit.showTooltip(_3f2,this.domNode,this.tooltipPosition);}},onAfterAddOptionItem:function(item,_3f3){},_addOptionItem:function(_3f4){var item=new dojox.form._CheckedMultiSelectItem({option:_3f4,parent:this});this.wrapperDiv.appendChild(item.domNode);this.onAfterAddOptionItem(item,_3f4);},_refreshState:function(){this.validate(this._focused);},onChange:function(_3f5){this._refreshState();},reset:function(){this.inherited(arguments);dijit.hideTooltip(this.domNode);},_updateSelection:function(){this.inherited(arguments);this._handleOnChange(this.value);dojo.forEach(this._getChildren(),function(c){c._updateBox();});},_getChildren:function(){return dojo.map(this.wrapperDiv.childNodes,function(n){return dijit.byNode(n);});},invertSelection:function(_3f6){dojo.forEach(this.options,function(i){i.selected=!i.selected;});this._updateSelection();},_setDisabledAttr:function(_3f7){this.inherited(arguments);dojo.forEach(this._getChildren(),function(node){if(node&&node.set){node.set("disabled",_3f7);}});},_setReadOnlyAttr:function(_3f8){if("readOnly" in this.attributeMap){this._attrToDom("readOnly",_3f8);}this.readOnly=_3f8;dojo.forEach(this._getChildren(),function(node){if(node&&node.set){node.set("readOnly",_3f8);}});},uninitialize:function(){dijit.hideTooltip(this.domNode);dojo.forEach(this._getChildren(),function(_3f9){_3f9.destroyRecursive();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}if(!dojo._hasResource["dojox.html.metrics"]){dojo._hasResource["dojox.html.metrics"]=true;dojo.provide("dojox.html.metrics");(function(){var dhm=dojox.html.metrics;dhm.getFontMeasurements=function(){var _3fa={"1em":0,"1ex":0,"100%":0,"12pt":0,"16px":0,"xx-small":0,"x-small":0,"small":0,"medium":0,"large":0,"x-large":0,"xx-large":0};if(dojo.isIE){dojo.doc.documentElement.style.fontSize="100%";}var div=dojo.doc.createElement("div");var ds=div.style;ds.position="absolute";ds.left="-100px";ds.top="0";ds.width="30px";ds.height="1000em";ds.borderWidth="0";ds.margin="0";ds.padding="0";ds.outline="0";ds.lineHeight="1";ds.overflow="hidden";dojo.body().appendChild(div);for(var p in _3fa){ds.fontSize=p;_3fa[p]=Math.round(div.offsetHeight*12/16)*16/12/1000;}dojo.body().removeChild(div);div=null;return _3fa;};var _3fb=null;dhm.getCachedFontMeasurements=function(_3fc){if(_3fc||!_3fb){_3fb=dhm.getFontMeasurements();}return _3fb;};var _3fd=null,_3fe={};dhm.getTextBox=function(text,_3ff,_400){var m,s;if(!_3fd){m=_3fd=dojo.doc.createElement("div");var c=dojo.doc.createElement("div");c.appendChild(m);s=c.style;s.overflow="scroll";s.position="absolute";s.left="0px";s.top="-10000px";s.width="1px";s.height="1px";s.visibility="hidden";s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";dojo.body().appendChild(c);}else{m=_3fd;}m.className="";s=m.style;s.borderWidth="0";s.margin="0";s.padding="0";s.outline="0";if(arguments.length>1&&_3ff){for(var i in _3ff){if(i in _3fe){continue;}s[i]=_3ff[i];}}if(arguments.length>2&&_400){m.className=_400;}m.innerHTML=text;var box=dojo.position(m);box.w=m.parentNode.scrollWidth;return box;};var _401={w:16,h:16};dhm.getScrollbar=function(){return {w:_401.w,h:_401.h};};dhm._fontResizeNode=null;dhm.initOnFontResize=function(_402){var f=dhm._fontResizeNode=dojo.doc.createElement("iframe");var fs=f.style;fs.position="absolute";fs.width="5em";fs.height="10em";fs.top="-10000px";if(dojo.isIE){f.onreadystatechange=function(){if(f.contentWindow.document.readyState=="complete"){f.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;}};}else{f.onload=function(){f.contentWindow.onresize=f.contentWindow.parent[dojox._scopeName].html.metrics._fontresize;};}f.setAttribute("src","javascript:'<html><head><script>if(\"loadFirebugConsole\" in window){window.loadFirebugConsole();}</script></head><body></body></html>'");dojo.body().appendChild(f);dhm.initOnFontResize=function(){};};dhm.onFontResize=function(){};dhm._fontresize=function(){dhm.onFontResize();};dojo.addOnUnload(function(){var f=dhm._fontResizeNode;if(f){if(dojo.isIE&&f.onresize){f.onresize=null;}else{if(f.contentWindow&&f.contentWindow.onresize){f.contentWindow.onresize=null;}}dhm._fontResizeNode=null;}});dojo.addOnLoad(function(){try{var n=dojo.doc.createElement("div");n.style.cssText="top:0;left:0;width:100px;height:100px;overflow:scroll;position:absolute;visibility:hidden;";dojo.body().appendChild(n);_401.w=n.offsetWidth-n.clientWidth;_401.h=n.offsetHeight-n.clientHeight;dojo.body().removeChild(n);delete n;}catch(e){}if("fontSizeWatch" in dojo.config&&!!dojo.config.fontSizeWatch){dhm.initOnFontResize();}});})();}if(!dojo._hasResource["dojox.grid.util"]){dojo._hasResource["dojox.grid.util"]=true;dojo.provide("dojox.grid.util");(function(){var dgu=dojox.grid.util;dgu.na="...";dgu.rowIndexTag="gridRowIndex";dgu.gridViewTag="gridView";dgu.fire=function(ob,ev,args){var fn=ob&&ev&&ob[ev];return fn&&(args?fn.apply(ob,args):ob[ev]());};dgu.setStyleHeightPx=function(_403,_404){if(_404>=0){var s=_403.style;var v=_404+"px";if(_403&&s["height"]!=v){s["height"]=v;}}};dgu.mouseEvents=["mouseover","mouseout","mousedown","mouseup","click","dblclick","contextmenu"];dgu.keyEvents=["keyup","keydown","keypress"];dgu.funnelEvents=function(_405,_406,_407,_408){var evts=(_408?_408:dgu.mouseEvents.concat(dgu.keyEvents));for(var i=0,l=evts.length;i<l;i++){_406.connect(_405,"on"+evts[i],_407);}};dgu.removeNode=function(_409){_409=dojo.byId(_409);_409&&_409.parentNode&&_409.parentNode.removeChild(_409);return _409;};dgu.arrayCompare=function(inA,inB){for(var i=0,l=inA.length;i<l;i++){if(inA[i]!=inB[i]){return false;}}return (inA.length==inB.length);};dgu.arrayInsert=function(_40a,_40b,_40c){if(_40a.length<=_40b){_40a[_40b]=_40c;}else{_40a.splice(_40b,0,_40c);}};dgu.arrayRemove=function(_40d,_40e){_40d.splice(_40e,1);};dgu.arraySwap=function(_40f,inI,inJ){var _410=_40f[inI];_40f[inI]=_40f[inJ];_40f[inJ]=_410;};})();}if(!dojo._hasResource["dojox.grid._Scroller"]){dojo._hasResource["dojox.grid._Scroller"]=true;dojo.provide("dojox.grid._Scroller");(function(){var _411=function(_412){var i=0,n,p=_412.parentNode;while((n=p.childNodes[i++])){if(n==_412){return i-1;}}return -1;};var _413=function(_414){if(!_414){return;}var _415=function(inW){return inW.domNode&&dojo.isDescendant(inW.domNode,_414,true);};var ws=dijit.registry.filter(_415);for(var i=0,w;(w=ws[i]);i++){w.destroy();}delete ws;};var _416=function(_417){var node=dojo.byId(_417);return (node&&node.tagName?node.tagName.toLowerCase():"");};var _418=function(_419,_41a){var _41b=[];var i=0,n;while((n=_419.childNodes[i])){i++;if(_416(n)==_41a){_41b.push(n);}}return _41b;};var _41c=function(_41d){return _418(_41d,"div");};dojo.declare("dojox.grid._Scroller",null,{constructor:function(_41e){this.setContentNodes(_41e);this.pageHeights=[];this.pageNodes=[];this.stack=[];},rowCount:0,defaultRowHeight:32,keepRows:100,contentNode:null,scrollboxNode:null,defaultPageHeight:0,keepPages:10,pageCount:0,windowHeight:0,firstVisibleRow:0,lastVisibleRow:0,averageRowHeight:0,page:0,pageTop:0,init:function(_41f,_420,_421){switch(arguments.length){case 3:this.rowsPerPage=_421;case 2:this.keepRows=_420;case 1:this.rowCount=_41f;default:break;}this.defaultPageHeight=this.defaultRowHeight*this.rowsPerPage;this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);this.setKeepInfo(this.keepRows);this.invalidate();if(this.scrollboxNode){this.scrollboxNode.scrollTop=0;this.scroll(0);this.scrollboxNode.onscroll=dojo.hitch(this,"onscroll");}},_getPageCount:function(_422,_423){return _422?(Math.ceil(_422/_423)||1):0;},destroy:function(){this.invalidateNodes();delete this.contentNodes;delete this.contentNode;delete this.scrollboxNode;},setKeepInfo:function(_424){this.keepRows=_424;this.keepPages=!this.keepRows?this.keepPages:Math.max(Math.ceil(this.keepRows/this.rowsPerPage),2);},setContentNodes:function(_425){this.contentNodes=_425;this.colCount=(this.contentNodes?this.contentNodes.length:0);this.pageNodes=[];for(var i=0;i<this.colCount;i++){this.pageNodes[i]=[];}},getDefaultNodes:function(){return this.pageNodes[0]||[];},invalidate:function(){this._invalidating=true;this.invalidateNodes();this.pageHeights=[];this.height=(this.pageCount?(this.pageCount-1)*this.defaultPageHeight+this.calcLastPageHeight():0);this.resize();this._invalidating=false;},updateRowCount:function(_426){this.invalidateNodes();this.rowCount=_426;var _427=this.pageCount;if(_427===0){this.height=1;}this.pageCount=this._getPageCount(this.rowCount,this.rowsPerPage);if(this.pageCount<_427){for(var i=_427-1;i>=this.pageCount;i--){this.height-=this.getPageHeight(i);delete this.pageHeights[i];}}else{if(this.pageCount>_427){this.height+=this.defaultPageHeight*(this.pageCount-_427-1)+this.calcLastPageHeight();}}this.resize();},pageExists:function(_428){return Boolean(this.getDefaultPageNode(_428));},measurePage:function(_429){if(this.grid.rowHeight){var _42a=this.grid.rowHeight+1;return ((_429+1)*this.rowsPerPage>this.rowCount?this.rowCount-_429*this.rowsPerPage:this.rowsPerPage)*_42a;}var n=this.getDefaultPageNode(_429);return (n&&n.innerHTML)?n.offsetHeight:undefined;},positionPage:function(_42b,_42c){for(var i=0;i<this.colCount;i++){this.pageNodes[i][_42b].style.top=_42c+"px";}},repositionPages:function(_42d){var _42e=this.getDefaultNodes();var last=0;for(var i=0;i<this.stack.length;i++){last=Math.max(this.stack[i],last);}var n=_42e[_42d];var y=(n?this.getPageNodePosition(n)+this.getPageHeight(_42d):0);for(var p=_42d+1;p<=last;p++){n=_42e[p];if(n){if(this.getPageNodePosition(n)==y){return;}this.positionPage(p,y);}y+=this.getPageHeight(p);}},installPage:function(_42f){for(var i=0;i<this.colCount;i++){this.contentNodes[i].appendChild(this.pageNodes[i][_42f]);}},preparePage:function(_430,_431){var p=(_431?this.popPage():null);for(var i=0;i<this.colCount;i++){var _432=this.pageNodes[i];var _433=(p===null?this.createPageNode():this.invalidatePageNode(p,_432));_433.pageIndex=_430;_432[_430]=_433;}},renderPage:function(_434){var _435=[];var i,j;for(i=0;i<this.colCount;i++){_435[i]=this.pageNodes[i][_434];}for(i=0,j=_434*this.rowsPerPage;(i<this.rowsPerPage)&&(j<this.rowCount);i++,j++){this.renderRow(j,_435);}},removePage:function(_436){for(var i=0,j=_436*this.rowsPerPage;i<this.rowsPerPage;i++,j++){this.removeRow(j);}},destroyPage:function(_437){for(var i=0;i<this.colCount;i++){var n=this.invalidatePageNode(_437,this.pageNodes[i]);if(n){dojo.destroy(n);}}},pacify:function(_438){},pacifying:false,pacifyTicks:200,setPacifying:function(_439){if(this.pacifying!=_439){this.pacifying=_439;this.pacify(this.pacifying);}},startPacify:function(){this.startPacifyTicks=new Date().getTime();},doPacify:function(){var _43a=(new Date().getTime()-this.startPacifyTicks)>this.pacifyTicks;this.setPacifying(true);this.startPacify();return _43a;},endPacify:function(){this.setPacifying(false);},resize:function(){if(this.scrollboxNode){this.windowHeight=this.scrollboxNode.clientHeight;}for(var i=0;i<this.colCount;i++){dojox.grid.util.setStyleHeightPx(this.contentNodes[i],Math.max(1,this.height));}var _43b=(!this._invalidating);if(!_43b){var ah=this.grid.get("autoHeight");if(typeof ah=="number"&&ah<=Math.min(this.rowsPerPage,this.rowCount)){_43b=true;}}if(_43b){this.needPage(this.page,this.pageTop);}var _43c=(this.page<this.pageCount-1)?this.rowsPerPage:((this.rowCount%this.rowsPerPage)||this.rowsPerPage);var _43d=this.getPageHeight(this.page);this.averageRowHeight=(_43d>0&&_43c>0)?(_43d/_43c):0;},calcLastPageHeight:function(){if(!this.pageCount){return 0;}var _43e=this.pageCount-1;var _43f=((this.rowCount%this.rowsPerPage)||(this.rowsPerPage))*this.defaultRowHeight;this.pageHeights[_43e]=_43f;return _43f;},updateContentHeight:function(inDh){this.height+=inDh;this.resize();},updatePageHeight:function(_440,_441,_442){if(this.pageExists(_440)){var oh=this.getPageHeight(_440);var h=(this.measurePage(_440));if(h===undefined){h=oh;}this.pageHeights[_440]=h;if(oh!=h){this.updateContentHeight(h-oh);var ah=this.grid.get("autoHeight");if((typeof ah=="number"&&ah>this.rowCount)||(ah===true&&!_441)){if(!_442){this.grid.sizeChange();}else{var ns=this.grid.viewsNode.style;ns.height=parseInt(ns.height)+h-oh+"px";this.repositionPages(_440);}}else{this.repositionPages(_440);}}return h;}return 0;},rowHeightChanged:function(_443,_444){this.updatePageHeight(Math.floor(_443/this.rowsPerPage),false,_444);},invalidateNodes:function(){while(this.stack.length){this.destroyPage(this.popPage());}},createPageNode:function(){var p=document.createElement("div");dojo.attr(p,"role","presentation");p.style.position="absolute";p.style[dojo._isBodyLtr()?"left":"right"]="0";return p;},getPageHeight:function(_445){var ph=this.pageHeights[_445];return (ph!==undefined?ph:this.defaultPageHeight);},pushPage:function(_446){return this.stack.push(_446);},popPage:function(){return this.stack.shift();},findPage:function(_447){var i=0,h=0;for(var ph=0;i<this.pageCount;i++,h+=ph){ph=this.getPageHeight(i);if(h+ph>=_447){break;}}this.page=i;this.pageTop=h;},buildPage:function(_448,_449,_44a){this.preparePage(_448,_449);this.positionPage(_448,_44a);this.installPage(_448);this.renderPage(_448);this.pushPage(_448);},needPage:function(_44b,_44c){var h=this.getPageHeight(_44b),oh=h;if(!this.pageExists(_44b)){this.buildPage(_44b,(!this.grid._autoHeight&&this.keepPages&&(this.stack.length>=this.keepPages)),_44c);h=this.updatePageHeight(_44b,true);}else{this.positionPage(_44b,_44c);}return h;},onscroll:function(){this.scroll(this.scrollboxNode.scrollTop);},scroll:function(_44d){this.grid.scrollTop=_44d;if(this.colCount){this.startPacify();this.findPage(_44d);var h=this.height;var b=this.getScrollBottom(_44d);for(var p=this.page,y=this.pageTop;(p<this.pageCount)&&((b<0)||(y<b));p++){y+=this.needPage(p,y);}this.firstVisibleRow=this.getFirstVisibleRow(this.page,this.pageTop,_44d);this.lastVisibleRow=this.getLastVisibleRow(p-1,y,b);if(h!=this.height){this.repositionPages(p-1);}this.endPacify();}},getScrollBottom:function(_44e){return (this.windowHeight>=0?_44e+this.windowHeight:-1);},processNodeEvent:function(e,_44f){var t=e.target;while(t&&(t!=_44f)&&t.parentNode&&(t.parentNode.parentNode!=_44f)){t=t.parentNode;}if(!t||!t.parentNode||(t.parentNode.parentNode!=_44f)){return false;}var page=t.parentNode;e.topRowIndex=page.pageIndex*this.rowsPerPage;e.rowIndex=e.topRowIndex+_411(t);e.rowTarget=t;return true;},processEvent:function(e){return this.processNodeEvent(e,this.contentNode);},renderRow:function(_450,_451){},removeRow:function(_452){},getDefaultPageNode:function(_453){return this.getDefaultNodes()[_453];},positionPageNode:function(_454,_455){},getPageNodePosition:function(_456){return _456.offsetTop;},invalidatePageNode:function(_457,_458){var p=_458[_457];if(p){delete _458[_457];this.removePage(_457,p);_413(p);p.innerHTML="";}return p;},getPageRow:function(_459){return _459*this.rowsPerPage;},getLastPageRow:function(_45a){return Math.min(this.rowCount,this.getPageRow(_45a+1))-1;},getFirstVisibleRow:function(_45b,_45c,_45d){if(!this.pageExists(_45b)){return 0;}var row=this.getPageRow(_45b);var _45e=this.getDefaultNodes();var rows=_41c(_45e[_45b]);for(var i=0,l=rows.length;i<l&&_45c<_45d;i++,row++){_45c+=rows[i].offsetHeight;}return (row?row-1:row);},getLastVisibleRow:function(_45f,_460,_461){if(!this.pageExists(_45f)){return 0;}var _462=this.getDefaultNodes();var row=this.getLastPageRow(_45f);var rows=_41c(_462[_45f]);for(var i=rows.length-1;i>=0&&_460>_461;i--,row--){_460-=rows[i].offsetHeight;}return row+1;},findTopRow:function(_463){var _464=this.getDefaultNodes();var rows=_41c(_464[this.page]);for(var i=0,l=rows.length,t=this.pageTop,h;i<l;i++){h=rows[i].offsetHeight;t+=h;if(t>=_463){this.offset=h-(t-_463);return i+this.page*this.rowsPerPage;}}return -1;},findScrollTop:function(_465){var _466=Math.floor(_465/this.rowsPerPage);var t=0;var i,l;for(i=0;i<_466;i++){t+=this.getPageHeight(i);}this.pageTop=t;this.page=_466;this.needPage(_466,this.pageTop);var _467=this.getDefaultNodes();var rows=_41c(_467[_466]);var r=_465-this.rowsPerPage*_466;for(i=0,l=rows.length;i<l&&i<r;i++){t+=rows[i].offsetHeight;}return t;},dummy:0});})();}if(!dojo._hasResource["dojox.grid.cells._base"]){dojo._hasResource["dojox.grid.cells._base"]=true;dojo.provide("dojox.grid.cells._base");dojo.declare("dojox.grid._DeferredTextWidget",dijit._Widget,{deferred:null,_destroyOnRemove:true,postCreate:function(){if(this.deferred){this.deferred.addBoth(dojo.hitch(this,function(text){if(this.domNode){this.domNode.innerHTML=text;}}));}}});(function(){var _468=function(_469){try{dojox.grid.util.fire(_469,"focus");dojox.grid.util.fire(_469,"select");}catch(e){}};var _46a=function(){setTimeout(dojo.hitch.apply(dojo,arguments),0);};var dgc=dojox.grid.cells;dojo.declare("dojox.grid.cells._Base",null,{styles:"",classes:"",editable:false,alwaysEditing:false,formatter:null,defaultValue:"...",value:null,hidden:false,noresize:false,draggable:true,_valueProp:"value",_formatPending:false,constructor:function(_46b){this._props=_46b||{};dojo.mixin(this,_46b);if(this.draggable===undefined){this.draggable=true;}},_defaultFormat:function(_46c,_46d){var s=this.grid.formatterScope||this;var f=this.formatter;if(f&&s&&typeof f=="string"){f=this.formatter=s[f];}var v=(_46c!=this.defaultValue&&f)?f.apply(s,_46d):_46c;if(typeof v=="undefined"){return this.defaultValue;}if(v&&v.addBoth){v=new dojox.grid._DeferredTextWidget({deferred:v},dojo.create("span",{innerHTML:this.defaultValue}));}if(v&&v.declaredClass&&v.startup){return "<div class='dojoxGridStubNode' linkWidget='"+v.id+"' cellIdx='"+this.index+"'>"+this.defaultValue+"</div>";}return v;},format:function(_46e,_46f){var f,i=this.grid.edit.info,d=this.get?this.get(_46e,_46f):(this.value||this.defaultValue);d=(d&&d.replace&&this.grid.escapeHTMLInData)?d.replace(/&/g,"&amp;").replace(/</g,"&lt;"):d;if(this.editable&&(this.alwaysEditing||(i.rowIndex==_46e&&i.cell==this))){return this.formatEditing(d,_46e);}else{return this._defaultFormat(d,[d,_46e,this]);}},formatEditing:function(_470,_471){},getNode:function(_472){return this.view.getCellNode(_472,this.index);},getHeaderNode:function(){return this.view.getHeaderCellNode(this.index);},getEditNode:function(_473){return (this.getNode(_473)||0).firstChild||0;},canResize:function(){var uw=this.unitWidth;return uw&&(uw!=="auto");},isFlex:function(){var uw=this.unitWidth;return uw&&dojo.isString(uw)&&(uw=="auto"||uw.slice(-1)=="%");},applyEdit:function(_474,_475){this.grid.edit.applyCellEdit(_474,this,_475);},cancelEdit:function(_476){this.grid.doCancelEdit(_476);},_onEditBlur:function(_477){if(this.grid.edit.isEditCell(_477,this.index)){this.grid.edit.apply();}},registerOnBlur:function(_478,_479){if(this.commitOnBlur){dojo.connect(_478,"onblur",function(e){setTimeout(dojo.hitch(this,"_onEditBlur",_479),250);});}},needFormatNode:function(_47a,_47b){this._formatPending=true;_46a(this,"_formatNode",_47a,_47b);},cancelFormatNode:function(){this._formatPending=false;},_formatNode:function(_47c,_47d){if(this._formatPending){this._formatPending=false;if(!dojo.isIE){dojo.setSelectable(this.grid.domNode,true);}this.formatNode(this.getEditNode(_47d),_47c,_47d);}},formatNode:function(_47e,_47f,_480){if(dojo.isIE){_46a(this,"focus",_480,_47e);}else{this.focus(_480,_47e);}},dispatchEvent:function(m,e){if(m in this){return this[m](e);}},getValue:function(_481){return this.getEditNode(_481)[this._valueProp];},setValue:function(_482,_483){var n=this.getEditNode(_482);if(n){n[this._valueProp]=_483;}},focus:function(_484,_485){_468(_485||this.getEditNode(_484));},save:function(_486){this.value=this.value||this.getValue(_486);},restore:function(_487){this.setValue(_487,this.value);},_finish:function(_488){dojo.setSelectable(this.grid.domNode,false);this.cancelFormatNode();},apply:function(_489){this.applyEdit(this.getValue(_489),_489);this._finish(_489);},cancel:function(_48a){this.cancelEdit(_48a);this._finish(_48a);}});dgc._Base.markupFactory=function(node,_48b){var d=dojo;var _48c=d.trim(d.attr(node,"formatter")||"");if(_48c){_48b.formatter=dojo.getObject(_48c)||_48c;}var get=d.trim(d.attr(node,"get")||"");if(get){_48b.get=dojo.getObject(get);}var _48d=function(attr,cell,_48e){var _48f=d.trim(d.attr(node,attr)||"");if(_48f){cell[_48e||attr]=!(_48f.toLowerCase()=="false");}};_48d("sortDesc",_48b);_48d("editable",_48b);_48d("alwaysEditing",_48b);_48d("noresize",_48b);_48d("draggable",_48b);var _490=d.trim(d.attr(node,"loadingText")||d.attr(node,"defaultValue")||"");if(_490){_48b.defaultValue=_490;}var _491=function(attr,cell,_492){var _493=d.trim(d.attr(node,attr)||"")||undefined;if(_493){cell[_492||attr]=_493;}};_491("styles",_48b);_491("headerStyles",_48b);_491("cellStyles",_48b);_491("classes",_48b);_491("headerClasses",_48b);_491("cellClasses",_48b);};dojo.declare("dojox.grid.cells.Cell",dgc._Base,{constructor:function(){this.keyFilter=this.keyFilter;},keyFilter:null,formatEditing:function(_494,_495){this.needFormatNode(_494,_495);return "<input class=\"dojoxGridInput\" type=\"text\" value=\""+_494+"\">";},formatNode:function(_496,_497,_498){this.inherited(arguments);this.registerOnBlur(_496,_498);},doKey:function(e){if(this.keyFilter){var key=String.fromCharCode(e.charCode);if(key.search(this.keyFilter)==-1){dojo.stopEvent(e);}}},_finish:function(_499){this.inherited(arguments);var n=this.getEditNode(_499);try{dojox.grid.util.fire(n,"blur");}catch(e){}}});dgc.Cell.markupFactory=function(node,_49a){dgc._Base.markupFactory(node,_49a);var d=dojo;var _49b=d.trim(d.attr(node,"keyFilter")||"");if(_49b){_49a.keyFilter=new RegExp(_49b);}};dojo.declare("dojox.grid.cells.RowIndex",dgc.Cell,{name:"Row",postscript:function(){this.editable=false;},get:function(_49c){return _49c+1;}});dgc.RowIndex.markupFactory=function(node,_49d){dgc.Cell.markupFactory(node,_49d);};dojo.declare("dojox.grid.cells.Select",dgc.Cell,{options:null,values:null,returnIndex:-1,constructor:function(_49e){this.values=this.values||this.options;},formatEditing:function(_49f,_4a0){this.needFormatNode(_49f,_4a0);var h=["<select class=\"dojoxGridSelect\">"];for(var i=0,o,v;((o=this.options[i])!==undefined)&&((v=this.values[i])!==undefined);i++){v=v.replace?v.replace(/&/g,"&amp;").replace(/</g,"&lt;"):v;o=o.replace?o.replace(/&/g,"&amp;").replace(/</g,"&lt;"):o;h.push("<option",(_49f==v?" selected":"")," value=\""+v+"\"",">",o,"</option>");}h.push("</select>");return h.join("");},getValue:function(_4a1){var n=this.getEditNode(_4a1);if(n){var i=n.selectedIndex,o=n.options[i];return this.returnIndex>-1?i:o.value||o.innerHTML;}}});dgc.Select.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);var d=dojo;var _4a2=d.trim(d.attr(node,"options")||"");if(_4a2){var o=_4a2.split(",");if(o[0]!=_4a2){cell.options=o;}}var _4a3=d.trim(d.attr(node,"values")||"");if(_4a3){var v=_4a3.split(",");if(v[0]!=_4a3){cell.values=v;}}};dojo.declare("dojox.grid.cells.AlwaysEdit",dgc.Cell,{alwaysEditing:true,_formatNode:function(_4a4,_4a5){this.formatNode(this.getEditNode(_4a5),_4a4,_4a5);},applyStaticValue:function(_4a6){var e=this.grid.edit;e.applyCellEdit(this.getValue(_4a6),this,_4a6);e.start(this,_4a6,true);}});dgc.AlwaysEdit.markupFactory=function(node,cell){dgc.Cell.markupFactory(node,cell);};dojo.declare("dojox.grid.cells.Bool",dgc.AlwaysEdit,{_valueProp:"checked",formatEditing:function(_4a7,_4a8){return "<input class=\"dojoxGridInput\" type=\"checkbox\""+(_4a7?" checked=\"checked\"":"")+" style=\"width: auto\" />";},doclick:function(e){if(e.target.tagName=="INPUT"){this.applyStaticValue(e.rowIndex);}}});dgc.Bool.markupFactory=function(node,cell){dgc.AlwaysEdit.markupFactory(node,cell);};})();}if(!dojo._hasResource["dojox.grid.cells"]){dojo._hasResource["dojox.grid.cells"]=true;dojo.provide("dojox.grid.cells");}if(!dojo._hasResource["dojo.dnd.common"]){dojo._hasResource["dojo.dnd.common"]=true;dojo.provide("dojo.dnd.common");dojo.getObject("dnd",true,dojo);dojo.dnd.getCopyKeyState=dojo.isCopyKey;dojo.dnd._uniqueId=0;dojo.dnd.getUniqueId=function(){var id;do{id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);}while(dojo.byId(id));return id;};dojo.dnd._empty={};dojo.dnd.isFormElement=function(e){var t=e.target;if(t.nodeType==3){t=t.parentNode;}return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;};}if(!dojo._hasResource["dojo.dnd.autoscroll"]){dojo._hasResource["dojo.dnd.autoscroll"]=true;dojo.provide("dojo.dnd.autoscroll");dojo.getObject("dnd",true,dojo);dojo.dnd.getViewport=dojo.window.getBox;dojo.dnd.V_TRIGGER_AUTOSCROLL=32;dojo.dnd.H_TRIGGER_AUTOSCROLL=32;dojo.dnd.V_AUTOSCROLL_VALUE=16;dojo.dnd.H_AUTOSCROLL_VALUE=16;dojo.dnd.autoScroll=function(e){var v=dojo.window.getBox(),dx=0,dy=0;if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=-dojo.dnd.H_AUTOSCROLL_VALUE;}else{if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){dx=dojo.dnd.H_AUTOSCROLL_VALUE;}}if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=-dojo.dnd.V_AUTOSCROLL_VALUE;}else{if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){dy=dojo.dnd.V_AUTOSCROLL_VALUE;}}window.scrollBy(dx,dy);};dojo.dnd._validNodes={"div":1,"p":1,"td":1};dojo.dnd._validOverflow={"auto":1,"scroll":1};dojo.dnd.autoScrollNodes=function(e){for(var n=e.target;n;){if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){var s=dojo.getComputedStyle(n);if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){var b=dojo._getContentBox(n,s),t=dojo.position(n,true);var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;if(dojo.isWebKit||dojo.isOpera){rx+=dojo.body().scrollLeft;ry+=dojo.body().scrollTop;}if(rx>0&&rx<b.w){if(rx<w){dx=-w;}else{if(rx>b.w-w){dx=w;}}}if(ry>0&&ry<b.h){if(ry<h){dy=-h;}else{if(ry>b.h-h){dy=h;}}}var _4a9=n.scrollLeft,_4aa=n.scrollTop;n.scrollLeft=n.scrollLeft+dx;n.scrollTop=n.scrollTop+dy;if(_4a9!=n.scrollLeft||_4aa!=n.scrollTop){return;}}}try{n=n.parentNode;}catch(x){n=null;}}dojo.dnd.autoScroll(e);};}if(!dojo._hasResource["dojo.dnd.Mover"]){dojo._hasResource["dojo.dnd.Mover"]=true;dojo.provide("dojo.dnd.Mover");dojo.declare("dojo.dnd.Mover",null,{constructor:function(node,e,host){this.node=dojo.byId(node);var pos=e.touches?e.touches[0]:e;this.marginBox={l:pos.pageX,t:pos.pageY};this.mouseButton=e.button;var h=(this.host=host),d=node.ownerDocument;this.events=[dojo.connect(d,"onmousemove",this,"onFirstMove"),dojo.connect(d,"ontouchmove",this,"onFirstMove"),dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"ontouchmove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ontouchend",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent)];if(h&&h.onMoveStart){h.onMoveStart(this);}},onMouseMove:function(e){dojo.dnd.autoScroll(e);var m=this.marginBox,pos=e.touches?e.touches[0]:e;this.host.onMove(this,{l:m.l+pos.pageX,t:m.t+pos.pageY},e);dojo.stopEvent(e);},onMouseUp:function(e){if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){this.destroy();}dojo.stopEvent(e);},onFirstMove:function(e){var s=this.node.style,l,t,h=this.host;switch(s.position){case "relative":case "absolute":l=Math.round(parseFloat(s.left))||0;t=Math.round(parseFloat(s.top))||0;break;default:s.position="absolute";var m=dojo.marginBox(this.node);var b=dojo.doc.body;var bs=dojo.getComputedStyle(b);var bm=dojo._getMarginBox(b,bs);var bc=dojo._getContentBox(b,bs);l=m.l-(bc.l-bm.l);t=m.t-(bc.t-bm.t);break;}this.marginBox.l=l-this.marginBox.l;this.marginBox.t=t-this.marginBox.t;if(h&&h.onFirstMove){h.onFirstMove(this,e);}dojo.disconnect(this.events.shift());dojo.disconnect(this.events.shift());},destroy:function(){dojo.forEach(this.events,dojo.disconnect);var h=this.host;if(h&&h.onMoveStop){h.onMoveStop(this);}this.events=this.node=this.host=null;}});}if(!dojo._hasResource["dojo.dnd.Moveable"]){dojo._hasResource["dojo.dnd.Moveable"]=true;dojo.provide("dojo.dnd.Moveable");dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(node,_4ab){this.node=dojo.byId(node);if(!_4ab){_4ab={};}this.handle=_4ab.handle?dojo.byId(_4ab.handle):null;if(!this.handle){this.handle=this.node;}this.delay=_4ab.delay>0?_4ab.delay:0;this.skip=_4ab.skip;this.mover=_4ab.mover?_4ab.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ontouchstart",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];},markupFactory:function(_4ac,node){return new dojo.dnd.Moveable(node,_4ac);},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null;},onMouseDown:function(e){if(this.skip&&dojo.dnd.isFormElement(e)){return;}if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"ontouchmove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"),dojo.connect(this.handle,"ontouchend",this,"onMouseUp"));var pos=e.touches?e.touches[0]:e;this._lastX=pos.pageX;this._lastY=pos.pageY;}else{this.onDragDetected(e);}dojo.stopEvent(e);},onMouseMove:function(e){var pos=e.touches?e.touches[0]:e;if(Math.abs(pos.pageX-this._lastX)>this.delay||Math.abs(pos.pageY-this._lastY)>this.delay){this.onMouseUp(e);this.onDragDetected(e);}dojo.stopEvent(e);},onMouseUp:function(e){for(var i=0;i<2;++i){dojo.disconnect(this.events.pop());}dojo.stopEvent(e);},onSelectStart:function(e){if(!this.skip||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onDragDetected:function(e){new this.mover(this.node,e,this);},onMoveStart:function(_4ad){dojo.publish("/dnd/move/start",[_4ad]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem");},onMoveStop:function(_4ae){dojo.publish("/dnd/move/stop",[_4ae]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");},onFirstMove:function(_4af,e){},onMove:function(_4b0,_4b1,e){this.onMoving(_4b0,_4b1);var s=_4b0.node.style;s.left=_4b1.l+"px";s.top=_4b1.t+"px";this.onMoved(_4b0,_4b1);},onMoving:function(_4b2,_4b3){},onMoved:function(_4b4,_4b5){}});}if(!dojo._hasResource["dojox.grid._Builder"]){dojo._hasResource["dojox.grid._Builder"]=true;dojo.provide("dojox.grid._Builder");(function(){var dg=dojox.grid;var _4b6=function(td){return td.cellIndex>=0?td.cellIndex:dojo.indexOf(td.parentNode.cells,td);};var _4b7=function(tr){return tr.rowIndex>=0?tr.rowIndex:dojo.indexOf(tr.parentNode.childNodes,tr);};var _4b8=function(_4b9,_4ba){return _4b9&&((_4b9.rows||0)[_4ba]||_4b9.childNodes[_4ba]);};var _4bb=function(node){for(var n=node;n&&n.tagName!="TABLE";n=n.parentNode){}return n;};var _4bc=function(_4bd,_4be){for(var n=_4bd;n&&_4be(n);n=n.parentNode){}return n;};var _4bf=function(_4c0){var name=_4c0.toUpperCase();return function(node){return node.tagName!=name;};};var _4c1=dojox.grid.util.rowIndexTag;var _4c2=dojox.grid.util.gridViewTag;dg._Builder=dojo.extend(function(view){if(view){this.view=view;this.grid=view.grid;}},{view:null,_table:"<table class=\"dojoxGridRowTable\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"",getTableArray:function(){var html=[this._table];if(this.view.viewWidth){html.push([" style=\"width:",this.view.viewWidth,";\""].join(""));}html.push(">");return html;},generateCellMarkup:function(_4c3,_4c4,_4c5,_4c6){var _4c7=[],html;if(_4c6){var _4c8=_4c3.index!=_4c3.grid.getSortIndex()?"":_4c3.grid.sortInfo>0?"aria-sort=\"ascending\"":"aria-sort=\"descending\"";if(!_4c3.id){_4c3.id=this.grid.id+"Hdr"+_4c3.index;}html=["<th tabIndex=\"-1\" aria-readonly=\"true\" role=\"columnheader\"",_4c8,"id=\"",_4c3.id,"\""];}else{var _4c9=this.grid.editable&&!_4c3.editable?"aria-readonly=\"true\"":"";html=["<td tabIndex=\"-1\" role=\"gridcell\"",_4c9];}if(_4c3.colSpan){html.push(" colspan=\"",_4c3.colSpan,"\"");}if(_4c3.rowSpan){html.push(" rowspan=\"",_4c3.rowSpan,"\"");}html.push(" class=\"dojoxGridCell ");if(_4c3.classes){html.push(_4c3.classes," ");}if(_4c5){html.push(_4c5," ");}_4c7.push(html.join(""));_4c7.push("");html=["\" idx=\"",_4c3.index,"\" style=\""];if(_4c4&&_4c4[_4c4.length-1]!=";"){_4c4+=";";}html.push(_4c3.styles,_4c4||"",_4c3.hidden?"display:none;":"");if(_4c3.unitWidth){html.push("width:",_4c3.unitWidth,";");}_4c7.push(html.join(""));_4c7.push("");html=["\""];if(_4c3.attrs){html.push(" ",_4c3.attrs);}html.push(">");_4c7.push(html.join(""));_4c7.push("");_4c7.push(_4c6?"</th>":"</td>");return _4c7;},isCellNode:function(_4ca){return Boolean(_4ca&&_4ca!=dojo.doc&&dojo.attr(_4ca,"idx"));},getCellNodeIndex:function(_4cb){return _4cb?Number(dojo.attr(_4cb,"idx")):-1;},getCellNode:function(_4cc,_4cd){for(var i=0,row;((row=_4b8(_4cc.firstChild,i))&&row.cells);i++){for(var j=0,cell;(cell=row.cells[j]);j++){if(this.getCellNodeIndex(cell)==_4cd){return cell;}}}return null;},findCellTarget:function(_4ce,_4cf){var n=_4ce;while(n&&(!this.isCellNode(n)||(n.offsetParent&&_4c2 in n.offsetParent.parentNode&&n.offsetParent.parentNode[_4c2]!=this.view.id))&&(n!=_4cf)){n=n.parentNode;}return n!=_4cf?n:null;},baseDecorateEvent:function(e){e.dispatch="do"+e.type;e.grid=this.grid;e.sourceView=this.view;e.cellNode=this.findCellTarget(e.target,e.rowNode);e.cellIndex=this.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);},findTarget:function(_4d0,_4d1){var n=_4d0;while(n&&(n!=this.domNode)&&(!(_4d1 in n)||(_4c2 in n&&n[_4c2]!=this.view.id))){n=n.parentNode;}return (n!=this.domNode)?n:null;},findRowTarget:function(_4d2){return this.findTarget(_4d2,_4c1);},isIntraNodeEvent:function(e){try{return (e.cellNode&&e.relatedTarget&&dojo.isDescendant(e.relatedTarget,e.cellNode));}catch(x){return false;}},isIntraRowEvent:function(e){try{var row=e.relatedTarget&&this.findRowTarget(e.relatedTarget);return !row&&(e.rowIndex==-1)||row&&(e.rowIndex==row.gridRowIndex);}catch(x){return false;}},dispatchEvent:function(e){if(e.dispatch in this){return this[e.dispatch](e);}return false;},domouseover:function(e){if(e.cellNode&&(e.cellNode!=this.lastOverCellNode)){this.lastOverCellNode=e.cellNode;this.grid.onMouseOver(e);}this.grid.onMouseOverRow(e);},domouseout:function(e){if(e.cellNode&&(e.cellNode==this.lastOverCellNode)&&!this.isIntraNodeEvent(e,this.lastOverCellNode)){this.lastOverCellNode=null;this.grid.onMouseOut(e);if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}},domousedown:function(e){if(e.cellNode){this.grid.onMouseDown(e);}this.grid.onMouseDownRow(e);}});dg._ContentBuilder=dojo.extend(function(view){dg._Builder.call(this,view);},dg._Builder.prototype,{update:function(){this.prepareHtml();},prepareHtml:function(){var _4d3=this.grid.get,_4d4=this.view.structure.cells;for(var j=0,row;(row=_4d4[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.get=cell.get||(cell.value==undefined)&&_4d3;cell.markup=this.generateCellMarkup(cell,cell.cellStyles,cell.cellClasses,false);if(!this.grid.editable&&cell.editable){this.grid.editable=true;}}}},generateHtml:function(_4d5,_4d6){var html=this.getTableArray(),v=this.view,_4d7=v.structure.cells,item=this.grid.getItem(_4d6);dojox.grid.util.fire(this.view,"onBeforeRow",[_4d6,_4d7]);for(var j=0,row;(row=_4d7[j]);j++){if(row.hidden||row.header){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,m,cc,cs;(cell=row[i]);i++){m=cell.markup;cc=cell.customClasses=[];cs=cell.customStyles=[];m[5]=cell.format(_4d6,item);if(dojo.isIE<8&&(m[5]===null||m[5]===""||/^\s+$/.test(m[5]))){m[5]="&nbsp;";}m[1]=cc.join(" ");m[3]=cs.join(";");html.push.apply(html,m);}html.push("</tr>");}html.push("</table>");return html.join("");},decorateEvent:function(e){e.rowNode=this.findRowTarget(e.target);if(!e.rowNode){return false;}e.rowIndex=e.rowNode[_4c1];this.baseDecorateEvent(e);e.cell=this.grid.getCell(e.cellIndex);return true;}});dg._HeaderBuilder=dojo.extend(function(view){this.moveable=null;dg._Builder.call(this,view);},dg._Builder.prototype,{_skipBogusClicks:false,overResizeWidth:4,minColWidth:1,update:function(){if(this.tableMap){this.tableMap.mapRows(this.view.structure.cells);}else{this.tableMap=new dg._TableMap(this.view.structure.cells);}},generateHtml:function(_4d8,_4d9){var html=this.getTableArray(),_4da=this.view.structure.cells;dojox.grid.util.fire(this.view,"onBeforeRow",[-1,_4da]);for(var j=0,row;(row=_4da[j]);j++){if(row.hidden){continue;}html.push(!row.invisible?"<tr>":"<tr class=\"dojoxGridInvisible\">");for(var i=0,cell,_4db;(cell=row[i]);i++){cell.customClasses=[];cell.customStyles=[];if(this.view.simpleStructure){if(cell.draggable){if(cell.headerClasses){if(cell.headerClasses.indexOf("dojoDndItem")==-1){cell.headerClasses+=" dojoDndItem";}}else{cell.headerClasses="dojoDndItem";}}if(cell.attrs){if(cell.attrs.indexOf("dndType='gridColumn_")==-1){cell.attrs+=" dndType='gridColumn_"+this.grid.id+"'";}}else{cell.attrs="dndType='gridColumn_"+this.grid.id+"'";}}_4db=this.generateCellMarkup(cell,cell.headerStyles,cell.headerClasses,true);_4db[5]=(_4d9!=undefined?_4d9:_4d8(cell));_4db[3]=cell.customStyles.join(";");_4db[1]=cell.customClasses.join(" ");html.push(_4db.join(""));}html.push("</tr>");}html.push("</table>");return html.join("");},getCellX:function(e){var n,x=e.layerX;if(dojo.isMoz||dojo.isIE>=9){n=_4bc(e.target,_4bf("th"));x-=(n&&n.offsetLeft)||0;var t=e.sourceView.getScrollbarWidth();if(!dojo._isBodyLtr()){table=_4bc(n,_4bf("table"));x-=(table&&table.offsetLeft)||0;}}n=_4bc(e.target,function(){if(!n||n==e.cellNode){return false;}x+=(n.offsetLeft<0?0:n.offsetLeft);return true;});return x;},decorateEvent:function(e){this.baseDecorateEvent(e);e.rowIndex=-1;e.cellX=this.getCellX(e);return true;},prepareResize:function(e,mod){do{var i=_4b6(e.cellNode);e.cellNode=(i?e.cellNode.parentNode.cells[i+mod]:null);e.cellIndex=(e.cellNode?this.getCellNodeIndex(e.cellNode):-1);}while(e.cellNode&&e.cellNode.style.display=="none");return Boolean(e.cellNode);},canResize:function(e){if(!e.cellNode||e.cellNode.colSpan>1){return false;}var cell=this.grid.getCell(e.cellIndex);return !cell.noresize&&cell.canResize();},overLeftResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return (e.cellIndex>0)&&(e.cellX>0&&e.cellX<this.overResizeWidth)&&this.prepareResize(e,-1);}var t=e.cellNode&&(e.cellX>0&&e.cellX<this.overResizeWidth);return t;},overRightResizeArea:function(e){if(dojo.hasClass(dojo.body(),"dojoDndMove")){return false;}if(dojo.isIE){var tN=e.target;if(dojo.hasClass(tN,"dojoxGridArrowButtonNode")||dojo.hasClass(tN,"dojoxGridArrowButtonChar")||dojo.hasClass(tN,"dojoxGridColCaption")){return false;}}if(dojo._isBodyLtr()){return e.cellNode&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth);}return (e.cellIndex>0)&&(e.cellX>=e.cellNode.offsetWidth-this.overResizeWidth)&&this.prepareResize(e,-1);},domousemove:function(e){if(!this.moveable){var c=(this.overRightResizeArea(e)?"dojoxGridColResize":(this.overLeftResizeArea(e)?"dojoxGridColResize":""));if(c&&!this.canResize(e)){c="dojoxGridColNoResize";}dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColNoResize",(c=="dojoxGridColNoResize"));dojo.toggleClass(e.sourceView.headerNode,"dojoxGridColResize",(c=="dojoxGridColResize"));if(dojo.isIE){var t=e.sourceView.headerNode.scrollLeft;e.sourceView.headerNode.scrollLeft=t;}if(c){dojo.stopEvent(e);}}},domousedown:function(e){if(!this.moveable){if((this.overRightResizeArea(e)||this.overLeftResizeArea(e))&&this.canResize(e)){this.beginColumnResize(e);}else{this.grid.onMouseDown(e);this.grid.onMouseOverRow(e);}}},doclick:function(e){if(this._skipBogusClicks){dojo.stopEvent(e);return true;}return false;},colResizeSetup:function(e,_4dc){var _4dd=dojo.contentBox(e.sourceView.headerNode);if(_4dc){this.lineDiv=document.createElement("div");var vw=(dojo.position||dojo._abs)(e.sourceView.headerNode,true);var _4de=dojo.contentBox(e.sourceView.domNode);var l=e.pageX;if(!dojo._isBodyLtr()&&dojo.isIE<8){l-=dojox.html.metrics.getScrollbar().w;}dojo.style(this.lineDiv,{top:vw.y+"px",left:l+"px",height:(_4de.h+_4dd.h)+"px"});dojo.addClass(this.lineDiv,"dojoxGridResizeColLine");this.lineDiv._origLeft=l;dojo.body().appendChild(this.lineDiv);}var _4df=[],_4e0=this.tableMap.findOverlappingNodes(e.cellNode);for(var i=0,cell;(cell=_4e0[i]);i++){_4df.push({node:cell,index:this.getCellNodeIndex(cell),width:cell.offsetWidth});}var view=e.sourceView;var adj=dojo._isBodyLtr()?1:-1;var _4e1=e.grid.views.views;var _4e2=[];for(var j=view.idx+adj,_4e3;(_4e3=_4e1[j]);j=j+adj){_4e2.push({node:_4e3.headerNode,left:window.parseInt(_4e3.headerNode.style.left)});}var _4e4=view.headerContentNode.firstChild;var drag={scrollLeft:e.sourceView.headerNode.scrollLeft,view:view,node:e.cellNode,index:e.cellIndex,w:dojo.contentBox(e.cellNode).w,vw:_4dd.w,table:_4e4,tw:dojo.contentBox(_4e4).w,spanners:_4df,followers:_4e2};return drag;},beginColumnResize:function(e){this.moverDiv=document.createElement("div");dojo.style(this.moverDiv,{position:"absolute",left:0});dojo.body().appendChild(this.moverDiv);dojo.addClass(this.grid.domNode,"dojoxGridColumnResizing");var m=(this.moveable=new dojo.dnd.Moveable(this.moverDiv));var drag=this.colResizeSetup(e,true);m.onMove=dojo.hitch(this,"doResizeColumn",drag);dojo.connect(m,"onMoveStop",dojo.hitch(this,function(){this.endResizeColumn(drag);if(drag.node.releaseCapture){drag.node.releaseCapture();}this.moveable.destroy();delete this.moveable;this.moveable=null;dojo.removeClass(this.grid.domNode,"dojoxGridColumnResizing");}));if(e.cellNode.setCapture){e.cellNode.setCapture();}m.onMouseDown(e);},doResizeColumn:function(_4e5,_4e6,_4e7){var _4e8=_4e7.l;var data={deltaX:_4e8,w:_4e5.w+(dojo._isBodyLtr()?_4e8:-_4e8),vw:_4e5.vw+_4e8,tw:_4e5.tw+_4e8};this.dragRecord={inDrag:_4e5,mover:_4e6,leftTop:_4e7};if(data.w>=this.minColWidth){if(!_4e6){this.doResizeNow(_4e5,data);}else{dojo.style(this.lineDiv,"left",(this.lineDiv._origLeft+data.deltaX)+"px");}}},endResizeColumn:function(_4e9){if(this.dragRecord){var _4ea=this.dragRecord.leftTop;var _4eb=dojo._isBodyLtr()?_4ea.l:-_4ea.l;_4eb+=Math.max(_4e9.w+_4eb,this.minColWidth)-(_4e9.w+_4eb);if(dojo.isWebKit&&_4e9.spanners.length){_4eb+=dojo._getPadBorderExtents(_4e9.spanners[0].node).w;}var data={deltaX:_4eb,w:_4e9.w+_4eb,vw:_4e9.vw+_4eb,tw:_4e9.tw+_4eb};this.doResizeNow(_4e9,data);delete this.dragRecord;}dojo.destroy(this.lineDiv);dojo.destroy(this.moverDiv);dojo.destroy(this.moverDiv);delete this.moverDiv;this._skipBogusClicks=true;_4e9.view.update();this._skipBogusClicks=false;this.grid.onResizeColumn(_4e9.index);},doResizeNow:function(_4ec,data){_4ec.view.convertColPctToFixed();if(_4ec.view.flexCells&&!_4ec.view.testFlexCells()){var t=_4bb(_4ec.node);if(t){(t.style.width="");}}var i,s,sw,f,fl;for(i=0;(s=_4ec.spanners[i]);i++){sw=s.width+data.deltaX;if(sw>0){s.node.style.width=sw+"px";_4ec.view.setColWidth(s.index,sw);}}if(dojo._isBodyLtr()||!dojo.isIE){for(i=0;(f=_4ec.followers[i]);i++){fl=f.left+data.deltaX;f.node.style.left=fl+"px";}}_4ec.node.style.width=data.w+"px";_4ec.view.setColWidth(_4ec.index,data.w);_4ec.view.headerNode.style.width=data.vw+"px";_4ec.view.setColumnsWidth(data.tw);if(!dojo._isBodyLtr()){_4ec.view.headerNode.scrollLeft=_4ec.scrollLeft+data.deltaX;}}});dg._TableMap=dojo.extend(function(rows){this.mapRows(rows);},{map:null,mapRows:function(_4ed){var _4ee=_4ed.length;if(!_4ee){return;}this.map=[];var row;for(var k=0;(row=_4ed[k]);k++){this.map[k]=[];}for(var j=0;(row=_4ed[j]);j++){for(var i=0,x=0,cell,_4ef,_4f0;(cell=row[i]);i++){while(this.map[j][x]){x++;}this.map[j][x]={c:i,r:j};_4f0=cell.rowSpan||1;_4ef=cell.colSpan||1;for(var y=0;y<_4f0;y++){for(var s=0;s<_4ef;s++){this.map[j+y][x+s]=this.map[j][x];}}x+=_4ef;}}},dumpMap:function(){for(var j=0,row,h="";(row=this.map[j]);j++,h=""){for(var i=0,cell;(cell=row[i]);i++){h+=cell.r+","+cell.c+"   ";}}},getMapCoords:function(_4f1,_4f2){for(var j=0,row;(row=this.map[j]);j++){for(var i=0,cell;(cell=row[i]);i++){if(cell.c==_4f2&&cell.r==_4f1){return {j:j,i:i};}}}return {j:-1,i:-1};},getNode:function(_4f3,_4f4,_4f5){var row=_4f3&&_4f3.rows[_4f4];return row&&row.cells[_4f5];},_findOverlappingNodes:function(_4f6,_4f7,_4f8){var _4f9=[];var m=this.getMapCoords(_4f7,_4f8);for(var j=0,row;(row=this.map[j]);j++){if(j==m.j){continue;}var rw=row[m.i];var n=(rw?this.getNode(_4f6,rw.r,rw.c):null);if(n){_4f9.push(n);}}return _4f9;},findOverlappingNodes:function(_4fa){return this._findOverlappingNodes(_4bb(_4fa),_4b7(_4fa.parentNode),_4b6(_4fa));}});})();}if(!dojo._hasResource["dojo.dnd.Container"]){dojo._hasResource["dojo.dnd.Container"]=true;dojo.provide("dojo.dnd.Container");dojo.declare("dojo.dnd.Container",null,{skipForm:false,constructor:function(node,_4fb){this.node=dojo.byId(node);if(!_4fb){_4fb={};}this.creator=_4fb.creator||null;this.skipForm=_4fb.skipForm;this.parent=_4fb.dropParent&&dojo.byId(_4fb.dropParent);this.map={};this.current=null;this.containerState="";dojo.addClass(this.node,"dojoDndContainer");if(!(_4fb&&_4fb._skipStartup)){this.startup();}this.events=[dojo.connect(this.node,"onmouseover",this,"onMouseOver"),dojo.connect(this.node,"onmouseout",this,"onMouseOut"),dojo.connect(this.node,"ondragstart",this,"onSelectStart"),dojo.connect(this.node,"onselectstart",this,"onSelectStart")];},creator:function(){},getItem:function(key){return this.map[key];},setItem:function(key,data){this.map[key]=data;},delItem:function(key){delete this.map[key];},forInItems:function(f,o){o=o||dojo.global;var m=this.map,e=dojo.dnd._empty;for(var i in m){if(i in e){continue;}f.call(o,m[i],i,this);}return o;},clearItems:function(){this.map={};},getAllNodes:function(){return dojo.query("> .dojoDndItem",this.parent);},sync:function(){var map={};this.getAllNodes().forEach(function(node){if(node.id){var item=this.getItem(node.id);if(item){map[node.id]=item;return;}}else{node.id=dojo.dnd.getUniqueId();}var type=node.getAttribute("dndType"),data=node.getAttribute("dndData");map[node.id]={data:data||node.innerHTML,type:type?type.split(/\s*,\s*/):["text"]};},this);this.map=map;return this;},insertNodes:function(data,_4fc,_4fd){if(!this.parent.firstChild){_4fd=null;}else{if(_4fc){if(!_4fd){_4fd=this.parent.firstChild;}}else{if(_4fd){_4fd=_4fd.nextSibling;}}}if(_4fd){for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.insertBefore(t.node,_4fd);}}else{for(var i=0;i<data.length;++i){var t=this._normalizedCreator(data[i]);this.setItem(t.node.id,{data:t.data,type:t.type});this.parent.appendChild(t.node);}}return this;},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.clearItems();this.node=this.parent=this.current=null;},markupFactory:function(_4fe,node){_4fe._skipStartup=true;return new dojo.dnd.Container(node,_4fe);},startup:function(){if(!this.parent){this.parent=this.node;if(this.parent.tagName.toLowerCase()=="table"){var c=this.parent.getElementsByTagName("tbody");if(c&&c.length){this.parent=c[0];}}}this.defaultCreator=dojo.dnd._defaultCreator(this.parent);this.sync();},onMouseOver:function(e){var n=e.relatedTarget;while(n){if(n==this.node){break;}try{n=n.parentNode;}catch(x){n=null;}}if(!n){this._changeState("Container","Over");this.onOverEvent();}n=this._getChildByEvent(e);if(this.current==n){return;}if(this.current){this._removeItemClass(this.current,"Over");}if(n){this._addItemClass(n,"Over");}this.current=n;},onMouseOut:function(e){for(var n=e.relatedTarget;n;){if(n==this.node){return;}try{n=n.parentNode;}catch(x){n=null;}}if(this.current){this._removeItemClass(this.current,"Over");this.current=null;}this._changeState("Container","");this.onOutEvent();},onSelectStart:function(e){if(!this.skipForm||!dojo.dnd.isFormElement(e)){dojo.stopEvent(e);}},onOverEvent:function(){},onOutEvent:function(){},_changeState:function(type,_4ff){var _500="dojoDnd"+type;var _501=type.toLowerCase()+"State";dojo.replaceClass(this.node,_500+_4ff,_500+this[_501]);this[_501]=_4ff;},_addItemClass:function(node,type){dojo.addClass(node,"dojoDndItem"+type);},_removeItemClass:function(node,type){dojo.removeClass(node,"dojoDndItem"+type);},_getChildByEvent:function(e){var node=e.target;if(node){for(var _502=node.parentNode;_502;node=_502,_502=node.parentNode){if(_502==this.parent&&dojo.hasClass(node,"dojoDndItem")){return node;}}}return null;},_normalizedCreator:function(item,hint){var t=(this.creator||this.defaultCreator).call(this,item,hint);if(!dojo.isArray(t.type)){t.type=["text"];}if(!t.node.id){t.node.id=dojo.dnd.getUniqueId();}dojo.addClass(t.node,"dojoDndItem");return t;}});dojo.dnd._createNode=function(tag){if(!tag){return dojo.dnd._createSpan;}return function(text){return dojo.create(tag,{innerHTML:text});};};dojo.dnd._createTrTd=function(text){var tr=dojo.create("tr");dojo.create("td",{innerHTML:text},tr);return tr;};dojo.dnd._createSpan=function(text){return dojo.create("span",{innerHTML:text});};dojo.dnd._defaultCreatorNodes={ul:"li",ol:"li",div:"div",p:"div"};dojo.dnd._defaultCreator=function(node){var tag=node.tagName.toLowerCase();var c=tag=="tbody"||tag=="thead"?dojo.dnd._createTrTd:dojo.dnd._createNode(dojo.dnd._defaultCreatorNodes[tag]);return function(item,hint){var _503=item&&dojo.isObject(item),data,type,n;if(_503&&item.tagName&&item.nodeType&&item.getAttribute){data=item.getAttribute("dndData")||item.innerHTML;type=item.getAttribute("dndType");type=type?type.split(/\s*,\s*/):["text"];n=item;}else{data=(_503&&item.data)?item.data:item;type=(_503&&item.type)?item.type:["text"];n=(hint=="avatar"?dojo.dnd._createSpan:c)(String(data));}if(!n.id){n.id=dojo.dnd.getUniqueId();}return {node:n,data:data,type:type};};};}if(!dojo._hasResource["dojo.dnd.Selector"]){dojo._hasResource["dojo.dnd.Selector"]=true;dojo.provide("dojo.dnd.Selector");dojo.declare("dojo.dnd.Selector",dojo.dnd.Container,{constructor:function(node,_504){if(!_504){_504={};}this.singular=_504.singular;this.autoSync=_504.autoSync;this.selection={};this.anchor=null;this.simpleSelection=false;this.events.push(dojo.connect(this.node,"onmousedown",this,"onMouseDown"),dojo.connect(this.node,"onmouseup",this,"onMouseUp"));},singular:false,getSelectedNodes:function(){var t=new dojo.NodeList();var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}t.push(dojo.byId(i));}return t;},selectNone:function(){return this._removeSelection()._removeAnchor();},selectAll:function(){this.forInItems(function(data,id){this._addItemClass(dojo.byId(id),"Selected");this.selection[id]=1;},this);return this._removeAnchor();},deleteSelectedNodes:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var n=dojo.byId(i);this.delItem(i);dojo.destroy(n);}this.anchor=null;this.selection={};return this;},forInSelectedItems:function(f,o){o=o||dojo.global;var s=this.selection,e=dojo.dnd._empty;for(var i in s){if(i in e){continue;}f.call(o,this.getItem(i),i,this);}},sync:function(){dojo.dnd.Selector.superclass.sync.call(this);if(this.anchor){if(!this.getItem(this.anchor.id)){this.anchor=null;}}var t=[],e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}if(!this.getItem(i)){t.push(i);}}dojo.forEach(t,function(i){delete this.selection[i];},this);return this;},insertNodes:function(_505,data,_506,_507){var _508=this._normalizedCreator;this._normalizedCreator=function(item,hint){var t=_508.call(this,item,hint);if(_505){if(!this.anchor){this.anchor=t.node;this._removeItemClass(t.node,"Selected");this._addItemClass(this.anchor,"Anchor");}else{if(this.anchor!=t.node){this._removeItemClass(t.node,"Anchor");this._addItemClass(t.node,"Selected");}}this.selection[t.node.id]=1;}else{this._removeItemClass(t.node,"Selected");this._removeItemClass(t.node,"Anchor");}return t;};dojo.dnd.Selector.superclass.insertNodes.call(this,data,_506,_507);this._normalizedCreator=_508;return this;},destroy:function(){dojo.dnd.Selector.superclass.destroy.call(this);this.selection=this.anchor=null;},markupFactory:function(_509,node){_509._skipStartup=true;return new dojo.dnd.Selector(node,_509);},onMouseDown:function(e){if(this.autoSync){this.sync();}if(!this.current){return;}if(!this.singular&&!dojo.isCopyKey(e)&&!e.shiftKey&&(this.current.id in this.selection)){this.simpleSelection=true;if(e.button===dojo.mouseButtons.LEFT){dojo.stopEvent(e);}return;}if(!this.singular&&e.shiftKey){if(!dojo.isCopyKey(e)){this._removeSelection();}var c=this.getAllNodes();if(c.length){if(!this.anchor){this.anchor=c[0];this._addItemClass(this.anchor,"Anchor");}this.selection[this.anchor.id]=1;if(this.anchor!=this.current){var i=0;for(;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}}for(++i;i<c.length;++i){var node=c[i];if(node==this.anchor||node==this.current){break;}this._addItemClass(node,"Selected");this.selection[node.id]=1;}this._addItemClass(this.current,"Selected");this.selection[this.current.id]=1;}}}else{if(this.singular){if(this.anchor==this.current){if(dojo.isCopyKey(e)){this.selectNone();}}else{this.selectNone();this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}}else{if(dojo.isCopyKey(e)){if(this.anchor==this.current){delete this.selection[this.anchor.id];this._removeAnchor();}else{if(this.current.id in this.selection){this._removeItemClass(this.current,"Selected");delete this.selection[this.current.id];}else{if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this._addItemClass(this.anchor,"Selected");}this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}else{if(!(this.current.id in this.selection)){this.selectNone();this.anchor=this.current;this._addItemClass(this.current,"Anchor");this.selection[this.current.id]=1;}}}}dojo.stopEvent(e);},onMouseUp:function(e){if(!this.simpleSelection){return;}this.simpleSelection=false;this.selectNone();if(this.current){this.anchor=this.current;this._addItemClass(this.anchor,"Anchor");this.selection[this.current.id]=1;}},onMouseMove:function(e){this.simpleSelection=false;},onOverEvent:function(){this.onmousemoveEvent=dojo.connect(this.node,"onmousemove",this,"onMouseMove");},onOutEvent:function(){dojo.disconnect(this.onmousemoveEvent);delete this.onmousemoveEvent;},_removeSelection:function(){var e=dojo.dnd._empty;for(var i in this.selection){if(i in e){continue;}var node=dojo.byId(i);if(node){this._removeItemClass(node,"Selected");}}this.selection={};return this;},_removeAnchor:function(){if(this.anchor){this._removeItemClass(this.anchor,"Anchor");this.anchor=null;}return this;}});}if(!dojo._hasResource["dojo.dnd.Avatar"]){dojo._hasResource["dojo.dnd.Avatar"]=true;dojo.provide("dojo.dnd.Avatar");dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_50a){this.manager=_50a;this.construct();},construct:function(){this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_50b=this.manager.source,node,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),icon=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,span=dojo.create("span",{innerHTML:_50b.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});for(;i<k;++i){if(_50b.creator){node=_50b._normalizedCreator(_50b.getItem(this.manager.nodes[i].id).data,"avatar").node;}else{node=this.manager.nodes[i].cloneNode(true);if(node.tagName.toLowerCase()=="tr"){var _50c=dojo.create("table"),_50d=dojo.create("tbody",null,_50c);_50d.appendChild(node);node=_50c;}}node.id="";tr=dojo.create("tr",null,b);td=dojo.create("td",null,tr);td.appendChild(node);dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});}this.node=a;},destroy:function(){dojo.destroy(this.node);this.node=false;},update:function(){dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");if(this.isA11y){var icon=dojo.byId("a11yIcon");var text="+";if(this.manager.canDropFlag&&!this.manager.copy){text="< ";}else{if(!this.manager.canDropFlag&&!this.manager.copy){text="o";}else{if(!this.manager.canDropFlag){text="x";}}}icon.innerHTML=text;}dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(node){node.innerHTML=this._generateText();},this);},_generateText:function(){return this.manager.nodes.length.toString();}});}if(!dojo._hasResource["dojo.dnd.Manager"]){dojo._hasResource["dojo.dnd.Manager"]=true;dojo.provide("dojo.dnd.Manager");dojo.declare("dojo.dnd.Manager",null,{constructor:function(){this.avatar=null;this.source=null;this.nodes=[];this.copy=true;this.target=null;this.canDropFlag=false;this.events=[];},OFFSET_X:16,OFFSET_Y:16,overSource:function(_50e){if(this.avatar){this.target=(_50e&&_50e.targetState!="Disabled")?_50e:null;this.canDropFlag=Boolean(this.target);this.avatar.update();}dojo.publish("/dnd/source/over",[_50e]);},outSource:function(_50f){if(this.avatar){if(this.target==_50f){this.target=null;this.canDropFlag=false;this.avatar.update();dojo.publish("/dnd/source/over",[null]);}}else{dojo.publish("/dnd/source/over",[null]);}},startDrag:function(_510,_511,copy){this.source=_510;this.nodes=_511;this.copy=Boolean(copy);this.avatar=this.makeAvatar();dojo.body().appendChild(this.avatar.node);dojo.publish("/dnd/start",[_510,_511,this.copy]);this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];var c="dojoDnd"+(copy?"Copy":"Move");dojo.addClass(dojo.body(),c);},canDrop:function(flag){var _512=Boolean(this.target&&flag);if(this.canDropFlag!=_512){this.canDropFlag=_512;this.avatar.update();}},stopDrag:function(){dojo.removeClass(dojo.body(),["dojoDndCopy","dojoDndMove"]);dojo.forEach(this.events,dojo.disconnect);this.events=[];this.avatar.destroy();this.avatar=null;this.source=this.target=null;this.nodes=[];},makeAvatar:function(){return new dojo.dnd.Avatar(this);},updateAvatar:function(){this.avatar.update();},onMouseMove:function(e){var a=this.avatar;if(a){dojo.dnd.autoScrollNodes(e);var s=a.node.style;s.left=(e.pageX+this.OFFSET_X)+"px";s.top=(e.pageY+this.OFFSET_Y)+"px";var copy=Boolean(this.source.copyState(dojo.isCopyKey(e)));if(this.copy!=copy){this._setCopyStatus(copy);}}},onMouseUp:function(e){if(this.avatar){if(this.target&&this.canDropFlag){var copy=Boolean(this.source.copyState(dojo.isCopyKey(e))),_513=[this.source,this.nodes,copy,this.target,e];dojo.publish("/dnd/drop/before",_513);dojo.publish("/dnd/drop",_513);}else{dojo.publish("/dnd/cancel");}this.stopDrag();}},onKeyDown:function(e){if(this.avatar){switch(e.keyCode){case dojo.keys.CTRL:var copy=Boolean(this.source.copyState(true));if(this.copy!=copy){this._setCopyStatus(copy);}break;case dojo.keys.ESCAPE:dojo.publish("/dnd/cancel");this.stopDrag();break;}}},onKeyUp:function(e){if(this.avatar&&e.keyCode==dojo.keys.CTRL){var copy=Boolean(this.source.copyState(false));if(this.copy!=copy){this._setCopyStatus(copy);}}},_setCopyStatus:function(copy){this.copy=copy;this.source._markDndStatus(this.copy);this.updateAvatar();dojo.replaceClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"),"dojoDnd"+(this.copy?"Move":"Copy"));}});dojo.dnd._manager=null;dojo.dnd.manager=function(){if(!dojo.dnd._manager){dojo.dnd._manager=new dojo.dnd.Manager();}return dojo.dnd._manager;};}if(!dojo._hasResource["dojo.dnd.Source"]){dojo._hasResource["dojo.dnd.Source"]=true;dojo.provide("dojo.dnd.Source");dojo.declare("dojo.dnd.Source",dojo.dnd.Selector,{isSource:true,horizontal:false,copyOnly:false,selfCopy:false,selfAccept:true,skipForm:false,withHandles:false,autoSync:false,delay:0,accept:["text"],generateText:true,constructor:function(node,_514){dojo.mixin(this,dojo.mixin({},_514));var type=this.accept;if(type.length){this.accept={};for(var i=0;i<type.length;++i){this.accept[type[i]]=1;}}this.isDragging=false;this.mouseDown=false;this.targetAnchor=null;this.targetBox=null;this.before=true;this._lastX=0;this._lastY=0;this.sourceState="";if(this.isSource){dojo.addClass(this.node,"dojoDndSource");}this.targetState="";if(this.accept){dojo.addClass(this.node,"dojoDndTarget");}if(this.horizontal){dojo.addClass(this.node,"dojoDndHorizontal");}this.topics=[dojo.subscribe("/dnd/source/over",this,"onDndSourceOver"),dojo.subscribe("/dnd/start",this,"onDndStart"),dojo.subscribe("/dnd/drop",this,"onDndDrop"),dojo.subscribe("/dnd/cancel",this,"onDndCancel")];},checkAcceptance:function(_515,_516){if(this==_515){return !this.copyOnly||this.selfAccept;}for(var i=0;i<_516.length;++i){var type=_515.getItem(_516[i].id).type;var flag=false;for(var j=0;j<type.length;++j){if(type[j] in this.accept){flag=true;break;}}if(!flag){return false;}}return true;},copyState:function(_517,self){if(_517){return true;}if(arguments.length<2){self=this==dojo.dnd.manager().target;}if(self){if(this.copyOnly){return this.selfCopy;}}else{return this.copyOnly;}return false;},destroy:function(){dojo.dnd.Source.superclass.destroy.call(this);dojo.forEach(this.topics,dojo.unsubscribe);this.targetAnchor=null;},markupFactory:function(_518,node){_518._skipStartup=true;return new dojo.dnd.Source(node,_518);},onMouseMove:function(e){if(this.isDragging&&this.targetState=="Disabled"){return;}dojo.dnd.Source.superclass.onMouseMove.call(this,e);var m=dojo.dnd.manager();if(!this.isDragging){if(this.mouseDown&&this.isSource&&(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay)){var _519=this.getSelectedNodes();if(_519.length){m.startDrag(this,_519,this.copyState(dojo.isCopyKey(e),true));}}}if(this.isDragging){var _51a=false;if(this.current){if(!this.targetBox||this.targetAnchor!=this.current){this.targetBox=dojo.position(this.current,true);}if(this.horizontal){_51a=(e.pageX-this.targetBox.x)<(this.targetBox.w/2);}else{_51a=(e.pageY-this.targetBox.y)<(this.targetBox.h/2);}}if(this.current!=this.targetAnchor||_51a!=this.before){this._markTargetAnchor(_51a);m.canDrop(!this.current||m.source!=this||!(this.current.id in this.selection));}}},onMouseDown:function(e){if(!this.mouseDown&&this._legalMouseDown(e)&&(!this.skipForm||!dojo.dnd.isFormElement(e))){this.mouseDown=true;this._lastX=e.pageX;this._lastY=e.pageY;dojo.dnd.Source.superclass.onMouseDown.call(this,e);}},onMouseUp:function(e){if(this.mouseDown){this.mouseDown=false;dojo.dnd.Source.superclass.onMouseUp.call(this,e);}},onDndSourceOver:function(_51b){if(this!=_51b){this.mouseDown=false;if(this.targetAnchor){this._unmarkTargetAnchor();}}else{if(this.isDragging){var m=dojo.dnd.manager();m.canDrop(this.targetState!="Disabled"&&(!this.current||m.source!=this||!(this.current.id in this.selection)));}}},onDndStart:function(_51c,_51d,copy){if(this.autoSync){this.sync();}if(this.isSource){this._changeState("Source",this==_51c?(copy?"Copied":"Moved"):"");}var _51e=this.accept&&this.checkAcceptance(_51c,_51d);this._changeState("Target",_51e?"":"Disabled");if(this==_51c){dojo.dnd.manager().overSource(this);}this.isDragging=true;},onDndDrop:function(_51f,_520,copy,_521){if(this==_521){this.onDrop(_51f,_520,copy);}this.onDndCancel();},onDndCancel:function(){if(this.targetAnchor){this._unmarkTargetAnchor();this.targetAnchor=null;}this.before=true;this.isDragging=false;this.mouseDown=false;this._changeState("Source","");this._changeState("Target","");},onDrop:function(_522,_523,copy){if(this!=_522){this.onDropExternal(_522,_523,copy);}else{this.onDropInternal(_523,copy);}},onDropExternal:function(_524,_525,copy){var _526=this._normalizedCreator;if(this.creator){this._normalizedCreator=function(node,hint){return _526.call(this,_524.getItem(node.id).data,hint);};}else{if(copy){this._normalizedCreator=function(node,hint){var t=_524.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}else{this._normalizedCreator=function(node,hint){var t=_524.getItem(node.id);_524.delItem(node.id);return {node:node,data:t.data,type:t.type};};}}this.selectNone();if(!copy&&!this.creator){_524.selectNone();}this.insertNodes(true,_525,this.before,this.current);if(!copy&&this.creator){_524.deleteSelectedNodes();}this._normalizedCreator=_526;},onDropInternal:function(_527,copy){var _528=this._normalizedCreator;if(this.current&&this.current.id in this.selection){return;}if(copy){if(this.creator){this._normalizedCreator=function(node,hint){return _528.call(this,this.getItem(node.id).data,hint);};}else{this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);var n=node.cloneNode(true);n.id=dojo.dnd.getUniqueId();return {node:n,data:t.data,type:t.type};};}}else{if(!this.current){return;}this._normalizedCreator=function(node,hint){var t=this.getItem(node.id);return {node:node,data:t.data,type:t.type};};}this._removeSelection();this.insertNodes(true,_527,this.before,this.current);this._normalizedCreator=_528;},onDraggingOver:function(){},onDraggingOut:function(){},onOverEvent:function(){dojo.dnd.Source.superclass.onOverEvent.call(this);dojo.dnd.manager().overSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOver();}},onOutEvent:function(){dojo.dnd.Source.superclass.onOutEvent.call(this);dojo.dnd.manager().outSource(this);if(this.isDragging&&this.targetState!="Disabled"){this.onDraggingOut();}},_markTargetAnchor:function(_529){if(this.current==this.targetAnchor&&this.before==_529){return;}if(this.targetAnchor){this._removeItemClass(this.targetAnchor,this.before?"Before":"After");}this.targetAnchor=this.current;this.targetBox=null;this.before=_529;if(this.targetAnchor){this._addItemClass(this.targetAnchor,this.before?"Before":"After");}},_unmarkTargetAnchor:function(){if(!this.targetAnchor){return;}this._removeItemClass(this.targetAnchor,this.before?"Before":"After");this.targetAnchor=null;this.targetBox=null;this.before=true;},_markDndStatus:function(copy){this._changeState("Source",copy?"Copied":"Moved");},_legalMouseDown:function(e){if(!dojo.mouseButtons.isLeft(e)){return false;}if(!this.withHandles){return true;}for(var node=e.target;node&&node!==this.node;node=node.parentNode){if(dojo.hasClass(node,"dojoDndHandle")){return true;}if(dojo.hasClass(node,"dojoDndItem")||dojo.hasClass(node,"dojoDndIgnore")){break;}}return false;}});dojo.declare("dojo.dnd.Target",dojo.dnd.Source,{constructor:function(node,_52a){this.isSource=false;dojo.removeClass(this.node,"dojoDndSource");},markupFactory:function(_52b,node){_52b._skipStartup=true;return new dojo.dnd.Target(node,_52b);}});dojo.declare("dojo.dnd.AutoSource",dojo.dnd.Source,{constructor:function(node,_52c){this.autoSync=true;},markupFactory:function(_52d,node){_52d._skipStartup=true;return new dojo.dnd.AutoSource(node,_52d);}});}if(!dojo._hasResource["dojox.grid._View"]){dojo._hasResource["dojox.grid._View"]=true;dojo.provide("dojox.grid._View");(function(){var _52e=function(_52f,_530){return _52f.style.cssText==undefined?_52f.getAttribute("style"):_52f.style.cssText;};dojo.declare("dojox.grid._View",[dijit._Widget,dijit._Templated],{defaultWidth:"18em",viewWidth:"",templateString:"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\"headerContentNode\" role=\"row\"></div>\n\t\t</div>\n\t</div>\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" dojoAttachPoint=\"hiddenFocusNode\" role=\"presentation\" />\n\t<input type=\"checkbox\" class=\"dojoxGridHiddenFocus\" role=\"presentation\" />\n\t<div class=\"dojoxGridScrollbox\" dojoAttachPoint=\"scrollboxNode\" role=\"presentation\">\n\t\t<div class=\"dojoxGridContent\" dojoAttachPoint=\"contentNode\" hidefocus=\"hidefocus\" role=\"presentation\"></div>\n\t</div>\n</div>\n",themeable:false,classTag:"dojoxGrid",marginBottom:0,rowPad:2,_togglingColumn:-1,_headerBuilderClass:dojox.grid._HeaderBuilder,_contentBuilderClass:dojox.grid._ContentBuilder,postMixInProperties:function(){this.rowNodes={};},postCreate:function(){this.connect(this.scrollboxNode,"onscroll","doscroll");dojox.grid.util.funnelEvents(this.contentNode,this,"doContentEvent",["mouseover","mouseout","click","dblclick","contextmenu","mousedown"]);dojox.grid.util.funnelEvents(this.headerNode,this,"doHeaderEvent",["dblclick","mouseover","mouseout","mousemove","mousedown","click","contextmenu"]);this.content=new this._contentBuilderClass(this);this.header=new this._headerBuilderClass(this);if(!dojo._isBodyLtr()){this.headerNodeContainer.style.width="";}},destroy:function(){dojo.destroy(this.headerNode);delete this.headerNode;for(var i in this.rowNodes){this._cleanupRowWidgets(this.rowNodes[i]);dojo.destroy(this.rowNodes[i]);}this.rowNodes={};if(this.source){this.source.destroy();}this.inherited(arguments);},focus:function(){if(dojo.isIE||dojo.isWebKit||dojo.isOpera){this.hiddenFocusNode.focus();}else{this.scrollboxNode.focus();}},setStructure:function(_531){var vs=(this.structure=_531);if(vs.width&&!isNaN(vs.width)){this.viewWidth=vs.width+"em";}else{this.viewWidth=vs.width||(vs.noscroll?"auto":this.viewWidth);}this._onBeforeRow=vs.onBeforeRow||function(){};this._onAfterRow=vs.onAfterRow||function(){};this.noscroll=vs.noscroll;if(this.noscroll){this.scrollboxNode.style.overflow="hidden";}this.simpleStructure=Boolean(vs.cells.length==1);this.testFlexCells();this.updateStructure();},_cleanupRowWidgets:function(_532){if(_532){dojo.forEach(dojo.query("[widgetId]",_532).map(dijit.byNode),function(w){if(w._destroyOnRemove){w.destroy();delete w;}else{if(w.domNode&&w.domNode.parentNode){w.domNode.parentNode.removeChild(w.domNode);}}});}},onBeforeRow:function(_533,_534){this._onBeforeRow(_533,_534);if(_533>=0){this._cleanupRowWidgets(this.getRowNode(_533));}},onAfterRow:function(_535,_536,_537){this._onAfterRow(_535,_536,_537);var g=this.grid;dojo.forEach(dojo.query(".dojoxGridStubNode",_537),function(n){if(n&&n.parentNode){var lw=n.getAttribute("linkWidget");var _538=window.parseInt(dojo.attr(n,"cellIdx"),10);var _539=g.getCell(_538);var w=dijit.byId(lw);if(w){n.parentNode.replaceChild(w.domNode,n);if(!w._started){w.startup();}dojo.destroy(n);}else{n.innerHTML="";}}},this);},testFlexCells:function(){this.flexCells=false;for(var j=0,row;(row=this.structure.cells[j]);j++){for(var i=0,cell;(cell=row[i]);i++){cell.view=this;this.flexCells=this.flexCells||cell.isFlex();}}return this.flexCells;},updateStructure:function(){this.header.update();this.content.update();},getScrollbarWidth:function(){var _53a=this.hasVScrollbar();var _53b=dojo.style(this.scrollboxNode,"overflow");if(this.noscroll||!_53b||_53b=="hidden"){_53a=false;}else{if(_53b=="scroll"){_53a=true;}}return (_53a?dojox.html.metrics.getScrollbar().w:0);},getColumnsWidth:function(){var h=this.headerContentNode;return h&&h.firstChild?(h.firstChild.offsetWidth||dojo.style(h.firstChild,"width")):0;},setColumnsWidth:function(_53c){this.headerContentNode.firstChild.style.width=_53c+"px";if(this.viewWidth){this.viewWidth=_53c+"px";}},getWidth:function(){return this.viewWidth||(this.getColumnsWidth()+this.getScrollbarWidth())+"px";},getContentWidth:function(){return Math.max(0,dojo._getContentBox(this.domNode).w-this.getScrollbarWidth())+"px";},render:function(){this.scrollboxNode.style.height="";this.renderHeader();if(this._togglingColumn>=0){this.setColumnsWidth(this.getColumnsWidth()-this._togglingColumn);this._togglingColumn=-1;}var _53d=this.grid.layout.cells;var _53e=dojo.hitch(this,function(node,_53f){!dojo._isBodyLtr()&&(_53f=!_53f);var inc=_53f?-1:1;var idx=this.header.getCellNodeIndex(node)+inc;var cell=_53d[idx];while(cell&&cell.getHeaderNode()&&cell.getHeaderNode().style.display=="none"){idx+=inc;cell=_53d[idx];}if(cell){return cell.getHeaderNode();}return null;});if(this.grid.columnReordering&&this.simpleStructure){if(this.source){this.source.destroy();}var _540="dojoxGrid_bottomMarker";var _541="dojoxGrid_topMarker";if(this.bottomMarker){dojo.destroy(this.bottomMarker);}this.bottomMarker=dojo.byId(_540);if(this.topMarker){dojo.destroy(this.topMarker);}this.topMarker=dojo.byId(_541);if(!this.bottomMarker){this.bottomMarker=dojo.create("div",{"id":_540,"class":"dojoxGridColPlaceBottom"},dojo.body());this._hide(this.bottomMarker);this.topMarker=dojo.create("div",{"id":_541,"class":"dojoxGridColPlaceTop"},dojo.body());this._hide(this.topMarker);}this.arrowDim=dojo.contentBox(this.bottomMarker);var _542=dojo.contentBox(this.headerContentNode.firstChild.rows[0]).h;this.source=new dojo.dnd.Source(this.headerContentNode.firstChild.rows[0],{horizontal:true,accept:["gridColumn_"+this.grid.id],viewIndex:this.index,generateText:false,onMouseDown:dojo.hitch(this,function(e){this.header.decorateEvent(e);if((this.header.overRightResizeArea(e)||this.header.overLeftResizeArea(e))&&this.header.canResize(e)&&!this.header.moveable){this.header.beginColumnResize(e);}else{if(this.grid.headerMenu){this.grid.headerMenu.onCancel(true);}if(e.button===(dojo.isIE<9?1:0)){dojo.dnd.Source.prototype.onMouseDown.call(this.source,e);}}}),onMouseOver:dojo.hitch(this,function(e){var src=this.source;if(src._getChildByEvent(e)){dojo.dnd.Source.prototype.onMouseOver.apply(src,arguments);}}),_markTargetAnchor:dojo.hitch(this,function(_543){var src=this.source;if(src.current==src.targetAnchor&&src.before==_543){return;}if(src.targetAnchor&&_53e(src.targetAnchor,src.before)){src._removeItemClass(_53e(src.targetAnchor,src.before),src.before?"After":"Before");}dojo.dnd.Source.prototype._markTargetAnchor.call(src,_543);var _544=_543?src.targetAnchor:_53e(src.targetAnchor,src.before);var _545=0;if(!_544){_544=src.targetAnchor;_545=dojo.contentBox(_544).w+this.arrowDim.w/2+2;}var pos=(dojo.position||dojo._abs)(_544,true);var left=Math.floor(pos.x-this.arrowDim.w/2+_545);dojo.style(this.bottomMarker,"visibility","visible");dojo.style(this.topMarker,"visibility","visible");dojo.style(this.bottomMarker,{"left":left+"px","top":(_542+pos.y)+"px"});dojo.style(this.topMarker,{"left":left+"px","top":(pos.y-this.arrowDim.h)+"px"});if(src.targetAnchor&&_53e(src.targetAnchor,src.before)){src._addItemClass(_53e(src.targetAnchor,src.before),src.before?"After":"Before");}}),_unmarkTargetAnchor:dojo.hitch(this,function(){var src=this.source;if(!src.targetAnchor){return;}if(src.targetAnchor&&_53e(src.targetAnchor,src.before)){src._removeItemClass(_53e(src.targetAnchor,src.before),src.before?"After":"Before");}this._hide(this.bottomMarker);this._hide(this.topMarker);dojo.dnd.Source.prototype._unmarkTargetAnchor.call(src);}),destroy:dojo.hitch(this,function(){dojo.disconnect(this._source_conn);dojo.unsubscribe(this._source_sub);dojo.dnd.Source.prototype.destroy.call(this.source);if(this.bottomMarker){dojo.destroy(this.bottomMarker);delete this.bottomMarker;}if(this.topMarker){dojo.destroy(this.topMarker);delete this.topMarker;}}),onDndCancel:dojo.hitch(this,function(){dojo.dnd.Source.prototype.onDndCancel.call(this.source);this._hide(this.bottomMarker);this._hide(this.topMarker);})});this._source_conn=dojo.connect(this.source,"onDndDrop",this,"_onDndDrop");this._source_sub=dojo.subscribe("/dnd/drop/before",this,"_onDndDropBefore");this.source.startup();}},_hide:function(node){dojo.style(node,{left:"-10000px",top:"-10000px","visibility":"hidden"});},_onDndDropBefore:function(_546,_547,copy){if(dojo.dnd.manager().target!==this.source){return;}this.source._targetNode=this.source.targetAnchor;this.source._beforeTarget=this.source.before;var _548=this.grid.views.views;var _549=_548[_546.viewIndex];var _54a=_548[this.index];if(_54a!=_549){_549.convertColPctToFixed();_54a.convertColPctToFixed();}},_onDndDrop:function(_54b,_54c,copy){if(dojo.dnd.manager().target!==this.source){if(dojo.dnd.manager().source===this.source){this._removingColumn=true;}return;}this._hide(this.bottomMarker);this._hide(this.topMarker);var _54d=function(n){return n?dojo.attr(n,"idx"):null;};var w=dojo.marginBox(_54c[0]).w;if(_54b.viewIndex!==this.index){var _54e=this.grid.views.views;var _54f=_54e[_54b.viewIndex];var _550=_54e[this.index];if(_54f.viewWidth&&_54f.viewWidth!="auto"){_54f.setColumnsWidth(_54f.getColumnsWidth()-w);}if(_550.viewWidth&&_550.viewWidth!="auto"){_550.setColumnsWidth(_550.getColumnsWidth());}}var stn=this.source._targetNode;var stb=this.source._beforeTarget;!dojo._isBodyLtr()&&(stb=!stb);var _551=this.grid.layout;var idx=this.index;delete this.source._targetNode;delete this.source._beforeTarget;_551.moveColumn(_54b.viewIndex,idx,_54d(_54c[0]),_54d(stn),stb);},renderHeader:function(){this.headerContentNode.innerHTML=this.header.generateHtml(this._getHeaderContent);if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[-1,this.structure.cells,this.headerContentNode]);},_getHeaderContent:function(_552){var n=_552.name||_552.grid.getCellName(_552);var ret=["<div class=\"dojoxGridSortNode"];if(_552.index!=_552.grid.getSortIndex()){ret.push("\">");}else{ret=ret.concat([" ",_552.grid.sortInfo>0?"dojoxGridSortUp":"dojoxGridSortDown","\"><div class=\"dojoxGridArrowButtonChar\">",_552.grid.sortInfo>0?"&#9650;":"&#9660;","</div><div class=\"dojoxGridArrowButtonNode\" role=\"presentation\"></div>","<div class=\"dojoxGridColCaption\">"]);}ret=ret.concat([n,"</div></div>"]);return ret.join("");},resize:function(){this.adaptHeight();this.adaptWidth();},hasHScrollbar:function(_553){var _554=this._hasHScroll||false;if(this._hasHScroll==undefined||_553){if(this.noscroll){this._hasHScroll=false;}else{var _555=dojo.style(this.scrollboxNode,"overflow");if(_555=="hidden"){this._hasHScroll=false;}else{if(_555=="scroll"){this._hasHScroll=true;}else{this._hasHScroll=(this.scrollboxNode.offsetWidth-this.getScrollbarWidth()<this.contentNode.offsetWidth);}}}}if(_554!==this._hasHScroll){this.grid.update();}return this._hasHScroll;},hasVScrollbar:function(_556){var _557=this._hasVScroll||false;if(this._hasVScroll==undefined||_556){if(this.noscroll){this._hasVScroll=false;}else{var _558=dojo.style(this.scrollboxNode,"overflow");if(_558=="hidden"){this._hasVScroll=false;}else{if(_558=="scroll"){this._hasVScroll=true;}else{this._hasVScroll=(this.scrollboxNode.scrollHeight>this.scrollboxNode.clientHeight);}}}}if(_557!==this._hasVScroll){this.grid.update();}return this._hasVScroll;},convertColPctToFixed:function(){var _559=false;this.grid.initialWidth="";var _55a=dojo.query("th",this.headerContentNode);var _55b=dojo.map(_55a,function(c,vIdx){var w=c.style.width;dojo.attr(c,"vIdx",vIdx);if(w&&w.slice(-1)=="%"){_559=true;}else{if(w&&w.slice(-2)=="px"){return window.parseInt(w,10);}}return dojo.contentBox(c).w;});if(_559){dojo.forEach(this.grid.layout.cells,function(cell,idx){if(cell.view==this){var _55c=cell.view.getHeaderCellNode(cell.index);if(_55c&&dojo.hasAttr(_55c,"vIdx")){var vIdx=window.parseInt(dojo.attr(_55c,"vIdx"));this.setColWidth(idx,_55b[vIdx]);dojo.removeAttr(_55c,"vIdx");}}},this);return true;}return false;},adaptHeight:function(_55d){if(!this.grid._autoHeight){var h=(this.domNode.style.height&&parseInt(this.domNode.style.height.replace(/px/,""),10))||this.domNode.clientHeight;var self=this;var _55e=function(){var v;for(var i in self.grid.views.views){v=self.grid.views.views[i];if(v!==self&&v.hasHScrollbar()){return true;}}return false;};if(_55d||(this.noscroll&&_55e())){h-=dojox.html.metrics.getScrollbar().h;}dojox.grid.util.setStyleHeightPx(this.scrollboxNode,h);}this.hasVScrollbar(true);},adaptWidth:function(){if(this.flexCells){this.contentWidth=this.getContentWidth();this.headerContentNode.firstChild.style.width=this.contentWidth;}var w=this.scrollboxNode.offsetWidth-this.getScrollbarWidth();if(!this._removingColumn){w=Math.max(w,this.getColumnsWidth())+"px";}else{w=Math.min(w,this.getColumnsWidth())+"px";this._removingColumn=false;}var cn=this.contentNode;cn.style.width=w;this.hasHScrollbar(true);},setSize:function(w,h){var ds=this.domNode.style;var hs=this.headerNode.style;if(w){ds.width=w;hs.width=w;}ds.height=(h>=0?h+"px":"");},renderRow:function(_55f){var _560=this.createRowNode(_55f);this.buildRow(_55f,_560);return _560;},createRowNode:function(_561){var node=document.createElement("div");node.className=this.classTag+"Row";if(this instanceof dojox.grid._RowSelector){dojo.attr(node,"role","presentation");}else{dojo.attr(node,"role","row");if(this.grid.selectionMode!="none"){dojo.attr(node,"aria-selected","false");}}node[dojox.grid.util.gridViewTag]=this.id;node[dojox.grid.util.rowIndexTag]=_561;this.rowNodes[_561]=node;return node;},buildRow:function(_562,_563){this.buildRowContent(_562,_563);this.styleRow(_562,_563);},buildRowContent:function(_564,_565){_565.innerHTML=this.content.generateHtml(_564,_564);if(this.flexCells&&this.contentWidth){_565.firstChild.style.width=this.contentWidth;}dojox.grid.util.fire(this,"onAfterRow",[_564,this.structure.cells,_565]);},rowRemoved:function(_566){if(_566>=0){this._cleanupRowWidgets(this.getRowNode(_566));}this.grid.edit.save(this,_566);delete this.rowNodes[_566];},getRowNode:function(_567){return this.rowNodes[_567];},getCellNode:function(_568,_569){var row=this.getRowNode(_568);if(row){return this.content.getCellNode(row,_569);}},getHeaderCellNode:function(_56a){if(this.headerContentNode){return this.header.getCellNode(this.headerContentNode,_56a);}},styleRow:function(_56b,_56c){_56c._style=_52e(_56c);this.styleRowNode(_56b,_56c);},styleRowNode:function(_56d,_56e){if(_56e){this.doStyleRowNode(_56d,_56e);}},doStyleRowNode:function(_56f,_570){this.grid.styleRowNode(_56f,_570);},updateRow:function(_571){var _572=this.getRowNode(_571);if(_572){_572.style.height="";this.buildRow(_571,_572);}return _572;},updateRowStyles:function(_573){this.styleRowNode(_573,this.getRowNode(_573));},lastTop:0,firstScroll:0,_nativeScroll:false,doscroll:function(_574){if(dojo.isFF>=13){this._nativeScroll=true;}var _575=dojo._isBodyLtr();if(this.firstScroll<2){if((!_575&&this.firstScroll==1)||(_575&&this.firstScroll===0)){var s=dojo.marginBox(this.headerNodeContainer);if(dojo.isIE){this.headerNodeContainer.style.width=s.w+this.getScrollbarWidth()+"px";}else{if(dojo.isMoz){this.headerNodeContainer.style.width=s.w-this.getScrollbarWidth()+"px";this.scrollboxNode.scrollLeft=_575?this.scrollboxNode.clientWidth-this.scrollboxNode.scrollWidth:this.scrollboxNode.scrollWidth-this.scrollboxNode.clientWidth;}}}this.firstScroll++;}this.headerNode.scrollLeft=this.scrollboxNode.scrollLeft;var top=this.scrollboxNode.scrollTop;if(top!==this.lastTop){this.grid.scrollTo(top);}this._nativeScroll=false;},setScrollTop:function(_576){this.lastTop=_576;if(!this._nativeScroll){this.scrollboxNode.scrollTop=_576;}return this.scrollboxNode.scrollTop;},doContentEvent:function(e){if(this.content.decorateEvent(e)){this.grid.onContentEvent(e);}},doHeaderEvent:function(e){if(this.header.decorateEvent(e)){this.grid.onHeaderEvent(e);}},dispatchContentEvent:function(e){return this.content.dispatchEvent(e);},dispatchHeaderEvent:function(e){return this.header.dispatchEvent(e);},setColWidth:function(_577,_578){this.grid.setCellWidth(_577,_578+"px");},update:function(){if(!this.domNode){return;}this.content.update();this.grid.update();var left=this.scrollboxNode.scrollLeft;this.scrollboxNode.scrollLeft=left;this.headerNode.scrollLeft=left;}});dojo.declare("dojox.grid._GridAvatar",dojo.dnd.Avatar,{construct:function(){var dd=dojo.doc;var a=dd.createElement("table");a.cellPadding=a.cellSpacing="0";a.className="dojoxGridDndAvatar";a.style.position="absolute";a.style.zIndex=1999;a.style.margin="0px";var b=dd.createElement("tbody");var tr=dd.createElement("tr");var td=dd.createElement("td");var img=dd.createElement("td");tr.className="dojoxGridDndAvatarItem";img.className="dojoxGridDndAvatarItemImage";img.style.width="16px";var _579=this.manager.source,node;if(_579.creator){node=_579._normalizedCreator(_579.getItem(this.manager.nodes[0].id).data,"avatar").node;}else{node=this.manager.nodes[0].cloneNode(true);var _57a,_57b;if(node.tagName.toLowerCase()=="tr"){_57a=dd.createElement("table");_57b=dd.createElement("tbody");_57b.appendChild(node);_57a.appendChild(_57b);node=_57a;}else{if(node.tagName.toLowerCase()=="th"){_57a=dd.createElement("table");_57b=dd.createElement("tbody");var r=dd.createElement("tr");_57a.cellPadding=_57a.cellSpacing="0";r.appendChild(node);_57b.appendChild(r);_57a.appendChild(_57b);node=_57a;}}}node.id="";td.appendChild(node);tr.appendChild(img);tr.appendChild(td);dojo.style(tr,"opacity",0.9);b.appendChild(tr);a.appendChild(b);this.node=a;var m=dojo.dnd.manager();this.oldOffsetY=m.OFFSET_Y;m.OFFSET_Y=1;},destroy:function(){dojo.dnd.manager().OFFSET_Y=this.oldOffsetY;this.inherited(arguments);}});var _57c=dojo.dnd.manager().makeAvatar;dojo.dnd.manager().makeAvatar=function(){var src=this.source;if(src.viewIndex!==undefined&&!dojo.hasClass(dojo.body(),"dijit_a11y")){return new dojox.grid._GridAvatar(this);}return _57c.call(dojo.dnd.manager());};})();}if(!dojo._hasResource["dojox.grid._RowSelector"]){dojo._hasResource["dojox.grid._RowSelector"]=true;dojo.provide("dojox.grid._RowSelector");dojo.declare("dojox.grid._RowSelector",dojox.grid._View,{defaultWidth:"2em",noscroll:true,padBorderWidth:2,buildRendering:function(){this.inherited("buildRendering",arguments);this.scrollboxNode.style.overflow="hidden";this.headerNode.style.visibility="hidden";},getWidth:function(){return this.viewWidth||this.defaultWidth;},buildRowContent:function(_57d,_57e){var w=this.contentWidth||0;_57e.innerHTML="<table class=\"dojoxGridRowbarTable\" style=\"width:"+w+"px;height:1px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" role=\"presentation\"><tr><td class=\"dojoxGridRowbarInner\">&nbsp;</td></tr></table>";},renderHeader:function(){},updateRow:function(){},resize:function(){this.adaptHeight();},adaptWidth:function(){if(!("contentWidth" in this)&&this.contentNode){this.contentWidth=this.contentNode.offsetWidth-this.padBorderWidth;}},doStyleRowNode:function(_57f,_580){var n=["dojoxGridRowbar dojoxGridNonNormalizedCell"];if(this.grid.rows.isOver(_57f)){n.push("dojoxGridRowbarOver");}if(this.grid.selection.isSelected(_57f)){n.push("dojoxGridRowbarSelected");}_580.className=n.join(" ");},domouseover:function(e){this.grid.onMouseOverRow(e);},domouseout:function(e){if(!this.isIntraRowEvent(e)){this.grid.onMouseOutRow(e);}}});}if(!dojo._hasResource["dojox.grid._Layout"]){dojo._hasResource["dojox.grid._Layout"]=true;dojo.provide("dojox.grid._Layout");dojo.declare("dojox.grid._Layout",null,{constructor:function(_581){this.grid=_581;},cells:[],structure:null,defaultWidth:"6em",moveColumn:function(_582,_583,_584,_585,_586){var _587=this.structure[_582].cells[0];var _588=this.structure[_583].cells[0];var cell=null;var _589=0;var _58a=0;for(var i=0,c;c=_587[i];i++){if(c.index==_584){_589=i;break;}}cell=_587.splice(_589,1)[0];cell.view=this.grid.views.views[_583];for(i=0,c=null;c=_588[i];i++){if(c.index==_585){_58a=i;break;}}if(!_586){_58a+=1;}_588.splice(_58a,0,cell);var _58b=this.grid.getCell(this.grid.getSortIndex());if(_58b){_58b._currentlySorted=this.grid.getSortAsc();}this.cells=[];_584=0;var v;for(i=0;v=this.structure[i];i++){for(var j=0,cs;cs=v.cells[j];j++){for(var k=0;c=cs[k];k++){c.index=_584;this.cells.push(c);if("_currentlySorted" in c){var si=_584+1;si*=c._currentlySorted?1:-1;this.grid.sortInfo=si;delete c._currentlySorted;}_584++;}}}dojo.forEach(this.cells,function(c){var _58c=c.markup[2].split(" ");var _58d=parseInt(_58c[1].substring(5));if(_58d!=c.index){_58c[1]="idx=\""+c.index+"\"";c.markup[2]=_58c.join(" ");}});this.grid.setupHeaderMenu();},setColumnVisibility:function(_58e,_58f){var cell=this.cells[_58e];if(cell.hidden==_58f){cell.hidden=!_58f;var v=cell.view,w=v.viewWidth;if(w&&w!="auto"){v._togglingColumn=dojo.marginBox(cell.getHeaderNode()).w||0;}v.update();return true;}else{return false;}},addCellDef:function(_590,_591,_592){var self=this;var _593=function(_594){var w=0;if(_594.colSpan>1){w=0;}else{w=_594.width||self._defaultCellProps.width||self.defaultWidth;if(!isNaN(w)){w=w+"em";}}return w;};var _595={grid:this.grid,subrow:_590,layoutIndex:_591,index:this.cells.length};if(_592&&_592 instanceof dojox.grid.cells._Base){var _596=dojo.clone(_592);_595.unitWidth=_593(_596._props);_596=dojo.mixin(_596,this._defaultCellProps,_592._props,_595);return _596;}var _597=_592.type||_592.cellType||this._defaultCellProps.type||this._defaultCellProps.cellType||dojox.grid.cells.Cell;if(dojo.isString(_597)){_597=dojo.getObject(_597);}_595.unitWidth=_593(_592);return new _597(dojo.mixin({},this._defaultCellProps,_592,_595));},addRowDef:function(_598,_599){var _59a=[];var _59b=0,_59c=0,_59d=true;for(var i=0,def,cell;(def=_599[i]);i++){cell=this.addCellDef(_598,i,def);_59a.push(cell);this.cells.push(cell);if(_59d&&cell.relWidth){_59b+=cell.relWidth;}else{if(cell.width){var w=cell.width;if(typeof w=="string"&&w.slice(-1)=="%"){_59c+=window.parseInt(w,10);}else{if(w=="auto"){_59d=false;}}}}}if(_59b&&_59d){dojo.forEach(_59a,function(cell){if(cell.relWidth){cell.width=cell.unitWidth=((cell.relWidth/_59b)*(100-_59c))+"%";}});}return _59a;},addRowsDef:function(_59e){var _59f=[];if(dojo.isArray(_59e)){if(dojo.isArray(_59e[0])){for(var i=0,row;_59e&&(row=_59e[i]);i++){_59f.push(this.addRowDef(i,row));}}else{_59f.push(this.addRowDef(0,_59e));}}return _59f;},addViewDef:function(_5a0){this._defaultCellProps=_5a0.defaultCell||{};if(_5a0.width&&_5a0.width=="auto"){delete _5a0.width;}return dojo.mixin({},_5a0,{cells:this.addRowsDef(_5a0.rows||_5a0.cells)});},setStructure:function(_5a1){this.fieldIndex=0;this.cells=[];var s=this.structure=[];if(this.grid.rowSelector){var sel={type:dojox._scopeName+".grid._RowSelector"};if(dojo.isString(this.grid.rowSelector)){var _5a2=this.grid.rowSelector;if(_5a2=="false"){sel=null;}else{if(_5a2!="true"){sel["width"]=_5a2;}}}else{if(!this.grid.rowSelector){sel=null;}}if(sel){s.push(this.addViewDef(sel));}}var _5a3=function(def){return ("name" in def||"field" in def||"get" in def);};var _5a4=function(def){if(dojo.isArray(def)){if(dojo.isArray(def[0])||_5a3(def[0])){return true;}}return false;};var _5a5=function(def){return (def!==null&&dojo.isObject(def)&&("cells" in def||"rows" in def||("type" in def&&!_5a3(def))));};if(dojo.isArray(_5a1)){var _5a6=false;for(var i=0,st;(st=_5a1[i]);i++){if(_5a5(st)){_5a6=true;break;}}if(!_5a6){s.push(this.addViewDef({cells:_5a1}));}else{for(i=0;(st=_5a1[i]);i++){if(_5a4(st)){s.push(this.addViewDef({cells:st}));}else{if(_5a5(st)){s.push(this.addViewDef(st));}}}}}else{if(_5a5(_5a1)){s.push(this.addViewDef(_5a1));}}this.cellCount=this.cells.length;this.grid.setupHeaderMenu();}});}if(!dojo._hasResource["dojox.grid._ViewManager"]){dojo._hasResource["dojox.grid._ViewManager"]=true;dojo.provide("dojox.grid._ViewManager");dojo.declare("dojox.grid._ViewManager",null,{constructor:function(_5a7){this.grid=_5a7;},defaultWidth:200,views:[],resize:function(){this.onEach("resize");},render:function(){this.onEach("render");},addView:function(_5a8){_5a8.idx=this.views.length;this.views.push(_5a8);},destroyViews:function(){for(var i=0,v;v=this.views[i];i++){v.destroy();}this.views=[];},getContentNodes:function(){var _5a9=[];for(var i=0,v;v=this.views[i];i++){_5a9.push(v.contentNode);}return _5a9;},forEach:function(_5aa){for(var i=0,v;v=this.views[i];i++){_5aa(v,i);}},onEach:function(_5ab,_5ac){_5ac=_5ac||[];for(var i=0,v;v=this.views[i];i++){if(_5ab in v){v[_5ab].apply(v,_5ac);}}},normalizeHeaderNodeHeight:function(){var _5ad=[];for(var i=0,v;(v=this.views[i]);i++){if(v.headerContentNode.firstChild){_5ad.push(v.headerContentNode);}}this.normalizeRowNodeHeights(_5ad);},normalizeRowNodeHeights:function(_5ae){var h=0;var _5af=[];if(this.grid.rowHeight){h=this.grid.rowHeight;}else{if(_5ae.length<=1){return;}for(var i=0,n;(n=_5ae[i]);i++){if(!dojo.hasClass(n,"dojoxGridNonNormalizedCell")){_5af[i]=n.firstChild.offsetHeight;h=Math.max(h,_5af[i]);}}h=(h>=0?h:0);if((dojo.isMoz||dojo.isIE>8)&&h){h++;}}for(i=0;(n=_5ae[i]);i++){if(_5af[i]!=h){n.firstChild.style.height=h+"px";}}},resetHeaderNodeHeight:function(){for(var i=0,v,n;(v=this.views[i]);i++){n=v.headerContentNode.firstChild;if(n){n.style.height="";}}},renormalizeRow:function(_5b0){var _5b1=[];for(var i=0,v,n;(v=this.views[i])&&(n=v.getRowNode(_5b0));i++){n.firstChild.style.height="";_5b1.push(n);}this.normalizeRowNodeHeights(_5b1);},getViewWidth:function(_5b2){return this.views[_5b2].getWidth()||this.defaultWidth;},measureHeader:function(){this.resetHeaderNodeHeight();this.forEach(function(_5b3){_5b3.headerContentNode.style.height="";});var h=0;this.forEach(function(_5b4){h=Math.max(_5b4.headerNode.offsetHeight,h);});return h;},measureContent:function(){var h=0;this.forEach(function(_5b5){h=Math.max(_5b5.domNode.offsetHeight,h);});return h;},findClient:function(_5b6){var c=this.grid.elasticView||-1;if(c<0){for(var i=1,v;(v=this.views[i]);i++){if(v.viewWidth){for(i=1;(v=this.views[i]);i++){if(!v.viewWidth){c=i;break;}}break;}}}if(c<0){c=Math.floor(this.views.length/2);}return c;},arrange:function(l,w){var i,v,vw,len=this.views.length;var c=(w<=0?len:this.findClient());var _5b7=function(v,l){var ds=v.domNode.style;var hs=v.headerNode.style;if(!dojo._isBodyLtr()){ds.right=l+"px";if(dojo.isFF<4){hs.right=l+v.getScrollbarWidth()+"px";}else{hs.right=l+"px";}if(!dojo.isWebKit){hs.width=parseInt(hs.width,10)-v.getScrollbarWidth()+"px";}}else{ds.left=l+"px";hs.left=l+"px";}ds.top=0+"px";hs.top=0;};for(i=0;(v=this.views[i])&&(i<c);i++){vw=this.getViewWidth(i);v.setSize(vw,0);_5b7(v,l);if(v.headerContentNode&&v.headerContentNode.firstChild){vw=v.getColumnsWidth()+v.getScrollbarWidth();}else{vw=v.domNode.offsetWidth;}l+=vw;}i++;var r=w;for(var j=len-1;(v=this.views[j])&&(i<=j);j--){vw=this.getViewWidth(j);v.setSize(vw,0);vw=v.domNode.offsetWidth;r-=vw;_5b7(v,r);}if(c<len){v=this.views[c];vw=Math.max(1,r-l);v.setSize(vw+"px",0);_5b7(v,l);}return l;},renderRow:function(_5b8,_5b9,_5ba){var _5bb=[];for(var i=0,v,n,_5bc;(v=this.views[i])&&(n=_5b9[i]);i++){_5bc=v.renderRow(_5b8);n.appendChild(_5bc);_5bb.push(_5bc);}if(!_5ba){this.normalizeRowNodeHeights(_5bb);}},rowRemoved:function(_5bd){this.onEach("rowRemoved",[_5bd]);},updateRow:function(_5be,_5bf){for(var i=0,v;v=this.views[i];i++){v.updateRow(_5be);}if(!_5bf){this.renormalizeRow(_5be);}},updateRowStyles:function(_5c0){this.onEach("updateRowStyles",[_5c0]);},setScrollTop:function(_5c1){var top=_5c1;for(var i=0,v;v=this.views[i];i++){top=v.setScrollTop(_5c1);if(dojo.isIE&&v.headerNode&&v.scrollboxNode){v.headerNode.scrollLeft=v.scrollboxNode.scrollLeft;}}return top;},getFirstScrollingView:function(){for(var i=0,v;(v=this.views[i]);i++){if(v.hasHScrollbar()||v.hasVScrollbar()){return v;}}return null;}});}if(!dojo._hasResource["dojox.grid._RowManager"]){dojo._hasResource["dojox.grid._RowManager"]=true;dojo.provide("dojox.grid._RowManager");(function(){var _5c2=function(_5c3,_5c4){if(_5c3.style.cssText==undefined){_5c3.setAttribute("style",_5c4);}else{_5c3.style.cssText=_5c4;}};dojo.declare("dojox.grid._RowManager",null,{constructor:function(_5c5){this.grid=_5c5;},linesToEms:2,overRow:-2,prepareStylingRow:function(_5c6,_5c7){return {index:_5c6,node:_5c7,odd:Boolean(_5c6&1),selected:!!this.grid.selection.isSelected(_5c6),over:this.isOver(_5c6),customStyles:"",customClasses:"dojoxGridRow"};},styleRowNode:function(_5c8,_5c9){var row=this.prepareStylingRow(_5c8,_5c9);this.grid.onStyleRow(row);this.applyStyles(row);},applyStyles:function(_5ca){var i=_5ca;i.node.className=i.customClasses;var h=i.node.style.height;_5c2(i.node,i.customStyles+";"+(i.node._style||""));i.node.style.height=h;},updateStyles:function(_5cb){this.grid.updateRowStyles(_5cb);},setOverRow:function(_5cc){var last=this.overRow;this.overRow=_5cc;if((last!=this.overRow)&&(dojo.isString(last)||last>=0)){this.updateStyles(last);}this.updateStyles(this.overRow);},isOver:function(_5cd){return (this.overRow==_5cd&&!dojo.hasClass(this.grid.domNode,"dojoxGridColumnResizing"));}});})();}if(!dojo._hasResource["dojox.grid._FocusManager"]){dojo._hasResource["dojox.grid._FocusManager"]=true;dojo.provide("dojox.grid._FocusManager");dojo.declare("dojox.grid._FocusManager",null,{constructor:function(_5ce){this.grid=_5ce;this.cell=null;this.rowIndex=-1;this._connects=[];this._headerConnects=[];this.headerMenu=this.grid.headerMenu;this._connects.push(dojo.connect(this.grid.domNode,"onfocus",this,"doFocus"));this._connects.push(dojo.connect(this.grid.domNode,"onblur",this,"doBlur"));this._connects.push(dojo.connect(this.grid.domNode,"mousedown",this,"_mouseDown"));this._connects.push(dojo.connect(this.grid.domNode,"mouseup",this,"_mouseUp"));this._connects.push(dojo.connect(this.grid.domNode,"oncontextmenu",this,"doContextMenu"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onfocus",this,"doLastNodeFocus"));this._connects.push(dojo.connect(this.grid.lastFocusNode,"onblur",this,"doLastNodeBlur"));this._connects.push(dojo.connect(this.grid,"_onFetchComplete",this,"_delayedCellFocus"));this._connects.push(dojo.connect(this.grid,"postrender",this,"_delayedHeaderFocus"));},destroy:function(){dojo.forEach(this._connects,dojo.disconnect);dojo.forEach(this._headerConnects,dojo.disconnect);delete this.grid;delete this.cell;},_colHeadNode:null,_colHeadFocusIdx:null,_contextMenuBindNode:null,tabbingOut:false,focusClass:"dojoxGridCellFocus",focusView:null,initFocusView:function(){this.focusView=this.grid.views.getFirstScrollingView()||this.focusView||this.grid.views.views[0];this._initColumnHeaders();},isFocusCell:function(_5cf,_5d0){return (this.cell==_5cf)&&(this.rowIndex==_5d0);},isLastFocusCell:function(){if(this.cell){return (this.rowIndex==this.grid.rowCount-1)&&(this.cell.index==this.grid.layout.cellCount-1);}return false;},isFirstFocusCell:function(){if(this.cell){return (this.rowIndex===0)&&(this.cell.index===0);}return false;},isNoFocusCell:function(){return (this.rowIndex<0)||!this.cell;},isNavHeader:function(){return (!!this._colHeadNode);},getHeaderIndex:function(){if(this._colHeadNode){return dojo.indexOf(this._findHeaderCells(),this._colHeadNode);}else{return -1;}},_focusifyCellNode:function(_5d1){var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){dojo.toggleClass(n,this.focusClass,_5d1);if(_5d1){var sl=this.scrollIntoView();try{if(!this.grid.edit.isEditing()){dojox.grid.util.fire(n,"focus");if(sl){this.cell.view.scrollboxNode.scrollLeft=sl;}}}catch(e){}}}},_delayedCellFocus:function(){if(this.isNavHeader()||!this.grid._focused){return;}var n=this.cell&&this.cell.getNode(this.rowIndex);if(n){try{if(!this.grid.edit.isEditing()){dojo.toggleClass(n,this.focusClass,true);if(this._colHeadNode){this.blurHeader();}dojox.grid.util.fire(n,"focus");}}catch(e){}}},_delayedHeaderFocus:function(){if(this.isNavHeader()){this.focusHeader();this.grid.domNode.focus();}},_initColumnHeaders:function(){dojo.forEach(this._headerConnects,dojo.disconnect);this._headerConnects=[];var _5d2=this._findHeaderCells();for(var i=0;i<_5d2.length;i++){this._headerConnects.push(dojo.connect(_5d2[i],"onfocus",this,"doColHeaderFocus"));this._headerConnects.push(dojo.connect(_5d2[i],"onblur",this,"doColHeaderBlur"));}},_findHeaderCells:function(){var _5d3=dojo.query("th",this.grid.viewsHeaderNode);var _5d4=[];for(var i=0;i<_5d3.length;i++){var _5d5=_5d3[i];var _5d6=dojo.hasAttr(_5d5,"tabIndex");var _5d7=dojo.attr(_5d5,"tabIndex");if(_5d6&&_5d7<0){_5d4.push(_5d5);}}return _5d4;},_setActiveColHeader:function(_5d8,_5d9,_5da){dojo.attr(this.grid.domNode,"aria-activedescendant",_5d8.id);if(_5da!=null&&_5da>=0&&_5da!=_5d9){dojo.toggleClass(this._findHeaderCells()[_5da],this.focusClass,false);}dojo.toggleClass(_5d8,this.focusClass,true);this._colHeadNode=_5d8;this._colHeadFocusIdx=_5d9;this._scrollHeader(this._colHeadFocusIdx);},scrollIntoView:function(){var info=(this.cell?this._scrollInfo(this.cell):null);if(!info||!info.s){return null;}var rt=this.grid.scroller.findScrollTop(this.rowIndex);if(info.n&&info.sr){if(info.n.offsetLeft+info.n.offsetWidth>info.sr.l+info.sr.w){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}}}if(info.r&&info.sr){if(rt+info.r.offsetHeight>info.sr.t+info.sr.h){this.grid.setScrollTop(rt+info.r.offsetHeight-info.sr.h);}else{if(rt<info.sr.t){this.grid.setScrollTop(rt);}}}return info.s.scrollLeft;},_scrollInfo:function(cell,_5db){if(cell){var cl=cell,sbn=cl.view.scrollboxNode,sbnr={w:sbn.clientWidth,l:sbn.scrollLeft,t:sbn.scrollTop,h:sbn.clientHeight},rn=cl.view.getRowNode(this.rowIndex);return {c:cl,s:sbn,sr:sbnr,n:(_5db?_5db:cell.getNode(this.rowIndex)),r:rn};}return null;},_scrollHeader:function(_5dc){var info=null;if(this._colHeadNode){var cell=this.grid.getCell(_5dc);if(!cell){return;}info=this._scrollInfo(cell,cell.getNode(0));}if(info&&info.s&&info.sr&&info.n){var _5dd=info.sr.l+info.sr.w;if(info.n.offsetLeft+info.n.offsetWidth>_5dd){info.s.scrollLeft=info.n.offsetLeft+info.n.offsetWidth-info.sr.w;}else{if(info.n.offsetLeft<info.sr.l){info.s.scrollLeft=info.n.offsetLeft;}else{if(dojo.isIE<=7&&cell&&cell.view.headerNode){cell.view.headerNode.scrollLeft=info.s.scrollLeft;}}}}},_isHeaderHidden:function(){var _5de=this.focusView;if(!_5de){for(var i=0,_5df;(_5df=this.grid.views.views[i]);i++){if(_5df.headerNode){_5de=_5df;break;}}}return (_5de&&dojo.getComputedStyle(_5de.headerNode).display=="none");},colSizeAdjust:function(e,_5e0,_5e1){var _5e2=this._findHeaderCells();var view=this.focusView;if(!view){for(var i=0,_5e3;(_5e3=this.grid.views.views[i]);i++){if(_5e3.header.tableMap.map){view=_5e3;break;}}}var _5e4=_5e2[_5e0];if(!view||(_5e0==_5e2.length-1&&_5e0===0)){return;}view.content.baseDecorateEvent(e);e.cellNode=_5e4;e.cellIndex=view.content.getCellNodeIndex(e.cellNode);e.cell=(e.cellIndex>=0?this.grid.getCell(e.cellIndex):null);if(view.header.canResize(e)){var _5e5={l:_5e1};var drag=view.header.colResizeSetup(e,false);view.header.doResizeColumn(drag,null,_5e5);view.update();}},styleRow:function(_5e6){return;},setFocusIndex:function(_5e7,_5e8){this.setFocusCell(this.grid.getCell(_5e8),_5e7);},setFocusCell:function(_5e9,_5ea){if(_5e9&&!this.isFocusCell(_5e9,_5ea)){this.tabbingOut=false;if(this._colHeadNode){this.blurHeader();}this._colHeadNode=this._colHeadFocusIdx=null;this.focusGridView();this._focusifyCellNode(false);this.cell=_5e9;this.rowIndex=_5ea;this._focusifyCellNode(true);}if(dojo.isOpera){setTimeout(dojo.hitch(this.grid,"onCellFocus",this.cell,this.rowIndex),1);}else{this.grid.onCellFocus(this.cell,this.rowIndex);}},next:function(){if(this.cell){var row=this.rowIndex,col=this.cell.index+1,cc=this.grid.layout.cellCount-1,rc=this.grid.rowCount-1;if(col>cc){col=0;row++;}if(row>rc){col=cc;row=rc;}if(this.grid.edit.isEditing()){var _5eb=this.grid.getCell(col);if(!this.isLastFocusCell()&&(!_5eb.editable||this.grid.canEdit&&!this.grid.canEdit(_5eb,row))){this.cell=_5eb;this.rowIndex=row;this.next();return;}}this.setFocusIndex(row,col);}},previous:function(){if(this.cell){var row=(this.rowIndex||0),col=(this.cell.index||0)-1;if(col<0){col=this.grid.layout.cellCount-1;row--;}if(row<0){row=0;col=0;}if(this.grid.edit.isEditing()){var _5ec=this.grid.getCell(col);if(!this.isFirstFocusCell()&&!_5ec.editable){this.cell=_5ec;this.rowIndex=row;this.previous();return;}}this.setFocusIndex(row,col);}},move:function(_5ed,_5ee){var _5ef=_5ee<0?-1:1;if(this.isNavHeader()){var _5f0=this._findHeaderCells();var _5f1=currentIdx=dojo.indexOf(_5f0,this._colHeadNode);currentIdx+=_5ee;while(currentIdx>=0&&currentIdx<_5f0.length&&_5f0[currentIdx].style.display=="none"){currentIdx+=_5ef;}if((currentIdx>=0)&&(currentIdx<_5f0.length)){this._setActiveColHeader(_5f0[currentIdx],currentIdx,_5f1);}}else{if(this.cell){var sc=this.grid.scroller,r=this.rowIndex,rc=this.grid.rowCount-1,row=Math.min(rc,Math.max(0,r+_5ed));if(_5ed){if(_5ed>0){if(row>sc.getLastPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop+sc.findScrollTop(row)-sc.findScrollTop(r));}}else{if(_5ed<0){if(row<=sc.getPageRow(sc.page)){this.grid.setScrollTop(this.grid.scrollTop-sc.findScrollTop(r)-sc.findScrollTop(row));}}}}var cc=this.grid.layout.cellCount-1,i=this.cell.index,col=Math.min(cc,Math.max(0,i+_5ee));var cell=this.grid.getCell(col);while(col>=0&&col<cc&&cell&&cell.hidden===true){col+=_5ef;cell=this.grid.getCell(col);}if(!cell||cell.hidden===true){col=i;}var n=cell.getNode(row);if(!n&&_5ed){if((row+_5ed)>=0&&(row+_5ed)<=rc){this.move(_5ed>0?++_5ed:--_5ed,_5ee);}return;}else{if((!n||dojo.style(n,"display")==="none")&&_5ee){if((col+_5ee)>=0&&(col+_5ee)<=cc){this.move(_5ed,_5ee>0?++_5ee:--_5ee);}return;}}this.setFocusIndex(row,col);if(_5ed){this.grid.updateRow(r);}}}},previousKey:function(e){if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.previous();}else{if(!this.isNavHeader()&&!this._isHeaderHidden()){this.grid.domNode.focus();dojo.stopEvent(e);}else{this.tabOut(this.grid.domNode);if(this._colHeadFocusIdx!=null){dojo.toggleClass(this._findHeaderCells()[this._colHeadFocusIdx],this.focusClass,false);this._colHeadFocusIdx=null;}this._focusifyCellNode(false);}}},nextKey:function(e){var _5f2=(this.grid.rowCount===0);if(e.target===this.grid.domNode&&this._colHeadFocusIdx==null){this.focusHeader();dojo.stopEvent(e);}else{if(this.isNavHeader()){this.blurHeader();if(!this.findAndFocusGridCell()){this.tabOut(this.grid.lastFocusNode);}this._colHeadNode=this._colHeadFocusIdx=null;}else{if(this.grid.edit.isEditing()){dojo.stopEvent(e);this.next();}else{this.tabOut(this.grid.lastFocusNode);}}}},tabOut:function(_5f3){this.tabbingOut=true;_5f3.focus();},focusGridView:function(){dojox.grid.util.fire(this.focusView,"focus");},focusGrid:function(_5f4){this.focusGridView();this._focusifyCellNode(true);},findAndFocusGridCell:function(){var _5f5=true;var _5f6=(this.grid.rowCount===0);if(this.isNoFocusCell()&&!_5f6){var _5f7=0;var cell=this.grid.getCell(_5f7);if(cell.hidden){_5f7=this.isNavHeader()?this._colHeadFocusIdx:0;}this.setFocusIndex(0,_5f7);}else{if(this.cell&&!_5f6){if(this.focusView&&!this.focusView.rowNodes[this.rowIndex]){this.grid.scrollToRow(this.rowIndex);}this.focusGrid();}else{_5f5=false;}}this._colHeadNode=this._colHeadFocusIdx=null;return _5f5;},focusHeader:function(){var _5f8=this._findHeaderCells();var _5f9=this._colHeadFocusIdx;if(this._isHeaderHidden()){this.findAndFocusGridCell();}else{if(!this._colHeadFocusIdx){if(this.isNoFocusCell()){this._colHeadFocusIdx=0;}else{this._colHeadFocusIdx=this.cell.index;}}}this._colHeadNode=_5f8[this._colHeadFocusIdx];while(this._colHeadNode&&this._colHeadFocusIdx>=0&&this._colHeadFocusIdx<_5f8.length&&this._colHeadNode.style.display=="none"){this._colHeadFocusIdx++;this._colHeadNode=_5f8[this._colHeadFocusIdx];}if(this._colHeadNode&&this._colHeadNode.style.display!="none"){if(this.headerMenu&&this._contextMenuBindNode!=this.grid.domNode){this.headerMenu.unBindDomNode(this.grid.viewsHeaderNode);this.headerMenu.bindDomNode(this.grid.domNode);this._contextMenuBindNode=this.grid.domNode;}this._setActiveColHeader(this._colHeadNode,this._colHeadFocusIdx,_5f9);this._scrollHeader(this._colHeadFocusIdx);this._focusifyCellNode(false);}else{this.findAndFocusGridCell();}},blurHeader:function(){dojo.removeClass(this._colHeadNode,this.focusClass);dojo.removeAttr(this.grid.domNode,"aria-activedescendant");if(this.headerMenu&&this._contextMenuBindNode==this.grid.domNode){var _5fa=this.grid.viewsHeaderNode;this.headerMenu.unBindDomNode(this.grid.domNode);this.headerMenu.bindDomNode(_5fa);this._contextMenuBindNode=_5fa;}},doFocus:function(e){if(e&&e.target!=e.currentTarget){dojo.stopEvent(e);return;}if(this._clickFocus){return;}if(!this.tabbingOut){this.focusHeader();}this.tabbingOut=false;dojo.stopEvent(e);},doBlur:function(e){dojo.stopEvent(e);},doContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},doLastNodeFocus:function(e){if(this.tabbingOut){this._focusifyCellNode(false);}else{if(this.grid.rowCount>0){if(this.isNoFocusCell()){this.setFocusIndex(0,0);}this._focusifyCellNode(true);}else{this.focusHeader();}}this.tabbingOut=false;dojo.stopEvent(e);},doLastNodeBlur:function(e){dojo.stopEvent(e);},doColHeaderFocus:function(e){this._setActiveColHeader(e.target,dojo.attr(e.target,"idx"),this._colHeadFocusIdx);this._scrollHeader(this.getHeaderIndex());dojo.stopEvent(e);},doColHeaderBlur:function(e){dojo.toggleClass(e.target,this.focusClass,false);},_mouseDown:function(e){this._clickFocus=dojo.some(this.grid.views.views,function(v){return v.scrollboxNode===e.target;});},_mouseUp:function(e){this._clickFocus=false;}});}if(!dojo._hasResource["dojox.grid._EditManager"]){dojo._hasResource["dojox.grid._EditManager"]=true;dojo.provide("dojox.grid._EditManager");dojo.declare("dojox.grid._EditManager",null,{constructor:function(_5fb){this.grid=_5fb;if(dojo.isIE){this.connections=[dojo.connect(document.body,"onfocus",dojo.hitch(this,"_boomerangFocus"))];}else{this.connections=[dojo.connect(this.grid,"onBlur",this,"apply")];}},info:{},destroy:function(){dojo.forEach(this.connections,dojo.disconnect);},cellFocus:function(_5fc,_5fd){if(this.grid.singleClickEdit||this.isEditRow(_5fd)){this.setEditCell(_5fc,_5fd);}else{this.apply();}if(this.isEditing()||(_5fc&&_5fc.editable&&_5fc.alwaysEditing)){this._focusEditor(_5fc,_5fd);}},rowClick:function(e){if(this.isEditing()&&!this.isEditRow(e.rowIndex)){this.apply();}},styleRow:function(_5fe){if(_5fe.index==this.info.rowIndex){_5fe.customClasses+=" dojoxGridRowEditing";}},dispatchEvent:function(e){var c=e.cell,ed=(c&&c["editable"])?c:0;return ed&&ed.dispatchEvent(e.dispatch,e);},isEditing:function(){return this.info.rowIndex!==undefined;},isEditCell:function(_5ff,_600){return (this.info.rowIndex===_5ff)&&(this.info.cell.index==_600);},isEditRow:function(_601){return this.info.rowIndex===_601;},setEditCell:function(_602,_603){if(!this.isEditCell(_603,_602.index)&&this.grid.canEdit&&this.grid.canEdit(_602,_603)){this.start(_602,_603,this.isEditRow(_603)||_602.editable);}},_focusEditor:function(_604,_605){dojox.grid.util.fire(_604,"focus",[_605]);},focusEditor:function(){if(this.isEditing()){this._focusEditor(this.info.cell,this.info.rowIndex);}},_boomerangWindow:500,_shouldCatchBoomerang:function(){return this._catchBoomerang>new Date().getTime();},_boomerangFocus:function(){if(this._shouldCatchBoomerang()){this.grid.focus.focusGrid();this.focusEditor();this._catchBoomerang=0;}},_doCatchBoomerang:function(){if(dojo.isIE){this._catchBoomerang=new Date().getTime()+this._boomerangWindow;}},start:function(_606,_607,_608){if(!this._isValidInput()){return;}if(dojo.isIE&&this.grid._autoHeight){this._avoidUpdate();}this.grid.beginUpdate();this.editorApply();if(this.isEditing()&&!this.isEditRow(_607)){this.applyRowEdit();this.grid.updateRow(_607);}if(_608){this.info={cell:_606,rowIndex:_607};this.grid.doStartEdit(_606,_607);this.grid.updateRow(_607);}else{this.info={};}this.grid.endUpdate();this.grid.focus.focusGrid();this._focusEditor(_606,_607);this._doCatchBoomerang();},_editorDo:function(_609){var c=this.info.cell;if(c&&c.editable){c[_609](this.info.rowIndex);}},editorApply:function(){this._editorDo("apply");},editorCancel:function(){this._editorDo("cancel");},applyCellEdit:function(_60a,_60b,_60c){if(this.grid.canEdit(_60b,_60c)){this.grid.doApplyCellEdit(_60a,_60c,_60b.field);}},applyRowEdit:function(){this.grid.doApplyEdit(this.info.rowIndex,this.info.cell.field);},apply:function(){if(this.isEditing()&&this._isValidInput()){this.grid.beginUpdate();this.editorApply();this.applyRowEdit();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},cancel:function(){if(this.isEditing()){this.grid.beginUpdate();this.editorCancel();this.info={};this.grid.endUpdate();this.grid.focus.focusGrid();this._doCatchBoomerang();}},save:function(_60d,_60e){var c=this.info.cell;if(this.isEditRow(_60d)&&(!_60e||c.view==_60e)&&c.editable){c.save(c,this.info.rowIndex);}},restore:function(_60f,_610){var c=this.info.cell;if(this.isEditRow(_610)&&c.view==_60f&&c.editable){c.restore(c,this.info.rowIndex);}},_isValidInput:function(){var w=(this.info.cell||{}).widget;if(!w||!w.isValid){return true;}w.focused=true;return w.isValid(true);},_avoidUpdate:function(){var self=this;self._noUpdate=true;if(self._avoidUpdateHandler){clearTimeout(self._avoidUpdateHandler);}self._avoidUpdateHandler=setTimeout(function(){self._noUpdate=false;},100);}});}if(!dojo._hasResource["dojox.grid.Selection"]){dojo._hasResource["dojox.grid.Selection"]=true;dojo.provide("dojox.grid.Selection");dojo.declare("dojox.grid.Selection",null,{constructor:function(_611){this.grid=_611;this.selected=[];this.setMode(_611.selectionMode);},mode:"extended",selected:null,updating:0,selectedIndex:-1,rangeStartIndex:-1,setMode:function(mode){if(this.selected.length){this.deselectAll();}if(mode!="extended"&&mode!="multiple"&&mode!="single"&&mode!="none"){this.mode="extended";}else{this.mode=mode;}},onCanSelect:function(_612){return this.grid.onCanSelect(_612);},onCanDeselect:function(_613){return this.grid.onCanDeselect(_613);},onSelected:function(_614){},onDeselected:function(_615){},onChanging:function(){},onChanged:function(){},isSelected:function(_616){if(this.mode=="none"){return false;}return this.selected[_616];},getFirstSelected:function(){if(!this.selected.length||this.mode=="none"){return -1;}for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getNextSelected:function(_617){if(this.mode=="none"){return -1;}for(var i=_617+1,l=this.selected.length;i<l;i++){if(this.selected[i]){return i;}}return -1;},getSelected:function(){var _618=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_618.push(i);}}return _618;},getSelectedCount:function(){var c=0;for(var i=0;i<this.selected.length;i++){if(this.selected[i]){c++;}}return c;},_beginUpdate:function(){if(this.updating===0){this.onChanging();}this.updating++;},_endUpdate:function(){this.updating--;if(this.updating===0){this.onChanged();}},select:function(_619){if(this.mode=="none"){return;}if(this.mode!="multiple"){this.deselectAll(_619);this.addToSelection(_619);}else{this.toggleSelect(_619);}},addToSelection:function(_61a){if(this.mode=="none"){return;}if(dojo.isArray(_61a)){dojo.forEach(_61a,this.addToSelection,this);return;}_61a=Number(_61a);if(this.selected[_61a]){this.selectedIndex=_61a;}else{if(this.onCanSelect(_61a)!==false){this.selectedIndex=_61a;var _61b=this.grid.getRowNode(_61a);if(_61b){dojo.attr(_61b,"aria-selected","true");}this._beginUpdate();this.selected[_61a]=true;this.onSelected(_61a);this._endUpdate();}}},deselect:function(_61c){if(this.mode=="none"){return;}if(dojo.isArray(_61c)){dojo.forEach(_61c,this.deselect,this);return;}_61c=Number(_61c);if(this.selectedIndex==_61c){this.selectedIndex=-1;}if(this.selected[_61c]){if(this.onCanDeselect(_61c)===false){return;}var _61d=this.grid.getRowNode(_61c);if(_61d){dojo.attr(_61d,"aria-selected","false");}this._beginUpdate();delete this.selected[_61c];this.onDeselected(_61c);this._endUpdate();}},setSelected:function(_61e,_61f){this[(_61f?"addToSelection":"deselect")](_61e);},toggleSelect:function(_620){if(dojo.isArray(_620)){dojo.forEach(_620,this.toggleSelect,this);return;}this.setSelected(_620,!this.selected[_620]);},_range:function(_621,inTo,func){var s=(_621>=0?_621:inTo),e=inTo;if(s>e){e=s;s=inTo;}for(var i=s;i<=e;i++){func(i);}},selectRange:function(_622,inTo){this._range(_622,inTo,dojo.hitch(this,"addToSelection"));},deselectRange:function(_623,inTo){this._range(_623,inTo,dojo.hitch(this,"deselect"));},insert:function(_624){this.selected.splice(_624,0,false);if(this.selectedIndex>=_624){this.selectedIndex++;}},remove:function(_625){this.selected.splice(_625,1);if(this.selectedIndex>=_625){this.selectedIndex--;}},deselectAll:function(_626){for(var i in this.selected){if((i!=_626)&&(this.selected[i]===true)){this.deselect(i);}}},clickSelect:function(_627,_628,_629){if(this.mode=="none"){return;}this._beginUpdate();if(this.mode!="extended"){this.select(_627);}else{if(!_629||this.rangeStartIndex<0){this.rangeStartIndex=_627;}if(!_628){this.deselectAll(_627);}if(_629){this.selectRange(this.rangeStartIndex,_627);}else{if(_628){this.toggleSelect(_627);}else{this.addToSelection(_627);}}}this._endUpdate();},clickSelectEvent:function(e){this.clickSelect(e.rowIndex,dojo.isCopyKey(e),e.shiftKey);},clear:function(){this._beginUpdate();this.deselectAll();this._endUpdate();}});}if(!dojo._hasResource["dojox.grid._Events"]){dojo._hasResource["dojox.grid._Events"]=true;dojo.provide("dojox.grid._Events");dojo.declare("dojox.grid._Events",null,{cellOverClass:"dojoxGridCellOver",onKeyEvent:function(e){this.dispatchKeyEvent(e);},onContentEvent:function(e){this.dispatchContentEvent(e);},onHeaderEvent:function(e){this.dispatchHeaderEvent(e);},onStyleRow:function(_62a){var i=_62a;i.customClasses+=(i.odd?" dojoxGridRowOdd":"")+(i.selected?" dojoxGridRowSelected":"")+(i.over?" dojoxGridRowOver":"");this.focus.styleRow(_62a);this.edit.styleRow(_62a);},onKeyDown:function(e){if(e.altKey||e.metaKey){return;}var dk=dojo.keys;var _62b;switch(e.keyCode){case dk.ESCAPE:this.edit.cancel();break;case dk.ENTER:if(!this.edit.isEditing()){_62b=this.focus.getHeaderIndex();if(_62b>=0){this.setSortIndex(_62b);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}if(!e.shiftKey){var _62c=this.edit.isEditing();this.edit.apply();if(!_62c){this.edit.setEditCell(this.focus.cell,this.focus.rowIndex);}}if(!this.edit.isEditing()){var _62d=this.focus.focusView||this.views.views[0];_62d.content.decorateEvent(e);this.onRowClick(e);dojo.stopEvent(e);}break;case dk.SPACE:if(!this.edit.isEditing()){_62b=this.focus.getHeaderIndex();if(_62b>=0){this.setSortIndex(_62b);break;}else{this.selection.clickSelect(this.focus.rowIndex,dojo.isCopyKey(e),e.shiftKey);}dojo.stopEvent(e);}break;case dk.TAB:this.focus[e.shiftKey?"previousKey":"nextKey"](e);break;case dk.LEFT_ARROW:case dk.RIGHT_ARROW:if(!this.edit.isEditing()){var _62e=e.keyCode;dojo.stopEvent(e);_62b=this.focus.getHeaderIndex();if(_62b>=0&&(e.shiftKey&&e.ctrlKey)){this.focus.colSizeAdjust(e,_62b,(_62e==dk.LEFT_ARROW?-1:1)*5);}else{var _62f=(_62e==dk.LEFT_ARROW)?1:-1;if(dojo._isBodyLtr()){_62f*=-1;}this.focus.move(0,_62f);}}break;case dk.UP_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);this.focus.move(-1,0);}break;case dk.DOWN_ARROW:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);this.focus.move(1,0);}break;case dk.PAGE_UP:if(!this.edit.isEditing()&&this.focus.rowIndex!==0){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.firstVisibleRow+1){this.focus.move(this.scroller.firstVisibleRow-this.focus.rowIndex,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex-1));this.focus.move(this.scroller.firstVisibleRow-this.scroller.lastVisibleRow+1,0);}}break;case dk.PAGE_DOWN:if(!this.edit.isEditing()&&this.focus.rowIndex+1!=this.rowCount){dojo.stopEvent(e);if(this.focus.rowIndex!=this.scroller.lastVisibleRow-1){this.focus.move(this.scroller.lastVisibleRow-this.focus.rowIndex-1,0);}else{this.setScrollTop(this.scroller.findScrollTop(this.focus.rowIndex+1));this.focus.move(this.scroller.lastVisibleRow-this.scroller.firstVisibleRow-1,0);}}break;default:break;}},onMouseOver:function(e){e.rowIndex==-1?this.onHeaderCellMouseOver(e):this.onCellMouseOver(e);},onMouseOut:function(e){e.rowIndex==-1?this.onHeaderCellMouseOut(e):this.onCellMouseOut(e);},onMouseDown:function(e){e.rowIndex==-1?this.onHeaderCellMouseDown(e):this.onCellMouseDown(e);},onMouseOverRow:function(e){if(!this.rows.isOver(e.rowIndex)){this.rows.setOverRow(e.rowIndex);e.rowIndex==-1?this.onHeaderMouseOver(e):this.onRowMouseOver(e);}},onMouseOutRow:function(e){if(this.rows.isOver(-1)){this.onHeaderMouseOut(e);}else{if(!this.rows.isOver(-2)){this.rows.setOverRow(-2);this.onRowMouseOut(e);}}},onMouseDownRow:function(e){if(e.rowIndex!=-1){this.onRowMouseDown(e);}},onCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onCellMouseDown:function(e){},onCellClick:function(e){this._click[0]=this._click[1];this._click[1]=e;if(!this.edit.isEditCell(e.rowIndex,e.cellIndex)){this.focus.setFocusCell(e.cell,e.rowIndex);}if(this._click.length>1&&this._click[0]==null){this._click.shift();}this.onRowClick(e);},onCellDblClick:function(e){var _630;if(this._click.length>1&&dojo.isIE){_630=this._click[1];}else{if(this._click.length>1&&this._click[0].rowIndex!=this._click[1].rowIndex){_630=this._click[0];}else{_630=e;}}this.focus.setFocusCell(_630.cell,_630.rowIndex);this.edit.setEditCell(_630.cell,_630.rowIndex);this.onRowDblClick(e);},onCellContextMenu:function(e){this.onRowContextMenu(e);},onCellFocus:function(_631,_632){this.edit.cellFocus(_631,_632);},onRowClick:function(e){this.edit.rowClick(e);this.selection.clickSelectEvent(e);},onRowDblClick:function(e){},onRowMouseOver:function(e){},onRowMouseOut:function(e){},onRowMouseDown:function(e){},onRowContextMenu:function(e){dojo.stopEvent(e);},onHeaderMouseOver:function(e){},onHeaderMouseOut:function(e){},onHeaderCellMouseOver:function(e){if(e.cellNode){dojo.addClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseOut:function(e){if(e.cellNode){dojo.removeClass(e.cellNode,this.cellOverClass);}},onHeaderCellMouseDown:function(e){},onHeaderClick:function(e){},onHeaderCellClick:function(e){this.setSortIndex(e.cell.index);this.onHeaderClick(e);},onHeaderDblClick:function(e){},onHeaderCellDblClick:function(e){this.onHeaderDblClick(e);},onHeaderCellContextMenu:function(e){this.onHeaderContextMenu(e);},onHeaderContextMenu:function(e){if(!this.headerMenu){dojo.stopEvent(e);}},onStartEdit:function(_633,_634){},onApplyCellEdit:function(_635,_636,_637){},onCancelEdit:function(_638){},onApplyEdit:function(_639){},onCanSelect:function(_63a){return true;},onCanDeselect:function(_63b){return true;},onSelected:function(_63c){this.updateRowStyles(_63c);},onDeselected:function(_63d){this.updateRowStyles(_63d);},onSelectionChanged:function(){}});}if(!dojo._hasResource["dojox.grid._Grid"]){dojo._hasResource["dojox.grid._Grid"]=true;dojo.provide("dojox.grid._Grid");(function(){if(!dojo.isCopyKey){dojo.isCopyKey=dojo.dnd.getCopyKeyState;}dojo.declare("dojox.grid._Grid",[dijit._Widget,dijit._Templated,dojox.grid._Events],{templateString:"<div hidefocus=\"hidefocus\" role=\"grid\" dojoAttachEvent=\"onmouseout:_mouseOut\">\n\t<div class=\"dojoxGridMasterHeader\" dojoAttachPoint=\"viewsHeaderNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterView\" dojoAttachPoint=\"viewsNode\" role=\"presentation\"></div>\n\t<div class=\"dojoxGridMasterMessages\" style=\"display: none;\" dojoAttachPoint=\"messagesNode\"></div>\n\t<span dojoAttachPoint=\"lastFocusNode\" tabindex=\"0\"></span>\n</div>\n",classTag:"dojoxGrid",rowCount:5,keepRows:75,rowsPerPage:25,autoWidth:false,initialWidth:"",autoHeight:"",rowHeight:0,autoRender:true,defaultHeight:"15em",height:"",structure:null,elasticView:-1,singleClickEdit:false,selectionMode:"extended",rowSelector:"",columnReordering:false,headerMenu:null,placeholderLabel:"GridColumns",selectable:false,_click:null,loadingMessage:"<span class='dojoxGridLoading'>${loadingState}</span>",errorMessage:"<span class='dojoxGridError'>${errorState}</span>",noDataMessage:"",escapeHTMLInData:true,formatterScope:null,editable:false,sortInfo:0,themeable:true,_placeholders:null,_layoutClass:dojox.grid._Layout,buildRendering:function(){this.inherited(arguments);if(!this.domNode.getAttribute("tabIndex")){this.domNode.tabIndex="0";}this.createScroller();this.createLayout();this.createViews();this.createManagers();this.createSelection();this.connect(this.selection,"onSelected","onSelected");this.connect(this.selection,"onDeselected","onDeselected");this.connect(this.selection,"onChanged","onSelectionChanged");dojox.html.metrics.initOnFontResize();this.connect(dojox.html.metrics,"onFontResize","textSizeChanged");dojox.grid.util.funnelEvents(this.domNode,this,"doKeyEvent",dojox.grid.util.keyEvents);if(this.selectionMode!="none"){dojo.attr(this.domNode,"aria-multiselectable",this.selectionMode=="single"?"false":"true");}dojo.addClass(this.domNode,this.classTag);if(!this.isLeftToRight()){dojo.addClass(this.domNode,this.classTag+"Rtl");}},postMixInProperties:function(){this.inherited(arguments);var _63e=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_63e);this.errorMessage=dojo.string.substitute(this.errorMessage,_63e);if(this.srcNodeRef&&this.srcNodeRef.style.height){this.height=this.srcNodeRef.style.height;}this._setAutoHeightAttr(this.autoHeight,true);this.lastScrollTop=this.scrollTop=0;},postCreate:function(){this._placeholders=[];this._setHeaderMenuAttr(this.headerMenu);this._setStructureAttr(this.structure);this._click=[];this.inherited(arguments);if(this.domNode&&this.autoWidth&&this.initialWidth){this.domNode.style.width=this.initialWidth;}if(this.domNode&&!this.editable){dojo.attr(this.domNode,"aria-readonly","true");}},destroy:function(){this.domNode.onReveal=null;this.domNode.onSizeChange=null;delete this._click;if(this.scroller){this.scroller.destroy();delete this.scroller;}this.edit.destroy();delete this.edit;this.views.destroyViews();if(this.focus){this.focus.destroy();delete this.focus;}if(this.headerMenu&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.inherited(arguments);},_setAutoHeightAttr:function(ah,_63f){if(typeof ah=="string"){if(!ah||ah=="false"){ah=false;}else{if(ah=="true"){ah=true;}else{ah=window.parseInt(ah,10);}}}if(typeof ah=="number"){if(isNaN(ah)){ah=false;}if(ah<0){ah=true;}else{if(ah===0){ah=false;}}}this.autoHeight=ah;if(typeof ah=="boolean"){this._autoHeight=ah;}else{if(typeof ah=="number"){this._autoHeight=(ah>=this.get("rowCount"));}else{this._autoHeight=false;}}if(this._started&&!_63f){this.render();}},_getRowCountAttr:function(){return this.updating&&this.invalidated&&this.invalidated.rowCount!=undefined?this.invalidated.rowCount:this.rowCount;},textSizeChanged:function(){this.render();},sizeChange:function(){this.update();},createManagers:function(){this.rows=new dojox.grid._RowManager(this);this.focus=new dojox.grid._FocusManager(this);this.edit=new dojox.grid._EditManager(this);},createSelection:function(){this.selection=new dojox.grid.Selection(this);},createScroller:function(){this.scroller=new dojox.grid._Scroller();this.scroller.grid=this;this.scroller.renderRow=dojo.hitch(this,"renderRow");this.scroller.removeRow=dojo.hitch(this,"rowRemoved");},createLayout:function(){this.layout=new this._layoutClass(this);this.connect(this.layout,"moveColumn","onMoveColumn");},onMoveColumn:function(){this.render();},onResizeColumn:function(_640){},createViews:function(){this.views=new dojox.grid._ViewManager(this);this.views.createView=dojo.hitch(this,"createView");},createView:function(_641,idx){var c=dojo.getObject(_641);var view=new c({grid:this,index:idx});this.viewsNode.appendChild(view.domNode);this.viewsHeaderNode.appendChild(view.headerNode);this.views.addView(view);dojo.attr(this.domNode,"align",dojo._isBodyLtr()?"left":"right");return view;},buildViews:function(){for(var i=0,vs;(vs=this.layout.structure[i]);i++){this.createView(vs.type||dojox._scopeName+".grid._View",i).setStructure(vs);}this.scroller.setContentNodes(this.views.getContentNodes());},_setStructureAttr:function(_642){var s=_642;if(s&&dojo.isString(s)){dojo.deprecated("dojox.grid._Grid.set('structure', 'objVar')","use dojox.grid._Grid.set('structure', objVar) instead","2.0");s=dojo.getObject(s);}this.structure=s;if(!s){if(this.layout.structure){s=this.layout.structure;}else{return;}}this.views.destroyViews();this.focus.focusView=null;if(s!==this.layout.structure){this.layout.setStructure(s);}this._structureChanged();},setStructure:function(_643){dojo.deprecated("dojox.grid._Grid.setStructure(obj)","use dojox.grid._Grid.set('structure', obj) instead.","2.0");this._setStructureAttr(_643);},getColumnTogglingItems:function(){var _644,_645=[];_644=dojo.map(this.layout.cells,function(cell){if(!cell.menuItems){cell.menuItems=[];}var self=this;var item=new dijit.CheckedMenuItem({label:cell.name,checked:!cell.hidden,_gridCell:cell,onChange:function(_646){if(self.layout.setColumnVisibility(this._gridCell.index,_646)){var _647=this._gridCell.menuItems;if(_647.length>1){dojo.forEach(_647,function(item){if(item!==this){item.setAttribute("checked",_646);}},this);}_646=dojo.filter(self.layout.cells,function(c){if(c.menuItems.length>1){dojo.forEach(c.menuItems,"item.set('disabled', false);");}else{c.menuItems[0].set("disabled",false);}return !c.hidden;});if(_646.length==1){dojo.forEach(_646[0].menuItems,"item.set('disabled', true);");}}},destroy:function(){var _648=dojo.indexOf(this._gridCell.menuItems,this);this._gridCell.menuItems.splice(_648,1);delete this._gridCell;dijit.CheckedMenuItem.prototype.destroy.apply(this,arguments);}});cell.menuItems.push(item);if(!cell.hidden){_645.push(item);}return item;},this);if(_645.length==1){_645[0].set("disabled",true);}return _644;},_setHeaderMenuAttr:function(menu){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){p.unReplace(true);});this._placeholders=[];}if(this.headerMenu){this.headerMenu.unBindDomNode(this.viewsHeaderNode);}this.headerMenu=menu;if(!menu){return;}this.headerMenu.bindDomNode(this.viewsHeaderNode);if(this.headerMenu.getPlaceholders){this._placeholders=this.headerMenu.getPlaceholders(this.placeholderLabel);}},setHeaderMenu:function(menu){dojo.deprecated("dojox.grid._Grid.setHeaderMenu(obj)","use dojox.grid._Grid.set('headerMenu', obj) instead.","2.0");this._setHeaderMenuAttr(menu);},setupHeaderMenu:function(){if(this._placeholders&&this._placeholders.length){dojo.forEach(this._placeholders,function(p){if(p._replaced){p.unReplace(true);}p.replace(this.getColumnTogglingItems());},this);}},_fetch:function(_649){this.setScrollTop(0);},getItem:function(_64a){return null;},showMessage:function(_64b){if(_64b){this.messagesNode.innerHTML=_64b;this.messagesNode.style.display="";}else{this.messagesNode.innerHTML="";this.messagesNode.style.display="none";}},_structureChanged:function(){this.buildViews();if(this.autoRender&&this._started){this.render();}},hasLayout:function(){return this.layout.cells.length;},resize:function(_64c,_64d){this._pendingChangeSize=_64c;this._pendingResultSize=_64d;this.sizeChange();},_getPadBorder:function(){this._padBorder=this._padBorder||dojo._getPadBorderExtents(this.domNode);return this._padBorder;},_getHeaderHeight:function(){var vns=this.viewsHeaderNode.style,t=vns.display=="none"?0:this.views.measureHeader();vns.height=t+"px";this.views.normalizeHeaderNodeHeight();return t;},_resize:function(_64e,_64f){_64e=_64e||this._pendingChangeSize;_64f=_64f||this._pendingResultSize;delete this._pendingChangeSize;delete this._pendingResultSize;if(!this.domNode){return;}var pn=this.domNode.parentNode;if(!pn||pn.nodeType!=1||!this.hasLayout()||pn.style.visibility=="hidden"||pn.style.display=="none"){return;}var _650=this._getPadBorder();var hh=undefined;var h;if(this._autoHeight){this.domNode.style.height="auto";}else{if(typeof this.autoHeight=="number"){h=hh=this._getHeaderHeight();h+=(this.scroller.averageRowHeight*this.autoHeight);this.domNode.style.height=h+"px";}else{if(this.domNode.clientHeight<=_650.h){if(pn==document.body){this.domNode.style.height=this.defaultHeight;}else{if(this.height){this.domNode.style.height=this.height;}else{this.fitTo="parent";}}}}}if(_64f){_64e=_64f;}if(!this._autoHeight&&_64e){dojo.marginBox(this.domNode,_64e);this.height=this.domNode.style.height;delete this.fitTo;}else{if(this.fitTo=="parent"){h=this._parentContentBoxHeight=this._parentContentBoxHeight||dojo._getContentBox(pn).h;this.domNode.style.height=Math.max(0,h)+"px";}}var _651=dojo.some(this.views.views,function(v){return v.flexCells;});if(!this._autoHeight&&(h||dojo._getContentBox(this.domNode).h)===0){this.viewsHeaderNode.style.display="none";}else{this.viewsHeaderNode.style.display="block";if(!_651&&hh===undefined){hh=this._getHeaderHeight();}}if(_651){hh=undefined;}this.adaptWidth();this.adaptHeight(hh);this.postresize();},adaptWidth:function(){var _652=(!this.initialWidth&&this.autoWidth);var w=_652?0:this.domNode.clientWidth||(this.domNode.offsetWidth-this._getPadBorder().w),vw=this.views.arrange(1,w);this.views.onEach("adaptWidth");if(_652){this.domNode.style.width=vw+"px";}},adaptHeight:function(_653){var t=_653===undefined?this._getHeaderHeight():_653;var h=(this._autoHeight?-1:Math.max(this.domNode.clientHeight-t,0)||0);this.views.onEach("setSize",[0,h]);this.views.onEach("adaptHeight");if(!this._autoHeight){var _654=0,_655=0;var _656=dojo.filter(this.views.views,function(v){var has=v.hasHScrollbar();if(has){_654++;}else{_655++;}return (!has);});if(_654>0&&_655>0){dojo.forEach(_656,function(v){v.adaptHeight(true);});}}if(this.autoHeight===true||h!=-1||(typeof this.autoHeight=="number"&&this.autoHeight>=this.get("rowCount"))){this.scroller.windowHeight=h;}else{this.scroller.windowHeight=Math.max(this.domNode.clientHeight-t,0);}},startup:function(){if(this._started){return;}this.inherited(arguments);if(this.autoRender){this.render();}},render:function(){if(!this.domNode){return;}if(!this._started){return;}if(!this.hasLayout()){this.scroller.init(0,this.keepRows,this.rowsPerPage);return;}this.update=this.defaultUpdate;this._render();},_render:function(){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this.setScrollTop(0);this.postrender();},prerender:function(){this.keepRows=this._autoHeight?0:this.keepRows;this.scroller.setKeepInfo(this.keepRows);this.views.render();this._resize();},postrender:function(){this.postresize();this.focus.initFocusView();dojo.setSelectable(this.domNode,this.selectable);},postresize:function(){if(this._autoHeight){var size=Math.max(this.views.measureContent())+"px";this.viewsNode.style.height=size;}},renderRow:function(_657,_658){this.views.renderRow(_657,_658,this._skipRowRenormalize);},rowRemoved:function(_659){this.views.rowRemoved(_659);},invalidated:null,updating:false,beginUpdate:function(){this.invalidated=[];this.updating=true;},endUpdate:function(){this.updating=false;var i=this.invalidated,r;if(i.all){this.update();}else{if(i.rowCount!=undefined){this.updateRowCount(i.rowCount);}else{for(r in i){this.updateRow(Number(r));}}}this.invalidated=[];},defaultUpdate:function(){if(!this.domNode||this.edit._noUpdate){return;}if(this.updating){this.invalidated.all=true;return;}this.lastScrollTop=this.scrollTop;this.prerender();this.scroller.invalidateNodes();this.setScrollTop(this.lastScrollTop);this.postrender();},update:function(){this.render();},updateRow:function(_65a){_65a=Number(_65a);if(this.updating){this.invalidated[_65a]=true;}else{this.views.updateRow(_65a);this.scroller.rowHeightChanged(_65a);}},updateRows:function(_65b,_65c){_65b=Number(_65b);_65c=Number(_65c);var i;if(this.updating){for(i=0;i<_65c;i++){this.invalidated[i+_65b]=true;}}else{for(i=0;i<_65c;i++){this.views.updateRow(i+_65b,this._skipRowRenormalize);}this.scroller.rowHeightChanged(_65b);}},updateRowCount:function(_65d){if(this.updating){this.invalidated.rowCount=_65d;}else{this.rowCount=_65d;this._setAutoHeightAttr(this.autoHeight,true);if(this.layout.cells.length){this.scroller.updateRowCount(_65d);}this._resize();if(this.layout.cells.length){this.setScrollTop(this.scrollTop);}}},updateRowStyles:function(_65e){this.views.updateRowStyles(_65e);},getRowNode:function(_65f){if(this.focus.focusView&&!(this.focus.focusView instanceof dojox.grid._RowSelector)){return this.focus.focusView.rowNodes[_65f];}else{for(var i=0,_660;(_660=this.views.views[i]);i++){if(!(_660 instanceof dojox.grid._RowSelector)){return _660.rowNodes[_65f];}}}return null;},rowHeightChanged:function(_661){this.views.renormalizeRow(_661);this.scroller.rowHeightChanged(_661);},fastScroll:true,delayScroll:false,scrollRedrawThreshold:(dojo.isIE?100:50),scrollTo:function(_662){if(!this.fastScroll){this.setScrollTop(_662);return;}var _663=Math.abs(this.lastScrollTop-_662);this.lastScrollTop=_662;if(_663>this.scrollRedrawThreshold||this.delayScroll){this.delayScroll=true;this.scrollTop=_662;this.views.setScrollTop(_662);if(this._pendingScroll){window.clearTimeout(this._pendingScroll);}var _664=this;this._pendingScroll=window.setTimeout(function(){delete _664._pendingScroll;_664.finishScrollJob();},200);}else{this.setScrollTop(_662);}},finishScrollJob:function(){this.delayScroll=false;this.setScrollTop(this.scrollTop);},setScrollTop:function(_665){this.scroller.scroll(this.views.setScrollTop(_665));},scrollToRow:function(_666){this.setScrollTop(this.scroller.findScrollTop(_666)+1);},styleRowNode:function(_667,_668){if(_668){this.rows.styleRowNode(_667,_668);}},_mouseOut:function(e){this.rows.setOverRow(-2);},getCell:function(_669){return this.layout.cells[_669];},setCellWidth:function(_66a,_66b){this.getCell(_66a).unitWidth=_66b;},getCellName:function(_66c){return "Cell "+_66c.index;},canSort:function(_66d){},sort:function(){},getSortAsc:function(_66e){_66e=_66e==undefined?this.sortInfo:_66e;return Boolean(_66e>0);},getSortIndex:function(_66f){_66f=_66f==undefined?this.sortInfo:_66f;return Math.abs(_66f)-1;},setSortIndex:function(_670,_671){var si=_670+1;if(_671!=undefined){si*=(_671?1:-1);}else{if(this.getSortIndex()==_670){si=-this.sortInfo;}}this.setSortInfo(si);},setSortInfo:function(_672){if(this.canSort(_672)){this.sortInfo=_672;this.sort();this.update();}},doKeyEvent:function(e){e.dispatch="do"+e.type;this.onKeyEvent(e);},_dispatch:function(m,e){if(m in this){return this[m](e);}return false;},dispatchKeyEvent:function(e){this._dispatch(e.dispatch,e);},dispatchContentEvent:function(e){this.edit.dispatchEvent(e)||e.sourceView.dispatchContentEvent(e)||this._dispatch(e.dispatch,e);},dispatchHeaderEvent:function(e){e.sourceView.dispatchHeaderEvent(e)||this._dispatch("doheader"+e.type,e);},dokeydown:function(e){this.onKeyDown(e);},doclick:function(e){if(e.cellNode){this.onCellClick(e);}else{this.onRowClick(e);}},dodblclick:function(e){if(e.cellNode){this.onCellDblClick(e);}else{this.onRowDblClick(e);}},docontextmenu:function(e){if(e.cellNode){this.onCellContextMenu(e);}else{this.onRowContextMenu(e);}},doheaderclick:function(e){if(e.cellNode){this.onHeaderCellClick(e);}else{this.onHeaderClick(e);}},doheaderdblclick:function(e){if(e.cellNode){this.onHeaderCellDblClick(e);}else{this.onHeaderDblClick(e);}},doheadercontextmenu:function(e){if(e.cellNode){this.onHeaderCellContextMenu(e);}else{this.onHeaderContextMenu(e);}},doStartEdit:function(_673,_674){this.onStartEdit(_673,_674);},doApplyCellEdit:function(_675,_676,_677){this.onApplyCellEdit(_675,_676,_677);},doCancelEdit:function(_678){this.onCancelEdit(_678);},doApplyEdit:function(_679){this.onApplyEdit(_679);},addRow:function(){this.updateRowCount(this.get("rowCount")+1);},removeSelectedRows:function(){if(this.allItemsSelected){this.updateRowCount(0);}else{this.updateRowCount(Math.max(0,this.get("rowCount")-this.selection.getSelected().length));}this.selection.clear();}});dojox.grid._Grid.markupFactory=function(_67a,node,ctor,_67b){var d=dojo;var _67c=function(n){var w=d.attr(n,"width")||"auto";if((w!="auto")&&(w.slice(-2)!="em")&&(w.slice(-1)!="%")){w=parseInt(w,10)+"px";}return w;};if(!_67a.structure&&node.nodeName.toLowerCase()=="table"){_67a.structure=d.query("> colgroup",node).map(function(cg){var sv=d.attr(cg,"span");var v={noscroll:(d.attr(cg,"noscroll")=="true")?true:false,__span:(!!sv?parseInt(sv,10):1),cells:[]};if(d.hasAttr(cg,"width")){v.width=_67c(cg);}return v;});if(!_67a.structure.length){_67a.structure.push({__span:Infinity,cells:[]});}d.query("thead > tr",node).forEach(function(tr,_67d){var _67e=0;var _67f=0;var _680;var _681=null;d.query("> th",tr).map(function(th){if(!_681){_680=0;_681=_67a.structure[0];}else{if(_67e>=(_680+_681.__span)){_67f++;_680+=_681.__span;var _682=_681;_681=_67a.structure[_67f];}}var cell={name:d.trim(d.attr(th,"name")||th.innerHTML),colSpan:parseInt(d.attr(th,"colspan")||1,10),type:d.trim(d.attr(th,"cellType")||""),id:d.trim(d.attr(th,"id")||"")};_67e+=cell.colSpan;var _683=d.attr(th,"rowspan");if(_683){cell.rowSpan=_683;}if(d.hasAttr(th,"width")){cell.width=_67c(th);}if(d.hasAttr(th,"relWidth")){cell.relWidth=window.parseInt(dojo.attr(th,"relWidth"),10);}if(d.hasAttr(th,"hidden")){cell.hidden=(d.attr(th,"hidden")=="true"||d.attr(th,"hidden")===true);}if(_67b){_67b(th,cell);}cell.type=cell.type?dojo.getObject(cell.type):dojox.grid.cells.Cell;if(cell.type&&cell.type.markupFactory){cell.type.markupFactory(th,cell);}if(!_681.cells[_67d]){_681.cells[_67d]=[];}_681.cells[_67d].push(cell);});});}return new ctor(_67a,node);};})();}if(!dojo._hasResource["dojox.grid.DataSelection"]){dojo._hasResource["dojox.grid.DataSelection"]=true;dojo.provide("dojox.grid.DataSelection");dojo.declare("dojox.grid.DataSelection",dojox.grid.Selection,{getFirstSelected:function(){var idx=dojox.grid.Selection.prototype.getFirstSelected.call(this);if(idx==-1){return null;}return this.grid.getItem(idx);},getNextSelected:function(_684){var _685=this.grid.getItemIndex(_684);var idx=dojox.grid.Selection.prototype.getNextSelected.call(this,_685);if(idx==-1){return null;}return this.grid.getItem(idx);},getSelected:function(){var _686=[];for(var i=0,l=this.selected.length;i<l;i++){if(this.selected[i]){_686.push(this.grid.getItem(i));}}return _686;},addToSelection:function(_687){if(this.mode=="none"){return;}var idx=null;if(typeof _687=="number"||typeof _687=="string"){idx=_687;}else{idx=this.grid.getItemIndex(_687);}dojox.grid.Selection.prototype.addToSelection.call(this,idx);},deselect:function(_688){if(this.mode=="none"){return;}var idx=null;if(typeof _688=="number"||typeof _688=="string"){idx=_688;}else{idx=this.grid.getItemIndex(_688);}dojox.grid.Selection.prototype.deselect.call(this,idx);},deselectAll:function(_689){var idx=null;if(_689||typeof _689=="number"){if(typeof _689=="number"||typeof _689=="string"){idx=_689;}else{idx=this.grid.getItemIndex(_689);}dojox.grid.Selection.prototype.deselectAll.call(this,idx);}else{this.inherited(arguments);}}});}if(!dojo._hasResource["dojox.grid.DataGrid"]){dojo._hasResource["dojox.grid.DataGrid"]=true;dojo.provide("dojox.grid.DataGrid");dojo.declare("dojox.grid.DataGrid",dojox.grid._Grid,{store:null,query:null,queryOptions:null,fetchText:"...",sortFields:null,updateDelay:1,items:null,_store_connects:null,_by_idty:null,_by_idx:null,_cache:null,_pages:null,_pending_requests:null,_bop:-1,_eop:-1,_requests:0,rowCount:0,_isLoaded:false,_isLoading:false,postCreate:function(){this._pages=[];this._store_connects=[];this._by_idty={};this._by_idx=[];this._cache=[];this._pending_requests={};this._setStore(this.store);this.inherited(arguments);},createSelection:function(){this.selection=new dojox.grid.DataSelection(this);},get:function(_68a,_68b){if(_68b&&this.field=="_item"&&!this.fields){return _68b;}else{if(_68b&&this.fields){var ret=[];var s=this.grid.store;dojo.forEach(this.fields,function(f){ret=ret.concat(s.getValues(_68b,f));});return ret;}else{if(!_68b&&typeof _68a==="string"){return this.inherited(arguments);}}}return (!_68b?this.defaultValue:(!this.field?this.value:(this.field=="_item"?_68b:this.grid.store.getValue(_68b,this.field))));},_checkUpdateStatus:function(){if(this.updateDelay>0){var _68c=false;if(this._endUpdateDelay){clearTimeout(this._endUpdateDelay);delete this._endUpdateDelay;_68c=true;}if(!this.updating){this.beginUpdate();_68c=true;}if(_68c){var _68d=this;this._endUpdateDelay=setTimeout(function(){delete _68d._endUpdateDelay;_68d.endUpdate();},this.updateDelay);}}},_onSet:function(item,_68e,_68f,_690){this._checkUpdateStatus();var idx=this.getItemIndex(item);if(idx>-1){this.updateRow(idx);}},_createItem:function(item,_691){var idty=this._hasIdentity?this.store.getIdentity(item):dojo.toJson(this.query)+":idx:"+_691+":sort:"+dojo.toJson(this.getSortProps());var o=this._by_idty[idty]={idty:idty,item:item};return o;},_addItem:function(item,_692,_693){this._by_idx[_692]=this._createItem(item,_692);if(!_693){this.updateRow(_692);}},_onNew:function(item,_694){this._checkUpdateStatus();var _695=this.get("rowCount");this._addingItem=true;this.updateRowCount(_695+1);this._addingItem=false;this._addItem(item,_695);this.showMessage();},_onDelete:function(item){this._checkUpdateStatus();var idx=this._getItemIndex(item,true);if(idx>=0){this._pages=[];this._bop=-1;this._eop=-1;var o=this._by_idx[idx];this._by_idx.splice(idx,1);delete this._by_idty[o.idty];this.updateRowCount(this.get("rowCount")-1);if(this.get("rowCount")===0){this.showMessage(this.noDataMessage);}}},_onRevert:function(){this._refresh();},setStore:function(_696,_697,_698){this._setQuery(_697,_698);this._setStore(_696);this._refresh(true);},setQuery:function(_699,_69a){this._setQuery(_699,_69a);this._refresh(true);},setItems:function(_69b){this.items=_69b;this._setStore(this.store);this._refresh(true);},_setQuery:function(_69c,_69d){this.query=_69c;this.queryOptions=_69d||this.queryOptions;},_setStore:function(_69e){if(this.store&&this._store_connects){dojo.forEach(this._store_connects,this.disconnect,this);}this.store=_69e;if(this.store){var f=this.store.getFeatures();var h=[];this._canEdit=!!f["dojo.data.api.Write"]&&!!f["dojo.data.api.Identity"];this._hasIdentity=!!f["dojo.data.api.Identity"];if(!!f["dojo.data.api.Notification"]&&!this.items){h.push(this.connect(this.store,"onSet","_onSet"));h.push(this.connect(this.store,"onNew","_onNew"));h.push(this.connect(this.store,"onDelete","_onDelete"));}if(this._canEdit){h.push(this.connect(this.store,"revert","_onRevert"));}this._store_connects=h;}},_onFetchBegin:function(size,req){if(!this.scroller){return;}if(this.rowCount!=size){if(req.isRender){this.scroller.init(size,this.keepRows,this.rowsPerPage);this.rowCount=size;this._setAutoHeightAttr(this.autoHeight,true);this._skipRowRenormalize=true;this.prerender();this._skipRowRenormalize=false;}else{this.updateRowCount(size);}}if(!size){this.views.render();this._resize();this.showMessage(this.noDataMessage);this.focus.initFocusView();}else{this.showMessage();}},_onFetchComplete:function(_69f,req){if(!this.scroller){return;}if(_69f&&_69f.length>0){dojo.forEach(_69f,function(item,idx){this._addItem(item,req.start+idx,true);},this);this.updateRows(req.start,_69f.length);if(req.isRender){this.setScrollTop(0);this.postrender();}else{if(this._lastScrollTop){this.setScrollTop(this._lastScrollTop);}}}delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;}this._pending_requests[req.start]=false;},_onFetchError:function(err,req){console.log(err);delete this._lastScrollTop;if(!this._isLoaded){this._isLoading=false;this._isLoaded=true;this.showMessage(this.errorMessage);}this._pending_requests[req.start]=false;this.onFetchError(err,req);},onFetchError:function(err,req){},_fetch:function(_6a0,_6a1){_6a0=_6a0||0;if(this.store&&!this._pending_requests[_6a0]){if(!this._isLoaded&&!this._isLoading){this._isLoading=true;this.showMessage(this.loadingMessage);}this._pending_requests[_6a0]=true;try{if(this.items){var _6a2=this.items;var _6a3=this.store;this.rowsPerPage=_6a2.length;var req={start:_6a0,count:this.rowsPerPage,isRender:_6a1};this._onFetchBegin(_6a2.length,req);var _6a4=0;dojo.forEach(_6a2,function(i){if(!_6a3.isItemLoaded(i)){_6a4++;}});if(_6a4===0){this._onFetchComplete(_6a2,req);}else{var _6a5=function(item){_6a4--;if(_6a4===0){this._onFetchComplete(_6a2,req);}};dojo.forEach(_6a2,function(i){if(!_6a3.isItemLoaded(i)){_6a3.loadItem({item:i,onItem:_6a5,scope:this});}},this);}}else{this.store.fetch({start:_6a0,count:this.rowsPerPage,query:this.query,sort:this.getSortProps(),queryOptions:this.queryOptions,isRender:_6a1,onBegin:dojo.hitch(this,"_onFetchBegin"),onComplete:dojo.hitch(this,"_onFetchComplete"),onError:dojo.hitch(this,"_onFetchError")});}}catch(e){this._onFetchError(e,{start:_6a0,count:this.rowsPerPage});}}},_clearData:function(){this.updateRowCount(0);this._by_idty={};this._by_idx=[];this._pages=[];this._bop=this._eop=-1;this._isLoaded=false;this._isLoading=false;},getItem:function(idx){var data=this._by_idx[idx];if(!data||(data&&!data.item)){this._preparePage(idx);return null;}return data.item;},getItemIndex:function(item){return this._getItemIndex(item,false);},_getItemIndex:function(item,_6a6){if(!_6a6&&!this.store.isItem(item)){return -1;}var idty=this._hasIdentity?this.store.getIdentity(item):null;for(var i=0,l=this._by_idx.length;i<l;i++){var d=this._by_idx[i];if(d&&((idty&&d.idty==idty)||(d.item===item))){return i;}}return -1;},filter:function(_6a7,_6a8){this.query=_6a7;if(_6a8){this._clearData();}this._fetch();},_getItemAttr:function(idx,attr){var item=this.getItem(idx);return (!item?this.fetchText:this.store.getValue(item,attr));},_render:function(){if(this.domNode.parentNode){this.scroller.init(this.get("rowCount"),this.keepRows,this.rowsPerPage);this.prerender();this._fetch(0,true);}},_requestsPending:function(_6a9){return this._pending_requests[_6a9];},_rowToPage:function(_6aa){return (this.rowsPerPage?Math.floor(_6aa/this.rowsPerPage):_6aa);},_pageToRow:function(_6ab){return (this.rowsPerPage?this.rowsPerPage*_6ab:_6ab);},_preparePage:function(_6ac){if((_6ac<this._bop||_6ac>=this._eop)&&!this._addingItem){var _6ad=this._rowToPage(_6ac);this._needPage(_6ad);this._bop=_6ad*this.rowsPerPage;this._eop=this._bop+(this.rowsPerPage||this.get("rowCount"));}},_needPage:function(_6ae){if(!this._pages[_6ae]){this._pages[_6ae]=true;this._requestPage(_6ae);}},_requestPage:function(_6af){var row=this._pageToRow(_6af);var _6b0=Math.min(this.rowsPerPage,this.get("rowCount")-row);if(_6b0>0){this._requests++;if(!this._requestsPending(row)){setTimeout(dojo.hitch(this,"_fetch",row,false),1);}}},getCellName:function(_6b1){return _6b1.field;},_refresh:function(_6b2){this._clearData();this._fetch(0,_6b2);},sort:function(){this.edit.apply();this._lastScrollTop=this.scrollTop;this._refresh();},canSort:function(){return (!this._isLoading);},getSortProps:function(){var c=this.getCell(this.getSortIndex());if(!c){if(this.sortFields){return this.sortFields;}return null;}else{var desc=c["sortDesc"];var si=!(this.sortInfo>0);if(typeof desc=="undefined"){desc=si;}else{desc=si?!desc:desc;}return [{attribute:c.field,descending:desc}];}},styleRowState:function(_6b3){if(this.store&&this.store.getState){var _6b4=this.store.getState(_6b3.index),c="";for(var i=0,ss=["inflight","error","inserting"],s;s=ss[i];i++){if(_6b4[s]){c=" dojoxGridRow-"+s;break;}}_6b3.customClasses+=c;}},onStyleRow:function(_6b5){this.styleRowState(_6b5);this.inherited(arguments);},canEdit:function(_6b6,_6b7){return this._canEdit;},_copyAttr:function(idx,attr){var row={};var _6b8={};var src=this.getItem(idx);return this.store.getValue(src,attr);},doStartEdit:function(_6b9,_6ba){if(!this._cache[_6ba]){this._cache[_6ba]=this._copyAttr(_6ba,_6b9.field);}this.onStartEdit(_6b9,_6ba);},doApplyCellEdit:function(_6bb,_6bc,_6bd){this.store.fetchItemByIdentity({identity:this._by_idx[_6bc].idty,onItem:dojo.hitch(this,function(item){var _6be=this.store.getValue(item,_6bd);if(typeof _6be=="number"){_6bb=isNaN(_6bb)?_6bb:parseFloat(_6bb);}else{if(typeof _6be=="boolean"){_6bb=_6bb=="true"?true:_6bb=="false"?false:_6bb;}else{if(_6be instanceof Date){var _6bf=new Date(_6bb);_6bb=isNaN(_6bf.getTime())?_6bb:_6bf;}}}this.store.setValue(item,_6bd,_6bb);this.onApplyCellEdit(_6bb,_6bc,_6bd);})});},doCancelEdit:function(_6c0){var _6c1=this._cache[_6c0];if(_6c1){this.updateRow(_6c0);delete this._cache[_6c0];}this.onCancelEdit.apply(this,arguments);},doApplyEdit:function(_6c2,_6c3){var _6c4=this._cache[_6c2];this.onApplyEdit(_6c2);},removeSelectedRows:function(){if(this._canEdit){this.edit.apply();var fx=dojo.hitch(this,function(_6c5){if(_6c5.length){dojo.forEach(_6c5,this.store.deleteItem,this.store);this.selection.clear();}});if(this.allItemsSelected){this.store.fetch({query:this.query,queryOptions:this.queryOptions,onComplete:fx});}else{fx(this.selection.getSelected());}}}});dojox.grid.DataGrid.cell_markupFactory=function(_6c6,node,_6c7){var _6c8=dojo.trim(dojo.attr(node,"field")||"");if(_6c8){_6c7.field=_6c8;}_6c7.field=_6c7.field||_6c7.name;var _6c9=dojo.trim(dojo.attr(node,"fields")||"");if(_6c9){_6c7.fields=_6c9.split(",");}if(_6c6){_6c6(node,_6c7);}};dojox.grid.DataGrid.markupFactory=function(_6ca,node,ctor,_6cb){return dojox.grid._Grid.markupFactory(_6ca,node,ctor,dojo.partial(dojox.grid.DataGrid.cell_markupFactory,_6cb));};}dojo.i18n._preloadLocalizations("dojo.nls.vclResourceGroupMap",["ROOT","en","en-gb","en-us","es","es-es","es-mx","ja","ja-jp","xx","zh","zh-cn"]);
