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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
*/

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:[],registerIframe:function(_16){dijit.registerWin(_16.contentWindow,_16);},registerWin:function(_17,_18){dojo.connect(_17.document,"onmousedown",function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);dijit._onTouchNode(_18||evt.target||evt.srcElement);});var doc=_17.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(_18||evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(_18||evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(_18||evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(_18||evt.target);},true);}}doc=null;},_onBlurNode:function(_1f){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(_20){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _21=[];try{while(_20){if(_20.dijitPopupParent){_20=dijit.byId(_20.dijitPopupParent).domNode;}else{if(_20.tagName&&_20.tagName.toLowerCase()=="body"){if(_20===dojo.body()){break;}_20=dijit.getDocumentWindow(_20.ownerDocument).frameElement;}else{var id=_20.getAttribute&&_20.getAttribute("widgetId");if(id){_21.unshift(id);}_20=_20.parentNode;}}}}catch(e){}dijit._setStack(_21);},_onFocusNode:function(_23){if(!_23){return;}if(_23.nodeType==9){return;}dijit._onTouchNode(_23);if(_23==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_23;dojo.publish("focusNode",[_23]);},_setStack:function(_24){var _25=dijit._activeStack;dijit._activeStack=_24;for(var _26=0;_26<Math.min(_25.length,_24.length);_26++){if(_25[_26]!=_24[_26]){break;}}for(var i=_25.length-1;i>=_26;i--){var _28=dijit.byId(_25[i]);if(_28){_28._focused=false;_28._hasBeenBlurred=true;if(_28._onBlur){_28._onBlur();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetBlur",[_28]);}}for(i=_26;i<_24.length;i++){_28=dijit.byId(_24[i]);if(_28){_28._focused=true;if(_28._onFocus){_28._onFocus();}if(_28._setStateClass){_28._setStateClass();}dojo.publish("widgetFocus",[_28]);}}}});dojo.addOnLoad(function(){dijit.registerWin(window);});}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(_29){if(this._hash[_29.id]){throw new Error("Tried to register widget with id=="+_29.id+" but that id is already registered");}this._hash[_29.id]=_29;},remove:function(id){delete this._hash[id];},forEach:function(_2b){for(var id in this._hash){_2b(this._hash[id]);}},filter:function(_2d){var res=new dijit.WidgetSet();this.forEach(function(_2f){if(_2d(_2f)){res.add(_2f);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_32){return _32.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_33){var id;do{id=_33+"_"+(_33 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_33]:dijit._widgetTypeCtr[_33]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_35){_35.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_37){return dijit.registry.byId(_37.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_38){while(_38){if(_38.getAttribute&&_38.getAttribute("widgetId")){return dijit.registry.byId(_38.getAttribute("widgetId"));}_38=_38.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_39){var _3a=dojo.style(_39);return (_3a.visibility!="hidden")&&(_3a.visibility!="collapsed")&&(_3a.display!="none")&&(dojo.attr(_39,"type")!="hidden");};dijit.isTabNavigable=function(_3b){if(dojo.hasAttr(_3b,"disabled")){return false;}var _3c=dojo.hasAttr(_3b,"tabindex");var _3d=dojo.attr(_3b,"tabindex");if(_3c&&_3d>=0){return true;}var _3e=_3b.nodeName.toLowerCase();if(((_3e=="a"&&dojo.hasAttr(_3b,"href"))||dijit._tabElements[_3e])&&(!_3c||_3d>=0)){return true;}return false;};dijit._getTabNavigable=function(_3f){var _40,_41,_42,_43,_44,_45;var _46=function(_47){dojo.query("> *",_47).forEach(function(_48){var _49=dijit._isElementShown(_48);if(_49&&dijit.isTabNavigable(_48)){var _4a=dojo.attr(_48,"tabindex");if(!dojo.hasAttr(_48,"tabindex")||_4a==0){if(!_40){_40=_48;}_41=_48;}else{if(_4a>0){if(!_42||_4a<_43){_43=_4a;_42=_48;}if(!_44||_4a>=_45){_45=_4a;_44=_48;}}}}if(_49&&_48.nodeName.toUpperCase()!="SELECT"){_46(_48);}});};if(dijit._isElementShown(_3f)){_46(_3f);}return {first:_40,last:_41,lowest:_42,highest:_44};};dijit.getFirstInTabbingOrder=function(_4b){var _4c=dijit._getTabNavigable(dojo.byId(_4b));return _4c.lowest?_4c.lowest:_4c.first;};dijit.getLastInTabbingOrder=function(_4d){var _4e=dijit._getTabNavigable(dojo.byId(_4d));return _4e.last?_4e.last:_4e.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_4f){this.pairs=[];this.returnWrappers=_4f||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_50,_51,_52,_53,_54){this.pairs[((_54)?"unshift":"push")]([_50,_51,_52,_53]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _56=this.pairs[i];if(_56[1].apply(this,arguments)){if((_56[3])||(this.returnWrappers)){return _56[2];}else{return _56[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_57){for(var i=0;i<this.pairs.length;i++){var _59=this.pairs[i];if(_59[0]==_57){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 _5a=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _5b=dojo._docScroll();return {w:_5a.clientWidth,h:_5a.clientHeight,l:_5b.x,t:_5b.y};};dijit.placeOnScreen=function(_5c,pos,_5e,_5f){var _60=dojo.map(_5e,function(_61){var c={corner:_61,pos:{x:pos.x,y:pos.y}};if(_5f){c.pos.x+=_61.charAt(1)=="L"?_5f.x:-_5f.x;c.pos.y+=_61.charAt(0)=="T"?_5f.y:-_5f.y;}return c;});return dijit._place(_5c,_60);};dijit._place=function(_63,_64,_65){var _66=dijit.getViewport();if(!_63.parentNode||String(_63.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_63);}var _67=null;dojo.some(_64,function(_68){var _69=_68.corner;var pos=_68.pos;if(_65){_65(_63,_68.aroundCorner,_69);}var _6b=_63.style;var _6c=_6b.display;var _6d=_6b.visibility;_6b.visibility="hidden";_6b.display="";var mb=dojo.marginBox(_63);_6b.display=_6c;_6b.visibility=_6d;var _6f=(_69.charAt(1)=="L"?pos.x:Math.max(_66.l,pos.x-mb.w)),_70=(_69.charAt(0)=="T"?pos.y:Math.max(_66.t,pos.y-mb.h)),_71=(_69.charAt(1)=="L"?Math.min(_66.l+_66.w,_6f+mb.w):pos.x),_72=(_69.charAt(0)=="T"?Math.min(_66.t+_66.h,_70+mb.h):pos.y),_73=_71-_6f,_74=_72-_70,_75=(mb.w-_73)+(mb.h-_74);if(_67==null||_75<_67.overflow){_67={corner:_69,aroundCorner:_68.aroundCorner,x:_6f,y:_70,w:_73,h:_74,overflow:_75};}return !_75;});_63.style.left=_67.x+"px";_63.style.top=_67.y+"px";if(_67.overflow&&_65){_65(_63,_67.aroundCorner,_67.corner);}return _67;};dijit.placeOnScreenAroundNode=function(_76,_77,_78,_79){_77=dojo.byId(_77);var _7a=_77.style.display;_77.style.display="";var _7b=_77.offsetWidth;var _7c=_77.offsetHeight;var _7d=dojo.coords(_77,true);_77.style.display=_7a;return dijit._placeOnScreenAroundRect(_76,_7d.x,_7d.y,_7b,_7c,_78,_79);};dijit.placeOnScreenAroundRectangle=function(_7e,_7f,_80,_81){return dijit._placeOnScreenAroundRect(_7e,_7f.x,_7f.y,_7f.width,_7f.height,_80,_81);};dijit._placeOnScreenAroundRect=function(_82,x,y,_85,_86,_87,_88){var _89=[];for(var _8a in _87){_89.push({aroundCorner:_8a,corner:_87[_8a],pos:{x:x+(_8a.charAt(1)=="L"?0:_85),y:y+(_8a.charAt(0)=="T"?0:_86)}});}return dijit._place(_82,_89,_88);};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(_8f,_90,_91,_92){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 _95=[],_96=1000,_97=1;this.prepare=function(_98){var s=_98.style;s.visibility="hidden";s.position="absolute";s.top="-9999px";if(s.display=="none"){s.display="";}dojo.body().appendChild(_98);};this.open=function(_9a){var _9b=_9a.popup,_9c=_9a.orient||{"BL":"TL","TL":"BL"},_9d=_9a.around,id=(_9a.around&&_9a.around.id)?(_9a.around.id+"_dropdown"):("popup_"+_97++);var _9f=dojo.create("div",{id:id,"class":"dijitPopup",style:{zIndex:_96+_95.length,visibility:"hidden"}},dojo.body());dijit.setWaiRole(_9f,"presentation");_9f.style.left=_9f.style.top="0px";if(_9a.parent){_9f.dijitPopupParent=_9a.parent.id;}var s=_9b.domNode.style;s.display="";s.visibility="";s.position="";s.top="0px";_9f.appendChild(_9b.domNode);var _a1=new dijit.BackgroundIframe(_9f);var _a2=_9d?dijit.placeOnScreenAroundElement(_9f,_9d,_9c,_9b.orient?dojo.hitch(_9b,"orient"):null):dijit.placeOnScreen(_9f,_9a,_9c=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_9a.padding);_9f.style.visibility="visible";var _a3=[];var _a4=function(){for(var pi=_95.length-1;pi>0&&_95[pi].parent===_95[pi-1].widget;pi--){}return _95[pi];};_a3.push(dojo.connect(_9f,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_9a.onCancel){dojo.stopEvent(evt);_9a.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _a7=_a4();if(_a7&&_a7.onCancel){_a7.onCancel();}}}}));if(_9b.onCancel){_a3.push(dojo.connect(_9b,"onCancel",null,_9a.onCancel));}_a3.push(dojo.connect(_9b,_9b.onExecute?"onExecute":"onChange",null,function(){var _a8=_a4();if(_a8&&_a8.onExecute){_a8.onExecute();}}));_95.push({wrapper:_9f,iframe:_a1,widget:_9b,parent:_9a.parent,onExecute:_9a.onExecute,onCancel:_9a.onCancel,onClose:_9a.onClose,handlers:_a3});if(_9b.onOpen){_9b.onOpen(_a2);}return _a2;};this.close=function(_a9){while(dojo.some(_95,function(_aa){return _aa.widget==_a9;})){var top=_95.pop(),_ac=top.wrapper,_ad=top.iframe,_ae=top.widget,_af=top.onClose;if(_ae.onClose){_ae.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_ae||!_ae.domNode){return;}this.prepare(_ae.domNode);_ad.destroy();dojo.destroy(_ac);if(_af){_af();}}};}();dijit._frames=new function(){var _b0=[];this.pop=function(){var _b1;if(_b0.length){_b1=_b0.pop();_b1.style.display="";}else{if(dojo.isIE){var _b2=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _b3="<iframe src='"+_b2+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_b1=dojo.doc.createElement(_b3);}else{_b1=dojo.create("iframe");_b1.src="javascript:\"\"";_b1.className="dijitBackgroundIframe";}_b1.tabIndex=-1;dojo.body().appendChild(_b1);}return _b1;};this.push=function(_b4){_b4.style.display="none";if(dojo.isIE){_b4.style.removeExpression("width");_b4.style.removeExpression("height");}_b0.push(_b4);};}();dijit.BackgroundIframe=function(_b5){if(!_b5.id){throw new Error("no id");}if(dojo.isIE<7||(dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _b6=dijit._frames.pop();_b5.appendChild(_b6);if(dojo.isIE){_b6.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_b5.id+"').offsetWidth");_b6.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_b5.id+"').offsetHeight");}this.iframe=_b6;}};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(_b7){try{_b7=dojo.byId(_b7);var doc=dojo.doc;var _b9=dojo.body();var _ba=_b9.parentNode;if(dojo.isFF<3||_b7==_b9||_b7==_ba||((typeof _b7.scrollIntoView=="function")&&!(dojo.isMoz||dojo.isIE||dojo.isWebKit))){_b7.scrollIntoView(false);return;}var ltr=dojo._isBodyLtr();var rtl=!(ltr||(dojo.isIE>=8&&!_bd));var _be=_b9;var _bd=doc.compatMode=="BackCompat";if(_bd){_ba._offsetWidth=_ba._clientWidth=_b9._offsetWidth=_b9.clientWidth;_ba._offsetHeight=_ba._clientHeight=_b9._offsetHeight=_b9.clientHeight;}else{if(dojo.isWebKit){_b9._offsetWidth=_b9._clientWidth=_ba.clientWidth;_b9._offsetHeight=_b9._clientHeight=_ba.clientHeight;}else{_be=_ba;}_ba._offsetHeight=_ba.clientHeight;_ba._offsetWidth=_ba.clientWidth;}var _bf=17;if(dojo.isIE==6){_bf=18;}else{if(dojo.isWebKit){_bf=15;}}function _c0(_c1){var ie=dojo.isIE;return ((ie<=6||(ie>=7&&_bd))?false:(dojo.style(_c1,"position").toLowerCase()=="fixed"));};function _c3(_c4){var _c5=_c4.parentNode;var _c6=_c4.offsetParent;if(_c6==null||_c0(_c4)){_c6=_ba;_c5=(_c4==_b9)?_ba:null;}_c4._offsetParent=_c6;_c4._parent=_c5;var bp=dojo._getBorderExtents(_c4);_c4._borderStart={H:(dojo.isIE>=8&&!ltr&&!_bd)?(bp.w-bp.l):bp.l,V:bp.t};_c4._borderSize={H:bp.w,V:bp.h};_c4._offsetStart={H:_c4.offsetLeft,V:_c4.offsetTop};_c4._scrolledAmount={H:_c4.scrollLeft,V:_c4.scrollTop};_c4._offsetSize={H:_c4._offsetWidth||_c4.offsetWidth,V:_c4._offsetHeight||_c4.offsetHeight};_c4._clientSize={H:_c4._clientWidth||_c4.clientWidth,V:_c4._clientHeight||_c4.clientHeight};if(_c4!=_b9&&_c4!=_ba&&_c4!=_b7){for(var dir in _c4._offsetSize){var _c9=_c4._offsetSize[dir]-_c4._clientSize[dir]-_c4._borderSize[dir];var _ca=_c4._clientSize[dir]>0&&_c9==_bf;if(_ca){_c4._offsetSize[dir]-=_bf;if(dojo.isIE&&rtl&&dir=="H"){_c4._offsetStart[dir]+=_bf;}}}}};var _cb=_b7;while(_cb!=null){if(_c0(_cb)){_b7.scrollIntoView(false);return;}_c3(_cb);_cb=_cb._parent;}if(dojo.isIE&&_b7._parent){var _cc=_b7._offsetParent;_b7._offsetStart.H+=_cc._borderStart.H;_b7._offsetStart.V+=_cc._borderStart.V;}if(dojo.isIE>=7&&_be==_ba&&rtl&&_b9._offsetStart&&_b9._offsetStart.H==0){var _cd=_ba.scrollWidth-_ba._offsetSize.H;if(_cd>0){_b9._offsetStart.H=-_cd;}}if(rtl&&_b9._offsetStart&&_be==_ba&&_ba._scrolledAmount){var ofs=_b9._offsetStart.H;if(ofs<0){_ba._scrolledAmount.H+=ofs;_b9._offsetStart.H=0;}}_cb=_b7;while(_cb){var _cf=_cb._parent;if(!_cf){break;}if(_cf.tagName=="TD"){var _d0=_cf._parent._parent._parent;if(_cf!=_cb._offsetParent&&_cf._offsetParent!=_cb._offsetParent){_cf=_d0;}}var _d1=_cb._offsetParent==_cf;for(var dir in _cb._offsetStart){if(dojo.isIE>=8&&!_d1&&!_bd){_cf._scrolledAmount[dir]=0;}var _d3=false;var _d4=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(_cf!=_ba)&&(_cf!=_b9)&&(dojo.isIE||dojo.isWebKit)&&_cf._clientSize.H>0&&_cf.scrollWidth>_cf._clientSize.H){var _d5=_cf.scrollWidth-_cf._clientSize.H;if(_d5>0){_cf._scrolledAmount.H-=_d5;_d3=true;}}if(_cf._offsetParent.tagName=="TABLE"){if(dojo.isIE>=8&&!_bd){}else{if(dojo.isIE){_cf._offsetStart[dir]-=_cf._offsetParent._borderStart[dir];_cf._borderStart[dir]=_cf._borderSize[dir]=0;}else{_cf._offsetStart[dir]+=_cf._offsetParent._borderStart[dir];}}}if(dojo.isIE){_cf._offsetStart[dir]+=_cf._offsetParent._borderStart[dir];}var _d6=_cb._offsetStart[dir]-_cf._scrolledAmount[dir]-(_d1?0:_cf._offsetStart[dir])-_cf._borderStart[dir];var _d7=_d6+_cb._offsetSize[dir]-_cf._offsetSize[dir]+_cf._borderSize[dir];var _d8=(dir=="H")?"scrollLeft":"scrollTop";var _d9=dir=="H"&&rtl;var _da=_d9?-_d7:_d6;var _db=_d9?-_d6:_d7;var _dc=(_da*_db<=0)?0:Math[(_da<0)?"max":"min"](_da,_db);if(_dc!=0){var _dd=_cf[_d8];_cf[_d8]+=(_d9)?-_dc:_dc;var _de=_cf[_d8]-_dd;_cb._offsetStart[dir]-=_de;}if(_d1){_cb._offsetStart[dir]+=_cf._offsetStart[dir];}}_cb._parent=_cf._parent;_cb._offsetParent=_cf._offsetParent;}_cf=_b7;while(_cf&&_cf.removeAttribute){next=_cf.parentNode;_cf.removeAttribute("_offsetParent");_cf.removeAttribute("_parent");_cf=next;}}catch(error){_b7.scrollIntoView(false);}};}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var d=dojo,_e0=d.doc.documentElement,ie=d.isIE,_e2=d.isOpera,maj=Math.floor,ff=d.isFF,_e5=d.boxModel.replace(/-/,""),_e6={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_iequirks:ie&&d.isQuirks,dj_opera:_e2,dj_opera8:maj(_e2)==8,dj_opera9:maj(_e2)==9,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_e6["dj_"+_e5]=true;for(var p in _e6){if(_e6[p]){if(_e0.className){_e0.className+=" "+p;}else{_e0.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e0.className+=" dijitRtl";for(var p in _e6){if(_e6[p]){_e0.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.create("div",{id:"a11yTestNode",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());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);return role?(_110.indexOf(role)>-1):(_110.length>0);},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _114=dojo.attr(elem,"role")||"";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);}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);}return elem.getAttribute("aria-"+_11f)||"";},setWaiState:function(elem,_121,_122){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_121,_122);}else{elem.setAttribute("aria-"+_121,_122);}},removeWaiState:function(elem,_124){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_124);}else{elem.removeAttribute("aria-"+_124);}}});}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base");}if(!dojo._hasResource["dojo.date.stamp"]){dojo._hasResource["dojo.date.stamp"]=true;dojo.provide("dojo.date.stamp");dojo.date.stamp.fromISOString=function(_125,_126){if(!dojo.date.stamp._isoRegExp){dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;}var _127=dojo.date.stamp._isoRegExp.exec(_125);var _128=null;if(_127){_127.shift();if(_127[1]){_127[1]--;}if(_127[6]){_127[6]*=1000;}if(_126){_126=new Date(_126);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _126["get"+prop]();}).forEach(function(_12a,_12b){if(_127[_12b]===undefined){_127[_12b]=_12a;}});}_128=new Date(_127[0]||1970,_127[1]||0,_127[2]||1,_127[3]||0,_127[4]||0,_127[5]||0,_127[6]||0);var _12c=0;var _12d=_127[7]&&_127[7].charAt(0);if(_12d!="Z"){_12c=((_127[8]||0)*60)+(Number(_127[9])||0);if(_12d!="-"){_12c*=-1;}}if(_12d){_12c-=_128.getTimezoneOffset();}if(_12c){_128.setTime(_128.getTime()+_12c*60000);}}return _128;};dojo.date.stamp.toISOString=function(_12e,_12f){var _=function(n){return (n<10)?"0"+n:n;};_12f=_12f||{};var _132=[];var _133=_12f.zulu?"getUTC":"get";var date="";if(_12f.selector!="time"){var year=_12e[_133+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_12e[_133+"Month"]()+1),_(_12e[_133+"Date"]())].join("-");}_132.push(date);if(_12f.selector!="date"){var time=[_(_12e[_133+"Hours"]()),_(_12e[_133+"Minutes"]()),_(_12e[_133+"Seconds"]())].join(":");var _137=_12e[_133+"Milliseconds"]();if(_12f.milliseconds){time+="."+(_137<100?"0":"")+_(_137);}if(_12f.zulu){time+="Z";}else{if(_12f.selector!="time"){var _138=_12e.getTimezoneOffset();var _139=Math.abs(_138);time+=(_138>0?"-":"+")+_(Math.floor(_139/60))+":"+_(_139%60);}}_132.push(time);}return _132.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _13b=d._scopeName+"Type";var qry="["+_13b+"]";var _13d=0,_13e={};var _13f=function(_140,_141){var nso=_141||_13e;if(dojo.isIE){var cn=_140["__dojoNameCache"];if(cn&&nso[cn]===_140){return cn;}}var name;do{name="__"+_13d++;}while(name in nso);nso[name]=_140;return name;};function _145(_146){if(d.isString(_146)){return "string";}if(typeof _146=="number"){return "number";}if(typeof _146=="boolean"){return "boolean";}if(d.isFunction(_146)){return "function";}if(d.isArray(_146)){return "array";}if(_146 instanceof Date){return "date";}if(_146 instanceof d._Url){return "url";}return "object";};function _147(_148,type){switch(type){case "string":return _148;case "number":return _148.length?Number(_148):NaN;case "boolean":return typeof _148=="boolean"?_148:!(_148.toLowerCase()=="false");case "function":if(d.isFunction(_148)){_148=_148.toString();_148=d.trim(_148.substring(_148.indexOf("{")+1,_148.length-1));}try{if(_148.search(/[^\w\.]+/i)!=-1){_148=_13f(new Function(_148),this);}return d.getObject(_148,false);}catch(e){return new Function();}case "array":return _148?_148.split(/\s*,\s*/):[];case "date":switch(_148){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_148);}case "url":return d.baseUrl+_148;default:return d.fromJson(_148);}};var _14a={};function _14b(_14c){if(!_14a[_14c]){var cls=d.getObject(_14c);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_14c+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _14e=cls.prototype;var _14f={};for(var name in _14e){if(name.charAt(0)=="_"){continue;}var _151=_14e[name];_14f[name]=_145(_151);}_14a[_14c]={cls:cls,params:_14f};}return _14a[_14c];};this._functionFromScript=function(_152){var _153="";var _154="";var _155=_152.getAttribute("args");if(_155){d.forEach(_155.split(/\s*,\s*/),function(part,idx){_153+="var "+part+" = arguments["+idx+"]; ";});}var _158=_152.getAttribute("with");if(_158&&_158.length){d.forEach(_158.split(/\s*,\s*/),function(part){_153+="with("+part+"){";_154+="}";});}return new Function(_153+_152.innerHTML+_154);};this.instantiate=function(_15a,_15b){var _15c=[];_15b=_15b||{};d.forEach(_15a,function(node){if(!node){return;}var type=_13b in _15b?_15b[_13b]:node.getAttribute(_13b);if(!type||!type.length){return;}var _15f=_14b(type),_160=_15f.cls,ps=_160._noScript||_160.prototype._noScript;var _162={},_163=node.attributes;for(var name in _15f.params){var item=name in _15b?{value:_15b[name],specified:true}:_163.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _166=item.value;switch(name){case "class":_166="className" in _15b?_15b.className:node.className;break;case "style":_166="style" in _15b?_15b.style:(node.style&&node.style.cssText);}var _167=_15f.params[name];if(typeof _166=="string"){_162[name]=_147(_166,_167);}else{_162[name]=_166;}}if(!ps){var _168=[],_169=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_16a){var _16b=_16a.getAttribute("event"),type=_16a.getAttribute("type"),nf=d.parser._functionFromScript(_16a);if(_16b){if(type=="dojo/connect"){_168.push({event:_16b,func:nf});}else{_162[_16b]=nf;}}else{_169.push(nf);}});}var _16d=_160["markupFactory"];if(!_16d&&_160["prototype"]){_16d=_160.prototype["markupFactory"];}var _16e=_16d?_16d(_162,node,_160):new _160(_162,node);_15c.push(_16e);var _16f=node.getAttribute("jsId");if(_16f){d.setObject(_16f,_16e);}if(!ps){d.forEach(_168,function(_170){d.connect(_16e,_170.event,null,_170.func);});d.forEach(_169,function(func){func.call(_16e);});}});d.forEach(_15c,function(_172){if(_172&&_172.startup&&!_172._started&&(!_172.getParent||!_172.getParent())){_172.startup();}});return _15c;};this.parse=function(_173){var list=d.query(qry,_173);var _175=this.instantiate(list);return _175;};}();(function(){var _176=function(){if(dojo.config["parseOnLoad"]==true){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_176);}else{dojo._loaders.unshift(_176);}})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_177,_178){if(_177&&dojo.isFunction(_177._onConnect)){_177._onConnect(_178);}});dijit._connectOnUseEventHandler=function(_179){};(function(){var _17a={};var _17b=function(dc){if(!_17a[dc]){var r=[];var _17e;var _17f=dojo.getObject(dc).prototype;for(var _180 in _17f){if(dojo.isFunction(_17f[_180])&&(_17e=_180.match(/^_set([a-zA-Z]*)Attr$/))&&_17e[1]){r.push(_17e[1].charAt(0).toLowerCase()+_17e[1].substr(1));}}_17a[dc]=r;}return _17a[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(_181,_182){this.create(_181,_182);},create:function(_183,_184){this.srcNodeRef=dojo.byId(_184);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(_183){this.params=_183;dojo.mixin(this,_183);}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));}dijit.registry.add(this);this.buildRendering();if(this.domNode){this._applyAttributes();var _186=this.srcNodeRef;if(_186&&_186.parentNode){_186.parentNode.replaceChild(this.domNode,_186);}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 _187=function(attr,_189){if((_189.params&&attr in _189.params)||_189[attr]){_189.attr(attr,_189[attr]);}};for(var attr in this.attributeMap){_187(attr,this);}dojo.forEach(_17b(this.declaredClass),function(a){if(!(a in this.attributeMap)){_187(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_18c){this.destroyDescendants(_18c);this.destroy(_18c);},destroy:function(_18d){this.uninitialize();dojo.forEach(this._connects,function(_18e){dojo.forEach(_18e,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_18d);dijit.registry.remove(this.id);},destroyRendering:function(_190){if(this.bgIframe){this.bgIframe.destroy(_190);delete this.bgIframe;}if(this.domNode){if(!_190){dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_190){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_191){dojo.forEach(this.getDescendants(true),function(_192){if(_192.destroyRecursive){_192.destroyRecursive(_191);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_194){if(_194 in this._deferredConnects){var _195=this[this._deferredConnects[_194]||"domNode"];this.connect(_195,_194.toLowerCase(),this[_194]);delete this._deferredConnects[_194];}},_setClassAttr:function(_196){var _197=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_197,this["class"]);this["class"]=_196;dojo.addClass(_197,_196);},_setStyleAttr:function(_198){var _199=this[this.attributeMap["style"]||"domNode"];if(dojo.isObject(_198)){dojo.style(_199,_198);}else{if(_199.style.cssText){_199.style.cssText+="; "+_198;}else{_199.style.cssText=_198;}}this["style"]=_198;},setAttribute:function(attr,_19b){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_19b);},_attrToDom:function(attr,_19d){var _19e=this.attributeMap[attr];dojo.forEach(dojo.isArray(_19e)?_19e:[_19e],function(_19f){var _1a0=this[_19f.node||_19f||"domNode"];var type=_19f.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_19d)){_19d=dojo.hitch(this,_19d);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_1a0,attr,_19d);break;case "innerHTML":_1a0.innerHTML=_19d;break;case "class":dojo.removeClass(_1a0,this[attr]);dojo.addClass(_1a0,_19d);break;}},this);this[attr]=_19d;},attr:function(name,_1a3){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _1a6=this._getAttrNames(name);if(args==2){if(this[_1a6.s]){return this[_1a6.s](_1a3)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_1a3);}this[name]=_1a3;}return this;}else{if(this[_1a6.g]){return this[_1a6.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(_1aa,_1ab){_1ab=_1ab||[];if(this.containerNode){this._getDescendantsHelper(_1aa,_1ab,this.containerNode);}return _1ab;},_getDescendantsHelper:function(_1ac,_1ad,root){var list=dojo.isIE?root.children:root.childNodes,i=0,node;while(node=list[i++]){if(node.nodeType!=1){continue;}var _1b2=node.getAttribute("widgetId");if(_1b2){var _1b3=dijit.byId(_1b2);_1ad.push(_1b3);if(!_1ac){_1b3.getDescendants(_1ac,_1ad);}}else{this._getDescendantsHelper(_1ac,_1ad,node);}}},nodesWithKeyClick:["input","button"],connect:function(obj,_1b5,_1b6){var d=dojo;var dco=d.hitch(d,"connect",obj);var _1b9=[];if(_1b5=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_1b6);_1b9.push(dco("onkeydown",this,function(e){if(!d.isFF&&e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}else{if(e.keyCode==d.keys.SPACE){d.stopEvent(e);}}}),dco("onkeyup",this,function(e){if(e.keyCode==d.keys.SPACE&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));if(d.isFF){_1b9.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){return m(e);}}));}}_1b5="onclick";}_1b9.push(dco(_1b5,this,_1b6));this._connects.push(_1b9);return _1b9;},disconnect:function(_1be){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1be){dojo.forEach(_1be,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(_1c0,_1c1){if(_1c0["declaredClass"]&&_1c0["addChild"]){_1c0.addChild(this,_1c1);}else{dojo.place(this.domNode,_1c0,_1c1);}return this;}});})();}if(!dojo._hasResource["dojo.string"]){dojo._hasResource["dojo.string"]=true;dojo.provide("dojo.string");dojo.string.rep=function(str,num){if(num<=0||!str){return "";}var buf=[];for(;;){if(num&1){buf.push(str);}if(!(num>>=1)){break;}str+=str;}return buf.join("");};dojo.string.pad=function(text,size,ch,end){if(!ch){ch="0";}var out=String(text),pad=dojo.string.rep(ch,Math.ceil((size-out.length)/ch.length));return end?out+pad:pad+out;};dojo.string.substitute=function(_1cb,map,_1cd,_1ce){_1ce=_1ce||dojo.global;_1cd=(!_1cd)?function(v){return v;}:dojo.hitch(_1ce,_1cd);return _1cb.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1d0,key,_1d2){var _1d3=dojo.getObject(key,false,map);if(_1d2){_1d3=dojo.getObject(_1d2,false,_1ce).call(_1ce,_1d3,key);}return _1cd(_1d3,key).toString();});};dojo.string.trim=String.prototype.trim?dojo.trim:function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["dijit._Templated"]){dojo._hasResource["dijit._Templated"]=true;dojo.provide("dijit._Templated");dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_stringRepl:function(tmpl){var _1d7=this.declaredClass,_1d8=this;return dojo.string.substitute(tmpl,this,function(_1d9,key){if(key.charAt(0)=="!"){_1d9=dojo.getObject(key.substr(1),_1d8);}if(typeof _1d9=="undefined"){throw new Error(_1d7+" template:"+key);}if(_1d9==null){return "";}return key.charAt(0)=="!"?_1d9:_1d9.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1db=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1db)){node=dojo._toDom(this._stringRepl(_1db));}else{node=_1db.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_1e0){var dest=this.containerNode;if(_1e0&&dest){while(_1e0.hasChildNodes()){dest.appendChild(_1e0.firstChild);}}},_attachTemplateNodes:function(_1e2,_1e3){_1e3=_1e3||function(n,p){return n.getAttribute(p);};var _1e6=dojo.isArray(_1e2)?_1e2:(_1e2.all||_1e2.getElementsByTagName("*"));var x=dojo.isArray(_1e2)?0:-1;var _1e8={};for(;x<_1e6.length;x++){var _1e9=(x==-1)?_1e2:_1e6[x];if(this.widgetsInTemplate&&_1e3(_1e9,"dojoType")){continue;}var _1ea=_1e3(_1e9,"dojoAttachPoint");if(_1ea){var _1eb,_1ec=_1ea.split(/\s*,\s*/);while((_1eb=_1ec.shift())){if(dojo.isArray(this[_1eb])){this[_1eb].push(_1e9);}else{this[_1eb]=_1e9;}}}var _1ed=_1e3(_1e9,"dojoAttachEvent");if(_1ed){var _1ee,_1ef=_1ed.split(/\s*,\s*/);var trim=dojo.trim;while((_1ee=_1ef.shift())){if(_1ee){var _1f1=null;if(_1ee.indexOf(":")!=-1){var _1f2=_1ee.split(":");_1ee=trim(_1f2[0]);_1f1=trim(_1f2[1]);}else{_1ee=trim(_1ee);}if(!_1f1){_1f1=_1ee;}this.connect(_1e9,_1ee,_1f1);}}}var role=_1e3(_1e9,"waiRole");if(role){dijit.setWaiRole(_1e9,role);}var _1f4=_1e3(_1e9,"waiState");if(_1f4){dojo.forEach(_1f4.split(/\s*,\s*/),function(_1f5){if(_1f5.indexOf("-")!=-1){var pair=_1f5.split("-");dijit.setWaiState(_1e9,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1f7,_1f8,_1f9){var _1fa=dijit._Templated._templateCache;var key=_1f8||_1f7;var _1fc=_1fa[key];if(_1fc){if(!_1fc.ownerDocument||_1fc.ownerDocument==dojo.doc){return _1fc;}dojo.destroy(_1fc);}if(!_1f8){_1f8=dijit._Templated._sanitizeTemplateString(dojo.trim(dojo._getText(_1f7)));}_1f8=dojo.string.trim(_1f8);if(_1f9||_1f8.match(/\$\{([^\}]+)\}/g)){return (_1fa[key]=_1f8);}else{return (_1fa[key]=dojo._toDom(_1f8));}};dijit._Templated._sanitizeTemplateString=function(_1fd){if(_1fd){_1fd=_1fd.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1fe=_1fd.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1fe){_1fd=_1fe[1];}}else{_1fd="";}return _1fd;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1ff=dijit._Templated._templateCache;for(var key in _1ff){var _201=_1ff[key];if(!isNaN(_201.nodeType)){dojo.destroy(_201);}delete _1ff[key];}});}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._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_202,_203){var _204=this.containerNode;if(_203&&typeof _203=="number"){var _205=this.getChildren();if(_205&&_205.length>=_203){_204=_205[_203-1].domNode;_203="after";}}dojo.place(_202.domNode,_204,_203);if(this._started&&!_202._started){_202.startup();}},removeChild:function(_206){if(typeof _206=="number"&&_206>0){_206=this.getChildren()[_206];}if(!_206||!_206.domNode){return;}var node=_206.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(_20a){dojo.forEach(this.getChildren(),function(_20b){_20b.destroyRecursive(_20a);});},_getSiblingOfChild:function(_20c,dir){var node=_20c.domNode;var _20f=(dir>0?"nextSibling":"previousSibling");do{node=node[_20f];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_210){var _211=this.getChildren();for(var i=0,c;c=_211[i];i++){if(c==_210){return i;}}return -1;}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");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 _216=dijit.byId(id);return _216.isContainer?_216:null;}}return null;},_getSibling:function(_217){var node=this.domNode;do{node=node[_217+"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);}});}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(_21b){_21b.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize",dojo.hitch(this,"resize"));}this.inherited(arguments);},resize:function(_21c,_21d){var node=this.domNode;if(_21c){dojo.marginBox(node,_21c);if(_21c.t){node.style.top=_21c.t+"px";}if(_21c.l){node.style.left=_21c.l+"px";}}var mb=_21d||{};dojo.mixin(mb,_21c||{});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(_225){dojo.addClass(_225.domNode,this.baseClass+"-child");if(_225.baseClass){dojo.addClass(_225.domNode,this.baseClass+"-"+_225.baseClass);}},addChild:function(_226,_227){this.inherited(arguments);if(this._started){this._setupChild(_226);}},removeChild:function(_228){dojo.removeClass(_228.domNode,this.baseClass+"-child");if(_228.baseClass){dojo.removeClass(_228.domNode,this.baseClass+"-"+_228.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 _22e=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_231,dim){_231.resize?_231.resize(dim):dojo.marginBox(_231.domNode,dim);dojo.mixin(_231,dojo.marginBox(_231.domNode));dojo.mixin(_231,dim);};dijit.layout.layoutChildren=function(_233,dim,_235){dim=dojo.mixin({},dim);dojo.addClass(_233,"dijitLayoutContainer");_235=dojo.filter(_235,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_235,function(item){return item.layoutAlign=="client";}));dojo.forEach(_235,function(_238){var elm=_238.domNode,pos=_238.layoutAlign;var _23b=elm.style;_23b.left=dim.l+"px";_23b.top=dim.t+"px";_23b.bottom=_23b.right="auto";dojo.addClass(elm,"dijitAlign"+_22e(pos));if(pos=="top"||pos=="bottom"){size(_238,{w:dim.w});dim.h-=_238.h;if(pos=="top"){dim.t+=_238.h;}else{_23b.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_238,{h:dim.h});dim.w-=_238.w;if(pos=="left"){dim.l+=_238.w;}else{_23b.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_238,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,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",disabled:"focusNode",readOnly:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode"}),_setNameAttr:function(_23c){this.name=_23c;var node=this.valueNode||this.focusNode||this.domNode;dojo.attr(node,"name",_23c);},_setDisabledAttr:function(_23e){this.disabled=_23e;dojo.attr(this.focusNode,"disabled",_23e);dijit.setWaiState(this.focusNode,"disabled",_23e);if(_23e){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_23f){dojo.deprecated("setDisabled("+_23f+") is deprecated. Use attr('disabled',"+_23f+") instead.","","2.0");this.attr("disabled",_23f);},_onFocus:function(e){if(this.scrollOnFocus){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_241){var _242=_241.currentTarget;if(_242&&_242.getAttribute){this.stateModifier=_242.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_241.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 _243=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_243);});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(){var _244=this.baseClass.split(" ");function _245(_246){_244=_244.concat(dojo.map(_244,function(c){return c+_246;}),"dijit"+_246);};if(this.checked){_245("Checked");}if(this.state){_245(this.state);}if(this.selected){_245("Selected");}if(this.disabled){_245("Disabled");}else{if(this.readOnly){_245("ReadOnly");}else{if(this._active){_245(this.stateModifier+"Active");}else{if(this._focused){_245("Focused");}if(this._hovering){_245(this.stateModifier+"Hover");}}}}var tn=this.stateNode||this.domNode,_249={};dojo.forEach(tn.className.split(" "),function(c){_249[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _249[c];});}dojo.forEach(_244,function(c){_249[c]=true;});var _24d=[];for(var c in _249){_24d.push(c);}tn.className=_24d.join(" ");this._stateClasses=_244;},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(_251){},_onChangeActive:false,_handleOnChange:function(_252,_253){this._lastValue=_252;if(this._lastValueReported==undefined&&(_253===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_252;}if((this.intermediateChanges||_253||_253===undefined)&&((typeof _252!=typeof this._lastValueReported)||this.compare(_252,this._lastValueReported)!=0)){this._lastValueReported=_252;if(this._onChangeActive){this.onChange(_252);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_254){dojo.deprecated("dijit.form._FormWidget:setValue("+_254+") is deprecated.  Use attr('value',"+_254+") instead.","","2.0");this.attr("value",_254);},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.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:""}),postCreate:function(){if(dojo.isIE||dojo.isWebKit){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_257,_258){this.value=_257;this._handleOnChange(_257,_258);},_getValueAttr:function(_259){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.isWebKit){te=document.createEvent("Events");te.initEvent("keypress",true,true);te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.target.dispatchEvent(te);}}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}
