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

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 doc=_16.document;if(doc){if(dojo.isIE){doc.attachEvent("onactivate",function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"){dijit._onFocusNode(evt.srcElement);}});doc.attachEvent("ondeactivate",function(evt){dijit._onBlurNode(evt.srcElement);});}else{doc.addEventListener("focus",function(evt){dijit._onFocusNode(evt.target);},true);doc.addEventListener("blur",function(evt){dijit._onBlurNode(evt.target);},true);}}doc=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){return;}if(_21.nodeType==9){return;}if(_21.nodeType==9){var _22=dijit.getDocumentWindow(_21).frameElement;if(!_22){return;}_21=_22;}dijit._onTouchNode(_21);if(_21==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_21;dojo.publish("focusNode",[_21]);},_setStack:function(_23){var _24=dijit._activeStack;dijit._activeStack=_23;for(var _25=0;_25<Math.min(_24.length,_23.length);_25++){if(_24[_25]!=_23[_25]){break;}}for(var i=_24.length-1;i>=_25;i--){var _27=dijit.byId(_24[i]);if(_27){_27._focused=false;_27._hasBeenBlurred=true;if(_27._onBlur){_27._onBlur();}if(_27._setStateClass){_27._setStateClass();}dojo.publish("widgetBlur",[_27]);}}for(i=_25;i<_23.length;i++){_27=dijit.byId(_23[i]);if(_27){_27._focused=true;if(_27._onFocus){_27._onFocus();}if(_27._setStateClass){_27._setStateClass();}dojo.publish("widgetFocus",[_27]);}}}});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(_28){if(this._hash[_28.id]){throw new Error("Tried to register widget with id=="+_28.id+" but that id is already registered");}this._hash[_28.id]=_28;},remove:function(id){delete this._hash[id];},forEach:function(_2a){for(var id in this._hash){_2a(this._hash[id]);}},filter:function(_2c){var res=new dijit.WidgetSet();this.forEach(function(_2e){if(_2c(_2e)){res.add(_2e);}});return res;},byId:function(id){return this._hash[id];},byClass:function(cls){return this.filter(function(_31){return _31.declaredClass==cls;});}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(_32){var id;do{id=_32+"_"+(_32 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_32]:dijit._widgetTypeCtr[_32]=0);}while(dijit.byId(id));return id;};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.registry.forEach(function(_34){_34.destroy();});});}dijit.byId=function(id){return (dojo.isString(id))?dijit.registry.byId(id):id;};dijit.byNode=function(_36){return dijit.registry.byId(_36.getAttribute("widgetId"));};dijit.getEnclosingWidget=function(_37){while(_37){if(_37.getAttribute&&_37.getAttribute("widgetId")){return dijit.registry.byId(_37.getAttribute("widgetId"));}_37=_37.parentNode;}return null;};dijit._tabElements={area:true,button:true,input:true,object:true,select:true,textarea:true};dijit._isElementShown=function(_38){var _39=dojo.style(_38);return (_39.visibility!="hidden")&&(_39.visibility!="collapsed")&&(_39.display!="none")&&(dojo.attr(_38,"type")!="hidden");};dijit.isTabNavigable=function(_3a){if(dojo.hasAttr(_3a,"disabled")){return false;}var _3b=dojo.hasAttr(_3a,"tabindex");var _3c=dojo.attr(_3a,"tabindex");if(_3b&&_3c>=0){return true;}var _3d=_3a.nodeName.toLowerCase();if(((_3d=="a"&&dojo.hasAttr(_3a,"href"))||dijit._tabElements[_3d])&&(!_3b||_3c>=0)){return true;}return false;};dijit._getTabNavigable=function(_3e){var _3f,_40,_41,_42,_43,_44;var _45=function(_46){dojo.query("> *",_46).forEach(function(_47){var _48=dijit._isElementShown(_47);if(_48&&dijit.isTabNavigable(_47)){var _49=dojo.attr(_47,"tabindex");if(!dojo.hasAttr(_47,"tabindex")||_49==0){if(!_3f){_3f=_47;}_40=_47;}else{if(_49>0){if(!_41||_49<_42){_42=_49;_41=_47;}if(!_43||_49>=_44){_44=_49;_43=_47;}}}}if(_48&&_47.nodeName.toUpperCase()!="SELECT"){_45(_47);}});};if(dijit._isElementShown(_3e)){_45(_3e);}return {first:_3f,last:_40,lowest:_41,highest:_43};};dijit.getFirstInTabbingOrder=function(_4a){var _4b=dijit._getTabNavigable(dojo.byId(_4a));return _4b.lowest?_4b.lowest:_4b.first;};dijit.getLastInTabbingOrder=function(_4c){var _4d=dijit._getTabNavigable(dojo.byId(_4c));return _4d.last?_4d.last:_4d.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_4e){this.pairs=[];this.returnWrappers=_4e||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_4f,_50,_51,_52,_53){this.pairs[((_53)?"unshift":"push")]([_4f,_50,_51,_52]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _55=this.pairs[i];if(_55[1].apply(this,arguments)){if((_55[3])||(this.returnWrappers)){return _55[2];}else{return _55[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_56){for(var i=0;i<this.pairs.length;i++){var _58=this.pairs[i];if(_58[0]==_56){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 _59=dojo.global;var _5a=dojo.doc;var w=0,h=0;var de=_5a.documentElement;var dew=de.clientWidth,deh=de.clientHeight;if(dojo.isMozilla){var _60,_61,_62,_63;var dbw=_5a.body.clientWidth;if(dbw>dew){_60=dew;_62=dbw;}else{_62=dew;_60=dbw;}var dbh=_5a.body.clientHeight;if(dbh>deh){_61=deh;_63=dbh;}else{_63=deh;_61=dbh;}w=(_62>_59.innerWidth)?_60:_62;h=(_63>_59.innerHeight)?_61:_63;}else{if(!dojo.isOpera&&_59.innerWidth){w=_59.innerWidth;h=_59.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 _66=dojo._docScroll();return {w:w,h:h,l:_66.x,t:_66.y};};dijit.placeOnScreen=function(_67,pos,_69,_6a){var _6b=dojo.map(_69,function(_6c){return {corner:_6c,pos:pos};});return dijit._place(_67,_6b);};dijit._place=function(_6d,_6e,_6f){var _70=dijit.getViewport();if(!_6d.parentNode||String(_6d.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_6d);}var _71=null;dojo.some(_6e,function(_72){var _73=_72.corner;var pos=_72.pos;if(_6f){_6f(_6d,_72.aroundCorner,_73);}var _75=_6d.style;var _76=_75.display;var _77=_75.visibility;_75.visibility="hidden";_75.display="";var mb=dojo.marginBox(_6d);_75.display=_76;_75.visibility=_77;var _79=(_73.charAt(1)=="L"?pos.x:Math.max(_70.l,pos.x-mb.w)),_7a=(_73.charAt(0)=="T"?pos.y:Math.max(_70.t,pos.y-mb.h)),_7b=(_73.charAt(1)=="L"?Math.min(_70.l+_70.w,_79+mb.w):pos.x),_7c=(_73.charAt(0)=="T"?Math.min(_70.t+_70.h,_7a+mb.h):pos.y),_7d=_7b-_79,_7e=_7c-_7a,_7f=(mb.w-_7d)+(mb.h-_7e);if(_71==null||_7f<_71.overflow){_71={corner:_73,aroundCorner:_72.aroundCorner,x:_79,y:_7a,w:_7d,h:_7e,overflow:_7f};}return !_7f;});_6d.style.left=_71.x+"px";_6d.style.top=_71.y+"px";if(_71.overflow&&_6f){_6f(_6d,_71.aroundCorner,_71.corner);}return _71;};dijit.placeOnScreenAroundNode=function(_80,_81,_82,_83){_81=dojo.byId(_81);var _84=_81.style.display;_81.style.display="";var _85=_81.offsetWidth;var _86=_81.offsetHeight;var _87=dojo.coords(_81,true);_81.style.display=_84;return dijit._placeOnScreenAroundRect(_80,_87.x,_87.y,_85,_86,_82,_83);};dijit.placeOnScreenAroundRectangle=function(_88,_89,_8a,_8b){return dijit._placeOnScreenAroundRect(_88,_89.x,_89.y,_89.width,_89.height,_8a,_8b);};dijit._placeOnScreenAroundRect=function(_8c,x,y,_8f,_90,_91,_92){var _93=[];for(var _94 in _91){_93.push({aroundCorner:_94,corner:_91[_94],pos:{x:x+(_94.charAt(1)=="L"?0:_8f),y:y+(_94.charAt(0)=="T"?0:_90)}});}return dijit._place(_8c,_93,_92);};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(_99,_9a,_9b,_9c){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 _9f=[],_a0=1000,_a1=1;this.prepare=function(_a2){dojo.body().appendChild(_a2);var s=_a2.style;if(s.display=="none"){s.display="";}s.visibility="hidden";s.position="absolute";s.top="-9999px";};this.open=function(_a4){var _a5=_a4.popup,_a6=_a4.orient||{"BL":"TL","TL":"BL"},_a7=_a4.around,id=(_a4.around&&_a4.around.id)?(_a4.around.id+"_dropdown"):("popup_"+_a1++);var _a9=dojo.doc.createElement("div");dijit.setWaiRole(_a9,"presentation");_a9.id=id;_a9.className="dijitPopup";_a9.style.zIndex=_a0+_9f.length;_a9.style.left=_a9.style.top="0px";_a9.style.visibility="hidden";if(_a4.parent){_a9.dijitPopupParent=_a4.parent.id;}dojo.body().appendChild(_a9);var s=_a5.domNode.style;s.display="";s.visibility="";s.position="";_a9.appendChild(_a5.domNode);var _ab=new dijit.BackgroundIframe(_a9);var _ac=_a7?dijit.placeOnScreenAroundElement(_a9,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a9,_a4,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);_a9.style.visibility="visible";var _ad=[];var _ae=function(){for(var pi=_9f.length-1;pi>0&&_9f[pi].parent===_9f[pi-1].widget;pi--){}return _9f[pi];};_ad.push(dojo.connect(_a9,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a4.onCancel){dojo.stopEvent(evt);_a4.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _b1=_ae();if(_b1&&_b1.onCancel){_b1.onCancel();}}}}));if(_a5.onCancel){_ad.push(dojo.connect(_a5,"onCancel",null,_a4.onCancel));}_ad.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",null,function(){var _b2=_ae();if(_b2&&_b2.onExecute){_b2.onExecute();}}));_9f.push({wrapper:_a9,iframe:_ab,widget:_a5,parent:_a4.parent,onExecute:_a4.onExecute,onCancel:_a4.onCancel,onClose:_a4.onClose,handlers:_ad});if(_a5.onOpen){_a5.onOpen(_ac);}return _ac;};this.close=function(_b3){while(dojo.some(_9f,function(_b4){return _b4.widget==_b3;})){var top=_9f.pop(),_b6=top.wrapper,_b7=top.iframe,_b8=top.widget,_b9=top.onClose;if(_b8.onClose){_b8.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(!_b8||!_b8.domNode){return;}this.prepare(_b8.domNode);_b7.destroy();dojo._destroyElement(_b6);if(_b9){_b9();}}};}();dijit._frames=new function(){var _ba=[];this.pop=function(){var _bb;if(_ba.length){_bb=_ba.pop();_bb.style.display="";}else{if(dojo.isIE){var _bc=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _bd="<iframe src='"+_bc+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_bb=dojo.doc.createElement(_bd);}else{_bb=dojo.doc.createElement("iframe");_bb.src="javascript:\"\"";_bb.className="dijitBackgroundIframe";}_bb.tabIndex=-1;dojo.body().appendChild(_bb);}return _bb;};this.push=function(_be){_be.style.display="";if(dojo.isIE){_be.style.removeExpression("width");_be.style.removeExpression("height");}_ba.push(_be);};}();if(dojo.isIE<7){dojo.addOnLoad(function(){var f=dijit._frames;dojo.forEach([f.pop()],f.push);});}dijit.BackgroundIframe=function(_c0){if(!_c0.id){throw new Error("no id");}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var _c1=dijit._frames.pop();_c0.appendChild(_c1);if(dojo.isIE){_c1.style.setExpression("width",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetWidth");_c1.style.setExpression("height",dojo._scopeName+".doc.getElementById('"+_c0.id+"').offsetHeight");}this.iframe=_c1;}};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(_c2){_c2=dojo.byId(_c2);var _c3=_c2.ownerDocument.body;var _c4=_c3.parentNode;if(dojo.isFF==2||_c2==_c3||_c2==_c4){_c2.scrollIntoView(false);return;}var rtl=!dojo._isBodyLtr();var _c6=dojo.doc.compatMode!="BackCompat";var _c7=(_c6&&!dojo.isSafari)?_c4:_c3;function addPseudoAttrs(_c8){var _c9=_c8.parentNode;var _ca=_c8.offsetParent;if(_ca==null){_c8=_c7;_ca=_c4;_c9=null;}_c8._offsetParent=(_ca==_c3)?_c7:_ca;_c8._parent=(_c9==_c3)?_c7:_c9;_c8._start={H:_c8.offsetLeft,V:_c8.offsetTop};_c8._scroll={H:_c8.scrollLeft,V:_c8.scrollTop};_c8._renderedSize={H:_c8.offsetWidth,V:_c8.offsetHeight};var bp=dojo._getBorderExtents(_c8);_c8._borderStart={H:bp.l,V:bp.t};_c8._borderSize={H:bp.w,V:bp.h};_c8._clientSize=(_c8._offsetParent==_c4&&dojo.isSafari&&_c6)?{H:_c4.clientWidth,V:_c4.clientHeight}:{H:_c8.clientWidth,V:_c8.clientHeight};_c8._scrollBarSize={V:null,H:null};for(var dir in _c8._scrollBarSize){var _cd=_c8._renderedSize[dir]-_c8._clientSize[dir]-_c8._borderSize[dir];_c8._scrollBarSize[dir]=(_c8._clientSize[dir]>0&&_cd>=15&&_cd<=17)?_cd:0;}_c8._isScrollable={V:null,H:null};for(dir in _c8._isScrollable){var _ce=dir=="H"?"V":"H";_c8._isScrollable[dir]=_c8==_c7||_c8._scroll[dir]||_c8._scrollBarSize[_ce];}};var _cf=_c2;while(_cf!=null){addPseudoAttrs(_cf);var _d0=_cf._parent;if(_d0){_d0._child=_cf;}_cf=_d0;}for(var dir in _c7._renderedSize){_c7._renderedSize[dir]=Math.min(_c7._clientSize[dir],_c7._renderedSize[dir]);}var _d2=_c2;while(_d2!=_c7){_cf=_d2._parent;if(_cf.tagName=="TD"){var _d3=_cf._parent._parent._parent;if(_d3._offsetParent==_d2._offsetParent&&_cf._offsetParent!=_d2._offsetParent){_cf=_d3;}}var _d4=_d2==_c7||(_cf._offsetParent!=_d2._offsetParent);for(dir in _d2._start){var _d5=dir=="H"?"V":"H";if(rtl&&dir=="H"&&(dojo.isSafari||dojo.isIE)&&_cf._clientSize.H>0){var _d6=_cf.scrollWidth-_cf._clientSize.H;if(_d6>0){_cf._scroll.H-=_d6;}}if(dojo.isIE&&_cf._offsetParent.tagName=="TABLE"){_cf._start[dir]-=_cf._offsetParent._borderStart[dir];_cf._borderStart[dir]=_cf._borderSize[dir]=0;}if(_cf._clientSize[dir]==0){_cf._renderedSize[dir]=_cf._clientSize[dir]=_cf._child._clientSize[dir];if(rtl&&dir=="H"){_cf._start[dir]-=_cf._renderedSize[dir];}}else{_cf._renderedSize[dir]-=_cf._borderSize[dir]+_cf._scrollBarSize[dir];}_cf._start[dir]+=_cf._borderStart[dir];var _d7=_d2._start[dir]-(_d4?0:_cf._start[dir])-_cf._scroll[dir];var _d8=_d7+_d2._renderedSize[dir]-_cf._renderedSize[dir];var _d9,_da=(dir=="H")?"scrollLeft":"scrollTop";var _db=(dir=="H"&&rtl);var _dc=_db?-_d8:_d7;var _dd=_db?-_d7:_d8;if(_dc<=0){_d9=_dc;}else{if(_dd<=0){_d9=0;}else{if(_dc<_dd){_d9=_dc;}else{_d9=_dd;}}}var _de=0;if(_d9!=0){var _df=_cf[_da];_cf[_da]+=_db?-_d9:_d9;_de=_cf[_da]-_df;_d7-=_de;_dd-=_db?-_de:_de;}_cf._renderedSize[dir]=_d2._renderedSize[dir]+_cf._scrollBarSize[dir]-((_cf._isScrollable[dir]&&_dd>0)?_dd:0);_cf._start[dir]+=(_d7>=0||!_cf._isScrollable[dir])?_d7:0;}_d2=_cf;}};}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 _e2=d.isOpera;var maj=Math.floor;var ff=d.isFF;var _e5=d.boxModel.replace(/-/,"");var _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_safari:d.isSafari,dj_gecko:d.isMozilla,dj_ff2:maj(ff)==2,dj_ff3:maj(ff)==3};_e6["dj_"+_e5]=true;var _e7=dojo.doc.documentElement;for(var p in _e6){if(_e6[p]){if(_e7.className){_e7.className+=" "+p;}else{_e7.className=p;}}}dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){_e7.className+=" dijitRtl";for(var p in _e6){if(_e6[p]){_e7.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,_eb,_ec,_ed,obj,_ef,_f0){if(obj!=this._obj){this.stop();this._initialDelay=_f0||500;this._subsequentDelay=_ef||0.9;this._obj=obj;this._evt=evt;this._node=_ec;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_eb,_ed);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(_f1,_f2,_f3,_f4,_f5,_f6){if(_f2.keyCode){_f2.charOrCode=_f2.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_f2.charCode){_f2.charOrCode=String.fromCharCode(_f2.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_f1,"onkeypress",this,function(evt){if(evt.charOrCode==_f2.charOrCode&&(_f2.ctrlKey===undefined||_f2.ctrlKey==evt.ctrlKey)&&(_f2.altKey===undefined||_f2.altKey==evt.ctrlKey)&&(_f2.shiftKey===undefined||_f2.shiftKey==evt.ctrlKey)){dojo.stopEvent(evt);dijit.typematic.trigger(_f2,_f3,_f1,_f4,_f2,_f5,_f6);}else{if(dijit.typematic._obj==_f2){dijit.typematic.stop();}}}),dojo.connect(_f1,"onkeyup",this,function(evt){if(dijit.typematic._obj==_f2){dijit.typematic.stop();}})];},addMouseListener:function(_f9,_fa,_fb,_fc,_fd){var dc=dojo.connect;return [dc(_f9,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);}),dc(_f9,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f9,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_f9,"mousemove",this,function(evt){dojo.stopEvent(evt);}),dc(_f9,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_fa,_f9,_fb,_f9,_fc,_fd);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_104,_105,_106,_107,_108,_109,_10a){return this.addKeyListener(_105,_106,_107,_108,_109,_10a).concat(this.addMouseListener(_104,_107,_108,_109,_10a));}};}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 _10d=cs.backgroundImage;var _10e=(cs.borderTopColor==cs.borderRightColor)||(_10d!=null&&(_10d=="none"||_10d=="url(invalid-url:)"));dojo[_10e?"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 _111=this.getWaiRole(elem);if(role){return (_111.indexOf(role)>-1);}else{return (_111.length>0);}},getWaiRole:function(elem){return dojo.trim((dojo.attr(elem,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(elem,role){var _115=dojo.attr(elem,"role")||"";if(dojo.isFF<3||!this._XhtmlRoles.test(_115)){dojo.attr(elem,"role",dojo.isFF<3?"wairole:"+role:role);}else{if((" "+_115+" ").indexOf(" "+role+" ")<0){var _116=dojo.trim(_115.replace(this._XhtmlRoles,""));var _117=dojo.trim(_115.replace(_116,""));dojo.attr(elem,"role",_117+(_117?" ":"")+role);}}},removeWaiRole:function(elem,role){var _11a=dojo.attr(elem,"role");if(!_11a){return;}if(role){var _11b=dojo.isFF<3?"wairole:"+role:role;var t=dojo.trim((" "+_11a+" ").replace(" "+_11b+" "," "));dojo.attr(elem,"role",t);}else{elem.removeAttribute("role");}},hasWaiState:function(elem,_11e){if(dojo.isFF<3){return elem.hasAttributeNS("http://www.w3.org/2005/07/aaa",_11e);}else{return elem.hasAttribute?elem.hasAttribute("aria-"+_11e):!!elem.getAttribute("aria-"+_11e);}},getWaiState:function(elem,_120){if(dojo.isFF<3){return elem.getAttributeNS("http://www.w3.org/2005/07/aaa",_120);}else{var _121=elem.getAttribute("aria-"+_120);return _121?_121:"";}},setWaiState:function(elem,_123,_124){if(dojo.isFF<3){elem.setAttributeNS("http://www.w3.org/2005/07/aaa","aaa:"+_123,_124);}else{elem.setAttribute("aria-"+_123,_124);}},removeWaiState:function(elem,_126){if(dojo.isFF<3){elem.removeAttributeNS("http://www.w3.org/2005/07/aaa",_126);}else{elem.removeAttribute("aria-"+_126);}}});}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(_127,_128){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 _129=dojo.date.stamp._isoRegExp.exec(_127);var _12a=null;if(_129){_129.shift();if(_129[1]){_129[1]--;}if(_129[6]){_129[6]*=1000;}if(_128){_128=new Date(_128);dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(prop){return _128["get"+prop]();}).forEach(function(_12c,_12d){if(_129[_12d]===undefined){_129[_12d]=_12c;}});}_12a=new Date(_129[0]||1970,_129[1]||0,_129[2]||1,_129[3]||0,_129[4]||0,_129[5]||0,_129[6]||0);var _12e=0;var _12f=_129[7]&&_129[7].charAt(0);if(_12f!="Z"){_12e=((_129[8]||0)*60)+(Number(_129[9])||0);if(_12f!="-"){_12e*=-1;}}if(_12f){_12e-=_12a.getTimezoneOffset();}if(_12e){_12a.setTime(_12a.getTime()+_12e*60000);}}return _12a;};dojo.date.stamp.toISOString=function(_130,_131){var _=function(n){return (n<10)?"0"+n:n;};_131=_131||{};var _134=[];var _135=_131.zulu?"getUTC":"get";var date="";if(_131.selector!="time"){var year=_130[_135+"FullYear"]();date=["0000".substr((year+"").length)+year,_(_130[_135+"Month"]()+1),_(_130[_135+"Date"]())].join("-");}_134.push(date);if(_131.selector!="date"){var time=[_(_130[_135+"Hours"]()),_(_130[_135+"Minutes"]()),_(_130[_135+"Seconds"]())].join(":");var _139=_130[_135+"Milliseconds"]();if(_131.milliseconds){time+="."+(_139<100?"0":"")+_(_139);}if(_131.zulu){time+="Z";}else{if(_131.selector!="time"){var _13a=_130.getTimezoneOffset();var _13b=Math.abs(_13a);time+=(_13a>0?"-":"+")+_(Math.floor(_13b/60))+":"+_(_13b%60);}}_134.push(time);}return _134.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");dojo.parser=new function(){var d=dojo;var _13d=d._scopeName+"Type";var qry="["+_13d+"]";function val2type(_13f){if(d.isString(_13f)){return "string";}if(typeof _13f=="number"){return "number";}if(typeof _13f=="boolean"){return "boolean";}if(d.isFunction(_13f)){return "function";}if(d.isArray(_13f)){return "array";}if(_13f instanceof Date){return "date";}if(_13f instanceof d._Url){return "url";}return "object";};function str2obj(_140,type){switch(type){case "string":return _140;case "number":return _140.length?Number(_140):NaN;case "boolean":return typeof _140=="boolean"?_140:!(_140.toLowerCase()=="false");case "function":if(d.isFunction(_140)){_140=_140.toString();_140=d.trim(_140.substring(_140.indexOf("{")+1,_140.length-1));}try{if(_140.search(/[^\w\.]+/i)!=-1){_140=d.parser._nameAnonFunc(new Function(_140),this);}return d.getObject(_140,false);}catch(e){return new Function();}case "array":return _140?_140.split(/\s*,\s*/):[];case "date":switch(_140){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_140);}case "url":return d.baseUrl+_140;default:return d.fromJson(_140);}};var _142={};function getClassInfo(_143){if(!_142[_143]){var cls=d.getObject(_143);if(!d.isFunction(cls)){throw new Error("Could not load class '"+_143+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");}var _145=cls.prototype;var _146={};for(var name in _145){if(name.charAt(0)=="_"){continue;}var _148=_145[name];_146[name]=val2type(_148);}_142[_143]={cls:cls,params:_146};}return _142[_143];};this._functionFromScript=function(_149){var _14a="";var _14b="";var _14c=_149.getAttribute("args");if(_14c){d.forEach(_14c.split(/\s*,\s*/),function(part,idx){_14a+="var "+part+" = arguments["+idx+"]; ";});}var _14f=_149.getAttribute("with");if(_14f&&_14f.length){d.forEach(_14f.split(/\s*,\s*/),function(part){_14a+="with("+part+"){";_14b+="}";});}return new Function(_14a+_149.innerHTML+_14b);};this.instantiate=function(_151){var _152=[];d.forEach(_151,function(node){if(!node){return;}var type=node.getAttribute(_13d);if((!type)||(!type.length)){return;}var _155=getClassInfo(type);var _156=_155.cls;var ps=_156._noScript||_156.prototype._noScript;var _158={};var _159=node.attributes;for(var name in _155.params){var item=_159.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _15c=item.value;switch(name){case "class":_15c=node.className;break;case "style":_15c=node.style&&node.style.cssText;}var _15d=_155.params[name];_158[name]=str2obj(_15c,_15d);}if(!ps){var _15e=[],_15f=[];d.query("> script[type^='dojo/']",node).orphan().forEach(function(_160){var _161=_160.getAttribute("event"),type=_160.getAttribute("type"),nf=d.parser._functionFromScript(_160);if(_161){if(type=="dojo/connect"){_15e.push({event:_161,func:nf});}else{_158[_161]=nf;}}else{_15f.push(nf);}});}var _163=_156["markupFactory"];if(!_163&&_156["prototype"]){_163=_156.prototype["markupFactory"];}var _164=_163?_163(_158,node,_156):new _156(_158,node);_152.push(_164);var _165=node.getAttribute("jsId");if(_165){d.setObject(_165,_164);}if(!ps){d.forEach(_15e,function(_166){d.connect(_164,_166.event,null,_166.func);});d.forEach(_15f,function(func){func.call(_164);});}});d.forEach(_152,function(_168){if(_168&&_168.startup&&!_168._started&&(!_168.getParent||!_168.getParent())){_168.startup();}});return _152;};this.parse=function(_169){var list=d.query(qry,_169);var _16b=this.instantiate(list);return _16b;};}();(function(){var _16c=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,_16c);}else{dojo._loaders.unshift(_16c);}})();dojo.parser._anonCtr=0;dojo.parser._anon={};dojo.parser._nameAnonFunc=function(_16d,_16e){var jpn="$joinpoint";var nso=(_16e||dojo.parser._anon);if(dojo.isIE){var cn=_16d["__dojoNameCache"];if(cn&&nso[cn]===_16d){return _16d["__dojoNameCache"];}}var ret="__"+dojo.parser._anonCtr++;while(typeof nso[ret]!="undefined"){ret="__"+dojo.parser._anonCtr++;}nso[ret]=_16d;return ret;};}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"connect",function(_173,_174){if(_173&&dojo.isFunction(_173._onConnect)){_173._onConnect(_174);}});dijit._connectOnUseEventHandler=function(_175){};(function(){var _176={};var _177=function(dc){if(!_176[dc]){var r=[];var _17a;var _17b=dojo.getObject(dc).prototype;for(var _17c in _17b){if(dojo.isFunction(_17b[_17c])&&(_17a=_17c.match(/^_set([a-zA-Z]*)Attr$/))&&_17a[1]){r.push(_17a[1].charAt(0).toLowerCase()+_17a[1].substr(1));}}_176[dc]=r;}return _176[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(_17d,_17e){this.create(_17d,_17e);},create:function(_17f,_180){this.srcNodeRef=dojo.byId(_180);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(_17f){this.params=_17f;dojo.mixin(this,_17f);}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 _182=function(attr,_184){if((_184.params&&attr in _184.params)||_184[attr]){_184.attr(attr,_184[attr]);}};for(var attr in this.attributeMap){_182(attr,this);}dojo.forEach(_177(this.declaredClass),function(a){if(!(a in this.attributeMap)){_182(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.doc.createElement("div");},postCreate:function(){},startup:function(){this._started=true;},destroyRecursive:function(_187){this.destroyDescendants(_187);this.destroy(_187);},destroy:function(_188){this.uninitialize();dojo.forEach(this._connects,function(_189){dojo.forEach(_189,dojo.disconnect);});dojo.forEach(this._supportingWidgets||[],function(w){if(w.destroy){w.destroy();}});this.destroyRendering(_188);dijit.registry.remove(this.id);},destroyRendering:function(_18b){if(this.bgIframe){this.bgIframe.destroy(_18b);delete this.bgIframe;}if(this.domNode){if(!_18b){dojo._destroyElement(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_18b){dojo._destroyElement(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_18c){dojo.forEach(this.getDescendants(),function(_18d){if(_18d.destroy){_18d.destroy(_18c);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_18f){if(_18f in this._deferredConnects){var _190=this[this._deferredConnects[_18f]||"domNode"];this.connect(_190,_18f.toLowerCase(),this[_18f]);delete this._deferredConnects[_18f];}},_setClassAttr:function(_191){var _192=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_192,this["class"]);this["class"]=_191;dojo.addClass(_192,_191);},_setStyleAttr:function(_193){var _194=this[this.attributeMap["style"]||"domNode"];if(_194.style.cssText){_194.style.cssText+="; "+_193;}else{_194.style.cssText=_193;}this["style"]=_193;},setAttribute:function(attr,_196){dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");this.attr(attr,_196);},_attrToDom:function(attr,_198){var _199=this.attributeMap[attr];dojo.forEach(dojo.isArray(_199)?_199:[_199],function(_19a){var _19b=this[_19a.node||_19a||"domNode"];var type=_19a.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_198)){_198=dojo.hitch(this,_198);}if(/^on[A-Z][a-zA-Z]*$/.test(attr)){attr=attr.toLowerCase();}dojo.attr(_19b,attr,_198);break;case "innerHTML":_19b.innerHTML=_198;break;case "class":dojo.removeClass(_19b,this[attr]);dojo.addClass(_19b,_198);break;}},this);this[attr]=_198;},attr:function(name,_19e){var args=arguments.length;if(args==1&&!dojo.isString(name)){for(var x in name){this.attr(x,name[x]);}return this;}var _1a1=this._getAttrNames(name);if(args==2){if(this[_1a1.s]){return this[_1a1.s](_19e)||this;}else{if(name in this.attributeMap){this._attrToDom(name,_19e);}this[name]=_19e;}return this;}else{if(this[_1a1.g]){return this[_1a1.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,_1a7,_1a8){var d=dojo;var dco=d.hitch(d,"connect",obj);var _1ab=[];if(_1a7=="ondijitclick"){if(!this.nodesWithKeyClick[obj.nodeName]){var m=d.hitch(this,_1a8);_1ab.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){_1ab.push(dco("onkeypress",this,function(e){if(e.keyCode==d.keys.ENTER){return m(e);}}));}}_1a7="onclick";}_1ab.push(dco(_1a7,this,_1a8));this._connects.push(_1ab);return _1ab;},disconnect:function(_1b0){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_1b0){dojo.forEach(_1b0,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(_1b2,_1b3){if(_1b2["declaredClass"]&&_1b2["addChild"]){_1b2.addChild(this,_1b3);}else{dojo.place(this.domNode,_1b2,_1b3);}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(_1bd,map,_1bf,_1c0){_1c0=_1c0||dojo.global;_1bf=(!_1bf)?function(v){return v;}:dojo.hitch(_1c0,_1bf);return _1bd.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_1c2,key,_1c4){var _1c5=dojo.getObject(key,false,map);if(_1c4){_1c5=dojo.getObject(_1c4,false,_1c0).call(_1c0,_1c5,key);}return _1bf(_1c5,key).toString();});};dojo.string.trim=function(str){str=str.replace(/^\s+/,"");for(var i=str.length-1;i>=0;i--){if(/\S/.test(str.charAt(i))){str=str.substring(0,i+1);break;}}return str;};}if(!dojo._hasResource["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 _1c9=this.declaredClass,_1ca=this;return dojo.string.substitute(tmpl,this,function(_1cb,key){if(key.charAt(0)=="!"){_1cb=_1ca[key.substr(1)];}if(typeof _1cb=="undefined"){throw new Error(_1c9+" template:"+key);}if(_1cb==null){return "";}return key.charAt(0)=="!"?_1cb:_1cb.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _1cd=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_1cd)){node=dijit._Templated._createNodesFromText(this._stringRepl(_1cd))[0];}else{node=_1cd.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);var _1cf=this.srcNodeRef;if(_1cf&&_1cf.parentNode){_1cf.parentNode.replaceChild(node,_1cf);}if(this.widgetsInTemplate){var cw=(this._supportingWidgets=dojo.parser.parse(node));this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(_1cf);},_fillContent:function(_1d3){var dest=this.containerNode;if(_1d3&&dest){while(_1d3.hasChildNodes()){dest.appendChild(_1d3.firstChild);}}},_attachTemplateNodes:function(_1d5,_1d6){_1d6=_1d6||function(n,p){return n.getAttribute(p);};var _1d9=dojo.isArray(_1d5)?_1d5:(_1d5.all||_1d5.getElementsByTagName("*"));var x=dojo.isArray(_1d5)?0:-1;var _1db={};for(;x<_1d9.length;x++){var _1dc=(x==-1)?_1d5:_1d9[x];if(this.widgetsInTemplate&&_1d6(_1dc,"dojoType")){continue;}var _1dd=_1d6(_1dc,"dojoAttachPoint");if(_1dd){var _1de,_1df=_1dd.split(/\s*,\s*/);while((_1de=_1df.shift())){if(dojo.isArray(this[_1de])){this[_1de].push(_1dc);}else{this[_1de]=_1dc;}}}var _1e0=_1d6(_1dc,"dojoAttachEvent");if(_1e0){var _1e1,_1e2=_1e0.split(/\s*,\s*/);var trim=dojo.trim;while((_1e1=_1e2.shift())){if(_1e1){var _1e4=null;if(_1e1.indexOf(":")!=-1){var _1e5=_1e1.split(":");_1e1=trim(_1e5[0]);_1e4=trim(_1e5[1]);}else{_1e1=trim(_1e1);}if(!_1e4){_1e4=_1e1;}this.connect(_1dc,_1e1,_1e4);}}}var role=_1d6(_1dc,"waiRole");if(role){dijit.setWaiRole(_1dc,role);}var _1e7=_1d6(_1dc,"waiState");if(_1e7){dojo.forEach(_1e7.split(/\s*,\s*/),function(_1e8){if(_1e8.indexOf("-")!=-1){var pair=_1e8.split("-");dijit.setWaiState(_1dc,pair[0],pair[1]);}});}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_1ea,_1eb,_1ec){var _1ed=dijit._Templated._templateCache;var key=_1eb||_1ea;var _1ef=_1ed[key];if(_1ef){if(!_1ef.ownerDocument||_1ef.ownerDocument==dojo.doc){return _1ef;}dojo._destroyElement(_1ef);}if(!_1eb){_1eb=dijit._Templated._sanitizeTemplateString(dojo._getText(_1ea));}_1eb=dojo.string.trim(_1eb);if(_1ec||_1eb.match(/\$\{([^\}]+)\}/g)){return (_1ed[key]=_1eb);}else{return (_1ed[key]=dijit._Templated._createNodesFromText(_1eb)[0]);}};dijit._Templated._sanitizeTemplateString=function(_1f0){if(_1f0){_1f0=_1f0.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _1f1=_1f0.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_1f1){_1f0=_1f1[1];}}else{_1f0="";}return _1f0;};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _1f2=dijit._Templated._templateCache;for(var key in _1f2){var _1f4=_1f2[key];if(!isNaN(_1f4.nodeType)){dojo._destroyElement(_1f4);}delete _1f2[key];}});}(function(){var _1f5={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 _1f8="none";var _1f9=text.replace(/^\s+/,"");for(var type in _1f5){var map=_1f5[type];if(map.re.test(_1f9)){_1f8=type;text=map.pre+text+map.post;break;}}tn.innerHTML=text;if(tn.normalize){tn.normalize();}var tag={cell:"tr",row:"tbody",section:"table"}[_1f8];var _1fd=(typeof tag!="undefined")?tn.getElementsByTagName(tag)[0]:tn;var _1fe=[];while(_1fd.firstChild){_1fe.push(_1fd.removeChild(_1fd.firstChild));}tn.innerHTML="";return _1fe;};})();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 _201=dijit.byId(id);return _201.isContainer?_201:null;}}return null;},_getSibling:function(_202){var node=this.domNode;do{node=node[_202+"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(_206,_207){var _208=this.containerNode;if(_207&&typeof _207=="number"){var _209=dojo.query("> [widgetId]",_208);if(_209&&_209.length>=_207){_208=_209[_207-1];_207="after";}}dojo.place(_206.domNode,_208,_207);if(this._started&&!_206._started){_206.startup();}},removeChild:function(_20a){if(typeof _20a=="number"&&_20a>0){_20a=this.getChildren()[_20a];}if(!_20a||!_20a.domNode){return;}var node=_20a.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(_20e){dojo.forEach(this.getChildren(),function(_20f){_20f.destroyRecursive(_20e);});},_getSiblingOfChild:function(_210,dir){var node=_210.domNode;var _213=(dir>0?"nextSibling":"previousSibling");do{node=node[_213];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node?dijit.byNode(node):null;},getIndexOfChild:function(_214){var _215=this.getChildren();for(var i=0,c;c=_215[i];i++){if(c==_214){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_218,_219){var _21a=this._keyNavCodes={};var prev=dojo.hitch(this,this.focusPrev);var next=dojo.hitch(this,this.focusNext);dojo.forEach(_218,function(code){_21a[code]=prev;});dojo.forEach(_219,function(code){_21a[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(_21f,_220){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_21f);},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 _221=this._getNextFocusableChild(this.focusedChild,1);if(_221.getFocalNodes){this.focusChild(_221,_221.getFocalNodes()[0]);}else{this.focusChild(_221);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _222=this._getNextFocusableChild(this.focusedChild,-1);if(_222.getFocalNodes){var _223=_222.getFocalNodes();this.focusChild(_222,_223[_223.length-1]);}else{this.focusChild(_222);}},focusChild:function(_224,node){if(_224){if(this.focusedChild&&_224!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_224;if(node&&_224.focusFocalNode){_224.focusFocalNode(node);}else{_224.focus();}}},_startupChild:function(_226){if(_226.getFocalNodes){dojo.forEach(_226.getFocalNodes(),function(node){dojo.attr(node,"tabindex",-1);this._connectNode(node);},this);}else{var node=_226.focusNode||_226.domNode;if(_226.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 _22e=dijit.getEnclosingWidget(evt.target);if(_22e&&_22e.isFocusable()){this.focusedChild=_22e;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_230){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_231,dir){if(_231){_231=this._getSiblingOfChild(_231,dir);}var _233=this.getChildren();for(var i=0;i<_233.length;i++){if(!_231){_231=_233[(dir>0)?0:(_233.length-1)];}if(_231.isFocusable()){return _231;}_231=this._getSiblingOfChild(_231,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(_235){_235.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_236,_237){var node=this.domNode;if(_236){dojo.marginBox(node,_236);if(_236.t){node.style.top=_236.t+"px";}if(_236.l){node.style.left=_236.l+"px";}}var mb=_237||{};dojo.mixin(mb,_236||{});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(_23f){if(_23f.baseClass){dojo.addClass(_23f.domNode,this.baseClass+"-"+_23f.baseClass);}},addChild:function(_240,_241){this.inherited(arguments);if(this._started){this._setupChild(_240);}},removeChild:function(_242){if(_242.baseClass){dojo.removeClass(_242.domNode,this.baseClass+"-"+_242.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 _248=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_24b,dim){_24b.resize?_24b.resize(dim):dojo.marginBox(_24b.domNode,dim);dojo.mixin(_24b,dojo.marginBox(_24b.domNode));dojo.mixin(_24b,dim);};dijit.layout.layoutChildren=function(_24d,dim,_24f){dim=dojo.mixin({},dim);dojo.addClass(_24d,"dijitLayoutContainer");_24f=dojo.filter(_24f,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_24f,function(item){return item.layoutAlign=="client";}));dojo.forEach(_24f,function(_252){var elm=_252.domNode,pos=_252.layoutAlign;var _255=elm.style;_255.left=dim.l+"px";_255.top=dim.t+"px";_255.bottom=_255.right="auto";dojo.addClass(elm,"dijitAlign"+_248(pos));if(pos=="top"||pos=="bottom"){size(_252,{w:dim.w});dim.h-=_252.h;if(pos=="top"){dim.t+=_252.h;}else{_255.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_252,{h:dim.h});dim.w-=_252.w;if(pos=="left"){dim.l+=_252.w;}else{_255.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_252,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(_256){this.disabled=_256;dojo.attr(this.focusNode,"disabled",_256);dijit.setWaiState(this.focusNode,"disabled",_256);if(_256){this._hovering=false;this._active=false;this.focusNode.removeAttribute("tabIndex");}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}this._setStateClass();},setDisabled:function(_257){dojo.deprecated("setDisabled("+_257+") is deprecated. Use attr('disabled',"+_257+") instead.","","2.0");this.attr("disabled",_257);},_scroll:true,_onFocus:function(e){if(this._scroll){dijit.scrollIntoView(this.domNode);}this.inherited(arguments);},_onMouse:function(_259){var _25a=_259.currentTarget;if(_25a&&_25a.getAttribute){this.stateModifier=_25a.getAttribute("stateModifier")||"";}if(!this.disabled){switch(_259.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 _25b=this.connect(dojo.body(),"onmouseup",function(){if(this._mouseDown&&this.isFocusable()){this.focus();}this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_25b);});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 _25c=this.baseClass.split(" ");function multiply(_25d){_25c=_25c.concat(dojo.map(_25c,function(c){return c+_25d;}),"dijit"+_25d);};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");}}}}var tn=this.stateNode||this.domNode,_260={};dojo.forEach(tn.className.split(" "),function(c){_260[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _260[c];});}dojo.forEach(_25c,function(c){_260[c]=true;});var _264=[];for(var c in _260){_264.push(c);}tn.className=_264.join(" ");this._stateClasses=_25c;},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(_268){},_onChangeActive:false,_handleOnChange:function(_269,_26a){this._lastValue=_269;if(this._lastValueReported==undefined&&(_26a===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_269;}if((this.intermediateChanges||_26a||_26a===undefined)&&((typeof _269!=typeof this._lastValueReported)||this.compare(_269,this._lastValueReported)!=0)){this._lastValueReported=_269;if(this._onChangeActive){this.onChange(_269);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;this._setStateClass();},destroy:function(){if(this._layoutHackHandle){clearTimeout(this._layoutHackHandle);}this.inherited(arguments);},setValue:function(_26b){dojo.deprecated("dijit.form._FormWidget:setValue("+_26b+") is deprecated.  Use attr('value',"+_26b+") instead.","","2.0");this.attr("value",_26b);},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(_26e,_26f){this.value=_26e;this._handleOnChange(_26e,_26f);},_getValueAttr:function(_270){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 _276=this;setTimeout(function(){_276._handleOnChange(_276.attr("value"),false);},0);}}return true;}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}
