
try{/* (C) Copyright IBM Corp. 2007  All Rights Reserved.                */
/**
 * This is the JS file for the common semantic tagging service
 */















 



 
var STSPG = {
	lang: "sr",
	bidi: "ltr",
	service: "",
    contextUrl: "/wps/semanticTag",
	wpsBaseURL: "/wps",
	externalServiceEntries:'',
	isDynamicLoading : false,
	isC2AHandlerRequired : true,
	isPersonCardHandlerRequired : true,
	isActionHandlerRequired : true,
	isParsingRequired : true,
	newSametimeCommunityServer:true
};

STSPG.service={"entries":[{"id":"com.ibm.portal.action","test":"(globalTestNode.className.match(STSP.actionRE))","js":"","classnames":[".com\\.ibm\\.portal\\.action"]},{"id":"hcard","test":"(globalTestNode.className.match(STSP.hcardRE))","js":"/javascript/semanticTagPerson.js","classnames":[".vcard"]},{"id":"sametime","test":"id:hcard","js":"/javascript/semanticTagAwareness.js","classnames":[]},{"id":"c2a","test":"(globalTestNode.className.match(/(^|\\s)c2a:(source|target)(\\s|$)/)) ","js":"/javascript/semanticTagC2A.js","classnames":[".c2a\\:source",".c2a\\:target"]}]};
var externalEntries;
try{
if(STSPG.externalServiceEntries!=null&&STSPG.externalServiceEntries.length>0){
externalEntries=eval(" ("+STSPG.externalServiceEntries+")");
STSPG.service.entries=STSPG.service.entries.concat(externalEntries);
}else{
}
}
catch(e){
}


var STSP={version:"1.0",lang:STSPG.lang,bidi:STSPG.bidi,tagScope:["*"],service:STSPG.service,scripts:new Array(),actionRegistry:null,refcntAttr:"semtag_refcnt",hoverIdPrefix:"semtag_hover_",hoverIdx:0,liveElemPrefix:"semtag_live_",reMap:new Array(),actionRE:new RegExp("(^|\\s)com.ibm.portal.action(\\s|$)"),hcardRE:new RegExp("(^|\\s)vcard(\\s|$)"),specialMenuProviders:new Array(),parseElem:null,isEnablerObjectAvailable:(typeof com!=="undefined")&&(typeof com.ibm!=="undefined")&&(typeof com.ibm.mashups!=="undefined"),svcEntryPersonCard:null,isSizzleAvailable:((typeof i$!=="undefined")&&(typeof i$.query==="function")),DELAY:10,isMobile:navigator.userAgent.match(/(Android|BlackBerry|iPad|iPhone|iPod|IEMobile|Opera Mini)/ig)?true:false,init:function(_1){
var _2=STSP.DELAY;
if(STSPG.isParsingRequired===false){
STSP.svcEntryPersonCard=STSP.service.entries[1];
if(!STSP.svcEntryPersonCard.nodes){
STSP.svcEntryPersonCard.nodes=[];
}
}
var _3=STSP.isEnablerObjectAvailable;
STSP.isSizzleAvailable=((typeof i$!=="undefined")&&(typeof i$.query==="function"));
if(_3===false){
STSP.parseElem=STSP.getElementFromEvent(_1);
window.setTimeout(STSP.parseDom,STSP.DELAY);
}else{
var _4=STSP.service.entries;
var _5=_4?_4.length:0;
if(STSPG.isDynamicLoading){
for(var k=0;k<_4.length;k++){
var _6=_4[k];
if(_6.id==="hcard"){
STSP.loadScript("/javascript/attributes.js");
STSP.loadScript("/javascript/semanticTagMenu.js");
}
STSP.loadScript(_6.js);
}
}
}
if(STSPG.isActionHandlerRequired){
STSP.setCallback("com.ibm.portal.action",STSP.processActions);
}
if(!STSPG.isDynamicLoading&&STSPG.isPersonCardHandlerRequired&&(typeof SemTagMenu==="object")){
window.setTimeout(SemTagMenu.init,_2);
}
},loadConnScript:function(){
var _7=document.createElement("script");
var _8=STSP.connUrl;
var _9=_8;
_9=_8+"/profiles/portalJS/portalBizCard.js";
_9+=(_9.indexOf("?")==-1)?"?":"&";
_9+="lang="+STSP.lang;
_7.src=_9;
try{
document.body.insertBefore(_7,document.body.firstChild);
}
catch(e){
alert("Svc.loadConnScript caught: "+e);
}
},watchEvent:function(_a,_b,_c,_d){
try{
if(_a.addEventListener){
_a.addEventListener(_b,_c,_d);
}else{
if(_a.attachEvent){
_a.attachEvent("on"+_b,_c);
}
}
}
catch(e){
}
},clearEventWatch:function(_e,_f,_10,_11){
try{
if(_e.removeEventListener){
_e.removeEventListener(_f,_10,_11);
}else{
if(_e.detachEvent){
_e.detachEvent("on"+_f,_10);
}
}
}
catch(e){
}
},parseDomUsingMashupHandler:function(_12,_13){
if(STSP.isSizzleAvailable===true){
}
if(STSPG.isParsingRequired===false){
return false;
}
var _14=STSP.getService(_13);
if(_13==="com.ibm.portal.action"){
STSP.setCallback(_13,STSP.processActions);
}
if(!_14.nodes){
_14.nodes=[];
}
for(var len=0;len<_12.length;len++){
_14.nodes.push(_12[len]);
}
if(_14.callback){
_14.callback.call(this);
}
STSP.loadScript(_14.js);
try{
var _15=STSP.service.entries;
for(var k=0;k<_15.length;k++){
var _16=_15[k];
var _17=false;
if(_16.id===_14.id){
continue;
}
if(_16.test&&_16.test.match(/^id:/)){
var _18=_16.test.substr(3);
if(_18!=_14.id){
continue;
}
var _12=STSP.getNodes(_18);
if(_12&&0<_12.length){
_17=true;
}
}
if(_17&&STSPG.isDynamicLoading){
STSP.loadScript(_16.js);
}
if(_16.callback){
_16.callback.call(this);
}
}
}
catch(e){
}
},parseDom:function(_19,_1a){
if(STSPG.isParsingRequired===false){
return false;
}
if(!_1a&&_19){
_1a=STSP.getElementFromEvent(_19);
}
if(!_1a&&STSP.parseElem){
_1a=STSP.parseElem;
}else{
if(!_1a){
_1a=document;
}else{
if(typeof _1a=="string"){
_1a=document.getElementById(_1a);
}
}
}
var _1b=STSP.service.entries;
for(var j=0;j<_1b.length;j++){
var _1c=_1b[j];
if(!_1c.nodes){
_1c.nodes=[];
}else{
if(_1a==document){
while(0<_1c.nodes.length){
_1c.nodes.pop();
}
}
}
}
var _1d=new Date().getTime();
if(STSP.isSizzleAvailable===false){
STSP.traverseNodes(_1a);
var _1e=new Date().getTime();
}else{
_1d=new Date().getTime();
for(var k=0;k<_1b.length;k++){
var _1c=_1b[k];
if(_1c.classnames==null||_1c.classnames==="undefined"||_1c.classnames.length<1){
continue;
}
var _1f=typeof _1c.classnames;
if(typeof _1c.classnames==="string"){
continue;
}
var _20=_1c.classnames.join(",");
var _21;
_21=i$.query(_1c.classnames.join(","),_1a,_1c.nodes);
if(_1c.nodes.length!=_21.length){
}
}
_1e=new Date().getTime();
var _22=_1e-_1d;
}
for(var k=0;k<_1b.length;k++){
var _1c=_1b[k];
var _23=false;
if(0<_1c.nodes.length){
_23=true;
}else{
if(_1c.test&&_1c.test.match(/^id:/)){
var _24=_1c.test.substr(3);
var _25=STSP.getNodes(_24);
if(_25&&0<_25.length){
_23=true;
}
}
}
if(_23){
if(STSPG.isDynamicLoading){
if(_1c.id=="hcard"){
STSP.loadScript("/javascript/attributes.js");
STSP.loadScript("/javascript/semanticTagMenu.js");
}
var _26=typeof _1c.js;
if(typeof _1c.js==="string"){
STSP.loadScript(_1c.js);
}
}
}
if(_1c.callback){
_1c.callback.call(_1c.nodes);
}
}
STSP.parseElem=null;
},traverseNodes:function(_27){
STSP.traverse_children(_27);
},traverse_tagscope:function(_28){
var _29=STSP.service.entries;
var _2a=_28.getElementsByTagName(STSP.tagScope);
for(var i=0;i<_2a.length;i++){
var _28=_2a[i];
for(var j=0;j<_29.length;j++){
var _2b=_29[j];
if(!_2b.nodes){
_2b.nodes=new Array();
}
if(eval(_2b.test)){
_2b.nodes.push(_28);
}
}
}
},traverse_children:function(_2c){
STSP.testNode(_2c);
var _2d=(_2c&&_2c.childNodes)?_2c.childNodes:null;
if(STSPG.isPersonCardHandlerRequired&&_2c&&_2c.tagName&&_2c.tagName=="IFRAME"){
try{
if(typeof ActiveXObject!="undefined"){
var _2e=document.frames[_2c.id].document;
if(_2e){
_2d=_2e.childNodes;
}
}else{
if(_2c.contentDocument&&_2c.contentDocument.childNodes){
_2d=_2c.contentDocument.childNodes;
}
}
}
catch(e){
_2d=null;
}
var _2f=_2d?_2d.length:"is null";
if(_2d&&0<_2d.length){
var _30=SemTagMenu.includeCSS(_2d[0].parentNode);
if(_30){
STSP.watchEvent(_2c,"load",STSP.parseDom,false);
SemTagMenu.registerMenuEventHandlers(_2d[0].parentNode);
}
}
}
if(_2d==null||_2d=="undefined"){
return;
}
for(var i=0;i<_2d.length;i++){
STSP.traverse_children(_2d[i]);
}
},testNode:function(_31){
globalTestNode=_31;
if(_31==null||_31.className==null||_31.className=="undefined"||_31.tagName==null||_31.tagName=="undefined"){
return;
}
if(typeof _31.className!=="string"){
return;
}
var _32=STSP.service.entries;
for(var j=0;j<_32.length;j++){
var _33=_32[j];
if(_33.test&&!_33.test.match(/^id:/)&&eval(_33.test)){
if(!_31.alreadyadded){
_31.alreadyadded=true;
_33.nodes.push(_31);
}
}
}
},getService:function(_34){
var _35=STSP.service.entries;
for(var i=0;i<_35.length;i++){
var _36=_35[i];
if(_36.id==_34){
return _36;
}
}
},setSemanticTagValue:function(_37,_38,_39){
if(!_38.semTagValues){
_38.semTagValues={};
}
_38.semTagValues[_37]=_39;
},getSemanticTagValues:function(_3a){
return _3a.semTagValues;
},getNodes:function(_3b){
var _3c=STSP.getService(_3b);
if(_3c&&_3c.test&&_3c.test.match(/^id:/)){
_3c=STSP.getService(_3c.test.substr(3));
}
if(_3c){
}
var _3d=_3c?(_3c.nodes?_3c.nodes:[]):null;
return _3d;
},setCallback:function(_3e,_3f){
var _40=STSP.getService(_3e);
if(_40){
_40.callback=_3f;
}else{
}
},loadScript:function(_41,_42){
if(!_41||_41==""){
return;
}
if(_42=="undefined"||_42==null){
_42=false;
}
if(!STSP.scripts[_41]){
STSP.scripts[_41]=true;
var _43=document.createElement("script");
var url=_41.match(/^http/)?_41:STSPG.contextUrl+_41;
url+=(url.indexOf("?")==-1)?"?":"&";
url+="language="+STSP.lang;
_43.src=url;
if(STSPG.isDynamicLoading||_42){
document.body.insertBefore(_43,document.body.firstChild);
}
}
},setSpecialMenuProvider:function(_44){
STSP.specialMenuProviders.push(_44);
},getElementsByClassName:function(_45,_46,_47,_48){
if(!_46){
_46=document.body;
}
if(!_47){
limit=0;
}
if(!_48){
_48=["*"];
}
var _49=STSP.getRegExp(_45);
if(_46&&_46.className&&_46.className.match(_49)){
var _4a=new Array(_46);
return _4a;
}
var _4b=new Array();
for(var t=0;t<_48.length;t++){
var _4c=_46.getElementsByTagName(_48[t]);
for(var i=0;i<_4c.length;i++){
var _4d=_4c[i];
if(_4d.className&&_4d.className.match(_49)){
_4b.push(_4d);
}
if(0<_47&&_47==_4b.length){
break;
}
}
}
return _4b;
},getParentByClassName:function(_4e,_4f){
if(!_4f){
return null;
}
var _50=STSP.getRegExp(_4e);
if(_4f.className&&_4f.className.match(_50)){
return _4f;
}
while(_4f.parentNode){
_4f=_4f.parentNode;
if(_4f.className&&_4f.className.match(_50)){
return _4f;
}
}
return null;
},addHover:function(_51,_52,_53,_54){
while(typeof SemTagMenu==undefined){
alert("waiting...");
}
var _55=_51.getAttribute(STSP.refcntAttr);
var _56=(_52!==null);
if(_55){
_51.setAttribute(STSP.refcntAttr,parseInt(Number(_55)+1));
if(SemTagMenu.staticHover){
var img=SemTagMenu.findHoverFromLiveElement(_51);
if(img){
STSP.watchEvent(img,"click",_53,false);
img.setAttribute("href","javascript:SemTagMenu.a11y()");
}else{
}
}else{
STSP.watchEvent(_51,"mouseover",_52,false);
}
}else{
_51.setAttribute(STSP.refcntAttr,"1");
STSP.hoverIdx++;
_51.setAttribute(STSP.liveElemPrefix+"id",STSP.hoverIdx);
if(SemTagMenu.staticHover){
var img=STSP.createHoverImage(_54);
STSP.watchEvent(img,"click",_53,false);
STSP.watchEvent(img,"keydown",SemTagMenu.a11y,false);
img.setAttribute("href","javascript:void()");
var _57=_51.nextSibling;
if(_57){
_57.parentNode.insertBefore(img,_57);
}else{
_51.parentNode.appendChild(img);
}
_51.setAttribute(STSP.hoverIdPrefix+"idx",parseInt(STSP.hoverIdx));
_51.id=STSP.liveElemPrefix+STSP.hoverIdx;
}else{
var _58=SemTagUtil.getNodeClassValue(_51);
if(_58&&0<_58.length){
_58+=" hasHover";
}else{
_58="hasHover";
}
SemTagUtil.setNodeClassValue(_51,_58);
STSP.watchEvent(_51,"mouseover",_52,false);
_51.setAttribute("tabIndex","0");
STSP.watchEvent(_51,"focus",_52,false);
STSP.watchEvent(_51,"blur",SemTagMenu.mouseout,false);
}
}
},removeHover:function(_59,_5a,_5b){
var _5c=_59.getAttribute(STSP.refcntAttr);
if(_5c){
var _5d=Number(_5c)-1;
if(_5d<0){
}
if(SemTagMenu.staticHover){
var _5e=STSP.getHoverElement(_59);
STSP.clearEventWatch(_5e,"click",_5b,false);
if(_5d==0){
_5e.parentNode.removeChild(_5e);
}
}else{
STSP.clearEventWatch(_59,"mouseover",_5a,false);
STSP.clearEventWatch(_59,"focus",_5a,false);
_59.setAttribute(STSP.refcntAttr,_5d);
if(_5d==0){
var _5f=SemTagUtil.getNodeClassValue(_59);
var _60=_5f.replace(/hasHover/,"");
SemTagUtil.setNodeClassValue(_59,_60);
_59.removeAttribute(STSP.refcntAttr);
_59.removeAttribute("tabIndex");
}
}
}
},createHoverImage:function(_61){
var img=document.createElement("img");
img.id=STSP.hoverIdPrefix+STSP.hoverIdx;
img.className=SemTagMenu.iconName;
img.setAttribute("src",STSPG.contextUrl+"/ui/menu_selected.gif");
img.setAttribute("border","0");
img.setAttribute("alt",_61);
var _62=document.createElement("a");
STSP.watchEvent(_62,"mouseover",SemTagMenu.activateHover,false);
STSP.watchEvent(_62,"mouseout",SemTagMenu.deactivateHover,false);
_62.appendChild(img);
return _62;
},getHoverElement:function(_63){
if(!_63){
return null;
}
if(SemTagMenu.staticHover){
var idx=_63.getAttribute(STSP.hoverIdPrefix+"idx");
var img=document.getElementById(STSP.hoverIdPrefix+idx);
if(img){
var _64=img.parentNode;
return _64;
}
}else{
var _65=SemTagUtil.getNodeClassValue(_63);
if(_65.match(/hasHover/)){
return _63;
}
}
return null;
},showHover:function(_66,_67,_68){
SemTagMenu.showHover(_66,_67,_68);
},setMenuData:function(_69,_6a,_6b,_6c,_6d){
SemTagMenu.setMenuData(_69,_6a,_6b,_6c,_6d);
},getMenuItemJson:function(_6e,_6f,_70,_71){
var o=_70?_70:0;
var i=_71?_71:"";
var _72={"label":_6e,"href":_6f,"order":o,"icon":i};
return _72;
},getMenuHeaderJson:function(_73,_74,_75){
if(_74!="text/html"){
return null;
}
if(_73&&0<_73.length){
var _76={"markup":_73,"order":_75};
return _76;
}else{
null;
}
},getMenuFooterJson:function(_77,_78,_79){
if(_78!="text/html"){
return null;
}
if(_77&&0<_77.length){
var _7a={"markup":_77,"order":_79};
return _7a;
}else{
null;
}
},getElementFromEvent:function(_7b){
var _7c=_7b.target?_7b.target:_7b.srcElement;
if(_7c==window){
_7c=_7c.document;
}
return _7c;
},getLiveElementFromEvent:function(_7d){
var _7e=SemTagMenu.findLiveElementFromEventSource(STSP.getElementFromEvent(_7d));
return _7e;
},getEventAbsoluteX:function(e){
var x=0;
if(e.pageX){
x=e.pageX;
}else{
if(e.clientX){
if(document.body.scrollLeft>document.documentElement.scrollLeft){
x=e.clientX+document.body.scrollLeft;
}else{
x=e.clientX+document.documentElement.scrollLeft;
}
}
}
return x;
},getEventAbsoluteY:function(e){
var y=0;
if(e.pageY){
y=e.pageY;
}else{
if(e.clientY){
if(document.body.scrollTop>document.documentElement.scrollTop){
y=e.clientY+document.body.scrollTop;
}else{
y=e.clientY+document.documentElement.scrollTop;
}
}
}
return y;
},findPosition:function(obj,_7f){
var _80=0,_81=0,_82=0;
var _83=obj.offsetWidth;
var _84;
if(obj.offsetParent){
if(_7f){
_81+=(STSP.bidi=="rtl")?0:_83;
}
_82+=obj.offsetHeight;
while(obj!=null){
_81+=obj.offsetLeft;
_82+=obj.offsetTop;
obj=obj.offsetParent;
_80++;
}
_84=[_81+(STSP.bidi=="rtl"?_83:0),_82];
return _84;
}else{
_84=[obj.x+(STSP.bidi=="rtl"?_83:0),obj.y];
return _84;
}
},createGroupJson:function(ctx,_85){
var _86={"context":ctx,"extenders":_85};
return _86;
},createActionJson:function(id,js,ctx,_87,_88,_89,url,_8a){
var i=(id&&0<id.length)?id[0].innerHTML:null;
var j=(js&&0<js.length)?js[0].innerHTML:null;
var c=(ctx&&0<ctx.length)?ctx[0].innerHTML:null;
var l=(_87&&0<_87.length)?_87[0].innerHTML:null;
var d=(_88&&0<_88.length)?_88[0].innerHTML:null;
var s=(_89&&0<_89.length)?_89[0].innerHTML:null;
var u=(url&&0<url.length)?url[0].innerHTML:null;
var o=(_8a&&0<_8a.length)?parseInt(_8a[0].innerHTML):0;
var _8b={"id":i,"impl":j,"context":c,"label":l,"description":d,"showif":s,"url":u,"order":o};
return _8b;
},parseOrder:function(_8c){
var _8d;
if(_8c==null||_8c.length==0){
_8d=0;
return _8d;
}
if(_8c.charAt(0)=="-"){
_8d=parseInt(_8c.substr(1))*-1;
return _8d;
}else{
_8d=parseInt(_8c);
return _8d;
}
},getActions:function(_8e){
var _8f;
if(!STSP.actionRegistry){
STSP.processActions();
}
for(var i=0;i<STSP.actionRegistry.length;i++){
if(STSP.actionRegistry[i].context==_8e){
_8f=STSP.actionRegistry[i].extenders;
return _8f;
}
}
_8f=STSP.actionRegistry[0].extenders;
return _8f;
},processActions:function(){
if(!STSP.actionRegistry){
STSP.actionRegistry=new Array();
STSP.actionRegistry[0]=STSP.createGroupJson("dummy",new Array());
}
var i;
var _90=STSP.getNodes("com.ibm.portal.action");
while(_90&&0<_90.length){
var _91=_90.pop();
var id=STSP.getElementsByClassName("action-id",_91);
var _92=STSP.getElementsByClassName("action-impl",_91);
var ctx=STSP.getElementsByClassName("action-context",_91);
var _93=STSP.getElementsByClassName("action-label",_91);
var _94=STSP.getElementsByClassName("action-description",_91);
var _95=STSP.getElementsByClassName("action-showif",_91);
var url=STSP.getElementsByClassName("action-url",_91);
var _96=STSP.getElementsByClassName("action-order",_91);
var _97=STSP.createActionJson(id,_92,ctx,_93,_94,_95,url,_96);
for(i=1;i<STSP.actionRegistry.length;i++){
if(STSP.actionRegistry[i].context==_97.context){
var cnt=STSP.actionRegistry[i].extenders.length;
for(var j=0;j<cnt;j++){
if(_97.id==STSP.actionRegistry[i].extenders[j].id){
break;
}
}
if(j==cnt){
STSP.actionRegistry[i].extenders.push(_97);
}
break;
}
}
if(i==STSP.actionRegistry.length){
STSP.actionRegistry[i]=STSP.createGroupJson(ctx[0].innerHTML,new Array());
STSP.actionRegistry[i].extenders.push(_97);
}
if(_97.impl){
STSP.loadScript(_97.impl,true);
}
}
for(i=0;i<STSP.actionRegistry.length;i++){
STSP.actionRegistry[i].extenders.sort(STSP.sortByOrder);
}
},sortByOrder:function(a,b){
if(a.order>b.order){
return 1;
}else{
if(a.order<b.order){
return -1;
}else{
return 0;
}
}
},getTextValue:function(_98){
if(!_98){
return "";
}
return _98.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
},getTypedValue:function(_99,_9a){
if(!_9a){
_9a="def";
}
var _9b=new Array();
var _9c=STSP.getElementsByClassName("type",_99);
var _9d=STSP.getElementsByClassName("value",_99);
var _9e="";
if(_9d.length<1){
_9e=STSP.getTextValue(_99);
}
for(var i=0;i<_9d.length;i++){
_9e+=STSP.getTextValue(_9d[i]);
}
if(_9c.length<1){
_9b[_9a]=_9e;
}else{
for(var j=0;j<_9c.length;j++){
var _9f=_9c[j];
var _a0=_9f.tagName.match(/^abbr$/i)?_9f.getAttribute("title"):STSP.getTextValue(_9f);
_9b[_a0.toLowerCase()]=_9e;
}
}
return _9b;
},findNameElementInHcard:function(_a1){
if(_a1.className!="vcard"){
_a1=STSP.getParentByClassName("vcard",_a1);
}
var _a2=STSP.getElementsByClassName("fn",_a1)[0];
if(!_a2){
_a2=STSP.getElementsByClassName("n",_a1)[0];
}
return _a2;
},getEmailFromHcard:function(_a3){
var _a4;
if(!_a3){
_a4="";
return _a4;
}
if(_a3.className!="vcard"){
_a3=STSP.getParentByClassName("vcard",_a3);
}
var _a5="";
if(_a3){
var _a6=STSP.getElementsByClassName("email",_a3)[0];
var _a7=STSP.getTypedValue(_a6,"internet");
_a5=_a7.internet;
}
_a4=_a5;
return _a4;
},findElementByNameInHcard:function(_a8,_a9){
if(_a8.className!="vcard"){
_a8=STSP.getParentByClassName("vcard",_a8);
}
var _aa=STSP.getElementsByClassName(_a9,_a8)[0];
return _aa;
},getRegExp:function(str){
var _ab=STSP.reMap[str];
if(!_ab){
_ab=new RegExp("(^|\\s)"+str+"(\\s|$)");
STSP.reMap[str]=_ab;
}
return _ab;
},addElementToHandler:function(_ac,_ad,_ae){
if(STSPG.isParsingRequired===true){
return false;
}
if(_ac==null||_ac==="undefined"){
return false;
}
var _af=STSP.service.entries;
var _b0=null;
for(var k=0;k<_af.length;k++){
var _b1=_af[k];
if(_b1.id===_ae){
_b0=_b1;
break;
}
}
if(_b0==null){
return false;
}
var _b2;
if(_ac.nodeName==="A"||_ae==="c2a"){
_b2=_ac.parentNode;
}else{
_b2=_ac;
}
if(_b2.getAttribute("alreadyAdded")==null){
if(_b0.nodes==null||_b0.nodes==="undefined"||typeof _b0.nodes!=="array"){
_b0.nodes=[];
}
_b0.nodes.push(_b2);
_b2.setAttribute("alreadyAdded",true);
if(_ae==="c2a"){
var _b3=document.getElementsByClassName("c2a:target");
for(var i=0;i<_b3.length;i++){
_b0.nodes.push(_b3.item(i));
}
}
}
_b0.callback.call(_b0.nodes);
if(_ae==="hcard"){
var _b4=typeof SemTagPerson;
if(STSPG.ifConnUrlExists==="false"&&(typeof SemTagPerson==="object")){
SemTagPerson.showHover(_ad);
}
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
var _b5=typeof SemTagAwrns;
if(STSPG.isParsingRequired===false&&STSP.stNI===false&&(typeof SemTagAwrns)){
SemTagAwrns.processHcards([_b2]);
}
}
if(_ae==="c2a"&&SemTagC2A){
SemTagC2A.showHover(_ad);
}
_b0.nodes=[];
return true;
},addElementToPersonCardHandler:function(_b6,_b7){
if(STSPG.isParsingRequired===true){
return false;
}
if(_b6==null||_b6==="undefined"){
return false;
}
var _b8;
if(_b6.nodeName==="A"){
_b8=_b6.parentNode;
}else{
_b8=_b6;
}
if(_b8.getAttribute("alreadyAdded")==null){
STSP.svcEntryPersonCard.nodes.push(_b8);
_b8.setAttribute("alreadyAdded",true);
}
STSP.svcEntryPersonCard.callback.call(STSP.svcEntryPersonCard.nodes);
var _b9=typeof SemTagPerson;
if(STSPG.ifConnUrlExists==="false"&&(typeof SemTagPerson)){
SemTagPerson.showHover(_b7);
}
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
var _ba=typeof SemTagAwrns;
if(STSPG.isParsingRequired===false&&STSP.stNI===false&&(typeof SemTagAwrns)){
SemTagAwrns.processHcards([_b8]);
}
STSP.svcEntryPersonCard.nodes.pop();
return true;
},registerService:function(_bb){
var _bc=STSP.service.entries;
_bc[_bc.length]=_bb;
if(STSP.isEnablerObjectAvailable&&typeof dojo!=="undefined"){
try{
dojo.addOnLoad(function(){
var _bd=new com.ibm.mashups.livetext.ConfigEntry(_bb.classnames.join(),false,"portallof",STSPG.contextUrl+"/javascript","portallof.vcard",false,_bb.id);
dojo.publish("/com/ibm/mashups/livetext/configentryadded",[_bd]);
SemTagSvc.parseDom(null,null);
});
}
catch(e){
console.error("Error occurred in registerService for service "+_bb.id+"is :"+e);
}
}
}};
var SemTagSvcConfig=null;
if((STSP.ifConnUrlExists=="true")&&(STSP.isconnServerNew===true)){
SemTagSvcConfig={isPortal:true,baseUrl:STSP.connUrl+"/profiles",loadCssFiles:true,isBidiRTL:false};
}
STSP.watchEvent(window,"load",STSP.init,false);
var SemTagSvc=STSP;
var SemTagSvcPortal=STSP;


var SemTagUtil={isGecko:(document.all?false:true),getNodeClassValue:function(_1){
var rv;
var _2;
if(SemTagUtil.isGecko){
rv=(typeof (_1.getAttribute)!="undefined")?_1.getAttribute("class"):"";
}else{
rv=_1.className;
}
_2=(typeof (rv)!="undefined"&&rv!=null)?rv:"";
return _2;
},setNodeClassValue:function(_3,_4){
if(SemTagUtil.isGecko){
_3.setAttribute("class",_4);
}else{
_3.className=_4;
}
},fireEvent:function(_5,_6){
try{
if(_5.fireEvent){
_5.fireEvent(_6);
}else{
if(_5.dispatchEvent){
_5.dispatchEvent(_6);
}
}
}
catch(e){
}
},getOwnerDocument:function(_7){
if(!_7){
return null;
}
var _8;
if(SemTagUtil.isGecko){
_8=_7.ownerDocument;
return _8;
}else{
var _9=_7;
while(_9.parentNode){
_9=_9.parentNode;
}
_8=_9;
return _8;
}
},getFrameElement:function(_a){
var _b;
if(SemTagUtil.isGecko){
var oD=_a.ownerDocument;
_b=oD.defaultView.frameElement;
return _b;
}else{
var _c=_a;
while(_c.parentNode){
_c=_c.parentNode;
}
_b=_c;
return _b;
}
},getHcardAttributeValue:function(_d,_e){
switch(_d){
case ("email"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"internet");
case ("tel"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"voice");
case ("adr"):
return SemTagUtil.getHcardTypedAttribute(_e,_d,"intl");
}
var _f=STSP.getParentByClassName("vcard",_e);
var _10=STSP.getElementsByClassName(_d,_f,1);
if(_10.length>0&&_10[0].tagName.match(/^abbr$/i)){
var _11=_10[0].getAttribute("title");
return _11;
}
switch(_d){
case ("X-person-display-inline"):
if(_10.length>0){
return true;
}else{
return false;
}
case ("fn"):
var fn=SemTagUtil.getSinglePropertyValue(_10[0]);
if(fn){
return fn;
}else{
var _11=SemTagUtil.getHcardAttributeValue("n",_e);
return _11;
}
break;
case ("X-person-header-only"):
case ("X-person-inside-inline"):
var _11=(_10&&0<_10.length);
return _11;
case ("X-sametime-resolve"):
var _12=_10[0];
var _13=(typeof (_12)!="undefined"&&_12!=null);
return _13;
case ("n"):
if(_10.length>0){
var _14=_10[0];
var _15="";
var _16=["honorific-prefix","given-name","additional-name","family-name","honorific-suffix"];
for(var i=0;i<5;i++){
var n=SemTagUtil.getSinglePropertyValue(STSP.getElementsByClassName(_16[i],_14,1)[0]);
if(n){
_15+=n+" ";
}
}
return _15;
}
var _17="";
return _17;
break;
case ("photo"):
var _18=_10[0];
if(_18){
var _13=_18.getAttribute("src");
return _13;
}else{
return;
}
break;
case ("X-sametime-status"):
var _19=_10[0];
var _13;
if(!_19){
_13="";
return _13;
}
var _1a=_19.getAttribute("value");
if(_1a){
_13=_1a;
return _13;
}else{
_13=SemTagUtil.getSinglePropertyValue(_19);
return _13;
}
break;
case ("street-address"):
case ("post-office-box"):
case ("extended-address"):
case ("locality"):
case ("region"):
case ("postal-code"):
case ("country-name"):
case ("title"):
case ("role"):
case ("org"):
default:
var _13=SemTagUtil.getSinglePropertyValue(_10[0]);
return _13;
break;
}
},getHcardTypedAttribute:function(_1b,_1c,_1d){
var _1e=new Object();
var _1f=STSP.getParentByClassName("vcard",_1b);
var _20=STSP.getElementsByClassName(_1c,_1f);
for(var i=0;i<_20.length;i++){
var _21=_20[i];
if(_1c=="email"&&_21.nodeName.toLowerCase()=="a"&&_21.href.match(/^mailto:/)){
var _22=_21.href.indexOf("?");
if(_22>-1){
_1e[_1d]=_21.href.slice(7,_22);
}else{
_1e[_1d]=_21.href.slice(7);
}
continue;
}
_1e=STSP.getTypedValue(_21,_1d);
}
return _1e;
},getSinglePropertyValue:function(_23){
if(!_23){
return false;
}
var _24=_23.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
return _24;
},crossDomainRequest:function(){
var _25=new Array();
var _26=new Array();
var _27=this;
createTimeoutFunction=function(_28){
return function(){
_27.cancelRequest(_28);
};
};
this.getScriptId=function(id){
return "_JVLN_"+id;
};
this.getScriptObject=function(id){
var _29=SemTagUtil.isGecko?this.getScriptId(id):this.$_getScriptId(id);
return document.getElementById(_29);
};
this.request=function(url,_2a,_2b,_2c,_2d){
var _2e=this.getScriptId(_2d);
if(_2b){
_25[_2d]=_2b;
}
if(_2c){
_26[_2d]=_2c;
}
var _2f=document.createElement("script");
_2f.id=_2e;
try{
_2f.src=url;
}
catch(e){
return false;
}
document.body.insertBefore(_2f,document.body.firstChild);
if(_2a){
var _30=this;
window.setTimeout(createTimeoutFunction(_2d),_2a);
}
};
this.cancelRequest=function(id){
var _31=_25[id];
_25[id]=null;
var _32=_26[id];
_26[id]=null;
if(_31){
try{
if(_31){
var evt={"target":_32};
_31.call(this,false,null,evt);
}
var _33=this.getScriptObject(id);
if(_33){
document.body.removeChild(_33);
}
}
catch(e){
}
}
};
this.dispatch=function(id,_34){
if(!id){
return;
}
try{
var _35=_25[id];
if(!_35){
}
if(_35){
var evt={"target":_26[id]};
_35.call(this,true,_34,evt);
_25[id]=null;
_26[id]=null;
var _36=this.getScriptObject(id);
if(_36){
document.body.removeChild(_36);
}
}
}
catch(e){
}
};
}};





if(typeof (ibm)=="undefined"){
ibm={};
}
if(typeof (ibm.portal)=="undefined"){
ibm.portal={};
}
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
ibm.portal.util={};
ibm.portal.util.cloneObject=function(_1){
var _2={};
for(i in _1){
_2[i]=_1[i];
}
return _2;
};
ibm.portal.resource={};
ibm.portal.resource.str={};
ibm.portal.resource.getString=function(_3,_4){
s=_3[_4];
s=(s==null)?_4:s;
if(arguments.length>=2){
i=1;
do{
s=s.replace("%"+i,arguments[i]);
i=i+1;
}while(i<arguments.length);
}
return s;
};
if(typeof (ibm.portal.xml)=="undefined"){
ibm.portal.xml={};
}
ibm.portal.xml.ie={};
ibm.portal.xml.gecko={};
ibm.portal.xml.getXmlHttpRequest=function(){
var _5=null;
if(typeof ActiveXObject!="undefined"){
_5=new ActiveXObject("Microsoft.XMLHTTP");
}else{
_5=new XMLHttpRequest();
}
return _5;
};
ibm.portal.xml.loadXml=function(_6){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXml(_6);
}else{
return ibm.portal.xml.gecko.loadXml(_6);
}
};
ibm.portal.xml.loadXmlString=function(_7){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXmlString(_7);
}else{
return ibm.portal.xml.gecko.loadXmlString(_7);
}
};
ibm.portal.xml.loadXsl=function(_8){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.loadXsl(_8);
}else{
return ibm.portal.xml.gecko.loadXsl(_8);
}
};
ibm.portal.xml.transform=function(_9,_a,_b,_c,_d){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
return ibm.portal.xml.ie.transform(_9,_a,_b,_c,_d);
}else{
return ibm.portal.xml.gecko.transform(_9,_a,_b,_c,_d);
}
};
ibm.portal.xml.update=function(_e,_f,xsl,_10,_11){
if(typeof ActiveXObject!="undefined"||window.ActiveXObject!==undefined){
var _12=ibm.portal.xml.ie.transform(_f,xsl,_10,_11,true);
ibm.portal.debug.text("XSLT result: "+_12);
_e.innerHTML+=_12;
}else{
_12=ibm.portal.xml.gecko.transform(_f,xsl,_10,_11,false);
_e.appendChild(_12.documentElement);
}
};
ibm.portal.xml.ie.XSLT_PROG_IDS=["Msxml2.XSLTemplate.6.0","Msxml2.XSLTemplate.4.0","MSXML2.XSLTemplate.3.0","MSXML2.XSLTemplate"];
ibm.portal.xml.ie.DOM_PROG_IDS=["MSXML2.FreeThreadedDOMDocument.6.0","Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"];
ibm.portal.xml.ie.FTDOM_PROG_IDS=["Msxml2.FreeThreadedDOMDocument.6.0","Msxml2.FreeThreadedDOMDocument.4.0","MSXML2.FreeThreadedDOMDocument","MSXML.FreeThreadedDOMDocument","Microsoft.FreeThreadedXMLDOM"];
ibm.portal.xml.ie._getMSXMLImpl=function(_13){
while(_13.length>0){
try{
var _14=new ActiveXObject(_13[0]);
if(_14){
return _14;
}
}
catch(err){
}
_13.splice(0,1);
}
throw new Error("No MSXML implementation exists");
};
ibm.portal.xml.ie.loadXml=function(_15){
var _16=this._getMSXMLImpl(this.DOM_PROG_IDS);
_16.async=0;
_16.resolveExternals=0;
if(!_16.load(_15)){
throw new Error("Error loading xml file "+_15);
}
return _16;
};
ibm.portal.xml.ie.loadXmlString=function(_17){
var _18=this._getMSXMLImpl(this.DOM_PROG_IDS);
_18.async=0;
_18.resolveExternals=0;
if(_17){
if(!_18.loadXML(_17)){
throw new Error("Error loading xml string "+_17);
}
}
return _18;
};
ibm.portal.xml.ie.loadXsl=function(_19){
var _1a=this._getMSXMLImpl(this.FTDOM_PROG_IDS);
_1a.async=0;
_1a.resolveExternals=0;
if(!_1a.load(_19)){
throw new Error("Error loading xsl file "+_19);
}
return _1a;
};
ibm.portal.xml.ie.transform=function(_1b,xsl,_1c,_1d,_1e){
var _1f=_1b;
var _20=xsl;
try{
if(!_20.documentElement){
_20=this.loadXsl(xsl);
}
}
catch(e){
var _21=e.message;
throw new Error(""+_21,""+_21);
}
var _22=this._getMSXMLImpl(this.XSLT_PROG_IDS);
_22.stylesheet=_20;
var _23=_22.createProcessor();
_23.input=_1f;
if(_1d){
for(var p in _1d){
_23.addParameter(p,_1d[p]);
}
}
if(_1c){
_23.addParameter("mode",_1c);
}
if(_1e){
if(!_23.transform()){
throw new Error("Error transforming xml doc "+_1f);
}
return _23.output;
}else{
var _24=this._getMSXMLImpl(this.DOM_PROG_IDS);
_24.async=false;
_24.validateOnParse=false;
_1f.transformNodeToObject(_20,_24);
return _24;
}
};
ibm.portal.xml.gecko.loadXml=function(_25){
var _26=document.implementation.createDocument("","",null);
var xhr=new XMLHttpRequest();
xhr.open("GET",_25,false);
xhr.send(null);
if(xhr.status==200){
_26=xhr.responseXML;
}else{
throw new Error("Error loading "+_25+":"+xhr.status+":"+xhr.statusText);
}
return _26;
};
ibm.portal.xml.gecko.loadXmlString=function(_27){
var _28=new DOMParser();
try{
oXmlDoc=_28.parseFromString(_27,"text/xml");
}
catch(exc){
throw new Error("Error loading xml string "+_27);
}
return oXmlDoc;
};
ibm.portal.xml.gecko.loadXsl=function(_29){
var _2a=document.implementation.createDocument("","",null);
var xhr=new XMLHttpRequest();
xhr.open("GET",_29,false);
xhr.send(null);
if(xhr.status==200){
_2a=xhr.responseXML;
}
return _2a;
};
ibm.portal.xml.gecko.transform=function(_2b,xsl,_2c,_2d,_2e){
try{
var _2f=xsl;
if(!_2f.documentElement){
alert("xslDoc is not a Document, loading it...");
_2f=this.loadXsl(xsl);
}
var _30=new XSLTProcessor();
_30.importStylesheet(_2f);
if(_2d){
for(var p in _2d){
_30.setParameter(null,p,_2d[p]);
}
}
if(_2c){
_30.setParameter(null,"mode",_2c);
}
var _31=_30.transformToDocument(_2b);
if(!_2e){
return _31;
}
resultStr=_31.documentElement.textContent;
}
catch(exc){
throw new Error("Error transforming xml doc "+exc);
}
return resultStr;
};
ibm.portal.xml.setLayerContentByXml=function(_32,xml,xsl,_33,_34){
var _35=ibm.portal.xml.transform(xml,xsl,null,_33,_34);
if(_32.innerHTML){
_32.innerHTML=_35;
}else{
var obj=document.getElementById(_32);
obj.innerHTML=_35;
}
};
ibm.portal.io={};
ibm.portal.io.sAcceptLanguage="";
ibm.portal.io.getResponseHeader=function(_36,_37){
var _38;
try{
_38=_36.getResponseHeader(_37);
}
catch(exc){
_38=null;
}
return _38;
};
ibm.portal.io.checkForError=function(_39){
var _3a=null;
var _3b=ibm.portal.io.getResponseHeader(_39,"X-IBM-REST-Error");
if(_3b){
var _3a="",_3c=ibm.portal.io.getResponseHeader(_39,"X-IBM-REST-MsgArg1");
if(_3c){
_3a=ibm.portal.resource.getString(_3b,window.decodeURIComponent(_3c));
}else{
_3a=ibm.portal.resource.getString(_3b);
}
}
return _3a;
};
ibm.portal.io.asyncRequest=function(_3d,_3e,_3f,_40){
try{
ibm.portal.io.setAsync(_3d,_3e,_3f,_40,true);
}
catch(e){
ibm.portal.io.setAsync(_3d,_3e,_3f,_40,false);
}
};
ibm.portal.io.setAsync=function(_41,_42,_43,_44,_45){
var _46=ibm.portal.xml.getXmlHttpRequest();
_46.open(_41,_42,true);
if(!_45){
_46.setRequestHeader("Accept-language","*");
}
try{
_46.onreadystatechange=function(){
if(_46.readyState==4){
_44.startUpdate();
sError=ibm.portal.io.checkForError(_46);
if(sError){
_44.handleError(""+ibm.portal.resource.getString(sError));
}else{
var _47=_46.responseText;
_44.handleData(_47);
}
}
};
_46.send(_43);
}
catch(e){
throw new Error("","");
}
};
try{
}
catch(e){
console.error(e);
}



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


 





 

