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

/*
	This is a compiled version of Dojo, built for deployment and not for
	development. To get an editable version, please visit:

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

dojo.provide("dijit.dijit");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.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 _9e=[],_9f=1000,_a0=1;this.prepare=function(_a1){dojo.body().appendChild(_a1);var s=_a1.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_a3){var _a4=_a3.popup,_a5=_a3.orient||{"BL":"TL","TL":"BL"},_a6=_a3.around,id=(_a3.around&&_a3.around.id)?(_a3.around.id+"_dropdown"):("popup_"+_a0++);var _a8=dojo.doc.createElement("div");dijit.setWaiRole(_a8,"presentation");_a8.id=id;_a8.className="dijitPopup";_a8.style.zIndex=_9f+_9e.length;_a8.style.left=_a8.style.top="0px";_a8.style.visibility="hidden";if(_a3.parent){_a8.dijitPopupParent=_a3.parent.id;}dojo.body().appendChild(_a8);var s=_a4.domNode.style;s.display="";s.visibility="";s.position="";_a8.appendChild(_a4.domNode);var _aa=new dijit.BackgroundIframe(_a8);var _ab=_a6?dijit.placeOnScreenAroundElement(_a8,_a6,_a5,_a4.orient?dojo.hitch(_a4,"orient"):null):dijit.placeOnScreen(_a8,_a3,_a5=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_a8.style.visibility="visible";var _ac=[];var _ad=function(){for(var pi=_9e.length-1;pi>0&&_9e[pi].parent===_9e[pi-1].widget;pi--){}return _9e[pi];};_ac.push(dojo.connect(_a8,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a3.onCancel){dojo.stopEvent(evt);_a3.onCancel();}else{if(evt.charOrCode==dojo.keys.TAB){dojo.stopEvent(evt);var _b0=_ad();if(_b0&&_b0.onCancel){_b0.onCancel();}}}}));if(_a4.onCancel){_ac.push(dojo.connect(_a4,"onCancel",null,_a3.onCancel));}_ac.push(dojo.connect(_a4,_a4.onExecute?"onExecute":"onChange",null,function(){var _b1=_ad();if(_b1&&_b1.onExecute){_b1.onExecute();}}));_9e.push({wrapper:_a8,iframe:_aa,widget:_a4,parent:_a3.parent,onExecute:_a3.onExecute,onCancel:_a3.onCancel,onClose:_a3.onClose,handlers:_ac});if(_a4.onOpen){_a4.onOpen(_ab);}return _ab;};this.close=function(_b2){while(dojo.some(_9e,function(_b3){return _b3.widget==_b2;})){var top=_9e.pop(),_b5=top.wrapper,_b6=top.iframe,_b7=top.widget,_b8=top.onClose;if(_b7.onClose){_b7.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b7||!_b7.domNode){return;}this.prepare(_b7.domNode);_b6.destroy();dojo._destroyElement(_b5);if(_b8){_b8();}}};}();dijit._frames=new function(){var _b9=[];this.pop=function(){var _ba;if(_b9.length){_ba=_b9.pop();_ba.style.display="";}else{if(dojo.isIE){var _bb=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bc="<iframe src='"+_bb+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_ba=dojo.doc.createElement(_bc);}else{_ba=dojo.doc.createElement("iframe");_ba.src="javascript:\"\"";_ba.className="dijitBackgroundIframe";}_ba.tabIndex=-1;dojo.body().appendChild(_ba);}return _ba;};this.push=function(_bd){_bd.style.display="";if(dojo.isIE){_bd.style.removeExpression("width");_bd.style.removeExpression("height");}_b9.push(_bd);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_bf){if(!_bf.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _c0=dijit._frames.pop();_bf.appendChild(_c0);if(dojo.isIE){_c0.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_bf.id+"').offsetWidth");_c0.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_bf.id+"').offsetHeight");}this.iframe=_c0;}};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(_c1){_c1=dojo.byId(_c1);var _c2=_c1.ownerDocument.body;var _c3=_c2.parentNode;if(dojo.isFF==2||_c1==_c2||_c1==_c3){_c1.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _c5=dojo.doc.compatMode!="BackCompat";var _c6=(_c5&&!dojo.isSafari)?_c3:_c2;function addPseudoAttrs(_c7){var _c8=_c7.parentNode;var _c9=_c7.offsetParent;if(_c9==null){_c7=_c6;_c9=_c3;_c8=null;}_c7._offsetParent=(_c9==_c2)?_c6:_c9;_c7._parent=(_c8==_c2)?_c6:_c8;_c7._start={H:_c7.offsetLeft,V:_c7.offsetTop};_c7._scroll={H:_c7.scrollLeft,V:_c7.scrollTop};_c7._renderedSize={H:_c7.offsetWidth,V:_c7.offsetHeight};var bp=dojo._getBorderExtents(_c7);_c7._borderStart={H:bp.l,V:bp.t};_c7._borderSize={H:bp.w,V:bp.h};_c7._clientSize=(_c7._offsetParent==_c3&&dojo.isSafari&&_c5)?{H:_c3.clientWidth,V:_c3.clientHeight}:{H:_c7.clientWidth,V:_c7.clientHeight};_c7._scrollBarSize={V:null,H:null};for(var dir in _c7._scrollBarSize){var _cc=_c7._renderedSize[dir]-_c7._clientSize[dir]-_c7._borderSize[dir];_c7._scrollBarSize[dir]=(_c7._clientSize[dir]>0&&_cc>=15&&_cc<=17)?_cc:0;}_c7._isScrollable={V:null,H:null};for(dir in _c7._isScrollable){var _cd=dir=="H"?"V":"H";_c7._isScrollable[dir]=_c7==_c6||_c7._scroll[dir]||_c7._scrollBarSize[_cd];}};var _ce=_c1;while(_ce!=null){addPseudoAttrs(_ce);var _cf=_ce._parent;if(_cf){_cf._child=_ce;}_ce=_cf;}for(var dir in _c6._renderedSize){_c6._renderedSize[dir]=Math.min(_c6._clientSize[dir],_c6._renderedSize[dir]);}var _d1=_c1;while(_d1!=_c6){_ce=_d1._parent;if(_ce.tagName=="TD"){var _d2=_ce._parent._parent._parent;if(_d2._offsetParent==_d1._offsetParent&&_ce._offsetParent!=_d1._offsetParent){_ce=_d2;}}var _d3=_d1==_c6||(_ce._offsetParent!=_d1._offsetParent);for(dir in _d1._start){var _d4=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_ce._clientSize.H>0){var _d5=_ce.scrollWidth-_ce._clientSize.H;if(_d5>0){_ce._scroll.H-=_d5;}}if(dojo.isIE&&_ce._offsetParent.tagName=="TABLE"){_ce._start[dir]-=_ce._offsetParent._borderStart[dir];_ce._borderStart[dir]=_ce._borderSize[dir]=0;}if(_ce._clientSize[dir]==0){_ce._renderedSize[dir]=_ce._clientSize[dir]=_ce._child._clientSize[dir];if(rtl&&dir=="H"){_ce._start[dir]-=_ce._renderedSize[dir];}}else{_ce._renderedSize[dir]-=_ce._borderSize[dir]+_ce._scrollBarSize[dir];}_ce._start[dir]+=_ce._borderStart[dir];var _d6=_d1._start[dir]-(_d3?0:_ce._start[dir])-_ce._scroll[dir];var _d7=_d6+_d1._renderedSize[dir]-_ce._renderedSize[dir];var _d8,_d9=(dir=="H")?"scrollLeft":"scrollTop";var _da=(dir=="H"&&rtl);var _db=_da?-_d7:_d6;var _dc=_da?-_d6:_d7;if(_db<=0){_d8=_db;}else{if(_dc<=0){_d8=0;}else{if(_db<_dc){_d8=_db;}else{_d8=_dc;}}}var _dd=0;if(_d8!=0){var _de=_ce[_d9];_ce[_d9]+=_da?-_d8:_d8;_dd=_ce[_d9]-_de;_d6-=_dd;_dc-=_da?-_dd:_dd;}_ce._renderedSize[dir]=_d1._renderedSize[dir]+_ce._scrollBarSize[dir]-((_ce._isScrollable[dir]&&_dc>0)?_dc:0);_ce._start[dir]+=(_d6>=0||!_ce._isScrollable[dir])?_d6:0;}_d1=_ce;}};}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 _e1=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _e4=d.boxModel.replace(/-/,"");var _e5={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e1,dj_opera8:maj(_e1)==8,dj_opera9:maj(_e1)==9,dj_khtml:d.isKhtml,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_e5["dj_"+_e4]=true;var _e6=dojo.doc.documentElement;for(var p in _e5){if(_e5[p]){if(_e6.className){_e6.className+=" "+p;}else{_e6.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e6.className+=" dijitRtl";for(var p in _e5){if(_e5[p]){_e6.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,_ea,_eb,_ec,obj,_ee,_ef){if(obj!=this._obj){this.stop();this._initialDelay=_ef||500;this._subsequentDelay=_ee||0.9;this._obj=obj;this._evt=evt;this._node=_eb;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_ea,_ec);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(_f0,_f1,_f2,_f3,_f4,_f5){if(_f1.keyCode){_f1.charOrCode=_f1.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_f1.charCode){_f1.charOrCode=String.fromCharCode(_f1.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f0,"onkeypress",this,function(evt){if(evt.charOrCode==_f1.charOrCode&&(_f1.ctrlKey===undefined||_f1.ctrlKey==evt.ctrlKey)&&(_f1.altKey===undefined||_f1.altKey==evt.ctrlKey)&&(_f1.shiftKey===undefined||_f1.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_f1,_f2,_f0,_f3,_f1,_f4,_f5);}else{if(dijit.typematic._obj==_f1){dijit.typematic.stop();}}}),dojo.connect(_f0,"onkeyup",this,function(evt){if(dijit.typematic._obj==_f1){dijit.typematic.stop();}})];},addMouseListener:function(_f8,_f9,_fa,_fb,_fc){var dc=dojo.connect;return [dc(_f8,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_f9,_f8,_fa,_f8,_fb,_fc);}),dc(_f8,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f8,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f8,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_f8,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_f9,_f8,_fa,_f8,_fb,_fc);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_103,_104,_105,_106,_107,_108,_109){return this.addKeyListener(_104,_105,_106,_107,_108,_109).concat(this.addMouseListener(_103,_106,_107,_108,_109));}};}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 _10c=cs.backgroundImage;var _10d=(cs.borderTopColor==cs.borderRightColor)||(_10c!=null&&(_10c=="none"||_10c=="url(invalid-url:)"));dojo[_10d?"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 _110=this.getWaiRole(elem);if(role){return (_110.indexOf(role)>-1);}else{return (_110.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _114=(theRole=dojo.attr(elem,"role"))?theRole:"";if(dojo.isFF<3||!this._XhtmlRoles.test(_114)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_114+" ").indexOf(" "+role+" ")<0){var _115=dojo.trim(_114.replace(this._XhtmlRoles,""));var _116=dojo.trim(_114.replace(_115,""));dojo.attr(elem,"role",_116+(_116?" ":"")+role);}}},removeWaiRole:function(elem,role){var _119=dojo.attr(elem,"role");if(!_119){return;}if(role){var _11a=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_119+" ").replace(" "+_11a+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_11d){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_11d);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_11d):!!elem.getAttribute("aria-"+_11d);}},getWaiState:function(elem,_11f){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_11f);}else{var _120=elem.getAttribute("aria-"+_11f);return _120?_120:"";}},setWaiState:function(elem,_122,_123){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_122,_123);}else{elem.setAttribute("aria-"+_122,_123);}},removeWaiState:function(elem,_125){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_125);}else{elem.removeAttribute("aria-"+_125);}}});}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(_126,_127){if(_126&&dojo.isFunction(_126._onConnect)){_126._onConnect(_127);}});dijit._connectOnUseEventHandler=function(_128){};(function(){var _129={};var _12a=function(dc){if(!_129[dc]){var r=[];var _12d;var _12e=dojo.getObject(dc).prototype;for(var _12f in _12e){if(dojo.isFunction(_12e[_12f])&&(_12d=_12f.match(/^_set([a-zA-Z]*)Attr$/))&&_12d[1]){r.push(_12d[1].charAt(0).toLowerCase()+_12d[1].substr(1));}}_129[dc]=r;}return _129[dc]||[];};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(_130,_131){this.create(_130,_131);},create:function(_132,_133){this.srcNodeRef=dojo.byId(_133);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(_132){this.params=_132;dojo.mixin(this,_132);}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 _135=function(attr,_137){if((_137.params&&attr in _137.params)||_137[attr]){_137.attr(attr,_137[attr]);}};for(var attr in this.attributeMap){_135(attr,this);}dojo.forEach(_12a(this.declaredClass),function(a){if(!(a in this.attributeMap)){_135(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_13a){this.destroyDescendants(_13a);this.destroy(_13a);},destroy:function(_13b){this.uninitialize();dojo.forEach(this._connects,function(_13c){dojo.forEach(_13c,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_13b);dijit.registry.remove(this.id);},destroyRendering:function(_13e){if(this.bgIframe){this.bgIframe.destroy(_13e);delete this.bgIframe;}if(this.domNode){if(!_13e){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_13e){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_13f){dojo.forEach(this.getDescendants(),function(_140){if(_140.destroy){_140.destroy(_13f);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_142){if(_142 in this._deferredConnects){var _143=this[this._deferredConnects[_142]||"domNode"];this.connect(_143,_142.toLowerCase(),this[_142]);delete this._deferredConnects[_142];}},_setClassAttr:function(_144){var _145=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_145,this["class"]);this["class"]=_144;dojo.addClass(_145,_144);},_setStyleAttr:function(_146){var _147=this[this.attributeMap["style"]||"domNode"];if(_147.style.cssText){_147.style.cssText+="; "+_146;}else{_147.style.cssText=_146;}this["style"]=_146;},setAttribute:function(attr,_149){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_149);},_attrToDom:function(attr,_14b){var _14c=this.attributeMap[attr];dojo.forEach(dojo.isArray(_14c)?_14c:[_14c],function(_14d){var _14e=this[_14d.node||_14d||"domNode"];var type=_14d.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_14b)){_14b=dojo.hitch(this,_14b);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_14e,attr,_14b);break;case "innerHTML":_14e.innerHTML=_14b;break;case "class":dojo.removeClass(_14e,this[attr]);dojo.addClass(_14e,_14b);break;}},this);this[attr]=_14b;},attr:function(name,_151){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _154=this._getAttrNames(name);if(args==2){if(this[_154.s]){return this[_154.s](_151)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_151);}this[name]=_151;}return this;}else{if(this[_154.g]){return this[_154.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,_15a,_15b){var d=dojo;var dco=d.hitch(d,"connect",obj);var _15e=[];if(_15a=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_15b);_15e.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){_15e.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_15a="onclick";}_15e.push(dco(_15a,this,_15b));this._connects.push(_15e);return _15e;},disconnect:function(_163){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_163){dojo.forEach(_163,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(_165,_166){if(_165["declaredClass"]&&_165["addChild"]){_165.addChild(this,_166);}else{dojo.place(this.domNode,_165,_166);}return this;}});})();}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 _168=this.declaredClass,_169=this;return dojo.string.substitute(tmpl,this,function(_16a,key){if(key.charAt(0)=="!"){_16a=_169[key.substr(1)];}if(typeof _16a=="undefined"){throw new Error(_168+" template:"+key);}if(!_16a){return "";}return key.charAt(0)=="!"?_16a:_16a.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _16c=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_16c)){node=dijit._Templated._createNodesFromText(this._stringRepl(_16c))[0];}else{node=_16c.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _16e=this.srcNodeRef;if(_16e&&_16e.parentNode){_16e.parentNode.replaceChild(node,_16e);}if(this.widgetsInTemplate){var cw=this._supportingWidgets=dojo.parser.parse(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_16e);},_fillContent:function(_172){var dest=this.containerNode;if(_172&&dest){while(_172.hasChildNodes()){dest.appendChild(_172.firstChild);}}},_attachTemplateNodes:function(_174,_175){_175=_175||function(n,p){return n.getAttribute(p);};var _178=dojo.isArray(_174)?_174:(_174.all||_174.getElementsByTagName("*"));var x=dojo.isArray(_174)?0:-1;var _17a={};for(;x<_178.length;x++){var _17b=(x==-1)?_174:_178[x];if(this.widgetsInTemplate&&_175(_17b,"dojoType")){continue;}var _17c=_175(_17b,"dojoAttachPoint");if(_17c){var _17d,_17e=_17c.split(/\s*,\s*/);while((_17d=_17e.shift())){if(dojo.isArray(this[_17d])){this[_17d].push(_17b);}else{this[_17d]=_17b;}}}var _17f=_175(_17b,"dojoAttachEvent");if(_17f){var _180,_181=_17f.split(/\s*,\s*/);var trim=dojo.trim;while((_180=_181.shift())){if(_180){var _183=null;if(_180.indexOf(":")!=-1){var _184=_180.split(":");_180=trim(_184[0]);_183=trim(_184[1]);}else{_180=trim(_180);}if(!_183){_183=_180;}this.connect(_17b,_180,_183);}}}var role=_175(_17b,"waiRole");if(role){dijit.setWaiRole(_17b,role);}var _186=_175(_17b,"waiState");if(_186){dojo.forEach(_186.split(/\s*,\s*/),function(_187){if(_187.indexOf("-")!=-1){var pair=_187.split("-");dijit.setWaiState(_17b,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_189,_18a,_18b){var _18c=dijit._Templated._templateCache;var key=_18a||_189;var _18e=_18c[key];if(_18e){if(!_18e.ownerDocument||_18e.ownerDocument==dojo.doc){return _18e;}dojo._destroyElement(_18e);}if(!_18a){_18a=dijit._Templated._sanitizeTemplateString(dojo._getText(_189));}_18a=dojo.string.trim(_18a);if(_18b||_18a.match(/\$\{([^\}]+)\}/g)){return (_18c[key]=_18a);}else{return (_18c[key]=dijit._Templated._createNodesFromText(_18a)[0]);}};dijit._Templated._sanitizeTemplateString=function(_18f){if(_18f){_18f=_18f.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _190=_18f.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_190){_18f=_190[1];}}else{_18f="";}return _18f;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _191=dijit._Templated._templateCache;for(var key in _191){var _193=_191[key];if(!isNaN(_193.nodeType)){dojo._destroyElement(_193);}delete _191[key];}});}(function(){var _194={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 _197="none";var _198=text.replace(/^\s+/,"");for(var type in _194){var map=_194[type];if(map.re.test(_198)){_197=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_197];var _19c=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _19d=[];while(_19c.firstChild){_19d.push(_19c.removeChild(_19c.firstChild));}tn.innerHTML="";return _19d;};})();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 _1a0=dijit.byId(id);return _1a0.isContainer?_1a0:null;}}return null;},_getSibling:function(_1a1){var node=this.domNode;do{node=node[_1a1+"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(_1a5,_1a6){var _1a7=this.containerNode;if(_1a6&&typeof _1a6=="number"){var _1a8=dojo.query("> [widgetId]",_1a7);if(_1a8&&_1a8.length>=_1a6){_1a7=_1a8[_1a6-1];_1a6="after";}}dojo.place(_1a5.domNode,_1a7,_1a6);if(this._started&&!_1a5._started){_1a5.startup();}},removeChild:function(_1a9){if(typeof _1a9=="number"&&_1a9>0){_1a9=this.getChildren()[_1a9];}if(!_1a9||!_1a9.domNode){return;}var node=_1a9.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(_1ad){dojo.forEach(this.getChildren(),function(_1ae){_1ae.destroyRecursive(_1ad);});},_getSiblingOfChild:function(_1af,dir){var node=_1af.domNode;var _1b2=(dir>0?"nextSibling":"previousSibling");do{node=node[_1b2];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_1b3){var _1b4=this.getChildren();for(var i=0,c;c=_1b4[i];i++){if(c==_1b3){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_1b7,_1b8){var _1b9=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_1b7,function(code){_1b9[code]=prev;});dojo.forEach(_1b8,function(code){_1b9[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(_1be,_1bf){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_1be);},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 _1c0=this._getNextFocusableChild(this.focusedChild,1);if(_1c0.getFocalNodes){this.focusChild(_1c0,_1c0.getFocalNodes()[0]);}else{this.focusChild(_1c0);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _1c1=this._getNextFocusableChild(this.focusedChild,-1);if(_1c1.getFocalNodes){var _1c2=_1c1.getFocalNodes();this.focusChild(_1c1,_1c2[_1c2.length-1]);}else{this.focusChild(_1c1);}},focusChild:function(_1c3,node){if(_1c3){if(this.focusedChild&&_1c3!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_1c3;if(node&&_1c3.focusFocalNode){_1c3.focusFocalNode(node);}else{_1c3.focus();}}},_startupChild:function(_1c5){if(_1c5.getFocalNodes){dojo.forEach(_1c5.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_1c5.focusNode||_1c5.domNode;if(_1c5.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 _1cd=dijit.getEnclosingWidget(evt.target);if(_1cd&&_1cd.isFocusable()){this.focusedChild=_1cd;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_1cf){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_1d0,dir){if(_1d0){_1d0=this._getSiblingOfChild(_1d0,dir);}var _1d2=this.getChildren();for(var i=0;i<_1d2.length;i++){if(!_1d0){_1d0=_1d2[(dir>0)?0:(_1d2.length-1)];}if(_1d0.isFocusable()){return _1d0;}_1d0=this._getSiblingOfChild(_1d0,dir);}return null;}});}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(_1d4){_1d4.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_1d5,_1d6){var node=this.domNode;if(_1d5){dojo.marginBox(node,_1d5);if(_1d5.t){node.style.top=_1d5.t+"px";}if(_1d5.l){node.style.left=_1d5.l+"px";}}var mb=_1d6||{};dojo.mixin(mb,_1d5||{});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(_1de){if(_1de.baseClass){dojo.addClass(_1de.domNode,this.baseClass+"-"+_1de.baseClass);}},addChild:function(_1df,_1e0){this.inherited(arguments);if(this._started){this._setupChild(_1df);}},removeChild:function(_1e1){if(_1e1.baseClass){dojo.removeClass(_1e1.domNode,this.baseClass+"-"+_1e1.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 _1e7=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1ea,dim){_1ea.resize?_1ea.resize(dim):dojo.marginBox(_1ea.domNode,dim);dojo.mixin(_1ea,dojo.marginBox(_1ea.domNode));dojo.mixin(_1ea,dim);};dijit.layout.layoutChildren=function(_1ec,dim,_1ee){dim=dojo.mixin({},dim);dojo.addClass(_1ec,"dijitLayoutContainer");_1ee=dojo.filter(_1ee,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1ee,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1ee,function(_1f1){var elm=_1f1.domNode,pos=_1f1.layoutAlign;var _1f4=elm.style;_1f4.left=dim.l+"px";_1f4.top=dim.t+"px";_1f4.bottom=_1f4.right="auto";dojo.addClass(elm,"dijitAlign"+_1e7(pos));if(pos=="top"||pos=="bottom"){size(_1f1,{w:dim.w});dim.h-=_1f1.h;if(pos=="top"){dim.t+=_1f1.h;}else{_1f4.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1f1,{h:dim.h});dim.w-=_1f1.w;if(pos=="left"){dim.l+=_1f1.w;}else{_1f4.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1f1,dim);}}}});};})();}if(!dojo._hasResource["dijit.form._FormWidget"]){dojo._hasResource["dijit.form._FormWidget"]=true;dojo.provide("dijit.form._FormWidget");dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,readOnly:false,intermediateChanges:false,attributeMap:dojo.mixin(dojo.clone(dijit._Widget.prototype.attributeMap),{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setDisabledAttr:function(_1f5){this.disabled=_1f5;dojo.attr(this.focusNode,"disabled",_1f5);dijit.setWaiState(this.focusNode,"disabled",_1f5);if(_1f5){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_1f6){dojo.deprecated("setDisabled("+_1f6+") is deprecated. Use attr('disabled',"+_1f6+") instead.","","2.0");this.attr("disabled",_1f6);},_onFocus:function(e){dijit.scrollIntoView(this.domNode);this.inherited(arguments);},_onMouse:function(_1f8){var _1f9=_1f8.currentTarget;if(_1f9&&_1f9.getAttribute){this.stateModifier=_1f9.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_1f8.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseout":case "mouseleave":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _1fa=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_1fa);});break;}this._setStateClass();}},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},_setStateClass:function(){if(!("staticClass" in this)){this.staticClass=(this.stateNode||this.domNode).className;}var _1fb=this.baseClass.split(" ");function multiply(_1fc){_1fb=_1fb.concat(dojo.map(_1fb,function(c){return c+_1fc;}),"dijit"+_1fc);};if(this.checked){multiply("Checked");}if(this.state){multiply(this.state);}if(this.selected){multiply("Selected");}if(this.disabled){multiply("Disabled");}else{if(this.readOnly){multiply("ReadOnly");}else{if(this._active){multiply(this.stateModifier+"Active");}else{if(this._focused){multiply("Focused");}if(this._hovering){multiply(this.stateModifier+"Hover");}}}}(this.stateNode||this.domNode).className=this.staticClass+" "+_1fb.join(" ");},compare:function(val1,val2){if((typeof val1=="number")&&(typeof val2=="number")){return (isNaN(val1)&&isNaN(val2))?0:(val1-val2);}else{if(val1>val2){return 1;}else{if(val1<val2){return -1;}else{return 0;}}}},onChange:function(_200){},_onChangeActive:false,_handleOnChange:function(_201,_202){this._lastValue=_201;if(this._lastValueReported==undefined&&(_202===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_201;}if((this.intermediateChanges||_202||_202===undefined)&&((typeof _201!=typeof this._lastValueReported)||this.compare(_201,this._lastValueReported)!=0)){this._lastValueReported=_201;if(this._onChangeActive){this.onChange(_201);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_203){dojo.deprecated("dijit.form._FormWidget:setValue("+_203+") is deprecated.  Use attr('value',"+_203+") instead.","","2.0");this.attr("value",_203);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");return this.attr("value");},_layoutHack:function(){if(dojo.isFF==2&&!this._layoutHackHandle){var node=this.domNode;var old=node.style.opacity;node.style.opacity="0.999";this._layoutHackHandle=setTimeout(dojo.hitch(this,function(){this._layoutHackHandle=null;node.style.opacity=old;}),0);}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{attributeMap:dojo.mixin(dojo.clone(dijit.form._FormWidget.prototype.attributeMap),{value:""}),postCreate:function(){if(dojo.isIE||dojo.isSafari){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_206,_207){this.value=_206;this._handleOnChange(_206,_207);},_getValueAttr:function(_208){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_valueChanged:function(){var v=this.attr("value");var lv=this._lastValueReported;return ((v!==null&&(v!==undefined)&&v.toString)?v.toString():"")!==((lv!==null&&(lv!==undefined)&&lv.toString)?lv.toString():"");},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}else{if(dojo.isSafari){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}},_onKeyPress:function(e){if(e.charOrCode==dojo.keys.ESCAPE&&!e.ctrlKey&&!e.altKey&&this._valueChanged()){this.undo();dojo.stopEvent(e);return false;}else{if(this.intermediateChanges){var _20e=this;setTimeout(function(){_20e._handleOnChange(_20e.attr("value"),false);},0);}}return true;}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}
