
try{setTimeout(function(){	
// 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;
}
if(styles) {
	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);
}
}, 500);

}catch(e){console.log("Module 'wp_one_ui_303': ",e);}
try{/** Licensed Materials - Property of IBM, 5724-E76 and 5724-E77, (C) Copyright IBM Corp. 2012 - All Rights reserved.  **/
(function(){
var _1=ibmCfg.portalConfig.contentHandlerURI+((ibmCfg.portalConfig.contentHandlerURI.indexOf("?")<0)?"?":"&")+"uri=menu:${id}",_2=false,_3="Separator",_4="Header",_5=function(){
var _6=i$.hasClass(document.getElementsByTagName("body")[0],"edit-mode");
return _6;
},_7=i$.fromPath("wptheme",true),_8=i$.fromPath("wptheme.contextMenu",true),_9=i$.fromPath("wptheme.contextMenu.extension",true);
i$.mash(_7,{getWindowIDFromSkin:function(_a){
while((_a=_a.parentNode)!=null){
if(i$.hasClass(_a,"component-control")){
var m=_a&&(_a.className||"").match(/id-([\S]+)/);
var _b=m&&m[1];
return _b;
}
}
return null;
},getPortletState:function(_c){
var _d=i$.byId("portletState");
var _e={};
if(_d){
if(!_d._cache){
_d._cache=i$.fromJson(_d.innerHTML);
_d._cache._defaults={"windowState":"normal","portletMode":"view"};
}
if(_d._cache[_c]){
_e=_d._cache[_c];
}else{
_e=_d._cache._defaults;
}
}
return _e;
},isValidOp:function(_f){
if(_f.visibility===false){
return false;
}
var _10=_f.metadata||{};
switch(_f.id){
case "ibm.portal.operations.changePortletMode":
var _11=_7.getPortletState(_10.wid).portletMode!=_10.portletMode;
return _11;
case "ibm.portal.operations.changeWindowState":
var _11=_7.getPortletState(_10.wid).windowState!=_10.windowState;
return _11;
default:
}
return true;
},operation:{changeToHelpMode:function(_12){
var _13=window.location.href;
if(_12.actionUrl){
if(_12.actionUrl.indexOf("?")==0){
var _14=_13.indexOf("#");
if(_14!=-1){
var _15=_13.substring(0,_14);
var _16=_13.substring(_14);
_13=_15+(_15.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
_13+=_16;
}else{
_13+=(_13.indexOf("?")==-1?"?":"&")+_12.actionUrl.substring(1);
}
}else{
_13=_12.actionUrl;
}
}
window.open(_13,"","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;
}});
i$.mash(_8,{cache:{},css:{focus:"wpthemeMenuFocus",disabled:"wpthemeMenuDisabled",show:"wpthemeMenuShow",error:"wpthemeMenuError",menuTemplate:"wpthemeTemplateMenu",submenuTemplate:"wpthemeTemplateSubmenu",loadingTemplate:"wpthemeTemplateLoading",complementaryContent:"wpthemeComplementaryContent",menuOverlay:"wpthemeMenuOverlay",alignLeft:"wpthemeMenuLeft",alignRight:"wpthemeMenuRight",noTouch:"wpthemeNoTouch"},init:function(){
var _17;
if(arguments.length==1){
_17=arguments[0];
}else{
_17={node:arguments[0],menuId:arguments[1],jsonQuery:(arguments.length>2)?arguments[2]:null};
}
this.init2(_17);
},init2:function(_18){
var _19=_18.node;
_18.params=_18.params||{};
var _1a=_18.params.autoScroll!==false;
_19._contextMenu=_19._contextMenu||{};
var _1b=_19._contextMenu;
_1b.id=_19._contextMenu.id||_19.getAttribute("id")||Math.round(Math.random()*1000000000);
_19.setAttribute("id",_1b.id);
_1b.menuId=_18.menuId;
_1b.jsonQuery=_18.jsonQuery;
_1b.templateId=_18.params.templateId||null;
_1b.alignLeft=(_18.params.alignment=="left")||false;
_1b.alignRight=(_18.params.alignment=="right")||false;
_1b.closeFn=function(_1c,evt){
var fn=_18.onClose;
if(fn){
if(i$.isFunction(fn)){
try{
fn();
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
_7.contextMenu.close(_1b,_1c,evt);
};
var _1d=function(_1e){
if(_1e.displayMenu){
_1b.activeAction=false;
i$.fireEvent("wptheme/contextMenu/close/all");
var _1f=i$.byId(_1b.id);
if(!_1b._submenu){
i$.fireEvent("wptheme/contextMenu/close/all");
_7.contextMenu._updateAbsolutePosition(_1f);
}
var _20=_7.contextMenu._adjustScreenPositionStart();
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_1f,_21.show);
i$.addClass((_1b.shadowNode)?_1b.shadowNode:_1f,("ontouchstart" in document)?"":_21.noTouch);
if(_1a){
_7.contextMenu._adjustScreenPositionEnd(_20);
}
var _22=_1f._firstSelectable;
if(_22){
_22.focus();
_1f._currentSelected=_22;
}
}
};
_7.contextMenu._initialize(_19).then(_1d,_1d);
_19=null;
},initSubmenu:function(_23,_24,_25){
_23._contextMenu=_23._contextMenu||{};
var _26=_23._contextMenu;
_26._submenu=true;
_26._menuitemTemplate=_25._menuitemTemplate;
_26._subMenuTemplate=_25._subMenuTemplate;
_26._loadingTemplate=_25._loadingTemplate;
_7.contextMenu.init(_23,_24,_25.jsonQuery);
},_findFocusNode:function(_27){
var _28,i,_29;
var _2a=function(_2b,_2c){
var l=_2b.childNodes.length;
for(i=0;i<l;i++){
if(_28){
break;
}
_29=_2b.childNodes[i];
if(i$.hasClass(_29,_21.focus)){
_28=_29;
break;
}
if(_29.childNodes){
i=_2a(_29,i);
}
}
return _2c;
};
if(i$.hasClass(_27,_21.focus)){
return _27;
}
_2a(_27);
return _28;
},_findNodes:function(_2d,_2e){
var _2f,_30,_31,_32,i,_33;
var _34=function(_35,_36){
for(i=_35.childNodes.length-1;i>=0;i--){
_33=_35.childNodes[i];
if(i$.hasClass(_33,_21.menuTemplate)){
_30=_33;
continue;
}
if(i$.hasClass(_33,_21.submenuTemplate)){
_31=_33;
continue;
}
if(i$.hasClass(_33,_21.loadingTemplate)){
_32=_33;
continue;
}
if(_33.childNodes){
i=_34(_33,i);
}
}
return _36;
};
if(_2e&&!_2d._contextMenu.menuNode){
_2f=document.getElementById(_2e);
if(_2f){
_2f=_2f.cloneNode(true);
_2d.appendChild(_2f);
}
}
_34(_2d);
if(!_30){
_2f=document.getElementById("simpleMenuTemplate");
if(_2f){
_2f=_2f.cloneNode(true);
_2d.appendChild(_2f);
_34(_2d);
}
}
var _37={"root":_2f,"menu":_30,"submenu":_31,"loading":_32};
return _37;
},_findNextNodeByKeyCode:function(_38,_39){
var _3a=_38.parentNode;
var _3b,_3c,_3d,i,j;
var l=_3a.childNodes.length;
for(i=0;i<l;i++){
if(_3a.childNodes[i]==_38){
break;
}
}
for(j=i+1;j<l;j++){
_3b=_3a.childNodes[j];
_3c=_3b.textContent||_3b.innerText;
if(_3b._menuitem&&_3b._menuitem.type!=_4&&_3b._menuitem.type!=_3&&_3c&&_3c.charAt(0).toUpperCase().charCodeAt(0)==_39){
_3d=_3a.childNodes[j];
return _3d;
}
}
for(j=0;j<i;j++){
_3b=_3a.childNodes[j];
_3c=_3b.textContent||_3b.innerText;
if(_3b._menuitem&&_3b._menuitem.type!=_4&&_3b._menuitem.type!=_3&&_3c&&_3c.charAt(0).toUpperCase().charCodeAt(0)==_39){
_3d=_3a.childNodes[j];
return _3d;
}
}
return null;
},_invalidateCallback:function(){
_7.contextMenu.cache={};
},_initialize:function(_3e){
var _3f=true;
var _40=_3e._contextMenu;
if(_7.contextMenu.cache[_40.id]||_40._inProgress){
return i$.promise.resolved({displayMenu:_3f});
}
_40._inProgress=true;
i$.addListener("wptheme/contextMenu/invalidate/all",_7.contextMenu._invalidateCallback);
var _41,_42,tmp=i$.createDom("div"),_43;
if(_40._submenu){
tmp.innerHTML=_40._subMenuTemplate.replace(/\$\{submenu-id\}/g,_40.id+"_menu");
_3e.appendChild(tmp.firstChild);
_41=i$.byId(_40.id+"_menu");
_42=i$.createDom("div");
_42.innerHTML=_40._loadingTemplate;
}else{
var _44=_7.contextMenu._findNodes((_40.shadowNode)?_40.shadowNode:_3e,_3e._contextMenu.templateId);
_41=_44.menu;
_43=_44.root;
if(_43){
if(_40.alignLeft||_40.alignRight){
i$.removeClass(_43,_21.alignLeft);
i$.removeClass(_43,_21.alignRight);
if(_40.alignLeft){
i$.addClass(_43,_21.alignLeft);
}else{
i$.addClass(_43,_21.alignRight);
}
}
_43.removeAttribute("id");
}
if(!_40._menuitemTemplate){
_40._menuitemTemplate=i$.trim(_41.innerHTML);
}
if(!_40._loadingTemplate){
_42=i$.createDom("div");
_42.appendChild(_44.loading);
_40._loadingTemplate=i$.trim(_42.innerHTML);
_40._loadingTemplate=_40._loadingTemplate.replace(/\$\{loading\}/g,_7.contextMenu.nls.LOADING_0);
_42=null;
}
_42=i$.createDom("div");
_42.innerHTML=_40._loadingTemplate;
if(_44.submenu){
tmp.appendChild(_44.submenu.cloneNode(true));
if(!_40._subMenuTemplate){
_40._subMenuTemplate=i$.trim(tmp.innerHTML);
}
}
}
while(_41.firstChild){
_41.removeChild(_41.firstChild);
}
_41.appendChild(_42);
var _45;
if(_40._submenu){
_45=_40.shadowNode;
}else{
if(_40.shadowNode){
_45=_40.shadowNode;
}else{
_45=_7.contextMenu._transformIntoAbsolutePosition(_3e);
}
}
i$.addClass((_45)?_45:_3e,_21.show);
i$.bindDomEvt((_45)?_45:_3e,"onmouseleave",function(){
if(_40._inProgress){
_3f=false;
}
_40.closeFn(false);
});
var _46=_7.contextMenu._load(_40).then(function(_47){
var _48=_7.contextMenu._parseData(_47).then(function(_49){
_49=_7.contextMenu._filterMenu(_49);
if(!_49||_49.length==0){
_49=[{type:"Menuitem",_enabled:true,itemClass:_21.error,title:{value:_7.contextMenu.nls.NO_ITEMS_0,lang:"en"}}];
}
_7.contextMenu._buildMenu(_40,_41,_49);
_40._inProgress=false;
_7.contextMenu.cache[_40.id]=true;
return {displayMenu:_3f};
});
return _48;
},function(){
var tmp=i$.createDom("div");
tmp.innerHTML=_7.contextMenu._fromTemplate(_40._menuitemTemplate,_21.error,_7.contextMenu.nls.ERROR_LOADING_0);
while(_41.firstChild){
_41.removeChild(_41.firstChild);
}
_41.appendChild(tmp);
_40._inProgress=false;
_7.contextMenu.cache[_40.id]=true;
return {displayMenu:_3f};
});
return _46;
},close:function(_4a,_4b,evt){
var _4c=(evt)?evt.target||evt.srcElement:null;
var _4d=i$.byId(_4a.id);
i$.removeClass((_4a.shadowNode)?_4a.shadowNode:_4d,_21.show);
if(!_4a.activeAction){
var _4e=_4d._currentSelected;
if(_4e){
_4e.blur();
}
var _4f=_7.contextMenu._findFocusNode(_4d);
window.setTimeout(function(){
((_4f)?_4f:_4d).focus();
if(_4b){
window.setTimeout(function(){
_7.contextMenu._applyAction(_4c);
},0);
}
},0);
}
},_load:function(_50){
var _51=_1.replace(/\$\{id\}/g,_50.menuId);
if(_50.jsonQuery){
_51+=(_51.indexOf("?")==-1?"?":"&")+i$.toQuery(_50.jsonQuery);
}
var _52=i$.xhrGet({url:_51,headers:{"X-IBM-XHR":"true"},responseType:"json"}).then(function(_53){
return _53.data;
},function(_54){
var _55=_54.xhr.getResponseHeader("Content-Type")||"";
if((_55.indexOf("text/html")==0)||(_54.xhr.status==401)){
window.setTimeout(function(){
document.location.reload();
},0);
}
console.log("Error trying to load the context menu feed for '"+_50.menuId+"': "+_54);
return null;
});
return _52;
},_parseData:function(_56){
var _57=[];
i$.each(_56,function(_58){
var _59=i$.fromPath("moduleInfo.deferred",false,_58)?i$.modules.loadDeferred():i$.promise.resolved(true);
_57.push(_59.then(function(){
var _5a=_7.contextMenu._checkFunction(_58,_58.visibilityFn,_58,(typeof _58.visibility!="undefined")?_58.visibility:true);
var _5b=_7.contextMenu._checkFunction(_58,_58.enableFn,_58,(typeof _58.enabled!="undefined")?_58.enabled:true);
return i$.whenAll(_5a,_5b).then(function(_5c){
_58._visible=_5c[0];
_58._enabled=_5c[1];
return _58;
});
}));
});
var _5d=i$.whenAll.apply(i$,_57);
return _5d;
},_filterMenu:function(_5e){
var _5f=[],_60,_61={"type":_3};
for(var i=_5e.length-1;i>=0;i--){
_60=_5e[i];
if(!_60._visible){
continue;
}
if(_60.type==_3){
if(_61.type==_3){
continue;
}
}else{
if(_60.type==_4){
if((_61.type==_3)||(_61.type==_4)){
continue;
}
}
}
_61=_60;
_5f.unshift(_60);
}
while(_5f.length>0&&_5f[0].type==_3){
_5f=_5f.slice(1);
}
return _5f;
},_buildMenu:function(_62,_63,_64){
var _65=document.createDocumentFragment(),tmp=i$.createDom("div"),_66,_67,_68,_69,_6a,_6b,_6c=i$.fromPath("wptheme.contextMenu.extension.badge");
for(var i=0,l=_64.length;i<l;i++){
_66=_64[i];
tmp.innerHTML=_7.contextMenu._fromTemplate(_62._menuitemTemplate,_66,_6c);
while(_67=tmp.firstChild){
if(_67.nodeType==1){
if(_66.type=="Submenu"){
_67._menuitem=_66;
_67._jsonData=_62;
i$.bindDomEvt(_67,"onmouseover",_7.contextMenu._applySubmenu);
}else{
if(_66._enabled){
if(!_6a){
_6a=_67;
}
_6b=_67;
_67.links={previous:_68,next:null,sub:null};
if(_68){
_68.links.next=_67;
}
if(!_69&&_66.type!=_4){
_69=_67;
}
_67._menuitem=_66;
_68=_67;
i$.bindDomEvt(_67,"onclick",function(evt){
_7.contextMenu._stopEventPropagation(evt);
_62.closeFn(true,evt);
});
i$.bindDomEvt(_67,"onkeydown",function(evt){
return _7.contextMenu._applyKeyAction(evt);
});
i$.bindDomEvt(_67,"onmouseover",function(evt){
return _7.contextMenu._applyFocusAction(evt);
});
}
}
if((_66.title)&&(i$.isRTL(_66.title.lang))){
i$.addClass(_67,"rtl");
_67.setAttribute("dir","RTL");
}
if(_66.markupId){
_67.setAttribute("id",_66.markupId);
}
if(_6c){
_6c.injectBadge(_67);
}
}
_65.appendChild(_67);
}
}
_6a.links.previous=_6b;
_6b.links.next=_6a;
while(_63.firstChild){
_63.removeChild(_63.firstChild);
}
_63.appendChild(_65);
i$.byId(_62.id)._firstSelectable=_69;
i$.byId(_62.id)._currentSelected=null;
},_fromTemplate:function(_6d,_6e,_6f){
var _70,_71,_72,_73="";
if(typeof (_6e)=="string"){
_70=_6e;
_71=_6f;
_72="";
}else{
_70="type"+_6e.type;
if(_6e.itemClass){
_70+=" "+_6e.itemClass;
}
if(!_6e._enabled){
_70+=" "+_21.disabled;
}
_71=(_6e.title)?_6e.title.value:"";
_72=((_6e.description)?_6e.description.value:"");
if(_6f){
_73=_6f.getAnchor(_6e);
}
}
var _74=_6d.replace(/\$\{title\}/g,_71).replace(/\$\{badge\}/g,_73).replace(/"\$\{css-class\}"/g,"\""+(_70)+"\"").replace(/\$\{css-class\}/g,"\""+(_70)+"\"").replace(/"\$\{description\}"/g,"\""+_72+"\"").replace(/\$\{description\}/g,"\""+_72+"\"");
return _74;
},_checkFunction:function(_75,fn,arg,_76){
if(fn){
if(!_75.fromPath){
_75.fromPath={};
}
var _77=i$.fromPath("wptheme.contextMenu.extension.menuItemScope"),_78=_77?_77.getWindow(_75):null,_79=_75.fromPath[fn]||i$.fromPath(fn,false,_78);
_75.fromPath[fn]=_79;
if(i$.isFunction(_79)){
try{
return _79(arg);
}
catch(exc){
console.log("error executing function "+fn+" - "+exc);
}
}
}
return i$.promise.resolved(_76);
},_stopEventPropagation:function(evt){
if(evt){
if(evt.stopPropagation){
evt.stopPropagation();
}else{
evt.cancelBubble=true;
}
}
},_applyKeyAction:function(evt){
var _7a=evt.target||evt.srcElement;
var _7b=_7a;
var _7c=null;
while(!_7c){
_7b=_7b.parentNode;
if(_7b._contextMenu){
_7c=_7b;
}
}
var _7d=_7c._contextMenu;
switch(evt.keyCode){
case 32:
if(evt.preventDefault){
evt.preventDefault();
}
case 13:
_7.contextMenu._stopEventPropagation(evt);
_7d.closeFn(true,evt);
return false;
case 9:
case 27:
_7d.closeFn(false);
break;
case 40:
_7.contextMenu._moveFocus(evt,_7d,_7a,"next");
return false;
case 38:
_7.contextMenu._moveFocus(evt,_7d,_7a,"previous");
return false;
}
var _7e=_7.contextMenu._findNextNodeByKeyCode(_7a,evt.keyCode);
if(_7e){
_7e.focus();
return false;
}
return true;
},_moveFocus:function(evt,_7f,_80,_81){
var _82=_80.links[_81];
if(_82&&(_82._menuitem.type==_4||_82._menuitem.type==_3)){
var _83=false;
var _84=null;
while(!_84&&!_83){
_82=_82.links[_81];
if(!_82){
_83=true;
}else{
if(_82._menuitem.type!=_4&&_82._menuitem.type!=_3){
_84=_82;
}
}
}
_82=_84;
}
if(_82){
var _85=i$.byId(_7f.id)._currentSelected;
if(_85){
_85.blur();
}
i$.byId(_7f.id)._currentSelected=_82;
_82.focus();
}
if(evt.preventDefault){
evt.preventDefault();
}
},_applyFocusAction:function(evt){
var _86=evt.target||evt.srcElement;
var _87=_86;
var _88=null;
var _89=_86._menuitem;
while(!_88){
_87=_87.parentNode;
if(_87._contextMenu){
_88=_87;
}
if(!_89){
_86=_86.parentNode;
_89=_86._menuitem;
}
}
var _8a=_88._contextMenu;
var _8b=i$.byId(_8a.id)._currentSelected;
if(_8b!=_86){
if(_8b){
_8b.blur();
i$.byId(_8a.id)._currentSelected=null;
}
if(_89.type!=_4&&_89.type!=_3){
i$.byId(_8a.id)._currentSelected=_86;
_86.focus();
}
}
return false;
},_applyAction:function(_8c){
var _8d=_8c;
var _8e=null;
var _8f=_8c._menuitem;
while(!_8e){
_8d=_8d.parentNode;
if(_8d._contextMenu){
_8e=_8d;
}
if(!_8f){
_8c=_8c.parentNode;
_8f=_8c._menuitem;
}
}
var _90=_8e._contextMenu;
_90.activeAction=true;
var p=_7.contextMenu._checkFunction(_8f,_8f.actionFn,_8f,_8f.actionUrl);
if(p){
p.then(function(_91){
if(_91&&i$.isString(_91)){
var _92=i$.fromPath("wptheme.contextMenu.extension.actionUrlTarget");
var _93=(_92)?_92.getWindow(_8f):window;
var _94=_8f.actionHttpMethod||"GET";
if(_94!="GET"){
var _95=_93.i$.createDom("form");
_95.setAttribute("action",_91);
_94=_94.toLowerCase();
switch(_94){
case "get":
_95.setAttribute("method","GET");
break;
case "delete":
case "put":
var _96=_93.i$.createDom("input",{"type":"hidden","name":"x-method-override","value":_94.toUpperCase()});
_95.appendChild(_96);
case "post":
_95.setAttribute("method","POST");
_95.setAttribute("enctype","multipart/form-data");
break;
default:
}
_93.i$.byId(_21.complementaryContent).appendChild(_95);
_95.submit();
}else{
var _97=_93.i$.createDom("a");
_97.setAttribute("style","display:none");
_97.setAttribute("href",_91);
_93.i$.byId(_21.complementaryContent).appendChild(_97);
_97.click();
}
}
});
}
},_applySubmenu:function(evt){
var _98=evt.target||evt.srcElement;
if(!_98._jsonData){
_98=_98.parentNode;
}
if(_98._jsonData){
_98.setAttribute("id",_98._jsonData.id+"_"+_98._menuitem.id);
_7.contextMenu.initSubmenu(_98,_98._menuitem.id,_98._jsonData);
}
},_transformIntoAbsolutePosition:function(_99){
var _9a=_99.childNodes,_9b,i=0,_9c=false;
while(_9b=_9a[i++]){
if(i$.hasClass(_9b,_21.alignRight)){
_9c=true;
break;
}else{
if(i$.hasClass(_9b,_21.alignLeft)){
break;
}
}
}
var _9d=i$.createDom("div");
_9d.className=_99.className;
_9d.appendChild(_9b);
i$.byId(_21.complementaryContent).appendChild(_9d);
_9d._contextMenu=_99._contextMenu;
_99._contextMenu.shadowNode=_9d;
_99._contextMenu._menuIsRight=_9c;
var _9e=i$.createDom("span");
_9d.appendChild(_9e);
i$.addClass(_9e,_21.menuOverlay);
_99._contextMenu.overlayNode=_9e;
_99._contextMenu.menuNode=_9b;
_7.contextMenu._updateAbsolutePosition(_99);
return _9d;
},_updateAbsolutePosition:function(_9f){
var _a0=_9f._contextMenu._menuIsRight;
var _a1=_9f._contextMenu.menuNode;
var _a2=_9f._contextMenu.overlayNode;
var _a3=_7.contextMenu._findPos(_9f);
var _a4=2;
_a2.style.left=(_a3[0]-_a4)+"px";
_a2.style.top=(_a3[1]-_a4)+"px";
_a2.style.width=(_9f.offsetWidth+(2*_a4))+"px";
_a2.style.height=(_9f.offsetHeight+(2*_a4))+"px";
var dir=document.getElementsByTagName("html")[0].getAttribute("dir");
if(dir!=null){
dir=dir.toLowerCase();
}else{
dir="";
}
if(!(dir=="rtl")){
_a1.style.left=((_a0)?_a3[0]+_9f.offsetWidth:_a3[0])+"px";
}else{
_a1.style.left=((_a0)?_a3[0]+_9f.offsetWidth-_9f.scrollWidth:_a3[0]+_9f.scrollWidth)+"px";
}
_a1.style.top=_a3[1]+"px";
},_adjustScreenPositionStart:function(){
return document.documentElement.scrollHeight;
},_adjustScreenPositionEnd:function(_a5){
var _a6=document.documentElement.scrollHeight;
if(_a5!=_a6){
document.documentElement.scrollTop=document.documentElement.scrollHeight;
}
},_findPos:function(obj){
var _a7=curtop=0;
if(obj.offsetParent){
do{
_a7+=obj.offsetLeft;
curtop+=obj.offsetTop;
}while(obj=obj.offsetParent);
var _a8=[_a7,curtop];
return _a8;
}
},});
var _21=_7.contextMenu.css;
})();


}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(){
    i$.merge({
	"NO_ITEMS_0":"No items to display",
	"ERROR_LOADING_0":"Error happened while loading the menu.",
	"LOADING_0":"Loading..."
},i$.fromPath("wptheme.contextMenu.nls",true));
})();
}catch(e){console.log("Module 'wp_simple_contextmenu_js': ",e);}
try{(function(){
if(!i$.isIE){
i$.addOnLoad(function(){
var _1=document.createElement("div");
_1.style.cssText="border:1px solid;border-color:red green;position:absolute;height:5px;top:-999px;background-image:url(\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\");";
document.body.appendChild(_1);
var _2=null;
try{
_2=document.defaultView.getComputedStyle(_1,"");
}
catch(e){
_2=_1.currentStyle;
}
var _3=_2.backgroundImage;
if((_2.borderTopColor==_2.borderRightColor)||(_3!=null&&(_3=="none"||_3=="url(invalid-url:)"))){
document.getElementsByTagName("body")[0].className+=" wpthemeImagesOff";
}
document.body.removeChild(_1);
});
}
})();


}catch(e){console.log("Module 'wp_theme_high_contrast': ",e);}
try{(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));
})();
}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(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.blankGifIcon="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";
this._statusTypesMap={"error":new com.ibm.widgets.StatusType(0,"wpthemeError",this.blankGifIcon,wptheme.statusBar.nls.ERROR_0),"warning":new com.ibm.widgets.StatusType(1,"wpthemeWarning",this.blankGifIcon,wptheme.statusBar.nls.WARNING_0),"info":new com.ibm.widgets.StatusType(2,"wpthemeInfo",this.blankGifIcon,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,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;");
}
return _9;
},setShowDetails:function(_a){
this.showDetails=_a;
},toggleShowDetails:function(){
this.setShowDetails(!this.showDetails);
this.render();
},clear:function(){
var _b=this._getStatusContainer();
if(!!_b){
_b.innerHTML="";
_b.setAttribute("role","");
_b.setAttribute("wairole","");
}
this._messages.length=0;
},clearMessage:function(_c){
if(_c.uid&&_c.uid!=this.uid){
return;
}
var _d=_c.message;
if(typeof _d==="undefined"||_d===null){
this.clear();
}else{
for(var i=this._messages.length-1;i>=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;i<this._messages.length;i++){
_12=Math.min(_12,this._statusTypesMap[this._messages[i]._type]._id);
}
var _13="info";
for(x in this._statusTypesMap){
if(this._statusTypesMap[x]._id==_12){
_13=x;
break;
}
}
var _14=new com.ibm.widgets.StatusMessage(_13,wptheme.statusBar.nls.MESSAGES_AVAILABLE_1.replace("${0}",this._messages.length),"");
this.renderMessage(_11,_14,this.showDetails,-1);
}
},renderMessage:function(_15,_16,_17,_18){
var _19=this._statusTypesMap[_16._type];
var _1a=document.createElement("div");
_1a.className="wpthemeMessage "+_19._styleClass;
if(this._messages.length>1&&_18>=0){
_1a.className+=" wpthemeMoreMsg";
}
var _1b=document.createElement("img");
_1b.className="wpthemeMsgIcon "+(_19._styleClass=="wpthemeError"?"wpthemeMsgIconError":_19._styleClass=="wpthemeWarning"?"wpthemeMsgIconWarning":"wpthemeMsgIconInfo");
_1b.src=_19._iconPath;
_1b.alt=_1b.title=_19._iconAlt;
_1a.appendChild(_1b);
var _1c=document.createElement("span");
_1c.className="wpthemeAltText";
_1c.innerHTML=this._escapeHTML(_19._iconAlt+":");
_1a.appendChild(_1c);
var _1d=document.createElement("div");
_1d.className="wpthemeMessageBody";
_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="wpthemeMsgIcon16";
_1f.src=ibmCfg.themeConfig.modulesWebAppBaseURI+"/themes/html/dynamicSpots/icons/blank.gif";
_1e.appendChild(_1f);
var _20=document.createElement("span");
_20.className="wpthemeAltText";
_1e.appendChild(_20);
}else{
_17=false;
}
var _21=document.createElement("a");
_21.href="javascript:void(0);";
_21.className="wpthemeDelete";
_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="wpthemeAltText";
_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+=" wpthemeMsgIconHide";
_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+=" wpthemeMsgIconShow";
_1f.alt=wptheme.statusBar.nls.SHOW_DETAILS_0;
_20.innerHTML=this._escapeHTML(wptheme.statusBar.nls.SHOW_DETAILS_0);
}
_1a.appendChild(_1e);
}
_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(decodeURIComponent(_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");
}
}
});
})();


}catch(e){console.log("Module 'wp_status_bar': ",e);}
try{(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";
}
}
})();


}catch(e){console.log("Module 'wp_ic4_wai_resources': ",e);}
try{(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);
}
}
}
}
});
}
})();


}catch(e){console.log("Module 'wp_theme_skin_region': ",e);}