STSPG.ifConnUrlExists = "false";
STSPG.connUrl= "null";
STSPG.isconnServerNew = false;
STSPG.ptTimeout =  1500;
STSPG.preferredImIds =  ["X-imn","email","uid","fn"];

STSPG.c2a_click_for_actions = "Click for Actions";

STSPG.hover_label_menu =  "Click for options";
STSPG.a11y_hover=  "more information";
STSPG.a11y_photo=  "photo";
STSPG.a11y_close=  "close";
STSPG.ally_expandImage  =  "Click to hide information";
STSPG.ally_collapsedImage  =  "Click to display more information";
STSPG.ally_showMore  =  "Show More";
STSPG.ally_showLess  =  "Show Less";
STSPG.ally_buisnessCardLabel  =  "Business Card";
STSPG.ally_moreAction=  "More Actions";

STSPG.start_chat=  "Chat";
STSPG.add_to_contact=  "Add as Sametime Contact";
STSPG.send_email=  "Send Mail";
STSPG.view_person=  "Profile";
STSPG.hover_label_person=  "Click here for Person Card";
STSPG.work_location=  "person.adr.locality+', '+person.adr.region+' '+person.adr.countryname";
STSPG.specify_email_if_connection=  "When Portal is integrated with Connections, Connection Business Card appears only if email is specified";

