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

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

		http://dojotoolkit.org

	for documentation and information on getting the source.
	
	Build based on IBM Dojo 1.2.3-20090201-IBM

	This file contains dojo code and also custom javascript for Miles & More - [cn.sst.bf.jl->hal]
*/
if(!dojo._hasResource["dijit._Container"]){dojo._hasResource["dijit._Container"]=true;dojo.provide("dijit._Container");dojo.declare("dijit._Contained",null,{getParent:function(){for(var p=this.domNode.parentNode;p;p=p.parentNode){var id=p.getAttribute&&p.getAttribute("widgetId");if(id){var _3=dijit.byId(id);return _3.isContainer?_3:null;}}return null;},_getSibling:function(_4){var _5=this.domNode;do{_5=_5[_4+"Sibling"];}while(_5&&_5.nodeType!=1);if(!_5){return null;}var id=_5.getAttribute("widgetId");return dijit.byId(id);},getPreviousSibling:function(){return this._getSibling("previous");},getNextSibling:function(){return this._getSibling("next");},getIndexInParent:function(){var p=this.getParent();if(!p||!p.getIndexOfChild){return -1;}return p.getIndexOfChild(this);}});dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},addChild:function(_8,_9){var _a=this.containerNode;if(_9&&typeof _9=="number"){var _b=dojo.query("> [widgetId]",_a);if(_b&&_b.length>=_9){_a=_b[_9-1];_9="after";}}dojo.place(_8.domNode,_a,_9);if(this._started&&!_8._started){_8.startup();}},removeChild:function(_c){if(typeof _c=="number"&&_c>0){_c=this.getChildren()[_c];}if(!_c||!_c.domNode){return;}var _d=_c.domNode;_d.parentNode.removeChild(_d);},_nextElement:function(_e){do{_e=_e.nextSibling;}while(_e&&_e.nodeType!=1);return _e;},_firstElement:function(_f){_f=_f.firstChild;if(_f&&_f.nodeType!=1){_f=this._nextElement(_f);}return _f;},getChildren:function(){return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);},hasChildren:function(){return !!this._firstElement(this.containerNode);},destroyDescendants:function(_10){dojo.forEach(this.getChildren(),function(_11){_11.destroyRecursive(_10);});},_getSiblingOfChild:function(_12,dir){var _14=_12.domNode;var _15=(dir>0?"nextSibling":"previousSibling");do{_14=_14[_15];}while(_14&&(_14.nodeType!=1||!dijit.byNode(_14)));return _14?dijit.byNode(_14):null;},getIndexOfChild:function(_16){var _17=this.getChildren();for(var i=0,c;c=_17[i];i++){if(c==_16){return i;}}return -1;}});dojo.declare("dijit._KeyNavContainer",[dijit._Container],{_keyNavCodes:{},connectKeyNavHandlers:function(_1a,_1b){var _1c=this._keyNavCodes={};var _1d=dojo.hitch(this,this.focusPrev);var _1e=dojo.hitch(this,this.focusNext);dojo.forEach(_1a,function(_1f){_1c[_1f]=_1d;});dojo.forEach(_1b,function(_20){_1c[_20]=_1e;});this.connect(this.domNode,"onkeypress","_onContainerKeypress");this.connect(this.domNode,"onfocus","_onContainerFocus");},startupKeyNavChildren:function(){dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));},addChild:function(_21,_22){dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);this._startupChild(_21);},focus:function(){this.focusFirstChild();},focusFirstChild:function(){this.focusChild(this._getFirstFocusableChild());},focusNext:function(){if(this.focusedChild&&this.focusedChild.hasNextFocalNode&&this.focusedChild.hasNextFocalNode()){this.focusedChild.focusNext();return;}var _23=this._getNextFocusableChild(this.focusedChild,1);if(_23.getFocalNodes){this.focusChild(_23,_23.getFocalNodes()[0]);}else{this.focusChild(_23);}},focusPrev:function(){if(this.focusedChild&&this.focusedChild.hasPrevFocalNode&&this.focusedChild.hasPrevFocalNode()){this.focusedChild.focusPrev();return;}var _24=this._getNextFocusableChild(this.focusedChild,-1);if(_24.getFocalNodes){var _25=_24.getFocalNodes();this.focusChild(_24,_25[_25.length-1]);}else{this.focusChild(_24);}},focusChild:function(_26,_27){if(_26){if(this.focusedChild&&_26!==this.focusedChild){this._onChildBlur(this.focusedChild);}this.focusedChild=_26;if(_27&&_26.focusFocalNode){_26.focusFocalNode(_27);}else{_26.focus();}}},_startupChild:function(_28){if(_28.getFocalNodes){dojo.forEach(_28.getFocalNodes(),function(_29){dojo.attr(_29,"tabindex",-1);this._connectNode(_29);},this);}else{var _2a=_28.focusNode||_28.domNode;if(_28.isFocusable()){dojo.attr(_2a,"tabindex",-1);}this._connectNode(_2a);}},_connectNode:function(_2b){this.connect(_2b,"onfocus","_onNodeFocus");this.connect(_2b,"onblur","_onNodeBlur");},_onContainerFocus:function(evt){if(evt.target===this.domNode){this.focusFirstChild();}},_onContainerKeypress:function(evt){if(evt.ctrlKey||evt.altKey){return;}var _2e=this._keyNavCodes[evt.charOrCode];if(_2e){_2e();dojo.stopEvent(evt);}},_onNodeFocus:function(evt){dojo.attr(this.domNode,"tabindex",-1);var _30=dijit.getEnclosingWidget(evt.target);if(_30&&_30.isFocusable()){this.focusedChild=_30;}dojo.stopEvent(evt);},_onNodeBlur:function(evt){if(this.tabIndex){dojo.attr(this.domNode,"tabindex",this.tabIndex);}dojo.stopEvent(evt);},_onChildBlur:function(_32){},_getFirstFocusableChild:function(){return this._getNextFocusableChild(null,1);},_getNextFocusableChild:function(_33,dir){if(_33){_33=this._getSiblingOfChild(_33,dir);}var _35=this.getChildren();for(var i=0;i<_35.length;i++){if(!_33){_33=_35[(dir>0)?0:(_35.length-1)];}if(_33.isFocusable()){return _33;}_33=this._getSiblingOfChild(_33,dir);}return null;}});}if(!dojo._hasResource["dijit.layout._LayoutWidget"]){dojo._hasResource["dijit.layout._LayoutWidget"]=true;dojo.provide("dijit.layout._LayoutWidget");dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){dojo.addClass(this.domNode,"dijitContainer");dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}dojo.forEach(this.getChildren(),function(_37){_37.startup();});if(!this.getParent||!this.getParent()){this.resize();this.connect(dojo.global,"onresize","resize");}this.inherited(arguments);},resize:function(_38,_39){var _3a=this.domNode;if(_38){dojo.marginBox(_3a,_38);if(_38.t){_3a.style.top=_38.t+"px";}if(_38.l){_3a.style.left=_38.l+"px";}}var mb=_39||{};dojo.mixin(mb,_38||{});if(!("h" in mb)||!("w" in mb)){mb=dojo.mixin(dojo.marginBox(_3a),mb);}var cs=dojo.getComputedStyle(_3a);var me=dojo._getMarginExtents(_3a,cs);var be=dojo._getBorderExtents(_3a,cs);var bb=this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)};var pe=dojo._getPadExtents(_3a,cs);this._contentBox={l:dojo._toPixelValue(_3a,cs.paddingLeft),t:dojo._toPixelValue(_3a,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};this.layout();},layout:function(){},_setupChild:function(_41){if(_41.baseClass){dojo.addClass(_41.domNode,this.baseClass+"-"+_41.baseClass);}},addChild:function(_42,_43){this.inherited(arguments);if(this._started){this._setupChild(_42);}},removeChild:function(_44){if(_44.baseClass){dojo.removeClass(_44.domNode,this.baseClass+"-"+_44.baseClass);}this.inherited(arguments);}});dijit.layout.marginBox2contentBox=function(_45,mb){var cs=dojo.getComputedStyle(_45);var me=dojo._getMarginExtents(_45,cs);var pb=dojo._getPadBorderExtents(_45,cs);return {l:dojo._toPixelValue(_45,cs.paddingLeft),t:dojo._toPixelValue(_45,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};};(function(){var _4a=function(_4b){return _4b.substring(0,1).toUpperCase()+_4b.substring(1);};var _4c=function(_4d,dim){_4d.resize?_4d.resize(dim):dojo.marginBox(_4d.domNode,dim);dojo.mixin(_4d,dojo.marginBox(_4d.domNode));dojo.mixin(_4d,dim);};dijit.layout.layoutChildren=function(_4f,dim,_51){dim=dojo.mixin({},dim);dojo.addClass(_4f,"dijitLayoutContainer");_51=dojo.filter(_51,function(_52){return _52.layoutAlign!="client";}).concat(dojo.filter(_51,function(_53){return _53.layoutAlign=="client";}));dojo.forEach(_51,function(_54){var elm=_54.domNode,pos=_54.layoutAlign;var _57=elm.style;_57.left=dim.l+"px";_57.top=dim.t+"px";_57.bottom=_57.right="auto";dojo.addClass(elm,"dijitAlign"+_4a(pos));if(pos=="top"||pos=="bottom"){_4c(_54,{w:dim.w});dim.h-=_54.h;if(pos=="top"){dim.t+=_54.h;}else{_57.top=dim.t+dim.h+"px";}}else{if(pos=="left"||pos=="right"){_4c(_54,{h:dim.h});dim.w-=_54.w;if(pos=="left"){dim.l+=_54.w;}else{_57.left=dim.l+dim.w+"px";}}else{if(pos=="client"){_4c(_54,dim);}}}});};})();}if(!dojo._hasResource["dojo.html"]){dojo._hasResource["dojo.html"]=true;dojo.provide("dojo.html");(function(){var _58=0;dojo.html._secureForInnerHtml=function(_59){return _59.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");};dojo.html._emptyNode=function(_5a){while(_5a.firstChild){dojo._destroyElement(_5a.firstChild);}};dojo.html._setNodeContent=function(_5b,_5c,_5d){if(_5d){dojo.html._emptyNode(_5b);}if(typeof _5c=="string"){var pre="",_5f="",_60=0,_61=_5b.nodeName.toLowerCase();switch(_61){case "tr":pre="<tr>";_5f="</tr>";_60+=1;case "tbody":case "thead":pre="<tbody>"+pre;_5f+="</tbody>";_60+=1;case "table":pre="<table>"+pre;_5f+="</table>";_60+=1;break;}if(_60){var n=_5b.ownerDocument.createElement("div");n.innerHTML=pre+_5c+_5f;do{n=n.firstChild;}while(--_60);dojo.forEach(n.childNodes,function(n){_5b.appendChild(n.cloneNode(true));});}else{_5b.innerHTML=_5c;}}else{if(_5c.nodeType){_5b.appendChild(_5c);}else{dojo.forEach(_5c,function(n){_5b.appendChild(n.cloneNode(true));});}}return _5b;};dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_65,_66){dojo.mixin(this,_65||{});_66=this.node=dojo.byId(this.node||_66);if(!this.id){this.id=["Setter",(_66)?_66.id||_66.tagName:"",_58++].join("_");}if(!(this.node||_66)){new Error(this.declaredClass+": no node provided to "+this.id);}},set:function(_67,_68){if(undefined!==_67){this.content=_67;}if(_68){this._mixin(_68);}this.onBegin();this.setContent();this.onEnd();return this.node;},setContent:function(){var _69=this.node;if(!_69){console.error("setContent given no node");}try{_69=dojo.html._setNodeContent(_69,this.content);}catch(e){var _6a=this.onContentError(e);try{_69.innerHTML=_6a;}catch(e){console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);}}this.node=_69;},empty:function(){if(this.parseResults&&this.parseResults.length){dojo.forEach(this.parseResults,function(w){if(w.destroy){w.destroy();}});delete this.parseResults;}dojo.html._emptyNode(this.node);},onBegin:function(){var _6c=this.content;if(dojo.isString(_6c)){if(this.cleanContent){_6c=dojo.html._secureForInnerHtml(_6c);}if(this.extractContent){var _6d=_6c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);if(_6d){_6c=_6d[1];}}}this.empty();this.content=_6c;return this.node;},onEnd:function(){if(this.parseContent){this._parse();}return this.node;},tearDown:function(){delete this.parseResults;delete this.node;delete this.content;},onContentError:function(err){return "Error occured setting content: "+err;},_mixin:function(_6f){var _70={},key;for(key in _6f){if(key in _70){continue;}this[key]=_6f[key];}},_parse:function(){var _72=this.node;try{this.parseResults=dojo.parser.parse(_72,true);}catch(e){this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);}},_onError:function(_73,err,_75){var _76=this["on"+_73+"Error"].call(this,err);if(_75){console.error(_75,err);}else{if(_76){dojo.html._setNodeContent(this.node,_76,true);}}}});dojo.html.set=function(_77,_78,_79){if(undefined==_78){console.warn("dojo.html.set: no cont argument provided, using empty string");_78="";}if(!_79){return dojo.html._setNodeContent(_77,_78,true);}else{var op=new dojo.html._ContentSetter(dojo.mixin(_79,{content:_78,node:_77}));return op.set();}};})();}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'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,_isRealContent:true,postMixInProperties:function(){this.inherited(arguments);var _7b=dojo.i18n.getLocalization("dijit","loading",this.lang);this.loadingMessage=dojo.string.substitute(this.loadingMessage,_7b);this.errorMessage=dojo.string.substitute(this.errorMessage,_7b);},buildRendering:function(){this.inherited(arguments);if(!this.containerNode){this.containerNode=this.domNode;}},postCreate:function(){this.domNode.title="";if(!dijit.hasWaiRole(this.domNode)){dijit.setWaiRole(this.domNode,"group");}dojo.addClass(this.domNode,this.baseClass);},startup:function(){if(this._started){return;}if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild){this._singleChild.startup();}}this._loadCheck();this.inherited(arguments);},_checkIfSingleChild:function(){var _7c=dojo.query(">",this.containerNode),_7d=_7c.filter(function(_7e){return dojo.hasAttr(_7e,"dojoType")||dojo.hasAttr(_7e,"widgetId");}),_7f=dojo.filter(_7d.map(dijit.byNode),function(_80){return _80&&_80.domNode&&_80.resize;});if(_7c.length==_7d.length&&_7f.length==1){this.isContainer=true;this._singleChild=_7f[0];}else{delete this.isContainer;delete this._singleChild;}},refresh:function(){return this._prepareLoad(true);},setHref:function(_81){dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated.\tUse attr('href', ...) instead.","","2.0");return this.attr("href",_81);},_setHrefAttr:function(_82){this.href=_82;if(this._created){return this._prepareLoad();}},setContent:function(_83){dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");this.attr("content",_83);},_setContentAttr:function(_84){this.href="";this.cancel();this._setContent(_84||"");this._isDownloaded=false;if(this.doLayout!="false"&&this.doLayout!==false){this._checkIfSingleChild();if(this._singleChild&&this._singleChild.resize){this._singleChild.startup();var cb=this._contentBox||dojo.contentBox(this.containerNode);this._singleChild.resize({w:cb.w,h:cb.h});}}},_getContentAttr:function(){return this.containerNode.innerHTML;},cancel:function(){if(this._xhrDfd&&(this._xhrDfd.fired==-1)){this._xhrDfd.cancel();}delete this._xhrDfd;},destroyRecursive:function(_86){if(this._beingDestroyed){return;}this._beingDestroyed=true;this.inherited(arguments);},resize:function(_87){dojo.marginBox(this.domNode,_87);var _88=this.containerNode,mb=dojo.mixin(dojo.marginBox(_88),_87||{});var cb=this._contentBox=dijit.layout.marginBox2contentBox(_88,mb);if(this._singleChild&&this._singleChild.resize){this._singleChild.resize({w:cb.w,h:cb.h});}},_prepareLoad:function(_8b){this.cancel();this.isLoaded=false;this._loadCheck(_8b);},_isShown:function(){if("open" in this){return this.open;}else{var _8c=this.domNode;return (_8c.style.display!="none")&&(_8c.style.visibility!="hidden");}},_loadCheck:function(_8d){var _8e=this._isShown();if(this.href&&(_8d||(this.preload&&!this.isLoaded&&!this._xhrDfd)||(this.refreshOnShow&&_8e&&!this._xhrDfd)||(!this.isLoaded&&_8e&&!this._xhrDfd))){this._downloadExternalContent();}},_downloadExternalContent:function(){this._setContent(this.onDownloadStart(),true);var _8f=this;var _90={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};if(dojo.isObject(this.ioArgs)){dojo.mixin(_90,this.ioArgs);}var _91=this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_90);_91.addCallback(function(_92){try{_8f._isDownloaded=true;_8f._setContent(_92,false);_8f.onDownloadEnd();}catch(err){_8f._onError("Content",err);}delete _8f._xhrDfd;return _92;});_91.addErrback(function(err){if(!_91.cancelled){_8f._onError("Download",err);}delete _8f._xhrDfd;return err;});},_onLoadHandler:function(_94){this.isLoaded=true;try{this.onLoad(_94);}catch(e){console.error("Error "+this.widgetId+" running custom onLoad code");}},_onUnloadHandler:function(){this.isLoaded=false;try{this.onUnload();}catch(e){console.error("Error "+this.widgetId+" running custom onUnload code");}},destroyDescendants:function(){if(this._isRealContent){this._onUnloadHandler();}var _95=this._contentSetter;if(_95){_95.empty();}else{this.inherited(arguments);dojo.html._emptyNode(this.containerNode);}},_setContent:function(_96,_97){this.destroyDescendants();this._isRealContent=!_97;var _98=this._contentSetter;if(!(_98&&_98 instanceof dojo.html._ContentSetter)){_98=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _9a=this.onContentError(e);try{this.containerNode.innerHTML=_9a;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}var _9b=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});dojo.mixin(_98,_9b);_98.set((dojo.isObject(_96)&&_96.domNode)?_96.domNode:_96);delete this._contentSetterParams;if(!_97){this._onLoadHandler(_96);}},_onError:function(_9c,err,_9e){var _9f=this["on"+_9c+"Error"].call(this,err);if(_9e){console.error(_9e,err);}else{if(_9f){this._setContent(_9f,true);}}},_createSubWidgets:function(){try{dojo.parser.parse(this.containerNode,true);}catch(e){this._onError("Content",e,"Couldn't create widgets in "+this.id+(this.href?" from "+this.href:""));}},onLoad:function(_a0){},onUnload:function(){},onDownloadStart:function(){return this.loadingMessage;},onContentError:function(_a1){},onDownloadError:function(_a2){return this.errorMessage;},onDownloadEnd:function(){}});}if(!dojo._hasResource["dojox.html._base"]){dojo._hasResource["dojox.html._base"]=true;dojo.provide("dojox.html._base");(function(){if(dojo.isIE){var _a3=/(AlphaImageLoader\([^)]*?src=(['"]))(?![a-z]+:|\/)([^\r\n;}]+?)(\2[^)]*\)\s*[;}]?)/g;}var _a4=/(?:(?:@import\s*(['"])(?![a-z]+:|\/)([^\r\n;{]+?)\1)|url\(\s*(['"]?)(?![a-z]+:|\/)([^\r\n;]+?)\3\s*\))([a-z, \s]*[;}]?)/g;var _a5=dojox.html._adjustCssPaths=function(_a6,_a7){if(!_a7||!_a6){return;}if(_a3){_a7=_a7.replace(_a3,function(_a8,pre,_aa,url,_ac){return pre+(new dojo._Url(_a6,"./"+url).toString())+_ac;});}return _a7.replace(_a4,function(_ad,_ae,_af,_b0,_b1,_b2){if(_af){return "@import \""+(new dojo._Url(_a6,"./"+_af).toString())+"\""+_b2;}else{return "url("+(new dojo._Url(_a6,"./"+_b1).toString())+")"+_b2;}});};var _b3=/(<[a-z][a-z0-9]*\s[^>]*)(?:(href|src)=(['"]?)([^>]*?)\3|style=(['"]?)([^>]*?)\5)([^>]*>)/gi;var _b4=dojox.html._adjustHtmlPaths=function(_b5,_b6){var url=_b5||"./";return _b6.replace(_b3,function(tag,_b9,_ba,_bb,_bc,_bd,_be,end){return _b9+(_ba?(_ba+"="+_bb+(new dojo._Url(url,_bc).toString())+_bb):("style="+_bd+_a5(url,_be)+_bd))+end;});};var _c0=dojox.html._snarfStyles=function(_c1,_c2,_c3){_c3.attributes=[];return _c2.replace(/(?:<style([^>]*)>([\s\S]*?)<\/style>|<link\s+(?=[^>]*rel=['"]?stylesheet)([^>]*?href=(['"])([^>]*?)\4[^>\/]*)\/?>)/gi,function(_c4,_c5,_c6,_c7,_c8,_c9){var i,_cb=(_c5||_c7||"").replace(/^\s*([\s\S]*?)\s*$/i,"$1");if(_c6){i=_c3.push(_c1?_a5(_c1,_c6):_c6);}else{i=_c3.push("@import \""+_c9+"\";");_cb=_cb.replace(/\s*(?:rel|href)=(['"])?[^\s]*\1\s*/gi,"");}if(_cb){_cb=_cb.split(/\s+/);var _cc={},tmp;for(var j=0,e=_cb.length;j<e;j++){tmp=_cb[j].split("=");_cc[tmp[0]]=tmp[1].replace(/^\s*['"]?([\s\S]*?)['"]?\s*$/,"$1");}_c3.attributes[i-1]=_cc;}return "";});};var _d0=dojox.html._snarfScripts=function(_d1,_d2){_d2.code="";function download(src){if(_d2.downloadRemote){dojo.xhrGet({url:src,sync:true,load:function(_d4){_d2.code+=_d4+";";},error:_d2.errBack});}};return _d1.replace(/<script\s*(?![^>]*type=['"]?dojo)(?:[^>]*?(?:src=(['"]?)([^>]*?)\1[^>]*)?)*>([\s\S]*?)<\/script>/gi,function(_d5,_d6,src,_d8){if(src){download(src);}else{_d2.code+=_d8;}return "";});};var _d9=dojox.html.evalInGlobal=function(_da,_db){_db=_db||dojo.doc.body;var n=_db.ownerDocument.createElement("script");n.type="text/javascript";_db.appendChild(n);n.text=_da;};dojo.declare("dojox.html._ContentSetter",[dojo.html._ContentSetter],{adjustPaths:false,referencePath:".",renderStyles:false,executeScripts:false,scriptHasHooks:false,scriptHookReplacement:null,_renderStyles:function(_dd){this._styleNodes=[];var st,att,_e0,doc=this.node.ownerDocument;var _e2=doc.getElementsByTagName("head")[0];for(var i=0,e=_dd.length;i<e;i++){_e0=_dd[i];att=_dd.attributes[i];st=doc.createElement("style");st.setAttribute("type","text/css");for(var x in att){st.setAttribute(x,att[x]);}this._styleNodes.push(st);_e2.appendChild(st);if(st.styleSheet){st.styleSheet.cssText=_e0;}else{st.appendChild(doc.createTextNode(_e0));}}},empty:function(){this.inherited("empty",arguments);this._styles=[];},onBegin:function(){this.inherited("onBegin",arguments);var _e6=this.content,_e7=this.node;var _e8=this._styles;if(dojo.isString(_e6)){if(this.adjustPaths&&this.referencePath){_e6=_b4(this.referencePath,_e6);}if(this.renderStyles||this.cleanContent){_e6=_c0(this.referencePath,_e6,_e8);}if(this.executeScripts){var _t=this;var _ea={downloadRemote:true,errBack:function(e){_t._onError.call(_t,"Exec","Error downloading remote script in \""+_t.id+"\"",e);}};_e6=_d0(_e6,_ea);this._code=_ea.code;}}this.content=_e6;},onEnd:function(){var _ec=this._code,_ed=this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}if(this.renderStyles&&_ed&&_ed.length){this._renderStyles(_ed);}if(this.executeScripts&&_ec){if(this.cleanContent){_ec=_ec.replace(/(<!--|(?:\/\/)?-->|<!\[CDATA\[|\]\]>)/g,"");}if(this.scriptHasHooks){_ec=_ec.replace(/_container_(?!\s*=[^=])/g,this.scriptHookReplacement);}try{_d9(_ec,this.node);}catch(e){this._onError("Exec","Error eval script in "+this.id+", "+e.message,e);}}this.inherited("onEnd",arguments);},tearDown:function(){this.inherited(arguments);delete this._styles;if(this._styleNodes&&this._styleNodes.length){while(this._styleNodes.length){dojo._destroyElement(this._styleNodes.pop());}}delete this._styleNodes;dojo.mixin(this,dojo.getObject(this.declaredClass).prototype);}});dojox.html.set=function(_ee,_ef,_f0){if(!_f0){return dojo.html._setNodeContent(_ee,_ef,true);}else{var op=new dojox.html._ContentSetter(dojo.mixin(_f0,{content:_ef,node:_ee}));return op.set();}};})();}if(!dojo._hasResource["dojox.layout.ContentPane"]){dojo._hasResource["dojox.layout.ContentPane"]=true;dojo.provide("dojox.layout.ContentPane");(function(){dojo.declare("dojox.layout.ContentPane",dijit.layout.ContentPane,{adjustPaths:false,cleanContent:false,renderStyles:false,executeScripts:true,scriptHasHooks:false,constructor: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(e){},_setContentAttr:function(_f3){var _f4=this._setUpDeferreds();this.inherited(arguments);return _f4;},cancel:function(){if(this._xhrDfd&&this._xhrDfd.fired==-1){this.onUnloadDeferred=null;}dijit.layout.ContentPane.prototype.cancel.apply(this,arguments);},_setUpDeferreds:function(){var _t=this,_f6=function(){_t.cancel();};var _f7=(_t.onLoadDeferred=new dojo.Deferred());var _f8=(_t._nextUnloadDeferred=new dojo.Deferred());return {cancel:_f6,addOnLoad:function(_f9){_f7.addCallback(_f9);},addOnUnload:function(_fa){_f8.addCallback(_fa);}};},_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(_fb,err){dijit.layout.ContentPane.prototype._onError.apply(this,arguments);if(this.onLoadDeferred){this.onLoadDeferred.errback(err);}},_prepareLoad:function(_fd){var _fe=this._setUpDeferreds();dijit.layout.ContentPane.prototype._prepareLoad.apply(this,arguments);return _fe;},_setContent:function(_ff){var _100=this._contentSetter;if(!(_100&&_100 instanceof dojox.html._ContentSetter)){_100=this._contentSetter=new dojox.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){var _102=this.onContentError(e);try{this.containerNode.innerHTML=_102;}catch(e){console.error("Fatal "+this.id+" could not change content due to "+e.message,e);}})});}this._contentSetterParams={adjustPaths:Boolean(this.adjustPaths&&(this.href||this.referencePath)),referencePath:this.href||this.referencePath,renderStyles:this.renderStyles,executeScripts:this.executeScripts,scriptHasHooks:this.scriptHasHooks,scriptHookReplacement:"dijit.byId('"+this.id+"')"};this.inherited("_setContent",arguments);}});})();}dojo.i18n._preloadLocalizations("dojo.nls.mam_contentpane",["he","nl","tr","no","ko","el","en","en-gb","ROOT","zh-cn","hu","es","fi-fi","pt-br","ca","fi","he-il","xx","ru","it","fr","cs","de-de","fr-fr","it-it","es-es","ja","sk","da","sl","pl","de","sv","pt","pt-pt","nl-nl","zh-tw","ko-kr","ar","en-us","zh","th","ja-jp"]);