/*
	Copyright (c) 2004-2008, The Dojo Foundation
	All Rights Reserved.

	Licensed under the Academic Free License version 2.1 or above OR the
	modified BSD license. For more information on Dojo licensing, see:

		http://dojotoolkit.org/book/dojo-book-0-9/introduction/licensing
*/

/*
	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({depends:[["provide","dijit._base.focus"],["provide","dijit._base.manager"],["provide","dijit._base.place"],["provide","dijit._base.window"],["provide","dijit._base.popup"],["provide","dijit._base.scroll"],["provide","dijit._base.sniff"],["provide","dijit._base.bidi"],["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.layout._LayoutWidget"],["provide","dijit.form._FormWidget"],["provide","dijit.dijit"]],defineResource:function(_1,_2,_3){if(!_1._hasResource["dijit._base.focus"]){_1._hasResource["dijit._base.focus"]=true;_1.provide("dijit._base.focus");_1.mixin(_2,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _4=_1.global;var _5=_1.doc;if(_5.selection){return !_5.selection.createRange().text;}else{var _6=_4.getSelection();if(_1.isString(_6)){return !_6;}else{return _6.isCollapsed||!_6.toString();}}},getBookmark:function(){var _7,_8=_1.doc.selection;if(_8){var _9=_8.createRange();if(_8.type.toUpperCase()=="CONTROL"){if(_9.length){_7=[];var i=0,_b=_9.length;while(i<_b){_7.push(_9.item(i++));}}else{_7=null;}}else{_7=_9.getBookmark();}}else{if(window.getSelection){_8=_1.global.getSelection();if(_8){_9=_8.getRangeAt(0);_7=_9.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _7;},moveToBookmark:function(_c){var _d=_1.doc;if(_d.selection){var _e;if(_1.isArray(_c)){_e=_d.body.createControlRange();_1.forEach(_c,"range.addElement(item)");}else{_e=_d.selection.createRange();_e.moveToBookmark(_c);}_e.select();}else{var _f=_1.global.getSelection&&_1.global.getSelection();if(_f&&_f.removeAllRanges){_f.removeAllRanges();_f.addRange(_c);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_10,_11){return {node:_10&&_1.isDescendant(_2._curFocus,_10.domNode)?_2._prevFocus:_2._curFocus,bookmark:!_1.withGlobal(_11||_1.global,_2.isCollapsed)?_1.withGlobal(_11||_1.global,_2.getBookmark):null,openedForWindow:_11};},focus:function(_12){if(!_12){return;}var _13="node" in _12?_12.node:_12,_14=_12.bookmark,_15=_12.openedForWindow;if(_13){var _16=(_13.tagName.toLowerCase()=="iframe")?_13.contentWindow:_13;if(_16&&_16.focus){try{_16.focus();}catch(e){}}_2._onFocusNode(_13);}if(_14&&_1.withGlobal(_15||_1.global,_2.isCollapsed)){if(_15){_15.focus();}try{_1.withGlobal(_15||_1.global,_2.moveToBookmark,null,[_14]);}catch(e){}}},_activeStack:[],registerWin:function(_17){if(!_17){_17=window;}_1.connect(_17.document,"onmousedown",function(evt){_2._justMouseDowned=true;setTimeout(function(){_2._justMouseDowned=false;},0);_2._onTouchNode(evt.target||evt.srcElement);});var _19=_17.document.body||_17.document.getElementsByTagName("body")[0];if(_19){if(_1.isIE){_19.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){_2._onFocusNode(evt.srcElement);}});_19.attachEvent("ondeactivate",function(evt){_2._onBlurNode(evt.srcElement);});}else{_19.addEventListener("focus",function(evt){_2._onFocusNode(evt.target);},true);_19.addEventListener("blur",function(evt){_2._onBlurNode(evt.target);},true);}}_19=null;},_onBlurNode:function(_1e){_2._prevFocus=_2._curFocus;_2._curFocus=null;if(_2._justMouseDowned){return;}if(_2._clearActiveWidgetsTimer){clearTimeout(_2._clearActiveWidgetsTimer);}_2._clearActiveWidgetsTimer=setTimeout(function(){delete _2._clearActiveWidgetsTimer;_2._setStack([]);_2._prevFocus=null;},100);},_onTouchNode:function(_1f){if(_2._clearActiveWidgetsTimer){clearTimeout(_2._clearActiveWidgetsTimer);delete _2._clearActiveWidgetsTimer;}var _20=[];try{while(_1f){if(_1f.dijitPopupParent){_1f=_2.byId(_1f.dijitPopupParent).domNode;}else{if(_1f.tagName&&_1f.tagName.toLowerCase()=="body"){if(_1f===_1.body()){break;}_1f=_2.getDocumentWindow(_1f.ownerDocument).frameElement;}else{var id=_1f.getAttribute&&_1f.getAttribute("widgetId");if(id){_20.unshift(id);}_1f=_1f.parentNode;}}}}catch(e){}_2._setStack(_20);},_onFocusNode:function(_22){if(_22&&_22.tagName&&_22.tagName.toLowerCase()=="body"){return;}_2._onTouchNode(_22);if(_22==_2._curFocus){return;}if(_2._curFocus){_2._prevFocus=_2._curFocus;}_2._curFocus=_22;_1.publish("focusNode",[_22]);},_setStack:function(_23){var _24=_2._activeStack;_2._activeStack=_23;for(var _25=0;_25<Math.min(_24.length,_23.length);_25++){if(_24[_25]!=_23[_25]){break;}}for(var i=_24.length-1;i>=_25;i--){var _27=_2.byId(_24[i]);if(_27){_27._focused=false;_27._hasBeenBlurred=true;if(_27._onBlur){_27._onBlur();}if(_27._setStateClass){_27._setStateClass();}_1.publish("widgetBlur",[_27]);}}for(i=_25;i<_23.length;i++){_27=_2.byId(_23[i]);if(_27){_27._focused=true;if(_27._onFocus){_27._onFocus();}if(_27._setStateClass){_27._setStateClass();}_1.publish("widgetFocus",[_27]);}}}});_1.addOnLoad(_2.registerWin);}if(!_1._hasResource["dijit._base.manager"]){_1._hasResource["dijit._base.manager"]=true;_1.provide("dijit._base.manager");_1.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_28){if(this._hash[_28.id]){throw new Error("Tried to register widget with id=="+_28.id+" but that id is already registered");}this._hash[_28.id]=_28;},remove:function(id){delete this._hash[id];},forEach:function(_2a){for(var id in this._hash){_2a(this._hash[id]);}},filter:function(_2c){var res=new _2.WidgetSet();this.forEach(function(_2e){if(_2c(_2e)){res.add(_2e);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_31){return _31.declaredClass==cls;});}});_2.registry=new _2.WidgetSet();_2._widgetTypeCtr={};_2.getUniqueId=function(_32){var id;do{id=_32+"_"+(_32 in _2._widgetTypeCtr?++_2._widgetTypeCtr[_32]:_2._widgetTypeCtr[_32]=0);}while(_2.byId(id));return id;};if(_1.isIE){_1.addOnUnload(function(){_2.registry.forEach(function(_34){_34.destroy();});});}_2.byId=function(id){return (_1.isString(id))?_2.registry.byId(id):id;};_2.byNode=function(_36){return _2.registry.byId(_36.getAttribute("widgetId"));};_2.getEnclosingWidget=function(_37){while(_37){if(_37.getAttribute&&_37.getAttribute("widgetId")){return _2.registry.byId(_37.getAttribute("widgetId"));}_37=_37.parentNode;}return null;};_2._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};_2._isElementShown=function(_38){var _39=_1.style(_38);return (_39.visibility!="hidden")&&(_39.visibility!="collapsed")&&(_39.display!="none");};_2.isTabNavigable=function(_3a){if(_1.hasAttr(_3a,"disabled")){return false;}var _3b=_1.hasAttr(_3a,"tabindex");var _3c=_1.attr(_3a,"tabindex");if(_3b&&_3c>=0){return true;}var _3d=_3a.nodeName.toLowerCase();if(((_3d=="a"&&_1.hasAttr(_3a,"href"))||_2._tabElements[_3d])&&(!_3b||_3c>=0)){return true;}return false;};_2._getTabNavigable=function(_3e){var _3f,_40,_41,_42,_43,_44;var _45=function(_46){_1.query("> *",_46).forEach(function(_47){var _48=_2._isElementShown(_47);if(_48&&_2.isTabNavigable(_47)){var _49=_1.attr(_47,"tabindex");if(!_1.hasAttr(_47,"tabindex")||_49==0){if(!_3f){_3f=_47;}_40=_47;}else{if(_49>0){if(!_41||_49<_42){_42=_49;_41=_47;}if(!_43||_49>=_44){_44=_49;_43=_47;}}}}if(_48){_45(_47);}});};if(_2._isElementShown(_3e)){_45(_3e);}return {first:_3f,last:_40,lowest:_41,highest:_43};};_2.getFirstInTabbingOrder=function(_4a){var _4b=_2._getTabNavigable(_1.byId(_4a));return _4b.lowest?_4b.lowest:_4b.first;};_2.getLastInTabbingOrder=function(_4c){var _4d=_2._getTabNavigable(_1.byId(_4c));return _4d.last?_4d.last:_4d.highest;};}if(!_1._hasResource["dijit._base.place"]){_1._hasResource["dijit._base.place"]=true;_1.provide("dijit._base.place");_2.getViewport=function(){var _4e=_1.global;var _4f=_1.doc;var w=0,h=0;var de=_4f.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(_1.isMozilla){var _55,_56,_57,_58;var dbw=_4f.body.clientWidth;if(dbw>dew){_55=dew;_57=dbw;}else{_57=dew;_55=dbw;}var dbh=_4f.body.clientHeight;if(dbh>deh){_56=deh;_58=dbh;}else{_58=deh;_56=dbh;}w=(_57>_4e.innerWidth)?_55:_57;h=(_58>_4e.innerHeight)?_56:_58;}else{if(!_1.isOpera&&_4e.innerWidth){w=_4e.innerWidth;h=_4e.innerHeight;}else{if(_1.isIE&&de&&deh){w=dew;h=deh;}else{if(_1.body().clientWidth){w=_1.body().clientWidth;h=_1.body().clientHeight;}}}}var _5b=_1._docScroll();return {w:w,h:h,l:_5b.x,t:_5b.y};};_2.placeOnScreen=function(_5c,pos,_5e,_5f){var _60=_1.map(_5e,function(_61){return {corner:_61,pos:pos};});return _2._place(_5c,_60);};_2._place=function(_62,_63,_64){var _65=_2.getViewport();if(!_62.parentNode||String(_62.parentNode.tagName).toLowerCase()!="body"){_1.body().appendChild(_62);}var _66=null;_1.some(_63,function(_67){var _68=_67.corner;var pos=_67.pos;if(_64){_64(_62,_67.aroundCorner,_68);}var _6a=_62.style;var _6b=_6a.display;var _6c=_6a.visibility;_6a.visibility="hidden";_6a.display="";var mb=_1.marginBox(_62);_6a.display=_6b;_6a.visibility=_6c;var _6e=(_68.charAt(1)=="L"?pos.x:Math.max(_65.l,pos.x-mb.w)),_6f=(_68.charAt(0)=="T"?pos.y:Math.max(_65.t,pos.y-mb.h)),_70=(_68.charAt(1)=="L"?Math.min(_65.l+_65.w,_6e+mb.w):pos.x),_71=(_68.charAt(0)=="T"?Math.min(_65.t+_65.h,_6f+mb.h):pos.y),_72=_70-_6e,_73=_71-_6f,_74=(mb.w-_72)+(mb.h-_73);if(_66==null||_74<_66.overflow){_66={corner:_68,aroundCorner:_67.aroundCorner,x:_6e,y:_6f,w:_72,h:_73,overflow:_74};}return !_74;});_62.style.left=_66.x+"px";_62.style.top=_66.y+"px";if(_66.overflow&&_64){_64(_62,_66.aroundCorner,_66.corner);}return _66;};_2.placeOnScreenAroundElement=function(_75,_76,_77,_78){_76=_1.byId(_76);var _79=_76.style.display;_76.style.display="";var _7a=_76.offsetWidth;var _7b=_76.offsetHeight;var _7c=_1.coords(_76,true);_76.style.display=_79;var _7d=[];for(var _7e in _77){_7d.push({aroundCorner:_7e,corner:_77[_7e],pos:{x:_7c.x+(_7e.charAt(1)=="L"?0:_7a),y:_7c.y+(_7e.charAt(0)=="T"?0:_7b)}});}return _2._place(_75,_7d,_78);};}if(!_1._hasResource["dijit._base.window"]){_1._hasResource["dijit._base.window"]=true;_1.provide("dijit._base.window");_2.getDocumentWindow=function(doc){if(_1.isSafari&&!doc._parentWindow){var fix=function(win){win.document._parentWindow=win;for(var i=0;i<win.frames.length;i++){fix(win.frames[i]);}};fix(window.top);}if(_1.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(!_1._hasResource["dijit._base.popup"]){_1._hasResource["dijit._base.popup"]=true;_1.provide("dijit._base.popup");_2.popup=new function(){var _84=[],_85=1000,_86=1;this.prepare=function(_87){_1.body().appendChild(_87);var s=_87.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_89){var _8a=_89.popup,_8b=_89.orient||{"BL":"TL","TL":"BL"},_8c=_89.around,id=(_89.around&&_89.around.id)?(_89.around.id+"_dropdown"):("popup_"+_86++);var _8e=_1.doc.createElement("div");_2.setWaiRole(_8e,"presentation");_8e.id=id;_8e.className="dijitPopup";_8e.style.zIndex=_85+_84.length;_8e.style.visibility="hidden";if(_89.parent){_8e.dijitPopupParent=_89.parent.id;}_1.body().appendChild(_8e);var s=_8a.domNode.style;s.display="";s.visibility="";s.position="";_8e.appendChild(_8a.domNode);var _90=new _2.BackgroundIframe(_8e);var _91=_8c?_2.placeOnScreenAroundElement(_8e,_8c,_8b,_8a.orient?_1.hitch(_8a,"orient"):null):_2.placeOnScreen(_8e,_89,_8b=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_8e.style.visibility="visible";var _92=[];var _93=function(){for(var pi=_84.length-1;pi>0&&_84[pi].parent===_84[pi-1].widget;pi--){}return _84[pi];};_92.push(_1.connect(_8e,"onkeypress",this,function(evt){if(evt.keyCode==_1.keys.ESCAPE&&_89.onCancel){_1.stopEvent(evt);_89.onCancel();}else{if(evt.keyCode==_1.keys.TAB){_1.stopEvent(evt);var _96=_93();if(_96&&_96.onCancel){_96.onCancel();}}}}));if(_8a.onCancel){_92.push(_1.connect(_8a,"onCancel",null,_89.onCancel));}_92.push(_1.connect(_8a,_8a.onExecute?"onExecute":"onChange",null,function(){var _97=_93();if(_97&&_97.onExecute){_97.onExecute();}}));_84.push({wrapper:_8e,iframe:_90,widget:_8a,parent:_89.parent,onExecute:_89.onExecute,onCancel:_89.onCancel,onClose:_89.onClose,handlers:_92});if(_8a.onOpen){_8a.onOpen(_91);}return _91;};this.close=function(_98){while(_1.some(_84,function(_99){return _99.widget==_98;})){var top=_84.pop(),_9b=top.wrapper,_9c=top.iframe,_9d=top.widget,_9e=top.onClose;if(_9d.onClose){_9d.onClose();}_1.forEach(top.handlers,_1.disconnect);if(!_9d||!_9d.domNode){return;}this.prepare(_9d.domNode);_9c.destroy();_1._destroyElement(_9b);if(_9e){_9e();}}};}();_2._frames=new function(){var _9f=[];this.pop=function(){var _a0;if(_9f.length){_a0=_9f.pop();_a0.style.display="";}else{if(_1.isIE){var _a1="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_a0=_1.doc.createElement(_a1);}else{_a0=_1.doc.createElement("iframe");_a0.src="javascript:\"\"";_a0.className="dijitBackgroundIframe";}_a0.tabIndex=-1;_1.body().appendChild(_a0);}return _a0;};this.push=function(_a2){_a2.style.display="";if(_1.isIE){_a2.style.removeExpression("width");_a2.style.removeExpression("height");}_9f.push(_a2);};}();if(_1.isIE&&_1.isIE<7){_1.addOnLoad(function(){var f=_2._frames;_1.forEach([f.pop()],f.push);});}_2.BackgroundIframe=function(_a4){if(!_a4.id){throw new Error("no id");}if((_1.isIE&&_1.isIE<7)||(_1.isFF&&_1.isFF<3&&_1.hasClass(_1.body(),"dijit_a11y"))){var _a5=_2._frames.pop();_a4.appendChild(_a5);if(_1.isIE){_a5.style.setExpression("width",_1._scopeName+".doc.getElementById('"+_a4.id+"').offsetWidth");_a5.style.setExpression("height",_1._scopeName+".doc.getElementById('"+_a4.id+"').offsetHeight");}this.iframe=_a5;}};_1.extend(_2.BackgroundIframe,{destroy:function(){if(this.iframe){_2._frames.push(this.iframe);delete this.iframe;}}});}if(!_1._hasResource["dijit._base.scroll"]){_1._hasResource["dijit._base.scroll"]=true;_1.provide("dijit._base.scroll");_2.scrollIntoView=function(_a6){if(_1.isMozilla){_a6.scrollIntoView(false);}else{var _a7=_a6.parentNode;var _a8=_a7.scrollTop+_1.marginBox(_a7).h;var _a9=_a6.offsetTop+_1.marginBox(_a6).h;if(_a8<_a9){_a7.scrollTop+=(_a9-_a8);}else{if(_a7.scrollTop>_a6.offsetTop){_a7.scrollTop-=(_a7.scrollTop-_a6.offsetTop);}}}};}if(!_1._hasResource["dijit._base.sniff"]){_1._hasResource["dijit._base.sniff"]=true;_1.provide("dijit._base.sniff");(function(){var d=_1;var ie=d.isIE;var _ac=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _af={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_ac,dj_opera8:maj(_ac)==8,dj_opera9:maj(_ac)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2};for(var p in _af){if(_af[p]){var _b1=_1.doc.documentElement;if(_b1.className){_b1.className+=" "+p;}else{_b1.className=p;}}}})();}if(!_1._hasResource["dijit._base.bidi"]){_1._hasResource["dijit._base.bidi"]=true;_1.provide("dijit._base.bidi");_1.addOnLoad(function(){if(!_1._isBodyLtr()){_1.addClass(_1.body(),"dijitRtl");}});}if(!_1._hasResource["dijit._base.typematic"]){_1._hasResource["dijit._base.typematic"]=true;_1.provide("dijit._base.typematic");_2.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(_1.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_b3,_b4,_b5,obj,_b7,_b8){if(obj!=this._obj){this.stop();this._initialDelay=_b8||500;this._subsequentDelay=_b7||0.9;this._obj=obj;this._evt=evt;this._node=_b4;this._currentTimeout=-1;this._count=-1;this._callback=_1.hitch(_b3,_b5);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(_b9,_ba,_bb,_bc,_bd,_be){return [_1.connect(_b9,"onkeypress",this,function(evt){if(evt.keyCode==_ba.keyCode&&(!_ba.charCode||_ba.charCode==evt.charCode)&&(_ba.ctrlKey===undefined||_ba.ctrlKey==evt.ctrlKey)&&(_ba.altKey===undefined||_ba.altKey==evt.ctrlKey)&&(_ba.shiftKey===undefined||_ba.shiftKey==evt.ctrlKey)){_1.stopEvent(evt);_2.typematic.trigger(_ba,_bb,_b9,_bc,_ba,_bd,_be);}else{if(_2.typematic._obj==_ba){_2.typematic.stop();}}}),_1.connect(_b9,"onkeyup",this,function(evt){if(_2.typematic._obj==_ba){_2.typematic.stop();}})];},addMouseListener:function(_c1,_c2,_c3,_c4,_c5){var dc=_1.connect;return [dc(_c1,"mousedown",this,function(evt){_1.stopEvent(evt);_2.typematic.trigger(evt,_c2,_c1,_c3,_c1,_c4,_c5);}),dc(_c1,"mouseup",this,function(evt){_1.stopEvent(evt);_2.typematic.stop();}),dc(_c1,"mouseout",this,function(evt){_1.stopEvent(evt);_2.typematic.stop();}),dc(_c1,"mousemove",this,function(evt){_1.stopEvent(evt);}),dc(_c1,"dblclick",this,function(evt){_1.stopEvent(evt);if(_1.isIE){_2.typematic.trigger(evt,_c2,_c1,_c3,_c1,_c4,_c5);setTimeout(_1.hitch(this,_2.typematic.stop),50);}})];},addListener:function(_cc,_cd,_ce,_cf,_d0,_d1,_d2){return this.addKeyListener(_cd,_ce,_cf,_d0,_d1,_d2).concat(this.addMouseListener(_cc,_cf,_d0,_d1,_d2));}};}if(!_1._hasResource["dijit._base.wai"]){_1._hasResource["dijit._base.wai"]=true;_1.provide("dijit._base.wai");_2.wai={onload:function(){var div=_1.doc.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+_1.moduleUrl("dojo","resources/blank.gif")+"\");";_1.body().appendChild(div);var cs=_1.getComputedStyle(div);if(cs){var _d5=cs.backgroundImage;var _d6=(cs.borderTopColor==cs.borderRightColor)||(_d5!=null&&(_d5=="none"||_d5=="url(invalid-url:)"));_1[_d6?"addClass":"removeClass"](_1.body(),"dijit_a11y");_1.body().removeChild(div);}}};if(_1.isIE||_1.isMoz){_1._loaders.unshift(_2.wai.onload);}_1.mixin(_2,{hasWaiRole:function(_d7){return _d7.hasAttribute?_d7.hasAttribute("role"):!!_d7.getAttribute("role");},getWaiRole:function(_d8){var _d9=_d8.getAttribute("role");if(_d9){var _da=_d9.indexOf(":");return _da==-1?_d9:_d9.substring(_da+1);}else{return "";}},setWaiRole:function(_db,_dc){_db.setAttribute("role",(_1.isFF&&_1.isFF<3)?"wairole:"+_dc:_dc);},removeWaiRole:function(_dd){_dd.removeAttribute("role");},hasWaiState:function(_de,_df){if(_1.isFF&&_1.isFF<3){return _de.hasAttributeNS("http://www.w3.org/2005/07/aaa",_df);}else{return _de.hasAttribute?_de.hasAttribute("aria-"+_df):!!_de.getAttribute("aria-"+_df);}},getWaiState:function(_e0,_e1){if(_1.isFF&&_1.isFF<3){return _e0.getAttributeNS("http://www.w3.org/2005/07/aaa",_e1);}else{var _e2=_e0.getAttribute("aria-"+_e1);return _e2?_e2:"";}},setWaiState:function(_e3,_e4,_e5){if(_1.isFF&&_1.isFF<3){_e3.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_e4,_e5);}else{_e3.setAttribute("aria-"+_e4,_e5);}},removeWaiState:function(_e6,_e7){if(_1.isFF&&_1.isFF<3){_e6.removeAttributeNS("http://www.w3.org/2005/07/aaa",_e7);}else{_e6.removeAttribute("aria-"+_e7);}}});}if(!_1._hasResource["dijit._base"]){_1._hasResource["dijit._base"]=true;_1.provide("dijit._base");if(_1.isSafari){_1.connect(window,"load",function(){window.resizeBy(1,0);setTimeout(function(){window.resizeBy(-1,0);},10);});}}if(!_1._hasResource["dojo.date.stamp"]){_1._hasResource["dojo.date.stamp"]=true;_1.provide("dojo.date.stamp");_1.date.stamp.fromISOString=function(_e8,_e9){if(!_1.date.stamp._isoRegExp){_1.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _ea=_1.date.stamp._isoRegExp.exec(_e8);var _eb=null;if(_ea){_ea.shift();if(_ea[1]){_ea[1]--;}if(_ea[6]){_ea[6]*=1000;}if(_e9){_e9=new Date(_e9);_1.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_ec){return _e9["get"+_ec]();}).forEach(function(_ed,_ee){if(_ea[_ee]===undefined){_ea[_ee]=_ed;}});}_eb=new Date(_ea[0]||1970,_ea[1]||0,_ea[2]||1,_ea[3]||0,_ea[4]||0,_ea[5]||0,_ea[6]||0);var _ef=0;var _f0=_ea[7]&&_ea[7].charAt(0);if(_f0!="Z"){_ef=((_ea[8]||0)*60)+(Number(_ea[9])||0);if(_f0!="-"){_ef*=-1;}}if(_f0){_ef-=_eb.getTimezoneOffset();}if(_ef){_eb.setTime(_eb.getTime()+_ef*60000);}}return _eb;};_1.date.stamp.toISOString=function(_f1,_f2){var _=function(n){return (n<10)?"0"+n:n;};_f2=_f2||{};var _f5=[];var _f6=_f2.zulu?"getUTC":"get";var _f7="";if(_f2.selector!="time"){var _f8=_f1[_f6+"FullYear"]();_f7=["0000".substr((_f8+"").length)+_f8,_(_f1[_f6+"Month"]()+1),_(_f1[_f6+"Date"]())].join("-");}_f5.push(_f7);if(_f2.selector!="date"){var _f9=[_(_f1[_f6+"Hours"]()),_(_f1[_f6+"Minutes"]()),_(_f1[_f6+"Seconds"]())].join(":");var _fa=_f1[_f6+"Milliseconds"]();if(_f2.milliseconds){_f9+="."+(_fa<100?"0":"")+_(_fa);}if(_f2.zulu){_f9+="Z";}else{if(_f2.selector!="time"){var _fb=_f1.getTimezoneOffset();var _fc=Math.abs(_fb);_f9+=(_fb>0?"-":"+")+_(Math.floor(_fc/60))+":"+_(_fc%60);}}_f5.push(_f9);}return _f5.join("T");};}if(!_1._hasResource["dojo.parser"]){_1._hasResource["dojo.parser"]=true;_1.provide("dojo.parser");_1.parser=new function(){var d=_1;var _fe=d._scopeName+"Type";var qry="["+_fe+"]";function val2type(_100){if(d.isString(_100)){return "string";}if(typeof _100=="number"){return "number";}if(typeof _100=="boolean"){return "boolean";}if(d.isFunction(_100)){return "function";}if(d.isArray(_100)){return "array";}if(_100 instanceof Date){return "date";}if(_100 instanceof d._Url){return "url";}return "object";};function str2obj(_101,type){switch(type){case "string":return _101;case "number":return _101.length?Number(_101):NaN;case "boolean":return typeof _101=="boolean"?_101:!(_101.toLowerCase()=="false");case "function":if(d.isFunction(_101)){_101=_101.toString();_101=d.trim(_101.substring(_101.indexOf("{")+1,_101.length-1));}try{if(_101.search(/[^\w\.]+/i)!=-1){_101=d.parser._nameAnonFunc(new Function(_101),this);}return d.getObject(_101,false);}catch(e){return new Function();}case "array":return _101.split(/\s*,\s*/);case "date":switch(_101){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_101);}case "url":return d.baseUrl+_101;default:return d.fromJson(_101);}};var _103={};function getClassInfo(_104){if(!_103[_104]){var cls=d.getObject(_104);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_104+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _106=cls.prototype;var _107={};for(var name in _106){if(name.charAt(0)=="_"){continue;}var _109=_106[name];_107[name]=val2type(_109);}_103[_104]={cls:cls,params:_107};}return _103[_104];};this._functionFromScript=function(_10a){var _10b="";var _10c="";var _10d=_10a.getAttribute("args");if(_10d){d.forEach(_10d.split(/\s*,\s*/),function(part,idx){_10b+="var "+part+" = arguments["+idx+"]; ";});}var _110=_10a.getAttribute("with");if(_110&&_110.length){d.forEach(_110.split(/\s*,\s*/),function(part){_10b+="with("+part+"){";_10c+="}";});}return new Function(_10b+_10a.innerHTML+_10c);};this.instantiate=function(_112){var _113=[];d.forEach(_112,function(node){if(!node){return;}var type=node.getAttribute(_fe);if((!type)||(!type.length)){return;}var _116=getClassInfo(type);var _117=_116.cls;var ps=_117._noScript||_117.prototype._noScript;var _119={};var _11a=node.attributes;for(var name in _116.params){var item=_11a.getNamedItem(name);if(!item||(!item.specified&&(!_1.isIE||name.toLowerCase()!="value"))){continue;}var _11d=item.value;switch(name){case "class":_11d=node.className;break;case "style":_11d=node.style&&node.style.cssText;}var _11e=_116.params[name];_119[name]=str2obj(_11d,_11e);}if(!ps){var _11f=[],_120=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_121){var _122=_121.getAttribute("event"),type=_121.getAttribute("type"),nf=d.parser._functionFromScript(_121);if(_122){if(type=="dojo/connect"){_11f.push({event:_122,func:nf});}else{_119[_122]=nf;}}else{_120.push(nf);}});}var _124=_117["markupFactory"];if(!_124&&_117["prototype"]){_124=_117.prototype["markupFactory"];}var _125=_124?_124(_119,node,_117):new _117(_119,node);_113.push(_125);var _126=node.getAttribute("jsId");if(_126){d.setObject(_126,_125);}if(!ps){d.forEach(_11f,function(_127){d.connect(_125,_127.event,null,_127.func);});d.forEach(_120,function(func){func.call(_125);});}});d.forEach(_113,function(_129){if(_129&&_129.startup&&!_129._started&&(!_129.getParent||!_129.getParent())){_129.startup();}});return _113;};this.parse=function(_12a){var list=d.query(qry,_12a);var _12c=this.instantiate(list);return _12c;};}();(function(){var _12d=function(){if(_1.config["parseOnLoad"]==true){_1.parser.parse();}};if(_1.exists("dijit.wai.onload")&&(_2.wai.onload===_1._loaders[0])){_1._loaders.splice(1,0,_12d);}else{_1._loaders.unshift(_12d);}})();_1.parser._anonCtr=0;_1.parser._anon={};_1.parser._nameAnonFunc=function(_12e,_12f){var jpn="$joinpoint";var nso=(_12f||_1.parser._anon);if(_1.isIE){var cn=_12e["__dojoNameCache"];if(cn&&nso[cn]===_12e){return _12e["__dojoNameCache"];}}var ret="__"+_1.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+_1.parser._anonCtr++;}nso[ret]=_12e;return ret;};}if(!_1._hasResource["dijit._Widget"]){_1._hasResource["dijit._Widget"]=true;_1.provide("dijit._Widget");_1.require("dijit._base");_1.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_134,_135){this.create(_134,_135);},create:function(_136,_137){this.srcNodeRef=_1.byId(_137);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_136){this.params=_136;_1.mixin(this,_136);}this.postMixInProperties();if(!this.id){this.id=_2.getUniqueId(this.declaredClass.replace(/\./g,"_"));}_2.registry.add(this);this.buildRendering();if(this.domNode){for(var attr in this.attributeMap){var _139=this[attr];if(typeof _139!="object"&&((_139!==""&&_139!==false)||(_136&&_136[attr]))){this.setAttribute(attr,_139);}}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||_1.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_13a){this.destroyDescendants();this.destroy();},destroy:function(_13b){this.uninitialize();_1.forEach(this._connects,function(_13c){_1.forEach(_13c,_1.disconnect);});_1.forEach(this._supportingWidgets||[],function(w){w.destroy();});this.destroyRendering(_13b);_2.registry.remove(this.id);},destroyRendering:function(_13e){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){_1._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){_1._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){_1.forEach(this.getDescendants(),function(_13f){_13f.destroy();});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},setAttribute:function(attr,_142){var _143=this[this.attributeMap[attr]||"domNode"];this[attr]=_142;switch(attr){case "class":_1.addClass(_143,_142);break;case "style":if(_143.style.cssText){_143.style.cssText+="; "+_142;}else{_143.style.cssText=_142;}break;default:if(/^on[A-Z]/.test(attr)){attr=attr.toLowerCase();}if(typeof _142=="function"){_142=_1.hitch(this,_142);}_1.attr(_143,attr,_142);}},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=_1.query("[widgetId]",this.containerNode);return list.map(_2.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_146,_147){var _148=[];if(_146=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){_148.push(_1.connect(obj,"onkeydown",this,function(e){if(e.keyCode==_1.keys.ENTER){return (_1.isString(_147))?this[_147](e):_147.call(this,e);}else{if(e.keyCode==_1.keys.SPACE){_1.stopEvent(e);}}}));_148.push(_1.connect(obj,"onkeyup",this,function(e){if(e.keyCode==_1.keys.SPACE){return _1.isString(_147)?this[_147](e):_147.call(this,e);}}));}_146="onclick";}_148.push(_1.connect(obj,_146,this,_147));this._connects.push(_148);return _148;},disconnect:function(_14b){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_14b){_1.forEach(_14b,_1.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(!("_ltr" in this)){this._ltr=_1.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(_1.style(this.domNode,"display")!="none");}});}if(!_1._hasResource["dojo.string"]){_1._hasResource["dojo.string"]=true;_1.provide("dojo.string");_1.string.pad=function(text,size,ch,end){var out=String(text);if(!ch){ch="0";}while(out.length<size){if(end){out+=ch;}else{out=ch+out;}}return out;};_1.string.substitute=function(_152,map,_154,_155){return _152.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_156,key,_158){var _159=_1.getObject(key,false,map);if(_158){_159=_1.getObject(_158,false,_155)(_159);}if(_154){_159=_154(_159,key);}return _159.toString();});};_1.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!_1._hasResource["dijit._Templated"]){_1._hasResource["dijit._Templated"]=true;_1.provide("dijit._Templated");_1.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,_stringRepl:function(tmpl){var _15d=this.declaredClass,_15e=this;return _1.string.substitute(tmpl,this,function(_15f,key){if(key.charAt(0)=="!"){_15f=_15e[key.substr(1)];}if(typeof _15f=="undefined"){throw new Error(_15d+" template:"+key);}if(!_15f){return "";}return key.charAt(0)=="!"?_15f:_15f.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _161=_2._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(_1.isString(_161)){node=_2._Templated._createNodesFromText(this._stringRepl(_161))[0];}else{node=_161.cloneNode(true);}this._attachTemplateNodes(node);var _163=this.srcNodeRef;if(_163&&_163.parentNode){_163.parentNode.replaceChild(node,_163);}this.domNode=node;if(this.widgetsInTemplate){var cw=this._supportingWidgets=_1.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_163);},_fillContent:function(_167){var dest=this.containerNode;if(_167&&dest){while(_167.hasChildNodes()){dest.appendChild(_167.firstChild);}}},_attachTemplateNodes:function(_169,_16a){_16a=_16a||function(n,p){return n.getAttribute(p);};var _16d=_1.isArray(_169)?_169:(_169.all||_169.getElementsByTagName("*"));var x=_1.isArray(_169)?0:-1;for(;x<_16d.length;x++){var _16f=(x==-1)?_169:_16d[x];if(this.widgetsInTemplate&&_16a(_16f,"dojoType")){continue;}var _170=_16a(_16f,"dojoAttachPoint");if(_170){var _171,_172=_170.split(/\s*,\s*/);while((_171=_172.shift())){if(_1.isArray(this[_171])){this[_171].push(_16f);}else{this[_171]=_16f;}}}var _173=_16a(_16f,"dojoAttachEvent");if(_173){var _174,_175=_173.split(/\s*,\s*/);var trim=_1.trim;while((_174=_175.shift())){if(_174){var _177=null;if(_174.indexOf(":")!=-1){var _178=_174.split(":");_174=trim(_178[0]);_177=trim(_178[1]);}else{_174=trim(_174);}if(!_177){_177=_174;}this.connect(_16f,_174,_177);}}}var role=_16a(_16f,"waiRole");if(role){_2.setWaiRole(_16f,role);}var _17a=_16a(_16f,"waiState");if(_17a){_1.forEach(_17a.split(/\s*,\s*/),function(_17b){if(_17b.indexOf("-")!=-1){var pair=_17b.split("-");_2.setWaiState(_16f,pair[0],pair[1]);}});}}}});_2._Templated._templateCache={};_2._Templated.getCachedTemplate=function(_17d,_17e,_17f){var _180=_2._Templated._templateCache;var key=_17e||_17d;var _182=_180[key];if(_182){return _182;}if(!_17e){_17e=_2._Templated._sanitizeTemplateString(_1._getText(_17d));}_17e=_1.string.trim(_17e);if(_17f||_17e.match(/\$\{([^\}]+)\}/g)){return (_180[key]=_17e);}else{return (_180[key]=_2._Templated._createNodesFromText(_17e)[0]);}};_2._Templated._sanitizeTemplateString=function(_183){if(_183){_183=_183.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _184=_183.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_184){_183=_184[1];}}else{_183="";}return _183;};if(_1.isIE){_1.addOnUnload(function(){var _185=_2._Templated._templateCache;for(var key in _185){var _187=_185[key];if(!isNaN(_187.nodeType)){_1._destroyElement(_187);}delete _185[key];}});}(function(){var _188={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;_2._Templated._createNodesFromText=function(text){if(!tn){tn=_1.doc.createElement("div");tn.style.display="none";_1.body().appendChild(tn);}var _18b="none";var _18c=text.replace(/^\s+/,"");for(var type in _188){var map=_188[type];if(map.re.test(_18c)){_18b=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_18b];var _190=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _191=[];while(_190.firstChild){_191.push(_190.removeChild(_190.firstChild));}tn.innerHTML="";return _191;};})();_1.extend(_2._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!_1._hasResource["dijit._Container"]){_1._hasResource["dijit._Container"]=true;_1.provide("dijit._Container");_1.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 _194=_2.byId(id);return _194.isContainer?_194:null;}}return null;},_getSibling:function(_195){var node=this.domNode;do{node=node[_195+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return _2.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});_1.declare("dijit._Container",null,{isContainer:true,addChild:function(_198,_199){if(_199===undefined){_199="last";}var _19a=this.containerNode||this.domNode;if(_199&&typeof _199=="number"){var _19b=_1.query("> [widgetid]",_19a);if(_19b&&_19b.length>=_199){_19a=_19b[_199-1];_199="after";}}_1.place(_198.domNode,_19a,_199);if(this._started&&!_198._started){_198.startup();}},removeChild:function(_19c){var node=_19c.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 _1.query("> [widgetId]",this.containerNode||this.domNode).map(_2.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_1a1,dir){var node=_1a1.domNode;var _1a4=(dir>0?"nextSibling":"previousSibling");do{node=node[_1a4];}while(node&&(node.nodeType!=1||!_2.byNode(node)));return node?_2.byNode(node):null;}});_1.declare("dijit._KeyNavContainer",[_2._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_1a5,_1a6){var _1a7=this._keyNavCodes={};var prev=_1.hitch(this,this.focusPrev);var next=_1.hitch(this,this.focusNext);_1.forEach(_1a5,function(code){_1a7[code]=prev;});_1.forEach(_1a6,function(code){_1a7[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){_1.forEach(this.getChildren(),_1.hitch(this,"_startupChild"));},addChild:function(_1ac,_1ad){_2._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_1ac);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _1ae=this._getNextFocusableChild(this.focusedChild,1);if(_1ae.getFocalNodes){this.focusChild(_1ae,_1ae.getFocalNodes()[0]);}else{this.focusChild(_1ae);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _1af=this._getNextFocusableChild(this.focusedChild,-1);if(_1af.getFocalNodes){var _1b0=_1af.getFocalNodes();this.focusChild(_1af,_1b0[_1b0.length-1]);}else{this.focusChild(_1af);}},focusChild:function(_1b1,node){if(_1b1){if(this.focusedChild&&_1b1!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_1b1;if(node&&_1b1.focusFocalNode){_1b1.focusFocalNode(node);}else{_1b1.focus();}}},_startupChild:function(_1b3){if(_1b3.getFocalNodes){_1.forEach(_1b3.getFocalNodes(),function(node){_1.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_1b3.focusNode||_1b3.domNode;if(_1b3.isFocusable()){_1.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();_1.stopEvent(evt);}},_onNodeFocus:function(evt){_1.attr(this.domNode,"tabindex",-1);var _1bb=_2.getEnclosingWidget(evt.target);if(_1bb&&_1bb.isFocusable()){this.focusedChild=_1bb;}_1.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){_1.attr(this.domNode,"tabindex",this.tabIndex);}_1.stopEvent(evt);},_onChildBlur:function(_1bd){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_1be,dir){if(_1be){_1be=this._getSiblingOfChild(_1be,dir);}var _1c0=this.getChildren();for(var i=0;i<_1c0.length;i++){if(!_1be){_1be=_1c0[(dir>0)?0:(_1c0.length-1)];}if(_1be.isFocusable()){return _1be;}_1be=this._getSiblingOfChild(_1be,dir);}return null;}});}if(!_1._hasResource["dijit.layout._LayoutWidget"]){_1._hasResource["dijit.layout._LayoutWidget"]=true;_1.provide("dijit.layout._LayoutWidget");_1.declare("dijit.layout._LayoutWidget",[_2._Widget,_2._Container,_2._Contained],{isLayoutContainer:true,postCreate:function(){_1.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}_1.forEach(this.getChildren(),function(_1c2){_1c2.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}this.inherited(arguments);},resize:function(args){var node=this.domNode;if(args){_1.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=_1.mixin(_1.marginBox(node),args||{});this._contentBox=_2.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});_2.layout.marginBox2contentBox=function(node,mb){var cs=_1.getComputedStyle(node);var me=_1._getMarginExtents(node,cs);var pb=_1._getPadBorderExtents(node,cs);return {l:_1._toPixelValue(node,cs.paddingLeft),t:_1._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1cb=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1ce,dim){_1ce.resize?_1ce.resize(dim):_1.marginBox(_1ce.domNode,dim);_1.mixin(_1ce,_1.marginBox(_1ce.domNode));_1.mixin(_1ce,dim);};_2.layout.layoutChildren=function(_1d0,dim,_1d2){dim=_1.mixin({},dim);_1.addClass(_1d0,"dijitLayoutContainer");_1d2=_1.filter(_1d2,function(item){return item.layoutAlign!="client";}).concat(_1.filter(_1d2,function(item){return item.layoutAlign=="client";}));_1.forEach(_1d2,function(_1d5){var elm=_1d5.domNode,pos=_1d5.layoutAlign;var _1d8=elm.style;_1d8.left=dim.l+"px";_1d8.top=dim.t+"px";_1d8.bottom=_1d8.right="auto";_1.addClass(elm,"dijitAlign"+_1cb(pos));if(pos=="top"||pos=="bottom"){size(_1d5,{w:dim.w});dim.h-=_1d5.h;if(pos=="top"){dim.t+=_1d5.h;}else{_1d8.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1d5,{h:dim.h});dim.w-=_1d5.w;if(pos=="left"){dim.l+=_1d5.w;}else{_1d8.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1d5,dim);}}}});};})();}if(!_1._hasResource["dijit.form._FormWidget"]){_1._hasResource["dijit.form._FormWidget"]=true;_1.provide("dijit.form._FormWidget");_1.declare("dijit.form._FormWidget",[_2._Widget,_2._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:_1.mixin(_1.clone(_2._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),setAttribute:function(attr,_1da){this.inherited(arguments);switch(attr){case "disabled":var _1db=this[this.attributeMap["tabIndex"]||"domNode"];if(_1da){this._hovering=false;this._active=false;_1db.removeAttribute("tabIndex");}else{_1db.setAttribute("tabIndex",this.tabIndex);}_2.setWaiState(this[this.attributeMap["disabled"]||"domNode"],"disabled",_1da);this._setStateClass();}},setDisabled:function(_1dc){_1.deprecated("setDisabled("+_1dc+") is deprecated. Use setAttribute('disabled',"+_1dc+") instead.","","2.0");this.setAttribute("disabled",_1dc);},_onMouse:function(_1dd){var _1de=_1dd.currentTarget;if(_1de&&_1de.getAttribute){this.stateModifier=_1de.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1dd.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 _1df=this.connect(_1.body(),"onmouseup",function(){this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_1df);});if(this.isFocusable()){this.focus();}break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(_1.style(this.domNode,"display")!="none");},focus:function(){setTimeout(_1.hitch(this,_2.focus,this.focusNode),0);},_setStateClass:function(){if(!("staticClass" in this)){this.staticClass=(this.stateNode||this.domNode).className;}var _1e0=[this.baseClass];function multiply(_1e1){_1e0=_1e0.concat(_1.map(_1e0,function(c){return c+_1e1;}),"dijit"+_1e1);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}(this.stateNode||this.domNode).className=this.staticClass+" "+_1e0.join(" ");},onChange:function(_1e3){},_onChangeMonitor:"value",_onChangeActive:false,_handleOnChange:function(_1e4,_1e5){this._lastValue=_1e4;if(this._lastValueReported==undefined&&(_1e5===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1e4;}if((this.intermediateChanges||_1e5||_1e5===undefined)&&((_1e4&&_1e4.toString)?_1e4.toString():_1e4)!==((this._lastValueReported&&this._lastValueReported.toString)?this._lastValueReported.toString():this._lastValueReported)){this._lastValueReported=_1e4;if(this._onChangeActive){this.onChange(_1e4);}}},reset:function(){this._hasBeenBlurred=false;if(this.setValue&&!this._getValueDeprecated){this.setValue(this._resetValue,true);}else{if(this._onChangeMonitor){this.setAttribute(this._onChangeMonitor,(this._resetValue!==undefined&&this._resetValue!==null)?this._resetValue:"");}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_1e6){_1.deprecated("dijit.form._FormWidget:setValue("+_1e6+") is deprecated.  Use setAttribute('value',"+_1e6+") instead.","","2.0");this.setAttribute("value",_1e6);},_getValueDeprecated:true,getValue:function(){_1.deprecated("dijit.form._FormWidget:getValue() is deprecated.  Use widget.value instead.","","2.0");return this.value;},_layoutHack:function(){if(_1.isFF==2){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(_1.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});_1.declare("dijit.form._FormValueWidget",_2.form._FormWidget,{attributeMap:_1.mixin(_1.clone(_2.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){this.setValue(this.value,null);},setValue:function(_1e9,_1ea){this.value=_1e9;this._handleOnChange(_1e9,_1ea);},_getValueDeprecated:false,getValue:function(){return this._lastValue;},undo:function(){this.setValue(this._lastValueReported,false);},_valueChanged:function(){var v=this.getValue();var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyPress:function(e){if(e.keyCode==_1.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){if(this._valueChanged()){this.undo();_1.stopEvent(e);return false;}}return true;}});}if(!_1._hasResource["dijit.dijit"]){_1._hasResource["dijit.dijit"]=true;_1.provide("dijit.dijit");}}});