STSPG.expandedItems  =  "ibm-primaryEmail,street,stateOrProvinceName,postalCode,countryName";
STSPG.collapsedItems  =  "ibm-jobTitle,telephoneNumber";
STSPG.showDetailsFlag  =  true;
STSPG.getPersonResolverUrl =  function(){ return "?uri=personrecord%3ATOBEREPLACED&amp;locale=sr&amp;locale=en&amp;locale=sr-Latn-RS&amp;locale=ltr" };
STSPG.basePumaResolvedUrl =  SemTagSvcPortalGlobalDynamic.basePumaResolvedUrl;
STSPG.availAttribUrl =  SemTagSvcPortalGlobalDynamic.availAttribUrl;




STSP.availAttribStr =  "";
STSP.ifConnUrlExists =  STSPG.ifConnUrlExists;
STSP.connUrl =  STSPG.connUrl;
STSP.isconnServerNew = STSPG.isconnServerNew;
STSP.sametimeSTProxy = (typeof stproxy !== "undefined" );
STSP.sametimeSTLinks = ( (typeof stproxy === "undefined") && (typeof prepareSametimeLink !== "undefined") );
STSP.stNI = ( (typeof stproxy === "undefined") && (typeof prepareSametimeLink === "undefined") );


	
	var availAttrib={availAttribUrl:STSPG.availAttribUrl,req:"",uAR:false,isGecko:navigator.userAgent.match(/(opera|opr|firefox|msie|chrome|safari)\/?\s*([\d\.]+)/i)||[],retrieveAttribute:function(){
if(availAttrib.uAR){
return;
}
if(STSP.availAttribStr!=""){
return;
}
availAttrib.req=ibm.portal.xml.getXmlHttpRequest();
availAttrib.req.onreadystatechange=availAttrib.processStateChange;
try{
availAttrib.req.open("GET",availAttrib.availAttribUrl,true);
}
catch(e){
alert(e);
}
availAttrib.req.send(null);
availAttrib.uAR=true;
},getAttributesFromTags:function(_1,_2,_3){
var _4;
if(availAttrib.isGecko.length==0||availAttrib.isGecko.indexOf("MSIE")>0){
_4=_1.getElementsByTagName(_3+":"+_2);
return _4;
}else{
_4=_1.getElementsByTagNameNS("*",_2);
return _4;
}
},processStateChange:function(){
if(availAttrib.req.readyState==4){
if(availAttrib.req.status==200){
var _5=availAttrib.req.responseText;
if(_5.length>1){
var _6=ibm.portal.xml.loadXmlString(_5);
var _7=availAttrib.getAttributesFromTags(_6.documentElement,"title","atom");
var i;
for(i=1;i<_7.length;i++){
if((STSP.availAttribStr=="")){
if((_7[i].firstChild.nodeValue!=null)){
STSP.availAttribStr=_7[i].firstChild.nodeValue;
}
}else{
if((_7[i].firstChild.nodeValue!=null)){
STSP.availAttribStr=_7[i].firstChild.nodeValue+","+STSP.availAttribStr;
}
}
}
}
}else{
}
}
}};


	


