/*
	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/license

*/

/*
	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["dijit._base.focus"]){dojo._hasResource["dijit._base.focus"]=true;dojo.provide("dijit._base.focus");dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){var _1=dojo.doc;if(_1.selection){var s=_1.selection;if(s.type=="Text"){return !s.createRange().htmlText.length;}else{return !s.createRange().length;}}else{var _3=dojo.global;var _4=_3.getSelection();if(dojo.isString(_4)){return !_4;}else{return _4.isCollapsed||!_4.toString();}}},getBookmark:function(){var _5,_6=dojo.doc.selection;if(_6){var _7=_6.createRange();if(_6.type.toUpperCase()=="CONTROL"){if(_7.length){_5=[];var i=0,_9=_7.length;while(i<_9){_5.push(_7.item(i++));}}else{_5=null;}}else{_5=_7.getBookmark();}}else{if(window.getSelection){_6=dojo.global.getSelection();if(_6){_7=_6.getRangeAt(0);_5=_7.cloneRange();}}else{console.warn("No idea how to store the current selection for this browser!");}}return _5;},moveToBookmark:function(_a){var _b=dojo.doc;if(_b.selection){var _c;if(dojo.isArray(_a)){_c=_b.body.createControlRange();dojo.forEach(_a,function(n){_c.addElement(n);});}else{_c=_b.selection.createRange();_c.moveToBookmark(_a);}_c.select();}else{var _e=dojo.global.getSelection&&dojo.global.getSelection();if(_e&&_e.removeAllRanges){_e.removeAllRanges();_e.addRange(_a);}else{console.warn("No idea how to restore selection for this browser!");}}},getFocus:function(_f,_10){return {node:_f&&dojo.isDescendant(dijit._curFocus,_f.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(_10||dojo.global,dijit.isCollapsed)?dojo.withGlobal(_10||dojo.global,dijit.getBookmark):null,openedForWindow:_10};},focus:function(_11){if(!_11){return;}var _12="node" in _11?_11.node:_11,_13=_11.bookmark,_14=_11.openedForWindow;if(_12){var _15=(_12.tagName.toLowerCase()=="iframe")?_12.contentWindow:_12;if(_15&&_15.focus){try{_15.focus();}catch(e){}}dijit._onFocusNode(_12);}if(_13&&dojo.withGlobal(_14||dojo.global,dijit.isCollapsed)){if(_14){_14.focus();}try{dojo.withGlobal(_14||dojo.global,dijit.moveToBookmark,null,[_13]);}catch(e){}}},_activeStack:[],registerWin:function(_16){if(!_16){_16=window;}dojo.connect(_16.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(evt.target||evt.srcElement);});var _18=_16.document.body||_16.document.getElementsByTagName("body")[0];if(_18){if(dojo.isIE){_18.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(evt.srcElement);}});_18.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{_18.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);_18.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}_18=null;},_onBlurNode:function(_1d){dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._justMouseDowned){return;}if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);}dijit._clearActiveWidgetsTimer=setTimeout(function(){delete dijit._clearActiveWidgetsTimer;dijit._setStack([]);dijit._prevFocus=null;},100);},_onTouchNode:function(_1e){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _1f=[];try{while(_1e){if(_1e.dijitPopupParent){_1e=dijit.byId(_1e.dijitPopupParent).domNode;}else{if(_1e.tagName&&_1e.tagName.toLowerCase()=="body"){if(_1e===dojo.body()){break;}_1e=dijit.getDocumentWindow(_1e.ownerDocument).frameElement;}else{var id=_1e.getAttribute&&_1e.getAttribute("widgetId");if(id){_1f.unshift(id);}_1e=_1e.parentNode;}}}}catch(e){}dijit._setStack(_1f);},_onFocusNode:function(_21){if(_21&&_21.tagName&&_21.tagName.toLowerCase()=="body"){return;}dijit._onTouchNode(_21);if(_21==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_21;dojo.publish("focusNode",[_21]);},_setStack:function(_22){var _23=dijit._activeStack;dijit._activeStack=_22;for(var _24=0;_24<Math.min(_23.length,_22.length);_24++){if(_23[_24]!=_22[_24]){break;}}for(var i=_23.length-1;i>=_24;i--){var _26=dijit.byId(_23[i]);if(_26){_26._focused=false;_26._hasBeenBlurred=true;if(_26._onBlur){_26._onBlur();}if(_26._setStateClass){_26._setStateClass();}dojo.publish("widgetBlur",[_26]);}}for(i=_24;i<_22.length;i++){_26=dijit.byId(_22[i]);if(_26){_26._focused=true;if(_26._onFocus){_26._onFocus();}if(_26._setStateClass){_26._setStateClass();}dojo.publish("widgetFocus",[_26]);}}}});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(_27){if(this._hash[_27.id]){throw new Error("Tried to register widget with id=="+_27.id+" but that id is already registered");}this._hash[_27.id]=_27;},remove:function(id){delete this._hash[id];},forEach:function(_29){for(var id in this._hash){_29(this._hash[id]);}},filter:function(_2b){var res=new dijit.WidgetSet();this.forEach(function(_2d){if(_2b(_2d)){res.add(_2d);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_30){return _30.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_31){var id;do{id=_31+"_"+(_31 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_31]:dijit._widgetTypeCtr[_31]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_33){_33.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_35){return dijit.registry.byId(_35.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_36){while(_36){if(_36.getAttribute&&_36.getAttribute("widgetId")){return dijit.registry.byId(_36.getAttribute("widgetId"));}_36=_36.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_37){var _38=dojo.style(_37);return (_38.visibility!="hidden")&&(_38.visibility!="collapsed")&&(_38.display!="none")&&(dojo.attr(_37,"type")!="hidden");};dijit.isTabNavigable=function(_39){if(dojo.hasAttr(_39,"disabled")){return false;}var _3a=dojo.hasAttr(_39,"tabindex");var _3b=dojo.attr(_39,"tabindex");if(_3a&&_3b>=0){return true;}var _3c=_39.nodeName.toLowerCase();if(((_3c=="a"&&dojo.hasAttr(_39,"href"))||dijit._tabElements[_3c])&&(!_3a||_3b>=0)){return true;}return false;};dijit._getTabNavigable=function(_3d){var _3e,_3f,_40,_41,_42,_43;var _44=function(_45){dojo.query("> *",_45).forEach(function(_46){var _47=dijit._isElementShown(_46);if(_47&&dijit.isTabNavigable(_46)){var _48=dojo.attr(_46,"tabindex");if(!dojo.hasAttr(_46,"tabindex")||_48==0){if(!_3e){_3e=_46;}_3f=_46;}else{if(_48>0){if(!_40||_48<_41){_41=_48;_40=_46;}if(!_42||_48>=_43){_43=_48;_42=_46;}}}}if(_47&&_46.nodeName.toUpperCase()!="SELECT"){_44(_46);}});};if(dijit._isElementShown(_3d)){_44(_3d);}return {first:_3e,last:_3f,lowest:_40,highest:_42};};dijit.getFirstInTabbingOrder=function(_49){var _4a=dijit._getTabNavigable(dojo.byId(_49));return _4a.lowest?_4a.lowest:_4a.first;};dijit.getLastInTabbingOrder=function(_4b){var _4c=dijit._getTabNavigable(dojo.byId(_4b));return _4c.last?_4c.last:_4c.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_4d){this.pairs=[];this.returnWrappers=_4d||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_4e,_4f,_50,_51,_52){this.pairs[((_52)?"unshift":"push")]([_4e,_4f,_50,_51]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _54=this.pairs[i];if(_54[1].apply(this,arguments)){if((_54[3])||(this.returnWrappers)){return _54[2];}else{return _54[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_55){for(var i=0;i<this.pairs.length;i++){var _57=this.pairs[i];if(_57[0]==_55){this.pairs.splice(i,1);return true;}}return false;}});}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var _58=dojo.global;var _59=dojo.doc;var w=0,h=0;var de=_59.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _5f,_60,_61,_62;var dbw=_59.body.clientWidth;if(dbw>dew){_5f=dew;_61=dbw;}else{_61=dew;_5f=dbw;}var dbh=_59.body.clientHeight;if(dbh>deh){_60=deh;_62=dbh;}else{_62=deh;_60=dbh;}w=(_61>_58.innerWidth)?_5f:_61;h=(_62>_58.innerHeight)?_60:_62;}else{if(!dojo.isOpera&&_58.innerWidth){w=_58.innerWidth;h=_58.innerHeight;}else{if(dojo.isIE&&de&&deh){w=dew;h=deh;}else{if(dojo.body().clientWidth){w=dojo.body().clientWidth;h=dojo.body().clientHeight;}}}}var _65=dojo._docScroll();return {w:w,h:h,l:_65.x,t:_65.y};};dijit.placeOnScreen=function(_66,pos,_68,_69){var _6a=dojo.map(_68,function(_6b){return {corner:_6b,pos:pos};});return dijit._place(_66,_6a);};dijit._place=function(_6c,_6d,_6e){var _6f=dijit.getViewport();if(!_6c.parentNode||String(_6c.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_6c);}var _70=null;dojo.some(_6d,function(_71){var _72=_71.corner;var pos=_71.pos;if(_6e){_6e(_6c,_71.aroundCorner,_72);}var _74=_6c.style;var _75=_74.display;var _76=_74.visibility;_74.visibility="hidden";_74.display="";var mb=dojo.marginBox(_6c);_74.display=_75;_74.visibility=_76;var _78=(_72.charAt(1)=="L"?pos.x:Math.max(_6f.l,pos.x-mb.w)),_79=(_72.charAt(0)=="T"?pos.y:Math.max(_6f.t,pos.y-mb.h)),_7a=(_72.charAt(1)=="L"?Math.min(_6f.l+_6f.w,_78+mb.w):pos.x),_7b=(_72.charAt(0)=="T"?Math.min(_6f.t+_6f.h,_79+mb.h):pos.y),_7c=_7a-_78,_7d=_7b-_79,_7e=(mb.w-_7c)+(mb.h-_7d);if(_70==null||_7e<_70.overflow){_70={corner:_72,aroundCorner:_71.aroundCorner,x:_78,y:_79,w:_7c,h:_7d,overflow:_7e};}return !_7e;});_6c.style.left=_70.x+"px";_6c.style.top=_70.y+"px";if(_70.overflow&&_6e){_6e(_6c,_70.aroundCorner,_70.corner);}return _70;};dijit.placeOnScreenAroundNode=function(_7f,_80,_81,_82){_80=dojo.byId(_80);var _83=_80.style.display;_80.style.display="";var _84=_80.offsetWidth;var _85=_80.offsetHeight;var _86=dojo.coords(_80,true);_80.style.display=_83;return dijit._placeOnScreenAroundRect(_7f,_86.x,_86.y,_84,_85,_81,_82);};dijit.placeOnScreenAroundRectangle=function(_87,_88,_89,_8a){return dijit._placeOnScreenAroundRect(_87,_88.x,_88.y,_88.width,_88.height,_89,_8a);};dijit._placeOnScreenAroundRect=function(_8b,x,y,_8e,_8f,_90,_91){var _92=[];for(var _93 in _90){_92.push({aroundCorner:_93,corner:_90[_93],pos:{x:x+(_93.charAt(1)=="L"?0:_8e),y:y+(_93.charAt(0)=="T"?0:_8f)}});}return dijit._place(_8b,_92,_91);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_98,_99,_9a,_9b){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};}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 _a1=[],_a2=1000,_a3=1;this.prepare=function(_a4){dojo.body().appendChild(_a4);var s=_a4.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_a6){var _a7=_a6.popup,_a8=_a6.orient||{"BL":"TL","TL":"BL"},_a9=_a6.around,id=(_a6.around&&_a6.around.id)?(_a6.around.id+"_dropdown"):("popup_"+_a3++);var _ab=dojo.doc.createElement("div");dijit.setWaiRole(_ab,"presentation");_ab.id=id;_ab.className="dijitPopup";_ab.style.zIndex=_a2+_a1.length;_ab.style.left=_ab.style.top="0px";_ab.style.visibility="hidden";if(_a6.parent){_ab.dijitPopupParent=_a6.parent.id;}dojo.body().appendChild(_ab);var s=_a7.domNode.style;s.display="";s.visibility="";s.position="";_ab.appendChild(_a7.domNode);var _ad=new dijit.BackgroundIframe(_ab);var _ae=_a9?dijit.placeOnScreenAroundElement(_ab,_a9,_a8,_a7.orient?dojo.hitch(_a7,"orient"):null):dijit.placeOnScreen(_ab,_a6,_a8=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_ab.style.visibility="visible";var _af=[];var _b0=function(){for(var pi=_a1.length-1;pi>0&&_a1[pi].parent===_a1[pi-1].widget;pi--){}return _a1[pi];};_af.push(dojo.connect(_ab,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a6.onCancel){dojo.stopEvent(evt);_a6.onCancel();}else{if(evt.charOrCode==dojo.keys.TAB){dojo.stopEvent(evt);var _b3=_b0();if(_b3&&_b3.onCancel){_b3.onCancel();}}}}));if(_a7.onCancel){_af.push(dojo.connect(_a7,"onCancel",null,_a6.onCancel));}_af.push(dojo.connect(_a7,_a7.onExecute?"onExecute":"onChange",null,function(){var _b4=_b0();if(_b4&&_b4.onExecute){_b4.onExecute();}}));_a1.push({wrapper:_ab,iframe:_ad,widget:_a7,parent:_a6.parent,onExecute:_a6.onExecute,onCancel:_a6.onCancel,onClose:_a6.onClose,handlers:_af});if(_a7.onOpen){_a7.onOpen(_ae);}return _ae;};this.close=function(_b5){while(dojo.some(_a1,function(_b6){return _b6.widget==_b5;})){var top=_a1.pop(),_b8=top.wrapper,_b9=top.iframe,_ba=top.widget,_bb=top.onClose;if(_ba.onClose){_ba.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_ba||!_ba.domNode){return;}this.prepare(_ba.domNode);_b9.destroy();dojo._destroyElement(_b8);if(_bb){_bb();}}};}();dijit._frames=new function(){var _bc=[];this.pop=function(){var _bd;if(_bc.length){_bd=_bc.pop();_bd.style.display="";}else{if(dojo.isIE){var _be="<iframe src='javascript:\"\"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_bd=dojo.doc.createElement(_be);}else{_bd=dojo.doc.createElement("iframe");_bd.src="javascript:\"\"";_bd.className="dijitBackgroundIframe";}_bd.tabIndex=-1;dojo.body().appendChild(_bd);}return _bd;};this.push=function(_bf){_bf.style.display="";if(dojo.isIE){_bf.style.removeExpression("width");_bf.style.removeExpression("height");}_bc.push(_bf);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_c1){if(!_c1.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _c2=dijit._frames.pop();_c1.appendChild(_c2);if(dojo.isIE){_c2.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_c1.id+"').offsetWidth");_c2.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_c1.id+"').offsetHeight");}this.iframe=_c2;}};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(_c3){_c3=dojo.byId(_c3);var _c4=_c3.ownerDocument.body;var _c5=_c4.parentNode;if(dojo.isFF==2||_c3==_c4||_c3==_c5){_c3.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _c7=dojo.doc.compatMode!="BackCompat";var _c8=(_c7&&!dojo.isSafari)?_c5:_c4;function addPseudoAttrs(_c9){var _ca=_c9.parentNode;var _cb=_c9.offsetParent;if(_cb==null){_c9=_c8;_cb=_c5;_ca=null;}_c9._offsetParent=(_cb==_c4)?_c8:_cb;_c9._parent=(_ca==_c4)?_c8:_ca;_c9._start={H:_c9.offsetLeft,V:_c9.offsetTop};_c9._scroll={H:_c9.scrollLeft,V:_c9.scrollTop};_c9._renderedSize={H:_c9.offsetWidth,V:_c9.offsetHeight};var bp=dojo._getBorderExtents(_c9);_c9._borderStart={H:bp.l,V:bp.t};_c9._borderSize={H:bp.w,V:bp.h};_c9._clientSize=(_c9._offsetParent==_c5&&dojo.isSafari&&_c7)?{H:_c5.clientWidth,V:_c5.clientHeight}:{H:_c9.clientWidth,V:_c9.clientHeight};_c9._scrollBarSize={V:null,H:null};for(var dir in _c9._scrollBarSize){var _ce=_c9._renderedSize[dir]-_c9._clientSize[dir]-_c9._borderSize[dir];_c9._scrollBarSize[dir]=(_c9._clientSize[dir]>0&&_ce>=15&&_ce<=17)?_ce:0;}_c9._isScrollable={V:null,H:null};for(dir in _c9._isScrollable){var _cf=dir=="H"?"V":"H";_c9._isScrollable[dir]=_c9==_c8||_c9._scroll[dir]||_c9._scrollBarSize[_cf];}};var _d0=_c3;while(_d0!=null){addPseudoAttrs(_d0);var _d1=_d0._parent;if(_d1){_d1._child=_d0;}_d0=_d1;}for(var dir in _c8._renderedSize){_c8._renderedSize[dir]=Math.min(_c8._clientSize[dir],_c8._renderedSize[dir]);}var _d3=_c3;while(_d3!=_c8){_d0=_d3._parent;if(_d0.tagName=="TD"){var _d4=_d0._parent._parent._parent;if(_d4._offsetParent==_d3._offsetParent&&_d0._offsetParent!=_d3._offsetParent){_d0=_d4;}}var _d5=_d3==_c8||(_d0._offsetParent!=_d3._offsetParent);for(dir in _d3._start){var _d6=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_d0._clientSize.H>0){var _d7=_d0.scrollWidth-_d0._clientSize.H;if(_d7>0){_d0._scroll.H-=_d7;}}if(dojo.isIE&&_d0._offsetParent.tagName=="TABLE"){_d0._start[dir]-=_d0._offsetParent._borderStart[dir];_d0._borderStart[dir]=_d0._borderSize[dir]=0;}if(_d0._clientSize[dir]==0){_d0._renderedSize[dir]=_d0._clientSize[dir]=_d0._child._clientSize[dir];if(rtl&&dir=="H"){_d0._start[dir]-=_d0._renderedSize[dir];}}else{_d0._renderedSize[dir]-=_d0._borderSize[dir]+_d0._scrollBarSize[dir];}_d0._start[dir]+=_d0._borderStart[dir];var _d8=_d3._start[dir]-(_d5?0:_d0._start[dir])-_d0._scroll[dir];var _d9=_d8+_d3._renderedSize[dir]-_d0._renderedSize[dir];var _da,_db=(dir=="H")?"scrollLeft":"scrollTop";var _dc=(dir=="H"&&rtl);var _dd=_dc?-_d9:_d8;var _de=_dc?-_d8:_d9;if(_dd<=0){_da=_dd;}else{if(_de<=0){_da=0;}else{if(_dd<_de){_da=_dd;}else{_da=_de;}}}var _df=0;if(_da!=0){var _e0=_d0[_db];_d0[_db]+=_dc?-_da:_da;_df=_d0[_db]-_e0;_d8-=_df;_de-=_dc?-_df:_df;}_d0._renderedSize[dir]=_d3._renderedSize[dir]+_d0._scrollBarSize[dir]-((_d0._isScrollable[dir]&&_de>0)?_de:0);_d0._start[dir]+=(_d8>=0||!_d0._isScrollable[dir])?_d8:0;}_d3=_d0;}};}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 _e3=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _e6=d.boxModel.replace(/-/,"");var _e7={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e3,dj_opera8:maj(_e3)==8,dj_opera9:maj(_e3)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_e7["dj_"+_e6]=true;var _e8=dojo.doc.documentElement;for(var p in _e7){if(_e7[p]){if(_e8.className){_e8.className+=" "+p;}else{_e8.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e8.className+=" dijitRtl";for(var p in _e7){if(_e7[p]){_e8.className+=" "+p+"-rtl";}}}});})();}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,_ec,_ed,_ee,obj,_f0,_f1){if(obj!=this._obj){this.stop();this._initialDelay=_f1||500;this._subsequentDelay=_f0||0.9;this._obj=obj;this._evt=evt;this._node=_ed;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_ec,_ee);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(_f2,_f3,_f4,_f5,_f6,_f7){if(_f3.keyCode){_f3.charOrCode=_f3.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_f3.charCode){_f3.charOrCode=String.fromCharCode(_f3.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f2,"onkeypress",this,function(evt){if(evt.charOrCode==_f3.charOrCode&&(_f3.ctrlKey===undefined||_f3.ctrlKey==evt.ctrlKey)&&(_f3.altKey===undefined||_f3.altKey==evt.ctrlKey)&&(_f3.shiftKey===undefined||_f3.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_f3,_f4,_f2,_f5,_f3,_f6,_f7);}else{if(dijit.typematic._obj==_f3){dijit.typematic.stop();}}}),dojo.connect(_f2,"onkeyup",this,function(evt){if(dijit.typematic._obj==_f3){dijit.typematic.stop();}})];},addMouseListener:function(_fa,_fb,_fc,_fd,_fe){var dc=dojo.connect;return [dc(_fa,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_fb,_fa,_fc,_fa,_fd,_fe);}),dc(_fa,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_fa,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_fa,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_fa,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_fb,_fa,_fc,_fa,_fd,_fe);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_105,_106,_107,_108,_109,_10a,_10b){return this.addKeyListener(_106,_107,_108,_109,_10a,_10b).concat(this.addMouseListener(_105,_108,_109,_10a,_10b));}};}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.wai={onload:function(){var div=dojo.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(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");";dojo.body().appendChild(div);var cs=dojo.getComputedStyle(div);if(cs){var _10e=cs.backgroundImage;var _10f=(cs.borderTopColor==cs.borderRightColor)||(_10e!=null&&(_10e=="none"||_10e=="url(invalid-url:)"));dojo[_10f?"addClass":"removeClass"](dojo.body(),"dijit_a11y");if(dojo.isIE){div.outerHTML="";}else{dojo.body().removeChild(div);}}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload);}dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(elem,role){var _112=this.getWaiRole(elem);if(role){return (_112.indexOf(role)>-1);}else{return (_112.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _116=(theRole=dojo.attr(elem,"role"))?theRole:"";if(dojo.isFF<3||!this._XhtmlRoles.test(_116)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_116+" ").indexOf(" "+role+" ")<0){var _117=dojo.trim(_116.replace(this._XhtmlRoles,""));var _118=dojo.trim(_116.replace(_117,""));dojo.attr(elem,"role",_118+(_118?" ":"")+role);}}},removeWaiRole:function(elem,role){var _11b=dojo.attr(elem,"role");if(!_11b){return;}if(role){var _11c=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_11b+" ").replace(" "+_11c+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_11f){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_11f);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_11f):!!elem.getAttribute("aria-"+_11f);}},getWaiState:function(elem,_121){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_121);}else{var _122=elem.getAttribute("aria-"+_121);return _122?_122:"";}},setWaiState:function(elem,_124,_125){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_124,_125);}else{elem.setAttribute("aria-"+_124,_125);}},removeWaiState:function(elem,_127){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_127);}else{elem.removeAttribute("aria-"+_127);}}});}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.require("dijit._base");dojo.connect(dojo,"connect",function(_128,_129){if(_128&&dojo.isFunction(_128._onConnect)){_128._onConnect(_129);}});dijit._connectOnUseEventHandler=function(_12a){};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")),postscript:function(_12b,_12c){this.create(_12b,_12c);},create:function(_12d,_12e){this.srcNodeRef=dojo.byId(_12e);this._connects=[];this._deferredConnects=dojo.clone(this._deferredConnects);for(var attr in this.attributeMap){delete this._deferredConnects[attr];}for(attr in this._deferredConnects){if(this[attr]!==dijit._connectOnUseEventHandler){delete this._deferredConnects[attr];}}if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id;}if(_12d){this.params=_12d;dojo.mixin(this,_12d);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();for(attr in this.params){this._onConnect(attr);}}if(this.domNode){this.domNode.setAttribute("widgetId",this.id);}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef;}this._created=true;},_applyAttributes:function(){var _130=function(attr,_132){if((_132.params&&attr in _132.params)||_132[attr]){_132.attr(attr,_132[attr]);}};for(var attr in this.attributeMap){_130(attr,this);}var _134;for(var _135 in this){if(dojo.isFunction(this[_135])&&(_134=_135.match(/^_set([a-zA-Z]*)Attr$/))&&_134[1]){attr=_134[1].charAt(0).toLowerCase()+_134[1].substr(1);_130(attr,this);}}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_136){this.destroyDescendants(_136);this.destroy(_136);},destroy:function(_137){this.uninitialize();dojo.forEach(this._connects,function(_138){dojo.forEach(_138,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_137);dijit.registry.remove(this.id);},destroyRendering:function(_13a){if(this.bgIframe){this.bgIframe.destroy(_13a);delete this.bgIframe;}if(this.domNode){if(!_13a){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_13a){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_13b){dojo.forEach(this.getDescendants(),function(_13c){if(_13c.destroy){_13c.destroy(_13b);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_13e){if(_13e in this._deferredConnects){var _13f=this[this._deferredConnects[_13e]||"domNode"];this.connect(_13f,_13e.toLowerCase(),this[_13e]);delete this._deferredConnects[_13e];}},_setClassAttr:function(_140){var _141=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_141,this["class"]);this["class"]=_140;dojo.addClass(_141,_140);},_setStyleAttr:function(_142){var _143=this[this.attributeMap["style"]||"domNode"];if(_143.style.cssText){_143.style.cssText+="; "+_142;}else{_143.style.cssText=_142;}this["style"]=_142;},setAttribute:function(attr,_145){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_145);},_attrToDom:function(attr,_147){var _148=this.attributeMap[attr];dojo.forEach(dojo.isArray(_148)?_148:[_148],function(_149){var _14a=this[_149.node||_149||"domNode"];var type=_149.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_147)){_147=dojo.hitch(this,_147);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_14a,attr,_147);break;case "innerHTML":_14a.innerHTML=_147;break;case "class":dojo.removeClass(_14a,this[attr]);dojo.addClass(_14a,_147);break;}},this);this[attr]=_147;},attr:function(name,_14d){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}names=this._getAttrNames(name);if(args==2){if(this[names.s]){return this[names.s](_14d)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_14d);}this[name]=_14d;}return this;}else{if(this[names.g]){return this[names.g]();}else{return this[name];}}},_attrPairNames:{},_getAttrNames:function(name){var apn=this._attrPairNames;if(apn[name]){return apn[name];}var uc=name.charAt(0).toUpperCase()+name.substr(1);return apn[name]={n:name+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"};},toString:function(){return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";},getDescendants:function(){if(this.containerNode){var list=dojo.query("[widgetId]",this.containerNode);return list.map(dijit.byNode);}else{return [];}},nodesWithKeyClick:["input","button"],connect:function(obj,_155,_156){var d=dojo;var dco=d.hitch(d,"connect",obj);var _159=[];if(_155=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_156);_159.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE){return m(e);}}));if(d.isFF){_159.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_155="onclick";}_159.push(dco(_155,this,_156));this._connects.push(_159);return _159;},disconnect:function(_15e){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_15e){dojo.forEach(_15e,dojo.disconnect);this._connects.splice(i,1);return;}}},isLeftToRight:function(){return dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_160,_161){if(_160["declaredClass"]&&_160["addChild"]){_160.addChild(this,_161);}else{dojo.place(this.domNode,_160,_161);}return this;}});}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 _164=dijit.byId(id);return _164.isContainer?_164:null;}}return null;},_getSibling:function(_165){var node=this.domNode;do{node=node[_165+"Sibling"];}while(node&&node.nodeType!=1);if(!node){return null;}var id=node.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_169,_16a){if(_16a===undefined){_16a="last";}var _16b=this.containerNode;if(_16a&&typeof _16a=="number"){var _16c=dojo.query("> [widgetId]",_16b);if(_16c&&_16c.length>=_16a){_16b=_16c[_16a-1];_16a="after";}}dojo.place(_169.domNode,_16b,_16a);if(this._started&&!_169._started){_169.startup();}},removeChild:function(_16d){if(typeof _16d=="number"&&_16d>0){_16d=this.getChildren()[_16d];}if(!_16d||!_16d.domNode){return;}var node=_16d.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).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_171){dojo.forEach(this.getChildren(),function(_172){_172.destroyRecursive(_171);});},_getSiblingOfChild:function(_173,dir){var node=_173.domNode;var _176=(dir>0?"nextSibling":"previousSibling");do{node=node[_176];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_177){var _178=this.getChildren();for(var i=0,c;c=_178[i];i++){if(c==_177){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_17b,_17c){var _17d=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_17b,function(code){_17d[code]=prev;});dojo.forEach(_17c,function(code){_17d[code]=next;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_182,_183){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_182);},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 _184=this._getNextFocusableChild(this.focusedChild,1);if(_184.getFocalNodes){this.focusChild(_184,_184.getFocalNodes()[0]);}else{this.focusChild(_184);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _185=this._getNextFocusableChild(this.focusedChild,-1);if(_185.getFocalNodes){var _186=_185.getFocalNodes();this.focusChild(_185,_186[_186.length-1]);}else{this.focusChild(_185);}},focusChild:function(_187,node){if(_187){if(this.focusedChild&&_187!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_187;if(node&&_187.focusFocalNode){_187.focusFocalNode(node);}else{_187.focus();}}},_startupChild:function(_189){if(_189.getFocalNodes){dojo.forEach(_189.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_189.focusNode||_189.domNode;if(_189.isFocusable()){dojo.attr(node,"tabindex",-1);}this._connectNode(node);}},_connectNode:function(node){this.connect(node,"onfocus","_onNodeFocus");this.connect(node,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var func=this._keyNavCodes[evt.charOrCode];if(func){func();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _191=dijit.getEnclosingWidget(evt.target);if(_191&&_191.isFocusable()){this.focusedChild=_191;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_193){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_194,dir){if(_194){_194=this._getSiblingOfChild(_194,dir);}var _196=this.getChildren();for(var i=0;i<_196.length;i++){if(!_194){_194=_196[(dir>0)?0:(_196.length-1)];}if(_194.isFocusable()){return _194;}_194=this._getSiblingOfChild(_194,dir);}return null;}});}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,_skipNodeCache:false,_stringRepl:function(tmpl){var _199=this.declaredClass,_19a=this;return dojo.string.substitute(tmpl,this,function(_19b,key){if(key.charAt(0)=="!"){_19b=_19a[key.substr(1)];}if(typeof _19b=="undefined"){throw new Error(_199+" template:"+key);}if(!_19b){return "";}return key.charAt(0)=="!"?_19b:_19b.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _19d=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_19d)){node=dijit._Templated._createNodesFromText(this._stringRepl(_19d))[0];}else{node=_19d.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _19f=this.srcNodeRef;if(_19f&&_19f.parentNode){_19f.parentNode.replaceChild(node,_19f);}if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_19f);},_fillContent:function(_1a3){var dest=this.containerNode;if(_1a3&&dest){while(_1a3.hasChildNodes()){dest.appendChild(_1a3.firstChild);}}},_attachTemplateNodes:function(_1a5,_1a6){_1a6=_1a6||function(n,p){return n.getAttribute(p);};var _1a9=dojo.isArray(_1a5)?_1a5:(_1a5.all||_1a5.getElementsByTagName("*"));var x=dojo.isArray(_1a5)?0:-1;var _1ab={};for(;x<_1a9.length;x++){var _1ac=(x==-1)?_1a5:_1a9[x];if(this.widgetsInTemplate&&_1a6(_1ac,"dojoType")){continue;}var _1ad=_1a6(_1ac,"dojoAttachPoint");if(_1ad){var _1ae,_1af=_1ad.split(/\s*,\s*/);while((_1ae=_1af.shift())){if(dojo.isArray(this[_1ae])){this[_1ae].push(_1ac);}else{this[_1ae]=_1ac;}}}var _1b0=_1a6(_1ac,"dojoAttachEvent");if(_1b0){var _1b1,_1b2=_1b0.split(/\s*,\s*/);var trim=dojo.trim;while((_1b1=_1b2.shift())){if(_1b1){var _1b4=null;if(_1b1.indexOf(":")!=-1){var _1b5=_1b1.split(":");_1b1=trim(_1b5[0]);_1b4=trim(_1b5[1]);}else{_1b1=trim(_1b1);}if(!_1b4){_1b4=_1b1;}this.connect(_1ac,_1b1,_1b4);}}}var role=_1a6(_1ac,"waiRole");if(role){dijit.setWaiRole(_1ac,role);}var _1b7=_1a6(_1ac,"waiState");if(_1b7){dojo.forEach(_1b7.split(/\s*,\s*/),function(_1b8){if(_1b8.indexOf("-")!=-1){var pair=_1b8.split("-");dijit.setWaiState(_1ac,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1ba,_1bb,_1bc){var _1bd=dijit._Templated._templateCache;var key=_1bb||_1ba;var _1bf=_1bd[key];if(_1bf){if(!_1bf.ownerDocument||_1bf.ownerDocument==dojo.doc){return _1bf;}dojo._destroyElement(_1bf);}if(!_1bb){_1bb=dijit._Templated._sanitizeTemplateString(dojo._getText(_1ba));}_1bb=dojo.string.trim(_1bb);if(_1bc||_1bb.match(/\$\{([^\}]+)\}/g)){return (_1bd[key]=_1bb);}else{return (_1bd[key]=dijit._Templated._createNodesFromText(_1bb)[0]);}};dijit._Templated._sanitizeTemplateString=function(_1c0){if(_1c0){_1c0=_1c0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1c1=_1c0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1c1){_1c0=_1c1[1];}}else{_1c0="";}return _1c0;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1c2=dijit._Templated._templateCache;for(var key in _1c2){var _1c4=_1c2[key];if(!isNaN(_1c4.nodeType)){dojo._destroyElement(_1c4);}delete _1c2[key];}});}(function(){var _1c5={cell:{re:/^<t[dh][\s\r\n>]/i,pre:"<table><tbody><tr>",post:"</tr></tbody></table>"},row:{re:/^<tr[\s\r\n>]/i,pre:"<table><tbody>",post:"</tbody></table>"},section:{re:/^<(thead|tbody|tfoot)[\s\r\n>]/i,pre:"<table>",post:"</table>"}};var tn;dijit._Templated._createNodesFromText=function(text){if(tn&&tn.ownerDocument!=dojo.doc){dojo._destroyElement(tn);tn=undefined;}if(!tn){tn=dojo.doc.createElement("div");tn.style.display="none";dojo.body().appendChild(tn);}var _1c8="none";var _1c9=text.replace(/^\s+/,"");for(var type in _1c5){var map=_1c5[type];if(map.re.test(_1c9)){_1c8=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_1c8];var _1cd=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _1ce=[];while(_1cd.firstChild){_1ce.push(_1cd.removeChild(_1cd.firstChild));}tn.innerHTML="";return _1ce;};})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});}if(!dojo._hasResource["dijit.Menu"]){dojo._hasResource["dijit.Menu"]=true;dojo.provide("dijit.Menu");dojo.declare("dijit.Menu",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{constructor:function(){this._bindings=[];},templateString:"<table class=\"dijit dijitMenu dijitReset dijitMenuTable\" waiRole=\"menu\" dojoAttachEvent=\"onkeypress:_onKeyPress\">"+"<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>"+"</table>",targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,parentMenu:null,popupDelay:500,_contextMenuWithMouse:false,postCreate:function(){if(this.contextMenuForWindow){this.bindDomNode(dojo.body());}else{dojo.forEach(this.targetNodeIds,this.bindDomNode,this);}this.connectKeyNavHandlers([dojo.keys.UP_ARROW],[dojo.keys.DOWN_ARROW]);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1cf){_1cf.startup();});this.startupKeyNavChildren();this.inherited(arguments);},onExecute:function(){},onCancel:function(_1d0){},_moveToPopup:function(evt){if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){this.focusedChild._onClick(evt);}},_onKeyPress:function(evt){if(evt.ctrlKey||evt.altKey){return;}switch(evt.charOrCode){case dojo.keys.RIGHT_ARROW:this._moveToPopup(evt);dojo.stopEvent(evt);break;case dojo.keys.LEFT_ARROW:if(this.parentMenu){this.onCancel(false);}else{dojo.stopEvent(evt);}break;}},onItemHover:function(item){this.focusChild(item);if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);}},_onChildBlur:function(item){dijit.popup.close(item.popup);item._blur();this._stopPopupTimer();},onItemUnhover:function(item){},_stopPopupTimer:function(){if(this.hover_timer){clearTimeout(this.hover_timer);this.hover_timer=null;}},_getTopMenu:function(){for(var top=this;top.parentMenu;top=top.parentMenu){}return top;},onItemClick:function(item,evt){if(item.disabled){return false;}if(item.popup){if(!this.is_open){this._openPopup();}}else{this.onExecute();item.onClick(evt);}},_iframeContentWindow:function(_1d9){var win=dijit.getDocumentWindow(dijit.Menu._iframeContentDocument(_1d9))||dijit.Menu._iframeContentDocument(_1d9)["__parent__"]||(_1d9.name&&dojo.doc.frames[_1d9.name])||null;return win;},_iframeContentDocument:function(_1db){var doc=_1db.contentDocument||(_1db.contentWindow&&_1db.contentWindow.document)||(_1db.name&&dojo.doc.frames[_1db.name]&&dojo.doc.frames[_1db.name].document)||null;return doc;},bindDomNode:function(node){node=dojo.byId(node);var win=dijit.getDocumentWindow(node.ownerDocument);if(node.tagName.toLowerCase()=="iframe"){win=this._iframeContentWindow(node);node=dojo.withGlobal(win,dojo.body);}var cn=(node==dojo.body()?dojo.doc:node);node[this.id]=this._bindings.push([dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,"_openMyself"),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")]);},unBindDomNode:function(_1e0){var node=dojo.byId(_1e0);if(node){var bid=node[this.id]-1,b=this._bindings[bid];dojo.forEach(b,dojo.disconnect);delete this._bindings[bid];}},_contextKey:function(e){this._contextMenuWithMouse=false;if(e.keyCode==dojo.keys.F10){dojo.stopEvent(e);if(e.shiftKey&&e.type=="keydown"){var _e={target:e.target,pageX:e.pageX,pageY:e.pageY};_e.preventDefault=_e.stopPropagation=function(){};window.setTimeout(dojo.hitch(this,function(){this._openMyself(_e);}),1);}}},_contextMouse:function(e){this._contextMenuWithMouse=true;},_openMyself:function(e){if(this.leftClickToOpen&&e.button>0){return;}dojo.stopEvent(e);var x,y;if(dojo.isSafari||this._contextMenuWithMouse){x=e.pageX;y=e.pageY;}else{var _1ea=dojo.coords(e.target,true);x=_1ea.x+10;y=_1ea.y+10;}var self=this;var _1ec=dijit.getFocus(this);function closeAndRestoreFocus(){dijit.focus(_1ec);dijit.popup.close(self);};dijit.popup.open({popup:this,x:x,y:y,onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus,orient:this.isLeftToRight()?"L":"R"});this.focus();this._onBlur=function(){this.inherited("_onBlur",arguments);dijit.popup.close(this);};},onOpen:function(e){this.isShowingNow=true;},onClose:function(){this._stopPopupTimer();this.parentMenu=null;this.isShowingNow=false;this.currentPopup=null;if(this.focusedChild){this._onChildBlur(this.focusedChild);this.focusedChild=null;}},_openPopup:function(){this._stopPopupTimer();var _1ee=this.focusedChild;var _1ef=_1ee.popup;if(_1ef.isShowingNow){return;}_1ef.parentMenu=this;var self=this;dijit.popup.open({parent:this,popup:_1ef,around:_1ee.domNode,orient:this.isLeftToRight()?{"TR":"TL","TL":"TR"}:{"TL":"TR","TR":"TL"},onCancel:function(){dijit.popup.close(_1ef);_1ee.focus();self.currentPopup=null;}});this.currentPopup=_1ef;if(_1ef.focus){_1ef.focus();}},uninitialize:function(){dojo.forEach(this.targetNodeIds,this.unBindDomNode,this);this.inherited(arguments);}});dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon ${iconClass}\" dojoAttachPoint=\"iconNode\"></div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{label:{node:"containerNode",type:"innerHTML"}}),label:"",iconClass:"",disabled:false,postCreate:function(){dojo.setSelectable(this.domNode,false);dojo.attr(this.containerNode,"id",this.id+"_text");dijit.setWaiState(this.domNode,"labelledby",this.id+"_text");},_onHover:function(){this.getParent().onItemHover(this);},_onUnhover:function(){this.getParent().onItemUnhover(this);},_onClick:function(evt){this.getParent().onItemClick(this,evt);dojo.stopEvent(evt);},onClick:function(evt){},focus:function(){dojo.addClass(this.domNode,"dijitMenuItemHover");try{dijit.focus(this.focusNode);}catch(e){}},_blur:function(){dojo.removeClass(this.domNode,"dijitMenuItemHover");},setLabel:function(_1f3){dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");this.attr("label",_1f3);},setDisabled:function(_1f4){dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");this.attr("disabled",_1f4);},_setDisabledAttr:function(_1f5){this.disabled=_1f5;dojo[_1f5?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");dijit.setWaiState(this.focusNode,"disabled",_1f5?"true":"false");}});dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){if(this.srcNodeRef){var _1f6=dojo.query("*",this.srcNodeRef);dijit.PopupMenuItem.superclass._fillContent.call(this,_1f6[0]);this.dropDownContainer=this.srcNodeRef;}},startup:function(){if(this._started){return;}this.inherited(arguments);if(!this.popup){var node=dojo.query("[widgetId]",this.dropDownContainer)[0];this.popup=dijit.byNode(node);}dojo.body().appendChild(this.popup.domNode);this.popup.domNode.style.display="none";dojo.style(this.arrowWrapper,"display","");dijit.setWaiState(this.focusNode,"haspopup","true");},destroyDescendants:function(){if(this.popup){this.popup.destroyRecursive();delete this.popup;}this.inherited(arguments);}});dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:"<tr class=\"dijitMenuSeparator\"><td colspan=3>"+"<div class=\"dijitMenuSeparatorTop\"></div>"+"<div class=\"dijitMenuSeparatorBottom\"></div>"+"</td></tr>",postCreate:function(){dojo.setSelectable(this.domNode,false);},isFocusable:function(){return false;}});dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\""+"dojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">"+"<td class=\"dijitReset\" waiRole=\"presentation\"><div class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon ${iconClass}\" dojoAttachPoint=\"iconNode\">"+"<div class=\"dijitCheckedMenuItemIconChar\">&#10003;</div>"+"</div></td>"+"<td class=\"dijitReset dijitMenuItemLabel\" dojoAttachPoint=\"containerNode,labelNode\"></td>"+"<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">"+"<div dojoAttachPoint=\"arrowWrapper\" style=\"display: none\">"+"<div class=\"dijitMenuExpand\"></div>"+"<span class=\"dijitMenuExpandA11y\">+</span>"+"</div>"+"</td>"+"</tr>",checked:false,_setCheckedAttr:function(_1f8){dojo.toggleClass(this.iconNode,"dijitCheckedMenuItemIconChecked",_1f8);dijit.setWaiState(this.domNode,"checked",_1f8);this.checked=_1f8;},onChange:function(_1f9){},_onClick:function(e){if(!this.disabled){this.attr("checked",!this.checked);this.onChange(this.checked);}this.inherited(arguments);}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_1fb){_1fb.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_1fc,_1fd){var node=this.domNode;if(_1fc){dojo.marginBox(node,_1fc);if(_1fc.t){node.style.top=_1fc.t+"px";}if(_1fc.l){node.style.left=_1fc.l+"px";}}var mb=_1fd||{};dojo.mixin(mb,_1fc||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(node),mb);}var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var be=dojo._getBorderExtents(node,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(node,cs);this._contentBox={l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_205){if(_205.baseClass){dojo.addClass(_205.domNode,this.baseClass+"-"+_205.baseClass);}},addChild:function(_206,_207){this.inherited(arguments);if(this._started){this._setupChild(_206);}},removeChild:function(_208){if(_208.baseClass){dojo.removeClass(_208.domNode,this.baseClass+"-"+_208.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(node,mb){var cs=dojo.getComputedStyle(node);var me=dojo._getMarginExtents(node,cs);var pb=dojo._getPadBorderExtents(node,cs);return {l:dojo._toPixelValue(node,cs.paddingLeft),t:dojo._toPixelValue(node,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _20e=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_211,dim){_211.resize?_211.resize(dim):dojo.marginBox(_211.domNode,dim);dojo.mixin(_211,dojo.marginBox(_211.domNode));dojo.mixin(_211,dim);};dijit.layout.layoutChildren=function(_213,dim,_215){dim=dojo.mixin({},dim);dojo.addClass(_213,"dijitLayoutContainer");_215=dojo.filter(_215,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_215,function(item){return item.layoutAlign=="client";}));dojo.forEach(_215,function(_218){var elm=_218.domNode,pos=_218.layoutAlign;var _21b=elm.style;_21b.left=dim.l+"px";_21b.top=dim.t+"px";_21b.bottom=_21b.right="auto";dojo.addClass(elm,"dijitAlign"+_20e(pos));if(pos=="top"||pos=="bottom"){size(_218,{w:dim.w});dim.h-=_218.h;if(pos=="top"){dim.t+=_218.h;}else{_21b.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_218,{h:dim.h});dim.w-=_218.w;if(pos=="left"){dim.l+=_218.w;}else{_21b.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_218,dim);}}}});};})();}if(!dojo._hasResource["dojo.cookie"]){dojo._hasResource["dojo.cookie"]=true;dojo.provide("dojo.cookie");dojo.cookie=function(name,_21d,_21e){var c=document.cookie;if(arguments.length==1){var _220=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(name)+"=([^;]*)"));return _220?decodeURIComponent(_220[1]):undefined;}else{_21e=_21e||{};var exp=_21e.expires;if(typeof exp=="number"){var d=new Date();d.setTime(d.getTime()+exp*24*60*60*1000);exp=_21e.expires=d;}if(exp&&exp.toUTCString){_21e.expires=exp.toUTCString();}_21d=encodeURIComponent(_21d);var _223=name+"="+_21d,_224;for(_224 in _21e){_223+="; "+_224;var _225=_21e[_224];if(_225!==true){_223+="="+_225;}}document.cookie=_223;}};dojo.cookie.isSupported=function(){if(!("cookieEnabled" in navigator)){this("__djCookieTest__","CookiesAllowed");navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";if(navigator.cookieEnabled){this("__djCookieTest__","",{expires:-1});}}return navigator.cookieEnabled;};}if(!dojo._hasResource["dijit.layout.BorderContainer"]){dojo._hasResource["dijit.layout.BorderContainer"]=true;dojo.provide("dijit.layout.BorderContainer");dojo.declare("dijit.layout.BorderContainer",dijit.layout._LayoutWidget,{design:"headline",gutters:true,liveSplitters:true,persist:false,baseClass:"dijitBorderContainer",_splitterClass:"dijit.layout._Splitter",postMixInProperties:function(){if(!this.gutters){this.baseClass+="NoGutter";}this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this._splitters={};this._splitterThickness={};},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),this._setupChild,this);this.inherited(arguments);},_setupChild:function(_226){var _227=_226.region;if(_227){this.inherited(arguments);dojo.addClass(_226.domNode,this.baseClass+"Pane");var ltr=this.isLeftToRight();if(_227=="leading"){_227=ltr?"left":"right";}if(_227=="trailing"){_227=ltr?"right":"left";}this["_"+_227]=_226.domNode;this["_"+_227+"Widget"]=_226;if((_226.splitter||this.gutters)&&!this._splitters[_227]){var _229=dojo.getObject(_226.splitter?this._splitterClass:"dijit.layout._Gutter");var flip={left:"right",right:"left",top:"bottom",bottom:"top",leading:"trailing",trailing:"leading"};var _22b=dojo.query("[region="+flip[_226.region]+"]",this.domNode);var _22c=new _229({container:this,child:_226,region:_227,oppNode:_22b[0],live:this.liveSplitters});_22c.isSplitter=true;this._splitters[_227]=_22c.domNode;dojo.place(this._splitters[_227],_226.domNode,"after");this._computeSplitterThickness(_227);_22c.startup();}_226.region=_227;}},_computeSplitterThickness:function(_22d){var re=new RegExp("top|bottom");this._splitterThickness[_22d]=dojo.marginBox(this._splitters[_22d])[(re.test(_22d)?"h":"w")];},layout:function(){this._layoutChildren();},addChild:function(_22f,_230){this.inherited(arguments);if(this._started){this._layoutChildren();}},removeChild:function(_231){var _232=_231.region;var _233=this._splitters[_232];if(_233){dijit.byNode(_233).destroy();delete this._splitters[_232];delete this._splitterThickness[_232];}this.inherited(arguments);delete this["_"+_232];delete this["_"+_232+"Widget"];if(this._started){this._layoutChildren(_231.region);}dojo.removeClass(_231.domNode,this.baseClass+"Pane");},getChildren:function(){return dojo.filter(this.inherited(arguments),function(_234){return !_234.isSplitter;});},getSplitter:function(_235){var _236=this._splitters[_235];return (_236)?dijit.byNode(_236):null;},resize:function(_237,_238){if(!this.cs||!this.pe){var node=this.domNode;this.cs=dojo.getComputedStyle(node);this.pe=dojo._getPadExtents(node,this.cs);this.pe.r=dojo._toPixelValue(node,this.cs.paddingRight);this.pe.b=dojo._toPixelValue(node,this.cs.paddingBottom);dojo.style(node,"padding","0px");}this.inherited(arguments);},_layoutChildren:function(_23a){var _23b=(this.design=="sidebar");var _23c=0,_23d=0,_23e=0,_23f=0;var _240={},_241={},_242={},_243={},_244=(this._center&&this._center.style)||{};var _245=/left|right/.test(_23a);var cs=this.cs;var pe=this.pe;var _248=!_23a||(!_245&&!_23b);var _249=!_23a||(_245&&_23b);if(this._top){_240=_249&&this._top.style;_23c=dojo.marginBox(this._top).h;}if(this._left){_241=_248&&this._left.style;_23e=dojo.marginBox(this._left).w;}if(this._right){_242=_248&&this._right.style;_23f=dojo.marginBox(this._right).w;}if(this._bottom){_243=_249&&this._bottom.style;_23d=dojo.marginBox(this._bottom).h;}var _24a=this._splitters;var _24b=_24a.top;var _24c=_24a.bottom;var _24d=_24a.left;var _24e=_24a.right;var _24f=this._splitterThickness;var _250=_24f.top||0;var _251=_24f.left||0;var _252=_24f.right||0;var _253=_24f.bottom||0;if(_251>50||_252>50){setTimeout(dojo.hitch(this,function(){for(var _254 in this._splitters){this._computeSplitterThickness(_254);}this._layoutChildren();}),50);return false;}var _255={left:(_23b?_23e+_251:0)+pe.l+"px",right:(_23b?_23f+_252:0)+pe.r+"px"};if(_24b){dojo.mixin(_24b.style,_255);_24b.style.top=_23c+pe.t+"px";}if(_24c){dojo.mixin(_24c.style,_255);_24c.style.bottom=_23d+pe.b+"px";}_255={top:(_23b?0:_23c+_250)+pe.t+"px",bottom:(_23b?0:_23d+_253)+pe.b+"px"};if(_24d){dojo.mixin(_24d.style,_255);_24d.style.left=_23e+pe.l+"px";}if(_24e){dojo.mixin(_24e.style,_255);_24e.style.right=_23f+pe.r+"px";}dojo.mixin(_244,{top:pe.t+_23c+_250+"px",left:pe.l+_23e+_251+"px",right:pe.r+_23f+_252+"px",bottom:pe.b+_23d+_253+"px"});var _256={top:_23b?pe.t+"px":_244.top,bottom:_23b?pe.b+"px":_244.bottom};dojo.mixin(_241,_256);dojo.mixin(_242,_256);_241.left=pe.l+"px";_242.right=pe.r+"px";_240.top=pe.t+"px";_243.bottom=pe.b+"px";if(_23b){_240.left=_243.left=_23e+(this.isLeftToRight()?_251:0)+pe.l+"px";_240.right=_243.right=_23f+(this.isLeftToRight()?0:_252)+pe.r+"px";}else{_240.left=_243.left=pe.l+"px";_240.right=_243.right=pe.r+"px";}var _257=this._borderBox.h-pe.t-pe.b;var _258=_257-(_23c+_250+_23d+_253);var _259=_23b?_257:_258;var _25a=this._borderBox.w-pe.l-pe.r;var _25b=_25a-(_23e+_251+_23f+_252);var _25c=_23b?_25b:_25a;var dim={top:{w:_25c,h:_23c},bottom:{w:_25c,h:_23d},left:{w:_23e,h:_259},right:{w:_23f,h:_259},center:{h:_258,w:_25b}};var _25e=dojo.isIE||dojo.some(this.getChildren(),function(_25f){return _25f.domNode.tagName=="TEXTAREA";});if(_25e){var _260=function(_261,dim){if(_261){(_261.resize?_261.resize(dim):dojo.marginBox(_261.domNode,dim));}};if(_24d){_24d.style.height=_259;}if(_24e){_24e.style.height=_259;}_260(this._leftWidget,{h:_259},dim.left);_260(this._rightWidget,{h:_259},dim.right);if(_24b){_24b.style.width=_25c;}if(_24c){_24c.style.width=_25c;}_260(this._topWidget,{w:_25c},dim.top);_260(this._bottomWidget,{w:_25c},dim.bottom);_260(this._centerWidget,dim.center);}else{var _263={};if(_23a){_263[_23a]=_263.center=true;if(/top|bottom/.test(_23a)&&this.design!="sidebar"){_263.left=_263.right=true;}else{if(/left|right/.test(_23a)&&this.design=="sidebar"){_263.top=_263.bottom=true;}}}dojo.forEach(this.getChildren(),function(_264){if(_264.resize&&(!_23a||_264.region in _263)){_264.resize(null,dim[_264.region]);}},this);}},destroy:function(){for(region in this._splitters){var _265=this._splitters[region];dijit.byNode(_265).destroy();dojo._destroyElement(_265);}delete this._splitters;delete this._splitterThickness;this.inherited(arguments);}});dojo.extend(dijit._Widget,{region:"",splitter:false,minSize:0,maxSize:Infinity});dojo.declare("dijit.layout._Splitter",[dijit._Widget,dijit._Templated],{live:true,templateString:"<div class=\"dijitSplitter\" dojoAttachEvent=\"onkeypress:_onKeyPress,onmousedown:_startDrag\" tabIndex=\"0\" waiRole=\"separator\"><div class=\"dijitSplitterThumb\"></div></div>",postCreate:function(){this.inherited(arguments);this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitSplitter"+(this.horizontal?"H":"V"));this._factor=/top|left/.test(this.region)?1:-1;this._minSize=this.child.minSize;this._computeMaxSize();this.connect(this.container,"layout",dojo.hitch(this,this._computeMaxSize));this._cookieName=this.container.id+"_"+this.region;if(this.container.persist){var _266=dojo.cookie(this._cookieName);if(_266){this.child.domNode.style[this.horizontal?"height":"width"]=_266;}}},_computeMaxSize:function(){var dim=this.horizontal?"h":"w";var _268=dojo.contentBox(this.container.domNode)[dim]-(this.oppNode?dojo.marginBox(this.oppNode)[dim]:0);this._maxSize=Math.min(this.child.maxSize,_268);},_startDrag:function(e){if(!this.cover){this.cover=dojo.doc.createElement("div");dojo.addClass(this.cover,"dijitSplitterCover");dojo.place(this.cover,this.child.domNode,"after");}else{this.cover.style.zIndex=1;}if(this.fake){dojo._destroyElement(this.fake);}if(!(this._resize=this.live)){(this.fake=this.domNode.cloneNode(true)).removeAttribute("id");dojo.addClass(this.domNode,"dijitSplitterShadow");dojo.place(this.fake,this.domNode,"after");}dojo.addClass(this.domNode,"dijitSplitterActive");var _26a=this._factor,max=this._maxSize,min=this._minSize||10;var _26d=this.horizontal;var axis=_26d?"pageY":"pageX";var _26f=e[axis];var _270=this.domNode.style;var dim=_26d?"h":"w";var _272=dojo.marginBox(this.child.domNode)[dim];var _273=this.region;var _274=parseInt(this.domNode.style[_273],10);var _275=this._resize;var mb={};var _277=this.child.domNode;var _278=dojo.hitch(this.container,this.container._layoutChildren);var de=dojo.doc.body;this._handlers=(this._handlers||[]).concat([dojo.connect(de,"onmousemove",this._drag=function(e,_27b){var _27c=e[axis]-_26f,_27d=_26a*_27c+_272,_27e=Math.max(Math.min(_27d,max),min);if(_275||_27b){mb[dim]=_27e;dojo.marginBox(_277,mb);_278(_273);}_270[_273]=_26a*_27c+_274+(_27e-_27d)+"px";}),dojo.connect(de,"onmouseup",this,"_stopDrag")]);dojo.stopEvent(e);},_stopDrag:function(e){try{if(this.cover){this.cover.style.zIndex=-1;}if(this.fake){dojo._destroyElement(this.fake);}dojo.removeClass(this.domNode,"dijitSplitterActive");dojo.removeClass(this.domNode,"dijitSplitterShadow");this._drag(e);this._drag(e,true);}finally{this._cleanupHandlers();delete this._drag;}if(this.container.persist){dojo.cookie(this._cookieName,this.child.domNode.style[this.horizontal?"height":"width"]);}},_cleanupHandlers:function(){dojo.forEach(this._handlers,dojo.disconnect);delete this._handlers;},_onKeyPress:function(e){this._resize=true;var _281=this.horizontal;var tick=1;var dk=dojo.keys;switch(e.charOrCode){case _281?dk.UP_ARROW:dk.LEFT_ARROW:tick*=-1;break;case _281?dk.DOWN_ARROW:dk.RIGHT_ARROW:break;default:return;}var _284=dojo.marginBox(this.child.domNode)[_281?"h":"w"]+this._factor*tick;var mb={};mb[this.horizontal?"h":"w"]=Math.max(Math.min(_284,this._maxSize),this._minSize);dojo.marginBox(this.child.domNode,mb);this.container._layoutChildren(this.region);dojo.stopEvent(e);},destroy:function(){this._cleanupHandlers();delete this.child;delete this.container;delete this.fake;this.inherited(arguments);}});dojo.declare("dijit.layout._Gutter",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"dijitGutter\" waiRole=\"presentation\"></div>",postCreate:function(){this.horizontal=/top|bottom/.test(this.region);dojo.addClass(this.domNode,"dijitGutter"+(this.horizontal?"H":"V"));}});}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,baseClass:"dijitContentPane",doLayout:"auto",postMixInProperties:function(){this.inherited(arguments);var _286=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_286);this.errorMessage=dojo.string.substitute(this.errorMessage,_286);},postCreate:function(){this.domNode.title="";if(!this.containerNode){this.containerNode=this.domNode;}if(this.preload){this._loadCheck();}if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _287=dojo.query(">",this.containerNode),_288=_287.filter("[widgetId]");if(_287.length==1&&_288.length==1){this.isContainer=true;this._singleChild=dijit.byNode(_288[0]);}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(href){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.  Use attr('href', ...) instead.","","2.0");return this.attr("href",data);},_setHrefAttr:function(href){this.href=href;return this._prepareLoad();},setContent:function(data){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",data);},_setContentAttr:function(data){if(!this._isDownloaded){this.href="";this._onUnloadHandler();}this._setContent(data||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets();}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}this._onLoadHandler();},_getContentAttr:function(){return this.containerNode.innerHTML;},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(arguments);},resize:function(size){dojo.marginBox(this.domNode,size);var node=this.containerNode,mb=dojo.mixin(dojo.marginBox(node),size||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(node,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_292){this.cancel();this.isLoaded=false;this._loadCheck(_292);},_isShown:function(){if("open" in this){return this.open;}else{var node=this.domNode;return (node.style.display!="none")&&(node.style.visibility!="hidden");}},_loadCheck:function(_294){var _295=this._isShown();if(this.href&&(_294||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&_295&&!this._xhrDfd)||(!this.isLoaded&&_295&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var self=this;var _297={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_297,this.ioArgs);}var hand=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_297);hand.addCallback(function(html){try{self.onDownloadEnd.call(self);self._isDownloaded=true;self.attr.call(self,"content",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;while(node.firstChild){dojo._destroyElement(node.firstChild);}if(typeof cont=="string"){if(this.extractContent){var _29d=cont.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_29d){cont=_29d[1];}}node.innerHTML=cont;}else{if(cont.domNode){node.appendChild(cont.domNode);}else{if(cont.nodeType){node.appendChild(cont);}else{dojo.forEach(cont,function(n){node.appendChild(n.cloneNode(true));});}}}}catch(e){var _29f=this.onContentError(e);try{node.innerHTML=_29f;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}}},_onError:function(type,err,_2a2){var _2a3=this["on"+type+"Error"].call(this,err);if(_2a2){console.error(_2a2,err);}else{if(_2a3){this._setContent.call(this,_2a3);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(e){},onUnload:function(e){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_2a6){},onDownloadError:function(_2a7){return this.errorMessage;},onDownloadEnd:function(){}});}dojo.i18n._preloadLocalizations("dojo.nls.abiliba-layout",["xx","ROOT","en","en-us"]);

