/*
	Copyright (c) 2004-2007, 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.
*/

if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(_1){var _2=_1.shift();var _3=_2;dojo.forEach(_1,function(_4){dojo.connect(_3,"onEnd",_4,"play");_3=_4;});return _2;};dojo.fx.combine=function(_5){var _6=new dojo._Animation({curve:[0,1]});if(!_5.length){return _6;}_6.duration=_5[0].duration;dojo.forEach(_5,function(_7){dojo.forEach(["play","pause","stop"],function(e){if(_7[e]){dojo.connect(_6,e,_7,e);}});});return _6;};dojo.declare("dojo.fx.Toggler",null,{constructor:function(_9){var _t=this;dojo.mixin(_t,_9);_t.node=_9.node;_t._showArgs=dojo.mixin({},_9);_t._showArgs.node=_t.node;_t._showArgs.duration=_t.showDuration;_t.showAnim=_t.showFunc(_t._showArgs);_t._hideArgs=dojo.mixin({},_9);_t._hideArgs.node=_t.node;_t._hideArgs.duration=_t.hideDuration;_t.hideAnim=_t.hideFunc(_t._hideArgs);dojo.connect(_t.showAnim,"beforeBegin",dojo.hitch(_t.hideAnim,"stop",true));dojo.connect(_t.hideAnim,"beforeBegin",dojo.hitch(_t.showAnim,"stop",true));},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,show:function(_b){return this.showAnim.play(_b||0);},hide:function(_c){return this.hideAnim.play(_c||0);}});dojo.fx.wipeIn=function(_d){_d.node=dojo.byId(_d.node);var _e=_d.node,s=_e.style;var _10=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){s.overflow="hidden";if(s.visibility=="hidden"||s.display=="none"){s.height="1px";s.display="";s.visibility="";return 1;}else{var _11=dojo.style(_e,"height");return Math.max(_11,1);}},end:function(){return _e.scrollHeight;}}}},_d));dojo.connect(_10,"onEnd",function(){s.height="auto";});return _10;};dojo.fx.wipeOut=function(_12){var _13=_12.node=dojo.byId(_12.node);var s=_13.style;var _15=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},_12));dojo.connect(_15,"beforeBegin",function(){s.overflow="hidden";s.display="";});dojo.connect(_15,"onEnd",function(){s.height="auto";s.display="none";});return _15;};dojo.fx.slideTo=function(_16){var _17=(_16.node=dojo.byId(_16.node));var top=null;var _19=null;var _1a=(function(n){return function(){var cs=dojo.getComputedStyle(n);var pos=cs.position;top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);_19=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);if(pos!="absolute"&&pos!="relative"){var ret=dojo.coords(n,true);top=ret.y;_19=ret.x;n.style.position="absolute";n.style.top=top+"px";n.style.left=_19+"px";}};})(_17);_1a();var _1f=dojo.animateProperty(dojo.mixin({properties:{top:{end:_16.top||0},left:{end:_16.left||0}}},_16));dojo.connect(_1f,"beforeBegin",_1f,_1a);return _1f;};}if(!dojo._hasResource["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _20=dojo.global;var _21=dojo.doc;if(_21.selection){return !_21.selection.createRange().text;}else{if(_20.getSelection){var _22=_20.getSelection();if(dojo.isString(_22)){return !_22;}else{return _22.isCollapsed||!_22.toString();}}}},getBookmark:function(){var _23,_24=dojo.doc.selection;if(_24){var _25=_24.createRange();if(_24.type.toUpperCase()=="CONTROL"){_23=_25.length?dojo._toArray(_25):null;}else{_23=_25.getBookmark();}}else{if(dojo.global.getSelection){_24=dojo.global.getSelection();if(_24){var _25=_24.getRangeAt(0);_23=_25.cloneRange();}}else{console.debug("No idea how to store the current selection for this browser!");}}return _23;},moveToBookmark:function(_26){var _27=dojo.doc;if(_27.selection){var _28;if(dojo.isArray(_26)){_28=_27.body.createControlRange();dojo.forEach(_26,_28.addElement);}else{_28=_27.selection.createRange();_28.moveToBookmark(_26);}_28.select();}else{var _29=dojo.global.getSelection&&dojo.global.getSelection();if(_29&&_29.removeAllRanges){_29.removeAllRanges();_29.addRange(_26);}else{console.debug("No idea how to restore selection for this browser!");}}},getFocus:function(_2a,_2b){return {node:_2a&&dojo.isDescendant(dijit._curFocus,_2a.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_2b||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_2b||dojo.global,dijit.getBookmark):null,openedForWindow:_2b};},focus:function(_2c){if(!_2c){return;}var _2d="node" in _2c?_2c.node:_2c,_2e=_2c.bookmark,_2f=_2c.openedForWindow;if(_2d){var _30=(_2d.tagName.toLowerCase()=="iframe")?_2d.contentWindow:_2d;if(_30&&_30.focus){try{_30.focus();}catch(e){}}dijit._onFocusNode(_2d);}if(_2e&&dojo.withGlobal(_2f||dojo.global,dijit.isCollapsed)){if(_2f){_2f.focus();}try{dojo.withGlobal(_2f||dojo.global,moveToBookmark,null,[_2e]);}catch(e){}}},_activeStack:[],registerWin:function(_31){if(!_31){_31=window;}dojo.connect(_31.document,"onmousedown",null,function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _33=_31.document.body||_31.document.getElementsByTagName("body")[0];if(_33){if(dojo.isIE){_33.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_33.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_33.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_33.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_33=null;},_onBlurNode:function(_38){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;var w=dijit.getEnclosingWidget(_38);if(w&&w._setStateClass){w._focused=false;w._setStateClass();}if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);},100);},_onTouchNode:function(_3a){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _3b=[];try{while(_3a){if(_3a.dijitPopupParent){_3a=dijit.byId(_3a.dijitPopupParent).domNode;}else{if(_3a.tagName&&_3a.tagName.toLowerCase()=="body"){if(_3a===dojo.body()){break;}_3a=dojo.query("iframe").filter(function(_3c){return _3c.contentDocument.body===_3a;})[0];}else{var id=_3a.getAttribute&&_3a.getAttribute("widgetId");if(id){_3b.unshift(id);}_3a=_3a.parentNode;}}}}catch(e){}dijit._setStack(_3b);},_onFocusNode:function(_3e){if(_3e&&_3e.tagName&&_3e.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_3e);if(_3e==dijit._curFocus){return;}dijit._prevFocus=dijit._curFocus;dijit._curFocus=_3e;dojo.publish("focusNode",[_3e]);var w=dijit.getEnclosingWidget(_3e);if(w&&w._setStateClass){w._focused=true;w._setStateClass();}},_setStack:function(_40){var _41=dijit._activeStack;dijit._activeStack=_40;for(var _42=0;_42<Math.min(_41.length,_40.length);_42++){if(_41[_42]!=_40[_42]){break;}}for(var i=_41.length-1;i>=_42;i--){var _44=dijit.byId(_41[i]);if(_44){dojo.publish("widgetBlur",[_44]);if(_44._onBlur){_44._onBlur();}}}for(var i=_42;i<_40.length;i++){var _44=dijit.byId(_40[i]);if(_44){dojo.publish("widgetFocus",[_44]);if(_44._onFocus){_44._onFocus();}}}}});dojo.addOnLoad(dijit.registerWin);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};},add:function(_45){if(this._hash[_45.id]){throw new Error("Tried to register widget with id=="+_45.id+" but that id is already registered");}this._hash[_45.id]=_45;},remove:function(id){delete this._hash[id];},forEach:function(_47){for(var id in this._hash){_47(this._hash[id]);}},filter:function(_49){var res=new dijit.WidgetSet();this.forEach(function(_4b){if(_49(_4b)){res.add(_4b);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_4e){return _4e.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_4f){var id;do{id=_4f+"_"+(dijit._widgetTypeCtr[_4f]!==undefined?++dijit._widgetTypeCtr[_4f]:dijit._widgetTypeCtr[_4f]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(_51){_51.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_53){return dijit.registry.byId(_53.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_54){while(_54){if(_54.getAttribute&&_54.getAttribute("widgetId")){return dijit.registry.byId(_54.getAttribute("widgetId"));}_54=_54.parentNode;}return null;};}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _55=dojo.global;var _56=dojo.doc;var w=0,h=0;if(dojo.isMozilla){var _59,_5a,_5b,_5c;if(_56.body.clientWidth>_56.documentElement.clientWidth){_59=_56.documentElement.clientWidth;_5b=_56.body.clientWidth;}else{_5b=_56.documentElement.clientWidth;_59=_56.body.clientWidth;}if(_56.body.clientHeight>_56.documentElement.clientHeight){_5a=_56.documentElement.clientHeight;_5c=_56.body.clientHeight;}else{_5c=_56.documentElement.clientHeight;_5a=_56.body.clientHeight;}w=(_5b>_55.innerWidth)?_59:_5b;h=(_5c>_55.innerHeight)?_5a:_5c;}else{if(!dojo.isOpera&&_55.innerWidth){w=_55.innerWidth;h=_55.innerHeight;}else{if(dojo.isIE&&_56.documentElement&&_56.documentElement.clientHeight){w=_56.documentElement.clientWidth;h=_56.documentElement.clientHeight;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _5d=dojo._docScroll();return {w:w,h:h,l:_5d.x,t:_5d.y};};dijit.placeOnScreen=function(_5e,pos,_60,_61){var _62=dojo.map(_60,function(_63){return {corner:_63,pos:pos};});return dijit._place(_5e,_62);};dijit._place=function(_64,_65,_66){var _67=dijit.getViewport();if(!_64.parentNode||String(_64.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_64);}var _68=null;for(var i=0;i<_65.length;i++){var _6a=_65[i].corner;var pos=_65[i].pos;if(_66){_66(_6a);}var _6c=_64.style.display;var _6d=_64.style.visibility;_64.style.visibility="hidden";_64.style.display="";var mb=dojo.marginBox(_64);_64.style.display=_6c;_64.style.visibility=_6d;var _6f=(_6a.charAt(1)=="L"?pos.x:Math.max(_67.l,pos.x-mb.w)),_70=(_6a.charAt(0)=="T"?pos.y:Math.max(_67.t,pos.y-mb.h)),_71=(_6a.charAt(1)=="L"?Math.min(_67.l+_67.w,_6f+mb.w):pos.x),_72=(_6a.charAt(0)=="T"?Math.min(_67.t+_67.h,_70+mb.h):pos.y),_73=_71-_6f,_74=_72-_70,_75=(mb.w-_73)+(mb.h-_74);if(_68==null||_75<_68.overflow){_68={corner:_6a,aroundCorner:_65[i].aroundCorner,x:_6f,y:_70,w:_73,h:_74,overflow:_75};}if(_75==0){break;}}_64.style.left=_68.x+"px";_64.style.top=_68.y+"px";return _68;};dijit.placeOnScreenAroundElement=function(_76,_77,_78,_79){_77=dojo.byId(_77);var _7a=_77.style.display;_77.style.display="";var _7b=_77.offsetWidth;var _7c=_77.offsetHeight;var _7d=dojo.coords(_77,true);_77.style.display=_7a;var _7e=[];for(var _7f in _78){_7e.push({aroundCorner:_7f,corner:_78[_7f],pos:{x:_7d.x+(_7f.charAt(1)=="L"?0:_7b),y:_7d.y+(_7f.charAt(0)=="T"?0:_7c)}});}return dijit._place(_76,_7e,_79);};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){if(dojo.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(dojo.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(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var _85=[],_86=1000,_87=1;this.open=function(_88){var _89=_88.popup,_8a=_88.orient||{"BL":"TL","TL":"BL"},_8b=_88.around,id=(_88.around&&_88.around.id)?(_88.around.id+"_dropdown"):("popup_"+_87++);var _8d=dojo.doc.createElement("div");_8d.id=id;_8d.className="dijitPopup";_8d.style.zIndex=_86+_85.length;_8d.style.visibility="hidden";if(_88.parent){_8d.dijitPopupParent=_88.parent.id;}dojo.body().appendChild(_8d);_89.domNode.style.display="";_8d.appendChild(_89.domNode);var _8e=new dijit.BackgroundIframe(_8d);var _8f=_8b?dijit.placeOnScreenAroundElement(_8d,_8b,_8a,_89.orient?dojo.hitch(_89,"orient"):null):dijit.placeOnScreen(_8d,_88,_8a=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_8d.style.visibility="visible";var _90=[];function getTopPopup(){for(var pi=_85.length-1;pi>0&&_85[pi].parent===_85[pi-1].widget;pi--){}return _85[pi];};_90.push(dojo.connect(_8d,"onkeypress",this,function(evt){if(evt.keyCode==dojo.keys.ESCAPE&&_88.onCancel){_88.onCancel();}else{if(evt.keyCode==dojo.keys.TAB){dojo.stopEvent(evt);var _93=getTopPopup();if(_93&&_93.onCancel){_93.onCancel();}}}}));if(_89.onCancel){_90.push(dojo.connect(_89,"onCancel",null,_88.onCancel));}_90.push(dojo.connect(_89,_89.onExecute?"onExecute":"onChange",null,function(){var _94=getTopPopup();if(_94&&_94.onExecute){_94.onExecute();}}));_85.push({wrapper:_8d,iframe:_8e,widget:_89,parent:_88.parent,onExecute:_88.onExecute,onCancel:_88.onCancel,onClose:_88.onClose,handlers:_90});if(_89.onOpen){_89.onOpen(_8f);}return _8f;};this.close=function(_95){while(dojo.some(_85,function(_96){return _96.widget==_95;})){var top=_85.pop(),_98=top.wrapper,_99=top.iframe,_9a=top.widget,_9b=top.onClose;if(_9a.onClose){_9a.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_9a||!_9a.domNode){return;}dojo.style(_9a.domNode,"display","none");dojo.body().appendChild(_9a.domNode);_99.destroy();dojo._destroyElement(_98);if(_9b){_9b();}}};}();dijit._frames=new function(){var _9c=[];this.pop=function(){var _9d;if(_9c.length){_9d=_9c.pop();_9d.style.display="";}else{if(dojo.isIE){var _9e="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_9d=dojo.doc.createElement(_9e);}else{var _9d=dojo.doc.createElement("iframe");_9d.src="javascript:\"\"";_9d.className="dijitBackgroundIframe";}_9d.tabIndex=-1;dojo.body().appendChild(_9d);}return _9d;};this.push=function(_9f){_9f.style.display="";if(dojo.isIE){_9f.style.removeExpression("width");_9f.style.removeExpression("height");}_9c.push(_9f);};}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_a1){if(!_a1.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _a2=dijit._frames.pop();_a1.appendChild(_a2);if(dojo.isIE){_a2.style.setExpression("width","document.getElementById('"+_a1.id+"').offsetWidth");_a2.style.setExpression("height","document.getElementById('"+_a1.id+"').offsetHeight");}this.iframe=_a2;}};dojo.extend(dijit.BackgroundIframe,{destroy:function(){if(this.iframe){dijit._frames.push(this.iframe);delete this.iframe;}}});}if(!dojo._hasResource["dijit._base.scroll"]){dojo._hasResource["dijit._base.scroll"]=true;dojo.provide("dijit._base.scroll");dijit.scrollIntoView=function(_a3){if(dojo.isIE){if(dojo.marginBox(_a3.parentNode).h<=_a3.parentNode.scrollHeight){_a3.scrollIntoView(false);}}else{if(dojo.isMozilla){_a3.scrollIntoView(false);}else{var _a4=_a3.parentNode;var _a5=_a4.scrollTop+dojo.marginBox(_a4).h;var _a6=_a3.offsetTop+dojo.marginBox(_a3).h;if(_a5<_a6){_a4.scrollTop+=(_a6-_a5);}else{if(_a4.scrollTop>_a3.offsetTop){_a4.scrollTop-=(_a4.scrollTop-_a3.offsetTop);}}}}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo;var ie=d.isIE;var _a9=d.isOpera;var maj=Math.floor;var _ab={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_a9,dj_opera8:maj(_a9)==8,dj_opera9:maj(_a9)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla};for(var p in _ab){if(_ab[p]){var _ad=dojo.doc.documentElement;if(_ad.className){_ad.className+=" "+p;}else{_ad.className=p;}}}})();}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl");}});}if(!dojo._hasResource["dijit._base.typematic"]){dojo._hasResource["dijit._base.typematic"]=true;dojo.provide("dijit._base.typematic");dijit.typematic={_fireEventAndReload:function(){this._timer=null;this._callback(++this._count,this._node,this._evt);this._currentTimeout=(this._currentTimeout<0)?this._initialDelay:((this._subsequentDelay>1)?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay));this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_af,_b0,_b1,obj,_b3,_b4){if(obj!=this._obj){this.stop();this._initialDelay=_b4||500;this._subsequentDelay=_b3||0.9;this._obj=obj;this._evt=evt;this._node=_b0;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_af,_b1);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(_b5,_b6,_b7,_b8,_b9,_ba){return [dojo.connect(_b5,"onkeypress",this,function(evt){if(evt.keyCode==_b6.keyCode&&(!_b6.charCode||_b6.charCode==evt.charCode)&&(_b6.ctrlKey===undefined||_b6.ctrlKey==evt.ctrlKey)&&(_b6.altKey===undefined||_b6.altKey==evt.ctrlKey)&&(_b6.shiftKey===undefined||_b6.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_b6,_b7,_b5,_b8,_b6,_b9,_ba);}else{if(dijit.typematic._obj==_b6){dijit.typematic.stop();}}}),dojo.connect(_b5,"onkeyup",this,function(evt){if(dijit.typematic._obj==_b6){dijit.typematic.stop();}})];},addMouseListener:function(_bd,_be,_bf,_c0,_c1){var dc=dojo.connect;return [dc(_bd,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_be,_bd,_bf,_bd,_c0,_c1);}),dc(_bd,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_bd,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_bd,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_bd,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_be,_bd,_bf,_bd,_c0,_c1);setTimeout(dijit.typematic.stop,50);}})];},addListener:function(_c8,_c9,_ca,_cb,_cc,_cd,_ce){return this.addKeyListener(_c9,_ca,_cb,_cc,_cd,_ce).concat(this.addMouseListener(_c8,_cb,_cc,_cd,_ce));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=document.createElement("div");div.id="a11yTestNode";div.style.cssText="border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+dojo.moduleUrl("dijit","form/templates/blank.gif")+"\");";dojo.body().appendChild(div);function check(){var cs=dojo.getComputedStyle(div);if(cs){var _d1=cs.backgroundImage;var _d2=(cs.borderTopColor==cs.borderRightColor)||(_d1!=null&&(_d1=="none"||_d1=="url(invalid-url:)"));dojo[_d2?"addClass":"removeClass"](dojo.body(),"dijit_a11y");}};check();if(dojo.isIE){setInterval(check,4000);}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{hasWaiRole:function(_d3){if(_d3.hasAttribute){return _d3.hasAttribute("role");}else{return _d3.getAttribute("role")?true:false;}},getWaiRole:function(_d4){var _d5=_d4.getAttribute("role");if(_d5){var _d6=_d5.indexOf(":");return _d6==-1?_d5:_d5.substring(_d6+1);}else{return "";}},setWaiRole:function(_d7,_d8){if(dojo.isFF&&dojo.isFF<3){_d7.setAttribute("role","wairole:"+_d8);}else{_d7.setAttribute("role",_d8);}},removeWaiRole:function(_d9){_d9.removeAttribute("role");},hasWaiState:function(_da,_db){if(dojo.isFF&&dojo.isFF<3){return _da.hasAttributeNS("http://www.w3.org/2005/07/aaa",_db);}else{if(_da.hasAttribute){return _da.hasAttribute("aria-"+_db);}else{return _da.getAttribute("aria-"+_db)?true:false;}}},getWaiState:function(_dc,_dd){if(dojo.isFF&&dojo.isFF<3){return _dc.getAttributeNS("http://www.w3.org/2005/07/aaa",_dd);}else{var _de=_dc.getAttribute("aria-"+_dd);return _de?_de:"";}},setWaiState:function(_df,_e0,_e1){if(dojo.isFF&&dojo.isFF<3){_df.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_e0,_e1);}else{_df.setAttribute("aria-"+_e0,_e1);}},removeWaiState:function(_e2,_e3){if(dojo.isFF&&dojo.isFF<3){_e2.removeAttributeNS("http://www.w3.org/2005/07/aaa",_e3);}else{_e2.removeAttribute("aria-"+_e3);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},postscript:function(_e4,_e5){this.create(_e4,_e5);},create:function(_e6,_e7){this.srcNodeRef=dojo.byId(_e7);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_e6){dojo.mixin(this,_e6);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){for(var _e8 in this.attributeMap){var _e9=this[this.attributeMap[_e8]||"domNode"];var _ea=this[_e8];if(typeof _ea!="object"&&(_ea!==""||(_e6&&_e6[_e8]))){switch(_e8){case "class":dojo.addClass(_e9,_ea);break;case "style":if(_e9.style.cssText){_e9.style.cssText+="; "+_ea;}else{_e9.style.cssText=_ea;}break;default:_e9.setAttribute(_e8,_ea);}}}}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||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){},destroyRecursive:function(_eb){this.destroyDescendants();this.destroy();},destroy:function(_ec){this.uninitialize();dojo.forEach(this._connects,function(_ed){dojo.forEach(_ed,dojo.disconnect);});this.destroyRendering(_ec);dijit.registry.remove(this.id);},destroyRendering:function(_ee){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe;}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode;}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef;}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(_ef){_ef.destroy();});},uninitialize:function(){return false;},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){var _f0=dojo.query("[widgetId]",this.domNode);return _f0.map(dijit.byNode);},nodesWithKeyClick:["input","button"],connect:function(obj,_f2,_f3){var _f4=[];if(_f2=="ondijitclick"){var w=this;if(!this.nodesWithKeyClick[obj.nodeName]){_f4.push(dojo.connect(obj,"onkeydown",this,function(e){if(e.keyCode==dojo.keys.ENTER){return (dojo.isString(_f3))?w[_f3](e):_f3.call(w,e);}else{if(e.keyCode==dojo.keys.SPACE){dojo.stopEvent(e);}}}));_f4.push(dojo.connect(obj,"onkeyup",this,function(e){if(e.keyCode==dojo.keys.SPACE){return dojo.isString(_f3)?w[_f3](e):_f3.call(w,e);}}));}_f2="onclick";}_f4.push(dojo.connect(obj,_f2,this,_f3));this._connects.push(_f4);return _f4;},disconnect:function(_f8){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_f8){dojo.forEach(_f8,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=dojo.getComputedStyle(this.domNode).direction!="rtl";}return this._ltr;},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");}});}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.pad=function(_fa,_fb,ch,end){var out=String(_fa);if(!ch){ch="0";}while(out.length<_fb){if(end){out+=ch;}else{out=ch+out;}}return out;};dojo.string.substitute=function(_ff,map,_101,_102){return _ff.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_103,key,_105){var _106=dojo.getObject(key,false,map);if(_105){_106=dojo.getObject(_105,false,_102)(_106);}if(_101){_106=_101(_106,key);}return _106.toString();});};dojo.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(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_109,_10a){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _10b=dojo.date.stamp._isoRegExp.exec(_109);var _10c=null;if(_10b){_10b.shift();_10b[1]&&_10b[1]--;_10b[6]&&(_10b[6]*=1000);if(_10a){_10a=new Date(_10a);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _10a["get"+prop]();}).forEach(function(_10e,_10f){if(_10b[_10f]===undefined){_10b[_10f]=_10e;}});}_10c=new Date(_10b[0]||1970,_10b[1]||0,_10b[2]||0,_10b[3]||0,_10b[4]||0,_10b[5]||0,_10b[6]||0);var _110=0;var _111=_10b[7]&&_10b[7].charAt(0);if(_111!="Z"){_110=((_10b[8]||0)*60)+(Number(_10b[9])||0);if(_111!="-"){_110*=-1;}}if(_111){_110-=_10c.getTimezoneOffset();}if(_110){_10c.setTime(_10c.getTime()+_110*60000);}}return _10c;};dojo.date.stamp.toISOString=function(_112,_113){var _=function(n){return (n<10)?"0"+n:n;};_113=_113||{};var _116=[];var _117=_113.zulu?"getUTC":"get";var date="";if(_113.selector!="time"){date=[_112[_117+"FullYear"](),_(_112[_117+"Month"]()+1),_(_112[_117+"Date"]())].join("-");}_116.push(date);if(_113.selector!="date"){var time=[_(_112[_117+"Hours"]()),_(_112[_117+"Minutes"]()),_(_112[_117+"Seconds"]())].join(":");var _11a=_112[_117+"Milliseconds"]();if(_113.milliseconds){time+="."+(_11a<100?"0":"")+_(_11a);}if(_113.zulu){time+="Z";}else{if(_113.selector!="time"){var _11b=_112.getTimezoneOffset();var _11c=Math.abs(_11b);time+=(_11b>0?"-":"+")+_(Math.floor(_11c/60))+":"+_(_11c%60);}}_116.push(time);}return _116.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;function val2type(_11e){if(d.isString(_11e)){return "string";}if(typeof _11e=="number"){return "number";}if(typeof _11e=="boolean"){return "boolean";}if(d.isFunction(_11e)){return "function";}if(d.isArray(_11e)){return "array";}if(_11e instanceof Date){return "date";}if(_11e instanceof d._Url){return "url";}return "object";};function str2obj(_11f,type){switch(type){case "string":return _11f;case "number":return _11f.length?Number(_11f):NaN;case "boolean":return typeof _11f=="boolean"?_11f:!(_11f.toLowerCase()=="false");case "function":if(d.isFunction(_11f)){_11f=_11f.toString();_11f=d.trim(_11f.substring(_11f.indexOf("{")+1,_11f.length-1));}try{if(_11f.search(/[^\w\.]+/i)!=-1){_11f=d.parser._nameAnonFunc(new Function(_11f),this);}return d.getObject(_11f,false);}catch(e){return new Function();}case "array":return _11f.split(/\s*,\s*/);case "date":switch(_11f){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_11f);}case "url":return d.baseUrl+_11f;default:return d.fromJson(_11f);}};var _121={};function getClassInfo(_122){if(!_121[_122]){var cls=d.getObject(_122);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_122+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _124=cls.prototype;var _125={};for(var name in _124){if(name.charAt(0)=="_"){continue;}var _127=_124[name];_125[name]=val2type(_127);}_121[_122]={cls:cls,params:_125};}return _121[_122];};this._functionFromScript=function(_128){var _129="";var _12a="";var _12b=_128.getAttribute("args");if(_12b){d.forEach(_12b.split(/\s*,\s*/),function(part,idx){_129+="var "+part+" = arguments["+idx+"]; ";});}var _12e=_128.getAttribute("with");if(_12e&&_12e.length){d.forEach(_12e.split(/\s*,\s*/),function(part){_129+="with("+part+"){";_12a+="}";});}return new Function(_129+_128.innerHTML+_12a);};this.instantiate=function(_130){var _131=[];d.forEach(_130,function(node){if(!node){return;}var type=node.getAttribute("dojoType");if((!type)||(!type.length)){return;}var _134=getClassInfo(type);var _135=_134.cls;var ps=_135._noScript||_135.prototype._noScript;var _137={};var _138=node.attributes;for(var name in _134.params){var item=_138.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _13b=item.value;switch(name){case "class":_13b=node.className;break;case "style":_13b=node.style&&node.style.cssText;}var _13c=_134.params[name];_137[name]=str2obj(_13b,_13c);}if(!ps){var _13d=[],_13e=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_13f){var _140=_13f.getAttribute("event"),type=_13f.getAttribute("type"),nf=d.parser._functionFromScript(_13f);if(_140){if(type=="dojo/connect"){_13d.push({event:_140,func:nf});}else{_137[_140]=nf;}}else{_13e.push(nf);}});}var _142=_135["markupFactory"];if(!_142&&_135["prototype"]){_142=_135.prototype["markupFactory"];}var _143=_142?_142(_137,node,_135):new _135(_137,node);_131.push(_143);var _144=node.getAttribute("jsId");if(_144){d.setObject(_144,_143);}if(!ps){dojo.forEach(_13d,function(_145){dojo.connect(_143,_145.event,null,_145.func);});dojo.forEach(_13e,function(func){func.call(_143);});}});d.forEach(_131,function(_147){if(_147&&(_147.startup)&&((!_147.getParent)||(!_147.getParent()))){_147.startup();}});return _131;};this.parse=function(_148){var list=d.query("[dojoType]",_148);var _14a=this.instantiate(list);return _14a;};}();(function(){var _14b=function(){if(djConfig["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_14b);}else{dojo._loaders.unshift(_14b);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_14c,_14d){var jpn="$joinpoint";var nso=(_14d||dojo.parser._anon);if(dojo.isIE){var cn=_14c["__dojoNameCache"];if(cn&&nso[cn]===_14c){return _14c["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_14c;return ret;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateNode:null,templateString:null,templatePath:null,widgetsInTemplate:false,containerNode:null,_skipNodeCache:false,buildRendering:function(){var _152=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_152)){var _154=this.declaredClass,_155=this;var tstr=dojo.string.substitute(_152,this,function(_157,key){if(key.charAt(0)=="!"){_157=_155[key.substr(1)];}if(typeof _157=="undefined"){throw new Error(_154+" template:"+key);}if(!_157){return "";}return key.charAt(0)=="!"?_157:_157.toString().replace(/"/g,"&quot;");},this);node=dijit._Templated._createNodesFromText(tstr)[0];}else{node=_152.cloneNode(true);}this._attachTemplateNodes(node);var _159=this.srcNodeRef;if(_159&&_159.parentNode){_159.parentNode.replaceChild(node,_159);}this.domNode=node;if(this.widgetsInTemplate){var _15a=dojo.parser.parse(node);this._attachTemplateNodes(_15a,function(n,p){return n[p];});}this._fillContent(_159);},_fillContent:function(_15d){var dest=this.containerNode;if(_15d&&dest){while(_15d.hasChildNodes()){dest.appendChild(_15d.firstChild);}}},_attachTemplateNodes:function(_15f,_160){_160=_160||function(n,p){return n.getAttribute(p);};var _163=dojo.isArray(_15f)?_15f:(_15f.all||_15f.getElementsByTagName("*"));var x=dojo.isArray(_15f)?0:-1;for(;x<_163.length;x++){var _165=(x==-1)?_15f:_163[x];if(this.widgetsInTemplate&&_160(_165,"dojoType")){continue;}var _166=_160(_165,"dojoAttachPoint");if(_166){var _167,_168=_166.split(/\s*,\s*/);while(_167=_168.shift()){if(dojo.isArray(this[_167])){this[_167].push(_165);}else{this[_167]=_165;}}}var _169=_160(_165,"dojoAttachEvent");if(_169){var _16a,_16b=_169.split(/\s*,\s*/);var trim=dojo.trim;while(_16a=_16b.shift()){if(_16a){var _16d=null;if(_16a.indexOf(":")!=-1){var _16e=_16a.split(":");_16a=trim(_16e[0]);_16d=trim(_16e[1]);}else{_16a=trim(_16a);}if(!_16d){_16d=_16a;}this.connect(_165,_16a,_16d);}}}var role=_160(_165,"waiRole");if(role){dijit.setWaiRole(_165,role);}var _170=_160(_165,"waiState");if(_170){dojo.forEach(_170.split(/\s*,\s*/),function(_171){if(_171.indexOf("-")!=-1){var pair=_171.split("-");dijit.setWaiState(_165,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_173,_174,_175){var _176=dijit._Templated._templateCache;var key=_174||_173;var _178=_176[key];if(_178){return _178;}if(!_174){_174=dijit._Templated._sanitizeTemplateString(dojo._getText(_173));}_174=dojo.string.trim(_174);if(_174.match(/\$\{([^\}]+)\}/g)||_175){return (_176[key]=_174);}else{return (_176[key]=dijit._Templated._createNodesFromText(_174)[0]);}};dijit._Templated._sanitizeTemplateString=function(_179){if(_179){_179=_179.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _17a=_179.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_17a){_179=_17a[1];}}else{_179="";}return _179;};if(dojo.isIE){dojo.addOnUnload(function(){var _17b=dijit._Templated._templateCache;for(var key in _17b){var _17d=_17b[key];if(!isNaN(_17d.nodeType)){dojo._destroyElement(_17d);}delete _17b[key];}});}(function(){var _17e={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _181="none";var _182=text.replace(/^\s+/,"");for(var type in _17e){var map=_17e[type];if(map.re.test(_182)){_181=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_181];var _186=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _187=[];while(_186.firstChild){_187.push(_186.removeChild(_186.firstChild));}tn.innerHTML="";return _187;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.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 _18a=dijit.byId(id);return _18a.isContainer?_18a:null;}}return null;},_getSibling:function(_18b){var node=this.domNode;do{node=node[_18b+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");}});dojo.declare("dijit._Container",null,{isContainer:true,addChild:function(_18e,_18f){if(_18f===undefined){_18f="last";}var _190=this.containerNode||this.domNode;if(_18f&&typeof _18f=="number"){var _191=dojo.query("> [widgetid]",_190);if(_191&&_191.length>=_18f){_190=_191[_18f-1];_18f="after";}}dojo.place(_18e.domNode,_190,_18f);if(this._started&&!_18e._started){_18e.startup();}},removeChild:function(_192){var node=_192.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 dojo.query("> [widgetId]",this.containerNode||this.domNode).map(dijit.byNode);},hasChildren:function(){var cn=this.containerNode||this.domNode;return !!this._firstElement(cn);},_getSiblingOfChild:function(_197,dir){var node=_197.domNode;var _19a=(dir>0?"nextSibling":"previousSibling");do{node=node[_19a];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_19b,_19c){var _19d=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_19b,function(code){_19d[code]=prev;});dojo.forEach(_19c,function(code){_19d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");if(dojo.isIE){this.connect(this.domNode,"onactivate","_onContainerFocus");this.connect(this.domNode,"ondeactivate","_onContainerBlur");}else{this.connect(this.domNode,"onfocus","_onContainerFocus");this.connect(this.domNode,"onblur","_onContainerBlur");}},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_setTabIndexMinusOne"));},addChild:function(_1a2,_1a3){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._setTabIndexMinusOne(_1a2);},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 _1a4=this._getNextFocusableChild(this.focusedChild,1);if(_1a4.getFocalNodes){this.focusChild(_1a4,_1a4.getFocalNodes()[0]);}else{this.focusChild(_1a4);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _1a5=this._getNextFocusableChild(this.focusedChild,-1);if(_1a5.getFocalNodes){var _1a6=_1a5.getFocalNodes();this.focusChild(_1a5,_1a6[_1a6.length-1]);}else{this.focusChild(_1a5);}},focusChild:function(_1a7,node){if(_1a7){if(this.focusedChild&&_1a7!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_1a7;if(node&&_1a7.focusFocalNode){_1a7.focusFocalNode(node);}else{_1a7.focus();}}},_setTabIndexMinusOne:function(_1a9){if(_1a9.getFocalNodes){dojo.forEach(_1a9.getFocalNodes(),function(node){node.setAttribute("tabIndex",-1);});}else{(_1a9.focusNode||_1a9.domNode).setAttribute("tabIndex",-1);}},_onContainerFocus:function(evt){this.domNode.setAttribute("tabIndex",-1);if(evt.target===this.domNode){this.focusFirstChild();}else{var _1ac=dijit.getEnclosingWidget(evt.target);if(_1ac&&_1ac.isFocusable()){this.focusedChild=_1ac;}}},_onContainerBlur:function(evt){if(this.tabIndex){this.domNode.setAttribute("tabIndex",this.tabIndex);}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.keyCode];if(func){func();dojo.stopEvent(evt);}},_onChildBlur:function(_1b0){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_1b1,dir){if(_1b1){_1b1=this._getSiblingOfChild(_1b1,dir);}var _1b3=this.getChildren();for(var i=0;i<_1b3.length;i++){if(!_1b1){_1b1=_1b3[(dir>0)?0:(_1b3.length-1)];}if(_1b1.isFocusable()){return _1b1;}_1b1=this._getSiblingOfChild(_1b1,dir);}}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");},startup:function(){if(this._started){return;}this._started=true;if(this.getChildren){dojo.forEach(this.getChildren(),function(_1b5){_1b5.startup();});}if(!this.getParent||!this.getParent()){this.resize();this.connect(window,"onresize",function(){this.resize();});}},resize:function(args){var node=this.domNode;if(args){dojo.marginBox(node,args);if(args.t){node.style.top=args.t+"px";}if(args.l){node.style.left=args.l+"px";}}var mb=dojo.mixin(dojo.marginBox(node),args||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);this.layout();},layout:function(){}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _1be=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1c1,dim){_1c1.resize?_1c1.resize(dim):dojo.marginBox(_1c1.domNode,dim);dojo.mixin(_1c1,dojo.marginBox(_1c1.domNode));dojo.mixin(_1c1,dim);};dijit.layout.layoutChildren=function(_1c3,dim,_1c5){dim=dojo.mixin({},dim);dojo.addClass(_1c3,"dijitLayoutContainer");_1c5=dojo.filter(_1c5,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1c5,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1c5,function(_1c8){var elm=_1c8.domNode,pos=_1c8.layoutAlign;var _1cb=elm.style;_1cb.left=dim.l+"px";_1cb.top=dim.t+"px";_1cb.bottom=_1cb.right="auto";dojo.addClass(elm,"dijitAlign"+_1be(pos));if(pos=="top"||pos=="bottom"){size(_1c8,{w:dim.w});dim.h-=_1c8.h;if(pos=="top"){dim.t+=_1c8.h;}else{_1cb.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1c8,{h:dim.h});dim.w-=_1c8.w;if(pos=="left"){dim.l+=_1c8.w;}else{_1cb.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1c8,dim);}}}});};})();}if(!dojo._hasResource["dojo.i18n"]){dojo._hasResource["dojo.i18n"]=true;dojo.provide("dojo.i18n");dojo.i18n.getLocalization=function(_1cc,_1cd,_1ce){_1ce=dojo.i18n.normalizeLocale(_1ce);var _1cf=_1ce.split("-");var _1d0=[_1cc,"nls",_1cd].join(".");var _1d1=dojo._loadedModules[_1d0];if(_1d1){var _1d2;for(var i=_1cf.length;i>0;i--){var loc=_1cf.slice(0,i).join("_");if(_1d1[loc]){_1d2=_1d1[loc];break;}}if(!_1d2){_1d2=_1d1.ROOT;}if(_1d2){var _1d5=function(){};_1d5.prototype=_1d2;return new _1d5();}}throw new Error("Bundle not found: "+_1cd+" in "+_1cc+" , locale="+_1ce);};dojo.i18n.normalizeLocale=function(_1d6){var _1d7=_1d6?_1d6.toLowerCase():dojo.locale;if(_1d7=="root"){_1d7="ROOT";}return _1d7;};dojo.i18n._requireLocalization=function(_1d8,_1d9,_1da,_1db){var _1dc=dojo.i18n.normalizeLocale(_1da);var _1dd=[_1d8,"nls",_1d9].join(".");var _1de="";if(_1db){var _1df=_1db.split(",");for(var i=0;i<_1df.length;i++){if(_1dc.indexOf(_1df[i])==0){if(_1df[i].length>_1de.length){_1de=_1df[i];}}}if(!_1de){_1de="ROOT";}}var _1e1=_1db?_1de:_1dc;var _1e2=dojo._loadedModules[_1dd];var _1e3=null;if(_1e2){if(djConfig.localizationComplete&&_1e2._built){return;}var _1e4=_1e1.replace(/-/g,"_");var _1e5=_1dd+"."+_1e4;_1e3=dojo._loadedModules[_1e5];}if(!_1e3){_1e2=dojo["provide"](_1dd);var syms=dojo._getModuleSymbols(_1d8);var _1e7=syms.concat("nls").join("/");var _1e8;dojo.i18n._searchLocalePath(_1e1,_1db,function(loc){var _1ea=loc.replace(/-/g,"_");var _1eb=_1dd+"."+_1ea;var _1ec=false;if(!dojo._loadedModules[_1eb]){dojo["provide"](_1eb);var _1ed=[_1e7];if(loc!="ROOT"){_1ed.push(loc);}_1ed.push(_1d9);var _1ee=_1ed.join("/")+".js";_1ec=dojo._loadPath(_1ee,null,function(hash){var _1f0=function(){};_1f0.prototype=_1e8;_1e2[_1ea]=new _1f0();for(var j in hash){_1e2[_1ea][j]=hash[j];}});}else{_1ec=true;}if(_1ec&&_1e2[_1ea]){_1e8=_1e2[_1ea];}else{_1e2[_1ea]=_1e8;}if(_1db){return true;}});}if(_1db&&_1dc!=_1de){_1e2[_1dc.replace(/-/g,"_")]=_1e2[_1de.replace(/-/g,"_")];}};(function(){var _1f2=djConfig.extraLocale;if(_1f2){if(!_1f2 instanceof Array){_1f2=[_1f2];}var req=dojo.i18n._requireLocalization;dojo.i18n._requireLocalization=function(m,b,_1f6,_1f7){req(m,b,_1f6,_1f7);if(_1f6){return;}for(var i=0;i<_1f2.length;i++){req(m,b,_1f2[i],_1f7);}};}})();dojo.i18n._searchLocalePath=function(_1f9,down,_1fb){_1f9=dojo.i18n.normalizeLocale(_1f9);var _1fc=_1f9.split("-");var _1fd=[];for(var i=_1fc.length;i>0;i--){_1fd.push(_1fc.slice(0,i).join("-"));}_1fd.push(false);if(down){_1fd.reverse();}for(var j=_1fd.length-1;j>=0;j--){var loc=_1fd[j]||"ROOT";var stop=_1fb(loc);if(stop){break;}}};dojo.i18n._preloadLocalizations=function(_202,_203){function preload(_204){_204=dojo.i18n.normalizeLocale(_204);dojo.i18n._searchLocalePath(_204,true,function(loc){for(var i=0;i<_203.length;i++){if(_203[i]==loc){dojo["require"](_202+"_"+loc);return true;}}return false;});};preload();var _207=djConfig.extraLocale||[];for(var i=0;i<_207.length;i++){preload(_207[i]);}};}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck();}var _209=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_209);this.errorMessage=dojo.string.substitute(this.errorMessage,_209);dojo.addClass(this.domNode,this["class"]);},startup:function(){if(this._started){return;}this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}this._loadCheck();this._started=true;},_checkIfSingleChild:function(){var _20a=dojo.query(">",this.containerNode||this.domNode),_20b=_20a.filter("[widgetId]");if(_20a.length==1&&_20b.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_20b[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}this._onLoadHandler();},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroy:function(){if(this._beingDestroyed){return;}this._onUnloadHandler();this._beingDestroyed=true;this.inherited("destroy",arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode||this.domNode,mb=dojo.mixin(dojo.marginBox(node),size||{});this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize(this._contentBox);}},_prepareLoad:function(_211){this.cancel();this.isLoaded=false;this._loadCheck(_211);},_loadCheck:function(_212){var _213=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(_212||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_213&&!this._xhrDfd)||(!this.isLoaded&&_213&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _215={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_215,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_215);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.setContent.call(self,html);}catch(err){self._onError.call(self,"Content",err);}delete self._xhrDfd;return html;});hand.addErrback(function(err){if(!hand.cancelled){self._onError.call(self,"Download",err);}delete self._xhrDfd;return err;});},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this);}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},_setContent:function(cont){this.destroyDescendants();try{var node=this.containerNode||this.domNode;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){match=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){cont=match[1];}}node.innerHTML=cont;}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}catch(e){var _21c=this.onContentError(e);try{node.innerHTML=_21c;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_21f){var _220=this["on"+type+"Error"].call(this,err);if(_21f){console.error(_21f,err);}else{if(_220){this._setContent.call(this,_220);}}},_createSubWidgets:function(){var _221=this.containerNode||this.domNode;try{dojo.parser.parse(_221,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_224){},onDownloadError:function(_225){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dijit.TitlePane"]){dojo._hasResource["dijit.TitlePane"]=true;dojo.provide("dijit.TitlePane");dojo.declare("dijit.TitlePane",[dijit.layout.ContentPane,dijit._Templated],{title:"",open:true,duration:250,baseClass:"dijitTitlePane",templateString:"<div class=\"dijitTitlePane\">\r\n\t<div dojoAttachEvent=\"onclick:toggle,onkeypress: _onTitleKey,onfocus:_handleFocus,onblur:_handleFocus\" tabindex=\"0\"\r\n\t\t\twaiRole=\"button\" class=\"dijitTitlePaneTitle\" dojoAttachPoint=\"focusNode\">\r\n\t\t<div dojoAttachPoint=\"arrowNode\" class=\"dijitInline dijitArrowNode\"><span dojoAttachPoint=\"arrowNodeInner\" class=\"dijitArrowNodeInner\"></span></div>\r\n\t\t<div dojoAttachPoint=\"titleNode\" class=\"dijitTitlePaneTextNode\"></div>\r\n\t</div>\r\n\t<div class=\"dijitTitlePaneContentOuter\" dojoAttachPoint=\"hideNode\">\r\n\t\t<div class=\"dijitReset\" dojoAttachPoint=\"wipeNode\">\r\n\t\t\t<div class=\"dijitTitlePaneContentInner\" dojoAttachPoint=\"containerNode\" waiRole=\"region\" tabindex=\"-1\">\r\n\t\t\t\t<!-- nested divs because wipeIn()/wipeOut() doesn't work right on node w/padding etc.  Put padding on inner div. -->\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div>\r\n</div>\r\n",postCreate:function(){this.setTitle(this.title);if(!this.open){this.hideNode.style.display=this.wipeNode.style.display="none";}this._setCss();dojo.setSelectable(this.titleNode,false);this.inherited("postCreate",arguments);dijit.setWaiState(this.containerNode,"labelledby",this.titleNode.id);dijit.setWaiState(this.focusNode,"haspopup","true");var _226=this.hideNode,_227=this.wipeNode;this._wipeIn=dojo.fx.wipeIn({node:this.wipeNode,duration:this.duration,beforeBegin:function(){_226.style.display="";}});this._wipeOut=dojo.fx.wipeOut({node:this.wipeNode,duration:this.duration,onEnd:function(){_226.style.display="none";}});},setContent:function(_228){if(this._wipeOut.status()=="playing"){this.inherited("setContent",arguments);}else{if(this._wipeIn.status()=="playing"){this._wipeIn.stop();}dojo.marginBox(this.wipeNode,{h:dojo.marginBox(this.wipeNode).h});this.inherited("setContent",arguments);this._wipeIn.play();}},toggle:function(){dojo.forEach([this._wipeIn,this._wipeOut],function(_229){if(_229.status()=="playing"){_229.stop();}});this[this.open?"_wipeOut":"_wipeIn"].play();this.open=!this.open;this._loadCheck();this._setCss();},_setCss:function(){var _22a=["dijitClosed","dijitOpen"];var _22b=this.open;dojo.removeClass(this.focusNode,_22a[!_22b+0]);this.focusNode.className+=" "+_22a[_22b+0];this.arrowNodeInner.innerHTML=this.open?"-":"+";},_onTitleKey:function(e){if(e.keyCode==dojo.keys.ENTER||e.charCode==dojo.keys.SPACE){this.toggle();}else{if(e.keyCode==dojo.keys.DOWN_ARROW){if(this.open){this.containerNode.focus();e.preventDefault();}}}},_handleFocus:function(e){dojo[(e.type=="focus"?"addClass":"removeClass")](this.focusNode,this.baseClass+"Focused");},setTitle:function(_22e){this.titleNode.innerHTML=_22e;}});}dojo.i18n._preloadLocalizations("dojo.nls.esriukwiybydojo",["es-es","es","hu","it-it","de","pt-br","pl","fr-fr","zh-cn","pt","en-us","zh","ru","xx","fr","zh-tw","it","cs","en-gb","de-de","ja-jp","ko-kr","ko","en","ROOT","ja"]);

