(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.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=false; if(typeof wptheme==="undefined"||!wptheme){ wptheme={}; } i$.mash(wptheme,{togglePageMode:function(){ return i$.modules.loadDeferred().then(function(){ var _2=i$.fromPath("com.ibm.mashups"),_3=_2?com.ibm.mashups.builder.model.Factory.getRuntimeModel():null,_4=_2?com.ibm.mashups.enabler.user.Factory.getUserModel():null,_5=document.getElementsByTagName("body")[0],_6=function(_7){ if(_2){ com.ibm.mashups.services.ServiceManager.getService("eventService").broadcastEvent("com.ibm.mashups.builder.changePageMode",_7); _3.getCurrentPage().setPageMode(_7); } i$.fireEvent("wptheme/contextMenu/invalidate/all"); }; if((!_2&&!i$.hasClass(_5,"edit-mode"))||(_2&&_4.getAnonymousMode()!=com.ibm.mashups.enabler.user.AnonymousMode.ANONYMOUS&&_3.getCurrentPage().getPageMode()!="edit")){ _6("edit"); i$.addClass(_5,"edit-mode"); if(!_1){ if(!i$.isIE&&!i$.isOpera&&_2){ window.onbeforeunload=function(){ if(com.ibm.mashups.builder.model.Factory.getRuntimeModel().getCurrentPage().isDirty()){ return com.ibm.mm.builder.coreWidgetsStrings.I_PAGE_SAVE_WARNING; } }; } _1=true; } }else{ _6("view"); i$.removeClass(_5,"edit-mode"); } },function(_8){ console.log("Error going into edit mode. Most likely a session timeout. Refreshing. "+_8); window.location.reload(); }); },mobileGoToSearch:function(id,_9,_a,_b,_c,_d,_e){ var _f=document.getElementById(_c); var _10=document.getElementById("wpthemeSearchBoxInput"); if(i$.hasClass(_f,_9)){ wptheme.toggleMobileNav(id,_9,_a,_b,_c,_d,_e); if(_10){ setTimeout(function(){ _10.focus(); },550); } }else{ if(_10){ _10.focus(); } } },mobileNavResizeBinding:null,mobileNavSideLastExpanded:[],mobileNavSideExpanded:[],mobileNavSideTogglingRoot:false,resizeMobileNavSide:function(e){ var _11=document.getElementsByTagName("header")[0]; var _12,id; _12=document.getElementById("wpthemeNavRoot"); if(_12){ _12.style.top=_11.offsetHeight+"px"; _12.style.height=(window.innerHeight-_11.offsetHeight)+"px"; } for(var i=0;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(){ 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}; },_invalidateCallback:function(){ wptheme.contextMenu.cache={}; },_initialize:function(_28){ var _29=true; var _2a=_28._contextMenu; if(wptheme.contextMenu.cache[_2a.id]||_2a._inProgress){ return i$.promise.resolved({displayMenu:_29}); } _2a._inProgress=true; i$.addListener("wptheme/contextMenu/invalidate/all",wptheme.contextMenu._invalidateCallback); var _2b,_2c,tmp=i$.createDom("div"); if(_2a._submenu){ tmp.innerHTML=_2a._subMenuTemplate.replace(/\$\{submenu-id\}/g,_2a.id+"_menu"); _28.appendChild(tmp.firstChild); _2b=i$.byId(_2a.id+"_menu"); _2c=i$.createDom("div"); _2c.innerHTML=_2a._loadingTemplate; }else{ var _2d=wptheme.contextMenu._findNodes((_2a.shadowNode)?_2a.shadowNode:_28); _2b=_2d.menu; if(!_2a._menuitemTemplate){ _2a._menuitemTemplate=i$.trim(_2b.innerHTML); } if(!_2a._loadingTemplate){ _2c=i$.createDom("div"); _2c.appendChild(_2d.loading); _2a._loadingTemplate=i$.trim(_2c.innerHTML); _2c=null; } _2c=i$.createDom("div"); _2c.innerHTML=_2a._loadingTemplate; tmp.appendChild(_2d.submenu.cloneNode(true)); if(!_2a._subMenuTemplate){ _2a._subMenuTemplate=i$.trim(tmp.innerHTML); } } while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(_2c); var _2e; if(_2a._submenu){ _2e=_2a.shadowNode; }else{ if(_2a.shadowNode){ _2e=_2a.shadowNode; }else{ _2e=wptheme.contextMenu._transformIntoAbsolutePosition(_28); } } i$.addClass((_2e)?_2e:_28,wptheme.contextMenu.css.show); i$.bindDomEvt((_2e)?_2e:_28,"onmouseleave",function(){ if(_2a._inProgress){ _29=false; } var _2f=i$.byId(_2a.id); i$.removeClass((_2a.shadowNode)?_2a.shadowNode:_2f,wptheme.contextMenu.css.show); if(!_2a.activeAction){ var _30=_2f._currentSelected; if(_30){ _30.blur(); } var _31=wptheme.contextMenu._findFocusNode(_2f); ((_31)?_31:_2f).focus(); } }); return wptheme.contextMenu._load(_2a).then(function(_32){ var _33=wptheme.contextMenu._parseData(_32).then(function(_34){ _34=wptheme.contextMenu._filterMenu(_34); if(!_34||_34.length==0){ var tmp=i$.createDom("div"); tmp.innerHTML=wptheme.contextMenu._fromTemplate(_2a._menuitemTemplate,wptheme.contextMenu.css.error,wptheme.contextMenu.nls.NO_ITEMS_0); while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(tmp); }else{ wptheme.contextMenu._buildMenu(_2a,_2b,_34); } _2a._inProgress=false; wptheme.contextMenu.cache[_2a.id]=true; return {displayMenu:_29}; }); return _33; },function(){ var tmp=i$.createDom("div"); tmp.innerHTML=wptheme.contextMenu._fromTemplate(_2a._menuitemTemplate,wptheme.contextMenu.css.error,wptheme.contextMenu.nls.ERROR_LOADING_0); while(_2b.firstChild){ _2b.removeChild(_2b.firstChild); } _2b.appendChild(tmp); _2a._inProgress=false; wptheme.contextMenu.cache[_2a.id]=true; return {displayMenu:_29}; }); },_load:function(_35){ var _36=_1.replace(/\$\{id\}/g,_35.menuId); if(_35.jsonQuery){ _36+=(_36.indexOf("?")==-1?"?":"&")+i$.toQuery(_35.jsonQuery); } return i$.xhrGet({url:_36,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_37){ return _37.data; },function(_38){ var _39=_38.xhr.getResponseHeader("Content-Type")||""; if((_39.indexOf("text/html")==0)||(_38.xhr.status==401)){ window.setTimeout(function(){ document.location.reload(); },0); } console.log("Error trying to load the context menu feed for '"+_35.menuId+"': "+_38); return null; }); },_parseData:function(_3a){ var _3b=[]; i$.each(_3a,function(_3c){ var _3d=i$.fromPath("moduleInfo.deferred",false,_3c)?i$.modules.loadDeferred():i$.promise.resolved(true); _3b.push(_3d.then(function(){ var _3e=wptheme.contextMenu._checkFunction(_3c,_3c.visibilityFn,_3c,(typeof _3c.visibility!="undefined")?_3c.visibility:true); var _3f=wptheme.contextMenu._checkFunction(_3c,_3c.enableFn,_3c,(typeof _3c.enabled!="undefined")?_3c.enabled:true); return i$.whenAll(_3e,_3f).then(function(_40){ _3c._visible=_40[0]; _3c._enabled=_40[1]; return _3c; }); })); }); return i$.whenAll.apply(i$,_3b); },_filterMenu:function(_41){ var _42=[],_43,_44={"type":"Separator"}; for(var i=_41.length-1;i>=0;i--){ _43=_41[i]; if(!_43._visible){ continue; } if(_43.type=="Separator"){ if(_44.type=="Separator"){ continue; } }else{ if(_43.type=="Header"){ if((_44.type=="Separator")||(_44.type=="Header")){ continue; } } } _44=_43; _42.unshift(_43); } while(_42.length>0&&_42[0].type=="Separator"){ _42=_42.slice(1); } return _42; },_buildMenu:function(_45,_46,_47){ var _48=document.createDocumentFragment(),tmp=i$.createDom("div"),_49,_4a,_4b,_4c; for(var i=0,l=_47.length;i/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"); } } }); })(); /** 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);});}}})();