/*
	Copyright (c) 2004-2009, 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 a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

window[(typeof (djConfig)!="undefined"&&djConfig.scopeMap&&djConfig.scopeMap[0][1])||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dijit._base.focus"],["provide","dijit._base.manager"],["provide","dojo.AdapterRegistry"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dijit._base.sniff"],["provide","dijit._base.typematic"],["provide","dijit._base.wai"],["provide","dijit._base"],["provide","dojo.date.stamp"],["provide","dojo.parser"],["provide","dijit._Widget"],["require","dijit._base"],["provide","dojo.string"],["provide","dijit._Templated"],["provide","dijit._Container"],["provide","dijit._Contained"],["provide","dijit.layout._LayoutWidget"],["provide","dijit.form._FormWidget"],["provide","dijit.dijit"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dijit._base.focus"]){_4._hasResource["dijit._base.focus"]=true;_4.provide("dijit._base.focus");_4.mixin(_5,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _7=_4.doc;if(_7.selection){var s=_7.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _9=_4.global;var _a=_9.getSelection();if(_4.isString(_a)){return !_a;}else{return !_a||_a.isCollapsed||!_a.toString();}}},getBookmark:function(){var _b,_c=_4.doc.selection;if(_c){var _d=_c.createRange();if(_c.type.toUpperCase()=="CONTROL"){if(_d.length){_b=[];var i=0,_f=_d.length;while(i<_f){_b.push(_d.item(i++));}}else{_b=null;}}else{_b=_d.getBookmark();}}else{if(window.getSelection){_c=_4.global.getSelection();if(_c){_d=_c.getRangeAt(0);_b=_d.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _b;},moveToBookmark:function(_10){var _11=_4.doc;if(_11.selection){var _12;if(_4.isArray(_10)){_12=_11.body.createControlRange();_4.forEach(_10,function(n){_12.addElement(n);});}else{_12=_11.selection.createRange();_12.moveToBookmark(_10);}_12.select();}else{var _14=_4.global.getSelection&&_4.global.getSelection();if(_14&&_14.removeAllRanges){_14.removeAllRanges();_14.addRange(_10);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_15,_16){return {node:_15&&_4.isDescendant(_5._curFocus,_15.domNode)?_5._prevFocus:_5._curFocus,bookmark:!_4.withGlobal(_16||_4.global,_5.isCollapsed)?_4.withGlobal(_16||_4.global,_5.getBookmark):null,openedForWindow:_16};},focus:function(_17){if(!_17){return;}var _18="node" in _17?_17.node:_17,_19=_17.bookmark,_1a=_17.openedForWindow;if(_18){var _1b=(_18.tagName.toLowerCase()=="iframe")?_18.contentWindow:_18;if(_1b&&_1b.focus){try{_1b.focus();}catch(e){}}_5._onFocusNode(_18);}if(_19&&_4.withGlobal(_1a||_4.global,_5.isCollapsed)){if(_1a){_1a.focus();}try{_4.withGlobal(_1a||_4.global,_5.moveToBookmark,null,[_19]);}catch(e){}}},_activeStack:[],registerIframe:function(_1c){_5.registerWin(_1c.contentWindow,_1c);},registerWin:function(_1d,_1e){_4.connect(_1d.document,"onmousedown",function(evt){_5._justMouseDowned=true;setTimeout(function(){_5._justMouseDowned=false;},0);_5._onTouchNode(_1e||evt.target||evt.srcElement);});var doc=_1d.document;if(doc){if(_4.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){_5._onFocusNode(_1e||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){_5._onBlurNode(_1e||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){_5._onFocusNode(_1e||evt.target);},true);doc.addEventListener("blur",function(evt){_5._onBlurNode(_1e||evt.target);},true);}}doc=null;},_onBlurNode:function(_25){_5._prevFocus=_5._curFocus;_5._curFocus=null;if(_5._justMouseDowned){return;}if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);}_5._clearActiveWidgetsTimer=setTimeout(function(){delete _5._clearActiveWidgetsTimer;_5._setStack([]);_5._prevFocus=null;},100);},_onTouchNode:function(_26){if(_5._clearActiveWidgetsTimer){clearTimeout(_5._clearActiveWidgetsTimer);delete _5._clearActiveWidgetsTimer;}var _27=[];try{while(_26){if(_26.dijitPopupParent){_26=_5.byId(_26.dijitPopupParent).domNode;}else{if(_26.tagName&&_26.tagName.toLowerCase()=="body"){if(_26===_4.body()){break;}_26=_5.getDocumentWindow(_26.ownerDocument).frameElement;}else{var id=_26.getAttribute&&_26.getAttribute("widgetId");if(id){_27.unshift(id);}_26=_26.parentNode;}}}}catch(e){}_5._setStack(_27);},_onFocusNode:function(_29){if(!_29){return;}if(_29.nodeType==9){return;}_5._onTouchNode(_29);if(_29==_5._curFocus){return;}if(_5._curFocus){_5._prevFocus=_5._curFocus;}_5._curFocus=_29;_4.publish("focusNode",[_29]);},_setStack:function(_2a){var _2b=_5._activeStack;_5._activeStack=_2a;for(var _2c=0;_2c<Math.min(_2b.length,_2a.length);_2c++){if(_2b[_2c]!=_2a[_2c]){break;}}for(var i=_2b.length-1;i>=_2c;i--){var _2e=_5.byId(_2b[i]);if(_2e){_2e._focused=false;_2e._hasBeenBlurred=true;if(_2e._onBlur){_2e._onBlur();}if(_2e._setStateClass){_2e._setStateClass();}_4.publish("widgetBlur",[_2e]);}}for(i=_2c;i<_2a.length;i++){_2e=_5.byId(_2a[i]);if(_2e){_2e._focused=true;if(_2e._onFocus){_2e._onFocus();}if(_2e._setStateClass){_2e._setStateClass();}_4.publish("widgetFocus",[_2e]);}}}});_4.addOnLoad(function(){_5.registerWin(window);});}if(!_4._hasResource["dijit._base.manager"]){_4._hasResource["dijit._base.manager"]=true;_4.provide("dijit._base.manager");_4.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_2f){if(this._hash[_2f.id]){throw new Error("Tried to register widget with id=="+_2f.id+" but that id is already registered");}this._hash[_2f.id]=_2f;},remove:function(id){delete this._hash[id];},forEach:function(_31){for(var id in this._hash){_31(this._hash[id]);}},filter:function(_33){var res=new _5.WidgetSet();this.forEach(function(_35){if(_33(_35)){res.add(_35);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_38){return _38.declaredClass==cls;});}});_5.registry=new _5.WidgetSet();_5._widgetTypeCtr={};_5.getUniqueId=function(_39){var id;do{id=_39+"_"+(_39 in _5._widgetTypeCtr?++_5._widgetTypeCtr[_39]:_5._widgetTypeCtr[_39]=0);}while(_5.byId(id));return id;};_5.findWidgets=function(_3b){var _3c=[];function _3d(_3e){var _3f=_4.isIE?_3e.children:_3e.childNodes,i=0,_41;while(_41=_3f[i++]){if(_41.nodeType!=1){continue;}var _42=_41.getAttribute("widgetId");if(_42){var _43=_5.byId(_42);_3c.push(_43);}else{_3d(_41);}}};_3d(_3b);return _3c;};if(_4.isIE){_4.addOnWindowUnload(function(){_4.forEach(_5.findWidgets(_4.body()),function(_44){if(_44.destroyRecursive){_44.destroyRecursive();}else{if(_44.destroy){_44.destroy();}}});});}_5.byId=function(id){return (_4.isString(id))?_5.registry.byId(id):id;};_5.byNode=function(_46){return _5.registry.byId(_46.getAttribute("widgetId"));};_5.getEnclosingWidget=function(_47){while(_47){if(_47.getAttribute&&_47.getAttribute("widgetId")){return _5.registry.byId(_47.getAttribute("widgetId"));}_47=_47.parentNode;}return null;};_5._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};_5._isElementShown=function(_48){var _49=_4.style(_48);return (_49.visibility!="hidden")&&(_49.visibility!="collapsed")&&(_49.display!="none")&&(_4.attr(_48,"type")!="hidden");};_5.isTabNavigable=function(_4a){if(_4.hasAttr(_4a,"disabled")){return false;}var _4b=_4.hasAttr(_4a,"tabindex");var _4c=_4.attr(_4a,"tabindex");if(_4b&&_4c>=0){return true;}var _4d=_4a.nodeName.toLowerCase();if(((_4d=="a"&&_4.hasAttr(_4a,"href"))||_5._tabElements[_4d])&&(!_4b||_4c>=0)){return true;}return false;};_5._getTabNavigable=function(_4e){var _4f,_50,_51,_52,_53,_54;var _55=function(_56){_4.query("> *",_56).forEach(function(_57){var _58=_5._isElementShown(_57);if(_58&&_5.isTabNavigable(_57)){var _59=_4.attr(_57,"tabindex");if(!_4.hasAttr(_57,"tabindex")||_59==0){if(!_4f){_4f=_57;}_50=_57;}else{if(_59>0){if(!_51||_59<_52){_52=_59;_51=_57;}if(!_53||_59>=_54){_54=_59;_53=_57;}}}}if(_58&&_57.nodeName.toUpperCase()!="SELECT"){_55(_57);}});};if(_5._isElementShown(_4e)){_55(_4e);}return {first:_4f,last:_50,lowest:_51,highest:_53};};_5.getFirstInTabbingOrder=function(_5a){var _5b=_5._getTabNavigable(_4.byId(_5a));return _5b.lowest?_5b.lowest:_5b.first;};_5.getLastInTabbingOrder=function(_5c){var _5d=_5._getTabNavigable(_4.byId(_5c));return _5d.last?_5d.last:_5d.highest;};_5.defaultDuration=_4.config["defaultDuration"]||200;}if(!_4._hasResource["dojo.AdapterRegistry"]){_4._hasResource["dojo.AdapterRegistry"]=true;_4.provide("dojo.AdapterRegistry");_4.AdapterRegistry=function(_5e){this.pairs=[];this.returnWrappers=_5e||false;};_4.extend(_4.AdapterRegistry,{register:function(_5f,_60,_61,_62,_63){this.pairs[((_63)?"unshift":"push")]([_5f,_60,_61,_62]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _65=this.pairs[i];if(_65[1].apply(this,arguments)){if((_65[3])||(this.returnWrappers)){return _65[2];}else{return _65[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_66){for(var i=0;i<this.pairs.length;i++){var _68=this.pairs[i];if(_68[0]==_66){this.pairs.splice(i,1);return true;}}return false;}});}if(!_4._hasResource["dijit._base.place"]){_4._hasResource["dijit._base.place"]=true;_4.provide("dijit._base.place");_5.getViewport=function(){var _69=(_4.doc.compatMode=="BackCompat")?_4.body():_4.doc.documentElement;var _6a=_4._docScroll();return {w:_69.clientWidth,h:_69.clientHeight,l:_6a.x,t:_6a.y};};_5.placeOnScreen=function(_6b,pos,_6d,_6e){var _6f=_4.map(_6d,function(_70){var c={corner:_70,pos:{x:pos.x,y:pos.y}};if(_6e){c.pos.x+=_70.charAt(1)=="L"?_6e.x:-_6e.x;c.pos.y+=_70.charAt(0)=="T"?_6e.y:-_6e.y;}return c;});return _5._place(_6b,_6f);};_5._place=function(_72,_73,_74){var _75=_5.getViewport();if(!_72.parentNode||String(_72.parentNode.tagName).toLowerCase()!="body"){_4.body().appendChild(_72);}var _76=null;_4.some(_73,function(_77){var _78=_77.corner;var pos=_77.pos;if(_74){_74(_72,_77.aroundCorner,_78);}var _7a=_72.style;var _7b=_7a.display;var _7c=_7a.visibility;_7a.visibility="hidden";_7a.display="";var mb=_4.marginBox(_72);_7a.display=_7b;_7a.visibility=_7c;var _7e=(_78.charAt(1)=="L"?pos.x:Math.max(_75.l,pos.x-mb.w)),_7f=(_78.charAt(0)=="T"?pos.y:Math.max(_75.t,pos.y-mb.h)),_80=(_78.charAt(1)=="L"?Math.min(_75.l+_75.w,_7e+mb.w):pos.x),_81=(_78.charAt(0)=="T"?Math.min(_75.t+_75.h,_7f+mb.h):pos.y),_82=_80-_7e,_83=_81-_7f,_84=(mb.w-_82)+(mb.h-_83);if(_76==null||_84<_76.overflow){_76={corner:_78,aroundCorner:_77.aroundCorner,x:_7e,y:_7f,w:_82,h:_83,overflow:_84};}return !_84;});_72.style.left=_76.x+"px";_72.style.top=_76.y+"px";if(_76.overflow&&_74){_74(_72,_76.aroundCorner,_76.corner);}return _76;};_5.placeOnScreenAroundNode=function(_85,_86,_87,_88){_86=_4.byId(_86);var _89=_86.style.display;_86.style.display="";var _8a=_86.offsetWidth;var _8b=_86.offsetHeight;var _8c=_4.coords(_86,true);_86.style.display=_89;return _5._placeOnScreenAroundRect(_85,_8c.x,_8c.y,_8a,_8b,_87,_88);};_5.placeOnScreenAroundRectangle=function(_8d,_8e,_8f,_90){return _5._placeOnScreenAroundRect(_8d,_8e.x,_8e.y,_8e.width,_8e.height,_8f,_90);};_5._placeOnScreenAroundRect=function(_91,x,y,_94,_95,_96,_97){var _98=[];for(var _99 in _96){_98.push({aroundCorner:_99,corner:_96[_99],pos:{x:x+(_99.charAt(1)=="L"?0:_94),y:y+(_99.charAt(0)=="T"?0:_95)}});}return _5._place(_91,_98,_97);};_5.placementRegistry=new _4.AdapterRegistry();_5.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},_5.placeOnScreenAroundNode);_5.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},_5.placeOnScreenAroundRectangle);_5.placeOnScreenAroundElement=function(_9e,_9f,_a0,_a1){return _5.placementRegistry.match.apply(_5.placementRegistry,arguments);};}if(!_4._hasResource["dijit._base.window"]){_4._hasResource["dijit._base.window"]=true;_4.provide("dijit._base.window");_5.getDocumentWindow=function(doc){if(_4.isIE&&window!==document.parentWindow&&!doc._parentWindow){doc.parentWindow.execScript("document._parentWindow = window;","Javascript");var win=doc._parentWindow;doc._parentWindow=null;return win;}return doc._parentWindow||doc.parentWindow||doc.defaultView;};}if(!_4._hasResource["dijit._base.popup"]){_4._hasResource["dijit._base.popup"]=true;_4.provide("dijit._base.popup");_5.popup=new function(){var _a4=[],_a5=1000,_a6=1;this.prepare=function(_a7){var s=_a7.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}_4.body().appendChild(_a7);};this.open=function(_a9){var _aa=_a9.popup,_ab=_a9.orient||{"BL":"TL","TL":"BL"},_ac=_a9.around,id=(_a9.around&&_a9.around.id)?(_a9.around.id+"_dropdown"):("popup_"+_a6++);var _ae=_4.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_a5+_a4.length,visibility:"hidden"}},_4.body());_5.setWaiRole(_ae,"presentation");_ae.style.left=_ae.style.top="0px";if(_a9.parent){_ae.dijitPopupParent=_a9.parent.id;}var s=_aa.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_ae.appendChild(_aa.domNode);var _b0=new _5.BackgroundIframe(_ae);var _b1=_ac?_5.placeOnScreenAroundElement(_ae,_ac,_ab,_aa.orient?_4.hitch(_aa,"orient"):null):_5.placeOnScreen(_ae,_a9,_ab=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a9.padding);_ae.style.visibility="visible";var _b2=[];var _b3=function(){for(var pi=_a4.length-1;pi>0&&_a4[pi].parent===_a4[pi-1].widget;pi--){}return _a4[pi];};_b2.push(_4.connect(_ae,"onkeypress",this,function(evt){if(evt.charOrCode==_4.keys.ESCAPE&&_a9.onCancel){_4.stopEvent(evt);_a9.onCancel();}else{if(evt.charOrCode===_4.keys.TAB){_4.stopEvent(evt);var _b6=_b3();if(_b6&&_b6.onCancel){_b6.onCancel();}}}}));if(_aa.onCancel){_b2.push(_4.connect(_aa,"onCancel",null,_a9.onCancel));}_b2.push(_4.connect(_aa,_aa.onExecute?"onExecute":"onChange",null,function(){var _b7=_b3();if(_b7&&_b7.onExecute){_b7.onExecute();}}));_a4.push({wrapper:_ae,iframe:_b0,widget:_aa,parent:_a9.parent,onExecute:_a9.onExecute,onCancel:_a9.onCancel,onClose:_a9.onClose,handlers:_b2});if(_aa.onOpen){_aa.onOpen(_b1);}return _b1;};this.close=function(_b8){while(_4.some(_a4,function(_b9){return _b9.widget==_b8;})){var top=_a4.pop(),_bb=top.wrapper,_bc=top.iframe,_bd=top.widget,_be=top.onClose;if(_bd.onClose){_bd.onClose();}_4.forEach(top.handlers,_4.disconnect);if(!_bd||!_bd.domNode){return;}this.prepare(_bd.domNode);_bc.destroy();_4.destroy(_bb);if(_be){_be();}}};}();_5._frames=new function(){var _bf=[];this.pop=function(){var _c0;if(_bf.length){_c0=_bf.pop();_c0.style.display="";}else{if(_4.isIE){var _c1=_4.config["dojoBlankHtmlUrl"]||(_4.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _c2="<iframe src='"+_c1+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_c0=_4.doc.createElement(_c2);}else{_c0=_4.create("iframe");_c0.src="javascript:\"\"";_c0.className="dijitBackgroundIframe";}_c0.tabIndex=-1;_4.body().appendChild(_c0);}return _c0;};this.push=function(_c3){_c3.style.display="none";if(_4.isIE){_c3.style.removeExpression("width");_c3.style.removeExpression("height");}_bf.push(_c3);};}();_5.BackgroundIframe=function(_c4){if(!_c4.id){throw new Error("no id");}if(_4.isIE<7||(_4.isFF<3&&_4.hasClass(_4.body(),"dijit_a11y"))){var _c5=_5._frames.pop();_c4.appendChild(_c5);if(_4.isIE){_c5.style.setExpression("width",_4._scopeName+".doc.getElementById('"+_c4.id+"').offsetWidth");_c5.style.setExpression("height",_4._scopeName+".doc.getElementById('"+_c4.id+"').offsetHeight");}this.iframe=_c5;}};_4.extend(_5.BackgroundIframe,{destroy:function(){if(this.iframe){_5._frames.push(this.iframe);delete this.iframe;}}});}if(!_4._hasResource["dijit._base.scroll"]){_4._hasResource["dijit._base.scroll"]=true;_4.provide("dijit._base.scroll");_5.scrollIntoView=function(_c6){try{_c6=_4.byId(_c6);var doc=_4.doc;var _c8=_4.body();var _c9=_c8.parentNode;if((!(_4.isFF>=3||_4.isIE||_4.isWebKit)||_c6==_c8||_c6==_c9)&&(typeof _c6.scrollIntoView=="function")){_c6.scrollIntoView(false);return;}var ltr=_4._isBodyLtr();var _cb=_4.isIE>=8&&!_cc;var rtl=!ltr&&!_cb;var _ce=_c8;var _cc=doc.compatMode=="BackCompat";if(_cc){_c9._offsetWidth=_c9._clientWidth=_c8._offsetWidth=_c8.clientWidth;_c9._offsetHeight=_c9._clientHeight=_c8._offsetHeight=_c8.clientHeight;}else{if(_4.isWebKit){_c8._offsetWidth=_c8._clientWidth=_c9.clientWidth;_c8._offsetHeight=_c8._clientHeight=_c9.clientHeight;}else{_ce=_c9;}_c9._offsetHeight=_c9.clientHeight;_c9._offsetWidth=_c9.clientWidth;}function _cf(_d0){var ie=_4.isIE;return ((ie<=6||(ie>=7&&_cc))?false:(_4.style(_d0,"position").toLowerCase()=="fixed"));};function _d2(_d3){var _d4=_d3.parentNode;var _d5=_d3.offsetParent;if(_d5==null||_cf(_d3)){_d5=_c9;_d4=(_d3==_c8)?_c9:null;}_d3._offsetParent=_d5;_d3._parent=_d4;var bp=_4._getBorderExtents(_d3);_d3._borderStart={H:(_cb&&!ltr)?(bp.w-bp.l):bp.l,V:bp.t};_d3._borderSize={H:bp.w,V:bp.h};_d3._scrolledAmount={H:_d3.scrollLeft,V:_d3.scrollTop};_d3._offsetSize={H:_d3._offsetWidth||_d3.offsetWidth,V:_d3._offsetHeight||_d3.offsetHeight};_d3._offsetStart={H:(_cb&&!ltr)?_d5.clientWidth-_d3.offsetLeft-_d3._offsetSize.H:_d3.offsetLeft,V:_d3.offsetTop};_d3._clientSize={H:_d3._clientWidth||_d3.clientWidth,V:_d3._clientHeight||_d3.clientHeight};if(_d3!=_c8&&_d3!=_c9&&_d3!=_c6){for(var dir in _d3._offsetSize){var _d8=_d3._offsetSize[dir]-_d3._clientSize[dir]-_d3._borderSize[dir];var _d9=_d3._clientSize[dir]>0&&_d8>0;if(_d9){_d3._offsetSize[dir]-=_d8;if(_4.isIE&&rtl&&dir=="H"){_d3._offsetStart[dir]+=_d8;}}}}};var _da=_c6;while(_da!=null){if(_cf(_da)){_c6.scrollIntoView(false);return;}_d2(_da);_da=_da._parent;}if(_4.isIE&&_c6._parent){var _db=_c6._offsetParent;_c6._offsetStart.H+=_db._borderStart.H;_c6._offsetStart.V+=_db._borderStart.V;}if(_4.isIE>=7&&_ce==_c9&&rtl&&_c8._offsetStart&&_c8._offsetStart.H==0){var _dc=_c9.scrollWidth-_c9._offsetSize.H;if(_dc>0){_c8._offsetStart.H=-_dc;}}if(_4.isIE<=6&&!_cc){_c9._offsetSize.H+=_c9._borderSize.H;_c9._offsetSize.V+=_c9._borderSize.V;}if(rtl&&_c8._offsetStart&&_ce==_c9&&_c9._scrolledAmount){var ofs=_c8._offsetStart.H;if(ofs<0){_c9._scrolledAmount.H+=ofs;_c8._offsetStart.H=0;}}_da=_c6;while(_da){var _de=_da._parent;if(!_de){break;}if(_de.tagName=="TD"){var _df=_de._parent._parent._parent;if(_de!=_da._offsetParent&&_de._offsetParent!=_da._offsetParent){_de=_df;}}var _e0=_da._offsetParent==_de;for(var dir in _da._offsetStart){var _e2=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_de!=_c9)&&(_de!=_c8)&&(_4.isIE||_4.isWebKit)&&_de._clientSize.H>0&&_de.scrollWidth>_de._clientSize.H){var _e3=_de.scrollWidth-_de._clientSize.H;if(_e3>0){_de._scrolledAmount.H-=_e3;}}if(_de._offsetParent.tagName=="TABLE"){if(_4.isIE){_de._offsetStart[dir]-=_de._offsetParent._borderStart[dir];_de._borderStart[dir]=_de._borderSize[dir]=0;}else{_de._offsetStart[dir]+=_de._offsetParent._borderStart[dir];}}if(_4.isIE){_de._offsetStart[dir]+=_de._offsetParent._borderStart[dir];}var _e4=_da._offsetStart[dir]-_de._scrolledAmount[dir]-(_e0?0:_de._offsetStart[dir])-_de._borderStart[dir];var _e5=_e4+_da._offsetSize[dir]-_de._offsetSize[dir]+_de._borderSize[dir];var _e6=(dir=="H")?"scrollLeft":"scrollTop";var _e7=dir=="H"&&rtl;var _e8=_e7?-_e5:_e4;var _e9=_e7?-_e4:_e5;var _ea=(_e8*_e9<=0)?0:Math[(_e8<0)?"max":"min"](_e8,_e9);if(_ea!=0){var _eb=_de[_e6];_de[_e6]+=(_e7)?-_ea:_ea;var _ec=_de[_e6]-_eb;}if(_e0){_da._offsetStart[dir]+=_de._offsetStart[dir];}_da._offsetStart[dir]-=_de[_e6];}_da._parent=_de._parent;_da._offsetParent=_de._offsetParent;}_de=_c6;var _ed;while(_de&&_de.removeAttribute){_ed=_de.parentNode;_de.removeAttribute("_offsetParent");_de.removeAttribute("_parent");_de=_ed;}}catch(error){console.error("scrollIntoView: "+error);_c6.scrollIntoView(false);}};}if(!_4._hasResource["dijit._base.sniff"]){_4._hasResource["dijit._base.sniff"]=true;_4.provide("dijit._base.sniff");(function(){var d=_4,_ef=d.doc.documentElement,ie=d.isIE,_f1=d.isOpera,maj=Math.floor,ff=d.isFF,_f4=d.boxModel.replace(/-/,""),_f5={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_f1,dj_opera8:maj(_f1)==8,dj_opera9:maj(_f1)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_f5["dj_"+_f4]=true;for(var p in _f5){if(_f5[p]){if(_ef.className){_ef.className+=" "+p;}else{_ef.className=p;}}}_4._loaders.unshift(function(){if(!_4._isBodyLtr()){_ef.className+=" dijitRtl";for(var p in _f5){if(_f5[p]){_ef.className+=" "+p+"-rtl";}}}});})();}if(!_4._hasResource["dijit._base.typematic"]){_4._hasResource["dijit._base.typematic"]=true;_4.provide("dijit._base.typematic");_5.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(_4.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_f9,_fa,_fb,obj,_fd,_fe){if(obj!=this._obj){this.stop();this._initialDelay=_fe||500;this._subsequentDelay=_fd||0.9;this._obj=obj;this._evt=evt;this._node=_fa;this._currentTimeout=-1;this._count=-1;this._callback=_4.hitch(_f9,_fb);this._fireEventAndReload();}},stop:function(){if(this._timer){clearTimeout(this._timer);this._timer=null;}if(this._obj){this._callback(-1,this._node,this._evt);this._obj=null;}},addKeyListener:function(_ff,_100,_101,_102,_103,_104){if(_100.keyCode){_100.charOrCode=_100.keyCode;_4.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_100.charCode){_100.charOrCode=String.fromCharCode(_100.charCode);_4.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [_4.connect(_ff,"onkeypress",this,function(evt){if(evt.charOrCode==_100.charOrCode&&(_100.ctrlKey===undefined||_100.ctrlKey==evt.ctrlKey)&&(_100.altKey===undefined||_100.altKey==evt.ctrlKey)&&(_100.shiftKey===undefined||_100.shiftKey==evt.ctrlKey)){_4.stopEvent(evt);_5.typematic.trigger(_100,_101,_ff,_102,_100,_103,_104);}else{if(_5.typematic._obj==_100){_5.typematic.stop();}}}),_4.connect(_ff,"onkeyup",this,function(evt){if(_5.typematic._obj==_100){_5.typematic.stop();}})];},addMouseListener:function(node,_108,_109,_10a,_10b){var dc=_4.connect;return [dc(node,"mousedown",this,function(evt){_4.stopEvent(evt);_5.typematic.trigger(evt,_108,node,_109,node,_10a,_10b);}),dc(node,"mouseup",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mouseout",this,function(evt){_4.stopEvent(evt);_5.typematic.stop();}),dc(node,"mousemove",this,function(evt){_4.stopEvent(evt);}),dc(node,"dblclick",this,function(evt){_4.stopEvent(evt);if(_4.isIE){_5.typematic.trigger(evt,_108,node,_109,node,_10a,_10b);setTimeout(_4.hitch(this,_5.typematic.stop),50);}})];},addListener:function(_112,_113,_114,_115,_116,_117,_118){return this.addKeyListener(_113,_114,_115,_116,_117,_118).concat(this.addMouseListener(_112,_115,_116,_117,_118));}};}if(!_4._hasResource["dijit._base.wai"]){_4._hasResource["dijit._base.wai"]=true;_4.provide("dijit._base.wai");_5.wai={onload:function(){var div=_4.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif"))+"\");"}},_4.body());var cs=_4.getComputedStyle(div);if(cs){var _11b=cs.backgroundImage;var _11c=(cs.borderTopColor==cs.borderRightColor)||(_11b!=null&&(_11b=="none"||_11b=="url(invalid-url:)"));_4[_11c?"addClass":"removeClass"](_4.body(),"dijit_a11y");if(_4.isIE){div.outerHTML="";}else{_4.body().removeChild(div);}}}};if(_4.isIE||_4.isMoz){_4._loaders.unshift(_5.wai.onload);}_4.mixin(_5,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _11f=this.getWaiRole(elem);return role?(_11f.indexOf(role)>-1):(_11f.length>0);},getWaiRole:function(elem){return _4.trim((_4.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _123=_4.attr(elem,"role")||"";if(_4.isFF<3||!this._XhtmlRoles.test(_123)){_4.attr(elem,"role",_4.isFF<3?"wairole:"+role:role);}else{if((" "+_123+" ").indexOf(" "+role+" ")<0){var _124=_4.trim(_123.replace(this._XhtmlRoles,""));var _125=_4.trim(_123.replace(_124,""));_4.attr(elem,"role",_125+(_125?" ":"")+role);}}},removeWaiRole:function(elem,role){var _128=_4.attr(elem,"role");if(!_128){return;}if(role){var _129=_4.isFF<3?"wairole:"+role:role;var t=_4.trim((" "+_128+" ").replace(" "+_129+" "," "));_4.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_12c){if(_4.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_12c);}return elem.hasAttribute?elem.hasAttribute("aria-"+_12c):!!elem.getAttribute("aria-"+_12c);},getWaiState:function(elem,_12e){if(_4.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_12e);}return elem.getAttribute("aria-"+_12e)||"";},setWaiState:function(elem,_130,_131){if(_4.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_130,_131);}else{elem.setAttribute("aria-"+_130,_131);}},removeWaiState:function(elem,_133){if(_4.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_133);}else{elem.removeAttribute("aria-"+_133);}}});}if(!_4._hasResource["dijit._base"]){_4._hasResource["dijit._base"]=true;_4.provide("dijit._base");}if(!_4._hasResource["dojo.date.stamp"]){_4._hasResource["dojo.date.stamp"]=true;_4.provide("dojo.date.stamp");_4.date.stamp.fromISOString=function(_134,_135){if(!_4.date.stamp._isoRegExp){_4.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _136=_4.date.stamp._isoRegExp.exec(_134);var _137=null;if(_136){_136.shift();if(_136[1]){_136[1]--;}if(_136[6]){_136[6]*=1000;}if(_135){_135=new Date(_135);_4.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _135["get"+prop]();}).forEach(function(_139,_13a){if(_136[_13a]===undefined){_136[_13a]=_139;}});}_137=new Date(_136[0]||1970,_136[1]||0,_136[2]||1,_136[3]||0,_136[4]||0,_136[5]||0,_136[6]||0);var _13b=0;var _13c=_136[7]&&_136[7].charAt(0);if(_13c!="Z"){_13b=((_136[8]||0)*60)+(Number(_136[9])||0);if(_13c!="-"){_13b*=-1;}}if(_13c){_13b-=_137.getTimezoneOffset();}if(_13b){_137.setTime(_137.getTime()+_13b*60000);}}return _137;};_4.date.stamp.toISOString=function(_13d,_13e){var _=function(n){return (n<10)?"0"+n:n;};_13e=_13e||{};var _141=[];var _142=_13e.zulu?"getUTC":"get";var date="";if(_13e.selector!="time"){var year=_13d[_142+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_13d[_142+"Month"]()+1),_(_13d[_142+"Date"]())].join("-");}_141.push(date);if(_13e.selector!="date"){var time=[_(_13d[_142+"Hours"]()),_(_13d[_142+"Minutes"]()),_(_13d[_142+"Seconds"]())].join(":");var _146=_13d[_142+"Milliseconds"]();if(_13e.milliseconds){time+="."+(_146<100?"0":"")+_(_146);}if(_13e.zulu){time+="Z";}else{if(_13e.selector!="time"){var _147=_13d.getTimezoneOffset();var _148=Math.abs(_147);time+=(_147>0?"-":"+")+_(Math.floor(_148/60))+":"+_(_148%60);}}_141.push(time);}return _141.join("T");};}if(!_4._hasResource["dojo.parser"]){_4._hasResource["dojo.parser"]=true;_4.provide("dojo.parser");_4.parser=new function(){var d=_4;var _14a=d._scopeName+"Type";var qry="["+_14a+"]";var _14c=0,_14d={};var _14e=function(_14f,_150){var nso=_150||_14d;if(_4.isIE){var cn=_14f["__dojoNameCache"];if(cn&&nso[cn]===_14f){return cn;}}var name;do{name="__"+_14c++;}while(name in nso);nso[name]=_14f;return name;};function _154(_155){if(d.isString(_155)){return "string";}if(typeof _155=="number"){return "number";}if(typeof _155=="boolean"){return "boolean";}if(d.isFunction(_155)){return "function";}if(d.isArray(_155)){return "array";}if(_155 instanceof Date){return "date";}if(_155 instanceof d._Url){return "url";}return "object";};function _156(_157,type){switch(type){case "string":return _157;case "number":return _157.length?Number(_157):NaN;case "boolean":return typeof _157=="boolean"?_157:!(_157.toLowerCase()=="false");case "function":if(d.isFunction(_157)){_157=_157.toString();_157=d.trim(_157.substring(_157.indexOf("{")+1,_157.length-1));}try{if(_157.search(/[^\w\.]+/i)!=-1){_157=_14e(new Function(_157),this);}return d.getObject(_157,false);}catch(e){return new Function();}case "array":return _157?_157.split(/\s*,\s*/):[];case "date":switch(_157){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_157);}case "url":return d.baseUrl+_157;default:return d.fromJson(_157);}};var _159={};function _15a(_15b){if(!_159[_15b]){var cls=d.getObject(_15b);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_15b+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _15d=cls.prototype;var _15e={},_15f={};for(var name in _15d){if(name.charAt(0)=="_"){continue;}if(name in _15f){continue;}var _161=_15d[name];_15e[name]=_154(_161);}_159[_15b]={cls:cls,params:_15e};}return _159[_15b];};this._functionFromScript=function(_162){var _163="";var _164="";var _165=_162.getAttribute("args");if(_165){d.forEach(_165.split(/\s*,\s*/),function(part,idx){_163+="var "+part+" = arguments["+idx+"]; ";});}var _168=_162.getAttribute("with");if(_168&&_168.length){d.forEach(_168.split(/\s*,\s*/),function(part){_163+="with("+part+"){";_164+="}";});}return new Function(_163+_162.innerHTML+_164);};this.instantiate=function(_16a,_16b){var _16c=[];_16b=_16b||{};d.forEach(_16a,function(node){if(!node){return;}var type=_14a in _16b?_16b[_14a]:node.getAttribute(_14a);if(!type||!type.length){return;}var _16f=_15a(type),_170=_16f.cls,ps=_170._noScript||_170.prototype._noScript;var _172={},_173=node.attributes;for(var name in _16f.params){var item=name in _16b?{value:_16b[name],specified:true}:_173.getNamedItem(name);if(!item||(!item.specified&&(!_4.isIE||name.toLowerCase()!="value"))){continue;}var _176=item.value;switch(name){case "class":_176="className" in _16b?_16b.className:node.className;break;case "style":_176="style" in _16b?_16b.style:(node.style&&node.style.cssText);}var _177=_16f.params[name];if(typeof _176=="string"){_172[name]=_156(_176,_177);}else{_172[name]=_176;}}if(!ps){var _178=[],_179=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_17a){var _17b=_17a.getAttribute("event"),type=_17a.getAttribute("type"),nf=d.parser._functionFromScript(_17a);if(_17b){if(type=="dojo/connect"){_178.push({event:_17b,func:nf});}else{_172[_17b]=nf;}}else{_179.push(nf);}});}var _17d=_170["markupFactory"];if(!_17d&&_170["prototype"]){_17d=_170.prototype["markupFactory"];}var _17e=_17d?_17d(_172,node,_170):new _170(_172,node);_16c.push(_17e);var _17f=node.getAttribute("jsId");if(_17f){d.setObject(_17f,_17e);}if(!ps){d.forEach(_178,function(_180){d.connect(_17e,_180.event,null,_180.func);});d.forEach(_179,function(func){func.call(_17e);});}});d.forEach(_16c,function(_182){if(_182&&_182.startup&&!_182._started&&(!_182.getParent||!_182.getParent())){_182.startup();}});return _16c;};this.parse=function(_183){var list=d.query(qry,_183);var _185=this.instantiate(list);return _185;};}();(function(){var _186=function(){if(_4.config["parseOnLoad"]==true){_4.parser.parse();}};if(_4.exists("dijit.wai.onload")&&(_5.wai.onload===_4._loaders[0])){_4._loaders.splice(1,0,_186);}else{_4._loaders.unshift(_186);}})();}if(!_4._hasResource["dijit._Widget"]){_4._hasResource["dijit._Widget"]=true;_4.provide("dijit._Widget");_4.require("dijit._base");_4.connect(_4,"connect",function(_187,_188){if(_187&&_4.isFunction(_187._onConnect)){_187._onConnect(_188);}});_5._connectOnUseEventHandler=function(_189){};(function(){var _18a={};var _18b=function(dc){if(!_18a[dc]){var r=[];var _18e;var _18f=_4.getObject(dc).prototype;for(var _190 in _18f){if(_4.isFunction(_18f[_190])&&(_18e=_190.match(/^_set([a-zA-Z]*)Attr$/))&&_18e[1]){r.push(_18e[1].charAt(0).toLowerCase()+_18e[1].substr(1));}}_18a[dc]=r;}return _18a[dc]||[];};_4.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:_5._connectOnUseEventHandler,onDblClick:_5._connectOnUseEventHandler,onKeyDown:_5._connectOnUseEventHandler,onKeyPress:_5._connectOnUseEventHandler,onKeyUp:_5._connectOnUseEventHandler,onMouseDown:_5._connectOnUseEventHandler,onMouseMove:_5._connectOnUseEventHandler,onMouseOut:_5._connectOnUseEventHandler,onMouseOver:_5._connectOnUseEventHandler,onMouseLeave:_5._connectOnUseEventHandler,onMouseEnter:_5._connectOnUseEventHandler,onMouseUp:_5._connectOnUseEventHandler,_blankGif:(_4.config.blankGif||_4.moduleUrl("dojo","resources/blank.gif")),postscript:function(_191,_192){this.create(_191,_192);},create:function(_193,_194){this.srcNodeRef=_4.byId(_194);this._connects=[];this._deferredConnects=_4.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==_5._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_193){this.params=_193;_4.mixin(this,_193);}this.postMixInProperties();if(!this.id){this.id=_5.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_5.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _196=this.srcNodeRef;if(_196&&_196.parentNode){_196.parentNode.replaceChild(this.domNode,_196);}for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _197=function(attr,_199){if((_199.params&&attr in _199.params)||_199[attr]){_199.attr(attr,_199[attr]);}};for(var attr in this.attributeMap){_197(attr,this);}_4.forEach(_18b(this.declaredClass),function(a){if(!(a in this.attributeMap)){_197(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||_4.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_19c){this.destroyDescendants(_19c);this.destroy(_19c);},destroy:function(_19d){this.uninitialize();_4.forEach(this._connects,function(_19e){_4.forEach(_19e,_4.disconnect);});_4.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_19d);_5.registry.remove(this.id);},destroyRendering:function(_1a0){if(this.bgIframe){this.bgIframe.destroy(_1a0);delete this.bgIframe;}if(this.domNode){if(_1a0){_4.removeAttr(this.domNode,"widgetId");}else{_4.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_1a0){_4.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_1a1){_4.forEach(this.getChildren(),function(_1a2){if(_1a2.destroyRecursive){_1a2.destroyRecursive(_1a1);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_1a4){if(_1a4 in this._deferredConnects){var _1a5=this[this._deferredConnects[_1a4]||"domNode"];this.connect(_1a5,_1a4.toLowerCase(),_1a4);delete this._deferredConnects[_1a4];}},_setClassAttr:function(_1a6){var _1a7=this[this.attributeMap["class"]||"domNode"];_4.removeClass(_1a7,this["class"]);this["class"]=_1a6;_4.addClass(_1a7,_1a6);},_setStyleAttr:function(_1a8){var _1a9=this[this.attributeMap["style"]||"domNode"];if(_4.isObject(_1a8)){_4.style(_1a9,_1a8);}else{if(_1a9.style.cssText){_1a9.style.cssText+="; "+_1a8;}else{_1a9.style.cssText=_1a8;}}this["style"]=_1a8;},setAttribute:function(attr,_1ab){_4.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_1ab);},_attrToDom:function(attr,_1ad){var _1ae=this.attributeMap[attr];_4.forEach(_4.isArray(_1ae)?_1ae:[_1ae],function(_1af){var _1b0=this[_1af.node||_1af||"domNode"];var type=_1af.type||"attribute";switch(type){case "attribute":if(_4.isFunction(_1ad)){_1ad=_4.hitch(this,_1ad);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}_4.attr(_1b0,attr,_1ad);break;case "innerHTML":_1b0.innerHTML=_1ad;break;case "class":_4.removeClass(_1b0,this[attr]);_4.addClass(_1b0,_1ad);break;}},this);this[attr]=_1ad;},attr:function(name,_1b3){var args=arguments.length;if(args==1&&!_4.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _1b6=this._getAttrNames(name);if(args==2){if(this[_1b6.s]){return this[_1b6.s](_1b3)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_1b3);}this[name]=_1b3;}return this;}else{if(this[_1b6.g]){return this[_1b6.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=_4.query("[widgetId]",this.containerNode);return list.map(_5.byNode);}else{return [];}},getChildren:function(){if(this.containerNode){return _5.findWidgets(this.containerNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_1bc,_1bd){var d=_4;var dc=_4.connect;var _1c0=[];if(_1bc=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_1bd);_1c0.push(dc(obj,"onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dc(obj,"onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));if(d.isFF){_1c0.push(dc(obj,"onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_1bc="onclick";}_1c0.push(dc(obj,_1bc,this,_1bd));this._connects.push(_1c0);return _1c0;},disconnect:function(_1c5){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1c5){_4.forEach(_1c5,_4.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return _4._isBodyLtr();},isFocusable:function(){return this.focus&&(_4.style(this.domNode,"display")!="none");},placeAt:function(_1c7,_1c8){if(_1c7["declaredClass"]&&_1c7["addChild"]){_1c7.addChild(this,_1c8);}else{_4.place(this.domNode,_1c7,_1c8);}return this;}});})();}if(!_4._hasResource["dojo.string"]){_4._hasResource["dojo.string"]=true;_4.provide("dojo.string");_4.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("");};_4.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=_4.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};_4.string.substitute=function(_1d2,map,_1d4,_1d5){_1d5=_1d5||_4.global;_1d4=(!_1d4)?function(v){return v;}:_4.hitch(_1d5,_1d4);return _1d2.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1d7,key,_1d9){var _1da=_4.getObject(key,false,map);if(_1d9){_1da=_4.getObject(_1d9,false,_1d5).call(_1d5,_1da,key);}return _1d4(_1da,key).toString();});};_4.string.trim=String.prototype.trim?_4.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(!_4._hasResource["dijit._Templated"]){_4._hasResource["dijit._Templated"]=true;_4.provide("dijit._Templated");_4.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _1de=this.declaredClass,_1df=this;return _4.string.substitute(tmpl,this,function(_1e0,key){if(key.charAt(0)=="!"){_1e0=_4.getObject(key.substr(1),false,_1df);}if(typeof _1e0=="undefined"){throw new Error(_1de+" template:"+key);}if(_1e0==null){return "";}return key.charAt(0)=="!"?_1e0:_1e0.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1e2=_5._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_4.isString(_1e2)){node=_4._toDom(this._stringRepl(_1e2));}else{node=_1e2.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._supportingWidgets=_4.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1e7){var dest=this.containerNode;if(_1e7&&dest){while(_1e7.hasChildNodes()){dest.appendChild(_1e7.firstChild);}}},_attachTemplateNodes:function(_1e9,_1ea){_1ea=_1ea||function(n,p){return n.getAttribute(p);};var _1ed=_4.isArray(_1e9)?_1e9:(_1e9.all||_1e9.getElementsByTagName("*"));var x=_4.isArray(_1e9)?0:-1;for(;x<_1ed.length;x++){var _1ef=(x==-1)?_1e9:_1ed[x];if(this.widgetsInTemplate&&_1ea(_1ef,"dojoType")){continue;}var _1f0=_1ea(_1ef,"dojoAttachPoint");if(_1f0){var _1f1,_1f2=_1f0.split(/\s*,\s*/);while((_1f1=_1f2.shift())){if(_4.isArray(this[_1f1])){this[_1f1].push(_1ef);}else{this[_1f1]=_1ef;}}}var _1f3=_1ea(_1ef,"dojoAttachEvent");if(_1f3){var _1f4,_1f5=_1f3.split(/\s*,\s*/);var trim=_4.trim;while((_1f4=_1f5.shift())){if(_1f4){var _1f7=null;if(_1f4.indexOf(":")!=-1){var _1f8=_1f4.split(":");_1f4=trim(_1f8[0]);_1f7=trim(_1f8[1]);}else{_1f4=trim(_1f4);}if(!_1f7){_1f7=_1f4;}this.connect(_1ef,_1f4,_1f7);}}}var role=_1ea(_1ef,"waiRole");if(role){_5.setWaiRole(_1ef,role);}var _1fa=_1ea(_1ef,"waiState");if(_1fa){_4.forEach(_1fa.split(/\s*,\s*/),function(_1fb){if(_1fb.indexOf("-")!=-1){var pair=_1fb.split("-");_5.setWaiState(_1ef,pair[0],pair[1]);}});}}}});_5._Templated._templateCache={};_5._Templated.getCachedTemplate=function(_1fd,_1fe,_1ff){var _200=_5._Templated._templateCache;var key=_1fe||_1fd;var _202=_200[key];if(_202){if(!_202.ownerDocument||_202.ownerDocument==_4.doc){return _202;}_4.destroy(_202);}if(!_1fe){_1fe=_5._Templated._sanitizeTemplateString(_4.trim(_4._getText(_1fd)));}_1fe=_4.string.trim(_1fe);if(_1ff||_1fe.match(/\$\{([^\}]+)\}/g)){return (_200[key]=_1fe);}else{return (_200[key]=_4._toDom(_1fe));}};_5._Templated._sanitizeTemplateString=function(_203){if(_203){_203=_203.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _204=_203.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_204){_203=_204[1];}}else{_203="";}return _203;};if(_4.isIE){_4.addOnWindowUnload(function(){var _205=_5._Templated._templateCache;for(var key in _205){var _207=_205[key];if(!isNaN(_207.nodeType)){_4.destroy(_207);}delete _205[key];}});}_4.extend(_5._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_4._hasResource["dijit._Container"]){_4._hasResource["dijit._Container"]=true;_4.provide("dijit._Container");_4.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_208,_209){var _20a=this.containerNode;if(_209&&typeof _209=="number"){var _20b=this.getChildren();if(_20b&&_20b.length>=_209){_20a=_20b[_209-1].domNode;_209="after";}}_4.place(_208.domNode,_20a,_209);if(this._started&&!_208._started){_208.startup();}},removeChild:function(_20c){if(typeof _20c=="number"&&_20c>0){_20c=this.getChildren()[_20c];}if(!_20c||!_20c.domNode){return;}var node=_20c.domNode;node.parentNode.removeChild(node);},_nextElement:function(node){do{node=node.nextSibling;}while(node&&node.nodeType!=1);return node;},_firstElement:function(node){node=node.firstChild;if(node&&node.nodeType!=1){node=this._nextElement(node);}return node;},getChildren:function(){return _4.query("> [widgetId]",this.containerNode).map(_5.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_210){_4.forEach(this.getChildren(),function(_211){_211.destroyRecursive(_210);});},_getSiblingOfChild:function(_212,dir){var node=_212.domNode;var _215=(dir>0?"nextSibling":"previousSibling");do{node=node[_215];}while(node&&(node.nodeType!=1||!_5.byNode(node)));return node?_5.byNode(node):null;},getIndexOfChild:function(_216){var _217=this.getChildren();for(var i=0,c;c=_217[i];i++){if(c==_216){return i;}}return -1;}});}if(!_4._hasResource["dijit._Contained"]){_4._hasResource["dijit._Contained"]=true;_4.provide("dijit._Contained");_4.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _21c=_5.byId(id);return _21c.isContainer?_21c:null;}}return null;},_getSibling:function(_21d){var node=this.domNode;do{node=node[_21d+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return _5.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});}if(!_4._hasResource["dijit.layout._LayoutWidget"]){_4._hasResource["dijit.layout._LayoutWidget"]=true;_4.provide("dijit.layout._LayoutWidget");_4.declare("dijit.layout._LayoutWidget",[_5._Widget,_5._Container,_5._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){_4.addClass(this.domNode,"dijitContainer");_4.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}_4.forEach(this.getChildren(),function(_221){_221.startup();});if(!this.getParent||!this.getParent()){this.resize();this._viewport=_5.getViewport();this.connect(_4.global,"onresize",function(){var _222=_5.getViewport();if(_222.w!=this._viewport.w||_222.h!=this._viewport.h){this._viewport=_222;this.resize();}});}this.inherited(arguments);},resize:function(_223,_224){var node=this.domNode;if(_223){_4.marginBox(node,_223);if(_223.t){node.style.top=_223.t+"px";}if(_223.l){node.style.left=_223.l+"px";}}var mb=_224||{};_4.mixin(mb,_223||{});if(!("h" in mb)||!("w" in mb)){mb=_4.mixin(_4.marginBox(node),mb);}var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var be=_4._getBorderExtents(node,cs);var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});var pe=_4._getPadExtents(node,cs);this._contentBox={l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_22c){_4.addClass(_22c.domNode,this.baseClass+"-child");if(_22c.baseClass){_4.addClass(_22c.domNode,this.baseClass+"-"+_22c.baseClass);}},addChild:function(_22d,_22e){this.inherited(arguments);if(this._started){this._setupChild(_22d);}},removeChild:function(_22f){_4.removeClass(_22f.domNode,this.baseClass+"-child");if(_22f.baseClass){_4.removeClass(_22f.domNode,this.baseClass+"-"+_22f.baseClass);}this.inherited(arguments);}});_5.layout.marginBox2contentBox=function(node,mb){var cs=_4.getComputedStyle(node);var me=_4._getMarginExtents(node,cs);var pb=_4._getPadBorderExtents(node,cs);return {l:_4._toPixelValue(node,cs.paddingLeft),t:_4._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _235=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_238,dim){_238.resize?_238.resize(dim):_4.marginBox(_238.domNode,dim);_4.mixin(_238,_4.marginBox(_238.domNode));_4.mixin(_238,dim);};_5.layout.layoutChildren=function(_23a,dim,_23c){dim=_4.mixin({},dim);_4.addClass(_23a,"dijitLayoutContainer");_23c=_4.filter(_23c,function(item){return item.layoutAlign!="client";}).concat(_4.filter(_23c,function(item){return item.layoutAlign=="client";}));_4.forEach(_23c,function(_23f){var elm=_23f.domNode,pos=_23f.layoutAlign;var _242=elm.style;_242.left=dim.l+"px";_242.top=dim.t+"px";_242.bottom=_242.right="auto";_4.addClass(elm,"dijitAlign"+_235(pos));if(pos=="top"||pos=="bottom"){size(_23f,{w:dim.w});dim.h-=_23f.h;if(pos=="top"){dim.t+=_23f.h;}else{_242.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_23f,{h:dim.h});dim.w-=_23f.w;if(pos=="left"){dim.l+=_23f.w;}else{_242.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_23f,dim);}}}});};})();}if(!_4._hasResource["dijit.form._FormWidget"]){_4._hasResource["dijit.form._FormWidget"]=true;_4.provide("dijit.form._FormWidget");_4.declare("dijit.form._FormWidget",[_5._Widget,_5._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:_4.delegate(_5._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";this.inherited(arguments);},_setDisabledAttr:function(_243){this.disabled=_243;_4.attr(this.focusNode,"disabled",_243);_5.setWaiState(this.focusNode,"disabled",_243);if(_243){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_244){_4.deprecated("setDisabled("+_244+") is deprecated. Use attr('disabled',"+_244+") instead.","","2.0");this.attr("disabled",_244);},_onFocus:function(e){if(this.scrollOnFocus){_5.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_246){var _247=_246.currentTarget;if(_247&&_247.getAttribute){this.stateModifier=_247.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_246.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _248=this.connect(_4.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_248);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(_4.style(this.domNode,"display")!="none");},focus:function(){_5.focus(this.focusNode);},_setStateClass:function(){var _249=this.baseClass.split(" ");function _24a(_24b){_249=_249.concat(_4.map(_249,function(c){return c+_24b;}),"dijit"+_24b);};if(this.checked){_24a("Checked");}if(this.state){_24a(this.state);}if(this.selected){_24a("Selected");}if(this.disabled){_24a("Disabled");}else{if(this.readOnly){_24a("ReadOnly");}else{if(this._active){_24a(this.stateModifier+"Active");}else{if(this._focused){_24a("Focused");}if(this._hovering){_24a(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_24e={};_4.forEach(tn.className.split(" "),function(c){_24e[c]=true;});if("_stateClasses" in this){_4.forEach(this._stateClasses,function(c){delete _24e[c];});}_4.forEach(_249,function(c){_24e[c]=true;});var _252=[];for(var c in _24e){_252.push(c);}tn.className=_252.join(" ");this._stateClasses=_249;},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(_256){},_onChangeActive:false,_handleOnChange:function(_257,_258){this._lastValue=_257;if(this._lastValueReported==undefined&&(_258===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_257;}if((this.intermediateChanges||_258||_258===undefined)&&((typeof _257!=typeof this._lastValueReported)||this.compare(_257,this._lastValueReported)!=0)){this._lastValueReported=_257;if(this._onChangeActive){this.onChange(_257);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_259){_4.deprecated("dijit.form._FormWidget:setValue("+_259+") is deprecated.  Use attr('value',"+_259+") instead.","","2.0");this.attr("value",_259);},getValue:function(){_4.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(_4.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(_4.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});_4.declare("dijit.form._FormValueWidget",_5.form._FormWidget,{attributeMap:_4.delegate(_5.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){if(_4.isIE||_4.isWebKit){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_25c,_25d){this.value=_25c;this._handleOnChange(_25c,_25d);},_getValueAttr:function(_25e){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==_4.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(_4.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=_4.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(_4.isWebKit){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=_4.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}}});}if(!_4._hasResource["dijit.dijit"]){_4._hasResource["dijit.dijit"]=true;_4.provide("dijit.dijit");}}};});

