/*
	Copyright (c) 2004-2012, 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 an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

if(!dojo._hasResource["dojo.window"]){dojo._hasResource["dojo.window"]=true;dojo.provide("dojo.window");dojo.window.getBox=function(){var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;var _2=dojo._docScroll();return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};};dojo.window.get=function(_3){if(dojo.isIE&&window!==document.parentWindow){_3.parentWindow.execScript("document._parentWindow = window;","Javascript");var _4=_3._parentWindow;_3._parentWindow=null;return _4;}return _3.parentWindow||_3.defaultView;};dojo.window.scrollIntoView=function(_5,_6){try{_5=dojo.byId(_5);var _7=_5.ownerDocument||dojo.doc,_8=_7.body||dojo.body(),_9=_7.documentElement||_8.parentNode,_a=dojo.isIE,_b=dojo.isWebKit;if((!(dojo.isMoz||_a||_b||dojo.isOpera)||_5==_8||_5==_9)&&(typeof _5.scrollIntoView!="undefined")){_5.scrollIntoView(false);return;}var _c=_7.compatMode=="BackCompat",_d=(_a>=9&&_5.ownerDocument.parentWindow.frameElement)?((_9.clientHeight>0&&_9.clientWidth>0&&(_8.clientHeight==0||_8.clientWidth==0||_8.clientHeight>_9.clientHeight||_8.clientWidth>_9.clientWidth))?_9:_8):(_c?_8:_9),_e=_b?_8:_d,_f=_d.clientWidth,_10=_d.clientHeight,rtl=!dojo._isBodyLtr(),_11=_6||dojo.position(_5),el=_5.parentNode,_12=function(el){return ((_a<=6||(_a&&_c))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));};if(_12(_5)){return;}while(el){if(el==_8){el=_e;}var _13=dojo.position(el),_14=_12(el);if(el==_e){_13.w=_f;_13.h=_10;if(_e==_9&&_a&&rtl){_13.x+=_e.offsetWidth-_13.w;}if(_13.x<0||!_a){_13.x=0;}if(_13.y<0||!_a){_13.y=0;}}else{var pb=dojo._getPadBorderExtents(el);_13.w-=pb.w;_13.h-=pb.h;_13.x+=pb.l;_13.y+=pb.t;var _15=el.clientWidth,_16=_13.w-_15;if(_15>0&&_16>0){_13.w=_15;_13.x+=(rtl&&(_a||el.clientLeft>pb.l))?_16:0;}_15=el.clientHeight;_16=_13.h-_15;if(_15>0&&_16>0){_13.h=_15;}}if(_14){if(_13.y<0){_13.h+=_13.y;_13.y=0;}if(_13.x<0){_13.w+=_13.x;_13.x=0;}if(_13.y+_13.h>_10){_13.h=_10-_13.y;}if(_13.x+_13.w>_f){_13.w=_f-_13.x;}}var l=_11.x-_13.x,t=_11.y-Math.max(_13.y,0),r=l+_11.w-_13.w,bot=t+_11.h-_13.h;if(r*l>0){var s=Math[l<0?"max":"min"](l,r);if(rtl&&((_a==8&&!_c)||_a>=9)){s=-s;}_11.x+=el.scrollLeft;el.scrollLeft+=s;_11.x-=el.scrollLeft;}if(bot*t>0){_11.y+=el.scrollTop;el.scrollTop+=Math[t<0?"max":"min"](t,bot);_11.y-=el.scrollTop;}el=(el!=_e)&&!_14&&el.parentNode;}}catch(error){console.error("scrollIntoView: "+error);_5.scrollIntoView(false);}};}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={};this.length=0;},add:function(_17){if(this._hash[_17.id]){throw new Error("Tried to register widget with id=="+_17.id+" but that id is already registered");}this._hash[_17.id]=_17;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_18,_19){_19=_19||dojo.global;var i=0,id;for(id in this._hash){_18.call(_19,this._hash[id],i++,this._hash);}return this;},filter:function(_1a,_1b){_1b=_1b||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_1a.call(_1b,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_1c;for(id in this._hash){_1c=this._hash[id];if(_1c.declaredClass==cls){res.add(_1c);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_1d,_1e){return dojo.map(this.toArray(),_1d,_1e);},every:function(_1f,_20){_20=_20||dojo.global;var x=0,i;for(i in this._hash){if(!_1f.call(_20,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_21,_22){_22=_22||dojo.global;var x=0,i;for(i in this._hash){if(_21.call(_22,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _23=dijit.registry._hash,_24=dojo.attr,_25=dojo.hasAttr,_26=dojo.style;dijit.byId=function(id){return typeof id=="string"?_23[id]:id;};var _27={};dijit.getUniqueId=function(_28){var id;do{id=_28+"_"+(_28 in _27?++_27[_28]:_27[_28]=0);}while(_23[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_29){var _2a=[];function _2b(_2c){for(var _2d=_2c.firstChild;_2d;_2d=_2d.nextSibling){if(_2d.nodeType==1){var _2e=_2d.getAttribute("widgetId");if(_2e){_2a.push(_23[_2e]);}else{_2b(_2d);}}}};_2b(_29);return _2a;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_2f){if(!_2f._destroyed){if(_2f.destroyRecursive){_2f.destroyRecursive();}else{if(_2f.destroy){_2f.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_30){return _23[_30.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_31){while(_31){var id=_31.getAttribute&&_31.getAttribute("widgetId");if(id){return _23[id];}_31=_31.parentNode;}return null;};var _32=(dijit._isElementShown=function(_33){var s=_26(_33);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_24(_33,"type")!="hidden");});dijit.hasDefaultTabStop=function(_34){switch(_34.nodeName.toLowerCase()){case "a":return _25(_34,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return _34.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=_34.contentDocument,_35=doc&&doc.body;return _35&&_35.contentEditable=="true";}else{try{doc=_34.contentWindow.document;_35=doc&&doc.body;return _35&&_35.firstChild&&_35.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return _34.contentEditable=="true";}};var _36=(dijit.isTabNavigable=function(_37){if(_24(_37,"disabled")){return false;}else{if(_25(_37,"tabIndex")){return _24(_37,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_37);}}});dijit._getTabNavigable=function(_38){var _39,_3a,_3b,_3c,_3d,_3e;var _3f=function(_40){dojo.query("> *",_40).forEach(function(_41){if((dojo.isIE<=9&&_41.scopeName!=="HTML")||!_32(_41)){return;}if(_36(_41)){var _42=_24(_41,"tabIndex");if(!_25(_41,"tabIndex")||_42==0){if(!_39){_39=_41;}_3a=_41;}else{if(_42>0){if(!_3b||_42<_3c){_3c=_42;_3b=_41;}if(!_3d||_42>=_3e){_3e=_42;_3d=_41;}}}}if(_41.nodeName.toUpperCase()!="SELECT"){_3f(_41);}});};if(_32(_38)){_3f(_38);}return {first:_39,last:_3a,lowest:_3b,highest:_3d};};dijit.getFirstInTabbingOrder=function(_43){var _44=dijit._getTabNavigable(dojo.byId(_43));return _44.lowest?_44.lowest:_44.first;};dijit.getLastInTabbingOrder=function(_45){var _46=dijit._getTabNavigable(dojo.byId(_45));return _46.last?_46.last:_46.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}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(){return dijit.getBookmark().isCollapsed;},getBookmark:function(){var bm,rg,tg,sel=dojo.doc.selection,cf=dijit._curFocus;if(dojo.global.getSelection){sel=dojo.global.getSelection();if(sel){if(sel.isCollapsed){tg=cf?cf.tagName:"";if(tg){tg=tg.toLowerCase();if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){sel={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};return {isCollapsed:(sel.end<=sel.start),mark:sel};}}bm={isCollapsed:true};if(sel.rangeCount){bm.mark=sel.getRangeAt(0).cloneRange();}}else{rg=sel.getRangeAt(0);bm={isCollapsed:false,mark:rg.cloneRange()};}}}else{if(sel){tg=cf?cf.tagName:"";tg=tg.toLowerCase();if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){if(sel.type&&sel.type.toLowerCase()=="none"){return {isCollapsed:true,mark:null};}else{rg=sel.createRange();return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};}}bm={};try{rg=sel.createRange();bm.isCollapsed=!(sel.type=="Text"?rg.htmlText.length:rg.length);}catch(e){bm.isCollapsed=true;return bm;}if(sel.type.toUpperCase()=="CONTROL"){if(rg.length){bm.mark=[];var i=0,len=rg.length;while(i<len){bm.mark.push(rg.item(i++));}}else{bm.isCollapsed=true;bm.mark=null;}}else{bm.mark=rg.getBookmark();}}else{console.warn("No idea how to store the current selection for this browser!");}}return bm;},moveToBookmark:function(_47){var _48=dojo.doc,_49=_47.mark;if(_49){if(dojo.global.getSelection){var sel=dojo.global.getSelection();if(sel&&sel.removeAllRanges){if(_49.pRange){var r=_49;var n=r.node;n.selectionStart=r.start;n.selectionEnd=r.end;}else{sel.removeAllRanges();sel.addRange(_49);}}else{console.warn("No idea how to restore selection for this browser!");}}else{if(_48.selection&&_49){var rg;if(_49.pRange){rg=_49.range;}else{if(dojo.isArray(_49)){rg=_48.body.createControlRange();dojo.forEach(_49,function(n){rg.addElement(n);});}else{rg=_48.body.createTextRange();rg.moveToBookmark(_49);}}rg.select();}}}},getFocus:function(_4a,_4b){var _4c=!dijit._curFocus||(_4a&&dojo.isDescendant(dijit._curFocus,_4a.domNode))?dijit._prevFocus:dijit._curFocus;return {node:_4c,bookmark:(_4c==dijit._curFocus)&&dojo.withGlobal(_4b||dojo.global,dijit.getBookmark),openedForWindow:_4b};},focus:function(_4d){if(!_4d){return;}var _4e="node" in _4d?_4d.node:_4d,_4f=_4d.bookmark,_50=_4d.openedForWindow,_51=_4f?_4f.isCollapsed:false;if(_4e){var _52=(_4e.tagName.toLowerCase()=="iframe")?_4e.contentWindow:_4e;if(_52&&_52.focus){try{_52.focus();}catch(e){}}dijit._onFocusNode(_4e);}if(_4f&&dojo.withGlobal(_50||dojo.global,dijit.isCollapsed)&&!_51){if(_50){_50.focus();}try{dojo.withGlobal(_50||dojo.global,dijit.moveToBookmark,null,[_4f]);}catch(e2){}}},_activeStack:[],registerIframe:function(_53){return dijit.registerWin(_53.contentWindow,_53);},unregisterIframe:function(_54){dijit.unregisterWin(_54);},registerWin:function(_55,_56){var _57=function(evt){dijit._justMouseDowned=true;setTimeout(function(){dijit._justMouseDowned=false;},0);if(dojo.isIE&&evt&&evt.srcElement&&evt.srcElement.parentNode==null){return;}dijit._onTouchNode(_56||evt.target||evt.srcElement,"mouse");};var doc=dojo.isIE?_55.document.documentElement:_55.document;if(doc){if(dojo.isIE){doc.attachEvent("onmousedown",_57);var _58=function(evt){if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){dijit._onFocusNode(_56||evt.srcElement);}else{dijit._onTouchNode(_56||evt.srcElement);}};doc.attachEvent("onactivate",_58);var _59=function(evt){dijit._onBlurNode(_56||evt.srcElement);};doc.attachEvent("ondeactivate",_59);return function(){doc.detachEvent("onmousedown",_57);doc.detachEvent("onactivate",_58);doc.detachEvent("ondeactivate",_59);doc=null;};}else{doc.addEventListener("mousedown",_57,true);var _5a=function(evt){dijit._onFocusNode(_56||evt.target);};doc.addEventListener("focus",_5a,true);var _5b=function(evt){dijit._onBlurNode(_56||evt.target);};doc.addEventListener("blur",_5b,true);return function(){doc.removeEventListener("mousedown",_57,true);doc.removeEventListener("focus",_5a,true);doc.removeEventListener("blur",_5b,true);doc=null;};}}},unregisterWin:function(_5c){_5c&&_5c();},_onBlurNode:function(_5d){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(_5e,by){if(dijit._clearActiveWidgetsTimer){clearTimeout(dijit._clearActiveWidgetsTimer);delete dijit._clearActiveWidgetsTimer;}var _5f=[];try{while(_5e){var _60=dojo.attr(_5e,"dijitPopupParent");if(_60){_5e=dijit.byId(_60).domNode;}else{if(_5e.tagName&&_5e.tagName.toLowerCase()=="body"){if(_5e===dojo.body()){break;}_5e=dojo.window.get(_5e.ownerDocument).frameElement;}else{var id=_5e.getAttribute&&_5e.getAttribute("widgetId"),_61=id&&dijit.byId(id);if(_61&&!(by=="mouse"&&_61.get("disabled"))){_5f.unshift(id);}_5e=_5e.parentNode;}}}}catch(e){}dijit._setStack(_5f,by);},_onFocusNode:function(_62){if(!_62){return;}if(_62.nodeType==9){return;}dijit._onTouchNode(_62);if(_62==dijit._curFocus){return;}if(dijit._curFocus){dijit._prevFocus=dijit._curFocus;}dijit._curFocus=_62;dojo.publish("focusNode",[_62]);},_setStack:function(_63,by){var _64=dijit._activeStack;dijit._activeStack=_63;for(var _65=0;_65<Math.min(_64.length,_63.length);_65++){if(_64[_65]!=_63[_65]){break;}}var _66;for(var i=_64.length-1;i>=_65;i--){_66=dijit.byId(_64[i]);if(_66){_66._focused=false;_66._hasBeenBlurred=true;if(_66._onBlur){_66._onBlur(by);}dojo.publish("widgetBlur",[_66,by]);}}for(i=_65;i<_63.length;i++){_66=dijit.byId(_63[i]);if(_66){_66._focused=true;if(_66._onFocus){_66._onFocus(by);}dojo.publish("widgetFocus",[_66,by]);}}}});dojo.addOnLoad(function(){var _67=dijit.registerWin(window);if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit.unregisterWin(_67);_67=null;});}});}if(!dojo._hasResource["dojo.AdapterRegistry"]){dojo._hasResource["dojo.AdapterRegistry"]=true;dojo.provide("dojo.AdapterRegistry");dojo.AdapterRegistry=function(_68){this.pairs=[];this.returnWrappers=_68||false;};dojo.extend(dojo.AdapterRegistry,{register:function(_69,_6a,_6b,_6c,_6d){this.pairs[((_6d)?"unshift":"push")]([_69,_6a,_6b,_6c]);},match:function(){for(var i=0;i<this.pairs.length;i++){var _6e=this.pairs[i];if(_6e[1].apply(this,arguments)){if((_6e[3])||(this.returnWrappers)){return _6e[2];}else{return _6e[2].apply(this,arguments);}}}throw new Error("No match found");},unregister:function(_6f){for(var i=0;i<this.pairs.length;i++){var _70=this.pairs[i];if(_70[0]==_6f){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(){return dojo.window.getBox();};dijit.placeOnScreen=function(_71,pos,_72,_73){var _74=dojo.map(_72,function(_75){var c={corner:_75,pos:{x:pos.x,y:pos.y}};if(_73){c.pos.x+=_75.charAt(1)=="L"?_73.x:-_73.x;c.pos.y+=_75.charAt(0)=="T"?_73.y:-_73.y;}return c;});return dijit._place(_71,_74);};dijit._place=function(_76,_77,_78){var _79=dojo.window.getBox();if(!_76.parentNode||String(_76.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(_76);}var _7a=null;dojo.some(_77,function(_7b){var _7c=_7b.corner;var pos=_7b.pos;if(_78){_78(_76,_7b.aroundCorner,_7c);}var _7d=_76.style;var _7e=_7d.display;var _7f=_7d.visibility;_7d.visibility="hidden";_7d.display="";var mb=dojo.marginBox(_76);_7d.display=_7e;_7d.visibility=_7f;var _80=Math.max(_79.l,_7c.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_81=Math.max(_79.t,_7c.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_82=Math.min(_79.l+_79.w,_7c.charAt(1)=="L"?(_80+mb.w):pos.x),_83=Math.min(_79.t+_79.h,_7c.charAt(0)=="T"?(_81+mb.h):pos.y),_84=_82-_80,_85=_83-_81,_86=(mb.w-_84)+(mb.h-_85);if(_7a==null||_86<_7a.overflow){_7a={corner:_7c,aroundCorner:_7b.aroundCorner,x:_80,y:_81,w:_84,h:_85,overflow:_86};}return !_86;});_76.style.left=_7a.x+"px";_76.style.top=_7a.y+"px";if(_7a.overflow&&_78){_78(_76,_7a.aroundCorner,_7a.corner);}return _7a;};dijit.placeOnScreenAroundNode=function(_87,_88,_89,_8a){_88=dojo.byId(_88);var _8b=_88.style.display;_88.style.display="";var _8c=dojo.position(_88,true);_88.style.display=_8b;return dijit._placeOnScreenAroundRect(_87,_8c.x,_8c.y,_8c.w,_8c.h,_89,_8a);};dijit.placeOnScreenAroundRectangle=function(_8d,_8e,_8f,_90){return dijit._placeOnScreenAroundRect(_8d,_8e.x,_8e.y,_8e.width,_8e.height,_8f,_90);};dijit._placeOnScreenAroundRect=function(_91,x,y,_92,_93,_94,_95){var _96=[];for(var _97 in _94){_96.push({aroundCorner:_97,corner:_94[_97],pos:{x:x+(_97.charAt(1)=="L"?0:_92),y:y+(_97.charAt(0)=="T"?0:_93)}});}return dijit._place(_91,_96,_95);};dijit.placementRegistry=new dojo.AdapterRegistry();dijit.placementRegistry.register("node",function(n,x){return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";},dijit.placeOnScreenAroundNode);dijit.placementRegistry.register("rect",function(n,x){return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;},dijit.placeOnScreenAroundRectangle);dijit.placeOnScreenAroundElement=function(_98,_99,_9a,_9b){return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);};dijit.getPopupAroundAlignment=function(_9c,_9d){var _9e={};dojo.forEach(_9c,function(pos){switch(pos){case "after":_9e[_9d?"BR":"BL"]=_9d?"BL":"BR";break;case "before":_9e[_9d?"BL":"BR"]=_9d?"BR":"BL";break;case "below":_9e[_9d?"BL":"BR"]=_9d?"TL":"TR";_9e[_9d?"BR":"BL"]=_9d?"TR":"TL";break;case "above":default:_9e[_9d?"TL":"TR"]=_9d?"BL":"BR";_9e[_9d?"TR":"TL"]=_9d?"BR":"BL";break;}});return _9e;};}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(doc){return dojo.window.get(doc);};}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup={_stack:[],_beginZIndex:1000,_idGen:1,moveOffScreen:function(_9f){var _a0=_9f.declaredClass?_9f._popupWrapper:(dojo.hasClass(_9f.parentNode,"dijitPopup")&&_9f.parentNode),_a1=_9f.domNode||_9f;if(_a0){dojo.style(_a0,{visibility:"hidden",top:"-9999px"});}else{_a0=dojo.create("div",{"class":"dijitPopup",style:{visibility:"hidden",top:"-9999px"},role:"presentation"},dojo.body());_a0.appendChild(_a1);var s=_a1.style;s.display="";s.visibility="";s.position="";s.top="0px";if(_9f.declaredClass){_9f._popupWrapper=_a0;dojo.connect(_9f,"destroy",function(){dojo.destroy(_a0);delete _9f._popupWrapper;});}}},getTopPopup:function(){var _a2=this._stack;for(var pi=_a2.length-1;pi>0&&_a2[pi].parent===_a2[pi-1].widget;pi--){}return _a2[pi];},open:function(_a3){var _a4=this._stack,_a5=_a3.popup,_a6=_a3.orient||((_a3.parent?_a3.parent.isLeftToRight():dojo._isBodyLtr())?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_a7=_a3.around,id=(_a3.around&&_a3.around.id)?(_a3.around.id+"_dropdown"):("popup_"+this._idGen++);if(!_a5._popupWrapper){this.moveOffScreen(_a5);}var _a8=_a5._popupWrapper;dojo.attr(_a8,{id:id,style:{zIndex:this._beginZIndex+_a4.length},"class":"dijitPopup "+(_a5.baseClass||_a5["class"]||"").split(" ")[0]+"Popup",dijitPopupParent:_a3.parent?_a3.parent.id:""});if(dojo.isIE||dojo.isMoz){if(!_a5.bgIframe){_a5.bgIframe=new dijit.BackgroundIframe(_a8);}}var _a9=_a7?dijit.placeOnScreenAroundElement(_a8,_a7,_a6,_a5.orient?dojo.hitch(_a5,"orient"):null):dijit.placeOnScreen(_a8,_a3,_a6=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_a3.padding);_a8.style.visibility="visible";_a5.domNode.style.visibility="visible";var _aa=[];_aa.push(dojo.connect(_a8,"onkeypress",this,function(evt){if(evt.charOrCode==dojo.keys.ESCAPE&&_a3.onCancel){dojo.stopEvent(evt);_a3.onCancel();}else{if(evt.charOrCode===dojo.keys.TAB){dojo.stopEvent(evt);var _ab=this.getTopPopup();if(_ab&&_ab.onCancel){_ab.onCancel();}}}}));if(_a5.onCancel){_aa.push(dojo.connect(_a5,"onCancel",_a3.onCancel));}_aa.push(dojo.connect(_a5,_a5.onExecute?"onExecute":"onChange",this,function(){var _ac=this.getTopPopup();if(_ac&&_ac.onExecute){_ac.onExecute();}}));_a4.push({widget:_a5,parent:_a3.parent,onExecute:_a3.onExecute,onCancel:_a3.onCancel,onClose:_a3.onClose,handlers:_aa});if(_a5.onOpen){_a5.onOpen(_a9);}return _a9;},close:function(_ad){var _ae=this._stack;while(dojo.some(_ae,function(_af){return _af.widget==_ad;})){var top=_ae.pop(),_b0=top.widget,_b1=top.onClose;if(_b0.onClose){_b0.onClose();}dojo.forEach(top.handlers,dojo.disconnect);if(_b0&&_b0.domNode){this.moveOffScreen(_b0);}if(_b1){_b1();}}}};dijit._frames=new function(){var _b2=[];this.pop=function(){var _b3;if(_b2.length){_b3=_b2.pop();_b3.style.display="";}else{if(dojo.isIE<9){var _b4=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";var _b5="<iframe src='"+_b4+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";_b3=dojo.doc.createElement(_b5);}else{_b3=dojo.create("iframe");_b3.src="javascript:\"\"";_b3.className="dijitBackgroundIframe";dojo.style(_b3,"opacity",0.1);}_b3.tabIndex=-1;dijit.setWaiRole(_b3,"presentation");}return _b3;};this.push=function(_b6){_b6.style.display="none";_b2.push(_b6);};}();dijit.BackgroundIframe=function(_b7){if(!_b7.id){throw new Error("no id");}if(dojo.isIE||dojo.isMoz){var _b8=dijit._frames.pop();_b7.appendChild(_b8);if(dojo.isIE<7){this.resize(_b7);this._conn=dojo.connect(_b7,"onresize",this,function(){this.resize(_b7);});}else{dojo.style(_b8,{width:"100%",height:"100%"});}this.iframe=_b8;}};dojo.extend(dijit.BackgroundIframe,{resize:function(_b9){if(this.iframe&&dojo.isIE<7){dojo.style(this.iframe,{width:_b9.offsetWidth+"px",height:_b9.offsetHeight+"px"});}},destroy:function(){if(this._conn){dojo.disconnect(this._conn);this._conn=null;}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(_ba,pos){dojo.window.scrollIntoView(_ba,pos);};}if(!dojo._hasResource["dojo.uacss"]){dojo._hasResource["dojo.uacss"]=true;dojo.provide("dojo.uacss");(function(){var d=dojo,_bb=d.doc.documentElement,ie=d.isIE,_bc=d.isOpera,maj=Math.floor,ff=d.isFF,_bd=d.boxModel.replace(/-/,""),_be={dj_ie:ie,dj_ie6:maj(ie)==6,dj_ie7:maj(ie)==7,dj_ie8:maj(ie)==8,dj_ie9:maj(ie)==9,dj_quirks:d.isQuirks,dj_iequirks:ie&&d.isQuirks,dj_opera:_bc,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:maj(ff)==3};_be["dj_"+_bd]=true;var _bf="";for(var clz in _be){if(_be[clz]){_bf+=clz+" ";}}_bb.className=d.trim(_bb.className+" "+_bf);dojo._loaders.unshift(function(){if(!dojo._isBodyLtr()){var _c0="dj_rtl dijitRtl "+_bf.replace(/ /g,"-rtl ");_bb.className=d.trim(_bb.className+" "+_c0);}});})();}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");}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=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),this._minDelay);this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);},trigger:function(evt,_c1,_c2,_c3,obj,_c4,_c5,_c6){if(obj!=this._obj){this.stop();this._initialDelay=_c5||500;this._subsequentDelay=_c4||0.9;this._minDelay=_c6||10;this._obj=obj;this._evt=evt;this._node=_c2;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(_c1,_c3);this._fireEventAndReload();this._evt=dojo.mixin({faux:true},evt);}},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(_c7,_c8,_c9,_ca,_cb,_cc,_cd){if(_c8.keyCode){_c8.charOrCode=_c8.keyCode;dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}else{if(_c8.charCode){_c8.charOrCode=String.fromCharCode(_c8.charCode);dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");}}return [dojo.connect(_c7,"onkeypress",this,function(evt){if(evt.charOrCode==_c8.charOrCode&&(_c8.ctrlKey===undefined||_c8.ctrlKey==evt.ctrlKey)&&(_c8.altKey===undefined||_c8.altKey==evt.altKey)&&(_c8.metaKey===undefined||_c8.metaKey==(evt.metaKey||false))&&(_c8.shiftKey===undefined||_c8.shiftKey==evt.shiftKey)){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_c9,_c7,_ca,_c8,_cb,_cc,_cd);}else{if(dijit.typematic._obj==_c8){dijit.typematic.stop();}}}),dojo.connect(_c7,"onkeyup",this,function(evt){if(dijit.typematic._obj==_c8){dijit.typematic.stop();}})];},addMouseListener:function(_ce,_cf,_d0,_d1,_d2,_d3){var dc=dojo.connect;return [dc(_ce,"mousedown",this,function(evt){dojo.stopEvent(evt);dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);}),dc(_ce,"mouseup",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ce,"mouseout",this,function(evt){dojo.stopEvent(evt);dijit.typematic.stop();}),dc(_ce,"mousemove",this,function(evt){evt.preventDefault();}),dc(_ce,"dblclick",this,function(evt){dojo.stopEvent(evt);if(dojo.isIE){dijit.typematic.trigger(evt,_cf,_ce,_d0,_ce,_d1,_d2,_d3);setTimeout(dojo.hitch(this,dijit.typematic.stop),50);}})];},addListener:function(_d4,_d5,_d6,_d7,_d8,_d9,_da,_db){return this.addKeyListener(_d5,_d6,_d7,_d8,_d9,_da,_db).concat(this.addMouseListener(_d4,_d7,_d8,_d9,_da,_db));}};}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 _dc=cs.backgroundImage;var _dd=(cs.borderTopColor==cs.borderRightColor)||(_dc!=null&&(_dc=="none"||_dc=="url(invalid-url:)"));dojo[_dd?"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(_de,_df){var _e0=this.getWaiRole(_de);return _df?(_e0.indexOf(_df)>-1):(_e0.length>0);},getWaiRole:function(_e1){return dojo.trim((dojo.attr(_e1,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));},setWaiRole:function(_e2,_e3){var _e4=dojo.attr(_e2,"role")||"";if(!this._XhtmlRoles.test(_e4)){dojo.attr(_e2,"role",_e3);}else{if((" "+_e4+" ").indexOf(" "+_e3+" ")<0){var _e5=dojo.trim(_e4.replace(this._XhtmlRoles,""));var _e6=dojo.trim(_e4.replace(_e5,""));dojo.attr(_e2,"role",_e6+(_e6?" ":"")+_e3);}}},removeWaiRole:function(_e7,_e8){var _e9=dojo.attr(_e7,"role");if(!_e9){return;}if(_e8){var t=dojo.trim((" "+_e9+" ").replace(" "+_e8+" "," "));dojo.attr(_e7,"role",t);}else{_e7.removeAttribute("role");}},hasWaiState:function(_ea,_eb){return _ea.hasAttribute?_ea.hasAttribute("aria-"+_eb):!!_ea.getAttribute("aria-"+_eb);},getWaiState:function(_ec,_ed){return _ec.getAttribute("aria-"+_ed)||"";},setWaiState:function(_ee,_ef,_f0){_ee.setAttribute("aria-"+_ef,_f0);},removeWaiState:function(_f1,_f2){_f1.removeAttribute("aria-"+_f2);}});}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(_f3,_f4){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 _f5=dojo.date.stamp._isoRegExp.exec(_f3),_f6=null;if(_f5){_f5.shift();if(_f5[1]){_f5[1]--;}if(_f5[6]){_f5[6]*=1000;}if(_f4){_f4=new Date(_f4);dojo.forEach(dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_f7){return _f4["get"+_f7]();}),function(_f8,_f9){_f5[_f9]=_f5[_f9]||_f8;});}_f6=new Date(_f5[0]||1970,_f5[1]||0,_f5[2]||1,_f5[3]||0,_f5[4]||0,_f5[5]||0,_f5[6]||0);if(_f5[0]<100){_f6.setFullYear(_f5[0]||1970);}var _fa=0,_fb=_f5[7]&&_f5[7].charAt(0);if(_fb!="Z"){_fa=((_f5[8]||0)*60)+(Number(_f5[9])||0);if(_fb!="-"){_fa*=-1;}}if(_fb){_fa-=_f6.getTimezoneOffset();}if(_fa){_f6.setTime(_f6.getTime()+_fa*60000);}}return _f6;};dojo.date.stamp.toISOString=function(_fc,_fd){var _fe=function(n){return (n<10)?"0"+n:n;};_fd=_fd||{};var _ff=[],_100=_fd.zulu?"getUTC":"get",date="";if(_fd.selector!="time"){var year=_fc[_100+"FullYear"]();date=["0000".substr((year+"").length)+year,_fe(_fc[_100+"Month"]()+1),_fe(_fc[_100+"Date"]())].join("-");}_ff.push(date);if(_fd.selector!="date"){var time=[_fe(_fc[_100+"Hours"]()),_fe(_fc[_100+"Minutes"]()),_fe(_fc[_100+"Seconds"]())].join(":");var _101=_fc[_100+"Milliseconds"]();if(_fd.milliseconds){time+="."+(_101<100?"0":"")+_fe(_101);}if(_fd.zulu){time+="Z";}else{if(_fd.selector!="time"){var _102=_fc.getTimezoneOffset();var _103=Math.abs(_102);time+=(_102>0?"-":"+")+_fe(Math.floor(_103/60))+":"+_fe(_103%60);}}_ff.push(time);}return _ff.join("T");};}if(!dojo._hasResource["dojo.parser"]){dojo._hasResource["dojo.parser"]=true;dojo.provide("dojo.parser");new Date("X");dojo.parser=new function(){var d=dojo;this._attrName=d._scopeName+"Type";this._query="["+this._attrName+"]";function _104(_105){if(d.isString(_105)){return "string";}if(typeof _105=="number"){return "number";}if(typeof _105=="boolean"){return "boolean";}if(d.isFunction(_105)){return "function";}if(d.isArray(_105)){return "array";}if(_105 instanceof Date){return "date";}if(_105 instanceof d._Url){return "url";}return "object";};function _106(_107,type){switch(type){case "string":return _107;case "number":return _107.length?Number(_107):NaN;case "boolean":return typeof _107=="boolean"?_107:!(_107.toLowerCase()=="false");case "function":if(d.isFunction(_107)){_107=_107.toString();_107=d.trim(_107.substring(_107.indexOf("{")+1,_107.length-1));}try{if(_107===""||_107.search(/[^\w\.]+/i)!=-1){return new Function(_107);}else{return d.getObject(_107,false)||new Function(_107);}}catch(e){return new Function();}case "array":return _107?_107.split(/\s*,\s*/):[];case "date":switch(_107){case "":return new Date("");case "now":return new Date();default:return d.date.stamp.fromISOString(_107);}case "url":return d.baseUrl+_107;default:return d.fromJson(_107);}};var _108={};dojo.connect(dojo,"extend",function(){_108={};});function _109(_10a){if(!_108[_10a]){var cls=d.getObject(_10a);if(!cls){return null;}var _10b=cls.prototype;var _10c={},_10d={};for(var name in _10b){if(name.charAt(0)=="_"){continue;}if(name in _10d){continue;}var _10e=_10b[name];_10c[name]=_104(_10e);}_108[_10a]={cls:cls,params:_10c};}return _108[_10a];};this._functionFromScript=function(_10f){var _110="";var _111="";var _112=_10f.getAttribute("args");if(_112){d.forEach(_112.split(/\s*,\s*/),function(part,idx){_110+="var "+part+" = arguments["+idx+"]; ";});}var _113=_10f.getAttribute("with");if(_113&&_113.length){d.forEach(_113.split(/\s*,\s*/),function(part){_110+="with("+part+"){";_111+="}";});}return new Function(_110+_10f.innerHTML+_111);};this.instantiate=function(_114,_115,args){var _116=[],dp=dojo.parser;_115=_115||{};args=args||{};d.forEach(_114,function(obj){if(!obj){return;}var node,type,_117,_118,_119;if(obj.node){node=obj.node;type=obj.type;_117=obj.clsInfo||(type&&_109(type));_118=_117&&_117.cls;_119=obj.scripts;}else{node=obj;type=dp._attrName in _115?_115[dp._attrName]:node.getAttribute(dp._attrName);_117=type&&_109(type);_118=_117&&_117.cls;_119=(_118&&(_118._noScript||_118.prototype._noScript)?[]:d.query("> script[type^='dojo/']",node));}if(!_117){throw new Error("Could not load class '"+type);}var _11a={},_11b=node.attributes;if(args.defaults){dojo.mixin(_11a,args.defaults);}if(obj.inherited){dojo.mixin(_11a,obj.inherited);}for(var name in _117.params){var item=name in _115?{value:_115[name],specified:true}:_11b.getNamedItem(name);if(!item||(!item.specified&&(!dojo.isIE||name.toLowerCase()!="value"))){continue;}var _11c=item.value;switch(name){case "class":_11c="className" in _115?_115.className:node.className;break;case "style":_11c="style" in _115?_115.style:(node.style&&node.style.cssText);}var _11d=_117.params[name];if(typeof _11c=="string"){_11a[name]=_106(_11c,_11d);}else{_11a[name]=_11c;}}var _11e=[],_11f=[];d.forEach(_119,function(_120){node.removeChild(_120);var _121=_120.getAttribute("event"),type=_120.getAttribute("type"),nf=d.parser._functionFromScript(_120);if(_121){if(type=="dojo/connect"){_11e.push({event:_121,func:nf});}else{_11a[_121]=nf;}}else{_11f.push(nf);}});var _122=_118.markupFactory||_118.prototype&&_118.prototype.markupFactory;var _123=_122?_122(_11a,node,_118):new _118(_11a,node);_116.push(_123);var _124=node.getAttribute("jsId");if(_124){d.setObject(_124,_123);}d.forEach(_11e,function(_125){d.connect(_123,_125.event,null,_125.func);});d.forEach(_11f,function(func){func.call(_123);});});if(!_115._started){d.forEach(_116,function(_126){if(!args.noStart&&_126&&_126.startup&&!_126._started&&(!_126.getParent||!_126.getParent())){_126.startup();}});}return _116;};this.parse=function(_127,args){var root;if(!args&&_127&&_127.rootNode){args=_127;root=args.rootNode;}else{root=_127;}var _128=this._attrName;function scan(_129,list){var _12a=dojo.clone(_129.inherited);dojo.forEach(["dir","lang"],function(name){var val=_129.node.getAttribute(name);if(val){_12a[name]=val;}});var _12b=_129.clsInfo&&!_129.clsInfo.cls.prototype._noScript?_129.scripts:null;var _12c=!_129.clsInfo||!_129.clsInfo.cls.prototype.stopParser;for(var _12d=_129.node.firstChild;_12d;_12d=_12d.nextSibling){if(_12d.nodeType==1){var type=_12c&&_12d.getAttribute(_128);if(type){var _12e={"type":type,clsInfo:_109(type),node:_12d,scripts:[],inherited:_12a};list.push(_12e);scan(_12e,list);}else{if(_12b&&_12d.nodeName.toLowerCase()=="script"){type=_12d.getAttribute("type");if(type&&/^dojo\/\w/i.test(type)){_12b.push(_12d);}}else{if(_12c){scan({node:_12d,inherited:_12a},list);}}}}}};var list=[];scan({node:root?dojo.byId(root):dojo.body(),inherited:(args&&args.inherited)||{dir:dojo._isBodyLtr()?"ltr":"rtl"}},list);return this.instantiate(list,null,args);};}();(function(){var _12f=function(){if(dojo.config.parseOnLoad){dojo.parser.parse();}};if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){dojo._loaders.splice(1,0,_12f);}else{dojo._loaders.unshift(_12f);}})();}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.require("dijit._base");dojo.connect(dojo,"_connect",function(_130,_131){if(_130&&dojo.isFunction(_130._onConnect)){_130._onConnect(_131);}});dijit._connectOnUseEventHandler=function(_132){};dijit._lastKeyDownNode=null;if(dojo.isIE){(function(){var _133=function(evt){dijit._lastKeyDownNode=evt.srcElement;};dojo.doc.attachEvent("onkeydown",_133);dojo.addOnWindowUnload(function(){dojo.doc.detachEvent("onkeydown",_133);});})();}else{dojo.doc.addEventListener("keydown",function(evt){dijit._lastKeyDownNode=evt.target;},true);}(function(){var _134={},_135=function(_136){var dc=_136.declaredClass;if(!_134[dc]){var r=[],_137,_138=_136.constructor.prototype;for(var _139 in _138){if(dojo.isFunction(_138[_139])&&(_137=_139.match(/^_set([a-zA-Z]*)Attr$/))&&_137[1]){r.push(_137[1].charAt(0).toLowerCase()+_137[1].substr(1));}}_134[dc]=r;}return _134[dc]||[];};dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",baseClass:"",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")).toString(),postscript:function(_13a,_13b){this.create(_13a,_13b);},create:function(_13c,_13d){this.srcNodeRef=dojo.byId(_13d);this._connects=[];this._subscribes=[];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(_13c){this.params=_13c;dojo.mixin(this,_13c);}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 _13e=this.srcNodeRef;if(_13e&&_13e.parentNode){_13e.parentNode.replaceChild(this.domNode,_13e);}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 _13f=function(attr,_140){if((_140.params&&attr in _140.params)||_140[attr]){_140.set(attr,_140[attr]);}};for(var attr in this.attributeMap){_13f(attr,this);}dojo.forEach(_135(this),function(a){if(!(a in this.attributeMap)){_13f(a,this);}},this);},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef||dojo.create("div");},postCreate:function(){if(this.baseClass){var _141=this.baseClass.split(" ");if(!this.isLeftToRight()){_141=_141.concat(dojo.map(_141,function(name){return name+"Rtl";}));}dojo.addClass(this.domNode,_141);}},startup:function(){this._started=true;},destroyRecursive:function(_142){this._beingDestroyed=true;this.destroyDescendants(_142);this.destroy(_142);},destroy:function(_143){this._beingDestroyed=true;this.uninitialize();var d=dojo,dfe=d.forEach,dun=d.unsubscribe;dfe(this._connects,function(_144){dfe(_144,d.disconnect);});dfe(this._subscribes,function(_145){dun(_145);});dfe(this._supportingWidgets||[],function(w){if(w.destroyRecursive){w.destroyRecursive();}else{if(w.destroy){w.destroy();}}});this.destroyRendering(_143);dijit.registry.remove(this.id);this._destroyed=true;},destroyRendering:function(_146){if(this.bgIframe){this.bgIframe.destroy(_146);delete this.bgIframe;}if(this.domNode){if(_146){dojo.removeAttr(this.domNode,"widgetId");}else{dojo.destroy(this.domNode);}delete this.domNode;}if(this.srcNodeRef){if(!_146){dojo.destroy(this.srcNodeRef);}delete this.srcNodeRef;}},destroyDescendants:function(_147){dojo.forEach(this.getChildren(),function(_148){if(_148.destroyRecursive){_148.destroyRecursive(_147);}});},uninitialize:function(){return false;},onFocus:function(){},onBlur:function(){},_onFocus:function(e){this.onFocus();},_onBlur:function(){this.onBlur();},_onConnect:function(_149){if(_149 in this._deferredConnects){var _14a=this[this._deferredConnects[_149]||"domNode"];this.connect(_14a,_149.toLowerCase(),_149);delete this._deferredConnects[_149];}},_setClassAttr:function(_14b){var _14c=this[this.attributeMap["class"]||"domNode"];dojo.removeClass(_14c,this["class"]);this["class"]=_14b;dojo.addClass(_14c,_14b);},_setStyleAttr:function(_14d){var _14e=this[this.attributeMap.style||"domNode"];if(dojo.isObject(_14d)){dojo.style(_14e,_14d);}else{if(_14e.style.cssText){_14e.style.cssText+="; "+_14d;}else{_14e.style.cssText=_14d;}}this.style=_14d;},setAttribute:function(attr,_14f){dojo.deprecated(this.declaredClass+"::setAttribute(attr, value) is deprecated. Use set() instead.","","2.0");this.set(attr,_14f);},_attrToDom:function(attr,_150){var _151=this.attributeMap[attr];dojo.forEach(dojo.isArray(_151)?_151:[_151],function(_152){var _153=this[_152.node||_152||"domNode"];var type=_152.type||"attribute";switch(type){case "attribute":if(dojo.isFunction(_150)){_150=dojo.hitch(this,_150);}var _154=_152.attribute?_152.attribute:(/^on[A-Z][a-zA-Z]*$/.test(attr)?attr.toLowerCase():attr);dojo.attr(_153,_154,_150);break;case "innerText":_153.innerHTML="";_153.appendChild(dojo.doc.createTextNode(_150));break;case "innerHTML":_153.innerHTML=_150;break;case "class":dojo.removeClass(_153,this[attr]);dojo.addClass(_153,_150);break;}},this);this[attr]=_150;},attr:function(name,_155){if(dojo.config.isDebug){var _156=arguments.callee._ach||(arguments.callee._ach={}),_157=(arguments.callee.caller||"unknown caller").toString();if(!_156[_157]){dojo.deprecated(this.declaredClass+"::attr() is deprecated. Use get() or set() instead, called from "+_157,"","2.0");_156[_157]=true;}}var args=arguments.length;if(args>=2||typeof name==="object"){return this.set.apply(this,arguments);}else{return this.get(name);}},get:function(name){var _158=this._getAttrNames(name);return this[_158.g]?this[_158.g]():this[name];},set:function(name,_159){if(typeof name==="object"){for(var x in name){this.set(x,name[x]);}return this;}var _15a=this._getAttrNames(name);if(this[_15a.s]){var _15b=this[_15a.s].apply(this,Array.prototype.slice.call(arguments,1));}else{if(name in this.attributeMap){this._attrToDom(name,_159);}var _15c=this[name];this[name]=_159;}return _15b||this;},_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(){return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];},getChildren:function(){return this.containerNode?dijit.findWidgets(this.containerNode):[];},nodesWithKeyClick:["input","button"],connect:function(obj,_15d,_15e){var d=dojo,dc=d._connect,_15f=[];if(_15d=="ondijitclick"){if(dojo.indexOf(this.nodesWithKeyClick,obj.nodeName.toLowerCase())==-1){var m=d.hitch(this,_15e);_15f.push(dc(obj,"onkeydown",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=e.target;e.preventDefault();}}),dc(obj,"onkeyup",this,function(e){if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){dijit._lastKeyDownNode=null;return m(e);}}));}_15d="onclick";}_15f.push(dc(obj,_15d,this,_15e));this._connects.push(_15f);return _15f;},disconnect:function(_160){for(var i=0;i<this._connects.length;i++){if(this._connects[i]==_160){dojo.forEach(_160,dojo.disconnect);this._connects.splice(i,1);return;}}},subscribe:function(_161,_162){var d=dojo,_163=d.subscribe(_161,this,_162);this._subscribes.push(_163);return _163;},unsubscribe:function(_164){for(var i=0;i<this._subscribes.length;i++){if(this._subscribes[i]==_164){dojo.unsubscribe(_164);this._subscribes.splice(i,1);return;}}},isLeftToRight:function(){return this.dir?(this.dir=="ltr"):dojo._isBodyLtr();},isFocusable:function(){return this.focus&&(dojo.style(this.domNode,"display")!="none");},placeAt:function(_165,_166){if(_165.declaredClass&&_165.addChild){_165.addChild(this,_166);}else{dojo.place(this.domNode,_165,_166);}return this;},_onShow:function(){this.onShow();},onShow:function(){},onHide:function(){},onClose:function(){return true;}});})();}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(_167,map,_168,_169){_169=_169||dojo.global;_168=_168?dojo.hitch(_169,_168):function(v){return v;};return _167.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_16a,key,_16b){var _16c=dojo.getObject(key,false,map);if(_16b){_16c=dojo.getObject(_16b,false,_169).call(_169,_16c,key);}return _168(_16c,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["dojo.cache"]){dojo._hasResource["dojo.cache"]=true;dojo.provide("dojo.cache");(function(){var _16d={};dojo.cache=function(_16e,url,_16f){if(typeof _16e=="string"){var _170=dojo.moduleUrl(_16e,url);}else{_170=_16e;_16f=url;}var key=_170.toString();var val=_16f;if(_16f!=undefined&&!dojo.isString(_16f)){val=("value" in _16f?_16f.value:undefined);}var _171=_16f&&_16f.sanitize?true:false;if(typeof val=="string"){val=_16d[key]=_171?dojo.cache._sanitize(val):val;}else{if(val===null){delete _16d[key];}else{if(!(key in _16d)){val=dojo._getText(key);_16d[key]=_171?dojo.cache._sanitize(val):val;}val=_16d[key];}}return val;};dojo.cache._sanitize=function(val){if(val){val=val.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var _172=val.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_172){val=_172[1];}}else{val="";}return val;};})();}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,_earlyTemplatedStartup:false,constructor:function(){this._attachPoints=[];},_stringRepl:function(tmpl){var _173=this.declaredClass,_174=this;return dojo.string.substitute(tmpl,this,function(_175,key){if(key.charAt(0)=="!"){_175=dojo.getObject(key.substr(1),false,_174);}if(typeof _175=="undefined"){throw new Error(_173+" template:"+key);}if(_175==null){return "";}return key.charAt(0)=="!"?_175:_175.toString().replace(/"/g,"&quot;");},this);},buildRendering:function(){var _176=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);var node;if(dojo.isString(_176)){node=dojo._toDom(this._stringRepl(_176));if(node.nodeType!=1){throw new Error("Invalid template: "+_176);}}else{node=_176.cloneNode(true);}this.domNode=node;this._attachTemplateNodes(node);if(this.widgetsInTemplate){var _177=dojo.parser,qry,attr;if(_177._query!="[dojoType]"){qry=_177._query;attr=_177._attrName;_177._query="[dojoType]";_177._attrName="dojoType";}var cw=(this._startupWidgets=dojo.parser.parse(node,{noStart:!this._earlyTemplatedStartup,inherited:{dir:this.dir,lang:this.lang}}));if(qry){_177._query=qry;_177._attrName=attr;}this._supportingWidgets=dijit.findWidgets(node);this._attachTemplateNodes(cw,function(n,p){return n[p];});}this._fillContent(this.srcNodeRef);},_fillContent:function(_178){var dest=this.containerNode;if(_178&&dest){while(_178.hasChildNodes()){dest.appendChild(_178.firstChild);}}},_attachTemplateNodes:function(_179,_17a){_17a=_17a||function(n,p){return n.getAttribute(p);};var _17b=dojo.isArray(_179)?_179:(_179.all||_179.getElementsByTagName("*"));var x=dojo.isArray(_179)?0:-1;for(;x<_17b.length;x++){var _17c=(x==-1)?_179:_17b[x];if(this.widgetsInTemplate&&_17a(_17c,"dojoType")){continue;}var _17d=_17a(_17c,"dojoAttachPoint");if(_17d){var _17e,_17f=_17d.split(/\s*,\s*/);while((_17e=_17f.shift())){if(dojo.isArray(this[_17e])){this[_17e].push(_17c);}else{this[_17e]=_17c;}this._attachPoints.push(_17e);}}var _180=_17a(_17c,"dojoAttachEvent");if(_180){var _181,_182=_180.split(/\s*,\s*/);var trim=dojo.trim;while((_181=_182.shift())){if(_181){var _183=null;if(_181.indexOf(":")!=-1){var _184=_181.split(":");_181=trim(_184[0]);_183=trim(_184[1]);}else{_181=trim(_181);}if(!_183){_183=_181;}this.connect(_17c,_181,_183);}}}var role=_17a(_17c,"waiRole");if(role){dijit.setWaiRole(_17c,role);}var _185=_17a(_17c,"waiState");if(_185){dojo.forEach(_185.split(/\s*,\s*/),function(_186){if(_186.indexOf("-")!=-1){var pair=_186.split("-");dijit.setWaiState(_17c,pair[0],pair[1]);}});}}},startup:function(){dojo.forEach(this._startupWidgets,function(w){if(w&&!w._started&&w.startup){w.startup();}});this.inherited(arguments);},destroyRendering:function(){dojo.forEach(this._attachPoints,function(_187){delete this[_187];},this);this._attachPoints=[];this.inherited(arguments);}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(_188,_189,_18a){var _18b=dijit._Templated._templateCache;var key=_189||_188;var _18c=_18b[key];if(_18c){try{if(!_18c.ownerDocument||_18c.ownerDocument==dojo.doc){return _18c;}}catch(e){}dojo.destroy(_18c);}if(!_189){_189=dojo.cache(_188,{sanitize:true});}_189=dojo.string.trim(_189);if(_18a||_189.match(/\$\{([^\}]+)\}/g)){return (_18b[key]=_189);}else{var node=dojo._toDom(_189);if(node.nodeType!=1){throw new Error("Invalid template: "+_189);}return (_18b[key]=node);}};if(dojo.isIE){dojo.addOnWindowUnload(function(){var _18d=dijit._Templated._templateCache;for(var key in _18d){var _18e=_18d[key];if(typeof _18e=="object"){dojo.destroy(_18e);}delete _18d[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(_18f,_190){var _191=this.containerNode;if(_190&&typeof _190=="number"){var _192=this.getChildren();if(_192&&_192.length>=_190){_191=_192[_190-1].domNode;_190="after";}}dojo.place(_18f.domNode,_191,_190);if(this._started&&!_18f._started){_18f.startup();}},removeChild:function(_193){if(typeof _193=="number"&&_193>0){_193=this.getChildren()[_193];}if(_193){var node=_193.domNode;if(node&&node.parentNode){node.parentNode.removeChild(node);}}},hasChildren:function(){return this.getChildren().length>0;},destroyDescendants:function(_194){dojo.forEach(this.getChildren(),function(_195){_195.destroyRecursive(_194);});},_getSiblingOfChild:function(_196,dir){var node=_196.domNode,_197=(dir>0?"nextSibling":"previousSibling");do{node=node[_197];}while(node&&(node.nodeType!=1||!dijit.byNode(node)));return node&&dijit.byNode(node);},getIndexOfChild:function(_198){return dojo.indexOf(this.getChildren(),_198);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_199){_199.startup();});this.inherited(arguments);}});}if(!dojo._hasResource["dijit._Contained"]){dojo._hasResource["dijit._Contained"]=true;dojo.provide("dijit._Contained");dojo.declare("dijit._Contained",null,{getParent:function(){var _19a=dijit.getEnclosingWidget(this.domNode.parentNode);return _19a&&_19a.isContainer?_19a:null;},_getSibling:function(_19b){var node=this.domNode;do{node=node[_19b+"Sibling"];}while(node&&node.nodeType!=1);return node&&dijit.byNode(node);},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");this.inherited(arguments);},startup:function(){if(this._started){return;}this.inherited(arguments);var _19c=this.getParent&&this.getParent();if(!(_19c&&_19c.isLayoutContainer)){this.resize();this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){this.resize();});}},resize:function(_19d,_19e){var node=this.domNode;if(_19d){dojo.marginBox(node,_19d);if(_19d.t){node.style.top=_19d.t+"px";}if(_19d.l){node.style.left=_19d.l+"px";}}var mb=_19e||{};dojo.mixin(mb,_19d||{});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(_19f){dojo.addClass(_19f.domNode,this.baseClass+"-child");if(_19f.baseClass){dojo.addClass(_19f.domNode,this.baseClass+"-"+_19f.baseClass);}},addChild:function(_1a0,_1a1){this.inherited(arguments);if(this._started){this._setupChild(_1a0);}},removeChild:function(_1a2){dojo.removeClass(_1a2.domNode,this.baseClass+"-child");if(_1a2.baseClass){dojo.removeClass(_1a2.domNode,this.baseClass+"-"+_1a2.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 _1a3=function(word){return word.substring(0,1).toUpperCase()+word.substring(1);};var size=function(_1a4,dim){var _1a5=_1a4.resize?_1a4.resize(dim):dojo.marginBox(_1a4.domNode,dim);if(_1a5){dojo.mixin(_1a4,_1a5);}else{dojo.mixin(_1a4,dojo.marginBox(_1a4.domNode));dojo.mixin(_1a4,dim);}};dijit.layout.layoutChildren=function(_1a6,dim,_1a7){dim=dojo.mixin({},dim);dojo.addClass(_1a6,"dijitLayoutContainer");_1a7=dojo.filter(_1a7,function(item){return item.layoutAlign!="client";}).concat(dojo.filter(_1a7,function(item){return item.layoutAlign=="client";}));dojo.forEach(_1a7,function(_1a8){var elm=_1a8.domNode,pos=_1a8.layoutAlign;var _1a9=elm.style;_1a9.left=dim.l+"px";_1a9.top=dim.t+"px";_1a9.position="absolute";dojo.addClass(elm,"dijitAlign"+_1a3(pos));if(pos=="top"||pos=="bottom"){size(_1a8,{w:dim.w});dim.h-=_1a8.h;if(pos=="top"){dim.t+=_1a8.h;}else{_1a9.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){size(_1a8,{h:dim.h});dim.w-=_1a8.w;if(pos=="left"){dim.l+=_1a8.w;}else{_1a9.left=dim.l+dim.w+"px";}}else{if(pos=="client"){size(_1a8,dim);}}}});};})();}if(!dojo._hasResource["dijit._CssStateMixin"]){dojo._hasResource["dijit._CssStateMixin"]=true;dojo.provide("dijit._CssStateMixin");dojo.declare("dijit._CssStateMixin",[],{cssStateNodes:{},postCreate:function(){this.inherited(arguments);dojo.forEach(["onmouseenter","onmouseleave","onmousedown"],function(e){this.connect(this.domNode,e,"_cssMouseEvent");},this);this.connect(this,"set",function(name,_1aa){if(arguments.length>=2&&{disabled:true,readOnly:true,checked:true,selected:true}[name]){this._setStateClass();}});dojo.forEach(["_onFocus","_onBlur"],function(ap){this.connect(this,ap,"_setStateClass");},this);for(var ap in this.cssStateNodes){this._trackMouseState(this[ap],this.cssStateNodes[ap]);}this._setStateClass();},_cssMouseEvent:function(_1ab){if(!this.disabled){switch(_1ab.type){case "mouseenter":case "mouseover":this._hovering=true;this._active=this._mouseDown;break;case "mouseleave":case "mouseout":this._hovering=false;this._active=false;break;case "mousedown":this._active=true;this._mouseDown=true;var _1ac=this.connect(dojo.body(),"onmouseup",function(){this._active=false;this._mouseDown=false;this._setStateClass();this.disconnect(_1ac);});break;}this._setStateClass();}},_setStateClass:function(){var _1ad=this.baseClass.split(" ");function _1ae(_1af){_1ad=_1ad.concat(dojo.map(_1ad,function(c){return c+_1af;}),"dijit"+_1af);};if(!this.isLeftToRight()){_1ae("Rtl");}if(this.checked){_1ae("Checked");}if(this.state){_1ae(this.state);}if(this.selected){_1ae("Selected");}if(this.disabled){_1ae("Disabled");}else{if(this.readOnly){_1ae("ReadOnly");}else{if(this._active){_1ae("Active");}else{if(this._hovering){_1ae("Hover");}}}}if(this._focused){_1ae("Focused");}var tn=this.stateNode||this.domNode,_1b0={};dojo.forEach(tn.className.split(" "),function(c){_1b0[c]=true;});if("_stateClasses" in this){dojo.forEach(this._stateClasses,function(c){delete _1b0[c];});}dojo.forEach(_1ad,function(c){_1b0[c]=true;});var _1b1=[];for(var c in _1b0){_1b1.push(c);}tn.className=_1b1.join(" ");this._stateClasses=_1ad;},_trackMouseState:function(node,_1b2){var _1b3=false,_1b4=false,_1b5=false;var self=this,cn=dojo.hitch(this,"connect",node);function _1b6(){var _1b7=("disabled" in self&&self.disabled)||("readonly" in self&&self.readonly);dojo.toggleClass(node,_1b2+"Hover",_1b3&&!_1b4&&!_1b7);dojo.toggleClass(node,_1b2+"Active",_1b4&&!_1b7);dojo.toggleClass(node,_1b2+"Focused",_1b5&&!_1b7);};cn("onmouseenter",function(){_1b3=true;_1b6();});cn("onmouseleave",function(){_1b3=false;_1b4=false;_1b6();});cn("onmousedown",function(){_1b4=true;_1b6();});cn("onmouseup",function(){_1b4=false;_1b6();});cn("onfocus",function(){_1b5=true;_1b6();});cn("onblur",function(){_1b5=false;_1b6();});this.connect(this,"set",function(name,_1b8){if(name=="disabled"||name=="readOnly"){_1b6();}});}});}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,dijit._CssStateMixin],{name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){this.nameAttrSetting=this.name?("name=\""+this.name.replace(/'/g,"&quot;")+"\""):"";this.inherited(arguments);},postCreate:function(){this.inherited(arguments);this.connect(this.domNode,"onmousedown","_onMouseDown");},_setDisabledAttr:function(_1b9){this.disabled=_1b9;dojo.attr(this.focusNode,"disabled",_1b9);if(this.valueNode){dojo.attr(this.valueNode,"disabled",_1b9);}dijit.setWaiState(this.focusNode,"disabled",_1b9);if(_1b9){this._hovering=false;this._active=false;var _1ba="tabIndex" in this.attributeMap?this.attributeMap.tabIndex:"focusNode";dojo.forEach(dojo.isArray(_1ba)?_1ba:[_1ba],function(_1bb){var node=this[_1bb];if(dojo.isWebKit||dijit.hasDefaultTabStop(node)){node.setAttribute("tabIndex","-1");}else{node.removeAttribute("tabIndex");}},this);}else{this.focusNode.setAttribute("tabIndex",this.tabIndex);}},setDisabled:function(_1bc){dojo.deprecated("setDisabled("+_1bc+") is deprecated. Use set('disabled',"+_1bc+") instead.","","2.0");this.set("disabled",_1bc);},_onFocus:function(e){if(this.scrollOnFocus){dojo.window.scrollIntoView(this.domNode);}this.inherited(arguments);},isFocusable:function(){return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");},focus:function(){dijit.focus(this.focusNode);},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(_1bd){},_onChangeActive:false,_handleOnChange:function(_1be,_1bf){this._lastValue=_1be;if(this._lastValueReported==undefined&&(_1bf===null||!this._onChangeActive)){this._resetValue=this._lastValueReported=_1be;}if((this.intermediateChanges||_1bf||_1bf===undefined)&&((typeof _1be!=typeof this._lastValueReported)||this.compare(_1be,this._lastValueReported)!=0)){this._lastValueReported=_1be;if(this._onChangeActive){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);}this._onChangeHandle=setTimeout(dojo.hitch(this,function(){this._onChangeHandle=null;this.onChange(_1be);}),0);}}},create:function(){this.inherited(arguments);this._onChangeActive=true;},destroy:function(){if(this._onChangeHandle){clearTimeout(this._onChangeHandle);this.onChange(this._lastValueReported);}this.inherited(arguments);},setValue:function(_1c0){dojo.deprecated("dijit.form._FormWidget:setValue("+_1c0+") is deprecated.  Use set('value',"+_1c0+") instead.","","2.0");this.set("value",_1c0);},getValue:function(){dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use get('value') instead.","","2.0");return this.get("value");},_onMouseDown:function(e){if(!e.ctrlKey&&this.isFocusable()){var _1c1=this.connect(dojo.body(),"onmouseup",function(){if(this.isFocusable()){this.focus();}this.disconnect(_1c1);});}}});dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_1c2){this.readOnly=_1c2;dojo.attr(this.focusNode,"readOnly",_1c2);dijit.setWaiState(this.focusNode,"readonly",_1c2);},postCreate:function(){this.inherited(arguments);if(dojo.isIE<9||(dojo.isIE&&dojo.isQuirks)){this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);}if(this._resetValue===undefined){this._resetValue=this.value;}},_setValueAttr:function(_1c3,_1c4){this.value=_1c3;this._handleOnChange(_1c3,_1c4);},_getValueAttr:function(){return this._lastValue;},undo:function(){this._setValueAttr(this._lastValueReported,false);},reset:function(){this._hasBeenBlurred=false;this._setValueAttr(this._resetValue,true);},_onKeyDown:function(e){if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){var te;if(dojo.isIE){e.preventDefault();te=document.createEventObject();te.keyCode=dojo.keys.ESCAPE;te.shiftKey=e.shiftKey;e.srcElement.fireEvent("onkeypress",te);}}},_layoutHackIE7:function(){if(dojo.isIE==7){var _1c5=this.domNode;var _1c6=_1c5.parentNode;var _1c7=_1c5.firstChild||_1c5;var _1c8=_1c7.style.filter;var _1c9=this;while(_1c6&&_1c6.clientHeight==0){(function ping(){var _1ca=_1c9.connect(_1c6,"onscroll",function(e){_1c9.disconnect(_1ca);_1c7.style.filter=(new Date()).getMilliseconds();setTimeout(function(){_1c7.style.filter=_1c8;},0);});})();_1c6=_1c6.parentNode;}}}});}if(!dojo._hasResource["dijit.dijit"]){dojo._hasResource["dijit.dijit"]=true;dojo.provide("dijit.dijit");}
