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 C=dojo.global;var A=dojo.doc;if(A.selection){return !A.selection.createRange().text}else{if(C.getSelection){var B=C.getSelection();if(dojo.isString(B)){return !B}else{return B.isCollapsed||!B.toString()}}}},getBookmark:function(){var C,B=dojo.doc.selection;if(B){var A=B.createRange();if(B.type.toUpperCase()=="CONTROL"){C=A.length?dojo._toArray(A):null}else{C=A.getBookmark()}}else{if(dojo.global.getSelection){B=dojo.global.getSelection();if(B){var A=B.getRangeAt(0);C=A.cloneRange()}}else{console.debug("No idea how to store the current selection for this browser!")}}return C},moveToBookmark:function(D){var A=dojo.doc;if(A.selection){var B;if(dojo.isArray(D)){B=A.body.createControlRange();dojo.forEach(D,B.addElement)}else{B=A.selection.createRange();B.moveToBookmark(D)}B.select()}else{var C=dojo.global.getSelection&&dojo.global.getSelection();if(C&&C.removeAllRanges){C.removeAllRanges();C.addRange(D)}else{console.debug("No idea how to restore selection for this browser!")}}},getFocus:function(B,A){return{node:B&&dojo.isDescendant(dijit._curFocus,B.domNode)?dijit._prevFocus:dijit._curFocus,bookmark:!dojo.withGlobal(A||dojo.global,dijit.isCollapsed)?dojo.withGlobal(A||dojo.global,dijit.getBookmark):null,openedForWindow:A}},focus:function(D){if(!D){return }var C="node" in D?D.node:D,B=D.bookmark,A=D.openedForWindow;if(C){var F=(C.tagName.toLowerCase()=="iframe")?C.contentWindow:C;if(F&&F.focus){try{F.focus()}catch(E){}}dijit._onFocusNode(C)}if(B&&dojo.withGlobal(A||dojo.global,dijit.isCollapsed)){if(A){A.focus()}try{dojo.withGlobal(A||dojo.global,moveToBookmark,null,[B])}catch(E){}}},_activeStack:[],registerWin:function(B){if(!B){B=window}dojo.connect(B.document,"onmousedown",null,function(C){dijit._ignoreNextBlurEvent=true;setTimeout(function(){dijit._ignoreNextBlurEvent=false},0);dijit._onTouchNode(C.target||C.srcElement)});var A=B.document.body||B.document.getElementsByTagName("body")[0];if(A){if(dojo.isIE){A.attachEvent("onactivate",function(C){if(C.srcElement.tagName.toLowerCase()!="body"){dijit._onFocusNode(C.srcElement)}});A.attachEvent("ondeactivate",function(C){dijit._onBlurNode()})}else{A.addEventListener("focus",function(C){dijit._onFocusNode(C.target)},true);A.addEventListener("blur",function(C){dijit._onBlurNode()},true)}}},_onBlurNode:function(){if(dijit._ignoreNextBlurEvent){dijit._ignoreNextBlurEvent=false;return }dijit._prevFocus=dijit._curFocus;dijit._curFocus=null;if(dijit._blurAllTimer){clearTimeout(dijit._blurAllTimer)}dijit._blurAllTimer=setTimeout(function(){delete dijit._blurAllTimer;dijit._setStack([])},100)},_onTouchNode:function(B){if(dijit._blurAllTimer){clearTimeout(dijit._blurAllTimer);delete dijit._blurAllTimer}var A=[];try{while(B){if(B.dijitPopupParent){B=dijit.byId(B.dijitPopupParent).domNode}else{if(B.tagName&&B.tagName.toLowerCase()=="body"){if(B===dojo.body()){break}B=dojo.query("iframe").filter(function(E){return E.contentDocument.body===B})[0]}else{var D=B.getAttribute&&B.getAttribute("widgetId");if(D){A.unshift(D)}B=B.parentNode}}}}catch(C){}dijit._setStack(A)},_onFocusNode:function(C){if(C&&C.tagName&&C.tagName.toLowerCase()=="body"){return }if(C==dijit._curFocus){return }dijit._prevFocus=dijit._curFocus;dijit._curFocus=C;dijit._onTouchNode(C);dojo.publish("focusNode",[C]);var A=dijit.byId(C.id);if(A&&A._setStateClass){A._focused=true;A._setStateClass();var B=dojo.connect(C,"onblur",function(){A._focused=false;A._setStateClass();dojo.disconnect(B)})}},_setStack:function(B){var A=dijit._activeStack;for(var D=0;D<Math.min(A.length,B.length);D++){if(A[D]!=B[D]){break}}for(var C=A.length-1;C>=D;C--){var E=dijit.byId(A[C]);if(E){dojo.publish("widgetBlur",[E]);if(E._onBlur){E._onBlur()}}}for(var C=D;C<B.length;C++){var E=dijit.byId(B[C]);if(E){dojo.publish("widgetFocus",[E]);if(E._onFocus){E._onFocus()}}}dijit._activeStack=B}});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(A){this._hash[A.id]=A},remove:function(A){delete this._hash[A]},forEach:function(A){for(var B in this._hash){A(this._hash[B])}},filter:function(B){var A=new dijit.WidgetSet();this.forEach(function(C){if(B(C)){A.add(C)}});return A},byId:function(A){return this._hash[A]},byClass:function(A){return this.filter(function(B){return B.declaredClass==A})}});dijit.registry=new dijit.WidgetSet();dijit._widgetTypeCtr={};dijit.getUniqueId=function(A){var B;do{B=A+"_"+(dijit._widgetTypeCtr[A]!==undefined?++dijit._widgetTypeCtr[A]:dijit._widgetTypeCtr[A]=0)}while(dijit.byId(B));return B};if(dojo.isIE){dojo.addOnUnload(function(){dijit.registry.forEach(function(A){A.destroy()})})}dijit.byId=function(A){return(dojo.isString(A))?dijit.registry.byId(A):A};dijit.byNode=function(A){return dijit.registry.byId(A.getAttribute("widgetId"))}}if(!dojo._hasResource["dijit._base.place"]){dojo._hasResource["dijit._base.place"]=true;dojo.provide("dijit._base.place");dijit.getViewport=function(){var E=dojo.global;var C=dojo.doc;var B=0,D=0;if(dojo.isMozilla){B=C.documentElement.clientWidth;D=E.innerHeight}else{if(!dojo.isOpera&&E.innerWidth){B=E.innerWidth;D=E.innerHeight}else{if(dojo.isIE&&C.documentElement&&C.documentElement.clientHeight){B=C.documentElement.clientWidth;D=C.documentElement.clientHeight}else{if(dojo.body().clientWidth){B=dojo.body().clientWidth;D=dojo.body().clientHeight}}}}var A=dojo._docScroll();return{w:B,h:D,l:A.x,t:A.y}};dijit.placeOnScreen=function(B,E,A,C){var D=dojo.map(A,function(F){return{corner:F,pos:E}});return dijit._place(B,D)};dijit._place=function(O,L,H){var I=dijit.getViewport();if(!O.parentNode||String(O.parentNode.tagName).toLowerCase()!="body"){dojo.body().appendChild(O)}var E=null;for(var P=0;P<L.length;P++){var G=L[P].corner;var F=L[P].pos;if(H){H(G)}var K=O.style.display;var B=O.style.visibility;O.style.visibility="hidden";O.style.display="";var A=dojo.marginBox(O);O.style.display=K;O.style.visibility=B;var R=(G.charAt(1)=="L"?F.x:Math.max(I.l,F.x-A.w)),Q=(G.charAt(0)=="T"?F.y:Math.max(I.t,F.y-A.h)),D=(G.charAt(1)=="L"?Math.min(I.l+I.w,R+A.w):F.x),C=(G.charAt(0)=="T"?Math.min(I.t+I.h,Q+A.h):F.y),M=D-R,J=C-Q,N=(A.w-M)+(A.h-J);if(E==null||N<E.overflow){E={corner:G,aroundCorner:L[P].aroundCorner,x:R,y:Q,w:M,h:J,overflow:N}}if(N==0){break}}O.style.left=E.x+"px";O.style.top=E.y+"px";return E};dijit.placeOnScreenAroundElement=function(B,E,F,C){E=dojo.byId(E);var H=E.style.display;E.style.display="";var I=E.offsetWidth;var D=E.offsetHeight;var G=dojo.coords(E,true);E.style.display=H;var J=[];for(var A in F){J.push({aroundCorner:A,corner:F[A],pos:{x:G.x+(A.charAt(1)=="L"?0:I),y:G.y+(A.charAt(0)=="T"?0:D)}})}return dijit._place(B,J,C)}}if(!dojo._hasResource["dijit._base.window"]){dojo._hasResource["dijit._base.window"]=true;dojo.provide("dijit._base.window");dijit.getDocumentWindow=function(C){if(dojo.isSafari&&!C._parentWindow){var A=function(E){E.document._parentWindow=E;for(var D=0;D<E.frames.length;D++){A(E.frames[D])}};A(window.top)}if(dojo.isIE&&window!==document.parentWindow&&!C._parentWindow){C.parentWindow.execScript("document._parentWindow = window;","Javascript");var B=C._parentWindow;C._parentWindow=null;return B}return C._parentWindow||C.parentWindow||C.defaultView}}if(!dojo._hasResource["dijit._base.popup"]){dojo._hasResource["dijit._base.popup"]=true;dojo.provide("dijit._base.popup");dijit.popup=new function(){var A=[],B=1000,C=1;this.open=function(K){var J=K.popup,I=K.orient||{"BL":"TL","TL":"BL"},L=K.around,E=(K.around&&K.around.id)?(K.around.id+"_dropdown"):("popup_"+C++);if(!K.submenu){this.closeAll()}var D=dojo.doc.createElement("div");D.id=E;D.className="dijitPopup";D.style.zIndex=B+A.length;if(K.parent){D.dijitPopupParent=K.parent.id}dojo.body().appendChild(D);J.domNode.style.display="";D.appendChild(J.domNode);var H=new dijit.BackgroundIframe(D);var G=L?dijit.placeOnScreenAroundElement(D,L,I,J.orient?dojo.hitch(J,"orient"):null):dijit.placeOnScreen(D,K,I=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"]);var F=[];F.push(dojo.connect(D,"onkeypress",this,function(M){if(M.keyCode==dojo.keys.ESCAPE){K.onCancel()}}));if(J.onCancel){F.push(dojo.connect(J,"onCancel",null,K.onCancel))}F.push(dojo.connect(J,J.onExecute?"onExecute":"onChange",null,function(){if(A[0]&&A[0].onExecute){A[0].onExecute()}}));A.push({wrapper:D,iframe:H,widget:J,onExecute:K.onExecute,onCancel:K.onCancel,onClose:K.onClose,handlers:F});if(J.onOpen){J.onOpen(G)}return G};this.close=function(){var F=A[A.length-1].widget;if(F.onClose){F.onClose()}if(!A.length){return }var G=A.pop();var H=G.wrapper,E=G.iframe,F=G.widget,D=G.onClose;dojo.forEach(G.handlers,dojo.disconnect);if(!F||!F.domNode){return }dojo.style(F.domNode,"display","none");dojo.body().appendChild(F.domNode);E.destroy();dojo._destroyElement(H);if(D){D()}};this.closeAll=function(){while(A.length){this.close()}};this.closeTo=function(D){while(A.length&&A[A.length-1].widget.id!=D.id){this.close()}}}();dijit._frames=new function(){var A=[];this.pop=function(){var C;if(A.length){C=A.pop();C.style.display=""}else{if(dojo.isIE){var B="<iframe src='javascript:\"\"' style='position: absolute; left: 0px; top: 0px;z-index: -1; filter:Alpha(Opacity=\"0\");'>";C=dojo.doc.createElement(B)}else{var C=dojo.doc.createElement("iframe");C.src='javascript:""';C.className="dijitBackgroundIframe"}C.tabIndex=-1;dojo.body().appendChild(C)}return C};this.push=function(B){B.style.display="";if(dojo.isIE){B.style.removeExpression("width");B.style.removeExpression("height")}A.push(B)}}();if(dojo.isIE&&dojo.isIE<7){dojo.addOnLoad(function(){var A=dijit._frames;dojo.forEach([A.pop()],A.push)})}dijit.BackgroundIframe=function(B){if(!B.id){throw new Error("no id")}if((dojo.isIE&&dojo.isIE<7)||(dojo.isFF&&dojo.isFF<3&&dojo.hasClass(dojo.body(),"dijit_a11y"))){var A=dijit._frames.pop();B.appendChild(A);if(dojo.isIE){A.style.setExpression("width","document.getElementById('"+B.id+"').offsetWidth");A.style.setExpression("height","document.getElementById('"+B.id+"').offsetHeight")}this.iframe=A}};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(C){if(dojo.isIE){if(dojo.marginBox(C.parentNode).h<=C.parentNode.scrollHeight){C.scrollIntoView(false)}}else{if(dojo.isMozilla){C.scrollIntoView(false)}else{var A=C.parentNode;var B=A.scrollTop+dojo.marginBox(A).h;var D=C.offsetTop+dojo.marginBox(C).h;if(B<D){A.scrollTop+=(D-B)}else{if(A.scrollTop>C.offsetTop){A.scrollTop-=(A.scrollTop-C.offsetTop)}}}}}}if(!dojo._hasResource["dijit._base.sniff"]){dojo._hasResource["dijit._base.sniff"]=true;dojo.provide("dijit._base.sniff");(function(){var G=dojo;var F=G.isIE;var A=G.isOpera;var B=Math.floor;var D={dj_ie:F,dj_ie6:B(F)==6,dj_ie7:B(F)==7,dj_iequirks:F&&G.isQuirks,dj_opera:A,dj_opera8:B(A)==8,dj_opera9:B(A)==9,dj_khtml:G.isKhtml,dj_safari:G.isSafari,dj_gecko:G.isMozilla};for(var E in D){if(D[E]){var C=dojo.doc.documentElement;if(C.className){C.className+=" "+E}else{C.className=E}}}})()}if(!dojo._hasResource["dijit._base.bidi"]){dojo._hasResource["dijit._base.bidi"]=true;dojo.provide("dijit._base.bidi");dojo.addOnLoad(function(){if(!dojo._isBodyLtr()){dojo.addClass(dojo.body(),"dijitRtl")}})}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(A,G,C,F,E,B,D){if(E!=this._obj){this.stop();this._initialDelay=D?D:500;this._subsequentDelay=B?B:0.9;this._obj=E;this._evt=A;this._node=C;this._currentTimeout=-1;this._count=-1;this._callback=dojo.hitch(G,F);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(D,A,G,F,C,E){var B=[];B.push(dojo.connect(D,"onkeypress",this,function(H){if(H.keyCode==A.keyCode&&(!A.charCode||A.charCode==H.charCode)&&((typeof A.ctrlKey=="undefined")||A.ctrlKey==H.ctrlKey)&&((typeof A.altKey=="undefined")||A.altKey==H.ctrlKey)&&((typeof A.shiftKey=="undefined")||A.shiftKey==H.ctrlKey)){dojo.stopEvent(H);dijit.typematic.trigger(A,G,D,F,A,C,E)}else{if(dijit.typematic._obj==A){dijit.typematic.stop()}}}));B.push(dojo.connect(D,"onkeyup",this,function(H){if(dijit.typematic._obj==A){dijit.typematic.stop()}}));return B},addMouseListener:function(C,F,E,B,D){var A=[];A.push(dojo.connect(C,"mousedown",this,function(G){dojo.stopEvent(G);dijit.typematic.trigger(G,F,C,E,C,B,D)}));A.push(dojo.connect(C,"mouseup",this,function(G){dojo.stopEvent(G);dijit.typematic.stop()}));A.push(dojo.connect(C,"mouseout",this,function(G){dojo.stopEvent(G);dijit.typematic.stop()}));A.push(dojo.connect(C,"mousemove",this,function(G){dojo.stopEvent(G)}));A.push(dojo.connect(C,"dblclick",this,function(G){dojo.stopEvent(G);if(dojo.isIE){dijit.typematic.trigger(G,F,C,E,C,B,D);setTimeout("dijit.typematic.stop()",50)}}));return A},addListener:function(D,E,A,G,F,B,C){return this.addKeyListener(E,A,G,F,B,C).concat(this.addMouseListener(D,G,F,B,C))}}}if(!dojo._hasResource["dijit._base.wai"]){dojo._hasResource["dijit._base.wai"]=true;dojo.provide("dijit._base.wai");dijit.waiNames=["waiRole","waiState"];dijit.wai={waiRole:{name:"waiRole","namespace":"http://www.w3.org/TR/xhtml2",alias:"x2",prefix:"wairole:"},waiState:{name:"waiState","namespace":"http://www.w3.org/2005/07/aaa",alias:"aaa",prefix:""},setAttr:function(C,B,A,D){if(dojo.isIE){C.setAttribute(this[B].alias+":"+A,this[B].prefix+D)}else{C.setAttributeNS(this[B]["namespace"],A,this[B].prefix+D)}},getAttr:function(C,B,A){if(dojo.isIE){return C.getAttribute(this[B].alias+":"+A)}else{return C.getAttributeNS(this[B]["namespace"],A)}},removeAttr:function(C,B,A){var D=true;if(dojo.isIE){D=C.removeAttribute(this[B].alias+":"+A)}else{C.removeAttributeNS(this[B]["namespace"],A)}return D},onload:function(){var B=document.createElement("div");B.id="a11yTestNode";B.style.cssText='border: 1px solid;border-color:red green;position: absolute;left: -999px;top: -999px;background-image: url("'+dojo.moduleUrl("dijit","form/templates/blank.gif")+'");';dojo.body().appendChild(B);function A(){var D=dojo.getComputedStyle(B);if(D){var C=D.backgroundImage;var E=(D.borderTopColor==D.borderRightColor)||(C!=null&&(C=="none"||C=="url(invalid-url:)"));dojo[E?"addClass":"removeClass"](dojo.body(),"dijit_a11y")}}A();if(dojo.isIE){setInterval(A,4000)}}};if(dojo.isIE||dojo.isMoz){dojo._loaders.unshift(dijit.wai.onload)}}if(!dojo._hasResource["dijit._base"]){dojo._hasResource["dijit._base"]=true;dojo.provide("dijit._base")}if(!dojo._hasResource["dijit._Widget"]){dojo._hasResource["dijit._Widget"]=true;dojo.provide("dijit._Widget");dojo.declare("dijit._Widget",null,{constructor:function(B,A){this.create(B,A)},id:"",lang:"",dir:"",srcNodeRef:null,domNode:null,create:function(B,A){this.srcNodeRef=dojo.byId(A);this._connects=[];this._attaches=[];if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){this.id=this.srcNodeRef.id}if(B){dojo.mixin(this,B)}this.postMixInProperties();if(!this.id){this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"))}dijit.registry.add(this);this.buildRendering();if(this.domNode){this.domNode.setAttribute("widgetId",this.id);if(this.srcNodeRef&&this.srcNodeRef.dir){this.domNode.dir=this.srcNodeRef.dir}}this.postCreate();if(this.srcNodeRef&&!this.srcNodeRef.parentNode){delete this.srcNodeRef}},postMixInProperties:function(){},buildRendering:function(){this.domNode=this.srcNodeRef},postCreate:function(){},startup:function(){},destroyRecursive:function(A){this.destroyDescendants();this.destroy()},destroy:function(A){this.uninitialize();dojo.forEach(this._connects,function(B){dojo.forEach(B,dojo.disconnect)});this.destroyRendering(A);dijit.registry.remove(this.id)},destroyRendering:function(A){if(this.bgIframe){this.bgIframe.destroy();delete this.bgIframe}if(this.domNode){dojo._destroyElement(this.domNode);delete this.domNode}if(this.srcNodeRef){dojo._destroyElement(this.srcNodeRef);delete this.srcNodeRef}},destroyDescendants:function(){dojo.forEach(this.getDescendants(),function(A){A.destroy()})},uninitialize:function(){return false},toString:function(){return"[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]"},getDescendants:function(){var A=dojo.query("[widgetId]",this.domNode);return A.map(dijit.byNode)},nodesWithKeyClick:["input","button"],connect:function(D,C,E){var B=[];if(C=="ondijitclick"){var A=this;if(!this.nodesWithKeyClick[D.nodeName]){B.push(dojo.connect(D,"onkeydown",this,function(F){if(F.keyCode==dojo.keys.ENTER){return(dojo.isString(E))?A[E](F):E.call(A,F)}else{if(F.keyCode==dojo.keys.SPACE){dojo.stopEvent(F)}}}));B.push(dojo.connect(D,"onkeyup",this,function(F){if(F.keyCode==dojo.keys.SPACE){return dojo.isString(E)?A[E](F):E.call(A,F)}}))}C="onclick"}B.push(dojo.connect(D,C,this,E));this._connects.push(B);return B},disconnect:function(B){for(var A=0;A<this._connects.length;A++){if(this._connects[A]==B){dojo.forEach(B,dojo.disconnect);this._connects.splice(A,1);return }}},isLeftToRight:function(){if(typeof this._ltr=="undefined"){this._ltr=(this.dir||dojo.getComputedStyle(this.domNode).direction)!="rtl"}return this._ltr}})}if(!dojo._hasResource["dijit.layout.ContentPane"]){dojo._hasResource["dijit.layout.ContentPane"]=true;dojo.provide("dijit.layout.ContentPane");dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>Loading...</span>",errorMessage:"<span class='dijitContentPaneError'>Sorry, but an error occured</span>",isLoaded:false,"class":"dijitContentPane",postCreate:function(){this.domNode.title="";if(this.preload){this._loadCheck()}dojo.addClass(this.domNode,this["class"])},startup:function(){if(!this._started){this._loadCheck();this._started=true}},refresh:function(){return this._prepareLoad(true)},setHref:function(A){this.href=A;return this._prepareLoad()},setContent:function(A){if(!this._isDownloaded){this.href="";this._onUnloadHandler()}this._setContent(A||"");this._isDownloaded=false;if(this.parseOnLoad){this._createSubWidgets()}this._onLoadHandler()},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel()}delete this._xhrDfd},destroy:function(){if(this._beingDestroyed){return }this._onUnloadHandler();this._beingDestroyed=true;dijit.layout.ContentPane.superclass.destroy.call(this)},resize:function(A){dojo.marginBox(this.domNode,A)},_prepareLoad:function(A){this.cancel();this.isLoaded=false;this._loadCheck(A)},_loadCheck:function(B){var A=((this.open!==false)&&(this.domNode.style.display!="none"));if(this.href&&(B||(this.preload&&!this._xhrDfd)||(this.refreshOnShow&&A&&!this._xhrDfd)||(!this.isLoaded&&A&&!this._xhrDfd))){this._downloadExternalContent()}},_downloadExternalContent:function(){this._onUnloadHandler();this._setContent(this.onDownloadStart.call(this));var B=this;var C={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(C,this.ioArgs)}var A=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(C);A.addCallback(function(D){try{B.onDownloadEnd.call(B);B._isDownloaded=true;B.setContent.call(B,D)}catch(E){B._onError.call(B,"Content",E)}delete B._xhrDfd;return D});A.addErrback(function(D){if(!A.cancelled){B._onError.call(B,"Download",D)}delete B._xhrDfd;return D})},_onLoadHandler:function(){this.isLoaded=true;try{this.onLoad.call(this)}catch(A){console.error("Error "+this.widgetId+" running custom onLoad code")}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();try{this.onUnload.call(this)}catch(A){console.error("Error "+this.widgetId+" running custom onUnload code")}},_setContent:function(A){this.destroyDescendants();try{var B=this.containerNode||this.domNode;while(B.firstChild){dojo._destroyElement(B.firstChild)}if(typeof A=="string"){if(this.extractContent){match=A.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(match){A=match[1]}}B.innerHTML=A}else{if(A.nodeType){B.appendChild(A)}else{dojo.forEach(A,function(E){B.appendChild(E.cloneNode(true))})}}}catch(D){var C=this.onContentError(D);try{B.innerHTML=C}catch(D){console.error("Fatal "+this.id+" could not change content due to "+D.message,D)}}},_onError:function(B,D,A){var C=this["on"+B+"Error"].call(this,D);if(A){console.error(A,D)}else{if(C){this._setContent.call(this,C)}}},_createSubWidgets:function(){var A=this.containerNode||this.domNode;try{dojo.parser.parse(A,true)}catch(B){this._onError("Content",B,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""))}},onLoad:function(A){},onUnload:function(A){},onDownloadStart:function(){return this.loadingMessage},onContentError:function(A){},onDownloadError:function(A){return this.errorMessage},onDownloadEnd:function(){}})}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");(function(){if(dojo.isIE){var E=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g}var D=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;function B(K,J){if(!J||!K){return }if(E){J=J.replace(E,function(P,N,O,L,M){return N+(new dojo._Url(K,"./"+L).toString())+M})}return J.replace(D,function(Q,P,O,M,L,N){if(O){return'@import "'+(new dojo._Url(K,"./"+O).toString())+'"'+N}else{return"url("+(new dojo._Url(K,"./"+L).toString())+")"+N}})}var C=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;function A(L,J){var K=L||"./";return J.replace(C,function(M,T,O,S,P,R,Q,N){return T+(O?(O+"="+S+(new dojo._Url(K,P).toString())+S):("style="+R+B(K,Q)+R))+N})}function F(J){return J.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"")}function H(K,J,L){L.attributes=[];return J.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(U,W,O,X,N,M){var R,T=(W||X||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(O){R=L.push(K?B(K,O):O)}else{R=L.push('@import "'+M+'";');T=T.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"")}if(T){T=T.split(/\s+/);var V={},Q;for(var P=0,S=T.length;P<S;P++){Q=T[P].split("=");V[Q[0]]=Q[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1")}L.attributes[R-1]=V}return""})}function G(J,L){L.code="";function K(M){if(L.downloadRemote){dojo.xhrGet({url:M,sync:true,load:function(N){L.code+=N+";"},error:L.errBack})}}return J.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(P,O,N,M){if(N){K(N)}else{L.code+=M}return""})}function I(K,J){J=J||dojo.doc.body;var L=J.ownerDocument.createElement("script");L.type="text/javascript";J.appendChild(L);L.text=K}dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,preamble:function(){this.ioArgs={};this.ioMethod=dojo.xhrGet;this.onLoadDeferred=new dojo.Deferred();this.onUnloadDeferred=new dojo.Deferred()},postCreate:function(){this._setUpDeferreds();dijit.layout.ContentPane.prototype.postCreate.apply(this,arguments)},onExecError:function(J){},setContent:function(J){if(!this._isDownloaded){var K=this._setUpDeferreds()}dijit.layout.ContentPane.prototype.setContent.apply(this,arguments);return K},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments)},_setUpDeferreds:function(){var M=this,L=function(){M.cancel()};var K=(M.onLoadDeferred=new dojo.Deferred());var J=(M._nextUnloadDeferred=new dojo.Deferred());return{cancel:L,addOnLoad:function(N){K.addCallback(N)},addOnUnload:function(N){J.addCallback(N)}}},_onLoadHandler:function(){dijit.layout.ContentPane.prototype._onLoadHandler.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.callback(true)}},_onUnloadHandler:function(){this.isLoaded=false;this.cancel();if(this.onUnloadDeferred){this.onUnloadDeferred.callback(true)}dijit.layout.ContentPane.prototype._onUnloadHandler.apply(this,arguments);if(this._nextUnloadDeferred){this.onUnloadDeferred=this._nextUnloadDeferred}},_onError:function(J,K){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(K)}},_prepareLoad:function(K){var J=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return J},_setContent:function(S){var R=[];if(dojo.isString(S)){if(this.adjustPaths&&this.href){S=A(this.href,S)}if(this.cleanContent){S=F(S)}if(this.renderStyles||this.cleanContent){S=H(this.href,S,R)}if(this.executeScripts){var Q=this,J,K={downloadRemote:true,errBack:function(T){Q._onError.call(Q,"Exec",'Error downloading remote script in "'+Q.id+'"',T)}};S=G(S,K);J=K.code}var M=(this.containerNode||this.domNode),N=post="",P=0;switch(name=M.nodeName.toLowerCase()){case"tr":N="<tr>";post="</tr>";P+=1;case"tbody":case"thead":N="<tbody>"+N;post+="</tbody>";P+=1;case"table":N="<table>"+N;post+="</table>";P+=1;break}if(P){var L=M.ownerDocument.createElement("div");L.innerHTML=N+S+post;do{L=L.firstChild}while(--P);S=L.childNodes}}dijit.layout.ContentPane.prototype._setContent.call(this,S);if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop())}}if(this.renderStyles&&R&&R.length){this._renderStyles(R)}if(this.executeScripts&&J){if(this.cleanContent){J=J.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"")}if(this.scriptHasHooks){J=J.replace(/_container_(?!\s*=[^=])/g,"dijit.byId('"+this.id+"')")}try{I(J,(this.containerNode||this.domNode))}catch(O){this._onError("Exec","Error eval script in "+this.id+", "+O.message,O)}}},_renderStyles:function(Q){this._styleNodes=[];var R,M,J,P=this.domNode.ownerDocument;var N=P.getElementsByTagName("head")[0];for(var K=0,L=Q.length;K<L;K++){J=Q[K];M=Q.attributes[K];R=P.createElement("style");R.setAttribute("type","text/css");for(var O in M){R.setAttribute(O,M[O])}this._styleNodes.push(R);N.appendChild(R);if(R.styleSheet){R.styleSheet.cssText=J}else{R.appendChild(P.createTextNode(J))}}}})})()}if(!dojo._hasResource["dojo.dnd.move"]){dojo._hasResource["dojo.dnd.move"]=true;dojo.provide("dojo.dnd.move");dojo.dnd.Mover=function(B,C){this.node=dojo.byId(B);this.marginBox={l:C.pageX,t:C.pageY};var D=B.ownerDocument,A=dojo.connect(D,"onmousemove",this,"onFirstMove");this.events=[dojo.connect(D,"onmousemove",this,"onMouseMove"),dojo.connect(D,"onmouseup",this,"destroy"),dojo.connect(D,"ondragstart",dojo,"stopEvent"),dojo.connect(D,"onselectstart",dojo,"stopEvent"),A];dojo.publish("/dnd/move/start",[this.node]);dojo.addClass(dojo.body(),"dojoMove");dojo.addClass(this.node,"dojoMoveItem")};dojo.extend(dojo.dnd.Mover,{onMouseMove:function(B){dojo.dnd.autoScroll(B);var A=this.marginBox;dojo.marginBox(this.node,{l:A.l+B.pageX,t:A.t+B.pageY})},onFirstMove:function(){this.node.style.position="absolute";var A=dojo.marginBox(this.node);A.l-=this.marginBox.l;A.t-=this.marginBox.t;this.marginBox=A;dojo.disconnect(this.events.pop())},destroy:function(){dojo.forEach(this.events,dojo.disconnect);dojo.publish("/dnd/move/stop",[this.node]);dojo.removeClass(dojo.body(),"dojoMove");dojo.removeClass(this.node,"dojoMoveItem");this.events=this.node=null}});dojo.dnd.Moveable=function(A,B){this.node=dojo.byId(A);this.handle=(B&&B.handle)?dojo.byId(B.handle):null;if(!this.handle){this.handle=this.node}this.delay=(B&&B.delay>0)?B.delay:0;this.skip=B&&B.skip;this.mover=(B&&B.mover)?B.mover:dojo.dnd.Mover;this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",dojo,"stopEvent"),dojo.connect(this.handle,"onselectstart",dojo,"stopEvent")]};dojo.extend(dojo.dnd.Moveable,{handle:"",delay:0,skip:false,markupFactory:function(B,A){return new dojo.dnd.Moveable(A,B)},destroy:function(){dojo.forEach(this.events,dojo.disconnect);this.events=this.node=this.handle=null},onMouseDown:function(A){if(this.skip&&dojo.dnd.isFormElement(A)){return }if(this.delay){this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"));this.events.push(dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));this._lastX=A.pageX;this._lastY=A.pageY}else{new this.mover(this.node,A)}dojo.stopEvent(A)},onMouseMove:function(A){if(Math.abs(A.pageX-this._lastX)>this.delay||Math.abs(A.pageY-this._lastY)>this.delay){this.onMouseUp(A);new this.mover(this.node,A)}dojo.stopEvent(A)},onMouseUp:function(A){dojo.disconnect(this.events.pop());dojo.disconnect(this.events.pop())}});dojo.dnd.constrainedMover=function(A,C){var B=function(D,E){dojo.dnd.Mover.call(this,D,E)};dojo.extend(B,dojo.dnd.Mover.prototype);dojo.extend(B,{onMouseMove:function(G){var D=this.marginBox,H=this.constraintBox,E=D.l+G.pageX,F=D.t+G.pageY;E=E<H.l?H.l:H.r<E?H.r:E;F=F<H.t?H.t:H.b<F?H.b:F;dojo.marginBox(this.node,{l:E,t:F})},onFirstMove:function(){dojo.dnd.Mover.prototype.onFirstMove.call(this);var E=this.constraintBox=A.call(this),D=this.marginBox;E.r=E.l+E.w-(C?D.w:0);E.b=E.t+E.h-(C?D.h:0)}});return B};dojo.dnd.boxConstrainedMover=function(B,A){return dojo.dnd.constrainedMover(function(){return B},A)};dojo.dnd.parentConstrainedMover=function(C,B){var A=function(){var G=this.node.parentNode,E=dojo.getComputedStyle(G),F=dojo._getMarginBox(G,E);if(C=="margin"){return F}var D=dojo._getMarginExtents(G,E);F.l+=D.l,F.t+=D.t,F.w-=D.w,F.h-=D.h;if(C=="border"){return F}D=dojo._getBorderExtents(G,E);F.l+=D.l,F.t+=D.t,F.w-=D.w,F.h-=D.h;if(C=="padding"){return F}D=dojo._getPadExtents(G,E);F.l+=D.l,F.t+=D.t,F.w-=D.w,F.h-=D.h;return F};return dojo.dnd.constrainedMover(A,B)}}if(!dojo._hasResource["dojo.fx"]){dojo._hasResource["dojo.fx"]=true;dojo.provide("dojo.fx");dojo.provide("dojo.fx.Toggler");dojo.fx.chain=function(C){var B=C.shift();var A=B;dojo.forEach(C,function(D){dojo.connect(A,"onEnd",D,"play");A=D});return B};dojo.fx.combine=function(B){var A=B.shift();dojo.forEach(B,function(C){dojo.forEach(["play","pause","stop"],function(D){if(C[D]){dojo.connect(A,D,C,D)}},this)});return A};dojo.declare("dojo.fx.Toggler",null,{constructor:function(A){var B=this;dojo.mixin(B,A);B.node=A.node;B._showArgs=dojo.mixin({},A);B._showArgs.node=B.node;B._showArgs.duration=B.showDuration;B.showAnim=B.showFunc(B._showArgs);B._hideArgs=dojo.mixin({},A);B._hideArgs.node=B.node;B._hideArgs.duration=B.hideDuration;B.hideAnim=B.hideFunc(B._hideArgs);dojo.connect(B.showAnim,"beforeBegin",dojo.hitch(B.hideAnim,"stop",true));dojo.connect(B.hideAnim,"beforeBegin",dojo.hitch(B.showAnim,"stop",true))},node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,_showArgs:null,_showAnim:null,_hideArgs:null,_hideAnim:null,_isShowing:false,_isHiding:false,show:function(A){A=A||0;return this.showAnim.play(A)},hide:function(A){A=A||0;return this.hideAnim.play(A)}});dojo.fx.wipeIn=function(A){A.node=dojo.byId(A.node);var C=A.node,B=C.style;var D=dojo.animateProperty(dojo.mixin({properties:{height:{start:function(){B.overflow="hidden";if(B.visibility=="hidden"||B.display=="none"){B.height="1px";B.display="";B.visibility="";return 1}else{var E=dojo.style(C,"height");return Math.max(E,1)}},end:function(){return C.scrollHeight}}}},A));dojo.connect(D,"onEnd",D,function(){B.height="auto"});return D};dojo.fx.wipeOut=function(A){var B=(A.node=dojo.byId(A.node));var C=dojo.animateProperty(dojo.mixin({properties:{height:{end:1}}},A));dojo.connect(C,"beforeBegin",C,function(){var D=B.style;D.overflow="hidden";D.display=""});dojo.connect(C,"onEnd",C,function(){var D=this.node.style;D.height="auto";D.display="none"});return C};dojo.fx.slideTo=function(A){var B=A.node=dojo.byId(A.node);var F=dojo.getComputedStyle;var E=null;var D=null;var G=(function(){var H=B;return function(){var J=F(H).position;E=(J=="absolute"?B.offsetTop:parseInt(F(B).top)||0);D=(J=="absolute"?B.offsetLeft:parseInt(F(B).left)||0);if(J!="absolute"&&J!="relative"){var I=dojo.coords(H,true);E=I.y;D=I.x;H.style.position="absolute";H.style.top=E+"px";H.style.left=D+"px"}}})();G();var C=dojo.animateProperty(dojo.mixin({properties:{top:{start:E,end:A.top||0},left:{start:D,end:A.left||0}}},A));dojo.connect(C,"beforeBegin",C,G);return C}}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,containerNode:null,buildRendering:function(){var D=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString);var E;if(dojo.isString(D)){var C=this.declaredClass,F=this;var A=dojo.string.substitute(D,this,function(H,G){if(G.charAt(0)=="!"){H=F[G.substr(1)]}if(typeof H=="undefined"){throw new Error(C+" template:"+G)}return G.charAt(0)=="!"?H:H.toString().replace(/"/g,"&quot;")},this);E=dijit._Templated._createNodesFromText(A)[0]}else{E=D.cloneNode(true)}this._attachTemplateNodes(E);if(this.srcNodeRef){dojo.style(this.styleNode||E,"cssText",this.srcNodeRef.style.cssText);if(this.srcNodeRef.className){E.className+=" "+this.srcNodeRef.className}}this.domNode=E;if(this.srcNodeRef&&this.srcNodeRef.parentNode){this.srcNodeRef.parentNode.replaceChild(this.domNode,this.srcNodeRef)}if(this.widgetsInTemplate){var B=dojo.parser.parse(this.domNode);this._attachTemplateNodes(B,function(H,G){return H[G]})}this._fillContent(this.srcNodeRef)},_fillContent:function(B){var A=this.containerNode;if(B&&A){while(B.hasChildNodes()){A.appendChild(B.firstChild)}}},_attachTemplateNodes:function(P,R){R=R||function(W,V){return W.getAttribute(V)};var H=dojo.isArray(P)?P:(P.all||P.getElementsByTagName("*"));var E=dojo.isArray(P)?0:-1;for(;E<H.length;E++){var B=(E==-1)?P:H[E];if(this.widgetsInTemplate&&R(B,"dojoType")){continue}var J=R(B,"dojoAttachPoint");if(J){var I,L=J.split(/\s*,\s*/);while(I=L.shift()){if(dojo.isArray(this[I])){this[I].push(B)}else{this[I]=B}}}var M=R(B,"dojoAttachEvent");if(M){var K,C=M.split(/\s*,\s*/);var N=dojo.trim;while(K=C.shift()){if(K){var A=null;if(K.indexOf(":")!=-1){var O=K.split(":");K=N(O[0]);A=N(O[1])}else{K=N(K)}if(!A){A=K}this.connect(B,K,A)}}}var U,F=["waiRole","waiState"];while(U=F.shift()){var G=dijit.wai[U];var D=R(B,G.name);if(D){var T="role";var S;D=D.split(/\s*,\s*/);while(S=D.shift()){if(S.indexOf("-")!=-1){var Q=S.split("-");T=Q[0];S=Q[1]}dijit.wai.setAttr(B,G.name,T,S)}}}}}});dijit._Templated._templateCache={};dijit._Templated.getCachedTemplate=function(C,D){var E=dijit._Templated._templateCache;var A=D||C;var B=E[A];if(B){return B}if(!D){D=dijit._Templated._sanitizeTemplateString(dojo._getText(C))}D=dojo.string.trim(D);if(D.match(/\$\{([^\}]+)\}/g)){return(E[A]=D)}else{return(E[A]=dijit._Templated._createNodesFromText(D)[0])}};dijit._Templated._sanitizeTemplateString=function(A){if(A){A=A.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");var B=A.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(B){A=B[1]}}else{A=""}return A};if(dojo.isIE){dojo.addOnUnload(function(){var A=dijit._Templated._templateCache;for(var B in A){var C=A[B];if(!isNaN(C.nodeType)){dojo._destroyElement(C)}A[B]=null}})}(function(){var B={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 A;dijit._Templated._createNodesFromText=function(J){if(!A){A=dojo.doc.createElement("div");A.style.display="none"}var F="none";var D=J.replace(/^\s+/,"");for(var G in B){var H=B[G];if(H.re.test(D)){F=G;J=H.pre+J+H.post;break}}A.innerHTML=J;dojo.body().appendChild(A);if(A.normalize){A.normalize()}var C={cell:"tr",row:"tbody",section:"table"}[F];var I=(typeof C!="undefined")?A.getElementsByTagName(C)[0]:A;var E=[];while(I.firstChild){E.push(I.removeChild(I.firstChild))}A.innerHTML="";return E}})();dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""})}if(!dojo._hasResource["dijit.form.Form"]){dojo._hasResource["dijit.form.Form"]=true;dojo.provide("dijit.form.Form");dojo.declare("dijit.form._FormMixin",null,{execute:function(A){},onCancel:function(){},onExecute:function(){},templateString:"<form dojoAttachPoint='containerNode' dojoAttachEvent='onsubmit:_onSubmit' enctype='multipart/form-data'></form>",_onSubmit:function(A){dojo.stopEvent(A);this.onExecute();this.execute(this.getValues())},submit:function(){this.containerNode.submit()},setValues:function(E){var D={};dojo.forEach(this.getDescendants(),function(G){if(!G.name){return }var F=D[G.name]||(D[G.name]=[]);F.push(G)});for(var B in D){var C=D[B],A=dojo.getObject(B,false,E);if(!dojo.isArray(A)){A=[A]}if(C[0].setChecked){dojo.forEach(C,function(F,G){F.setChecked(dojo.indexOf(A,F.value)!=-1)})}else{dojo.forEach(C,function(F,G){F.setValue(A[G])})}}},getValues:function(){var A={};dojo.forEach(this.getDescendants(),function(E){var D=E.getValue?E.getValue():E.value;var B=E.name;if(!B){return }if(E.setChecked){if(/Radio/.test(E.declaredClass)){if(E.checked){dojo.setObject(B,D,A)}}else{var C=dojo.getObject(B,false,A);if(!C){C=[];dojo.setObject(B,C,A)}if(E.checked){C.push(D)}}}else{dojo.setObject(B,D,A)}});return A},isValid:function(){return dojo.every(this.getDescendants(),function(A){return !A.isValid||A.isValid()})}});dojo.declare("dijit.form.Form",[dijit._Widget,dijit._Templated,dijit.form._FormMixin],null)}if(!dojo._hasResource["dojox.Dialog"]){dojo._hasResource["dojox.Dialog"]=true;dojo.provide("dojox.Dialog");dojo.declare("dojox.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class=dijitDialogUnderlayWrapper id='${id}_underlay'><div class=dijitDialogUnderlay dojoAttachPoint='node'></div></div>",postCreate:function(){dojo.body().appendChild(this.domNode);this.bgIframe=new dijit.BackgroundIframe(this.domNode)},layout:function(){var A=dijit.getViewport();var C=this.node.style,D=this.domNode.style;D.top=A.t+"px";D.left=A.l+"px";C.width=A.w+"px";C.height=A.h+"px";var B=dijit.getViewport();if(A.w!=B.w){C.width=B.w+"px"}if(A.h!=B.h){C.height=B.h+"px"}},show:function(){this.domNode.style.display="block";this.layout();if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="block"}this._resizeHandler=this.connect(window,"onresize","layout")},hide:function(){this.domNode.style.display="none";this.domNode.style.width=this.domNode.style.height="1px";if(this.bgIframe.iframe){this.bgIframe.iframe.style.display="none"}this.disconnect(this._resizeHandler)},uninitialize:function(){if(this.bgIframe){this.bgIframe.destroy()}}});dojo.declare("dojox.Dialog",[dojox.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{closable:"block",templateString:'<div class="dijitDialog"><table class="almaDialog" cellpadding="0" cellspacing="0"><thead><tr><td class="leftTop"></td><td class="middleTop" ><div style="display:${closable}" class="closeButtom" dojoAttachPoint="closeButtonNode" dojoAttachEvent="onclick: hide"></div></td><td class="rightTop"></td></tr></thead><tfoot><tr><td class="bottomLeft"></td><td class="middleBottom"></td><td class="bottomRight"></td></tr></tfoot><tbody><tr><td class="frameLeft"></td><td class="dialogContent"dojoAttachPoint="containerNode" ></td><td class="frameRight"></td></tr></tbody></table></div>',templatePath:null,title:"",duration:10,_lastFocusItem:null,postCreate:function(){dojo.body().appendChild(this.domNode);dojox.Dialog.superclass.postCreate.apply(this,arguments);this.domNode.style.display="none";this.connect(this,"onExecute","hide");this.connect(this,"onCancel","hide")},onLoad:function(){this._position();dojox.Dialog.superclass.onLoad.call(this)},_setup:function(){this._modalconnects=[];if(this.titleBar){this._moveable=new dojo.dnd.Moveable(this.domNode,{handle:this.titleBar})}this._underlay=new dojox.DialogUnderlay();var A=this.domNode;this._fadeIn=dojo.fx.combine([dojo.fadeIn({node:A,duration:this.duration}),dojo.fadeIn({node:this._underlay.domNode,duration:this.duration,onBegin:dojo.hitch(this._underlay,"show")})]);this._fadeOut=dojo.fx.combine([dojo.fadeOut({node:A,duration:this.duration,onEnd:function(){A.style.display="none"}}),dojo.fadeOut({node:this._underlay.domNode,duration:this.duration,onEnd:dojo.hitch(this._underlay,"hide")})])},uninitialize:function(){if(this._underlay){this._underlay.destroy()}},_position:function(){var A=dijit.getViewport();var C=dojo.marginBox(this.domNode);var B=this.domNode.style;B.left=(A.l+(A.w-C.w)/2)+"px";B.top=(A.t+(A.h-C.h)/2)+"px"},_findLastFocus:function(A){this._lastFocused=A.target},_cycleFocus:function(A){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused}this.titleBar.focus()},_onKey:function(A){if(A.keyCode){var B=A.target;if(B==this.titleBar&&A.shiftKey&&A.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus()}dojo.stopEvent(A)}else{while(B){if(B==this.domNode){if(A.keyCode==dojo.keys.ESCAPE){this.hide()}else{return }}B=B.parentNode}if(A.keyCode!=dojo.keys.TAB){dojo.stopEvent(A)}else{if(!dojo.isOpera){try{this.titleBar.focus()}catch(C){}}}}}},show:function(){if(!this._alreadyInitialized){this._setup();this._alreadyInitialized=true}if(this._fadeOut.status()=="playing"){this._fadeOut.stop()}this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));this._modalconnects.push(dojo.connect(document.documentElement,"onkeypress",this,"_onKey"));var A=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this._modalconnects.push(dojo.connect(this.containerNode,A,this,"_findLastFocus"));dojo.style(this.domNode,"opacity",0);this.domNode.style.display="block";this._loadCheck();this._position();this._fadeIn.play();this._savedFocus=dijit.getFocus(this);setTimeout(dojo.hitch(this,function(){dijit.focus(this.titleBar)}),50)},hide:function(){if(!this._alreadyInitialized){return }if(this._fadeIn.status()=="playing"){this._fadeIn.stop()}this._fadeOut.play();if(this._scrollConnected){this._scrollConnected=false}dojo.forEach(this._modalconnects,dojo.disconnect);this._modalconnects=[];dijit.focus(this._savedFocus)},layout:function(){if(this.domNode.style.display=="block"){this._underlay.layout();this._position()}}});dojo.declare("dojox.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin],{title:"",_lastFocusItem:null,templateString:null,templateString:'<div id="${id}" class="dijitTooltipDialog" >\r\n\t<div class="dijitTooltipContainer">\r\n\t\t<div  class ="dijitTooltipContents dijitTooltipFocusNode" dojoAttachPoint="containerNode" tabindex="0" waiRole="dialog"></div>\r\n\t</div>\r\n\t<span dojoAttachPoint="tabEnd" tabindex="0" dojoAttachEvent="focus:_cycleFocus"></span>\r\n\t<div class="dijitTooltipConnector" ></div>\r\n</div>\r\n',postCreate:function(){dijit.TooltipDialog.superclass.postCreate.apply(this,arguments);this.connect(this.containerNode,"onkeypress","_onKey");var A=typeof (document.ondeactivate)=="object"?"ondeactivate":"onblur";this.connect(this.containerNode,A,"_findLastFocus");this.containerNode.title=this.title},orient:function(A){this.domNode.className="dijitTooltipDialog  dijitTooltipAB"+(A.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(A.charAt(0)=="T"?"Below":"Above")},onOpen:function(A){this.orient(A.corner);this._loadCheck();this.containerNode.focus()},_onKey:function(A){if(A.keyCode==dojo.keys.ESCAPE){this.onCancel()}else{if(A.target==this.containerNode&&A.shiftKey&&A.keyCode==dojo.keys.TAB){if(this._lastFocusItem){this._lastFocusItem.focus()}dojo.stopEvent(A)}}},_findLastFocus:function(A){this._lastFocused=A.target},_cycleFocus:function(A){if(!this._lastFocusItem){this._lastFocusItem=this._lastFocused}this.containerNode.focus()}})}if(!dojo._hasResource["dojo.regexp"]){dojo._hasResource["dojo.regexp"]=true;dojo.provide("dojo.regexp");dojo.regexp.escapeString=function(B,A){return B.replace(/([\.$?*!=:|{}\(\)\[\]\\\/^])/g,function(C){if(A&&A.indexOf(C)!=-1){return C}return"\\"+C})};dojo.regexp.buildGroupRE=function(B,E,D){if(!(B instanceof Array)){return E(B)}var A=[];for(var C=0;C<B.length;C++){A.push(E(B[C]))}return dojo.regexp.group(A.join("|"),D)};dojo.regexp.group=function(B,A){return"("+(A?"?:":"")+B+")"}}if(!dojo._hasResource["dojox.validate.regexp"]){dojo._hasResource["dojox.validate.regexp"]=true;dojo.provide("dojox.validate.regexp");dojox.regexp={ca:{},us:{}};dojox.regexp.tld=function(C){C=(typeof C=="object")?C:{};if(typeof C.allowCC!="boolean"){C.allowCC=true}if(typeof C.allowInfra!="boolean"){C.allowInfra=true}if(typeof C.allowGeneric!="boolean"){C.allowGeneric=true}var F="arpa";var E="aero|biz|com|coop|edu|gov|info|int|mil|museum|name|net|org|pro|travel|xxx|jobs|mobi|post";var D="ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|eu|es|et|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw";var B=[];if(C.allowInfra){B.push(F)}if(C.allowGeneric){B.push(E)}if(C.allowCC){B.push(D)}var A="";if(B.length>0){A="("+B.join("|")+")"}return A};dojox.regexp.ipAddress=function(C){C=(typeof C=="object")?C:{};if(typeof C.allowDottedDecimal!="boolean"){C.allowDottedDecimal=true}if(typeof C.allowDottedHex!="boolean"){C.allowDottedHex=true}if(typeof C.allowDottedOctal!="boolean"){C.allowDottedOctal=true}if(typeof C.allowDecimal!="boolean"){C.allowDecimal=true}if(typeof C.allowHex!="boolean"){C.allowHex=true}if(typeof C.allowIPv6!="boolean"){C.allowIPv6=true}if(typeof C.allowHybrid!="boolean"){C.allowHybrid=true}var H="((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var A="(0[xX]0*[\\da-fA-F]?[\\da-fA-F]\\.){3}0[xX]0*[\\da-fA-F]?[\\da-fA-F]";var E="(0+[0-3][0-7][0-7]\\.){3}0+[0-3][0-7][0-7]";var D="(0|[1-9]\\d{0,8}|[1-3]\\d{9}|4[01]\\d{8}|42[0-8]\\d{7}|429[0-3]\\d{6}|4294[0-8]\\d{5}|42949[0-5]\\d{4}|429496[0-6]\\d{3}|4294967[01]\\d{2}|42949672[0-8]\\d|429496729[0-5])";var B="0[xX]0*[\\da-fA-F]{1,8}";var J="([\\da-fA-F]{1,4}\\:){7}[\\da-fA-F]{1,4}";var I="([\\da-fA-F]{1,4}\\:){6}((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";var G=[];if(C.allowDottedDecimal){G.push(H)}if(C.allowDottedHex){G.push(A)}if(C.allowDottedOctal){G.push(E)}if(C.allowDecimal){G.push(D)}if(C.allowHex){G.push(B)}if(C.allowIPv6){G.push(J)}if(C.allowHybrid){G.push(I)}var F="";if(G.length>0){F="("+G.join("|")+")"}return F};dojox.regexp.host=function(A){A=(typeof A=="object")?A:{};if(typeof A.allowIP!="boolean"){A.allowIP=true}if(typeof A.allowLocal!="boolean"){A.allowLocal=false}if(typeof A.allowPort!="boolean"){A.allowPort=true}var D="([0-9a-zA-Z]([-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?\\.)+"+dojox.regexp.tld(A);var C=(A.allowPort)?"(\\:"+dojox.regexp.integer({signed:false})+")?":"";var B=D;if(A.allowIP){B+="|"+dojox.regexp.ipAddress(A)}if(A.allowLocal){B+="|localhost"}return"("+B+")"+C};dojox.regexp.url=function(B){B=(typeof B=="object")?B:{};if(typeof B.scheme=="undefined"){B.scheme=[true,false]}var C=dojo.regexp.buildGroupRE(B.scheme,function(D){if(D){return"(https?|ftps?)\\://"}return""});var A="(/([^?#\\s/]+/)*)?([^?#\\s/]+(\\?[^?#\\s/]*)?(#[A-Za-z][\\w.:-]*)?)?";return C+dojox.regexp.host(B)+A};dojox.regexp.emailAddress=function(A){A=(typeof A=="object")?A:{};if(typeof A.allowCruft!="boolean"){A.allowCruft=false}A.allowPort=false;var B="([\\da-z]+[-._+&'])*[\\da-z]+";var C=B+"@"+dojox.regexp.host(A);if(A.allowCruft){C="<?(mailto\\:)?"+C+">?"}return C};dojox.regexp.emailAddressList=function(A){A=(typeof A=="object")?A:{};if(typeof A.listSeparator!="string"){A.listSeparator="\\s;,"}var C=dojox.regexp.emailAddress(A);var B="("+C+"\\s*["+A.listSeparator+"]\\s*)*"+C+"\\s*["+A.listSeparator+"]?\\s*";return B};dojox.regexp.us.state=function(B){B=(typeof B=="object")?B:{};if(typeof B.allowTerritories!="boolean"){B.allowTerritories=true}if(typeof B.allowMilitary!="boolean"){B.allowMilitary=true}var C="AL|AK|AZ|AR|CA|CO|CT|DE|DC|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY";var A="AS|FM|GU|MH|MP|PW|PR|VI";var D="AA|AE|AP";if(B.allowTerritories){C+="|"+A}if(B.allowMilitary){C+="|"+D}return"("+C+")"};dojox.regexp.ca.postalCode=function(){var A="[A-Z][0-9][A-Z] [0-9][A-Z][0-9]";return"("+A+")"};dojox.regexp.ca.province=function(){var A="AB|BC|MB|NB|NL|NS|NT|NU|ON|PE|QC|SK|YT";return"("+statesRE+")"};dojox.regexp.numberFormat=function(A){A=(typeof A=="object")?A:{};if(typeof A.format=="undefined"){A.format="###-###-####"}var B=function(C){C=dojo.string.escapeRegExp(C,"?");C=C.replace(/\?/g,"\\d?");C=C.replace(/#/g,"\\d");return C};return dojo.regexp.buildGroupRE(A.format,B)}}if(!dojo._hasResource["dojox.validate._base"]){dojo._hasResource["dojox.validate._base"]=true;dojo.provide("dojox.validate._base");dojox.validate.isText=function(B,A){A=(typeof A=="object")?A:{};if(/^\s*$/.test(B)){return false}if(typeof A.length=="number"&&A.length!=B.length){return false}if(typeof A.minlength=="number"&&A.minlength>B.length){return false}if(typeof A.maxlength=="number"&&A.maxlength<B.length){return false}return true};dojox.validate._isInRangeCache={};dojox.validate.isInRange=function(G,B){if(isNaN(G)){return false}B=(typeof B=="object")?B:{};var A=(typeof B.max=="number")?B.max:Infinity;var D=(typeof B.min=="number")?B.min:-Infinity;var H=(typeof B.decimal=="string")?B.decimal:".";var C=dojox.validate._isInRangeCache;var E=G+"max"+A+"min"+D+"dec"+H;if(typeof C[E]!="undefined"){return C[E]}var F="[^"+H+"\\deE+-]";G=G.replace(RegExp(F,"g"),"");G=G.replace(/^([+-]?)(\D*)/,"$1");G=G.replace(/(\D*)$/,"");F="(\\d)["+H+"](\\d)";G=G.replace(RegExp(F,"g"),"$1.$2");G=Number(G);if(G<D||G>A){C[E]=false;return false}C[E]=true;return true};dojox.validate.isNumberFormat=function(C,A){var B=new RegExp("^"+dojox.regexp.numberFormat(A)+"$","i");return B.test(C)};dojox.validate.isValidLuhn=function(E){var C,D,A;if(typeof E!="string"){E=String(E)}E=E.replace(/[- ]/g,"");D=E.length%2;C=0;for(var B=0;B<E.length;B++){A=parseInt(E.charAt(B));if(B%2==D){A*=2}if(A>9){A-=9}C+=A}return !(C%10)}}if(!dojo._hasResource["dojox.validate.check"]){dojo._hasResource["dojox.validate.check"]=true;dojo.provide("dojox.validate.check");dj_undef=function(B,A){return A==null?true:(typeof A[B]=="undefined")};dojox.validate.check=function(B,D){var G=[];var K=[];var H={isSuccessful:function(){return(!this.hasInvalid()&&!this.hasMissing())},hasMissing:function(){return(G.length>0)},getMissing:function(){return G},isMissing:function(P){for(var O=0;O<G.length;O++){if(P==G[O]){return true}}return false},hasInvalid:function(){return(K.length>0)},getInvalid:function(){return K},isInvalid:function(P){for(var O=0;O<K.length;O++){if(P==K[O]){return true}}return false}};if(D.trim instanceof Array){for(var I=0;I<D.trim.length;I++){var C=B[D.trim[I]];if(dj_undef("type",C)||C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/(^\s*|\s*$)/g,"")}}if(D.uppercase instanceof Array){for(var I=0;I<D.uppercase.length;I++){var C=B[D.uppercase[I]];if(dj_undef("type",C)||C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.toUpperCase()}}if(D.lowercase instanceof Array){for(var I=0;I<D.lowercase.length;I++){var C=B[D.lowercase[I]];if(dj_undef("type",C)||C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.toLowerCase()}}if(D.ucfirst instanceof Array){for(var I=0;I<D.ucfirst.length;I++){var C=B[D.ucfirst[I]];if(dj_undef("type",C)||C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/\b\w+\b/g,function(O){return O.substring(0,1).toUpperCase()+O.substring(1).toLowerCase()})}}if(D.digit instanceof Array){for(var I=0;I<D.digit.length;I++){var C=B[D.digit[I]];if(dj_undef("type",C)||C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}C.value=C.value.replace(/\D/g,"")}}if(D.required instanceof Array){for(var I=0;I<D.required.length;I++){if(!dojo.isString(D.required[I])){continue}var C=B[D.required[I]];if(!dj_undef("type",C)&&(C.type=="text"||C.type=="textarea"||C.type=="password"||C.type=="file")&&/^\s*$/.test(C.value)){G[G.length]=C.name}else{if(!dj_undef("type",C)&&(C.type=="select-one"||C.type=="select-multiple")&&(C.selectedIndex==-1||/^\s*$/.test(C.options[C.selectedIndex].value))){G[G.length]=C.name}else{if(C instanceof Array){var L=false;for(var F=0;F<C.length;F++){if(C[F].checked){L=true}}if(!L){G[G.length]=C[0].name}}}}}}if(D.required instanceof Array){for(var I=0;I<D.required.length;I++){if(!dojo.isObject(D.required[I])){continue}var C,N;for(var A in D.required[I]){C=B[A];N=D.required[I][A]}if(C instanceof Array){var L=0;for(var F=0;F<C.length;F++){if(C[F].checked){L++}}if(L<N){G[G.length]=C[0].name}}else{if(!dj_undef("type",C)&&C.type=="select-multiple"){var E=0;for(var F=0;F<C.options.length;F++){if(C.options[F].selected&&!/^\s*$/.test(C.options[F].value)){E++}}if(E<N){G[G.length]=C.name}}}}}if(dojo.isObject(D.dependencies)){for(A in D.dependencies){var C=B[A];if(dj_undef("type",C)){continue}if(C.type!="text"&&C.type!="textarea"&&C.type!="password"){continue}if(/\S+/.test(C.value)){continue}if(H.isMissing(C.name)){continue}var J=B[D.dependencies[A]];if(J.type!="text"&&J.type!="textarea"&&J.type!="password"){continue}if(/^\s*$/.test(J.value)){continue}G[G.length]=C.name}}if(dojo.isObject(D.constraints)){for(A in D.constraints){var C=B[A];if(!C){continue}if(!dj_undef("tagName",C)&&(C.tagName.toLowerCase().indexOf("input")>=0||C.tagName.toLowerCase().indexOf("textarea")>=0)&&/^\s*$/.test(C.value)){continue}var M=true;if(dojo.isFunction(D.constraints[A])){M=D.constraints[A](C.value)}else{if(dojo.isArray(D.constraints[A])){if(dojo.isArray(D.constraints[A][0])){for(var I=0;I<D.constraints[A].length;I++){M=dojox.validate.evaluateConstraint(D,D.constraints[A][I],A,C);if(!M){break}}}else{M=dojox.validate.evaluateConstraint(D,D.constraints[A],A,C)}}}if(!M){K[K.length]=C.name}}}if(dojo.isObject(D.confirm)){for(A in D.confirm){var C=B[A];var J=B[D.confirm[A]];if(dj_undef("type",C)||dj_undef("type",J)||(C.type!="text"&&C.type!="textarea"&&C.type!="password")||(J.type!=C.type)||(J.value==C.value)||(H.isInvalid(C.name))||(/^\s*$/.test(J.value))){continue}K[K.length]=C.name}}return H};dojox.validate.evaluateConstraint=function(A,C,F,B){var E=C[0];var D=C.slice(1);D.unshift(B.value);if(typeof E!="undefined"){return E.apply(null,D)}return false}}if(!dojo._hasResource["dojox.validate.web"]){dojo._hasResource["dojox.validate.web"]=true;dojo.provide("dojox.validate.web");dojox.validate.isIpAddress=function(C,A){var B=new RegExp("^"+dojox.regexp.ipAddress(A)+"$","i");return B.test(C)};dojox.validate.isUrl=function(C,A){var B=new RegExp("^"+dojox.regexp.url(A)+"$","i");return B.test(C)};dojox.validate.isEmailAddress=function(C,A){var B=new RegExp("^"+dojox.regexp.emailAddress(A)+"$","i");return B.test(C)};dojox.validate.isEmailAddressList=function(C,A){var B=new RegExp("^"+dojox.regexp.emailAddressList(A)+"$","i");return B.test(C)};dojox.validate.getEmailAddressList=function(B,A){if(!A){A={}}if(!A.listSeparator){A.listSeparator="\\s;,"}if(dojox.validate.isEmailAddressList(B,A)){return B.split(new RegExp("\\s*["+A.listSeparator+"]\\s*"))}return[]}}