// create a test node off the browser screen to calculate high contrast mode var testNode = document.createElement("div"); testNode.className = "highContrastTestNode"; document.body.appendChild(testNode); // look at the computed style for the test node var styles = null; try { styles = document.defaultView.getComputedStyle(testNode, ""); } catch(e) { styles = testNode.currentStyle; } var testImg = styles.backgroundImage; if ((styles.borderTopColor == styles.borderRightColor) || (testImg != null && (testImg == "none" || testImg == "url(invalid-url:)" ))) { document.getElementsByTagName("body")[0].className+=" lotusImagesOff"; } document.body.removeChild(testNode);/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2009, 2010, 2011 - All Rights reserved. **/ (function(){if(ibmToolbarConfig.inManagedPages){var _1=false;var _2=i$.byId("utb-project-info");var _3=i$.byId("utb-project-btn");if(_2&&_3){var _4=function(_5){if(!_1){i$.removeClass(_3,"utb-select");i$.addClass(_3,"utb-loading");_1=i$.modules.loadDeferred().then(function(){i$.removeClass(_3,"utb-loading");i$.addClass(_3,"utb-select");i$.unbindDomEvt(_5);ibmToolbarConfig.openProjectMenu();},function(_6){if(_6[0].xhr.status==401){document.location.reload();}});}};var _7=i$.bindDomEvt(_2,"onkeydown",function(e){if(e.keyCode==13){_4(_7);}});var _8=i$.bindDomEvt(_2,"onclick",function(){_4(_8);});}}})(); (function(){ if(!i$.isIE){ i$.addOnLoad(function(){ var _1=document.createElement("div"); var _2=ibmCfg.themeConfig.themeWebAppBaseURI; _1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\""+_2+"/icons/blank.gif\");"; document.body.appendChild(_1); var _3=null; try{ _3=document.defaultView.getComputedStyle(_1,""); } catch(e){ _3=_1.currentStyle; } var _4=_3.backgroundImage; if((_3.borderTopColor==_3.borderRightColor)||(_4!=null&&(_4=="none"||_4=="url(invalid-url:)"))){ document.getElementsByTagName("body")[0].className+=" wpthemeImagesOff"; } document.body.removeChild(_1); }); } })(); (function(){ var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}"; var _2=false; var _3=function(){ return i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode"); }; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{getWindowIDFromSkin:function(_4){ while((_4=_4.parentNode)!=null){ if(i$.hasClass(_4,"component-control")){ var m=_4&&(_4.className||"").match(/id-([\S]+)/); return m&&m[1]; } } return null; },getPortletState:function(_5){ var _6=i$.byId("portletState"); if(_6){ if(!_6._cache){ _6._cache=i$.fromJson(_6.innerHTML); _6._cache._defaults={"windowState":"normal","portletMode":"view"}; } if(_6._cache[_5]){ return _6._cache[_5]; }else{ return _6._cache._defaults; } } return {}; },isValidOp:function(_7){ if(_7.visibility===false){ return false; } var _8=_7.metadata||{}; switch(_7.id){ case "ibm.portal.operations.changePortletMode": return wptheme.getPortletState(_8.wid).portletMode!=_8.portletMode; case "ibm.portal.operations.changeWindowState": return wptheme.getPortletState(_8.wid).windowState!=_8.windowState; default: } return true; },operation:{changeToHelpMode:function(_9){ var _a=window.location.href; if(_9.actionUrl){ if(_9.actionUrl.indexOf("?")==0){ var _b=_a.indexOf("#"); if(_b!=-1){ var _c=_a.substring(0,_b); var _d=_a.substring(_b); _a=_c+(_c.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); _a+=_d; }else{ _a+=(_a.indexOf("?")==-1?"?":"&")+_9.actionUrl.substring(1); } }else{ _a=_9.actionUrl; } } window.open(_a,"","resizable=yes,scrollbars=yes,menubar=no,toolbar=no,status=no,width=800,height=600,screenX=10,screenY=10,top=10,left=10"); }},canImpersonate:function(){ return ibmCfg.portalConfig.canImpersonate; },contextMenu:{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading"},init:function(_e,_f,_10){ _e._contextMenu=_e._contextMenu||{}; _e._contextMenu.id=_e._contextMenu.id||Math.round(Math.random()*1000000000); _e.setAttribute("id",_e._contextMenu.id); _e._contextMenu.menuId=_f; _e._contextMenu.jsonQuery=_10; var _11=_e._contextMenu; var _12=function(_13){ if(_13.displayMenu){ i$.fireEvent("wptheme/contextMenu/close/all"); if(!_11._submenu){ i$.fireEvent("wptheme/contextMenu/close/all"); wptheme.contextMenu._updateAbsolutePosition(i$.byId(_11.id)); } var _14=wptheme.contextMenu._adjustScreenPositionStart(); i$.addClass((_11.shadowNode)?_11.shadowNode:i$.byId(_11.id),wptheme.contextMenu.css.show); wptheme.contextMenu._adjustScreenPositionEnd(_14); var _15=i$.byId(_11.id)._firstSelectable; if(_15){ _15.focus(); i$.byId(_11.id)._currentSelected=_15; } i$.addListener("wptheme/contextMenu/close/all",function(){ var _16=i$.byId(_11.id); }); } }; wptheme.contextMenu._initialize(_e).then(_12,_12); _e=null; },initSubmenu:function(_17,_18,_19){ _17._contextMenu=_17._contextMenu||{}; _17._contextMenu._submenu=true; _17._contextMenu._menuitemTemplate=_19._menuitemTemplate; _17._contextMenu._subMenuTemplate=_19._subMenuTemplate; _17._contextMenu._loadingTemplate=_19._loadingTemplate; wptheme.contextMenu.init(_17,_18,_19.jsonQuery); },_findFocusNode:function(_1a){ var _1b,i,_1c; var _1d=function(_1e,_1f){ var l=_1e.childNodes.length; for(i=0;i=0;i--){ _24=_26.childNodes[i]; if(i$.hasClass(_24,wptheme.contextMenu.css.menuTemplate)){ _21=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.submenuTemplate)){ _22=_24; continue; } if(i$.hasClass(_24,wptheme.contextMenu.css.loadingTemplate)){ _23=_24; continue; } if(_24.childNodes){ i=_25(_24,i); } } return _27; }; _25(_20); return {"menu":_21,"submenu":_22,"loading":_23}; },_findNextNodeByKeyCode:function(_28,_29){ var _2a=_28.parentNode; var _2b,_2c,_2d,i,j; var l=_2a.childNodes.length; for(i=0;i=0;i--){ _49=_47[i]; if(!_49._visible){ continue; } if(_49.type=="Separator"){ if(_4a.type=="Separator"){ continue; } }else{ if(_49.type=="Header"){ if((_4a.type=="Separator")||(_4a.type=="Header")){ continue; } } } _4a=_49; _48.unshift(_49); } while(_48.length>0&&_48[0].type=="Separator"){ _48=_48.slice(1); } return _48; },_buildMenu:function(_4b,_4c,_4d){ var _4e=document.createDocumentFragment(),tmp=i$.createDom("div"),_4f,_50,_51,_52,_53,_54; for(var i=0,l=_4d.length;i_14){ _18=-_18; } } if(_18>0&&!this.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,0px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+_13.offsetWidth+"px)"; } } var _19=setInterval(function(){ if(_18>0&&_16+_18>_14){ _18=_14-_16; } if(_18<0&&_16+_18<_14){ _18=-(_16-_14); } if(_18<0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_13.offsetWidth-(_17-=_18))+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_17-=_18)+"px)"; } } if(_18>0&&!wptheme.mobileNavSideTogglingRoot){ if(ibmCfg.themeConfig.isRTL){ _13.style.clip="rect(0px,"+(_17+=_18)+"px,"+_13.offsetHeight+"px,0px)"; }else{ _13.style.clip="rect(0px,"+_13.offsetWidth+"px,"+_13.offsetHeight+"px,"+(_13.offsetWidth-(_17+=_18))+"px)"; } } if(ibmCfg.themeConfig.isRTL){ _13.style.right=(_16+=_18)+"px"; }else{ _13.style.left=(_16+=_18)+"px"; } if(_18>0&&_16>=_14||_18<0&&_16<=_14||_18==0){ clearInterval(_19); _13.style.clip=""; if(_15){ _15.call(); } } },1); },toggleMobileNav:function(id,_1a,_1b,_1c,_1d,_1e,_1f){ var _20=document.getElementById(id); var _21=document.getElementById("wpthemeNavRootLink"); var _22=document.getElementById(id+"Link"); var _23=document.getElementById(id+"Access"); var _24=document.getElementById(id+"Subnav"); var _25=document.getElementsByTagName("header")[0]; var _26=document.getElementById("layoutContainers"); if(_20){ if(_1f==0){ if(i$.hasClass(_21,"wpthemeNavOpened")){ i$.removeClass(_21,"wpthemeNavOpened"); }else{ i$.addClass(_21,"wpthemeNavOpened"); } } if(i$.hasClass(_20,_1a)){ if(id==_1d&&_1e){ this.mobileNavSideTogglingRoot=true; _20.style.top=_25.offsetHeight+"px"; _20.style.height=(window.innerHeight-_20.offsetTop)+"px"; if(ibmCfg.themeConfig.isRTL){ _20.style.right=(-_20.offsetWidth)+"px"; }else{ _20.style.left=(-_20.offsetWidth)+"px"; } this.mobileNavResizeBinding=i$.bindDomEvt(window,"resize",this.resizeMobileNavSide); } i$.removeClass(_20,_1a); _20.setAttribute("aria-expanded","true"); _22.setAttribute("aria-label",_1c); _22.title=_23.innerHTML=_1c; if(id==_1d&&_1e){ _25.style.position="fixed"; _25.style.width="100%"; _26.style.paddingTop=_25.offsetHeight+10+"px"; _25.style.zIndex="9998"; _25.style.top="0px"; this.animateMobileNavSidePanel(_20,0,function(){ if(wptheme.mobileNavSideLastExpanded.length==0){ wptheme.mobileNavSideTogglingRoot=false; } }); } if(_1e){ if(id==_1d){ for(var i=0;i=0;i--){ document.getElementById(this.mobileNavSideExpanded[i]).onclick.call(); } }else{ var _2a=id+"Link"; var i=-1; for(var j=this.mobileNavSideExpanded.length-1;j>=0;j--){ if(this.mobileNavSideExpanded[j]==_2a){ i=j; break; } } if(i!=-1){ var _2b; for(var j=this.mobileNavSideExpanded.length-1;j>=i;j--){ _2b=this.mobileNavSideExpanded.pop(); if(_2a!=_2b){ document.getElementById(_2b).onclick.call(); } } } _22.parentNode.parentNode.parentNode.onclick=null; } } if(_24&&_1e){ var _29=_24.offsetLeft; if(ibmCfg.themeConfig.isRTL){ _29=parseInt(_24.style.right); } this.animateMobileNavSidePanel(_24,_29-_24.offsetWidth,function(){ i$.addClass(_24,_1a); if(_24.parentNode!=_20){ _24=_24.parentNode.removeChild(_24); _20.appendChild(_24); } }); } if(id==_1d&&_1e){ _25.style.position="static"; _26.style.paddingTop=""; _25.style.width="auto"; _25.style.zIndex="auto"; this.animateMobileNavSidePanel(_20,-_20.offsetWidth,function(){ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; wptheme.mobileNavSideTogglingRoot=false; }); i$.unbindDomEvt(this.mobileNavResizeBinding); this.mobileNavResizeBinding=null; }else{ i$.addClass(_20,_1a); _20.setAttribute("aria-expanded","false"); _22.setAttribute("aria-label",_1b); _22.title=_23.innerHTML=_1b; } } } },toggleMobileTopNav:function(_2c,_2d){ var _2e=document.getElementById("wpthemeTopNavToggleBtn"); var _2f=document.getElementById("wpthemeTopNavToggleBtnAccess"); var _30=document.getElementsByTagName("header")[0]; var _31=_30.children[0]; if(i$.hasClass(_2e,"wpthemeTopNavOpened")){ _31.style.display="none"; i$.removeClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2c); _2e.title=_2f.innerHTML=_2c; }else{ _31.style.display="block"; i$.addClass(_2e,"wpthemeTopNavOpened"); _2e.setAttribute("aria-label",_2d); _2e.title=_2f.innerHTML=_2d; } this.resizeMobileNavSide(); }}); var _32=document.getElementById("wpthemeHelpLink"); var _33=document.getElementById("wpthemeHelpOnClick"); var _34=document.getElementById("wpthemeHelpAnchor"); if(!(_32===null&&_33===null)&&_34!=null){ if(_32!=null){ var _35=_32.innerHTML; _34.onclick=function(){ window.open(_35,"wpthemeHelp","width=800,height=600"); }; }else{ if(_33!=null){ var _36=_33.innerHTML; _34.onclick=function(){ eval(_36); }; } } } })(); (function(){ if(typeof ic4_wai_integration!="undefined"&&ic4_wai_integration===true){ if(typeof waiHideSecondaryNav!="undefined"&&waiHideSecondaryNav===true){ document.getElementById("wpthemeSecondaryBanner").style.display="none"; document.getElementById("wpthemeMainContent").style.display="none"; } document.getElementById("wptheme_banner").removeAttribute("role"); document.getElementById("wptheme_contentinfo").removeAttribute("role"); if(dojo!="undefined"){ djConfig.locale=dojo.locale; dojo.addOnLoad(function(){ document.getElementById("logoutlink").onclick=null; }); } if(typeof appName!="undefined"&&appName==="profile"){ ibmConfig.proxyURL=svcHrefProfiles+"/ajaxProxy/"; ibmConfig["com.ibm.mashups.proxy.url"]=svcHrefProfiles+"/ajaxProxy"; djConfig.baseUrl=(needProxy?(ibmConfig.proxyURL+encodeURIComponent(baseProtocol)+"/"+encodeURIComponent(baseHost)):(baseProtocol+"://"+baseHost))+basePath+"/web/dojo/"; djConfig.proxy=applicationContext+"/ajaxProxy"; } if(typeof i$!="undefined"&&i$.isRTL){ document.body.className=document.body.className.replace("lotusImagesOff",""); document.body.className+=" wptheme_ic4_wai_rtl"; } } })(); (function(){ if(!i$.isIE){ i$.addOnLoad(function(){ var _1=document.getElementsByTagName("SECTION"); for(var i=0;i<_1.length;i++){ if(i$.hasClass(_1[i],"a11yRegionTarget")){ var _2=_1[i]; var _3=null; var _4=_2.getElementsByTagName("SPAN"); for(var j=0;j<_4.length;j++){ if(i$.hasClass(_4[j],"a11yRegionLabel")){ _3=_4[j]; } } if(_3){ var _5=_3; var _6=_2; var _7=null; while((_6=_6.parentNode)!=null){ if(i$.hasClass(_6,"component-control")){ var m=_6&&(_6.className||"").match(/id-([\S]+)/); _7=m&&m[1]; break; } } if(_7){ var _8="wpRegionId"+_7; _5.setAttribute("id",_8); _2.setAttribute("aria-labelledby",_8); } } } } }); } })(); (function(){ i$.merge({ "WARNING_0":"Warning", "DELETE_0":"Delete", "INFO_0":"Information", "MESSAGES_AVAILABLE_1":"${0} messages are available for review", "SHOW_DETAILS_0":"Show Details", "ERROR_0":"Error", "HIDE_DETAILS_0":"Hide Details" },i$.fromPath("wptheme.statusBar.nls",true)); })(); (function(){ if(typeof com==="undefined"||!com){ com={}; } if(typeof com.ibm==="undefined"||!com.ibm){ com.ibm={}; } if(typeof com.ibm.widgets==="undefined"||!com.ibm.widgets){ com.ibm.widgets={}; } if(typeof com.ibm.widgets.StatusType==="undefined"||!com.ibm.widgets.StatusType){ com.ibm.widgets.StatusType=function(id,_1,_2,_3){ this._id=id; this._styleClass=_1; this._iconPath=_2; this._iconAlt=_3; }; } if(typeof com.ibm.widgets.StatusMessage==="undefined"||!com.ibm.widgets.StatusMessage){ com.ibm.widgets.StatusMessage=function(_4,_5,_6){ this._type=_4; this._message=_5; if(!i$.isString(_5)&&_5.message&&i$.isString(_5.message)){ this._message=_5.message; } this._details=_6; }; } if(typeof com.ibm.widgets.StatusBarV2==="undefined"||!com.ibm.widgets.StatusBarV2){ com.ibm.widgets.StatusBarV2=function(_7){ this.uid=_7; this.showDetails=false; this._messages=[]; this._connections=[]; this._numMessages=0; this._baseURL=window.location.protocol+"//"+window.location.host; this.errorGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this.warningGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this.infoGifPath=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"lotusError",this.errorGifPath,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"lotusWarning",this.warningGifPath,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"lotusInfo",this.infoGifPath,wptheme.statusBar.nls.INFO_0)}; i$.addListener("/portal/status",i$.scope(this,this.addMessage)); i$.addListener("/message/status",i$.scope(this,this.addMessage)); i$.addListener("/portal/status/clear",i$.scope(this,this.clearMessage)); i$.addListener("/message/status/clear",i$.scope(this,this.clearMessage)); if(typeof (ibmCfg)!="undefined"&&ibmCfg.portalConfig){ this.isBidi=ibmCfg.portalConfig.isRTL; }else{ if(typeof (ibmPortalConfig)!="undefined"){ this.isBidi=ibmPortalConfig.isRTL; }else{ if(typeof (ibmConfig)!="undefined"){ this.isBidi=ibmConfig.isBidi; } } } i$.addOnUnload(i$.scope(this,this._onWindowUnload)); this.containerNode=i$.byId("wpthemeStatusBarContainer"); }; } i$.augment(com.ibm.widgets.StatusBarV2,{_onWindowUnload:function(){ i$.forEach(this._connections,function(_8){ i$.unbindDomEvt(_8); }); this._connections=null; this.clear(); this._messages=null; },_getStatusContainer:function(){ return this.containerNode; },_escapeHTML:function(_9){ if(_9.replace){ return _9.replace(/&/g,"&").replace(/>/g,">").replace(/=0;i--){ if(this._messages[i]._type==_d._type&&this._messages[i]._message==_d._message&&this._messages[i]._details==_d._details){ this._messages.splice(i,1); } } if(this._messages.length==0){ this.clear(); }else{ if(this._messages.length<100){ this.render(this._getStatusContainer()); } } } },addMessage:function(_e){ if(_e.uid&&_e.uid!=this.uid){ return; } var _f=_e.message; this._messages.push(_f); if(this._messages.length<100){ this.render(this._getStatusContainer()); } },render:function(_10){ if(_10==null){ _10=this._getStatusContainer(); } _10.innerHTML=""; if(this._messages.length>1){ this.renderHeader(_10); }else{ if(this._messages.length==1){ this.renderMessage(_10,this._messages[0],this.showDetails,0); } } if(this.showDetails&&this._messages.length>1){ for(x in this._messages){ this.renderMessage(_10,this._messages[x],this.showDetails,x); } } },renderHeader:function(_11){ if(this._messages.length>1){ var _12=2; for(var i=0;i1&&_18>=0){ _1a.style.marginLeft="10px"; } var _1b=document.createElement("img"); _1b.className="lotusIcon "+(_19._styleClass=="lotusError"?"lotusIconMsgError":_19._styleClass=="lotusWarning"?"lotusIconMsgWarning":"lotusIconMsgInfo"); _1b.src=_19._iconPath; _1b.alt=_1b.title=_19._iconAlt; _1a.appendChild(_1b); var _1c=document.createElement("span"); _1c.className="lotusAltText"; _1c.innerHTML=this._escapeHTML(_19._iconAlt+":"); _1a.appendChild(_1c); var _1d=document.createElement("div"); _1d.className="lotusMessageBody"; _1d.innerHTML=this._escapeHTML(_16._message); _1a.appendChild(_1d); if((this._messages.length>1&&_18<0)||(this._messages.length==1)){ if(_16._details&&_16._details.length>0||_18<0){ var _1e=document.createElement("a"); _1e.href="javascript:void(0)"; _1e.className="wpthemeHideShow"; _1e.role="button"; this._connections.push(i$.bindDomEvt(_1e,"onclick",i$.scope(this,this.toggleShowDetails))); var _1f=document.createElement("img"); _1f.className="lotusIcon16"; _1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; _1e.appendChild(_1f); var _20=document.createElement("span"); _20.className="lotusAltText"; _1e.appendChild(_20); }else{ _17=false; } var _21=document.createElement("a"); _21.href="javascript:void(0);"; _21.className="lotusDelete"; _21.role="button"; _21.title=wptheme.statusBar.nls.DELETE_0; this._connections.push(i$.bindDomEvt(_21,"onclick",i$.scope(this,this.clear))); var _22=document.createElement("img"); _22.alt=wptheme.statusBar.nls.DELETE_0; _22.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif"; _21.appendChild(_22); var _23=document.createElement("span"); _23.className="lotusAltText"; _23.innerHTML=this._escapeHTML(wptheme.statusBar.nls.DELETE_0); _21.appendChild(_23); if(_16._details&&_16._details.length>0||_18<0){ if(_17){ _1e.title=wptheme.statusBar.nls.HIDE_DETAILS_0; _1f.className+=" lotusIconHide"; _1f.alt=wptheme.statusBar.nls.HIDE_DETAILS_0; _20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.HIDE_DETAILS_0); }else{ _1e.title=wptheme.statusBar.nls.SHOW_DETAILS_0; _1f.className+=" lotusIconShow"; _1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0; _20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0); } _1a.appendChild(_1e); if(!this.isBidi){ _1d.style.marginRight="32px"; }else{ _1d.style.marginLeft="32px"; } } _1a.appendChild(_21); } var _24=document.createElement("div"); _24.className="wpthemeClear"; _1a.appendChild(_24); if(_16._details&&_16._details.length>0&&_17&&_18>=0){ var _25=document.createElement("div"); _25.className="wpthemeDetails"; _25.appendChild(document.createTextNode(_16._details)); _1a.appendChild(_25); } _15.appendChild(_1a); _15.setAttribute("role","alert"); _15.setAttribute("wairole","alert"); }}); if(typeof wpstatusbar==="undefined"||!wpstatusbar){ wpstatusbar=new com.ibm.widgets.StatusBarV2("ibmStatusBox"); } var _26=i$.getCookie("ibm.portal.operations.error"); if(_26){ var _27=i$.fromJson(_26); var _28="error"; if(_27.errorType){ _28=_27.errorType; }else{ if(_27.errorCode){ if(_27.errorCode=="400"){ _28="error"; } } } i$.fireEvent("/portal/status",[{message:new com.ibm.widgets.StatusMessage(_28,_27.errorMessage?_27.errorMessage:"",_27.errorDetails?_27.errorDetails:""),uid:"ibmStatusBox"}]); i$.deleteCookie("ibm.portal.operations.error"); } i$.addOnLoad(function(){ if("localStorage" in window&&window["localStorage"]!==null){ if(localStorage["com.ibm.wp.toolbar.msg.msg"]!=null){ i$.fireEvent("/message/status",[{message:new com.ibm.widgets.StatusMessage(localStorage["com.ibm.wp.toolbar.msg.type"],localStorage["com.ibm.wp.toolbar.msg.msg"],""),uid:"ibmStatusBox"}]); localStorage.removeItem("com.ibm.wp.toolbar.msg.type"); localStorage.removeItem("com.ibm.wp.toolbar.msg.msg"); } } }); })();