var mytest=null;
var liveNameElementId=null;
var SemTagMenu={needCss:true,staticHover:false,id:"semtagmenu",hideDelay:navigator.userAgent.match(/(Android|BlackBerry|iPad|iPhone|iPod)/g)?5000:STSPG.ptTimeout,timeouts:[],iconName:"menu_drop_icon",showing:false,currentElem:null,currentHoverLabel:null,refCount:-1,a11yMode:false,svcHandlers:[],items:[],headers:[],footers:[],moreActionImgUrl:STSPG.contextUrl+"/ui/ShowActions.gif",verticalRulerUrl:STSPG.contextUrl+"/ui/Line_Tree.gif",hoverIdRE:new RegExp(STSP.hoverIdPrefix),iconNameRE:new RegExp("(^|\\s)menu_drop_icon(\\s|$)"),sftflag:false,init:function(){
},includeCSS:function(_1){
var _2=false;
if(typeof (_1._JAVLIN_STYLE_)=="undefined"){
_2=true;
_1._JAVLIN_STYLE_="loaded";
}
return _2;
},registerMenuEventHandlers:function(_3){
STSP.watchEvent(_3,"click",SemTagMenu.click,false);
STSP.watchEvent(_3,"keydown",SemTagMenu.catchEscape,false);
STSP.watchEvent(_3,"keyup",SemTagMenu.catchKeyup,false);
},unregisterMenuEventHandlers:function(_4){
STSP.clearEventWatch(_4,"click",SemTagMenu.click,false);
STSP.clearEventWatch(_4,"keydown",SemTagMenu.catchEscape,false);
STSP.clearEventWatch(_4,"keyup",SemTagMenu.catchKeyup,false);
},nls:{"hover_label":STSPG.hover_label_menu,"a11y_hover":STSPG.a11y_hover,"a11y_photo":STSPG.a11y_photo,"a11y_close":STSPG.a11y_close,"ally_expandImage":STSPG.ally_expandImage,"ally_collapsedImage":STSPG.ally_collapsedImage,"ally_showMore":STSPG.ally_showMore,"ally_showLess":STSPG.ally_showLess,"ally_buisnessCardLabel":STSPG.ally_buisnessCardLabel,"ally_moreAction":STSPG.ally_moreAction},hoverDimension:[14,14],hoverOffset:[15,-1],menuOffset:[15,-1],writeHover:function(_5,_6,_7){
_5.write("<div class='"+SemTagMenu.iconName+"' style='cursor:pointer;'>"+_7+"</div>");
},startMenu:function(_8,_9){
_8.write("<div class='personMenu' id='personMenuID'><ul role='region' aria-label='listitem' style='padding:0px;margin:0px;list-style-type:none;float:left;'title='Person card dialog' alt='Person card dialog'><li role='region' aria-label='listitem' tabindex=0 onkeydown=\"SemTagMenu.catchEscape();\" onkeyup=\"SemTagMenu.catchKeyup();\"></li></ul>");
},writeHeader:function(_a,_b,_c){
_a.write("<div class='semtag_header'>"+_b.markup+"</div>");
},startActionSection:function(_d,_e,_f,_10){
if(!_f){
_f="personMenuActions";
}
_d.write("<div id='lessItem' style='display:block'><table role='presentation' class='personMenuActions' id='menuItemID' dir='"+_e+"'><tr >");
if(0<SemTagMenu.items.length){
tempitem=SemTagMenu.items.shift();
_d.write("<td style='width:10'><a role='region' aria-label='actionItem' href='"+tempitem.href+"' style='color:#105ec1;padding-top:5px;padding-bottom:5px;font-size:1.0em;'><img style='display:none' src='' alt=''> "+tempitem.label+"</img></a></td>");
}
if(_10.length>=1){
_d.write("<td style='width:1'><img src= '"+SemTagMenu.verticalRulerUrl+"' alt=''/> </td> ");
_d.write("<td ><a role='region' aria-label='moreaction' href='#' style='color:#105ec1;padding-top:5px;padding-bottom:5px;font-size:1.0em;width:90;'onClick=\"SemTagMenu.shtest();return false;\" onKeydown=\" if (event.keyCode==13){SemTagMenu.shtest();return false; }\"><img style='display:none' src='' alt=''><label id='actionMore'>"+SemTagMenu.nls.ally_moreAction+"</img></label><span style='position: absolute; top: -9000px;'>Press Enter for more actions items and tab to move the focus on items</span><img style='border:none;' src='"+SemTagMenu.moreActionImgUrl+"' title='"+SemTagMenu.nls.ally_collapsedImage+" ' alt='"+SemTagMenu.nls.ally_collapsedImage+" ' /></a></td>");
}
_d.write("</tr></table></div>");
_d.write("<div id='moreItem' style='display:none'><table role='presentation' id='moreActionItems' class='"+_f+"' dir='"+_e+"'>");
while(0<SemTagMenu.items.length){
_10=SemTagMenu.items.shift();
if(_10.href&&(_10.href.indexOf("mailto:")>-1||_10.href.indexOf("http:")>-1)){
_d.write("<tr ><td><a href='"+_10.href+"'>"+_10.label+"</a></td></tr>");
}else{
_d.write("<tr ><td><a  onclick='"+_10.href+";return false;"+"' href='javascript:void(0);'>"+_10.label+"</a></td></tr>");
}
}
_d.write("</table></div>");
},writeFooter:function(out,_11,_12){
out.write("<div class='semtag_footer'>"+_11.markup+"</div>");
},endMenu:function(out,_13){
out.write("<a role='region' aria-label='exitlink' style='width:0px; height:0px;' onblur=\"SemTagMenu.exitCard();\" onclick='return false;' href='exit from person card' title='exit from person card'><img style='display:none' src='' alt='' /></a></div>");
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},activateHover:function(_14){
var _15=STSP.getElementFromEvent(_14);
if(_15){
_15.src=STSPG.contextUrl+"/ui/menu_selected_hover.gif";
}
SemTagMenu.setCurrentElement(SemTagMenu.findLiveElementFromEventSource(_15));
},deactivateHover:function(_16){
var _17=STSP.getElementFromEvent(_16);
if(_17){
_17.src=STSPG.contextUrl+"/ui/menu_selected.gif";
}
SemTagMenu.setCurrentElement(null);
},showHover:function(_18,_19,_1a){
if(SemTagMenu.staticHover){
return;
}
var tag=SemTagMenu.getMenuTag();
if(SemTagMenu.showing&&tag.style.display!="none"){
return;
}
var _1b=STSP.getElementFromEvent(_18);
var _1c=0;
if(_1b&&_1b!=SemTagMenu.currentElem){
SemTagMenu.clearAllSvcHandlers(tag);
_1c=_1b.getAttribute(STSP.refcntAttr);
if(_1c){
SemTagMenu.setCurrentElement(_1b);
}else{
SemTagMenu.setCurrentElement(null);
return;
}
}
SemTagMenu.addSvcHandler(tag,_19);
if(_1a&&0<_1a.length){
SemTagMenu.currentHoverLabel=_1a;
}
SemTagMenu.refCount--;
if(0<SemTagMenu.refCount){
return;
}
SemTagMenu.setRefCount((0<_1c)?_1c:Number(_1b.getAttribute(STSP.refcntAttr)));
SemTagMenu.showing=false;
if(_18.type=="focus"){
SemTagMenu.a11yMode=true;
STSP.watchEvent(_1b,"keydown",SemTagMenu.a11y,false);
}
var out=new SemTagMenu.out();
var _1a=SemTagMenu.currentHoverLabel?SemTagMenu.currentHoverLabel:SemTagMenu.nls.hover_label;
if(!STSP.isMobile){
SemTagMenu.writeHover(out,STSP.bidi,_1a);
if(STSPG.isPersonCardHandlerRequired){
availAttrib.retrieveAttribute();
}
}
SemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
var pos=STSP.findPosition(SemTagMenu.currentElem,false);
var _1d=(STSP.bidi=="rtl")?0-SemTagMenu.hoverOffset[0]:SemTagMenu.hoverOffset[0];
SemTagMenu.show(SemTagMenu.id,_18,pos[0]+_1d,pos[1]+SemTagMenu.hoverOffset[1],tag.offsetWidth,tag.offsetHeight);
},addSvcHandler:function(tag,_1e){
SemTagMenu.svcHandlers.push(_1e);
STSP.watchEvent(tag,"click",_1e,false);
},clearAllSvcHandlers:function(tag){
while(0<SemTagMenu.svcHandlers.length){
var _1f=SemTagMenu.svcHandlers.pop();
if(_1f){
STSP.clearEventWatch(tag,"click",_1f,false);
}
}
},setCurrentElement:function(_20){
SemTagMenu.currentElem=_20;
SemTagMenu.setRefCount(_20?Number(_20.getAttribute(STSP.refcntAttr)):0);
SemTagMenu.currentHoverLabel=null;
while(0<SemTagMenu.headers.length){
SemTagMenu.headers.pop();
}
while(0<SemTagMenu.items.length){
SemTagMenu.items.pop();
}
while(0<SemTagMenu.footers.length){
SemTagMenu.footers.pop();
}
},setRefCount:function(cnt){
SemTagMenu.refCount=cnt;
},setMenuData:function(_21,_22,_23,_24,_25){
var _26=_22?_22.length:0;
if(!SemTagMenu.staticHover&&SemTagMenu.refCount<0){
return;
}
var _27=SemTagMenu.findLiveElementFromEventSource(STSP.getElementFromEvent(_21));
if(!_27){
return;
}
if(SemTagMenu.staticHover&&(_27!=SemTagMenu.currentElem||SemTagMenu.showing)){
SemTagMenu.setCurrentElement(_27);
}
if(_22){
for(var i=0;i<_22.length;i++){
SemTagMenu.items.push(_22[i]);
}
}
if(_23){
SemTagMenu.currentMenuCss=_23;
}
if(_24){
SemTagMenu.headers.push(_24);
}
if(_25){
SemTagMenu.footers.push(_25);
}
SemTagMenu.refCount--;
if(0<SemTagMenu.refCount){
return;
}
SemTagMenu.stopEvent(_21);
for(var j=0;j<STSP.specialMenuProviders.length;j++){
var _28=STSP.specialMenuProviders[j];
var _29=_28.call(_21,SemTagMenu.currentElem);
if(_29&&0<_29.length){
for(var k=0;k<_29.length;k++){
SemTagMenu.items.push(_29[k]);
}
}
}
SemTagMenu.showMenu(_21);
},getCurrentElement:function(){
return SemTagMenu.currentElem;
},showMenu:function(_2a){
if(0==SemTagMenu.headers.length+SemTagMenu.items.length+SemTagMenu.footers.length){
SemTagMenu.hide();
return;
}
SemTagMenu.items.sort(STSP.sortByOrder);
if(1<SemTagMenu.headers.length){
SemTagMenu.headers.sort(STSP.sortByOrder);
}
if(1<SemTagMenu.footers.length){
SemTagMenu.footers.sort(STSP.sortByOrder);
}
var out=new SemTagMenu.out();
SemTagMenu.startMenu(out,STSP.bidi);
if(0<SemTagMenu.headers.length){
SemTagMenu.writeHeader(out,SemTagMenu.headers[0],STSP.bidi);
}
SemTagMenu.startActionSection(out,STSP.bidi,SemTagMenu.currentMenuCss,SemTagMenu.items);
if(0<SemTagMenu.footers.length){
SemTagMenu.writeFooter(out,SemTagMenu.footers[0],STSP.bidi);
}
SemTagMenu.endMenu(out,STSP.bidi);
var tag=SemTagMenu.getMenuTag();
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
SemTagMenu.showing=true;
SemTagMenu.defaultCursor();
if(SemTagMenu.a11yMode){
if(SemTagUtil.isGecko){
var _2b=tag.getElementsByTagName("li");
if(0<_2b.length){
_2b[0].focus();
}
}else{
tag.focus();
}
}
SemTagMenu.registerMenuEventHandlers(document);
var pos=STSP.findPosition(SemTagMenu.currentElem,false);
var _2c=(STSP.bidi=="rtl")?0-SemTagMenu.menuOffset[0]:SemTagMenu.menuOffset[0];
SemTagMenu.show(SemTagMenu.id,_2a,pos[0]+_2c,pos[1]+SemTagMenu.menuOffset[1],tag.offsetWidth,tag.offsetHeight);
},getMenuTag:function(){
var tag=document.getElementById(SemTagMenu.id);
if(!tag){
tag=document.createElement("div");
tag.setAttribute("id",SemTagMenu.id);
tag.style.position="absolute";
tag.style.display="none";
tag.style.zIndex="99999";
STSP.watchEvent(tag,"mouseout",SemTagMenu.mouseout,false);
STSP.watchEvent(tag,"mouseover",SemTagMenu.mouseover,false);
document.body.insertBefore(tag,document.body.firstChild);
}
return tag;
},show:function(_2d,e,_2e,_2f,_30,_31){
var _32;
var _33;
SemTagMenu.clearTimeouts();
var _34=document.getElementById(_2d);
if(_30==null){
_30=0;
}
if(_31==null){
_31=0;
}
var top,_35;
if(_2e!=null&&_2f!=null){
var top=_2f;
var _35=_2e-(STSP.bidi=="rtl"?_30:0);
}else{
var top=STSP.getEventAbsoluteY(e);
var _35=STSP.getEventAbsoluteX(e);
}
var _36=SemTagMenu.currentElem;
mytest=_36.parentNode;
var _37,_38,d=document;
if(typeof window.innerWidth!="undefined"){
_37=window.innerWidth;
_38=window.innerHeight;
}else{
if(d.documentElement&&typeof d.documentElement.clientWidth!="undefined"&&d.documentElement.clientWidth!=0){
_37=d.documentElement.clientWidth;
_38=d.documentElement.clientHeight;
}else{
if(d.body&&typeof d.body.clientWidth!="undefined"){
_37=d.body.clientWidth;
_38=d.body.clientHeight;
}
}
}
var _39=(document.body.scrollLeft>document.documentElement.scrollLeft)?document.body.scrollLeft:document.documentElement.scrollLeft;
if((_35+_30)>(_37+_39)){
var _3a=(_35+_30)-_37-_39;
_35-=_3a;
}
var _3b=(document.body.scrollTop>document.documentElement.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop;
if((top+_31)>(_38+_3b)){
var _3a=(top+_31)-_38-_3b;
top-=_3a;
}
if(STSP.bidi=="rtl"&&_35<0){
_35=0;
}
var od=SemTagUtil.getOwnerDocument(_36);
if(od.location!=document.location){
var f=SemTagUtil.getFrameElement(_36);
if(f){
var el=f.offsetParent;
var x=0,y=0;
while(el){
x+=el.offsetLeft;
y+=el.offsetTop;
el=el.offsetParent;
}
var lof=_36.offsetParent;
var xx=0,yy=0;
while(lof){
xx+=lof.offsetLeft;
yy+=lof.offsetTop;
lof=lof.offsetParent;
}
if(f.id=="wpsFLY_flyoutIFrame"){
top=y+yy+_36.offsetHeight;
_35=x+xx+_36.offsetWidth;
}else{
top+=f.offsetTop;
_35+=f.offsetLeft;
}
if(SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
_33=f.contentWindow.pageXOffset;
_32=f.contentWindow.pageYOffset;
}
if(!SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
_33=f.contentWindow.document.body.parentNode.scrollLeft;
_32=f.contentWindow.document.body.parentNode.scrollTop;
}
top-=_32;
_35-=_33;
}
}
_34.style.top=top+"px";
_34.style.left=_35+"px";
_34.style.display="block";
SemTagMenu.startHideTimer(_2d);
},hide:function(_3c,e){
SemTagMenu.unregisterMenuEventHandlers(document);
var tag=SemTagMenu.getMenuTag();
if(!tag){
return false;
}
if(tag.style.display!="block"){
return false;
}
tag.style.display="none";
SemTagMenu.showing=false;
try{
var _3d=SemTagMenu.getNextEle(mytest);
}
catch(e){
}
SemTagMenu.setCurrentElement(null);
SemTagMenu.currentHoverLabel=null;
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.a11yMode=false;
SemTagMenu.defaultCursor();
return true;
},getNextEle:function(ele){
var par=ele.parentNode;
while(true){
if(par==null||par=="undefined"){
return false;
}else{
if(par.nodeName=="BODY"){
return par;
}else{
var _3e=par.nextSibling;
if(_3e!=null){
return _3e;
}
par=par.parentNode;
}
}
}
return false;
},offScreen:function(_3f){
_3f.style.top="-1000px";
_3f.style.left="-1000px";
_3f.style.display="block";
},findLiveElementFromEventSource:function(_40){
var _41;
if(SemTagMenu.staticHover){
var id=_40.id;
if(!id.match(SemTagMenu.hoverIdRE)){
var _42=_40.getElementsByTagName("img");
for(var i=0;i<_42.length;i++){
if(_42[i].id&&_42[i].id.match(SemTagMenu.hoverIdRE)){
id=_42[i].id;
break;
}
}
}
if(id&&0<id.length){
var idx=id.substr(STSP.hoverIdPrefix.length);
_41=document.getElementById(STSP.liveElemPrefix+idx);
return _41;
}else{
_41=_40;
return _41;
}
}else{
var _43=SemTagMenu.getCurrentElement();
_41=_43?_43:_40;
return _41;
}
},findHoverFromLiveElement:function(_44){
var _45;
var idx=_44.getAttribute(STSP.hoverIdPrefix+"idx");
_45=document.getElementById(STSP.hoverIdPrefix+idx);
return _45;
},inMenu:function(_46,_47,_48,_49){
if(!_46){
return false;
}
if(!SemTagMenu.showing){
return false;
}
if(!_48){
_48=0;
}
if(!_49){
_49=0;
}
var _4a=STSP.getEventAbsoluteX(_47);
var _4b=STSP.getEventAbsoluteY(_47);
var _4c=_46.style.left.replace(/px$/,"");
var _4d=_46.style.top.replace(/px$/,"");
var _4e=parseInt(_4c)+parseInt(_46.clientWidth);
var _4f=parseInt(_4d)+parseInt(_46.clientHeight);
if((_4a-1<=(_4c-_48))||(_4b-1<=(_4d-_49))||(_4a>=(_4e+_48))||(_4b>=(_4f+_49))){
return false;
}else{
return true;
}
},mouseout:function(_50){
if(_50.type=="blur"){
var _51=STSP.getElementFromEvent(_50);
if(SemTagMenu.currentElem){
STSP.clearEventWatch(SemTagMenu.currentElem,"keydown",SemTagMenu.a11y,false);
}
if(!SemTagMenu.showing){
if(!_51.className.match(SemTagMenu.iconNameRE)){
SemTagMenu.hide();
}
}
}else{
var _52=SemTagMenu.id;
menuElem=document.getElementById(_52);
SemTagMenu.startHideTimer(_52);
}
},mouseover:function(_53){
SemTagMenu.clearTimeouts();
},click:function(_54){
if(!_54){
return;
}
var _55=STSP.getElementFromEvent(_54);
var _56=STSP.getParentByClassName("semtag_header",_55);
var _57=STSP.getParentByClassName("personMenuActions",_55);
if(!_56&&!_57){
SemTagMenu.hide(SemTagMenu.id);
}
},catchKeyup:function(_58){
var _59;
var _5a=false;
if(_58){
if(_58.which){
_59=_58.which;
}else{
_59=_58.keyCode;
}
}
var _5b=document.activeElement.className;
if(_5b.indexOf("lotusui")>-1){
_5a=true;
}
if(_59==16&&_5a&&SemTagMenu.sftflag){
SemTagMenu.exitCard();
}
SemTagMenu.sftflag=false;
},catchEscape:function(_5c){
var key;
if(_5c){
if(_5c.which){
key=_5c.which;
}else{
key=_5c.keyCode;
}
}
if(key==16){
SemTagMenu.sftflag=true;
}
if(key==27){
var _5d=null;
if(SemTagMenu.showing){
var _5e=SemTagMenu.getCurrentElement();
if(_5e){
_5d=STSP.getHoverElement(_5e);
}
}
SemTagMenu.hide();
if(_5d){
_5d.focus();
}
}
},a11y:function(_5f){
if(_5f){
var key;
if(_5f.which){
key=_5f.which;
}else{
key=_5f.keyCode;
}
if(key==13){
var _60=STSP.getElementFromEvent(_5f);
if(_60){
SemTagMenu.a11yMode=true;
var _61=(SemTagMenu.staticHover?_60:SemTagMenu.getMenuTag());
if(SemTagUtil.isGecko){
var evt=document.createEvent("MouseEvents");
evt.initEvent("click",true,true);
SemTagUtil.fireEvent(_61,evt);
}else{
_61.click();
}
SemTagMenu.stopEvent(_5f);
}
}
}else{
var _60=SemTagMenu.currentElem;
if(_60){
SemTagMenu.a11yMode=true;
var _61=(SemTagMenu.staticHover?_60:SemTagMenu.getMenuTag());
if(SemTagUtil.isGecko){
var _62=document.createEvent("MouseEvents");
_62.initEvent("click",true,true);
SemTagUtil.fireEvent(_61,_62);
}else{
_61.click();
}
SemTagMenu.stopEvent(evt);
}
}
return true;
},stopEvent:function(_63){
if(!_63){
return;
}
if(SemTagUtil.isGecko){
try{
_63.preventDefault();
_63.stopPropagation();
}
catch(e){
}
}else{
try{
_63.returnValue=false;
_63.cancelBubble=true;
}
catch(e){
}
}
},startHideTimer:function(_64){
if(0<SemTagMenu.hideDelay&&!SemTagMenu.a11yMode){
SemTagMenu.timeouts.push(window.setTimeout("SemTagMenu.endHideTimer(\""+_64+"\")",SemTagMenu.hideDelay));
}
},endHideTimer:function(_65){
SemTagMenu.hide(_65);
},clearTimeouts:function(){
var tos=SemTagMenu.timeouts;
for(i=0;i<tos.length;i++){
window.clearTimeout(tos[i]);
}
},defaultCursor:function(){
document.body.style.cursor="default";
},waitCursor:function(){
document.body.style.cursor="progress";
},shtest:function(){
var _66=document.getElementById("lessItem");
var _67=document.getElementById("moreItem");
var tds=_66.getElementsByTagName("td");
if(tds&&tds.length>1){
for(var _68=(tds.length-2);_68<tds.length;_68++){
var _69=tds[_68];
_69.style.display="none";
}
}
_67.style.display="block";
},exitCard:function(){
var _6a=null;
if(SemTagMenu.showing){
var _6b=SemTagMenu.getCurrentElement();
if(_6b){
_6a=STSP.getHoverElement(_6b);
}
}
SemTagMenu.hide();
if(_6a){
_6a.focus();
}
}};
if(STSPG.isDynamicLoading&&STSPG.isPersonCardHandlerRequired){
window.setTimeout(SemTagMenu.init,STSP.DELAY);
}



	

var SemTagPerson={INLINE:"X-person-display-inline",activeElems:new Array(),requestor:new SemTagUtil.crossDomainRequest(),basePumaResolvedUrl:STSPG.basePumaResolvedUrl,collapsedImgUrl:STSPG.contextUrl+"/ui/imgcollapsed.gif",expandedImgUrl:STSPG.contextUrl+"/ui/imgexpanded.gif",moreActionImgUrl:STSPG.contextUrl+"/ui/ShowActions.gif",verticalRulerUrl:STSPG.contextUrl+"/ui/Line_Tree.gif",profileImageUrl:STSPG.contextUrl+"/ui/Properties.gif",noPhotoPersonUrl:STSPG.contextUrl+"/ui/NoPhotoPerson.gif",pumaUrl:"um/secure/users/profiles",init:function(){
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==false){
if(eval("document.body != null")==false){
SemTagPerson.processUntilAvailable(SemTagPerson.init,"(document.body != null)",null,null,null,null);
return;
}else{
SemTagPerson.loadScript();
}
}
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==true){
if(eval("document.body != null")==false){
SemTagPerson.processUntilAvailable(SemTagPerson.init,"(document.body != null)",null,null,null,null);
return;
}else{
STSP.loadConnScript();
}
}
STSP.setCallback("hcard",SemTagPerson.hcardsAdded);
STSP.setCallback("mailto",SemTagPerson.mailtosAdded);
SemTagPerson.processHcards(STSP.getNodes("hcard"));
SemTagPerson.processMailtos(STSP.getNodes("mailto"));
STSP.watchEvent(window,"load",SemTagPerson.clearInternalData,false);
},loadScript:function(){
var _1=document.createElement("script");
var _2=STSP.connUrl;
_2+=(_2.indexOf("?")==-1)?"?":"&";
_2+="lang="+STSP.lang;
_1.src=_2;
document.body.insertBefore(_1,document.body.firstChild);
},clearInternalData:function(){
var _3=SemTagPerson.activeElems;
while(_3!=="undefined"&&_3!=null&&0<_3.length){
_3.pop();
}
},nls:{"start_chat":STSPG.start_chat,"add_to_contact":STSPG.add_to_contact,"send_email":STSPG.send_email,"view_person":STSPG.view_person,"hover_label":STSPG.hover_label_person,"work_location":STSPG.work_location,"specify_email_if_connection":STSPG.specify_email_if_connection},getPersonResolverUrl:STSPG.getPersonResolverUrl,getMarkup:function(_4,_5,_6,_7,_8,_9){
var _a="";
var _b=(typeof (_4.email)!="undefined"&&_4.email.internet)?_4.email.internet:null;
if(!(STSP.ifConnUrlExists=="true"&&_b!=null)){
if(_4._profileinplace){
var _c=_4.uid.replace(/\\/g,"&perc5C");
_a="javascript:SemTagPerson.executeJSTargetInFrame(\"javascript:doShowProfile(\\\""+_c+"\\\")\")";
}else{
_a="javascript:SemTagPerson.openPersonRecord()";
}
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.view_person,_a,-100));
}
if(_b){
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.send_email,"mailto:"+_b,-90));
}
var _d=(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined");
if(_d){
}
if(STSP.sametimeSTProxy){
var _e="javascript:SemTagAwrns.openAddToContacts(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuAddToContacts,_e,-40));
}
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
var _f="javascript:SemTagAwrns.openChat(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.start_chat,_f,-80));
if(STSP.sametimeSTProxy){
var _10="javascript:SemTagAwrns.openCall(\""+_4.X.imn+"\")";
var _11="javascript:SemTagAwrns.openInstantMeeting(\""+_4.X.imn+"\")";
var _12="javascript:SemTagAwrns.openSendAnnouncement(\""+_4.X.imn+"\")";
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuCall,_10,-70));
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuInstantMeeting,_11,-60));
_6.push(STSP.getMenuItemJson(stproxy.uiControl.i18nStrings.contextMenuSendAnnouncement,_12,-50));
}
if(STSP.sametimeSTLinks){
_6.push(STSP.getMenuItemJson(SemTagPerson.nls.add_to_contact,"javascript:SemTagPerson.addToSametimeList()",-11));
}
}
var _13=STSP.getActions("person");
if(_13){
for(i=0;i<_13.length;i++){
var _14=_13[i].showif;
var _15=true;
if(_14){
try{
var _16=eval(_14);
_15=_16.call(null,SemTagPerson.currentPerson);
}
catch(e){
try{
var _16=eval(_14);
_15=_16.call(null,SemTagPerson.currentPerson);
}
catch(e2){
_15=false;
}
}
}
if(_15){
var _17=_13[i].label;
if(_17.match(/nls\.[a-z]/)){
_17=eval(_17);
}
if(!(_17.indexOf("Send Instant")>-1)){
var _18=_13[i].url.replace(/@@@ARGS@@@/g,"SemTagPerson.currentPerson");
_6.push(STSP.getMenuItemJson(_17,_18,_13[i].order));
}
}
}
}
if(!_4._inline){
if(STSP.ifConnUrlExists=="true"&&(STSP.isconnServerNew==false)&&(_b!=null)){
_8.write("<div class='popupPersonCard' id='businessCard'>");
_8.write("</div>");
}else{
var _19="";
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
_19=_4.X.ststatus;
}
var _1a=null;
if(_4.photo!=null&&_4.photo!=="undefined"&&_4.photo.length>0){
_1a=_4.photo;
}else{
_1a=SemTagPerson.noPhotoPersonUrl;
}
_8.write("<div class ='businessCardMenu'>");
_8.write("<span class='photoCard' id ='imageSpan'><div id='imageDiv' style='height:90px; width:90px' >");
_8.write("<img id='personImg' tabindex=0 style='border:1px solid rgb(192,192,192);float:right;padding:10px ; height:50px; width:50px; background-color:white;margin-right:6px' src='"+_1a+"' onMouseover='SemTagPerson.imgHoverIn();return false;' alt='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' title='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' role='region' aria-label='UserImage' / >");
_8.write(" <img id='personImg1' tabindex=0 style='display:none;border:1px solid rgb(192,192,192);float:right;padding:10px ; height:82px; width:82px; background-color:white;margin-right:6px' src='"+_1a+"' onMouseout='SemTagPerson.imgHoverOut();return false;' alt='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' title='"+_4.fn+" "+SemTagMenu.nls.a11y_photo+"' role='region' aria-label='UserImage'/></div></span>");
_8.write("<div class='businessCard'><ul role='region' aria-label='listitem'dir='"+_5+"'>");
_8.write("<li class='cardName' onkeydown=\"SemTagMenu.catchEscape();\" onkeyup=\"SemTagMenu.catchKeyup();\" role='region' aria-label='listitem'><a href='#' style='text-Decoration:none;color:black'>"+_4.fn+"</a></li>");
if(typeof (SemTagAwrns)!="undefined"&&typeof (_4.X.ststatus)!="undefined"&&(_4.X.ststatus=="online"||_4.X.ststatus=="away")){
_8.write("<span id='statusIcon' style='vertical-align:text-top'><a href='#' style='text-Decoration:none;color:black'>"+SemTagAwrns.st+_19+"</a></span>");
}
if(STSPG.collapsedItems!=null){
_8.write(SemTagPerson.getItemsAsHtml(STSPG.collapsedItems,"collapsed"));
}
_8.write("</ul></div>");
if(STSPG.showDetailsFlag){
_8.write("<div class='showMoreDiv'>");
_8.write("<span id='expCollapSpan' tabIndex=0 alt='"+SemTagMenu.nls.ally_collapsedImage+"'title='"+SemTagMenu.nls.ally_collapsedImage+"'onClick='SemTagPerson.imgClicked();' onKeydown='SemTagPerson.imgClicked();'><img id='expCollapImg'src='"+SemTagPerson.collapsedImgUrl+"' role='region' aria-label='showMore'/> <label id='toggleLabel' class='showMoreLabel'>"+SemTagMenu.nls.ally_showMore+"</label></font></span>");
_8.write("</div>");
}
_8.write("<div class='businessCardExtended' id='expandedSection' style='display:none'><ul role='region' aria-label='listItem' style='padding-top:5px;align:left;' dir='"+_5+"'>");
if(STSPG.expandedItems!=null){
_8.write(SemTagPerson.getItemsAsHtml(STSPG.expandedItems,"expanded"));
}
_8.write("<li></li></ul></div>");
_8.write("</div>");
}
}
},getItemsAsHtml:function(_1b,_1c){
var _1d=new String("");
if(_1b!=null){
var _1e=_1b.split(",");
var i=0;
while(i<_1e.length){
var _1f=_1e[i].replace(/^\s+|\s+$/g,"");
var _20=new String("");
if(_1f.match("businessCategory")){
_20=".category";
}else{
if(_1f.match("carLicense")){
_20=".X.carlicense";
}else{
if(_1f.match("cn")&&_1f.length==2){
_20=".fn";
}else{
if(_1f.match("countryName")){
_20=".adr.countryname";
}else{
if(_1f.match("departmentNumber")){
_20=".X.departmentnumber";
}else{
if(_1f.match("description")){
_20=".note";
}else{
if(_1f.match("displayName")){
_20=".fn";
}else{
if(_1f.match("employeeNumber")){
_20=".X.employeenumber";
}else{
if(_1f.match("employeeType")){
_20=".X.employeetype";
}else{
if(_1f.match("facsimileTelephoneNumber")){
_20=".tel.fax";
}else{
if(_1f.match("givenName")){
_20=".n.givenname";
}else{
if(_1f.match("homePostalAddress")){
_20=".X.homeaddress";
}else{
if(_1f.match("ibm-gender")){
_20=".X.gender";
}else{
if(_1f.match("ibm-generationQualifier")){
_20=".n.honorificsuffix";
}else{
if(_1f.match("ibm-hobby")){
_20=".X.hobby";
}else{
if(_1f.match("ibm-jobTitle")){
_20=".title";
}else{
if(_1f.match("ibm-middleName")){
_20=".n.additionalname";
}else{
if(_1f.match("ibm-otherEmail")){
_20=".email.X_notes";
}else{
if(_1f.match("ibm-personalTitle")){
_20=".n.honorificprefix";
}else{
if(_1f.match("ibm-primaryEmail")){
_20=".email.internet";
}else{
if(_1f.match("mail")&&_1f.length==4){
_20=".email.internet";
}else{
if(_1f.match("ibm-regionalLocale")){
_20=".X.locale";
}else{
if(_1f.match("ibm-timeZone")){
_20=".tz";
}else{
if(_1f.match("initials")){
_20=".X.initials";
}else{
if(_1f.match("localityName")){
_20=".adr.locality";
}else{
if(_1f.match("manager")){
_20=".X.manager";
}else{
if(_1f.match("mobile")){
_20=".tel.cell";
}else{
if(_1f.match("o")&&_1f.length==1){
_20=".org.name";
}else{
if(_1f.match("ou")&&_1f.length==2){
_20=".org.unit";
}else{
if(_1f.match("pager")){
_20=".tel.pager";
}else{
if(_1f.match("postalAddress")){
_20=".X.fulladdress";
}else{
if(_1f.match("postalCode")){
_20=".adr.postalcode";
}else{
if(_1f.match("preferredLanguage")){
_20=".X.language";
}else{
if(_1f.match("roomNumber")){
_20=".adr.extendedaddress";
}else{
if(_1f.match("secretary")){
_20=".X.secretary";
}else{
if(_1f.match("seeAlso")){
_20=".url";
}else{
if(_1f.match("sn")&&_1f.length==2){
_20=".n.familyname";
}else{
if(_1f.match("stateOrProvinceName")){
_20=".adr.region";
}else{
if(_1f.match("street")){
_20=".adr.streetaddress";
}else{
if(_1f.match("telephoneNumber")){
_20=".tel.voice";
}else{
if(_1f.match("uid")&&_1f.length==3){
_20=".uid";
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
if(0<_20.length){
var _21=new String("");
var pos=_20.indexOf(".",1);
while(pos!=-1){
if(0<_21.length){
_21+=" && ";
}
_21+="SemTagPerson.currentPerson"+_20.substring(0,pos);
pos=_20.indexOf(".",pos+1);
}
if(0<_21.length){
_21+=" && ";
}
_21+="SemTagPerson.currentPerson"+_20;
var _22=0;
if(_1c.match("expanded")){
_22=0;
}
if(_1c.match("collapsed")){
_22=1;
}
var _23=_21.toString();
var _24=eval(_21.toString());
var _25="<li +tabindex="+_22+" style='padding-bottom:3px'> "+eval(_21.toString())+"</li>";
if(_1f.indexOf("mail")!=-1){
_25="<li><a href='mailto: "+eval(_21.toString())+"'> "+eval(_21.toString())+"</a></li>";
}
if(eval(_21.toString())){
_1d+=_25;
}
}
i++;
}
}
return _1d;
},imgClicked:function(){
var _26=document.getElementById("expCollapImg");
var _27=document.getElementById("expCollapSpan");
var _28=document.getElementById("toggleLabel");
var _29=document.getElementById("expandedSection");
var _2a=navigator.appName;
if(_2a=="Netscape"){
_29.style.width="240";
}else{
_29.style.width="378";
}
if(_26.src.indexOf(SemTagPerson.expandedImgUrl)>1){
_26.src=SemTagPerson.collapsedImgUrl;
_27.title=SemTagMenu.nls.ally_collapsedImage;
_28.innerHTML=SemTagMenu.nls.ally_showMore;
}else{
_26.src=SemTagPerson.expandedImgUrl;
_27.title=SemTagMenu.nls.ally_expandImage;
_28.innerHTML=SemTagMenu.nls.ally_showLess;
}
var _2b=document.getElementById("expandedSection");
_2b.style.display=(_2b.style.display!="none"?"none":"");
},imgHoverIn:function(){
var _2c=document.getElementById("personImg");
var _2d=document.getElementById("personImg1");
_2c.style.display="none";
_2d.style.display="";
},imgHoverOut:function(){
var _2e=document.getElementById("personImg");
var _2f=document.getElementById("personImg1");
_2e.style.display="";
_2f.style.display="none";
},getInlineMarkup:function(_30,_31,_32){
var _33=_30.email.internet;
_32.write("<div class='personMenu'>");
_32.write("<div class='photoCard'><img src='"+_30.photo+"' alt=''/></div>");
_32.write("<div class='businessCard' dir='"+_31+"'>");
var _34=(_30._headeronly?"class='vcard X-person-inside-inline'":"");
_32.write("<ul "+_34+" dir='"+_31+"'>");
_32.write("<li class='cardName'><span class='fn'>"+_30.fn+"</span></li>");
_32.write("<li class='email'><span class'type' style='display:none;'>internet</span><span class='value'>"+_33+"</span></li>");
if(_30.title){
_32.write("<li>"+_30.title+"</li>");
}
if(_30.tel&&_30.tel.voice){
_32.write("<li>"+_30.tel.voice+"</li>");
}
_32.write("</ul>");
_32.write("</div>");
if(_30._headeronly){
_32.write("<div style='clear:both;'>");
}else{
_32.write("<div class='personMenuActions' dir='"+_31+"' style='clear:both;'>");
_32.write("<ul>");
_32.write("<li><a href='NEEDSWORK"+"'>"+SemTagPerson.nls.view_person+"</a></li>");
_32.write("<li><a href='mailto:"+_33+"'>"+SemTagPerson.nls.send_email+"</a></li>");
_32.write("<li><a href='NEEDSWORK"+"'>"+SemTagPerson.nls.add_to_contact+"</a></li>");
_32.write("</ul>");
}
_32.write("</div>");
_32.write("</div>");
},openPersonRecord:function(id){
var _35;
var _36=null;
if(id!=="undefined"&&id!=null){
_36=id;
}else{
_35=SemTagPerson.currentPerson;
if(_35&&_35.uid&&_35.uid.length>0){
_36=_35.uid;
}else{
if((typeof (_35.email)!="undefined"&&typeof (_35.email.internet)!="undefined"&&0<_35.email.internet.length)){
_36=_35.email;
}else{
if(_35&&_35.userObjectID&&_35.userObjectID.length>0){
_36="OBJID="+_35.userObjectID;
}
}
}
}
var _37=encodeURIComponent(_36);
var _38=encodeURIComponent(_37);
var _39=SemTagPerson.getPersonResolverUrl();
var _3a=SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_38);
window.open(SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_38),null,"height=640,width=512,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
},openCardORPersonRecord:function(id){
if(STSP.isMobile){
availAttrib.retrieveAttribute();
SemTagPerson.showMenu();
}else{
var _3b=SemTagMenu.currentElem;
var _3c=SemTagUtil.getHcardAttributeValue("X-person-profile-inplace",_3b);
if(_3c){
javascript:
doShowProfile(id);
}else{
SemTagPerson.openPersonRecord(id);
}
}
},addToSametimeList:function(){
var _3d=SemTagPerson.currentPerson.email.internet;
var fn_=encodeURIComponent(SemTagPerson.currentPerson.fn);
var fn=encodeURIComponent(fn_);
window.open(SemTagPerson.getPersonResolverUrl().replace("TOBEREPLACED",_3d+"/"+fn),null,"height=640,width=512,resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no");
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},processHcards:function(_3e){
var _3f=_3e?_3e.length:0;
if(!_3e||_3f==0){
return;
}
for(var i=0;i<_3e.length;i++){
var _40=_3e[i];
var _41=SemTagPerson.getNameElement(_40);
if(!_41){
continue;
}
var _42=_41.getAttribute(STSP.liveElemPrefix+"id");
if(_42&&STSP.ifConnUrlExists=="false"){
if(SemTagPerson.activeElems[_42]){
continue;
}else{
continue;
}
}
var _43=STSP.getElementsByClassName("email",_40);
_43=_43||null;
if((_43==null||_43.length==0)&&STSP.ifConnUrlExists=="true"){
}
if(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew){
var _44=_45?_45.internet:"Not defined";
try{
if(eval("window.lconn != null")==false||(lconn.profiles==null||lconn.profiles=="undefined")){
SemTagPerson.processUntilAvailable(SemTagPerson.processHcards,"window.lconn != null && !(lconn.profiles == null || lconn.profiles == 'undefined')",null,null,null,_3e);
}else{
lconn.profiles.bizCard.bizCard.processTag(_41);
}
}
catch(e){
}
}
var _46=STSP.getElementsByClassName("userObjectId",_40);
var _45=SemTagUtil.getHcardAttributeValue("email",_40);
if(!_46){
if(!_45.internet){
var uid=SemTagUtil.getHcardAttributeValue("uid",_40);
if(!uid){
continue;
}
}
}
if(SemTagPerson.isInline(_40)){
var _47={"target":_41};
SemTagPerson.requestPersonInfo(_47);
}else{
var _48=STSP.getTextValue(_41);
var _49=_48.indexOf("click");
var _4a=_48.substring(0,_49)+SemTagPerson.nls.hover_label+" "+SemTagMenu.nls.a11y_hover;
if(STSP.ifConnUrlExists=="false"||(STSP.ifConnUrlExists=="true"&&STSP.isconnServerNew==false)){
STSP.addHover(_41,SemTagPerson.showHover,SemTagPerson.showMenu,_4a);
}else{
var _4b=_41.getAttribute(STSP.refcntAttr);
if(_4b){
_41.setAttribute(STSP.refcntAttr,parseInt(Number(_4b)+1));
}else{
_41.setAttribute(STSP.refcntAttr,"1");
STSP.hoverIdx++;
_41.setAttribute(STSP.liveElemPrefix+"id",STSP.hoverIdx);
}
}
_42=_41.getAttribute(STSP.liveElemPrefix+"id");
if(_42){
SemTagPerson.activeElems[_42]=true;
}
}
}
},processUntilAvailable:function(_4c,_4d,_4e,_4f,_50,_51){
if(typeof (_4c)!="function"){
return;
}
var _52=500;
var _53=20;
var _54=true;
if(typeof (_4f)=="number"){
_52=_4f;
}
if(typeof (_50)=="number"){
_53=_50;
}
if(typeof (_4e)=="boolean"){
_54=_4e;
}
var _55="";
var _56=0;
console.log("eval(test) is :"+eval(_4d));
var _57=Array.prototype.slice.call(arguments);
var _58=_57.shift();
var _59=_57.shift();
var _5a=_57.shift();
var _5b=_57.shift();
var _5c=_57.shift();
if(eval(_4d)){
if(_51!=null){
_4c.apply(null,Array.prototype.slice.call(_57));
}else{
_4c();
}
return;
}
_55=window.setInterval(function(){
_56++;
if(eval(_4d)){
window.clearInterval(_55);
if(_51!=null){
_4c.apply(null,Array.prototype.slice.call(_57));
}else{
_4c();
}
}else{
if(_56>=_53){
window.clearInterval(_55);
if(_54){
throw new Error("processUntilAvailable: test was never met: "+_4d);
}
}
}
},_52);
},isInline:function(_5d){
var _5e=SemTagUtil.getHcardAttributeValue(SemTagPerson.INLINE,_5d);
return _5e;
},processMailtos:function(_5f){
if(!_5f||_5f.length==0){
return;
}
while(_5f.length>0){
var _60=_5f.pop();
STSP.watchEvent(_60,"mouseover",SemTagPerson.tagMouseover,false);
}
},hcardsAdded:function(_61){
var _62=STSP.getNodes("hcard");
var _63=_62?_62.length:0;
if(_61&&_61.length>0){
SemTagPerson.processHcards(_61);
}else{
SemTagPerson.processHcards(STSP.getNodes("hcard"));
}
},hcardsAdded:function(){
var _64=STSP.getNodes("hcard");
var _65=_64?_64.length:0;
SemTagPerson.processHcards(STSP.getNodes("hcard"));
},mailtosAdded:function(){
SemTagPerson.processMailtos(STSP.getNodes("mailto"));
},showHover:function(_66){
var _67=SemTagUtil.getHcardAttributeValue("X-person-inside-inline",STSP.getLiveElementFromEvent(_66));
var _68=_67?null:SemTagPerson.nls.hover_label;
STSP.showHover(_66,SemTagPerson.showMenu,_68);
return false;
},showMenu:function(_69){
SemTagMenu.waitCursor();
SemTagMenu.stopEvent(_69);
SemTagPerson.requestPersonInfo(_69);
return false;
},renderCard:function(_6a){
var _6b=new BusinessCard.out();
BusinessCard.getMenuData(_6a,null,null,null,_6b);
var _6c=document.getElementById("businessCard");
_6c.innerHTML=_6b.buffer;
},requestPersonInfo:function(_6d){
SemTagPerson.callUserProfileServlet(SemTagPerson,_6d);
},dispatch:function(_6e){
var _6f=(_6e.email&&_6e.email.internet)?_6e.email.internet:null;
if(_6f){
SemTagPerson.requestor.dispatch(_6f.toLowerCase(),_6e);
}
},requestReturn:function(_70,_71,_72){
var _73=_70?"success":"fail";
var _74=_70?_71:SemTagPerson.emptyPerson();
if(_74){
var _75=STSP.getLiveElementFromEvent(_72);
SemTagPerson.fillPersonJsonMoreFromDom(_74,_75);
SemTagPerson.update(_74,_75,_72);
}else{
SemTagMenu.defaultCursor();
}
},appendObjectIdToUrl:function(_76){
var _77=SemTagPerson.basePumaResolvedUrl.indexOf(SemTagPerson.pumaUrl);
var _78="";
if(_77>-1){
_78=SemTagPerson.basePumaResolvedUrl.substr(0,_77)+SemTagPerson.pumaUrl+"/"+_76+SemTagPerson.basePumaResolvedUrl.substr(_77+SemTagPerson.pumaUrl.length);
}
return _78;
},fillPersonJsonMoreFromDom:function(_79,_7a){
var _7b=STSP.findNameElementInHcard(_7a);
if(_7b){
var _7c=STSP.getTextValue(_7b);
var _7d=_7c.indexOf("click");
if(_7d>0){
_79.fn=_7c.substring(0,_7d);
}else{
_79.fn=STSP.getTextValue(_7b);
}
}
var _7e=SemTagPerson.getElementEmail(_7a);
if(_7e){
_79.email={"internet":_7e};
}
var uid=SemTagUtil.getHcardAttributeValue("uid",_7a);
if(uid){
_79.uid=uid;
}
var _7f=SemTagUtil.getHcardAttributeValue("userObjectId",_7a);
if(_7f&&_7f.length>0){
_79.userObjectID=_7f;
}
if(_79.userObjectID){
var _80=_79.userObjectID.split("/");
if(_80&&_80.length>0){
_79.userObjectID=_80[_80.length-1];
}
}
if(_79){
var _81=(_79.photo&&_79.photo.length>0?"not null":"is not available");
}
if(_79&&_79.photo&&_79.photo.length>0){
if(_79.userObjectID&&_79.userObjectID.length>0){
var _82=SemTagPerson.appendObjectIdToUrl(_79.userObjectID+"/jpegPhoto");
_79.photo=_82+"&index=0";
}else{
_79.photo=_79.photoURL;
}
}
if(!_79.tel||!_79.tel.voice){
var _83=STSP.findElementByNameInHcard(_7a,"tel");
if(_83){
var _84=STSP.getTypedValue(_83,"voice");
_79.tel={"voice":_84["voice"]};
}
}
var _85=STSP.findElementByNameInHcard(_7a,"adr");
var _86={};
if(_85){
_86=SemTagPerson.getAddressJson(_85);
_79.adr=_86;
}
if(typeof (_79.adr)!="undefined"&&(_79.adr.locality||_79.adr.countryname||_79.adr.region)){
if(!_79.X){
_79.X={};
}
var _81=_79.adr.locality+", "+_79.adr.region+" "+_79.adr.countryname;
_79.X.worklocation=_81.replace(/undefined/g,"");
}
if(typeof (SemTagAwrns)!="undefined"){
if(!_79.X){
_79.X={};
}
_79.X.imn=SemTagAwrns.getSametimeId(_7a);
_79.X.ststatus=_7b.getAttribute("semtag_ststatus");
}
},emptyPerson:function(){
var _87={"fn":"","email":{"internet":""}};
return _87;
},update:function(_88,_89,_8a){
SemTagPerson.currentPerson=_88;
var _8b=STSP.getParentByClassName("vcard",_89);
var _8c=SemTagUtil.getHcardAttributeValue("X-person-header-only",_8b);
if(_8c){
_88._headeronly=true;
}
SemTagPerson.readHcardContext(_8b,_88);
STSP.setSemanticTagValue("hcard",_89,_88);
if(SemTagPerson.isInline(_8b)){
var out=new SemTagPerson.out();
SemTagPerson.getInlineMarkup(_88,STSP.bidi,out);
_8b.innerHTML=out.buffer;
var _8d=SemTagUtil.getNodeClassValue(_8b);
SemTagUtil.setNodeClassValue(_8b,_8d.replace(/vcard/,"vcard-done"));
if(_8c){
var _8e=STSP.getElementsByClassName("vcard",_8b,1);
if(_8e){
SemTagPerson.processHcards(_8e);
}
}
}else{
var _8f=new Array();
var _90="personMenuActions";
var _91=new SemTagPerson.out();
var _92=new SemTagPerson.out();
SemTagPerson.getMarkup(_88,STSP.bidi,_8f,_90,_91,_92);
var _93=(typeof (_88.email)!="undefined"&&_88.email.internet)?_88.email.internet:null;
STSP.setMenuData(_8a,_8f,_90,STSP.getMenuHeaderJson(_91.buffer,"text/html",-100),STSP.getMenuFooterJson(_92.buffer,"text/html",-100));
if(STSP.ifConnUrlExists=="true"&&(STSP.isconnServerNew===false)&&_93!=null){
if(eval("window.BusinessCard != null")==false){
SemTagPerson.processUntilAvailable(BusinessCard.getProfileInfo,"(window.BusinessCard != null)",null,null,null,true,"SemTagPerson.renderCard",_93);
}else{
BusinessCard.getProfileInfo(true,"SemTagPerson.renderCard",_93);
}
}
}
},readHcardContext:function(_94,_95){
var _96=SemTagUtil.getHcardAttributeValue("X-person-inside-inline",_94);
if(_96){
_95._inline=true;
}
var _97=SemTagUtil.getHcardAttributeValue("X-person-inside-profile",_94);
if(_97){
_95._inprofile=true;
}
var _98=SemTagUtil.getHcardAttributeValue("X-person-profile-inplace",_94);
if(_98){
_95._profileinplace=true;
}
},getElementEmail:function(_99){
if(!_99){
alert("getElementEmail called with: "+_99);
}
var _9a;
var _9b=STSP.getParentByClassName("vcard",_99);
if(_9b){
_9a=SemTagUtil.getHcardAttributeValue("email",_9b);
_9a=_9a.internet;
}else{
if(_99.tagName=="A"&&_99.href.match(/^mailto:/)){
_9a=_99.href.replace(/^mailto:/,"");
}
}
return _9a;
},getNameElement:function(_9c){
try{
if(_9c.className!="vcard"){
_9c=STSP.getParentByClassName("vcard",_9c);
}
var _9d=STSP.getElementsByClassName("fn",_9c,1)[0];
if(!_9d){
_9d=STSP.getElementsByClassName("n",_9c,1)[0];
}
return _9d;
}
catch(e){
}
return null;
},getAddressJson:function(_9e){
var _9f={"postofficebox":"","streetaddress":"","locality":"","region":"","postalcode":"","countryname":""};
var _a0=_9e;
if(_a0.className!="adr"){
_a0=STSP.getParentByClassName("adr",_9e);
}
if(_a0){
var _a1=_a0.childNodes;
for(var i=0;i<_a1.length;i++){
SemTagPerson.readAddressInfo(_a1[i],_9f);
}
}else{
_9f.streetaddress="5 Technology Park Drive";
_9f.locality="Westford";
_9f.region="MA";
_9f.postalcode="01886";
_9f.countryname="USA";
}
return _9f;
},readAddressInfo:function(_a2,_a3){
var _a4=_a2.childNodes;
if(_a4){
for(var i=0;i<_a4.length;i++){
SemTagPerson.readAddressInfo(_a4[i],_a3);
}
}
if(_a2.className!=null){
var cn=_a2.className;
if(cn.match(/(^|\s)post-office-box(\s|$)/i)){
_a3.postofficebox=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)extenodeed-address(\s|$)/i)){
_a3.extenodeedaddress=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)street-address(\s|$)/i)){
_a3.streetaddress=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)locality(\s|$)/i)){
_a3.locality=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)region(\s|$)/i)){
_a3.region=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)postal-code(\s|$)/i)){
_a3.postalcode=STSP.getTextValue(_a2);
}else{
if(cn.match(/(^|\s)country-name(\s|$)/i)){
_a3.countryname=STSP.getTextValue(_a2);
}
}
}
}
}
}
}
}
},existsInObject:function(_a5,_a6){
var _a7=_a6.split(".");
var _a8=_a5;
var _a9=true;
for(var i=0;i<_a7.length;i++){
var _aa;
if(_a7[i].indexOf("(")>-1){
_aa=_a7[i].substr(0,_a7[i].indexOf("("));
}else{
_aa=_a7[i];
}
if(_a8[_aa]){
_a8=_a8[_aa];
}else{
_a9=false;
break;
}
}
return _a9;
},executeJSTargetInFrame:function(_ab){
if(_ab.indexOf("javascript:")>-1){
var _ac=_ab.substr(("javascript:".length));
var _ad=window;
if(!SemTagPerson.existsInObject(window,_ac)){
for(var i=0;i<parent.frames.length;i++){
if(SemTagPerson.existsInObject(parent.frames[i],_ac)){
_ad=parent.frames[i];
break;
}
}
}else{
}
_ad.eval(_ab);
}else{
}
},getTagFromServer:function(_ae){
var _af=STSP.getLiveElementFromEvent(_ae);
var _b0=SemTagPerson.getElementEmail(_af);
if(_b0){
_b0=_b0.toLowerCase();
var src=SemTagPerson.servletUrl.replace(/@@@EMAIL@@@/,_b0);
SemTagPerson.requestor.request(src,6000,SemTagPerson.requestReturn,_af,_b0);
}else{
var evt={"target":_af};
SemTagPerson.requestReturn(false,null,evt);
}
},callUserProfileServlet:function(_b1){
var _b2="";
var _b3=STSP.getLiveElementFromEvent(_b1);
var _b4="";
var _b5=SemTagPerson.getElementEmail(_b3);
if(_b5){
_b4="ibm-primaryEmail="+_b5;
}
var uid=SemTagUtil.getHcardAttributeValue("uid",_b3);
if(uid){
_b4="identifier="+uid;
}
_b2=SemTagUtil.getHcardAttributeValue("userObjectId",_b3);
var xml=null;
try{
if(_b2&&_b2.length>0){
var _b6=SemTagPerson.appendObjectIdToUrl(_b2)+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr));
}else{
if(uid&&uid.length>0){
var _b6=SemTagPerson.basePumaResolvedUrl+"&@@@QUERY@@@&includeAttributes=@@@AVAILATTRIBUTES@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
try{
xml=ibm.portal.xml.loadXml(_b6.replace("@@@QUERY@@@",_b4));
}
catch(er){
if(uid.indexOf("uid=")==0){
_b4=uid;
}else{
_b4="uid="+uid;
}
var _b7=SemTagPerson.basePumaResolvedUrl+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@&searchAttributes=@@@QUERY@@@";
_b7=_b7.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b7.replace(/@@@QUERY@@@/,_b4));
}
}else{
var _b6=SemTagPerson.basePumaResolvedUrl+"&expandRefs=true&includeAttributes=@@@AVAILATTRIBUTES@@@&searchAttributes=@@@QUERY@@@";
_b6=_b6.replace("@@@AVAILATTRIBUTES@@@",STSP.availAttribStr);
xml=ibm.portal.xml.loadXml(_b6.replace(/@@@QUERY@@@/,_b4));
}
}
}
catch(e){
var evt={"target":_b3};
SemTagPerson.requestReturn(false,null,evt);
return false;
}
if(xml){
if(0<_b2.length){
var xsl=ibm.portal.xml.loadXsl(STSPG.contextUrl+"/xsl/UserAtomByIdToPersonJson.xsl");
}else{
var xsl=ibm.portal.xml.loadXsl(STSPG.contextUrl+"/xsl/UserAtomToPersonJson.xsl");
}
var _b8=ibm.portal.xml.transform(xml,xsl,null,null,true);
var _b9=eval(_b8)[0];
if(!_b9&&!_b9.fn){
_b9=SemTagPerson.emptyPerson();
}
SemTagPerson.fillPersonJsonMoreFromDom(_b9,_b3);
SemTagPerson.update(_b9,_b3,_b1);
return;
}else{
}
var evt={"target":_b3};
SemTagPerson.requestReturn(false,null,evt);
}};
SemTagPerson.init();


var SemTagAwrns={SVCNAME:"sametime",hcards:new Array(),activeElems:[],hasApplet:false,imIds:STSPG.preferredImIds,st:"",stIR:false,init:function(){
STSP.setCallback(SemTagAwrns.SVCNAME,SemTagAwrns.hcardsAdded);
SemTagAwrns.processHcards(STSP.getNodes(SemTagAwrns.SVCNAME));
},hcardsAdded:function(){
SemTagAwrns.processHcards(STSP.getNodes(SemTagAwrns.SVCNAME));
},processHcards:function(_1){
_1=_1||null;
if(_1==null){
return;
}
STSP.sametimeSTProxy=(typeof (stproxy)!=="undefined");
STSP.sametimeSTLinks=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)!=="undefined"));
STSP.stNI=((typeof (stproxy)==="undefined")&&(typeof (prepareSametimeLink)==="undefined"));
if(!STSP.sametimeSTProxy&&!STSP.sametimeSTLinks){
return;
}else{
}
SemTagAwrns.hcards=[];
SemTagAwrns.hcards=_1;
if(STSP.sametimeSTProxy){
stproxy.addOnLoad(function(){
var _2=SemTagAwrns.hcards;
for(var i=0;i<_2.length;i++){
var _3=_2[i];
if(SemTagAwrns.disabled(_3)){
continue;
}
var _4=STSP.findNameElementInHcard(_3);
if(!_4){
continue;
}
var _5=_4.getAttribute(STSP.liveElemPrefix+"id");
var _6=SemTagAwrns.activeElems[_5];
if(_5==null){
continue;
}
if(_5&&SemTagAwrns.activeElems[_5]){
continue;
}
var _7=SemTagAwrns.getSametimeId(_3);
var _8=SemTagUtil.getHcardAttributeValue("X-sametime-resolve",_3);
if(!_8){
continue;
}
var _9=document.createElement("span");
var _a=SemTagUtil.getHcardAttributeValue("x-sametime-no-icon",_3);
SemTagAwrns.stIR=false;
if(_a){
SemTagAwrns.stIR=true;
}
var _b=stproxy.getLiveNameModel(_7,{"isInBuddyList":false,"forceWatchlist":true});
_b.portalId=_7;
var _c=SemTagAwrns.getStatus(_b.status);
if(_4){
_4.setAttribute("semtag_ststatus",_c);
}
if(!(SemTagAwrns.stIR)){
var _d=document.createElement("img");
_d.id=i;
_d.imgId=_b.id;
SemTagAwrns.setSTIS(_b,_d,stproxy);
_9.appendChild(_d);
_9.setAttribute("class","sametimeawarenessicon");
_9.className+=" sametimeawarenessicon";
_4.parentNode.insertBefore(_9,_4);
}
if(stproxy.hitch&&stproxy.hitch.connect){
stproxy.hitch.connect(_b,"onUpdate",SemTagAwrns.updateSTProxy);
}else{
_b.onUpdate=SemTagAwrns.updateSTProxy;
}
if(_5){
SemTagAwrns.activeElems[_5]=true;
}
}
});
}
if(STSP.sametimeSTLinks){
for(var i=0;i<_1.length;i++){
var _e=_1[i];
if(SemTagAwrns.disabled(_e)){
continue;
}
SemTagAwrns.hcards=[];
SemTagAwrns.hcards.push(_e);
var _f=STSP.findNameElementInHcard(_e);
if(!_f){
continue;
}
var _10=_f.getAttribute(STSP.liveElemPrefix+"id");
var _11=SemTagAwrns.activeElems[_10];
if(_10==null){
continue;
}
if(_10&&SemTagAwrns.activeElems[_10]){
continue;
}
var _12=SemTagAwrns.getSametimeId(_e);
var _13=SemTagUtil.getHcardAttributeValue("X-sametime-resolve",_e);
if(_13){
var _14=document.createElement("span");
}
if(STSP.sametimeSTLinks&&_13){
var od=SemTagUtil.getOwnerDocument(_e);
if(od.location!=document.location){
var f=SemTagUtil.getFrameElement(_e);
if(f){
if(f.id=="wpsFLY_flyoutIFrame"){
continue;
}
}
}
_14.style.verticalAlign="text-top";
}
if(STSP.sametimeSTLinks&&_13){
st=prepareSametimeLink(_12,"",_13,"text:no;");
_14.innerHTML=st;
_f.parentNode.insertBefore(_14,_f);
}
if(_10){
SemTagAwrns.activeElems[_10]=true;
}
}
}
},setSTIS:function(_15,_16,_17){
if(_15.status>=_17.awareness.OFFLINE&&_15.status<=_17.awareness.IN_MEETING_MOBILE){
switch(_15.status){
case 0:
_16.src=_17.uiControl.iconPaths.iconOffline;
break;
case 1:
_16.src=_17.uiControl.iconPaths.iconAvailable;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 4:
case 2:
_16.src=_17.uiControl.iconPaths.iconAway;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 3:
_16.src=_17.uiControl.iconPaths.iconDnd;
break;
case 5:
_16.src=_17.uiControl.iconPaths.iconInMeeting;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 6:
_16.src=_17.uiControl.iconPaths.iconAvailableMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 7:
_16.src=_17.uiControl.iconPaths.iconAwayMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 8:
_16.src=_17.uiControl.iconPaths.iconDndMobile;
break;
case 9:
_16.src=_17.uiControl.iconPaths.iconAwayMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
case 10:
_16.src=_17.uiControl.iconPaths.iconInMeetingMobile;
_16.onclick=function(){
SemTagAwrns.openChat(_16.imgId,_15);
};
break;
default:
_16.src=_17.NOT_USING;
break;
}
_16.title=_15.statusMessage;
_16.alt=_15.statusMessage;
}
},disabled:function(_18){
var _19=SemTagUtil.getHcardAttributeValue("X-no-awareness",_18);
return _19;
},getSametimeId:function(_1a){
var _1b=null;
for(var i=0;i<SemTagAwrns.imIds.length;i++){
var _1c=STSP.findElementByNameInHcard(_1a,SemTagAwrns.imIds[i]);
if(_1c){
_1b=STSP.getTextValue(_1c);
if(0<_1b.length){
break;
}
}
}
return _1b;
},updateST:function(_1d){
var _1e=_1d.split(";");
var _1f=_1e[0];
var _20=_1e[1];
for(var i=0;i<SemTagAwrns.hcards.length;i++){
var vc=SemTagAwrns.hcards[i];
var _21=SemTagAwrns.getSametimeId(vc);
if(_21==_1f){
var _22=STSP.findNameElementInHcard(vc);
if(_22){
_22.setAttribute("semtag_ststatus",_20);
}
}
}
},updateSTProxy:function(){
var _23=SemTagAwrns.getStatus(this.status);
for(var i=0;i<SemTagAwrns.hcards.length;i++){
var vc=SemTagAwrns.hcards[i];
var _24=SemTagAwrns.getSametimeId(vc);
if(_24.toLowerCase()==this.portalId.toLowerCase()){
var _25=STSP.findNameElementInHcard(vc);
if(_25){
_25.setAttribute("semtag_ststatus",_23);
}
var _26=SemTagUtil.getHcardAttributeValue("x-sametime-no-icon",vc);
SemTagAwrns.stIR=false;
if(_26){
SemTagAwrns.stIR=true;
}
if(!(SemTagAwrns.stIR)){
var _27=STSP.getElementsByClassName("sametimeawarenessicon",vc);
var _28=_27!=null||_27.length>0?_27[0]:null;
if(_28){
icon=_28.firstChild;
SemTagAwrns.setSTIS(this,icon,stproxy);
}else{
}
}
}
}
},getStatus:function(_29){
var val="";
switch(_29){
case 0:
val="offline";
break;
case 1:
val="online";
break;
case 2:
val="away";
break;
case 3:
val="donotdisturb";
break;
case 4:
val="away";
break;
case 5:
val="meeting";
break;
default:
val="offline";
break;
}
return val;
},openCall:function(_2a){
if(stproxy.policies.get(stproxy.policies.TCSPI)){
stproxy.call.byId(_2a);
}
},openInstantMeeting:function(_2b){
if(stproxy.policies.get(stproxy.policies.DISABLE_MEETING_INVITATION)){
stproxy.createMeeting(_2b);
}
},openSendAnnouncement:function(_2c){
if(stproxy.policies.get(stproxy.policies.ALLOW_ANNOUNCEMENT)){
stproxy.createAnnouncement(_2c);
}
},openAddToContacts:function(_2d){
stproxy.createAdder(_2d);
},openChat:function(_2e,_2f){
if(STSP.sametimeSTLinks){
STLinksCreateIM(_2e);
}
if(STSP.sametimeSTProxy){
if(_2f==null){
_2f=stproxy.getLiveNameModel(_2e,{"isInBuddyList":false,"forceWatchlist":true});
}
stproxy.openChat(_2f.id);
}
}};
if(typeof wps_userStatusFuncs=="undefined"){
wps_userStatusFuncs=new Object();
}
wps_userStatusFuncs["STLinksUserStatusChanged_SA"]=0;
if(typeof wps_loggedInFuncs=="undefined"){
wps_loggedInFuncs=new Object();
}
wps_loggedInFuncs["STLinksLoggedIn_SA"]=0;
if(typeof wps_appletStartedFuncs=="undefined"){
wps_appletStartedFuncs=new Object();
}
wps_appletStartedFuncs["STLinksAppletStarted_SA"]=0;
function STLinksUserStatusChanged_SA(_30,_31,_32,_33,_34){
var val="";
switch(_32){
case 32:
val="online";
break;
case 64:
val="away";
break;
case 554:
val="online";
break;
case 96:
val="away";
break;
case 608:
val="away";
break;
case 128:
val="donotdisturb";
break;
default:
val="offline";
break;
}
var arg=_30+";"+val;
if(STSP.sametimeSTLinks){
SemTagAwrns.updateST(arg);
}
};
function STLinksAppletStarted_SA(){
SemTagAwrns.hasApplet=true;
};
function STLinksLoggedIn_SA(id,_35){
};
window.setTimeout(SemTagAwrns.init,STSP.DELAY);



	

var SemTagC2A={serviceId:"c2a",sourceTagName:"c2a:source",typeNameTagName:"c2a:typename",valueTagName:"c2a:value",displayTagName:"c2a:display",anchorTagName:"c2a:anchor",targetTagName:"c2a:target",menulabelTagName:"c2a:action-label",paramTagName:"c2a:action-param",defaultNameSpaceStr:"IBM_C2A_DEFAULT_NAMESPACE",namespaceSep:"#",liveObjectNamespace:"http://www.ibm.com/xmlns/prod/websphere/portal/v6.1/livetext",targetsAvail:null,targetNodeIDs:new Object(),sourceNodeIDs:new Object(),currentValue:"",currentValArray:null,IDctr:0,c2aIdBaseStr:"IBMC2ASRVC_",c2aSourceIdBase:"IBMC2ASRVC_Source_",c2aTargetIdBase:"IBMC2ASRVC_Target_",nls:{"c2a_click_for_actions":STSPG.c2a_click_for_actions},init:function(){
if(!window.ibm){
window.ibm=new Object();
}
if(!window.ibm.portal){
window.ibm.portal=new Object();
}
window.ibm.portal.c2a=new Object();
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
}
}
SemTagC2A.defineRegExpressions();
STSP.setCallback(SemTagC2A.serviceId,SemTagC2A.parseDOM);
STSP.setSpecialMenuProvider(SemTagC2A.getSpecialC2AMenuItems);
SemTagC2A.parseDOM();
},getSpecialC2AMenuItems:function(_1){
var _2=null;
try{
var _3=_1;
var _4=_1.parentNode;
var _5=STSP.getSemanticTagValues(_1);
for(var _6 in _5){
var _7=_5[_6];
if(!_7){
continue;
}
_2=SemTagC2A.getTargetMenuItems(SemTagC2A.getSpecialC2ASourceInfo(_6,_7));
}
}
catch(e){
}
return _2;
},showHover:function(_8){
STSP.showHover(_8,SemTagC2A.handleClick,SemTagC2A.nls.c2a_click_for_actions);
},canAccessFrameContent:function(_9){
var _a=false;
try{
if(window.location.host==_9.location.host&&window.location.protocol==_9.location.protocol){
_a=true;
}
}
catch(err){
}
return _a;
},findElementInWindowScope:function(_b){
var _c;
_c=document.getElementById(_b);
if(_c==null){
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
_c=frames[i].document.getElementById(_b);
if(_c!=null){
break;
}
}
}
}
return _c;
},handleClick:function(_d){
if(!window.ibm){
window.ibm=new Object();
}
if(!window.ibm.portal){
window.ibm.portal=new Object();
}
window.ibm.portal.c2a=new Object();
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
}
}
var _e=STSP.getLiveElementFromEvent(_d);
if(!SemTagC2A.isSource(_e)){
var _f=STSP.getParentByClassName(SemTagC2A.sourceTagName,_e);
}
SemTagC2A.generateMenuContents(_d,_f);
},parseDOM:function(){
SemTagC2A.processDomNodes(STSP.getNodes(SemTagC2A.serviceId));
SemTagC2A.processSources(SemTagC2A.sourceNodeIDs);
},processDomNodes:function(_10){
for(var _11 in SemTagC2A.sourceNodeIDs){
if(!SemTagC2A.findElementInWindowScope(_11)){
delete SemTagC2A.sourceNodeIDs[_11];
}
}
for(var _11 in SemTagC2A.targetNodeIDs){
if(!SemTagC2A.findElementInWindowScope(_11)){
delete SemTagC2A.targetNodeIDs[_11];
}
}
while(_10&&_10.length>0){
var _12=_10.pop();
var _13=_12.id;
if(_13!=null&&(SemTagC2A.exists(SemTagC2A.sourceNodeIDs,_13)||SemTagC2A.exists(SemTagC2A.targetNodeIDs,_13))){
continue;
}
if(SemTagC2A.isSource(_12)){
if(_12.id==null||_12.id==""){
_12.id=SemTagC2A.c2aSourceIdBase+SemTagC2A.IDctr;
SemTagC2A.IDctr++;
}
SemTagC2A.sourceNodeIDs[_12.id]="true";
}else{
if(SemTagC2A.isTarget(_12)){
if(_12.id==null||_12.id==""){
_12.id=SemTagC2A.c2aTargetIdBase+SemTagC2A.IDctr;
SemTagC2A.IDctr++;
}
SemTagC2A.targetNodeIDs[_12.id]="true";
}
}
}
SemTagC2A.updateAvailableTargets();
},exists:function(_14,_15){
if(_14[_15]&&_14[_15]=="true"){
return true;
}
return false;
},processSources:function(_16){
for(var _17 in _16){
var _18=SemTagC2A.findElementInWindowScope(_17);
var _19=SemTagC2A.getSourceInfo(_18);
var _1a=SemTagC2A.isTargetDefined(_19);
if(_19.value==null||_19.value==""){
break;
}
var _1b=_19.anchorNode.getAttribute("hasHover");
if(_1a||_19.display!=""){
if(_1b==null||_1b=="false"){
STSP.addHover(_19.anchorNode,SemTagC2A.showHover,SemTagC2A.handleClick);
_19.anchorNode.setAttribute("hasHover","true");
}
}else{
if(_1b=="true"){
STSP.removeHover(_19.anchorNode,SemTagC2A.showHover,SemTagC2A.handleClick);
}
_19.anchorNode.setAttribute("hasHover","false");
}
}
},defineRegExpressions:function(){
SemTagC2A.sourceRegExp=new RegExp("(^|\\s)"+SemTagC2A.sourceTagName+"(\\s|$)");
SemTagC2A.typeNameRegExp=new RegExp("(^|\\s)"+SemTagC2A.typeNameTagName+"(\\s|$)");
SemTagC2A.valueRegExp=new RegExp("(^|\\s)"+SemTagC2A.valueTagName+"(\\s|$)");
SemTagC2A.displayRegExp=new RegExp("(^|\\s)"+SemTagC2A.displayTagName+"(\\s|$)");
SemTagC2A.anchorRegExp=new RegExp("(^|\\s)"+SemTagC2A.anchorTagName+"(\\s|$)");
SemTagC2A.targetRegExp=new RegExp("(^|\\s)"+SemTagC2A.targetTagName+"(\\s|$)"),SemTagC2A.menulabelRegExp=new RegExp("(^|\\s)"+SemTagC2A.menulabelTagName+"(\\s|$)");
SemTagC2A.paramRegExp=new RegExp("(^|\\s)"+SemTagC2A.paramTagName+"(\\s|$)");
},isTarget:function(_1c){
if(_1c.tagName=="FORM"){
var _1d=SemTagUtil.getNodeClassValue(_1c).match(SemTagC2A.targetRegExp);
return _1d;
}else{
return false;
}
},isSource:function(_1e){
if(_1e.tagName=="SPAN"||_1e.tagName=="DIV"){
var _1f=SemTagUtil.getNodeClassValue(_1e).match(SemTagC2A.sourceRegExp);
return _1f;
}else{
return false;
}
},updateAvailableTargets:function(){
SemTagC2A.targetsAvail=null;
SemTagC2A.targetsAvail=new Array();
for(var _20 in SemTagC2A.targetNodeIDs){
var _21=SemTagC2A.findElementInWindowScope(_20);
var _22=_21.childNodes;
var _23=null;
var _24=null;
for(var i=0;i<_22.length;i++){
var _25=_22[i];
var _26=SemTagUtil.getNodeClassValue(_25);
if(_26==""){
continue;
}
if(_26.match(SemTagC2A.typeNameRegExp)){
var _27=SemTagC2A.getElementValue(_25);
var _28=SemTagC2A.parseTypeName(_27);
_23=_28.namespace;
_24=_28.type;
if(_24!=null){
if(_23==null){
_23=SemTagC2A.defaultNameSpaceStr;
}
if(typeof (SemTagC2A.targetsAvail[_23])=="undefined"){
SemTagC2A.targetsAvail[_23]=new Array();
}
SemTagC2A.targetsAvail[_23][_24]=true;
}
}
}
}
},parseTypeName:function(_29){
var _2a=null;
var _2b=null;
var _2c=_29.indexOf(SemTagC2A.namespaceSep);
if(_2c<0){
_2a=SemTagC2A.defaultNameSpaceStr;
_2b=_29;
}else{
_2a=_29.substring(0,_2c);
_2b=_29.substring(_2c+1);
}
var _2d;
if(_2a==SemTagC2A.liveObjectNamespace){
var _2e=_2b.indexOf(".");
if(_2e>0){
var _2f=_2b.substring(_2e+1);
_2b=_2b.substring(0,_2e);
_2d={"namespace":_2a,"type":_2b,"selector":_2f};
return _2d;
}
}
_2d={"namespace":_2a,"type":_2b};
return _2d;
},isTargetDefined:function(_30){
var _31=false;
for(var i=0;i<_30.typenames.length;i++){
if(!_30.typenames[i].namespace||_30.typenames[i].namespace==""){
_30.typenames[i].namespace=SemTagC2A.defaultNameSpaceStr;
}
if(typeof (SemTagC2A.targetsAvail[_30.typenames[i].namespace])!="undefined"){
var _32=SemTagC2A.targetsAvail[_30.typenames[i].namespace][_30.typenames[i].type];
_31=(typeof (_32)!="undefined"&&_32?true:false);
}
if(_31==true){
return _31;
}
}
return false;
},isTargetSourceMatch:function(_33,_34){
var _35;
var _36;
for(var i=0;i<_33.typenames.length;i++){
_35=_33.typenames[i];
for(var j=0;j<_34.typenames.length;j++){
_36=_34.typenames[j];
if(_35.namespace==_36.namespace){
if(_35.namespace==SemTagC2A.liveObjectNamespace){
var _37;
if(_36.selector){
_37=SemTagC2A.selectSubField(_33.value,_34.selector);
}else{
_37=_33.value;
}
if(_37&&_37!=null&&_37!=""){
return true;
}
}else{
if(_35.type==_36.type){
return true;
}
}
}
}
}
return false;
},getElementValue:function(_38){
var _39;
if(SemTagUtil.getNodeClassValue(_38).match(SemTagC2A.displayRegExp)){
_39=_38.innerHTML;
}else{
_39=_38.firstChild.nodeValue;
}
var _3a=_39==null?"":_39.replace(/^\s*(\S*(\s+\S+)*)\s*$/,"$1");
return _3a;
},fillC2AInfo:function(_3b,_3c){
var _3d=_3b.childNodes;
for(var i=0;i<_3d.length;i++){
var _3e=_3d[i];
var _3f=SemTagUtil.getNodeClassValue(_3e);
if(_3f==null||_3f==""){
if(_3e.childNodes.length>0){
SemTagC2A.fillC2AInfo(_3e,_3c);
}
}else{
if(_3f.match(SemTagC2A.typeNameRegExp)){
var _40=SemTagC2A.getElementValue(_3e);
var _41=SemTagC2A.parseTypeName(_40);
_3c.typenames.push({namespace:_41.namespace,type:_41.type});
if(_41.selector){
_3c.selector=_41.selector;
}
}else{
if(_3f.match(SemTagC2A.valueRegExp)&&_3c.value==""){
_3c.value=SemTagC2A.getElementValue(_3e);
if(!_3c.anchorNode||_3c.anchorNode==""){
_3c.anchorNode=_3e;
}
}else{
if(_3f.match(SemTagC2A.displayRegExp)&&_3c.display==""){
_3c.display=SemTagC2A.getElementValue(_3e);
}else{
if(_3f.match(SemTagC2A.menulabelRegExp)&&_3c.menuLabel==""){
_3c.menuLabel=SemTagC2A.getElementValue(_3e);
}else{
if(_3f.match(SemTagC2A.anchorRegExp)){
_3c.anchorNode=_3e;
}else{
if(!_3f.match(SemTagC2A.sourceRegExp)&&!_3f.match(SemTagC2A.targetRegExp)){
if(_3e.childNodes.length>0){
SemTagC2A.fillC2AInfo(_3e,_3c);
}
}
}
}
}
}
}
}
}
},getSpecialC2ASourceInfo:function(_42,_43){
var _44={"typenames":new Array(),"value":_43,"display":"","anchorNode":""};
_44.typenames.push({namespace:SemTagC2A.liveObjectNamespace,type:_42});
return _44;
},getSourceInfo:function(_45){
var _46={"typenames":new Array(),"value":"","display":"","anchorNode":""};
SemTagC2A.fillC2AInfo(_45,_46);
return _46;
},getTargetInfo:function(_47){
var _48={"typenames":new Array(),"menuLabel":""};
SemTagC2A.fillC2AInfo(_47,_48);
return _48;
},generateMenuContents:function(_49,_4a){
var _4b=null;
var _4c=null;
var _4d=SemTagC2A.getSourceInfo(_4a);
if(SemTagC2A.isTargetDefined(_4d)==true){
_4b=SemTagC2A.getTargetMenuItems(_4d);
}
if(_4d.display!=""){
_4c=STSP.getMenuHeaderJson(_4d.display,"text/html",-100);
}
if(_4b!=null||_4d.display!=""){
STSP.setMenuData(_49,_4b,"",_4c,"");
}
},getTargetMenuItems:function(_4e){
var _4f=new Array();
var _50=new Array();
for(var _51 in SemTagC2A.targetNodeIDs){
var _52=SemTagC2A.findElementInWindowScope(_51);
var _53=SemTagC2A.getTargetInfo(_52);
var _54=_53.menuLabel;
var _55=_50[_54];
if(_55!=null){
_50[_54]=_55++;
}else{
_50[_54]=1;
_55=1;
}
if(_55>1){
_54+=" ("+_55+")";
}
if(SemTagC2A.isTargetSourceMatch(_4e,_53)==true){
_4f.push(STSP.getMenuItemJson(_54,"javascript:SemTagC2A.executeMenuAction(\""+_51+"\");"));
}
}
if(_4f.length>0){
SemTagC2A.currentValue=_4e.value;
}
return _4f;
},executeMenuAction:function(_56){
var _57={};
var _58=SemTagC2A.findElementInWindowScope(_56);
if(_58&&_58.tagName=="FORM"){
var _59=SemTagC2A.currentValue;
var _5a=SemTagC2A.getTargetInfo(_58);
if(_5a.selector){
_59=SemTagC2A.selectSubField(_59,_5a.selector);
}
var _5b=STSP.getElementsByClassName(SemTagC2A.paramTagName,_58,0,["INPUT"]);
for(var j=0;j<_5b.length;j++){
_5b[j].value=SemTagC2A.getStringValue(_59);
}
window.ibm.portal.c2a.event={value:_59};
for(var i=0;i<parent.frames.length;i++){
if(SemTagC2A.canAccessFrameContent(parent.frames[i])){
if(!parent.frames[i].ibm){
parent.frames[i].ibm=new Object();
}
if(!parent.frames[i].ibm.portal){
parent.frames[i].ibm.portal=new Object();
}
parent.frames[i].ibm.portal.c2a=new Object();
parent.frames[i].ibm.portal.c2a.event={value:_59};
}
}
if(_58.onsubmit){
if(SemTagUtil.isGecko){
var _5c=new Object();
_58.onsubmit(_5c);
}else{
_58.fireEvent("onsubmit");
}
}
_58.submit();
}else{
}
},selectSubField:function(obj,_5d){
var _5e=_5d.split(".");
var x=obj;
for(var i=0;i<_5e.length;i++){
if(typeof (x)=="object"&&x[_5e[i]]){
x=x[_5e[i]];
}else{
x=null;
break;
}
}
return x;
},getStringValue:function(x){
var _5f;
if(typeof x=="string"){
_5f=x;
return x;
}else{
_5f=SemTagC2A.getJSON(x);
return _5f;
}
},getJSON:function(x){
var _60;
if(x==null){
_60="null";
return _60;
}
switch(typeof x){
case "string":
_60="\""+x+"\"";
return _60;
case "number":
case "boolean":
_60=String(x);
return _60;
case "object":
if(x instanceof Array){
_60=SemTagC2A.getArrayJSON(x);
return _60;
}else{
if(x){
_60=SemTagC2A.getObjectJSON(x);
return _60;
}
}
}
},getObjectJSON:function(o){
var a=[];
var _61;
for(k in o){
if(o.hasOwnProperty(k)){
a.push("\""+k+"\":"+SemTagC2A.getJSON(o[k]));
}
}
_61="{"+a.join(",")+"}";
return _61;
},getArrayJSON:function(o){
var a=[];
var _62;
for(var k=0;k<o.length;k++){
a.push(SemTagC2A.getJSON(o[k]));
}
_62="["+a.join(",")+"]";
return _62;
},triggerCSRAction:function(_63){
var _64=SemTagC2A.findElementInWindowScope(_63);
var _65=SemTagC2A.getC2ATargetPageID(_64);
var _66=SemTagC2A.getC2ATargetPortletWindowID(_64);
var _67=SemTagC2A.getC2ACommTargetName(_64);
var _68=SemTagC2A.currentValue;
var _69=SemTagC2A.getTargetActionParams(_64);
},triggerCSREvent:function(_6a){
var _6b=SemTagC2A.findElementInWindowScope(_6a);
var _6c=SemTagC2A.getC2ATargetPageID(_6b);
var _6d=SemTagC2A.getC2ATargetPortletWindowID(_6b);
var _6e=SemTagC2A.getC2ACommTargetQName(_6b);
var _6f=SemTagC2A.currentValue;
var _70=com.ibm.mashups.services.ServiceManager.getService(com.ibm.mashups.iwidget.services.EventService.SERVICE_NAME);
_70.fireEvent(_6d,_6e,_6f,"{http://www.w3.org/2001/XMLSchema}string");
},getC2ATargetPageID:function(_71){
var _72=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.pageid\"]",_71);
var _73=(_72!=null&&_72.length==1)?_72[0].value:"undefined";
return _73;
},getC2ATargetPortletWindowID:function(_74){
var _75=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.portletwindowid\"]",_74);
var _76=(_75!=null&&_75.length==1)?_75[0].value:"undefined";
return _76;
},getC2ACommTargetName:function(_77){
var _78=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.commtargetname\"]",_77);
var _79=(_78!=null&&_78.length==1)?_78[0].value:"undefined";
return _79;
},getC2ACommTargetQName:function(_7a){
var _7b=dojo.query("input[name=\"com.ibm.wps.propertybroker.standard.c2a.commtargetqname\"]",_7a);
var _7c=(_7b!=null&&_7b.length==1)?_7b[0].value:"undefined";
return _7c;
},getC2ATargetActionParams:function(_7d){
var _7e=dojo.query("input[type=\"text\"]",_7d);
dojo.forEach(_7e,function(_7f){
});
}};
SemTagC2A.init();



 // end of jspscriptlet

 

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