/* ***************************************************************** */
/* Copyright IBM Corp. 2001, 2009  All Rights Reserved.              */
/* ***************************************************************** */
dojo.provide("lconn.blogs");
if(!dojo._hasResource["lconn.blogs.utils"]){
dojo._hasResource["lconn.blogs.utils"]=true;
dojo.provide("lconn.blogs.utils");
dojo.declare("lconn.blogs._utils",null,{toggleControl:function(_1){
var _2=dojo.byId(_1);
var _3=dojo.byId("i"+_1);
if(_2.style.display=="none"){
_2.style.display="";
if(_3){
_3.innerHTML="-";
}
}else{
_2.style.display="none";
if(_3){
_3.innerHTML="+";
}
}
},toggleSubs:function(_4,_5){
var el=dojo.byId(_4);
var _7=dojo.byId(_5);
if(el.style.display!="none"){
new dojo.fx.Toggler({node:_4,showDuration:500,showFunc:dojo.fx.wipeOut}).show();
_7.className="lotusSprite lotusArrow lotusTwistyClosed";
}else{
new dojo.fx.Toggler({node:_4,showDuration:500,showFunc:dojo.fx.wipeIn}).show();
_7.className="lotusSprite lotusArrow lotusTwistyOpen";
}
},toggleSection:function(_8){
var el=dojo.byId("section_"+_8.id);
if(el.style.display!="none"){
new dojo.fx.Toggler({node:el,showDuration:500,showFunc:dojo.fx.wipeOut}).show();
_8.className="lotusSprite lotusArrow lotusTwistyClosed";
}else{
new dojo.fx.Toggler({node:el,showDuration:500,showFunc:dojo.fx.wipeIn}).show();
_8.className="lotusSprite lotusArrow lotusTwistyOpen";
}
},isblank:function(s){
for(var i=0;i<s.length;s++){
var c=s.charAt(i);
if((c!=" ")&&(c!="\n")&&(c!="")){
return false;
}
}
return true;
},escapeHTML:function(s){
s=s.replace(/&/g,"&amp;");
s=s.replace(/</g,"&lt;");
s=s.replace(/>/g,"&gt;");
s=s.replace(/\"/g,"&quot;");
return s;
}});
lconn.blogs.utils=new lconn.blogs._utils();
if(dojo.isIE&&typeof lconn.blogs.utils.applyDojoOnLoads=="undefined"){
lconn.blogs.utils.dojoOnLoads=[];
var origDojoOnLoads=dojo._loaders;
dojo._loaders=[];
var origAddOnLoad;
lconn.blogs.utils.applyDojoOnLoads=function(){
if(!lconn.blogs.utils.dojoOnLoads){
return;
}
var t=lconn.blogs.utils.dojoOnLoads;
dojo._loaders=origDojoOnLoads;
dojo.addOnLoad=origAddOnLoad;
for(var i=0;i<t.length;i++){
var _10=t[i];
if(_10){
dojo.addOnLoad.apply(dojo,_10);
}
}
dojo.addOnLoad(function(){
});
lconn.blogs.utils.dojoOnLoads=null;
};
origAddOnLoad=dojo.addOnLoad;
dojo.addOnLoad=function(){
var _11=arguments;
lconn.blogs.utils.dojoOnLoads.push(_11);
};
var orgiWindowOnLoad=window.onload;
window.onload=function(){
if(orgiWindowOnLoad){
orgiWindowOnLoad();
}
lconn.blogs.utils.applyDojoOnLoads();
};
}
function activateFooterLinks(){
var _12=dojo.byId("lotusFooterULTools");
if(_12!=null){
var _13=_12.getElementsByTagName("LI");
var len=_13.length;
for(var i=1;i<len;i++){
var li=_13[i];
var a=li.getElementsByTagName("a");
var _18=a[0].className;
var idx=_18.indexOf("lotusHidden");
if(idx!=-1){
a[0].className=_18.substring(0,idx)+_18.substring(idx+11);
}
}
}
};
function showDialog(_1a){
var div=document.createElement("div");
div.className="lotusDialogWrapper";
div.id="dialog";
var _1c="";
_1c+="<div class=\"dijitDialogTitleBar\" dojoattachpoint=\"titleBar\">";
_1c+="<span class=\"closeText\" title=\"Cancel\" dojoattachpoint=\"closeText\">x</span>";
_1c+="</span>";
_1c+="</div>";
_1c+="<div class=\"dijitDialogPaneContent\" dojoattachpoint=\"containerNode\">";
_1c+="<div class=\"lotusDialogBorder\" style=\"width: 300px;\">";
_1c+="<form class=\"lotusDialog lotusForm\">";
_1c+="<h1 style=\"padding-right:12px;padding-left:12px\">";
_1c+="<a class=\"lotusRight lotusClose lotusBtnImg\" href=\"javascript:dijit.byId("+"'dialog'"+").onCancel();\" title=\""+dojo.i18n.getLocalization("lconn.blogs","strings",dojo.locale).closeDialog+"\">";
_1c+="<img alt=\""+dojo.i18n.getLocalization("lconn.blogs","strings",dojo.locale).closeDialog+"\"  src=\""+BlogsBaseUrl+"/nav/common/styles/images/blank.gif\"/>";
_1c+="<span class=\"lotusAltText\">X</span></a>";
_1c+=dojo.i18n.getLocalization("lconn.blogs","strings",dojo.locale).title;
_1c+="</h1>";
_1c+="<div>";
_1c+="<div class=\"lotusDialogContent\" id=\"dialogContent\">";
_1c+=_1a;
_1c+="</div>";
_1c+="</div>";
_1c+="<div class=\"lotusDialogFooter\">";
_1c+="<input class=\"lotusFormButton\" type=\"button\" value=\""+dojo.i18n.getLocalization("lconn.blogs","strings",dojo.locale).ok+"\" onclick=\"dijit.byId("+"'dialog'"+").onCancel()\"/>";
_1c+="</div>";
_1c+="</form>";
_1c+="</div>";
_1c+="</div>";
div.innerHTML=_1c;
document.body.appendChild(div);
var _1d=new dijit.Dialog(null,div);
_1d.onCancel=function(){
this.hide();
this.destroy();
};
_1d.show();
};
dojo.addOnLoad(function(){
var _1e=document.getElementsByTagName("body")[0].className.split(" ");
for(var i in _1e){
if("dijit_a11y"==_1e[i]){
document.getElementsByTagName("body")[0].className+=" lotusImagesOff";
}
}
});
}
if(!dojo._hasResource["lconn.core.HTMLUtil"]){
dojo._hasResource["lconn.core.HTMLUtil"]=true;
dojo.provide("lconn.core.HTMLUtil");
lconn.core.HTMLUtil.setInnerTextNode=function(_20,_21){
_20.innerHTML="";
_20.appendChild(document.createTextNode(_21));
};
lconn.core.HTMLUtil.escapeInlineText=function(_22){
return lconn.core.HTMLUtil.escapeText(_22,true);
};
lconn.core.HTMLUtil.escapeText=function(_23,_24){
var _25=document.getElementById("escapeBufferDiv");
if(!_25){
var tmp=document.createElement("div");
tmp.id="escapeBufferDiv";
document.body.appendChild(tmp);
_25=tmp;
}
_25.appendChild(document.createTextNode(_23));
var _27=_25.innerHTML;
_25.innerHTML="";
if(_24){
_27=lconn.core.HTMLUtil.escape_q(_27);
}
return _27;
};
lconn.core.HTMLUtil.escape_q=function(s){
var t="";
for(var i=0;i<s.length;i++){
var c=s.charAt(i);
if(c=="\""){
t+="&#34;";
}else{
if(c=="'"){
t+="&#39;";
}else{
if(c=="\\"){
t+="&#92;&#92;";
}else{
t+=c;
}
}
}
}
return t;
};
}
if(!dojo._hasResource["lconn.blogs._Templated"]){
dojo._hasResource["lconn.blogs._Templated"]=true;
dojo.provide("lconn.blogs._Templated");
dojo.declare("lconn.blogs._Templated",dijit._Templated,{escapeText:function(_2c){
return lconn.core.HTMLUtil.escapeText(_2c,false);
},escapeInlineText:function(_2d){
return lconn.core.HTMLUtil.escapeInlineText(_2d);
},destroy_AP:dojo.isIE<7?function(){
for(var ap in this){
if(ap.indexOf("_AP")>0){
delete this[ap];
}
}
}:function(){
}});
}
if(!dojo._hasResource["lconn.blogs.Res"]){
dojo._hasResource["lconn.blogs.Res"]=true;
dojo.provide("lconn.blogs.Res");
dojo.declare("lconn.blogs.Res",[],{bundleFor:"lconn.blogs",resBundle:null,loadDefaultBundle:function(){
this.resBundle=dojo.i18n.getLocalization(this.bundleFor,"strings");
},loadBundle:function(pkg){
this.resBundle=dojo.i18n.getLocalization(pkg,"strings");
},getDefaultBundle:function(){
return dojo.i18n.getLocalization(this.bundleFor,"strings");
},getBundle:function(pkg){
return dojo.i18n.getLocalization(pkg,"strings");
},getStringFrom:function(pkg,key,_33){
var _34=dojo.i18n.getLocalization(pkg,"strings")[key];
if(_33==undefined){
return _34;
}else{
return dojo.string.substitute(_34,_33);
}
},getString:function(key,_36){
var _37=dojo.i18n.getLocalization(this.bundleFor,"strings")[key];
if(_36==undefined){
return _37;
}else{
return dojo.string.substitute(_37,_36);
}
}});
}
if(!dojo._hasResource["lconn.blogs.SearchBar"]){
dojo._hasResource["lconn.blogs.SearchBar"]=true;
dojo.provide("lconn.blogs.SearchBar");
var w={};
w.templateString="<div\r\n><a style=\"display:inline-block\" href=\"#\" onclick=\"if(typeof this.menuInited == 'undefined'){this.menuInited=1;dojo.publish('p_dashboard');} menuUtility.openMenu(event, 'BlogSearchMenu');\"><img src=\"${cPath}/nav/common/styles/images/scopeDropDown.gif\" alt=\"${rs_searchDash}\" title=\"${rs_searchDash}\"/></a\r\n><input dojoAttachPoint=\"searchField_AP\" dojoAttachEvent=\"onfocus:focusField\" name=\"q\" class=\"lotusText lotusInactive\" type=\"text\" title=\"${rs_searchDash}\" value=\"${rs_searchDash}\" ></input\r\n><input class=\"lotusSearchButton\" type=\"image\" src=\"${cPath}/nav/common/styles/images/search.gif\" alt=\"${rs_searchSubmit}\" title=\"${rs_searchSubmit}\" ></input\r\n><input dojoAttachPoint=\"target_AP\" name=\"t\" type=\"hidden\" value=\"${cTarget}\"/\r\n><input dojoAttachPoint=\"searchScope_AP\" name=\"f\" type=\"hidden\" value=\"${searchScope}\"/\r\n></div>\r\n";
w.rs_searchAlt="rs_searchAlt";
w.rs_searchSubmit="rs_searchSubmit";
w.rs_searchNoInput="rs_searchNoInput";
w.rs_searchDash="rs_searchDash";
w.rs_searchAllEntries="rs_searchAllEntries";
w.rs_searchAuthor="rs_searchAuthor";
w.rs_searchComment="rs_searchComment";
w.rs_searchContent="rs_searchContent";
w.rs_searchTag="rs_searchTag";
w.rs_searchTitle="rs_searchTitle";
w.rs_searchDesc="rs_searchDesc";
w.rs_searchAllBlogs="rs_searchAllBlogs";
w.searchScope=null;
w.context=null;
w.currOption=null;
w.cPath=null;
w.cTarget=null;
w.searchMenu_W=null;
w.postMixInProperties=function(){
this.cPath=cPath;
this.cTarget=cTarget;
this.searchScope=cField;
var res=new lconn.blogs.Res();
res.loadDefaultBundle();
var b=res.resBundle;
this.rs_searchAlt=b[this.rs_searchAlt];
this.rs_searchSubmit=b[this.rs_searchSubmit];
this.rs_searchNoInput=b[this.rs_searchNoInput];
this.rs_searchDash=rs_searchDash;
this.rs_searchAuthor=rs_searchAuthor;
this.rs_searchTag=rs_searchTag;
this.rs_searchTitle=rs_searchTitle;
if(this.cTarget=="entry"){
this.rs_searchAllEntries=rs_searchAllEntries;
this.rs_searchComment=rs_searchComment;
this.rs_searchContent=rs_searchContent;
}
if(this.cTarget=="blog"){
this.rs_searchAllBlogs=rs_searchAllBlogs;
this.rs_searchDesc=rs_searchDesc;
}
};
w.postCreate=function(){
dojo.subscribe("p_dashboard",this,"switchDashboard");
};
w.setSearchPrompt=function(str){
this.searchField_AP.value=str;
this.searchField_AP.title=str;
dojo.addClass(this.searchField_AP,"lotusInactive");
};
w.switchDashboard=function(_3b){
this.prepMenu();
};
w.prepMenu=function(){
dojo.addClass(this.searchField_AP,"lotusInactive");
this.searchScope_AP.value=this.searchScope;
if(this.searchMenu_W!=null){
this.searchMenu_W.destroy();
this.searchMenu_W=null;
}
this.searchMenu_W=new dijit.Menu({id:"BlogSearchMenu",onItemClick:dojo.hitch(this,"selectOption")});
var _3c=this.searchMenu_W;
if(!this.cTarget){
this.cTarget=="entry";
}
var _3d="prepMenu_"+this.cTarget;
this[_3d](_3c,this.searchScope);
};
w.selectOption=function(_3e){
if(_3e.disabled){
return false;
}
if(_3e.popup){
if(!this.searchMenu_W.is_open){
this.searchMenu_W._openPopup();
}
}else{
this.searchMenu_W.onExecute();
if(this.currOption){
dojo.removeClass(this.currOption.iconNode,"dijitMenuItemIcon lotusCheckmark");
}
dojo.addClass(_3e.iconNode,"dijitMenuItemIcon lotusCheckmark");
this.currOption=_3e;
this.setSearchPrompt(_3e.label);
this.searchScope=this.currOption.value;
this.searchScope_AP.value=this.searchScope;
}
dijit.popup.close(this.searchMenu_W);
};
w.prepMenu_entry=function(_3f,_40){
var _41=new dijit.MenuItem({label:this.rs_searchAllEntries,value:"all",parentMenu:_3f});
var _42=new dijit.MenuItem({label:this.rs_searchAuthor,value:"author",parentMenu:_3f});
var _43=new dijit.MenuItem({label:this.rs_searchComment,value:"comment",parentMenu:_3f});
var _44=new dijit.MenuItem({label:this.rs_searchContent,value:"content",parentMenu:_3f});
var _45=new dijit.MenuItem({label:this.rs_searchTag,value:"tag",parentMenu:_3f});
var _46=new dijit.MenuItem({label:this.rs_searchTitle,value:"title",parentMenu:_3f});
_3f.addChild(_41);
_3f.addChild(_42);
_3f.addChild(_43);
_3f.addChild(_44);
_3f.addChild(_45);
_3f.addChild(_46);
var _47=_3f.getChildren();
for(var i=0;i<_47.length;i++){
var _49=_47[i];
if(dojo.string.trim(_49.value)==dojo.trim(_40)){
this.currOption=_49;
this.setSearchPrompt(_49.label);
dojo.addClass(this.currOption.iconNode,"dijitMenuItemIcon lotusCheckmark");
break;
}
}
};
w.prepMenu_blog=function(_4a,_4b){
var _4c=new dijit.MenuItem({label:this.rs_searchAllBlogs,value:"all",parentMenu:_4a});
var _4d=new dijit.MenuItem({label:this.rs_searchAuthor,value:"author",parentMenu:_4a});
var _4e=new dijit.MenuItem({label:this.rs_searchDesc,value:"description",parentMenu:_4a});
var _4f=new dijit.MenuItem({label:this.rs_searchTag,value:"tag",parentMenu:_4a});
var _50=new dijit.MenuItem({label:this.rs_searchTitle,value:"title",parentMenu:_4a});
_4a.addChild(_4c);
_4a.addChild(_4d);
_4a.addChild(_4e);
_4a.addChild(_4f);
_4a.addChild(_50);
var _51=_4a.getChildren();
for(var i=0;i<_51.length;i++){
var _53=_51[i];
if(dojo.string.trim(_53.value)==dojo.trim(_4b)){
this.currOption=_53;
this.setSearchPrompt(_53.label);
dojo.addClass(this.currOption.iconNode,"dijitMenuItemIcon lotusCheckmark");
break;
}
}
};
w.focusField=function(){
this.searchField_AP.value="";
dojo.removeClass(this.searchField_AP,"lotusInactive");
};
w.processSearch=function(_54){
if(dojo.hasClass(this.searchField_AP,"lotusInactive")){
this.focusField();
}
};
dojo.declare("lconn.blogs.SearchBar",[dijit._Widget,lconn.blogs._Templated,lconn.blogs.Res],w);
}
if(!dojo._hasResource["lconn.core.TypeAhead"]){
dojo._hasResource["lconn.core.TypeAhead"]=true;
dojo.provide("lconn.core.TypeAhead");
dojo.declare("lconn.core.TypeAhead",[dijit.form.ComboBox],{formatItem:function(_55,_56){
if(!_56){
return _55;
}else{
return _55=_55.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
}
},minChars:1,hasDownArrow:false,multipleValues:true,token:"",autoComplete:false,submitFormOnKey:false,_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _59=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(key);
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_59=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _5c;
if(this._isShowingNow&&(_5c=pw.getHighlightedOption())){
if(_5c==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_5c==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
if(!this.submitFormOnKey){
evt.preventDefault();
}
case dk.TAB:
var _5d=this.attr("displayedValue");
if(pw&&(_5d==pw._messages["previousMessage"]||_5d==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(pw.getHighlightedOption()){
pw.attr("value",{target:pw.getHighlightedOption()});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_59=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
_59=typeof key=="string"||key==229;
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_59){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_numTokensPreceding:function(str,pos){
var i=-1,_61=0;
while(i<pos){
i=str.indexOf(this.token,i+1);
if(i==-1){
i=str.length;
}else{
if(i<pos){
_61++;
}
}
}
return _61;
},_autoCompleteText:function(_62){
var fn=this.focusNode;
var _64=this._getCaretPos(fn);
dijit.selectInputText(fn,fn.value.length);
var _65;
if(this.multipleValues){
_65=fn.value.split(this.token);
}else{
_65=[fn.value];
}
var _66=0;
if(this.multipleValues){
_66=this._numTokensPreceding(fn.value,_64);
}
if(this.multipleValues&&this.token!=" "&&_66>0){
_62=" "+_62;
}
var _67=this.ignoreCase?"toLowerCase":"substr";
if(dojo.string.trim(_62[_67](0)).indexOf(dojo.string.trim(_65[_66][_67](0)))==0){
if(_64+1>fn.value.length||fn.value.charAt(_64)==this.token){
var end=_64+_62.length-_65[_66].length;
_65[_66]=_62;
fn.value=_65.join(this.token);
dijit.selectInputText(fn,_64,end);
}
}else{
_65[_66]=_62;
fn.value=_65.join(this.token);
var _69=0;
for(var i=0;i<_66;i++){
_69+=_65[i].length;
}
_69+=this.token.length*_66;
dijit.selectInputText(fn,_69,_69+_62.length);
}
},_openResultList:function(_6b,_6c){
if(this.disabled||this.readOnly||(_6c.query!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_6b.length){
this._hideResultList();
return;
}
var _6d=new String(this.formatItem(_6b[0]));
if(_6d&&this.autoComplete&&!this._prev_key_backspace&&(_6c.query!="")){
this._autoCompleteText(_6d);
}
_6c._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_6b,_6c,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_6c.direction){
if(1==_6c.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_6c.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_announceOption:function(_6e){
if(_6e==null){
return;
}
var _6f;
if(_6e==this._popupWidget.nextButton||_6e==this._popupWidget.previousButton||_6e==this._popupWidget.searchButton){
_6f=_6e.innerHTML;
}else{
_6f=this.formatItem(_6e.item);
}
if(this.multipleValues){
var _70=this._getCaretPos(this.focusNode);
var _71=this.focusNode.value.split(this.token);
var _72=this._numTokensPreceding(this.focusNode.value,_70);
var q=this._lastQuery;
if(this.multipleValues&&this.token!=" "&&_72>0){
q=" "+q;
}
_71[_72]=q;
this.focusNode.value=_71.join(this.token);
}else{
this.focusNode.value=this.focusNode.value.substring(0,this._getCaretPos(this.focusNode));
}
this._setCaretPos(this.focusNode,_70);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(_6e,"id"));
this._autoCompleteText(_6f);
},_doSelect:function(tgt){
var _75=this.formatItem(tgt.item);
if(this.multipleValues){
var _76=this.keyArr[this.keyIdx];
this.keyArr[this.keyIdx]=(this.keyIdx!=0&&this.token!=" "?" ":"")+_75;
_75=this.keyArr.join(this.token);
var _77=this.token+(this.token!=" "?" ":"");
if(_75.length>=_77.length&&_75.substring(_75.length-_77.length)!=_77){
_75+=_77;
}
}else{
this.item=tgt.item;
}
this.attr("value",_75);
this._setCaretPos(this.focusNode,_75.length);
},_startSearchFromInput:function(){
var _78=this.focusNode.value;
var _79=_78;
if(this.multipleValues){
this.keyArr=_78.split(this.token);
this.caretPos=this._getCaretPos(this.focusNode);
this.keyIdx=this._numTokensPreceding(_78,this.caretPos);
_79=this.keyArr[this.keyIdx];
}
_79=dojo.string.trim(_79);
if(_79.length>=this.minChars){
this._startSearch(_79);
}else{
this._hideResultList();
}
},_startSearch:function(key){
if(!this._popupWidget){
var _7b=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_7b});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_7b);
}
this.item=null;
var _7c=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_7c=key;
this.searchTimer=setTimeout(dojo.hitch(this,function(_7d,_7e){
var _7f={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_7d,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_80){
console.error("dijit.form.ComboBox: "+_80);
dojo.hitch(_7e,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_7f,_7e.fetchProperties);
var _81=_7e.store.fetch(_7f);
var _82=function(_83,_84){
_83.start+=_83.count*_84;
_83.direction=_84;
this.store.fetch(_83);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_82,_81);
},_7c,this),this.searchDelay);
},getAttribute:function(_85){
if(this.item&&this.item[_85]){
return this.item[_85];
}else{
return "";
}
},getTextBoxValue:function(){
return this.focusNode.value;
},_getMenuLabelFromItem:function(_86){
var _87=this.formatItem(_86,true);
var key="";
if(this.multipleValues){
key=dojo.string.trim(this.keyArr[this.keyIdx]);
}else{
key=dojo.string.trim(this.focusNode.value);
}
key=key.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
var _89=_87.toLowerCase();
var _8a=key.toLowerCase();
var _8b=0;
var _8c=null;
while(key&&-1<(_8c=_89.indexOf(_8a,_8b))){
_87=_87.substr(0,_8c)+"<b>"+_87.substring(_8c,_8c+key.length)+"</b>"+_87.substring(_8c+key.length);
_8b=_8c+key.length+7;
_89=_87.toLowerCase();
}
return {html:true,label:_87};
}});
}
if(!dojo._hasResource["lconn.core.NameUtil"]){
dojo._hasResource["lconn.core.NameUtil"]=true;
dojo.provide("lconn.core.NameUtil");
lconn.core.NameUtil={getHTML:function(_8d,_8e,_8f,id,_91){
var _92;
var _93=lconn.core.HTMLUtil.escapeText(_8f);
if(_8e){
var _94=lconn.core.HTMLUtil.escapeText(_8e);
if(_8d){
_92=(_91?_8d:lconn.core.HTMLUtil.escapeText(_8d));
}else{
_92=_94;
}
return "<span"+(id?" id=\""+id+"\"":"")+"><span class=\"vcard\"><span class=\"fn person lotusPerson\">"+_92+"</span><span class=\"email\" style=\"display: none;\">"+_94+"</span><span class=\"x-lconn-userid\" style=\"display: none;\">"+_93+"</span></span></span>";
}else{
var _92;
var _95=lconn.core.HTMLUtil.escapeInlineText(_8f);
if(_8d){
_92=(_91?_8d:lconn.core.HTMLUtil.escapeText(_8d));
}else{
_92=_93;
}
return "<span"+(id?" id=\""+id+"\"":"")+"><span class=\"vcard\"><span class=\"fn person lotusPerson\">"+_92+"</span><span class=\"x-lconn-userid\" style=\"display: none;\">"+_93+"</span></span></span>";
}
}};
}
if(!dojo._hasResource["lconn.core.Res"]){
dojo._hasResource["lconn.core.Res"]=true;
dojo.provide("lconn.core.Res");
dojo.declare("lconn.core.Res",[],{bundleFor:"lconn.core",resBundle:null,loadDefaultBundle:function(){
this.resBundle=dojo.i18n.getLocalization(this.bundleFor,"strings");
},loadBundle:function(pkg){
this.resBundle=dojo.i18n.getLocalization(pkg,"strings");
},getDefaultBundle:function(){
return dojo.i18n.getLocalization(this.bundleFor,"strings");
},getBundle:function(pkg){
return dojo.i18n.getLocalization(pkg,"strings");
},getStringFrom:function(pkg,key,_9a){
var _9b=dojo.i18n.getLocalization(pkg,"strings")[key];
if(_9a==undefined){
return _9b;
}else{
return dojo.string.substitute(_9b,_9a);
}
},getString:function(key,_9d){
var _9e=dojo.i18n.getLocalization(this.bundleFor,"strings")[key];
if(_9d==undefined){
return _9e;
}else{
return dojo.string.substitute(_9e,_9d);
}
}});
}
if(!dojo._hasResource["lconn.core.PeopleTypeAhead"]){
dojo._hasResource["lconn.core.PeopleTypeAhead"]=true;
dojo.provide("lconn.core.PeopleTypeAhead");
dojo.declare("lconn.core.PeopleTypeAhead",[lconn.core.TypeAhead],{getItem:function(){
return (this.item?this.item:null);
},formatItem:function(_9f,_a0){
var str="";
if(_9f.name.indexOf(",")!=-1&&_9f.name.length>1&&_9f.name[0]!="\""&&_9f.name[_9f.name.length-1]!="\""){
if(_a0){
str+="&quot;"+_9f.name.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")+"&quot;";
}else{
str+="\""+_9f.name+"\"";
}
}else{
str+=_9f.name;
}
if(_9f.member){
if(_a0){
str+=" &lt;"+_9f.member.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;")+"&gt;&lrm;";
}else{
str+=" <"+_9f.member+">‎";
}
}
return str;
},_onKeyPress:function(evt){
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var _a4=false;
var pw=this._popupWidget;
var dk=dojo.keys;
if(this._isShowingNow){
pw.handleKey(key);
}
switch(key){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
if(!this._isShowingNow||this._prev_key_esc){
this._arrowPressed();
_a4=true;
}else{
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.PAGE_UP:
case dk.UP_ARROW:
if(this._isShowingNow){
this._announceOption(pw.getHighlightedOption());
}
dojo.stopEvent(evt);
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
case dk.ENTER:
var _a7;
if(this._isShowingNow&&(_a7=pw.getHighlightedOption())){
if(_a7==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(evt);
break;
}else{
if(_a7==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(evt);
break;
}else{
if(_a7==pw.searchButton){
pw.searchDirectory();
dojo.stopEvent(evt);
return;
}else{
if(_a7.item&&parseInt(_a7.item.type)<0){
dojo.stopEvent(evt);
break;
}
}
}
}
}else{
this._setDisplayedValueAttr(this.attr("displayedValue"),true);
}
evt.preventDefault();
case dk.TAB:
var _a8=this.attr("displayedValue");
if(pw&&(_a8==pw._messages["previousMessage"]||_a8==pw._messages["nextMessage"])){
break;
}
if(this._isShowingNow){
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(pw.getHighlightedOption()){
pw.attr("value",{target:pw.getHighlightedOption()});
}
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
this._prev_key_backspace=false;
this._prev_key_esc=false;
if(this._isShowingNow&&pw.getHighlightedOption()){
dojo.stopEvent(evt);
this._selectOption();
this._hideResultList();
}else{
_a4=true;
}
break;
case dk.ESCAPE:
this._prev_key_backspace=false;
this._prev_key_esc=true;
if(this._isShowingNow){
dojo.stopEvent(evt);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_esc=false;
this._prev_key_backspace=true;
_a4=true;
break;
case dk.RIGHT_ARROW:
case dk.LEFT_ARROW:
this._prev_key_backspace=false;
this._prev_key_esc=false;
break;
default:
this._prev_key_backspace=false;
this._prev_key_esc=false;
_a4=typeof key=="string"||key==229;
}
if(this.searchTimer){
clearTimeout(this.searchTimer);
}
if(_a4){
setTimeout(dojo.hitch(this,"_startSearchFromInput"),1);
}
},_openResultList:function(_a9,_aa){
if(this.disabled||this.readOnly||(_aa.query!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(_a9.length){
var _ab=new String(this.formatItem(_a9[0]));
if(_ab&&this.autoComplete&&!this._prev_key_backspace&&(_aa.query!="")){
this._autoCompleteText(_ab);
}
}
_aa._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_a9,_aa,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_aa.direction){
if(1==_aa.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_aa.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
},_startSearchFromInput:function(_ac,_ad){
var _ae=this.focusNode.value;
var _af=_ae;
if(this.multipleValues){
this.keyArr=_ae.split(this.token);
this.caretPos=this._getCaretPos(this.focusNode);
this.keyIdx=this._numTokensPreceding(_ae,this.caretPos);
_af=this.keyArr[this.keyIdx];
}
_af=dojo.string.trim(_af);
if(_af.length>=this.minChars){
this._startSearch(_af,_ad);
}else{
this._hideResultList();
}
},_startSearch:function(key,_b1){
if(!this._popupWidget){
var _b2=this.id+"_popup";
this._popupWidget=new lconn.act.PeopleTypeAheadMenu({onChange:dojo.hitch(this,this._selectOption),id:_b2});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_b2);
}
if(_b1==undefined){
_b1=false;
}
this.item=null;
var _b3=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_b3=key;
this.searchTimer=setTimeout(dojo.hitch(this,function(_b4,_b5){
var _b6={queryOptions:{ignoreCase:this.ignoreCase,deep:true},searchDirectory:_b1,query:_b4,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_b7){
console.error("dijit.form.ComboBox: "+_b7);
dojo.hitch(_b5,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_b6,_b5.fetchProperties);
var _b8=_b5.store.fetch(_b6);
var _b9=function(_ba,_bb){
_ba.start+=_ba.count*_bb;
_ba.direction=_bb;
this.store.fetch(_ba);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_b9,_b8);
this._popupWidget.searchDirectory=dojo.hitch(this,dojo.hitch(this,function(){
this._startSearch(key,true);
}));
},_b3,this),this.searchDelay);
}});
dojo.declare("lconn.act.PeopleTypeAheadMenu",[dijit.form._ComboBoxMenu,lconn.core.Res],{rs_searchDirectory:"",templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' waiRole='alert' role='waiRole:alert' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton'></li>"+"<li class='dijitMenuItem searchDirectory' dojoAttachPoint='searchButton'>${rs_searchDirectory}</li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton'></li>"+"</ul>",_messages:null,tooltipAroundNode:null,tooltipTimeout:null,tooltipDelay:600,tooltipId:0,popupClosed:true,postMixInProperties:function(){
this.loadDefaultBundle();
this.rs_searchDirectory=this.resBundle.rs_searchDirectory;
this.inherited("postMixInProperties",arguments);
},searchDirectory:function(){
},_setValueAttr:function(_bc){
if(_bc.target.item&&parseInt(_bc.target.item.type)>=0){
this.value=_bc;
this.onChange(_bc);
}
},_createOption:function(_bd,_be){
var _bf=_be(_bd);
var _c0=document.createElement("li");
dijit.setWaiRole(_c0,"option");
if(_bd.userid){
dojo.attr(_c0,"exid",_bd.userid);
}
if(_bf.html){
_c0.innerHTML=_bf.label;
}else{
_c0.appendChild(document.createTextNode(_bf.label));
}
if(_c0.innerHTML==""){
_c0.innerHTML="&nbsp;";
}
_c0.item=_bd;
return _c0;
},createOptions:function(_c1,_c2,_c3){
this.previousButton.style.display=(_c2.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_c1,function(_c4,i){
var _c6=this._createOption(_c4,_c3);
_c6.className="dijitMenuItem";
dojo.attr(_c6,"id",this.id+i);
this.domNode.insertBefore(_c6,this.searchButton);
},this);
var _c7=false;
if(_c2._maxOptions&&_c2._maxOptions!=-1){
if((_c2.start+_c2.count)<_c2._maxOptions){
_c7=true;
}else{
if((_c2.start+_c2.count)>(_c2._maxOptions-1)){
if(_c2.count==_c1.length){
_c7=true;
}
}
}
}else{
if(_c2.count==_c1.length){
_c7=true;
}
}
this.nextButton.style.display=_c7?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
this.searchButton.style.display=(_c2.searchDirectory?"none":"");
},_onMouseUp:function(evt){
if(evt.target==this.searchButton){
this.searchDirectory();
}else{
this.inherited("_onMouseUp",arguments);
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton||tgt==this.searchButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_focusOptionNode:function(_cb){
if(this._highlighted_option!=_cb){
var _cc=dojo.attr(_cb,"exid");
this.closeTooltip();
this.tooltipId++;
this.popupClosed=false;
if(_cc&&window.lconn&&lconn.profiles&&lconn.profiles.bizCard.bizCard.renderMiniBizCard){
this.tooltipTimeout=setTimeout(dojo.hitch(this,"renderBizCard",_cc,dojo.hitch(this,"showTooltip",this.tooltipId,_cb)),this.tooltipDelay);
}
}
this.inherited("_focusOptionNode",arguments);
},renderBizCard:function(_cd,fn){
if(window.lconn&&lconn.profiles&&lconn.profiles.bizCard.bizCard.renderMiniBizCard){
lconn.profiles.bizCard.bizCard.renderMiniBizCard(_cd,fn);
}
},showTooltip:function(id,_d0,_d1){
if(id==this.tooltipId&&!this.popupClosed){
this.tooltipAroundNode=_d0;
dijit.showTooltip(_d1,_d0,["after","before"]);
}
},closeTooltip:function(){
if(this.tooltipAroundNode){
dijit.hideTooltip(this.tooltipAroundNode);
this.tooltipAroundNode=null;
}
if(this.tooltipTimeout){
clearTimeout(this.tooltipTimeout);
this.tooltipTimeout=null;
}
},onClose:function(){
this.popupClosed=true;
this.closeTooltip();
this._blurOptionNode();
},clearResultList:function(){
while(this.domNode.childNodes.length>3){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-3]);
}
},getListLength:function(){
return this.domNode.childNodes.length-3;
}});
}
if(!dojo._hasResource["lconn.blogs.PeopleTypeAhead"]){
dojo._hasResource["lconn.blogs.PeopleTypeAhead"]=true;
dojo.provide("lconn.blogs.PeopleTypeAhead");
dojo.declare("lconn.blogs.PeopleTypeAhead",[lconn.core.PeopleTypeAhead],{isDirectorySearchEnabled:true,postCreate:function(){
this.inherited("postCreate",arguments);
var _d2=this.id+"_popup";
this._popupWidget=new lconn.blogs.PeopleTypeAheadMenu({id:_d2,onChange:dojo.hitch(this,this._selectOption),isDirectorySearchEnabled:this.isDirectorySearchEnabled});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_d2);
}});
dojo.declare("lconn.blogs.PeopleTypeAheadMenu",[lconn.act.PeopleTypeAheadMenu],{isDirectorySearchEnabled:true,createOptions:function(_d3,_d4,_d5){
this.inherited("createOptions",arguments);
if(!this.isDirectorySearchEnabled){
this.searchButton.style.display="none";
}
}});
}
if(!dojo._hasResource["lconn.core.PeopleDataStore"]){
dojo._hasResource["lconn.core.PeopleDataStore"]=true;
dojo.provide("lconn.core.PeopleDataStore");
dojo.declare("lconn.core.PeopleDataStore",null,{constructor:function(_d6,_d7){
this.queryParam=(_d6.queryParam?_d6.queryParam:_d7.getAttribute("queryParam"));
this.url=(_d6.url?_d6.url:_d7.getAttribute("url"));
},queryParam:"",searchDirectory:false,cache:[],dirCache:[],fetch:function(_d8){
var _d9={};
var _da;
this.searchDirectory=(_d8.searchDirectory?true:false);
if(this.searchDirectory){
_da=this.dirCache;
}else{
_da=this.cache;
}
if(typeof _da[_d8.query.toLowerCase()]=="object"){
_d8.onComplete(_da[_d8.query.toLowerCase()],_d8);
return _d8;
}
if(this.queryParam){
_d9[this.queryParam]=_d8.query;
}
if(this.searchDirectory){
_d9.usedirectory="yes";
}
dojo.xhrPost({url:this.url,content:_d9,handleAs:"json-comment-optional",timeout:5000,contentType:"application/x-www-form-urlencoded;charset=UTF-8",load:dojo.hitch(this,function(_db){
var _dc;
if(this.searchDirectory){
_dc=this.dirCache;
}else{
_dc=this.cache;
}
_dc[_d8.query.toLowerCase()]=_db.items;
if(_d8.onComplete){
_d8.onComplete(_db.items,_d8);
}
}),error:function(){
console.log("There was an error");
}});
return _d8;
},getValue:function(_dd,_de,_df){
if(_dd[_de]){
return _dd[_de];
}else{
return _df;
}
}});
}
if(!dojo._hasResource["lconn.blogs.AddMembers"]){
dojo._hasResource["lconn.blogs.AddMembers"]=true;
dojo.provide("lconn.blogs.AddMembers");
var w={};
w.templateString="<div class=\"AddMembers\">\r\n    <input type=\"hidden\" name=\"owners\" dojoAttachPoint=\"owners_P_AP\" />\r\n    <input type=\"hidden\" name=\"authors\" dojoAttachPoint=\"authors_P_AP\" />\r\n    <input type=\"hidden\" name=\"draft\" dojoAttachPoint=\"draft_P_AP\" />\r\n\r\n    <label>${rs_addMemberDescription}</label>\r\n    <div class=\"field\">\r\n        <div dojoAttachPoint=\"memberList_AP\" class=\"memberList\"></div>\r\n    </div>\r\n    <div class=\"field\">\r\n        <select dojoAttachPoint=\"aclLevel_AP\">\r\n            <option dojoAttachPoint=\"owners_AP\" value=\"owners\">${rs_owner}</option>\r\n            <option value=\"authors\" selected=\"selected\">${rs_author}</option>\r\n            <option value=\"draft\">${rs_draft}</option>\r\n        </select>\r\n        <input dojoAttachPoint=\"membersCombo_AP\" ></input>\r\n        <button title=\"${rs_addMember_title}\" class=\"fieldAdd\" dojoAttachEvent=\"onclick: newMember\"> </button>\r\n        <span title=\"${rs_addMember_title}\" class=\"fieldAddText\" dojoAttachEvent=\"onclick: newMember\">+</span>\r\n    </div>\r\n    <!--  div class=\"tundra\"><input type=\"checkbox\" dojoAttachPoint=\"notifyCheck_AP\" />${rs_notification}</div -->\r\n</div>\r\n";
w.rs_addMemberDescription="rs_addMemberDescription";
w.rs_notification="rs_notification";
w.rs_author="rs_author";
w.rs_draft="rs_draft";
w.rs_owner="rs_owner";
w.rs_addMember="rs_addMember";
w.rs_authorLower="rs_authorLower";
w.rs_ownerLower="rs_ownerLower";
w.rs_draftLower="rs_draftLower";
w.rs_addMember_title="rs_addMember_title";
w.rs_removeMember_title="rs_removeMember_title";
w.lowerLabels={};
w.memberStore=null;
w.typeAhead_W=null;
w.members={};
w.scrollThreshold=4;
w.postMixInProperties=function(){
this.rs_addMemberDescription=rs_addMemberDescription;
this.rs_author=rs_author;
this.rs_owner=rs_owner;
this.rs_draft=rs_draft;
this.rs_authorLower=rs_authorLower;
this.rs_ownerLower=rs_ownerLower;
this.rs_draftLower=rs_draftLower;
this.rs_addMember_title=rs_addMember_title;
this.rs_removeMember_title=rs_removeMember_title;
this.lowerLabels={owners:this.rs_ownerLower,authors:this.rs_authorLower,draft:this.rs_draftLower};
};
w.postCreate=function(){
this.members={P:{owners:[],authors:[],draft:[]}};
var url=blogsContext+"/roller-services/json/typeaheadpeople";
this.memberStore=new lconn.core.PeopleDataStore({url:url,queryParam:"name"},this.memberStore_AP);
var _e1={minChars:2,searchDelay:600,multipleValues:false,store:this.memberStore,"class":"typeAhead"};
this.typeAhead_W=new lconn.core.PeopleTypeAhead(_e1,this.membersCombo_AP);
dojo.connect(this.typeAhead_W,"_doSelect",this,"newMember");
this.memberList_AP.style.height="";
this.memberList_AP.className="memberList";
};
w.uninitialize=function(){
this.members=null;
};
w.reset=function(){
this.members={P:{owners:[],authors:[],draft:[]}};
this.aclLevel_AP.value="authors";
this.typeAhead_W.setValue("");
this.owners_P_AP.value=this.authors_P_AP.value=this.draft_P_AP.value="";
this.memberList_AP.innerHTML="";
this.memberList_AP.style.height="";
this.memberList_AP.className="memberList";
this.memberList_AP.style.visibility="";
};
w.newMember=function(){
var _e2=null;
var _e3="";
var _e4=[];
var _e5=false;
_e2=this.typeAhead_W.getItem();
_e3=this.aclLevel_AP.value;
var _e6,_e7;
if(_e2){
switch(parseInt(_e2.type)){
case 0:
_e6="P";
break;
default:
_e6="P";
}
_e7=_e2.userid;
}else{
_e6="P";
_e7=this.typeAhead_W.getTextBoxValue();
if(!_e7.match(/.*@.*\..*/)){
return;
}
}
if(_e7){
this.members[_e6][_e3].push(_e7);
var _e8=document.createElement("div");
dojo.addClass(_e8,"member");
_e8.innerHTML="<div class=\""+(_e6!=undefined?_e6:"P")+"\">&nbsp;</div>";
var _e9=document.createElement("div");
dojo.addClass(_e9,"nameContent");
var _ea;
if(_e2){
var _eb=_e2.name+(_e2.member?"<"+_e2.member+">":"");
_ea=lconn.core.NameUtil.getHTML(_eb,null,_e2.userid,null,true);
}else{
_ea=lconn.core.NameUtil.getHTML(_e7,_e7,null,null,true);
}
_ea=_ea.replace(/&lt;/g,"&lrm;&lt;").replace(/&gt;/g,"&gt;&lrm;");
_e9.innerHTML+=_ea+" <span class=\"type\">("+this.lowerLabels[_e3]+")</span>";
var _ec=document.createElement("input");
_ec.className="fieldDel";
_ec.type="button";
_ec.title=this.rs_removeMember_title;
this.connect(_ec,"ondijitclick",dojo.hitch(this,"removeMember",_e7,_e6,_e3,_e8));
var _ed=document.createElement("span");
_ed.className="fieldDelText";
_ed.title=this.rs_removeMember_title;
_ed.innerHTML="X";
this.connect(_ed,"ondijitclick",dojo.hitch(this,"removeMember",_e7,_e6,_e3,_e8));
_e9.appendChild(_ec);
_e9.appendChild(_ed);
_e8.appendChild(_e9);
if(this.memberList_AP.firstChild){
this.memberList_AP.insertBefore(_e8,this.memberList_AP.firstChild);
}else{
this.memberList_AP.appendChild(_e8);
}
this.memberList_AP.style.visibility="visible";
if(window.SemTagSvc&&SemTagSvc.parseDom){
SemTagSvc.parseDom(0,_e8);
}
if(this.howManyMembers()>=this.scrollThreshold){
this.memberList_AP.style.height=this.memberList_AP.offsetHeight+"px";
dojo.addClass(this.memberList_AP,"scroll");
}
this.typeAhead_W.reset();
}
};
w.howManyMembers=function(){
var _ee=0;
for(type in this.members){
for(level in this.members[type]){
_ee+=this.members[type][level].length;
}
}
return _ee;
};
w.removeMember=function(_ef,_f0,_f1,_f2,evt){
if(_f2){
this.memberList_AP.removeChild(_f2);
}
var i=0;
while(i<this.members[_f0][_f1].length&&this.members[_f0][_f1][i]!=_ef){
i++;
}
if(i<this.members[_f0][_f1].length){
this.members[_f0][_f1].splice(i,1);
}
var _f5=this.howManyMembers();
if(_f5==0){
this.memberList_AP.style.visibility="hidden";
}else{
if(_f5<this.scrollThreshold){
dojo.removeClass(this.memberList_AP,"scroll");
this.memberList_AP.style.height="";
}
}
};
w.setHiddenFields=function(){
var _f6={};
var len=0;
for(type in this.members){
_f6[type]={};
for(level in this.members[type]){
_f6[type][level]=this.members[type][level].join(",");
}
}
this.owners_P_AP.value=_f6.P.owners;
this.authors_P_AP.value=_f6.P.authors;
this.draft_P_AP.value=_f6.P.draft;
};
dojo.declare("lconn.blogs.AddMembers",[lconn.blogs.Res,dijit._Widget,dijit._Templated],w);
}
if(!dojo._hasResource["lconn.blogs.localDate"]){
dojo._hasResource["lconn.blogs.localDate"]=true;
dojo.provide("lconn.blogs.localDate");
dojo.declare("lconn.blogs._localDate",null,{now:new Date(),MILLS_IN_DAY:86400000,init:false,tempDate:new Date(),localize:function(_f8,_f9){
if(!this.init){
this.messages=dojo.i18n.getLocalization("lconn.blogs","strings");
this.days=[this.messages.Sunday,this.messages.Monday,this.messages.Tuesday,this.messages.Wednesday,this.messages.Thursday,this.messages.Friday,this.messages.Saturday];
this.months=[this.messages.Jan,this.messages.Feb,this.messages.Mar,this.messages.Apr,this.messages.May,this.messages.June,this.messages.July,this.messages.Aug,this.messages.Sep,this.messages.Oct,this.messages.Nov,this.messages.Dec];
var t=new Date();
t.setHours(0);
t.setMinutes(0);
t.setSeconds(0);
t.setMilliseconds(0);
this.todayMidnight=t.getTime();
this.timeline=[this.todayMidnight-this.MILLS_IN_DAY-this.MILLS_IN_DAY,this.todayMidnight-this.MILLS_IN_DAY,this.todayMidnight+this.MILLS_IN_DAY,this.todayMidnight+this.MILLS_IN_DAY+this.MILLS_IN_DAY,this.todayMidnight+this.MILLS_IN_DAY+this.MILLS_IN_DAY+this.MILLS_IN_DAY];
this.init=true;
}
this.tempDate.setTime(_f8);
var _fb=this.tempDate;
var d=_fb.getDay();
var _fd="";
if(_f8>=this.todayMidnight&&_f8<this.timeline[2]){
if(_f9===undefined){
_fd=this.messages.Today+" "+this.getLocalizedTime(_fb);
}else{
_fd=this.messages.Today;
}
}else{
if(_f8<this.todayMidnight&&_f8>=this.timeline[1]){
if(_f9===undefined){
_fd=this.messages.Yesterday+" "+this.getLocalizedTime(_fb);
}else{
_fd=this.messages.Yesterday;
}
}else{
if(_f8<this.timeline[1]&&_f8>=this.timeline[0]){
if(_f9===undefined){
_fd=this.days[d]+" "+this.getLocalizedTime(_fb);
}else{
_fd=this.days[d];
}
}else{
if(_f8<this.timeline[3]&&_f8>=this.timeline[2]){
_fd=this.messages.Tomorrow;
}else{
if(_f8<this.timeline[4]&&_f8>=this.timeline[3]){
_fd=this.days[d];
}else{
if(this.now.getFullYear()==_fb.getFullYear()){
if(typeof (this.isEnglishLocale)=="undefined"){
var _fe=dojo.locale.substring(0,2).toLowerCase();
var _ff="";
if(dojo.locale.length>2){
_ff=dojo.locale.substring(3,5).toLowerCase();
}
this.isEnglishLocale=(_fe=="en"&&(_ff==""||_ff=="us"));
}
if(this.isEnglishLocale){
_fd=this.months[_fb.getMonth()]+" "+_fb.getDate();
}else{
_fd=this.getLocalizedDate(_fb);
}
}else{
if(typeof (this.isEnglishLocale)=="undefined"){
var _fe=dojo.locale.substring(0,2).toLowerCase();
var _ff="";
if(dojo.locale.length>2){
_ff=dojo.locale.substring(3,5).toLowerCase();
}
this.isEnglishLocale=(_fe=="en"&&(_ff==""||_ff=="us"));
}
if(this.isEnglishLocale){
_fd=this.months[_fb.getMonth()]+" "+_fb.getDate()+" "+_fb.getFullYear();
}else{
_fd=this.getLocalizedDate(_fb);
}
}
}
}
}
}
}
return "<span title=\""+_fd+"\">"+_fd+"</span>";
},getLocalizedTime:function(date){
return dojo.date.locale.format(date,{formatLength:"short",selector:"time",locale:dojo.locale});
},getLocalizedDate:function(date){
return dojo.date.locale.format(date,{formatLength:"medium",selector:"date",locale:dojo.locale});
}});
lconn.blogs.localDate=new lconn.blogs._localDate();
if(typeof blogsDate=="undefined"){
blogsDate={};
}
if(typeof blogsDate.date=="undefined"){
blogsDate.date=lconn.blogs.localDate;
}
}
if(!dojo._hasResource["lconn.blogs.tags"]){
dojo._hasResource["lconn.blogs.tags"]=true;
dojo.provide("lconn.blogs.tags");
dojo.declare("lconn.blogs._tags",null,{pivotBrowseTag:function(){
var e=dojo.byId("taginput");
var s=e.value;
e.value="";
if(s!=""){
var a=dojo.byId("actualtagform").action;
if(a.indexOf("?")==-1){
document.location.href=dojo.byId("actualtagform").action+encodeURIComponent(s)+"?lang="+langParaValue;
}else{
document.location.href=dojo.byId("actualtagform").action+encodeURIComponent(s)+"&lang="+langParaValue;
}
}
},minVisThreshold:0,showTagVis:function(){
var e=dojo.byId("tagbin");
if(!e){
return;
}
var as=e.getElementsByTagName("span");
for(var i=0;i<as.length;i++){
var a=as[i];
var m=a.className.match(/^f\d+-(\d+)/);
if(m){
a.style.display=(m[1]>=this.minVisThreshold)?"inline":"none";
}
}
},updateTagVis:function(t){
this.minVisThreshold=t;
dojo.cookie("sliderVis_value",t,{path:"/"});
this.showTagVis();
},createSlider:function(name){
var t;
t=dojo.cookie("sliderVis_value");
this.minVisThreshold=(typeof t=="undefined"?0:Math.max(Math.min(parseFloat(t),100),0));
var s=["<div dojoType=\"dijit.form.HorizontalSlider\" id=\"",name,"\" value=\"",this.minVisThreshold,"\"","maximum=\"100\" minimum=\"0\" pageIncrement=\"1\" showButtons=\"false\" intermediateChanges=\"true\"","style=\"height: 17px; float: left; padding-top: 5px\" onChange=\"lconn.blogs.tags.updateTagVis(arguments[0]);\"></div>"].join("");
document.write(s);
dojo.addOnLoad(function(){
dijit.byId(name).sliderBarContainer.style.width="100%";
});
}});
lconn.blogs.tags=new lconn.blogs._tags();
}
if(!dojo._hasResource["lconn.blogs.rating"]){
dojo._hasResource["lconn.blogs.rating"]=true;
dojo.provide("lconn.blogs.rating");
dojo.declare("lconn.blogs._rating",null,{displayRecommendeeList:function(_10e,type,id,edit,obj){
if(typeof MenuPopup=="undefined"){
return;
}
if(dojo.isIE){
if(typeof this.__last!="undefined"&&this.__last&&typeof this.__last[id]!="undefined"&&this.__last[id]){
var n=new Date().getTime();
if(n-this.__last[id]<=Popup.Effect.DURATION*2){
return;
}
}
this.__last={};
this.__last[id]=new Date().getTime();
}
if(!this.messages){
this.messages=dojo.i18n.getLocalization("lconn.blogs","strings");
}
var _114=dojo.byId("popup_recommendeelist");
if(!_114){
_114=document.createElement("div");
_114.className="ratingPopup popup";
_114.setAttribute("id","popup_recommendeelist");
document.body.appendChild(_114);
}
var info="<h3 class=\"lotusAlignLeft\">";
var _116=eval("ratings['"+type+"_"+id+"_recommentees']");
if(edit==1){
if(!currentLogin.auth){
info=info+"<a href=\""+BlogsBaseUrl+"/roller-ui/login-redirect.jsp?redirect="+escape(window.location)+"\">"+(type=="entry"?this.messages.RatingLoginToRate:this.messages.RatingCommentLoginToRate)+"</a>";
}else{
if(typeof _116!="undefined"&&_116.size>0&&_116[currentLogin.uid]){
info=info+(type=="entry"?this.messages.RatingEntryRated:this.messages.RatingCommentRated);
}else{
info=info+(type=="entry"?this.messages.RatingClickToRateEntry:this.messages.RatingClickToRateComment);
}
}
}
if(typeof _116!="undefined"&&_116.size>0){
if(edit==1){
info=info+"<br>";
}
info=info+this.messages.RatingRecommentedBy;
info=info+"</h3>";
if(!_116["_"]){
var s="";
for(uid in _116){
if(uid=="size"){
continue;
}
if(uid=="_"){
continue;
}
if(s!=""){
s+=", ";
}
s+=_116[uid];
}
_116["_"]=s;
}
info=info+"<textarea readonly=\"readonly\" style=\"border: 1px solid gray; background-color: rgb(255, 255, 255);\">"+lconn.blogs.utils.escapeHTML(_116["_"])+"</textarea>";
}
_114.innerHTML=info;
MenuPopup.showMenu("popup_recommendeelist",_10e,{focus:obj});
},hideRecommendeeList:function(_118,type,id,edit,obj){
if(dojo.isIE){
MenuPopup.returnFocusElement=false;
}
MenuPopup.hideMenu();
},recommend:function(type,uri,id){
if(!currentLogin.auth){
return;
}
var _120=eval("ratings['"+type+"_"+id+"_recommentees']");
if(typeof _120!="undefined"&&_120.size>0&&_120[currentLogin.uid]){
return;
}
if(!this.messages){
this.messages=dojo.i18n.getLocalization("lconn.blogs","strings");
}
dojo.xhrPost({url:uri,handleAs:"json",content:type=="entry"?{version:250,rating:5,dangerousurlnonce:window.__security_nonce}:{version:250,rating:5,dangerousurlnonce:window.__security_nonce,commentid:id},load:function(data){
if(data.success){
var _122=eval("ratings['"+type+"_"+id+"_recommentees']");
if(typeof _122=="undefined"){
eval("ratings['"+type+"_"+id+"_recommentees']={'size':0, '_':''}");
_122=eval("ratings['"+type+"_"+id+"_recommentees']");
}
if(_122.size>0&&_122[currentLogin.uid]){
return;
}
_122[currentLogin.uid]=window.currentLogin.name;
_122.size++;
_122["_"]=null;
var e=dojo.byId(type+"_rating_"+id);
var x=dojo.query("[name=\"rating_btn\"]",e);
if(x&&x.length==1){
x[0].style.display="none";
}
var r=Math.min(Math.floor(_122.size/10)+1,8);
x=dojo.query("[name=\"rating_icon\"]",e);
if(x&&x.length==1){
x[0].innerHTML="";
var img=document.createElement("img");
img.border="0";
if(r==1){
img.src=BlogsBaseUrl+"/nav/lconn/styles/images/iconRating16_on.png";
}else{
if(r==2){
img.src=BlogsBaseUrl+"/nav/lconn/styles/images/iconRating2-16.png";
}else{
if(r==3){
img.src=BlogsBaseUrl+"/nav/lconn/styles/images/iconRating3-16.png";
}else{
img.src=BlogsBaseUrl+"/nav/common/styles/images/iconRating"+r+".gif";
}
}
}
img.alt=lconn.blogs.rating.messages.RatingsAltRatings;
x[0].appendChild(img);
}
x=dojo.query("[name=\"rating_count\"]",e);
if(x&&x.length==1){
x[0].innerHTML=_122.size;
}
}else{
if(data.error){
showDialog(data.error);
}
}
}});
}});
lconn.blogs.rating=new lconn.blogs._rating();
}
if(!dojo._hasResource["lconn.blogs.MemberList"]){
dojo._hasResource["lconn.blogs.MemberList"]=true;
dojo.provide("lconn.blogs.MemberList");
var _memberList={};
_memberList.members=[];
_memberList.scrollThreshold=4;
_memberList.memberElementHeight=28;
_memberList.init=function(_127,_128){
_memberList.typeAhead_W=_127;
if(_memberList.holderElement){
_memberList.holderElement.innerHTML="";
_memberList.holderElement.style.display="none";
}
this.holderElement=null;
this.widgetParent=_128;
this.members=[];
this.repaint();
dojo.connect(this.typeAhead_W,"_doSelect",this,"add");
};
_memberList.add=function(){
var pObj=null;
if(this.typeAhead_W.getItem()){
pObj=this.typeAhead_W.getItem();
}else{
var val=this.typeAhead_W.getTextBoxValue();
if(!val.match(/.*@.*\..*/)){
return;
}
pObj={};
pObj.name=val;
pObj.userid=val;
}
for(var i=0;i<this.members.length;i++){
if(this.members[i].userid==pObj.userid){
this.typeAhead_W.reset();
return;
}
}
this.members.push(pObj);
this.repaint();
this.typeAhead_W.reset();
};
_memberList.removeMember=function(user){
var _12d=false;
for(var i=0;i<this.members.length;i++){
if(this.members[i].userid==user.userid){
_12d=true;
this.members.splice(i,1);
break;
}
}
if(!_12d){
return;
}
this.repaint();
};
_memberList.repaint=function(){
var _12f=dojo.i18n.getLocalization("lconn.blogs","strings");
if(this.holderElement){
this.holderElement.innerHTML="";
this.holderElement.style.display="";
this.holderElement.style.height="auto";
}else{
var _130=document.createElement("div");
_130.className="memberList scroll";
this.holderElement=_130;
this.widgetParent.parentNode.insertBefore(this.holderElement,this.widgetParent);
}
if(this.members.length==0){
this.holderElement.style.display="none";
this.holderElement.innerHTML="<input type='hidden' id=\"receivers\" name=\"receivers\" value=\"\">";
return;
}
var html="";
var _132="";
for(var i=0;i<this.members.length;i++){
var _134=this.members[i].name+(this.members[i].member?"<"+this.members[i].member+">":"");
var _135=lconn.core.NameUtil.getHTML(_134,null,this.members[i].userid,null,true);
html+="<div class='member'><nobr><span class='picon'>&nbsp;&nbsp;</span>&nbsp;"+"<span class='nameContent'>"+_135+"<input type='button' class='fieldDel' title=\""+_12f.rs_removeMember_title+"\" onclick='_memberList.removeMember(_memberList.members["+i+"])'>"+"<a href='#' class='lotusAltText' title=\""+_12f.rs_removeMember_title+"\" onclick='_memberList.removeMember(_memberList.members["+i+"])'> X</a>"+"</span></nobr></div>";
_132+="<"+this.members[i].userid+">, ";
}
html+="<input type='hidden' id=\"receivers\" name=\"receivers\" value=\""+_132+"\">";
this.holderElement.innerHTML=html;
if(this.members.length>this.scrollThreshold){
this.holderElement.style.overflow="auto";
this.holderElement.style.height=this.memberElementHeight*this.scrollThreshold+"px";
this.holderElement.scrollTop=(this.members.length-this.scrollThreshold)*this.memberElementHeight;
}
if(window.SemTagSvc&&SemTagSvc.parseDom){
SemTagSvc.parseDom(0,this.holderElement);
}
};
}
if(!dojo._hasResource["lconn.blogs.TimezonePicker"]){
dojo._hasResource["lconn.blogs.TimezonePicker"]=true;
dojo.provide("lconn.blogs.TimezonePicker");
getClientBrowserTimezone=function(){
var _136=function(_137){
var _138;
_137=Math.abs(_137);
var a=Math.floor(_137);
var b=(_137-a)*60;
if(_137<10){
_138="0"+a+(b==0?"00":b);
}else{
_138=""+a+(b==0?"00":b);
}
return _138;
};
timeZoneMapping={"n1200":"Etc/GMT+12","n1100":"Pacific/Pago_Pago","n1000":"Pacific/Honolulu","n0900":"America/Anchorage","n0800":"America/Los_Angeles","n0700":"America/Phoenix","n0600":"America/Guatemala","n0500":"America/Lima","n0400":"America/Halifax","n0330":"America/St_Johns","n0300":"America/Sao_Paulo","n0200":"Atlantic/South_Georgia","n0100":"Atlantic/Azores","_00":"Africa/Casablanca","p0100":"Europe/Amsterdam","p0200":"Asia/Amman","p0300":"Asia/Baghdad","p0330":"Asia/Tehran","p0400":"Asia/Muscat","p0430":"Asia/Kabul","p0500":"Asia/Yekaterinburg","p0530":"Asia/Calcutta","p0545":"Asia/Katmandu","p0600":"Asia/Almaty","p0630":"Asia/Rangoon","p0700":"Asia/Bangkok","p0800":"Asia/Hong_Kong","p0900":"Asia/Tokyo","p0930":"Australia/Adelaide","p1000":"Australia/Brisbane","p1100":"Pacific/Noumea","p1200":"Pacific/Auckland","p1300":"Pacific/Tongatapu"};
var date=new Date();
var _13c=date.toString();
_13c=_13c.substring(_13c.length-8);
if(_13c==dojo.byId("serverDefaultTimezoneOffset")&&dojo.byId("serverDefaultTimezoneID")!=""){
return dojo.byId("serverDefaultTimezoneID");
}
var _13d=date.getTimezoneOffset()/60;
var _13e;
if(_13d<0){
_13e="p"+_136(_13d);
}else{
if(_13d>0){
_13e="n"+_136(_13d);
}else{
_13e="_00";
}
}
var _13f=eval("timeZoneMapping."+_13e);
return _13f;
};
}
if(!dojo._hasResource["lconn.blogs.TabContainer"]){
dojo._hasResource["lconn.blogs.TabContainer"]=true;
dojo.provide("lconn.blogs.TabContainer");
dojo.declare("lconn.blogs.TabContainer",[dijit._Widget,dijit._Templated,dijit._Container],{selected:"",templateString:"<DIV>"+"<DIV class=\"lotusTabContainer\">"+"<UL class=\"lotusTabs\" dojoAttachPoint=\"tabsNode\"></UL>"+"</DIV>"+"<DIV dojoAttachPoint=\"containerNode\" style=\"height:auto !important\"></DIV>"+"</DIV>",startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(item){
this.addTab(item);
},this);
this.inherited(arguments);
},addTab:function(_141){
var li=document.createElement("LI");
li.name=_141.name;
dojo.addClass(li,"lotusTab");
this.tabsNode.appendChild(li);
var div=document.createElement("DIV");
li.appendChild(div);
var link=document.createElement("A");
link.title=_141.title;
link.href="#";
link.onclick=dojo.hitch(this,"selectTab",_141.name);
link.innerHTML=_141.title;
div.appendChild(link);
if(_141.name==this.selected){
dojo.addClass(li,"lotusSelected");
li.style.fontWeight="bold";
_141.domNode.style.display="";
}
},selectTab:function(name,_146){
if(!_146&&this.selected==name){
return false;
}
this.selected=name;
dojo.forEach(dojo.query(".lotusTab",this.tabsNode),function(item){
if(item.name==name){
dojo.addClass(item,"lotusSelected");
item.style.fontWeight="bold";
}else{
dojo.removeClass(item,"lotusSelected");
item.style.fontWeight="";
}
});
dojo.forEach(dojo.query(".lotusTabContent",this.containerNode),function(item){
item.style.display=(dojo.attr(item,"name")==name)?"":"none";
});
return false;
}});
dojo.declare("lconn.blogs.TabContent",[dijit._Widget,dijit._Templated,dijit._Contained],{name:"",title:"",templateString:"<DIV dojoAttachPoint=\"containerNode\" name=\"${name}\" class=\"lotusTabContent\" style=\"display:none;\"></DIV>"});
}
if(!dojo._hasResource["lconn.blogs.notification.receivers"]){
dojo._hasResource["lconn.blogs.notification.receivers"]=true;
dojo.provide("lconn.blogs.notification.receivers");
dojo.declare("lconn.blogs.notification.receivers",[dijit._Widget,dijit._Templated],{templateString:"<DIV>"+"<DIV class=\"lotusFilters\" dojoAttachPoint=\"receiverList_AP\"></DIV>"+"<INPUT type=\"hidden\" name=\"receivers\" dojoAttachPoint=\"receivers_AP\" value=\"\">"+"</DIV>",receivers:[],startup:function(){
this.receivers_AP.clear=dojo.hitch(this,"clear");
},form:function(){
return this.receivers_AP.form;
},onChange:null,add:function(_149,_14a){
var t=[];
for(var i=0;i<this.receivers.length;i++){
if(this.receivers[i].extid!=_149){
t.push(this.receivers[i]);
}
}
t.push({"extid":_149,"fullname":_14a});
this.receivers=t;
if(this.onChange){
this.onChange({"extid":_149,"fullname":_14a},"add");
}
this.repaint();
},remove:function(_14d){
var t=[];
for(var i=0;i<this.receivers.length;i++){
if(this.receivers[i].extid!=_14d){
t.push(this.receivers[i]);
}
}
this.receivers=t;
if(this.onChange){
this.onChange({"extid":_14d},"remove");
}
this.repaint();
},clear:function(){
this.receivers=[];
if(this.onChange){
this.onChange(this.receivers);
}
this.repaint();
},repaint:function(){
var _150=dojo.i18n.getLocalization("lconn.blogs","strings");
var s="";
for(var i=0;i<this.receivers.length;i++){
if(s.length>0){
s=s+", ";
}
s=s+"<"+this.receivers[i].extid+">";
}
this.receivers_AP.value=s;
this.receiverList_AP.innerHTML="";
for(var i=0;i<this.receivers.length;i++){
var t=document.createElement("span");
dojo.addClass(t,"vcard");
var link=document.createElement("a");
link.href="javascript:;";
dojo.attr(link,"extid",this.receivers[i].extid);
dojo.addClass(link,"lotusFilter");
link.style.marginBottom="2px";
dojo.connect(link,"onkeydown",this,function(e){
if(e.keyCode==dojo.keys.DELETE){
this.remove(dojo.attr(link,"extid"));
}
});
t.appendChild(link);
var nobr=document.createElement("nobr");
link.appendChild(nobr);
var _157=document.createElement("span");
dojo.addClass(_157,"lotusPerson");
dojo.addClass(_157,"fn");
dojo.addClass(_157,"person");
_157.innerHTML=this.receivers[i].fullname;
nobr.appendChild(_157);
var _158=document.createElement("span");
_158.title=_150.rs_removeMember_title;
_158.innerHTML="X";
dojo.addClass(_158,"lotusClose");
_158.onclick=dojo.hitch(this,"remove",this.receivers[i].extid);
nobr.appendChild(_158);
var _159=document.createElement("span");
_159.style.display="none";
dojo.addClass(_159,"x-lconn-userid");
_159.innerHTML=this.receivers[i].extid;
t.appendChild(_159);
if(i>0){
this.receiverList_AP.appendChild(document.createTextNode(" "));
}
this.receiverList_AP.appendChild(t);
}
if(window.SemTagSvc&&SemTagSvc.parseDom){
SemTagSvc.parseDom(0,this.receiverList_AP);
}
}});
}
if(!dojo._hasResource["lconn.blogs.Menu"]){
dojo._hasResource["lconn.blogs.Menu"]=true;
dojo.provide("lconn.blogs.Menu");
dojo.declare("lconn.blogs.PopupClass",null,{open:{},returnFocusElement:false,numOpenPopups:0,passedState:{},toggler:null,CONTAINER:"oa-popup-container",BACKGROUND:"oa-popup-iframe",constructor:function(){
},show:function(id,_15b,_15c){
_15c=_15c||{};
if(this.isOpen(id)){
this.hide(id);
}else{
if(_15c.focus){
this.returnFocusElement=_15c.focus;
}
_15b=dojo.fixEvent(_15b);
var _15d=_15b.target;
var _15e=dojo.byId(id);
var _15f={element:_15e,state:_15c.state||{},placement:_15c.placement||"",callFunction:_15c.closeFunction||""};
var _160=this.getPopupContainer();
_160.appendChild(_15e);
var _161=this.getPopupBackground();
this.open[id]=_15f;
this.numOpenPopups++;
this.sizeBackground(_15e,_161,_15d,_15b);
var _162=this.calculatePosition(_15e,_15d,_15b,_15f.placement);
new Popup.Effect.Appear(id,_162.left,_162.top);
new Popup.Effect.Appear(this.BACKGROUND,_162.left,_162.top);
dojo.stopEvent(_15b);
}
},hide:function(id,_164){
var _165=dojo.byId(id);
dojo.byId(this.BACKGROUND).style.display="none";
new Popup.Effect.Fade(_165);
var _166=this.open[id];
this.numOpenPopups--;
if(this.numOpenPopups==0&&this.returnFocusElement){
dojo.byId(this.returnFocusElement).focus();
this.returnFocusElement=false;
}
this.open[id]=false;
if(dojo.isString(_166.callFunction)){
eval(_166.callFunction);
}else{
if(dojo.isFunction(_166.callFunction)){
_166.callFunction();
}
}
},isOpen:function(id){
var _168=this.open[id];
return _168!=false&&_168!==null&&_168!==undefined;
},getState:function(id){
return this.open[id].state;
},getReturnFocus:function(){
return this.returnFocusElement;
},clearReturnFocus:function(){
var _16a=this.returnFocusElement;
this.returnFocusElement=false;
return _16a;
},getPopupBackground:function(){
var _16b=dojo.byId(this.BACKGROUND);
if(_16b==null){
var _16b=dojo.doc.createElement("iframe");
_16b.setAttribute("id",this.BACKGROUND);
_16b.setAttribute("frameBorder","no");
_16b.setAttribute("tabindex","-1");
_16b.src="javascript:\"\"";
document.body.appendChild(_16b);
_16b=dojo.byId(this.BACKGROUND);
_16b.style.position="absolute";
_16b.style.left="0";
_16b.style.top="0";
_16b.style.zIndex="899";
}else{
_16b.style.display="block";
}
return _16b;
},getPopupContainer:function(){
var _16c=dojo.byId(this.CONTAINER);
if(_16c==null){
var _16c=document.createElement("div");
_16c.setAttribute("id",this.CONTAINER);
document.body.appendChild(_16c);
popupBackground=dojo.byId(this.CONTAINER);
popupBackground.style.position="absolute";
popupBackground.style.left="0";
popupBackground.style.top="0";
popupBackground.style.zIndex="1100";
}
return _16c;
},menuGetOffsetTop:function(_16d,_16e){
var _16f=0;
var _170=_16d;
while(_170){
_16f+=_170.offsetTop;
_170=_170.offsetParent;
if(_170){
_16f-=_170.scrollTop;
}
}
return _16f;
},menuGetOffsetLeft:function(_171,_172){
var _173=0;
var _174=_171;
while(_174){
_173+=_174.offsetLeft;
_174=_174.offsetParent;
if(_174){
_173-=_174.scrollLeft;
}
}
return _173;
},calculatePosition:function(_175,_176,_177,_178){
var _179;
if(_178==""){
if(typeof (bidir)!="undefined"&&bidir!=null&&bidir=="rtl"){
_179=(_175.offsetWidth>0)?_175.offsetWidth:175;
_179=24-_179;
}else{
_179=_176.offsetWidth-24;
}
var _17a=(this.menuGetOffsetTop(_176,0)+_176.offsetHeight-10);
var _17b=(this.menuGetOffsetLeft(_176,0)+_179);
}else{
_179=0;
var _17c=_178.split(",");
switch(_17c[0]){
case "left":
_17b=this.menuGetOffsetLeft(_176,0);
break;
case "right":
_17b=this.menuGetOffsetLeft(_176,0)+_176.offsetWidth;
break;
default:
_17b=parseInt(_17c[0]);
}
switch(_17c[1]){
case "above":
_17a=this.menuGetOffsetTop(_176,0)-_175.offsetHeight;
break;
case "top":
_17a=this.menuGetOffsetTop(_176,0);
break;
case "bottom":
_17a=this.menuGetOffsetTop(_176,0)+_176.offsetHeight;
break;
default:
_17a=parseInt(_17c[1]);
}
}
var body=document.documentElement?document.documentElement:document.body;
var _17e=window.innerHeight?window.innerHeight:body.clientHeight;
var _17f=window.innerWidth?window.innerWidth:body.clientWidth;
var _180=document.all?document.body.scrollLeft:window.pageXOffset;
var _181=document.all?document.body.scrollTop:window.pageYOffset;
if((_17a+_175.offsetHeight)>(_17e+_181)){
_17a-=_175.offsetHeight;
}
if((_17b+_175.offsetWidth)>(_17f+_180)){
_17b-=_175.offsetWidth;
}
if(_17a<_181){
_17a=_181;
}
if(_17b<_180){
_17b=_180;
}
if(dojo.isSafari){
_17b+=_180;
_17a+=_181;
}
return {left:_17b+"px",top:_17a+"px"};
},sizeBackground:function(_182,_183,_184,_185){
dojo.style(_182,"display","inline");
_183.width=_182.offsetWidth;
_183.height=_182.offsetHeight;
}});
dojo.declare("lconn.blogs.MenuPopupClass",lconn.blogs.PopupClass,{currentMenu:false,hideMenu:function(_186){
if(this.currentMenu){
this.hide(this.currentMenu);
this.currentMenu=false;
}
},showMenu:function(id,_188,_189){
var _18a=this.currentMenu;
this.hideMenu();
if(id!=_18a){
this.currentMenu=id;
this.show(id,_188,_189);
}
},hideOnKeypress:function(_18b){
if(typeof (_18b)!="undefined"&&_18b!==null&&_18b.keyCode==Event.KEY_ESC){
MenuPopup.hideMenu();
}
},isMenuOpen:function(){
if(this.currentMenu){
return true;
}
return false;
},getState:function(){
if(this.currentMenu){
return this.open[this.currentMenu].state;
}
}});
Popup=new lconn.blogs.PopupClass();
MenuPopup=new lconn.blogs.MenuPopupClass();
Popup.Effect={};
Popup.Effect.DURATION=250;
Popup.Effect.Fade=function(_18c){
_18c=dojo.byId(_18c);
var _18d=dojo.style(_18c,"opacity");
var anim=dojo.fadeOut({node:_18c,duration:Popup.Effect.DURATION});
dojo.connect(anim,"onEnd",function(){
dojo.style(_18c,"opacity",_18d);
dojo.style(_18c,"left","-9999px");
dojo.style(_18c,"display","none");
});
anim.play();
};
Popup.Effect.Appear=function(_18f,x,y){
_18f=dojo.byId(_18f);
dojo.style(_18f,"opacity",0);
dojo.style(_18f,"left",x);
dojo.style(_18f,"top",y);
dojo.style(_18f,"display","inline");
dojo.fadeIn({node:_18f,duration:Popup.Effect.DURATION}).play();
};
}
if(!dojo._hasResource["lconn.blogs.TypeAhead"]){
dojo._hasResource["lconn.blogs.TypeAhead"]=true;
dojo.provide("lconn.blogs.TypeAhead");
dojo.declare("lconn.blogs.TypeAhead",[lconn.core.TypeAhead],{onsubmit:"",_onKeyPress:function(evt){
var _193=this._isShowingNow;
this.inherited("_onKeyPress",arguments);
var key=evt.charOrCode;
if(evt.altKey||(evt.ctrlKey&&(key!="x"&&key!="v"))||evt.key==dojo.keys.SHIFT){
return;
}
var pw=this._popupWidget;
var dk=dojo.keys;
switch(key){
case dk.ENTER:
if(!_193&&this.onsubmit!=""){
eval(this.onsubmit);
}
}
}});
}
if(!dojo._hasResource["lconn.core.TypeAheadDataStore"]){
dojo._hasResource["lconn.core.TypeAheadDataStore"]=true;
dojo.provide("lconn.core.TypeAheadDataStore");
dojo.declare("lconn.core.TypeAheadDataStore",null,{constructor:function(_197,node){
this.queryParam=(_197.queryParam?_197.queryParam:node.getAttribute("queryParam"));
this.url=(_197.url?_197.url:node.getAttribute("url"));
},queryParam:"",cache:[],fetch:function(_199){
var _19a={};
this.searchDirectory=(_199.searchDirectory?true:false);
if(typeof this.cache[_199.query.toLowerCase()]=="object"){
_199.onComplete(this.cache[_199.query.toLowerCase()],_199);
return _199;
}
if(this.queryParam){
_19a[this.queryParam]=_199.query;
}
dojo.xhrPost({url:this.url,content:_19a,handleAs:"json-comment-optional",timeout:5000,contentType:"application/x-www-form-urlencoded;charset=UTF-8",load:dojo.hitch(this,function(data){
this.cache[_199.query.toLowerCase()]=data;
if(_199.onComplete){
_199.onComplete(data,_199);
}
}),error:function(){
console.log("There was an error");
}});
return _199;
},getValue:function(item,_19d,_19e){
return item;
}});
}
if(!dojo._hasResource["lconn.core.FilteringCheckbox"]){
dojo._hasResource["lconn.core.FilteringCheckbox"]=true;
dojo.provide("lconn.core.FilteringCheckbox");
var w={};
w.templateString="<div class=\"notifyList lotusHidden\">    \r\n    <fieldset>\r\n        <legend dojoAttachPoint=\"notifyControlsLegend_AP\" style=\"display:none;\"></legend>\r\n        <div class=\"lotusSearch\">\r\n        <label for=\"${id}FilterTextbox\" style=\"display:none;\">${rs_filterListPrompt}</label>\r\n        <input class=\"lotusInactive\" type=\"text\" id=\"${id}FilterTextbox\"\r\n            dojoAttachPoint=\"filterTextbox_AP\" value=\"${rs_filterListPrompt}\"\r\n            dojoAttachEvent=\"onfocus:readySearch, onkeypress:timedFilter, onchange:timedFilter\"></input>\r\n        </div>\r\n        <div class=\"peopleList\"  dojoAttachPoint=\"notifyList_AP\" tabindex=\"-1\"></div>\r\n        <div dojoAttachPoint=\"notifyPaging_AP\" class=\"lotusTiny lotusHidden\"></div>    \r\n    </fieldset>\r\n</div>\r\n";
w.rs_filterListPrompt="rs_filterListPrompt";
w.rs_navPrevLabel="rs_navPrevLabel";
w.rs_navNextLabel="rs_navNextLabel";
w.rs_pagepos="rs_pagepos";
w.rs_loading="rs_loading";
w.gotList=false;
w.oldTextValue="";
w.dirty=false;
w.currPage=1;
w.peopleSelected=null;
w.peopleList=null;
w.filterTimer=null;
w.autoFiltertime=200;
w.controlsLegend="";
w.feedFunction=null;
w.isSingleSelect=false;
w.defaultSelectText=null;
w.defaultSelectValue=null;
w.lastPersonSelected=null;
w.domNode=null;
w.notifyList_AP=null;
w.notifyPaging_AP=null;
w.filterTextbox_AP=null;
w.notifyControlsLegend_AP=null;
w.postMixInProperties=function postMixInProperties(){
this.loadDefaultBundle();
var b=this.resBundle;
this.rs_filterListPrompt=b[this.rs_filterListPrompt];
this.rs_navPrevLabel=b[this.rs_navPrevLabel];
this.rs_navNextLabel=b[this.rs_navNextLabel];
this.rs_pagepos=b[this.rs_pagepos];
this.rs_loading=b[this.rs_loading];
};
w.postCreate=function postCreate(){
this.notifyControlsLegend_AP.innerHTML=this.controlsLegend;
this.reset();
};
w.getList=function getList(){
if(!this.gotList){
this.gotList=true;
this.notifyList_AP.innerHTML=this.rs_loading;
this.feedFunction(this.currPage,dojo.hitch(this,"parsePeople"));
}
dojo.removeClass(this.domNode,"lotusHidden");
};
w.setFocus=function setFocus(){
dijit.focus(this.filterTextbox_AP);
};
w.isDirty=function isDirty(){
return this.dirty;
};
w.setDisabled=function setDisabled(_1a0){
var _1a1=document.getElementsByName(this.id+"notifyPerson");
var _1a2=document.getElementById(this.id+"pagingButtons");
if(_1a0){
if(_1a2){
dojo.addClass(_1a2,"lotusHidden");
}
}else{
if(_1a2){
dojo.removeClass(_1a2,"lotusHidden");
}
}
this.filterTextbox_AP[(_1a0?"setAttribute":"removeAttribute")]("disabled",true);
for(var i=0;i<_1a1.length;i++){
_1a1[i][(_1a0?"setAttribute":"removeAttribute")]("disabled",true);
var _1a4=document.getElementById(_1a1[i].id+"Label");
if(_1a4){
_1a4[(_1a0?"setAttribute":"removeAttribute")]("disabled",true);
}
if(_1a0){
_1a1[i].checked=false;
}else{
_1a1[i].checked=!!this.peopleSelected[_1a1[i].value];
}
}
};
w.reset=function reset(){
this.currPage=1;
this.gotList=false;
this.peopleList=null;
this.peopleSelected=new Object();
this.filterTextbox_AP.value=this.rs_filterListPrompt;
dojo.addClass(this.filterTextbox_AP,"lotusInactive");
this.oldTextValue="";
if(this.filterTimer){
window.clearTimeout(this.filterTimer);
}
if(this.isSingleSelect){
if(!this.lastPersonSelected||!this.lastPersonSelected.uuid){
this.lastPersonSelected={uuid:this.defaultSelectValue,name:this.defaultSelectText};
}
this.peopleSelected[this.lastPersonSelected.uuid]=this.lastPersonSelected.name;
}
};
w.readySearch=function readySearch(_1a5){
if(dojo.hasClass(this.filterTextbox_AP,"lotusInactive")){
dojo.removeClass(this.filterTextbox_AP,"lotusInactive");
window.setTimeout(dojo.hitch(this,function(){
this.filterTextbox_AP.select();
}),0);
}
};
w.timedFilter=function timedFilter(_1a6){
if(this.filterTimer){
window.clearTimeout(this.filterTimer);
this.filterTimer=null;
}
this.filterTimer=window.setTimeout(dojo.hitch(this,"filterNames"),this.autoFiltertime);
};
w.filterNames=function filterNames(_1a7){
if(this.peopleList&&this.filterTextbox_AP.value!=this.oldTextValue&&this.filterTextbox_AP.value!=this.rs_filterListPrompt){
this.oldTextValue=this.filterTextbox_AP.value;
this.showList(this.peopleList);
}
};
w.parsePeople=function parsePeople(feed){
this.peopleList=feed;
this.showList(feed);
};
w.showList=function showList(feed){
this.notifyList_AP.innerHTML="";
var _1aa,node,opt,_1ad,_1ae,_1af;
if(!dojo.hasClass(this.filterTextbox_AP,"lotusInactive")){
_1af=this.filterTextbox_AP.value;
}
if(_1af){
_1af=dojo.regexp.escapeString(_1af);
var _1b0=_1af.replace(/\s+/g," ").split(" ");
_1af="(?=.*"+_1b0.join(")(?=.*")+")";
_1ae=new RegExp(_1af,"i");
}
if(this.isSingleSelect&&this.currPage==1&&!_1ae){
this.createOption("X",this.defaultSelectText,this.defaultSelectValue);
}
for(var i=0;i<feed.names.length;i++){
if(_1ae){
var eml=feed.names[i].email;
if(eml){
eml=eml.substring(0,eml.indexOf("@"));
}
if(!_1ae.test(feed.names[i].name)&&!_1ae.test(eml)){
continue;
}
}
this.createOption(i,feed.names[i].name,feed.names[i].userid);
}
if(feed.hasNext||feed.hasPrev){
this.notifyPaging_AP.innerHTML="";
var _1b3="";
if(feed.startIndex&&feed.totalResults){
var _1b4=feed.startIndex;
var _1b5=_1b4+feed.names.length-1;
_1b3=dojo.string.substitute(this.rs_pagepos,[_1b4,_1b5,feed.totalResults]);
}
var _1b6=document.createTextNode(_1b3);
var _1b7=document.createElement("ul");
_1b7.id=this.id+"pagingButtons";
_1b7.className="lotusRight lotusInlinelist";
var link=document.createElement("a");
link.innerHTML=this.rs_navNextLabel;
link.href="javascript:void(0)";
link.onclick=dojo.hitch(this,"notifyNext");
var next=document.createElement("li");
next.appendChild(link);
link=document.createElement("a");
link.innerHTML=this.rs_navPrevLabel;
link.href="javascript:void(0)";
link.onclick=dojo.hitch(this,"notifyPrev");
var prev=document.createElement("li");
prev.appendChild(link);
if(feed.hasPrev){
_1b7.appendChild(prev);
dojo.addClass(prev,"lotusFirst");
}
if(feed.hasNext){
_1b7.appendChild(next);
if(!feed.hasPrev){
dojo.addClass(next,"lotusFirst");
}
}
this.notifyPaging_AP.appendChild(_1b7);
this.notifyPaging_AP.appendChild(_1b6);
dojo.removeClass(this.notifyPaging_AP,"lotusHidden");
}
};
w.createOption=function createOption(id,_1bc,_1bd){
var node,opt,_1c0;
node=document.createElement("div");
if(this.isSingleSelect){
if(dojo.isIE){
opt=document.createElement("<input type=\"radio\" name=\"assignToGroup\" />");
}else{
opt=document.createElement("input");
}
opt.type="radio";
opt.name="assignToGroup";
}else{
node.className="notifyPerson lotusLeft";
if(dojo.isIE){
opt=document.createElement("<input name='"+this.id+"notifyPerson'>");
}else{
opt=document.createElement("input");
opt.setAttribute("name",this.id+"notifyPerson");
}
opt.className="lotusLeft";
opt.type="checkbox";
}
opt.id=this.id+"notifyCheckbox"+id;
opt.value=_1bd;
this.connect(opt,"onclick","setValue");
this.connect(opt,"onclick","setDirty");
_1c0=document.createElement("label");
_1c0.innerHTML=lconn.core.HTMLUtil.escapeText(_1bc);
_1c0.htmlFor=opt.id;
_1c0.id=opt.id+"Label";
if(!this.isSingleSelect){
_1c0.className="lotusLeft";
}
node.appendChild(opt);
node.appendChild(_1c0);
this.notifyList_AP.appendChild(node);
if(this.peopleSelected[_1bd]){
opt.checked=true;
}
};
w.setDirty=function setDirty(){
this.dirty=true;
};
w.setValue=function setValue(_1c1){
var _1c2={uuid:_1c1.target.value,name:document.getElementById(_1c1.target.id+"Label").innerHTML};
if(this.isSingleSelect){
delete this.peopleSelected[this.lastPersonSelected.uuid];
this.lastPersonSelected=_1c2;
this.peopleSelected[_1c2.uuid]=_1c2.name;
}else{
if(_1c1.target.checked){
this.peopleSelected[_1c2.uuid]=_1c2.name;
}else{
delete this.peopleSelected[_1c2.uuid];
}
}
this.personSelected(_1c2,_1c1.target.checked);
};
w.personSelected=function personSelected(_1c3,_1c4){
};
w.clearSearch=function clearSearch(){
dojo.addClass(this.filterTextbox_AP,"lotusInactive");
this.filterTextbox_AP.value=this.rs_filterListPrompt;
};
w.notifyNext=function(){
this.clearSearch();
this.notifyList_AP.innerHTML="";
++this.currPage;
this.gotList=false;
this.getList();
};
w.notifyPrev=function(){
this.clearSearch();
this.notifyList_AP.innerHTML="";
if(this.currPage>1){
--this.currPage;
}
this.gotList=false;
this.getList();
};
dojo.declare("lconn.core.FilteringCheckbox",[lconn.core.Res,dijit._Widget,dijit._Templated],w);
}
if(!dojo._hasResource["lconn.core.MenuUtility"]){
dojo._hasResource["lconn.core.MenuUtility"]=true;
dojo.provide("lconn.core.MenuUtility");
dojo.declare("lconn.core.MenuUtility",null,{openedBy:null,openMenu:function(evt,_1c6){
var menu=dijit.byId(_1c6);
evt=dojo.fixEvent(evt);
var _1c8=evt.target;
function closeAndRestoreFocus(){
try{
dijit.focus(_1c8);
}
catch(exception){
}
dijit.popup.close(menu);
};
dijit.popup.open({popup:menu,around:evt.target,orient:dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},onExecute:closeAndRestoreFocus,onCancel:closeAndRestoreFocus});
menu.focus();
dojo.connect(menu,"_onBlur",function(){
dijit.popup.close(menu);
});
dojo.stopEvent(evt);
},openMenuA11y:function(evt,_1ca){
if(evt.keyCode==dojo.keys.ENTER){
this.openMenu(evt,_1ca);
}
}});
menuUtility=new lconn.core.MenuUtility();
lconn.core.MenuUtility.open=function(_1cb,e){
menuUtility.openMenu(e,_1cb);
};
}
if(!dojo._hasResource["lconn.core.LanguageSelector"]){
dojo._hasResource["lconn.core.LanguageSelector"]=true;
dojo.provide("lconn.core.LanguageSelector");
dojo.declare("lconn.core.LanguageSelector",null,{_jsonString:null,_selectorNode:null,_menu:null,_cookieProperties:null,COOKIE_NAME:null,constructor:function(_1cd,_1ce,_1cf,_1d0){
this._selectorNode=_1cd;
this._jsonString=_1ce;
this._cookieProperties=_1d0;
this.COOKIE_NAME=_1cf;
this._setSelectorLabel();
dojo.connect(this._selectorNode,"onclick",dojo.hitch(this,"_openMenu"));
},_openMenu:function(evt){
try{
this._buildLanguageMenu();
menuUtility.openMenu(evt,this._menu.id);
dojo.stopEvent(evt);
}
catch(e){
console.log(e);
}
},_setSelectorLabel:function(){
var _1d2=dojo.cookie(this.COOKIE_NAME);
var res=new lconn.core.Res();
res.loadDefaultBundle();
this.strBundle=res.resBundle;
if(_1d2!=null){
for(var key in this._jsonString){
if(this._isCodeEqual(key,_1d2)){
this._selectorNode.innerHTML=this._jsonString[key]+" &#9660;";
break;
}
}
if(!this._isCodeEqual(key,_1d2)){
this._selectorNode.innerHTML=this.strBundle.rs_customLangaugeLinkLabel+" &#9660;";
}
}else{
this._selectorNode.innerHTML=this.strBundle.rs_customLangaugeLinkLabel+" &#9660;";
}
},_buildLanguageMenu:function(){
if(this._menu==null){
this._menu=new dijit.Menu();
for(var key in this._jsonString){
this._menu.addChild(this._buildMenuItem(this._jsonString[key],key));
}
var res=new lconn.core.Res();
res.loadDefaultBundle();
this.strBundle=res.resBundle;
this._menu.addChild(this._buildMenuItem(this.strBundle.rs_browser_setting,"BD"));
this._menu.domNode.style.display="none";
dojo.body().appendChild(this._menu.domNode);
var that=this;
dojo.connect(this._menu,"onItemClick",function(item){
if((item!=null)&&(typeof item.language!="undefined")){
dojo.cookie(that.COOKIE_NAME,item.language,that._cookieProperties);
var _1d9=null;
var _1da=document.getElementById("REFRESH_URL");
if(_1da!=null){
_1d9=_1da.getAttribute("href");
}else{
_1d9=window.location.href;
}
if(_1d9.indexOf("lang=")>0){
var _1db=/([\&\?])(lang=)([^\&\#]*)/g;
var _1dc=null;
if(item.language&&item.language!=="BD"){
_1dc=_1d9.replace(_1db,function(){
var _1dd=arguments[1]+arguments[2]+item.language;
return _1dd;
});
}else{
_1dc=_1d9.replace(_1db,function(){
var _1de=arguments[1];
return _1de;
});
}
window.location=_1dc;
if(_1dc.indexOf("#")!==-1){
window.location.reload(false);
}
}else{
window.location=_1d9;
if(_1d9.indexOf("#")!==-1){
window.location.reload(false);
}
}
}
});
}
},_buildMenuItem:function(_1df,_1e0){
var item=new dijit.MenuItem({label:_1df});
item.language=_1e0;
return item;
},_isCodeEqual:function(_1e2,_1e3){
var str1=_1e2.toLowerCase().replace(/-/,"_");
var str2=_1e3.toLowerCase().replace(/-/,"_");
return str1===str2;
}});
}
if(!dojo._hasResource["com.ibm.ajax.auth"]){
dojo._hasResource["com.ibm.ajax.auth"]=true;
dojo.provide("com.ibm.ajax.auth");
com.ibm.ajax.auth={prepareSecure:function(args,_1e7,_1e8){
if(args["com.ibm.ajax.auth.prepareSecureCalled"]){
return args;
}else{
args["com.ibm.ajax.auth.prepareSecureCalled"]=true;
}
args._handle=args.handle;
args.handle=dojo.partial(this.testAuthenticationHandler,this,_1e7,_1e8);
return args;
},setAuthenticationHandler:function(_1e9){
this.authenticationHandler=_1e9;
},setTestAuthenticationHandler:function(_1ea){
this.testAuthenticationHandler=_1ea;
},setDefaultAuthenticationTests:function(_1eb,_1ec,_1ed){
this.checkFromCaller=_1eb;
this.checkByContentType=_1ec;
this.checkByStatusCode=_1ed;
},addAuthenticationCheck:function(_1ee){
if(_1ee){
this.authenticationChecks.push(_1ee);
}
},isAuthenticationRequired:function(_1ef,_1f0){
if(_1f0.xhr&&(!_1ef||dojo.indexOf(["cancel","timeout"],_1ef.dojoType)==-1)){
var _1f1;
try{
_1f1=_1f0.xhr.status;
}
catch(e){
}
var _1f2=_1f0.args.expectedContentType;
if(!_1f2){
_1f2=_1f0.args.handleAs;
}
var _1f3=dojo.indexOf(["xml","json","json-comment-optional"],_1f2)!=-1;
if(window.debugMode!=null){
console.log("auth::isAuthenticationRequired DEBUG expectedContentType: "+_1f2+" restContentExpected: "+_1f3+" for "+_1f0.args.url);
}
if(this.checkByContentType&&_1f3&&/^text\/html/.exec(_1f0.xhr.getResponseHeader("Content-Type"))&&_1f1>=200&&_1f1<300){
console.log("auth::isAuthenticationRequired DEBUG content type does not match request, assume logged out");
return true;
}
if(this.checkByStatusCode&&_1f3){
if(_1f1==302){
console.log("auth::isAuthenticationRequired DEBUG redirect received, assume login request");
return true;
}
if(_1f1==401){
console.log("auth::isAuthenticationRequired DEBUG 401 Unauthorized, assume login required");
return true;
}
if(dojo.isIE&&(_1f1==0||_1f1=="unknown")){
console.log("auth::isAuthenticationRequired DEBUG status code was 0 or 'unknown' in IE, assume login request");
return true;
}
}
}
for(var i=0;i<this.authenticationChecks.length;i++){
if(this.authenticationChecks[i](this,_1ef,_1f0)){
return true;
}
}
return false;
},testAuthenticationHandler:function(auth,_1f6,_1f7,_1f8,_1f9){
var args=dojo._toArray(arguments).slice(3);
var _1fb=false;
if(!_1f8||dojo.indexOf(["cancel","timeout"],_1f8.dojoType)==-1){
if(auth.checkFromCaller&&typeof _1f6=="function"&&_1f6(_1f8,_1f9)){
console.log("auth::_testAuthentication DEBUG caller provided detection logic that indicated form login, assume logged out");
_1fb=true;
}else{
_1fb=auth.isAuthenticationRequired(_1f8,_1f9,_1f6);
}
}
if(_1fb){
var path=auth._parseUri(_1f9.args.url).path;
dojo.cookie("WASPostParam",null,{expires:-1,path:path});
dojo.cookie("WASReqURL",null,{expires:-1,path:"/"});
auth.authenticationHandler(_1f8,_1f9,_1f7);
args[0]=new Error("xhr unauthenticated");
args[0].dojoType="unauthenticated";
}
if(_1f9.args._handle){
return _1f9.args._handle.apply(this,args);
}else{
return (_1f8);
}
},_parseUri:function(uri){
if(!uri){
return null;
}
uri=new dojo._Url(uri);
var _1fe=this._splitQuery(uri.query);
uri.queryParameters=_1fe;
return uri;
},_splitQuery:function(_1ff){
var _200={};
if(!_1ff){
return _200;
}
if(_1ff.charAt(0)=="?"){
_1ff=_1ff.substring(1);
}
var args=_1ff.split("&");
for(var i=0;i<args.length;i++){
if(args[i].length>0){
var _203=args[i].indexOf("=");
if(_203==-1){
var key=decodeURIComponent(args[i]);
var _205=_200[key];
if(dojo.isArray(_205)){
_205.push("");
}else{
if(_205){
_200[key]=[_205,""];
}else{
_200[key]="";
}
}
}else{
if(_203>0){
var key=decodeURIComponent(args[i].substring(0,_203));
var _206=decodeURIComponent(args[i].substring(_203+1));
var _205=_200[key];
if(dojo.isArray(_205)){
_205.push(_206);
}else{
if(_205){
_200[key]=[_205,_206];
}else{
_200[key]=_206;
}
}
}
}
}
}
return _200;
},checkFromCaller:true,checkByContentType:true,checkByStatusCode:true,authenticationChecks:[],authenticationHandler:function(){
console.log("auth::authenticationHandler DEBUG authentication was required");
}};
}
dojo.declare("lconn.MenuUtility",null,{openedBy:null,openMenu:function(evt,_208){
var menu=dijit.byId(_208);
evt=dojo.fixEvent(evt);
this.openedBy=evt.target;
dijit.popup.open({popup:menu,around:evt.target,orient:{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"},onExecute:function(){
},onCancel:function(){
dijit.popup.close(menu);
},onClose:function(){
try{
evt.target.focus();
}
catch(exception){
setTimeout(function(){
try{
evt.target.focus();
}
catch(exception2){
}
},1000);
}
}});
menu.focus();
dojo.connect(menu,"_onBlur",function(){
dijit.popup.close(menu);
});
dojo.stopEvent(evt);
},openMenuA11y:function(evt,_20b){
if(evt.keyCode==dojo.keys.ENTER){
this.openMenu(evt,_20b);
}
}});
menuUtility=new lconn.MenuUtility();
if(!dojo._hasResource["com.ibm.mm.livetext.serviceImpl"]){
dojo._hasResource["com.ibm.mm.livetext.serviceImpl"]=true;
dojo.provide("com.ibm.mm.livetext.serviceImpl");
dojo.declare("com.ibm.mm.livetext.serviceImpl",null,{_tagTypes:null,tagChanged:"/com/ibm/mashups/livetext/livetextchanged",tagStatusChange:"/com/ibm/mashups/livetext/livetextchanged",tagContentChanged:"/com/ibm/mashups/livetext/livetextcontentchanged",entryAdded:"/com/ibm/mashups/livetext/configentryadded",entryRemoved:"/com/ibm/mashups/livetext/configentryremoved",init:function(){
this._loadTags();
dojo.subscribe(this.tagChanged,this,"onTagChanged");
dojo.subscribe(this.tagContentChanged,this,"onTagContentChanged");
dojo.subscribe(this.entryAdded,this,"onAddConfigEntry");
dojo.subscribe(this.entryRemoved,this,"onRemoveConfigEntry");
dojo.publish(this.tagContentChanged,[document,true]);
},_getNodes:function(node,_20d){
if(_20d.processEnclosedTags){
return dojo.query(_20d.match,node);
}else{
var a=dojo.query(_20d.match+" "+_20d.match,node);
var b=dojo.query(_20d.match,node);
var _210,_211;
while(a.length>0){
_210=a[0];
_211=0;
while(_211<b.length){
if(_210==b[_211]){
a.splice(0,1);
b.splice(_211,1);
break;
}else{
_211++;
}
}
}
return b;
}
},onTagChanged:function(node,_213,_214,_215){
var tag=null,_217=null,tags=null;
for(var _219=0;_219<this._tagTypes.length;_219++){
tag=this._tagTypes[_219];
this._processTypeTag(node,tag,_213,_214,_215,true);
}
},onTagContentChanged:function(node,_21b,_21c,_21d){
var tag=null,_21f=null,tags=null;
for(var _221=0;_221<this._tagTypes.length;_221++){
tag=this._tagTypes[_221];
this._processTypeTag(node,tag,_21b,_21c,_21d,false);
}
},_processTypeTag:function(node,tag,_224,_225,_226,_227){
var tags=[];
if(_227&&this._checkRoot(node,tag)){
tags[0]=node;
}
tags=tags.concat(this._getNodes(node,tag));
var _229=[];
_229=_229.concat(tags);
if(_229.length>0){
if(tag.loaded==null){
this._loadTagHandler(tag);
}
var _22a=[];
if(dojo.isFunction(_225)){
try{
_225(node,_229);
}
catch(error){
console.debug(error);
}
}
for(var _22b=0;_22b<tags.length;_22b++){
try{
tag.tagHandler.processTag(tags[_22b]);
}
catch(error){
_22a[_22a.length]=error;
if(_224){
break;
}
}
}
if(dojo.isFunction(_226)){
try{
_226(node,_229,_22a);
}
catch(error){
console.debug(error);
}
}
}
},_checkRoot:function(node,tag){
var _22e=false;
if(node!=null&&node.nodeType){
var _22f=node.cloneNode(false);
var _230=document.createElement("div");
_230.appendChild(_22f);
var _231=this._getNodes(_230,tag);
if(_231!=null&&_231.length>0){
_22e=true;
}
delete _22f;
delete _230;
delete _231;
}
return _22e;
},_loadTags:function(){
if(this._tagTypes==null){
var _232=this;
if(typeof livetextCfg!="undefined"){
this._tagTypes=livetextCfg;
}else{
dojo.xhrGet({url:dojo.moduleUrl("com.ibm.mm.livetext","tagservice.entries.cfg"),handleAs:"text",sync:true,load:function(_233){
_232._tagTypes=dojo.fromJson(_233);
},error:function(data){
console.dir(data);
}});
}
}
},onAddConfigEntry:function(_235){
},onRemoveConfigEntry:function(_236){
},parseDom:function(_237,node){
dojo.publish(this.tagChanged,[node]);
},_loadTagHandler:function(tag){
dojo.registerModulePath(tag.module,tag.path);
dojo.eval("dojo.r"+"equire('"+tag.baseClass+"')");
var _23a="{create:function(){return new "+tag.baseClass+"()}}";
var _23b=dojo.fromJson(_23a);
tag.tagHandler=_23b.create();
tag.loaded=true;
}});
}
if(!dojo._hasResource["lconn.core.url"]){
dojo._hasResource["lconn.core.url"]=true;
dojo.provide("lconn.core.url");
dojo.provide("lconn.core.url.UrlStruct");
dojo.provide("lconn.core.url.ProxyUrlHelper");
lconn.core.url._const={regex:/(^[a-zA-Z]+)\:\/\/([a-zA-Z\d][\a-z\A-Z\d\-\.]*)(:\d{1,5})?([\/\?\#].*)?/,protocolPorts:{"http":80,"https":443}};
dojo.declare("lconn.core.url.UrlStruct",null,{isInvalidUrl:false,url:"",protocol:"",host:"",port:"",hasPort:false,urlRemainder:"",constructor:function(url){
if(url!=null&&url.match(lconn.core.url._const.regex)){
var t=lconn.core.url._const.regex.exec(url);
this.url=t[0];
this.protocol=t[1];
this.host=t[2];
this.port=this._parsePort(t[3]);
this.urlRemainder=t[4];
}else{
this.isInvalidUrl=true;
}
},_parsePort:function(_23e){
if(_23e==null||_23e==""){
return "";
}
this.hasPort=true;
return _23e.substr(_23e.indexOf(":")+1);
},normalizedPort:function(){
var pp=lconn.core.url._const.protocolPorts;
if(this.hasPort){
return this.port;
}else{
if(typeof (pp[this.protocol])=="undefined"){
return "";
}else{
return pp[this.protocol];
}
}
}});
dojo.declare("lconn.core.url.ProxyUrlHelper",null,{proxyURL:"",_proxyStruct:null,constructor:function(_240){
if(_240.length>1&&_240.lastIndexOf("/")==_240.length-1){
_240=_240.substr(0,_240.length-1);
}
this.proxyURL=_240;
this._proxyStruct=new lconn.core.url.UrlStruct(this.proxyURL);
},getProxifiedURL:function(url){
var surl=new lconn.core.url.UrlStruct(url);
var _243=this._proxyStruct;
if(this._matchUrlBase(surl)){
return surl.protocol+"://"+surl.host+(_243.hasPort?":"+_243.port:"")+surl.urlRemainder;
}
return this.proxyURL+"/"+surl.protocol+"/"+surl.host+(surl.hasPort?"%3A"+surl.port:"")+surl.urlRemainder;
},_matchUrlBase:function(surl){
var ps=this._proxyStruct;
return (ps.protocol==surl.protocol&&ps.host==surl.host&&this._matchPort(surl));
},_matchPort:function(surl){
var np=this._proxyStruct.normalizedPort();
return np==surl.normalizedPort();
}});
}
if(!dojo._hasResource["lconn.core.bizCard.bizCardUtils"]){
dojo._hasResource["lconn.core.bizCard.bizCardUtils"]=true;
dojo.provide("lconn.core.bizCard.bizCardUtils");
lconn.core.bizCard.bizCardUtils={isDebug:false,scriptResourceName:"semanticTagService.js",version:"2.5.0",scripts:new Array(),css:new Array(),initiated:false,_haveProxy:false,_proxyHelper:null,appChksum:null,init:function(_248){
if(this.initiated==false){
this.baseUrl=lconn.core.bizCard.bizCardUtils.initBaseUrl();
this._initProxyHelper();
this._initAppCksum();
if(window.semtagrs==null){
lconn.core.bizCard.bizCardUtils.loadScript(this.baseUrl+"/resourceStrings.do?t=1");
}
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.debug==true){
lconn.core.bizCard.bizCardUtils.isDebug=true;
}
if(window.SemTagPersonConfig_noCss==null){
if(window.SemTagSvcConfig!=null){
if(SemTagSvcConfig.loadCssFiles==true){
lconn.core.bizCard.bizCardUtils.loadCssIfNeeded();
}
}else{
lconn.core.bizCard.bizCardUtils.loadCssIfNeeded();
}
}
this.initiated=true;
}
},initBaseUrl:function(){
var _249="";
if(window.SemTagSvc_baseUrl!=null){
_249=SemTagSvc_baseUrl;
}else{
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.baseUrl!=null){
_249=SemTagSvcConfig.baseUrl;
}else{
_249=this.getURL(this.scriptResourceName,"script",SemTagSvc.baseUrl,"src").baseUrl;
}
}
return _249;
},_initProxyHelper:function(){
if(window.SemTagSvcConfig!=null&&typeof (window.SemTagSvcConfig.proxyURL)!="undefined"&&window.SemTagSvcConfig.proxyURL.length>0){
this._haveProxy=true;
this._proxyHelper=new lconn.core.url.ProxyUrlHelper(window.SemTagSvcConfig.proxyURL);
}
},_initAppCksum:function(){
this.appChksum=this._getConfigValue("appChksum","UNDEFINED");
},_getConfigValue:function(_24a,_24b){
if(window.SemTagSvcConfig!=null&&typeof (window.SemTagSvcConfig[_24a])!="undefined"){
return window.SemTagSvcConfig[_24a];
}
return _24b;
},appendAppChkSum:function(url){
if(url==null||url.indexOf("acs=")>=0){
return url;
}
var c=null;
if(url.indexOf("?")<0){
c="?";
}else{
c="&";
}
return url+c+"acs="+this.appChksum;
},getService:function(_24e){
for(i=0;i<livetextCfg.length;i++){
var _24f=livetextCfg[i];
if(_24f.id==_24e){
return _24f;
}
}
return null;
},processUntilAvailable:function(_250,test,_252){
var _253="";
_253=window.setInterval(function(){
if(eval(test)){
if(_252!=null){
_250(_252);
}else{
_250();
}
window.clearInterval(_253);
}
},300);
},getBaseURL:function(_254){
var _255=lconn.core.bizCard.bizCardUtils.getService(_254);
if(_255!=null&&_255.baseURL!=null){
return _255.baseURL;
}else{
return this.baseUrl;
}
},buildBaseURL:function(_256){
var _257=_256.indexOf("//")+2;
var _258=_256.substring(0,_257);
var _259=_256.substring(_257,_256.length);
_257=_259.indexOf("/")+1;
var _25a=_259.substring(0,_257);
_259=_259.substring(_257,_259.length);
_257=_259.indexOf("/");
var _25b=_259.substring(0,_257);
_259=_259.substring(_257,_259.length);
var _25c=_258+_25a+_25b;
return _25c;
},getURL:function(_25d,_25e,_25f,_260){
var temp={};
var _262=location.protocol+"//"+location.host;
var s=document.getElementsByTagName(_25e);
var _264="";
var _265=null;
for(var i=0;i<s.length;i++){
var src=s[i].getAttribute(_260);
if(src&&src.indexOf(_25d)!=-1){
_265=src;
_264=src.substring(0,src.indexOf(_25f));
if(_25f==null){
_264=this.buildBaseURL(src);
temp.baseUrl=_264;
}
temp.resourceFound=true;
break;
}
}
if(temp.baseUrl=="undefined"){
temp.baseUrl=(_264==_262)?_25f:_264+_25f;
}
return temp;
},getUrlParam:function(_268){
var _269=unescape(window.location);
if(_269.indexOf(_268)==-1){
return null;
}else{
var _26a=_269.substring(_269.indexOf(_268+"=")+_268.length+1);
var _26b=_26a.indexOf("&");
if(_26b!=-1){
_26a=_26a.substring(0,_26b);
}
return _26a;
}
},getProxifiedURL:function(url,_26d,_26e){
for(var key in _26d){
var _270=new RegExp("@@@"+key+"@@@");
var val=_26d[key];
url=url.replace(_270,val);
}
url=this.appendAppChkSum(url);
if(this._haveProxy){
return this._proxyHelper.getProxifiedURL(url);
}
return url+"&callback="+_26e;
},_timeout:10000,getBizCardData:function(url,_273,_274,_275,_276,_277,_278){
var url=this.getProxifiedURL(url,_273,_274);
if(this._haveProxy){
var _279=function(_27a){
var data=dojo.fromJson(_27a.replace(/^\s*while\(1\);/,""));
_276(true,data,_277);
};
var _27c=function(_27d){
_276(false,data,_277);
};
dojo.xhrGet({url:url,timeout:this._timeout,load:_279,error:_27c});
}else{
_275.request(url,this._timeout,_276,_277,_278);
}
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},hasRule:function(_27f){
var _280=document.styleSheets;
if(_280&&_280.length){
for(var i=0;i<_280.length;i++){
var _282=_280[i];
var _283=_282.cssRules||_282.rules;
if(_283&&_283.length){
for(var j=0;j<_283.length;j++){
var rule=_283[j];
if(rule&&rule.selectorText==_27f){
return true;
}
}
}
}
}
return false;
},loadCssIfNeeded:function(){
if(!this.hasRule(".lotusVCard")){
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.isBidiRTL){
this.loadCss(this.baseUrl+"/nav/common/styles/base/standaloneVcardRTL.css");
}else{
this.loadCss(this.baseUrl+"/nav/common/styles/base/standaloneVcard.css");
}
this.loadCss(this.baseUrl+"/nav/common/styles/base/semanticTagStyles.css");
this.standaloneCSSloaded=true;
}
},getSinglePropertyValue:function(prop){
if(!prop){
return false;
}
var _287=prop.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
return _287;
},sortByOrder:function(a,b){
if(a.order>b.order){
return 1;
}else{
if(a.order<b.order){
return -1;
}else{
return 0;
}
}
},getElementsByClassName:function(_28a,_28b,_28c,_28d){
if(!_28b){
_28b=document.body;
}
if(!_28c){
limit=0;
}
if(!_28d){
_28d=["*"];
}
var _28e=new RegExp("(^|\\s)"+_28a+"(\\s|$)");
if(_28b&&_28b.className&&_28b.className.match(_28e)){
return new Array(_28b);
}
var _28f=new Array();
for(var t=0;t<_28d.length;t++){
var _291=_28b.getElementsByTagName(_28d[t]);
for(var i=0;i<_291.length;i++){
var _293=_291[i];
if(_293.className.match(_28e)){
_28f.push(_293);
}
if(0<_28c&&_28c==_28f.length){
break;
}
}
}
return _28f;
},getParentByClassName:function(_294,_295){
if(!_295){
return null;
}
var _296=new RegExp("(^|\\s)"+_294+"(\\s|$)");
if(_295.className&&_295.className.match(_296)){
return _295;
}
while(_295.parentNode){
_295=_295.parentNode;
if(_295.className&&_295.className.match(_296)){
return _295;
}
}
},addHover:function(elem,_298,_299,_29a){
while(typeof SemTagMenu==undefined){
alert("waiting...");
}
var _29b=elem.getAttribute(this.refcntAttr);
if(_29b){
elem.setAttribute(this.refcntAttr,parseInt(Number(_29b)+1));
if(SemTagMenu.staticHover){
var img=SemTagMenu.findHoverFromLiveElement(elem);
if(img){
dojo.connect(img,"onclick",_299);
img.setAttribute("href","javascript:a11y()");
}else{
alert("couldn't find the hover for this element!");
}
}else{
dojo.connect(elem,"onmouseover",_298);
dojo.connect(elem,"onfocus",_298);
}
}else{
elem.setAttribute(this.refcntAttr,"1");
if(SemTagMenu.staticHover){
var img=this.createHoverImage();
dojo.connect(img,"onclick",_299);
img.setAttribute("href","javascript:a11y()");
var _29d=elem.nextSibling;
if(_29d){
_29d.parentNode.insertBefore(img,_29d);
}else{
elem.parentNode.appendChild(img);
}
elem.setAttribute(this.hoverIdPrefix+"idx",parseInt(this.hoverIdx));
elem.id=this.liveElemPrefix+this.hoverIdx;
}else{
var _29e=dojo.isFF?elem.getAttribute("class"):elem.className;
if(_29e&&0<_29e.length){
_29e+=" hasHover";
}else{
_29e="hasHover";
}
if(dojo.isFF){
elem.setAttribute("class",_29e);
}else{
elem.className=_29e;
}
dojo.connect(elem,"onmouseover",_298);
dojo.connect(elem,"onfocus",_298);
}
if(_29a!=null){
dojo.connect(elem,"onkeydown",_29a);
}
}
},createHoverImage:function(){
var img=document.createElement("img");
this.hoverIdx++;
img.id=this.hoverIdPrefix+this.hoverIdx;
img.className=SemTagMenu.iconName;
img.setAttribute("src",this.baseUrl+"/images/menu_selected_hover.gif");
img.setAttribute("border","0");
var link=document.createElement("a");
dojo.connect(link,"onfocus",SemTagMenu.activateHover);
dojo.connect(link,"onmouseover",SemTagMenu.activateHover);
dojo.connect(link,"onmouseout",SemTagMenu.deactivateHover);
link.appendChild(img);
return link;
},showHover:function(_2a1,_2a2){
try{
SemTagMenu.showHover(_2a1,_2a2);
}
catch(e){
console.log("Error in lconn.core.bizCard.bizCardUtils.showHover");
console.log(e);
}
},setMenuData:function(_2a3,_2a4,_2a5,_2a6,_2a7){
SemTagMenu.setMenuData(_2a3,_2a4,_2a5,_2a6,_2a7);
},getMenuItemJson:function(_2a8,href,_2aa,icon){
var o=_2aa?_2aa:0;
var i=icon?icon:"";
return {"label":_2a8,"href":href,"order":o,"icon":i};
},getMenuHeaderJson:function(_2ae,_2af){
return {"markup":_2ae,"order":_2af};
},getMenuFooterJson:function(_2b0,_2b1){
return {"markup":_2b0,"order":_2b1};
},getElementFromEvent:function(_2b2){
return _2b2.target?_2b2.target:_2b2.srcElement;
},getLiveElementFromEvent:function(_2b3){
return SemTagMenu.findLiveElementFromEventSource(this.getElementFromEvent(_2b3));
},getEventAbsoluteX:function(e){
var x=0;
if(e.pageX){
x=e.pageX;
}else{
if(e.clientX){
x=e.clientX+document.body.scrollLeft;
}
}
return x;
},getEventAbsoluteY:function(e){
var y=0;
if(e.pageY){
y=e.pageY;
}else{
if(e.clientY){
y=e.clientY+document.body.scrollTop;
}
}
return y;
},findPosition:function(obj){
var _2b9=0,posX=0,posY=0;
var _2bc=1400*1;
if(obj.offsetParent){
if(obj.currentStyle){
posY+=obj.offsetHeight-parseInt(this.getStyle(obj,"paddingBottom"));
}else{
if(window.getComputedStyle){
posY+=obj.offsetHeight-parseInt(this.getStyle(obj,"padding-bottom"));
}
}
while(obj!=null){
if(obj.offsetLeft>=_2bc&&SemTagSvcConfig.isBidiRTL){
posX+=obj.offsetLeft-250;
}else{
posX+=obj.offsetLeft;
}
posY+=obj.offsetTop;
obj=obj.offsetParent;
_2b9++;
}
return [posX,posY];
}else{
return [obj.x,obj.y];
}
},getStyle:function(node,_2be){
var _2bf;
if(window.getComputedStyle){
_2bf=document.defaultView.getComputedStyle(node,null).getPropertyValue(_2be);
}else{
if(node.currentStyle){
_2bf=node.currentStyle[_2be];
}
}
return _2bf;
},createGroupJson:function(ctx,exts){
return {"context":ctx,"extenders":exts};
},createActionJson:function(id,ctx,_2c4,desc,url,_2c7){
var o=parseInt(_2c7);
return {"id":id,"context":ctx,"label":_2c4,"description":desc,"url":url,"order":o};
},parseOrder:function(_2c9){
if(_2c9==null||_2c9.length==0){
return 0;
}
if(_2c9.charAt(0)=="-"){
return parseInt(_2c9.substr(1))*-1;
}else{
return parseInt(_2c9);
}
},_langParamValue:"",getLangParam:function(){
if(this._langParamValue==""){
if(window.djConfig!=null&&djConfig.locale!=null){
this._langParamValue=djConfig.locale;
return this._langParamValue;
}
var _2ca="lcLang";
if(typeof (profilesData)!="undefined"&&typeof (profilesData.config)!="undefined"&&typeof (profilesData.config.langCookieName)!="undefined"){
_2ca=profilesData.config.langCookieName;
}
var _2cb=dojo.cookie(_2ca);
if(_2cb==null||_2cb==""){
_2cb=this.getUrlParam("lang");
}
if(_2cb==null||_2cb==""){
if(typeof (navigator.language)!="undefined"){
_2cb=navigator.language;
}else{
if(typeof (navigator.browserLanguage)!="undefined"){
_2cb=navigator.browserLanguage;
}
}
}
var _2cc=/(\w\w){1}([\-_]\w\w){0,2}/i;
if(_2cb!=null&&!_2cb.match(_2cc)){
_2cb=null;
}
if(_2cb==null||_2cb==""){
_2cb="en";
}
_2cb=_2cb.replace(/\-/g,"_");
_2cb=_2cb.toLowerCase();
this._langParamValue=_2cb;
}
return this._langParamValue;
},getTextValue:function(elem){
if(!elem){
return "";
}
return elem.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
},getTypedValue:function(elem,_2cf){
if(!_2cf){
_2cf="def";
}
var _2d0=new Array();
var _2d1=this.getElementsByClassName("type",elem);
var _2d2=this.getElementsByClassName("value",elem);
var _2d3="";
if(_2d2.length<1){
_2d3=this.getTextValue(elem);
}
for(i=0;i<_2d2.length;i++){
_2d3+=this.getTextValue(_2d2[i]);
}
if(_2d1.length<1){
_2d0[_2cf]=_2d3;
}else{
for(j=0;j<_2d1.length;j++){
var _2d4=_2d1[j];
var type=_2d4.tagName.match(/^abbr$/i)?_2d4.getAttribute("title"):this.getTextValue(_2d4);
_2d0[type.toLowerCase()]=_2d3;
}
}
return _2d0;
},findNameElementInHcard:function(elem){
if(elem.className!="vcard"){
elem=this.getParentByClassName("vcard",elem);
}
var _2d7=this.getElementsByClassName("fn",elem)[0];
if(!_2d7){
_2d7=this.getElementsByClassName("n",elem)[0];
}
return _2d7;
},findElementByNameInHcard:function(elem,name){
if(elem.className!="vcard"){
elem=this.getParentByClassName("vcard",elem);
}
return this.getElementsByClassName(name,elem)[0];
},loadScript:function(_2da){
var _2db=this.getLangParam();
if(_2da.indexOf("lang=")!=-1&&_2db!=null){
_2da=_2da.substring(0,_2da.indexOf("lang"))+"lang="+_2db;
}else{
if(_2da.indexOf("resourcebundle")!=-1&&_2db!=null){
_2da=_2da+"&lang="+_2db;
}
if(_2da.indexOf("resourceStrings")!=-1&&_2db!=null){
_2da=_2da+"&lang="+_2db;
}
if(_2da.indexOf("js-resources.js")!=-1&&_2db!=null){
_2da=_2da+((_2da.indexOf("?")!=-1)?"&":"?")+"lang="+_2db;
}
}
_2da=this.appendAppChkSum(_2da);
if(!this.scripts[_2da]){
this.scripts[_2da]=true;
var _2dc=document.createElement("script");
_2dc.src=_2da;
document.body.insertBefore(_2dc,document.body.firstChild);
}
},loadCss:function(css){
css=this.appendAppChkSum(css);
if(!this.css[css]){
var head=document.getElementsByTagName("head");
if(head[0]){
this.css[css]=true;
var _2df=document.createElement("link");
_2df.rel="stylesheet";
_2df.href=css;
_2df.type="text/css";
_2df.media="screen";
head[0].appendChild(_2df);
}
}
},toggleInlineCard:function(pDiv){
var _2e1=document.getElementById(pDiv+"_Pivot");
var _2e2=document.getElementById(pDiv+"_Details");
if(_2e1!=null&&_2e2!=null){
if(_2e1.className.indexOf("lotusPivotNavOpen")!=-1){
_2e1.className="lotusPivotNav";
_2e2.style.display="none";
}else{
_2e1.className="lotusPivotNav lotusPivotNavOpen";
_2e2.style.display="block";
}
}
}};
window.SemTagMenu={isDebug:false,staticHover:false,id:"semtagmenu",hideDelay:3000,showDelay:500,timeouts:new Array(),iconName:"menu_drop_icon",showing:false,currentElem:null,refCount:-1,tabOrderByDomNodeOrder:0,tabOrderByTabIndex:0,elemOrigTabIdx:null,elemTempTabIdx:1000,elemNext:null,svcHandlers:new Array(),items:new Array(),headers:new Array(),footers:new Array(),hoverIdRE:null,iconNameRE:new RegExp("(^|\\s)menu_drop_icon(\\s|$)"),initited:false,init:function(){
if(this.initited==false){
SemTagMenu.hoverIdRE=new RegExp(lconn.core.bizCard.bizCardUtils.hoverIdPrefix);
dojo.connect(document,"onclick",SemTagMenu.click);
dojo.connect(document,"onkeydown",SemTagMenu.catchEscape);
this.initited=true;
}
},activateFocus:function(_2e3){
lconn.core.bizCard.bizCardUtils.activateHover(_2e3);
},activateHover:function(_2e4){
var _2e5=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_2e4);
if(_2e5){
_2e5.src=lconn.core.bizCard.bizCardUtils.baseUrl+"/images/menu_selected_hover.gif";
}
SemTagMenu.setCurrentElement(SemTagMenu.findLiveElementFromEventSource(_2e5));
},deactivateHover:function(_2e6){
var _2e7=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_2e6);
if(_2e7){
_2e7.src=lconn.core.bizCard.bizCardUtils.baseUrl+"/images/menu_selected_hover.gif";
}
SemTagMenu.setCurrentElement(null);
},showHover:function(_2e8,_2e9){
try{
if(SemTagMenu.staticHover){
return;
}
var elem=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_2e8);
SemTagMenu.elemOrigTabIdx=elem.getAttribute("tabIndex");
if(SemTagMenu.tabOrderByTabIndex&&!SemTagMenu.elemOrigTabIdx){
SemTagMenu.elemNext=elem.nextSibling;
elem.setAttribute("tabIndex",parseInt(Number(SemTagMenu.elemTempTabIdx)));
}
var tag=SemTagMenu.getMenuTag(elem);
var _2ec=0;
if(elem&&elem!=SemTagMenu.currentElem){
SemTagMenu.clearAllSvcHandlers(tag);
_2ec=elem.getAttribute(lconn.core.bizCard.bizCardUtils.refcntAttr);
if(_2ec){
SemTagMenu.setCurrentElement(elem);
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagMenu.showHover called for a DOM element with no refcnt attribute!");
}
SemTagMenu.setCurrentElement(null);
return;
}
}
SemTagMenu.addSvcHandler(tag,_2e9);
SemTagMenu.setRefCount(_2ec);
if(SemTagMenu.showing&&tag.style.display!="none"){
return;
}
SemTagMenu.showing=false;
var out=new lconn.core.bizCard.bizCardUtils.out();
SemTagMenu.writeHover(out,"ltr");
tag.innerHTML=out.buffer;
var pos=SemTagMenu.currentElemPosition;
SemTagMenu.show(SemTagMenu.id,_2e8,pos[0]+SemTagMenu.hoverOffset[0],pos[1]+SemTagMenu.hoverOffset[1],SemTagMenu.hoverDimension[0],SemTagMenu.hoverDimension[1]);
}
catch(e){
console.log("Error in SemTagMenu.showHover");
console.log(e);
}
},addSvcHandler:function(tag,_2f0){
SemTagMenu.svcHandlers.push(dojo.connect(tag,"onclick",_2f0));
},clearAllSvcHandlers:function(tag){
while(0<SemTagMenu.svcHandlers.length){
var _2f2=SemTagMenu.svcHandlers.pop();
if(_2f2){
dojo.disconnect(_2f2);
}
}
},setCurrentElement:function(elem){
if(elem!=null){
SemTagMenu.currentElem=elem;
SemTagMenu.currentElemPosition=lconn.core.bizCard.bizCardUtils.findPosition(elem);
SemTagMenu.setRefCount(elem?Number(elem.getAttribute(lconn.core.bizCard.bizCardUtils.refcntAttr)):0);
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(_2f5,_2f6,_2f7,_2f8,_2f9){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Menu.setMenuData: items.length="+_2f6.length);
}
if(!SemTagMenu.staticHover&&SemTagMenu.refCount<0){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("setMenuData called when refCount="+SemTagMenu.refCount);
}
return;
}
var elem=SemTagMenu.findLiveElementFromEventSource(lconn.core.bizCard.bizCardUtils.getElementFromEvent(_2f5));
if(!elem){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("setMenuData called on a null live element");
}
return;
}
if(SemTagMenu.staticHover&&(elem!=SemTagMenu.currentElem||SemTagMenu.showing)){
SemTagMenu.setCurrentElement(elem);
}
for(var i=0;i<_2f6.length;i++){
SemTagMenu.items.push(_2f6[i]);
}
if(_2f7){
SemTagMenu.currentMenuCss=_2f7;
}
if(_2f8){
SemTagMenu.headers.push(_2f8);
}
if(_2f9){
SemTagMenu.footers.push(_2f9);
}
SemTagMenu.stopEvent(_2f5);
SemTagMenu.showMenu();
},getCurrentElement:function(){
return SemTagMenu.currentElem;
},showMenu:function(){
SemTagMenu.items.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
if(1<SemTagMenu.headers.length){
SemTagMenu.headers.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
}
if(1<SemTagMenu.footers.length){
SemTagMenu.footers.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
}
var out=new lconn.core.bizCard.bizCardUtils.out();
SemTagMenu.startMenu(out,"ltr");
if(0<SemTagMenu.headers.length){
SemTagMenu.writeHeader(out,SemTagMenu.headers[0],"ltr");
}
SemTagMenu.startActionSection(out,"ltr",SemTagMenu.currentMenuCss);
for(var i=0;i<SemTagMenu.items.length;i++){
SemTagMenu.writeMenuItem(out,SemTagMenu.items[i],"ltr");
}
SemTagMenu.endActionSection(out,"ltr");
if(0<SemTagMenu.footers.length){
SemTagMenu.writeFooter(out,SemTagMenu.footers[0],"ltr");
}
SemTagMenu.endMenu(out,"ltr");
var tag=SemTagMenu.getMenuTag();
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
SemTagMenu.showing=true;
SemTagMenu.defaultCursor();
if(SemTagMenu.staticHover&&dojo.isFF){
var _2ff=tag.getElementsByTagName("a");
if(0<_2ff.length){
_2ff[0].focus();
}
}
var _300={"target":SemTagMenu.currentElem};
var pos=SemTagMenu.currentElemPosition;
SemTagMenu.show(SemTagMenu.id,_300,pos[0]+SemTagMenu.menuOffset[0],pos[1]+SemTagMenu.menuOffset[1],tag.offsetWidth,tag.offsetHeight);
},getMenuTag:function(elem){
var tag=document.getElementById(SemTagMenu.id);
if(!tag){
tag=document.createElement((SemTagMenu.tabOrderByDomNodeOrder?"div":"span"));
tag.setAttribute("id",SemTagMenu.id);
tag.style.position=(SemTagMenu.tabOrderByDomNodeOrder?"fixed":"absolute");
tag.style.display="none";
if(SemTagMenu.tabOrderByTabIndex&&typeof (elem)!="undefined"&&elem!=null){
var _304=elem.getAttribute("tabIndex");
if(SemTagMenu.tabOrderByTabIndex&&_304){
tag.setAttribute("tabIndex",parseInt(Number(_304)+1));
}
}
dojo.connect(tag,"onmouseout",SemTagMenu.mouseout);
dojo.connect(tag,"onmouseover",SemTagMenu.mouseover);
dojo.connect(tag,"onfocus",SemTagMenu.focus);
if(SemTagMenu.tabOrderByTabIndex){
dojo.connect(tag,"keydown",SemTagMenu.keydown);
}
if(SemTagMenu.tabOrderByDomNodeOrder){
if(elem){
elem.parentNode.appendChild(tag);
}else{
document.body.insertBefore(tag,document.body.firstChild);
}
}else{
document.body.insertBefore(tag,document.body.firstChild);
}
}else{
if(SemTagMenu.tabOrderByTabIndex&&typeof (elem)!="undefined"&&elem!=null){
var _304=elem.getAttribute("tabIndex");
if(_304){
tag.setAttribute("tabIndex",parseInt(Number(_304)+1));
}
}else{
if(SemTagMenu.tabOrderByDomNodeOrder){
if(elem){
elem.parentNode.appendChild(tag);
}
}
}
}
return tag;
},show:function(_305,e,xpos,ypos,_309,_30a){
SemTagMenu.clearTimeouts();
var _30b=document.getElementById(_305);
if(_309==null){
_309=0;
}
if(_30a==null){
_30a=0;
}
var top,left;
if(xpos!=null&&ypos!=null){
var top=ypos;
var left=xpos;
}else{
var top=lconn.core.bizCard.bizCardUtils.getEventAbsoluteY(e);
var left=lconn.core.bizCard.bizCardUtils.getEventAbsoluteX(e);
}
var vSrc=(e.target)?e.target:e.srcElement;
var _30f,_310,d=document;
if(typeof window.innerWidth!="undefined"){
_30f=window.innerWidth;
_310=window.innerHeight;
}else{
if(d.documentElement&&typeof d.documentElement.clientWidth!="undefined"&&d.documentElement.clientWidth!=0){
_30f=d.documentElement.clientWidth;
_310=d.documentElement.clientHeight;
}else{
if(d.body&&typeof d.body.clientWidth!="undefined"){
_30f=d.body.clientWidth;
_310=d.body.clientHeight;
}
}
}
var _312=(document.body.scrollLeft>document.documentElement.scrollLeft)?document.body.scrollLeft:document.documentElement.scrollLeft;
if((left+_309)>(_30f+_312)){
var _313=(left+_309)-_30f-_312;
left-=_313;
}
var _314=(document.body.scrollTop>document.documentElement.scrollTop)?document.body.scrollTop:document.documentElement.scrollTop;
if((top+_30a)>(_310+_314)){
var _313=(top+_30a)-_310-_314;
top-=_313;
}
_30b.style.top=top+"px";
_30b.style.left=left+"px";
_30b.style.display="block";
var _315=document.getElementById("tempIframe");
if(_315==null){
_315=document.createElement("iframe");
_315.setAttribute("id","tempIframe");
_315.setAttribute("frameBorder","no");
_315.setAttribute("scrolling","no");
_315.setAttribute("src",lconn.core.bizCard.bizCardUtils.baseUrl+"/nav/blankIE.html");
_315.style.position="absolute";
_315.style.left=left+"px";
_315.style.top=top+"px";
_315.width=(_30b.offsetWidth).toString()+"px";
_315.height=(_30b.offsetHeight).toString()+"px";
_315.style.display="block";
_315.style.zIndex="899";
document.body.appendChild(_315);
}else{
_315.style.left=left+"px";
_315.style.top=top+"px";
_315.width=(_30b.offsetWidth).toString()+"px";
_315.height=(_30b.offsetHeight).toString()+"px";
_315.style.display="block";
}
var _316=document.getElementById("A11Yblank");
if(_316){
_316.focus();
}else{
if(typeof (SemTagMenu.startHideTimer)!="undefined"){
SemTagMenu.startHideTimer(_305);
}
}
},hide:function(_317,e){
var tag=SemTagMenu.getMenuTag();
if(!tag){
return false;
}
tag.style.display="none";
SemTagMenu.showing=false;
SemTagMenu.setCurrentElement(null);
SemTagMenu.clearAllSvcHandlers(tag);
SemTagMenu.defaultCursor();
var elem=SemTagMenu.getCurrentElement();
if(SemTagMenu.tabOrderByTabIndex&&elem&&elem.getAttribute("tabIndex")){
tag.setAttribute("tabIndex",null);
elem.setAttribute("tabIndex",SemTagMenu.elemOrigTabIdx);
}
var _31b=document.getElementById("tempIframe");
if(_31b!=null){
_31b.style.display="none";
}
return true;
},offScreen:function(_31c){
_31c.style.top="-1000px";
_31c.style.left="-1000px";
_31c.style.display="block";
},findLiveElementFromEventSource:function(_31d){
if(SemTagMenu.staticHover){
var id=_31d.id;
if(!id.match(SemTagMenu.hoverIdRE)){
var _31f=_31d.getElementsByTagName("img");
for(var i=0;i<_31f.length;i++){
if(_31f[i].id&&_31f[i].id.match(SemTagMenu.hoverIdRE)){
id=_31f[i].id;
break;
}
}
}
var idx=id.substr(lconn.core.bizCard.bizCardUtils.hoverIdPrefix.length);
return document.getElementById(lconn.core.bizCard.bizCardUtils.liveElemPrefix+idx);
}else{
var _322=SemTagMenu.getCurrentElement();
return _322?_322:_31d;
}
},findHoverFromLiveElement:function(_323){
var idx=_323.getAttribute(lconn.core.bizCard.bizCardUtils.hoverIdPrefix+"idx");
return document.getElementById(lconn.core.bizCard.bizCardUtils.hoverIdPrefix+idx);
},inMenu:function(_325,_326,_327,_328){
if(!_325){
return false;
}
if(!SemTagMenu.showing){
return false;
}
if(!_327){
_327=0;
}
if(!_328){
_328=0;
}
var _329=lconn.core.bizCard.bizCardUtils.getEventAbsoluteX(_326);
var _32a=lconn.core.bizCard.bizCardUtils.getEventAbsoluteY(_326);
var _32b=_325.style.left.replace(/px$/,"");
var _32c=_325.style.top.replace(/px$/,"");
var sumX=parseInt(_32b)+parseInt(_325.clientWidth);
var sumY=parseInt(_32c)+parseInt(_325.clientHeight);
if((_329-1<=(_32b-_327))||(_32a-1<=(_32c-_328))||(_329>=(sumX+_327))||(_32a>=(sumY+_328))){
return false;
}else{
return true;
}
},mouseout:function(_32f){
var _330=SemTagMenu.id;
menuElem=document.getElementById(_330);
if(SemTagMenu.inMenu(menuElem,_32f)){
}else{
if(typeof (SemTagMenu.startHideTimer)!="undefined"){
SemTagMenu.startHideTimer(_330);
}
}
},mouseover:function(_331){
SemTagMenu.clearTimeouts();
},focus:function(_332){
SemTagMenu.mouseover(_332);
},unfocus:function(_333){
SemTagMenu.mouseout(_333);
},click:function(_334){
if(!_334){
return;
}
var _335=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_334);
if(_335.className!="javlinHover"){
menuElem=document.getElementById(SemTagMenu.id);
if(!SemTagMenu.inMenu(menuElem,_334)){
SemTagMenu.hide(SemTagMenu.id);
}
}
},keydown:function(_336){
SemTagMenu.catchEscape(_336);
SemTagMenu.catchTab(_336);
},catchEscape:function(_337){
if(_337.keyCode==27){
SemTagMenu.hide(SemTagMenu.id);
}
},catchTab:function(_338){
if(_338.keyCode==9){
if(SemTagMenu.elemNext&&typeof (SemTagMenu.elemNext.focus)!="undefined"){
SemTagMenu.elemNext.focus();
}
SemTagMenu.hide(SemTagMenu.id);
}
},simulateClick:function(_339){
if(_339.ctrlKey&&_339.keyCode==13){
if(_339.preventDefault){
_339.preventDefault();
}
var evt=null;
if(document.createEvent){
evt=document.createEvent("MouseEvents");
}
if(evt&&evt.initMouseEvent){
evt.initMouseEvent("click",true,true,document.defaultView,1,0,0,0,0,false,false,false,false,0,null);
}
var _33b=document.getElementById(SemTagMenu.id);
if(_33b.dispatchEvent){
_33b.dispatchEvent(evt);
}else{
if(_33b.fireEvent){
_33b.fireEvent("onclick");
}
}
}
},stopEvent:function(_33c){
if(!_33c){
return;
}
if(dojo.isFF){
if(_33c.preventDefault==null){
_33c=_33c.original;
}
_33c.preventDefault();
_33c.stopPropagation();
}else{
try{
if(_33c.returnValue==null){
_33c=_33c.original;
}
_33c.returnValue=false;
_33c.cancelBubble=true;
}
catch(e){
}
}
},startHideTimer:function(_33d){
if(0<SemTagMenu.hideDelay){
SemTagMenu.timeouts.push(window.setTimeout("SemTagMenu.endHideTimer(\""+_33d+"\")",SemTagMenu.hideDelay));
}
},endHideTimer:function(_33e){
menuElem=document.getElementById(_33e);
SemTagMenu.hide(_33e);
},clearTimeouts:function(){
for(i=0;i<SemTagMenu.timeouts.length;i++){
window.clearTimeout(SemTagMenu.timeouts[i]);
}
},defaultCursor:function(){
document.body.style.cursor="default";
},waitCursor:function(){
document.body.style.cursor="wait";
},clickCursor:function(){
document.body.style.cursor="pointer";
}};
SemTagMenu.defaultLoaded=true;
SemTagMenu.hoverDimension=[14,14];
SemTagMenu.hoverOffset=[15,3];
SemTagMenu.menuOffset=[15,0];
SemTagMenu.writeHover=function(out,bidi){
if(window.semtagrs!=null){
var _341="z-index: 900; opacity: 1;";
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.isBidiRTL){
_341+="padding:2px 25px 2px 3px; background-position:96% center;";
}
out.write("<div class='javlinHover' "+" onmouseover='javascript:SemTagMenu.clickCursor();'"+" onmouseout='javascript:SemTagMenu.defaultCursor();'"+" style='"+_341+"' "+" title='"+semtagrs["label.semtag.hover"]+"' "+">"+semtagrs["label.semtag.hover"]+"</div>");
}else{
console.log("SemTagMenu.writeHover: semtagrs is null. Need for strings");
}
};
SemTagMenu.startMenu=function(out,bidi){
out.write("<div class='popupPersonCard' style='z-index: 900;'>");
};
SemTagMenu.writeHeader=function(out,_345,bidi){
out.write(_345.markup);
};
SemTagMenu.startActionSection=function(out,bidi,_349){
out.write("<a href='javascript:a11y()'><a>");
if(!_349){
_349="personMenuActions";
}
out.write("<div class='"+_349+"'>");
out.write("<ul>");
};
SemTagMenu.writeMenuItem=function(out,item,bidi){
out.write("<li><a href='"+item.href+"'>"+item.label+"</a></li>");
};
SemTagMenu.endActionSection=function(out,bidi){
out.write("</ul>");
out.write("</div>");
};
SemTagMenu.writeFooter=function(out,_350,bidi){
out.write(_350.markup);
};
SemTagMenu.endMenu=function(out,bidi){
out.write("</div>");
};
window.SemTagUtil={crossDomainRequest:function(){
var _354=new Array();
var _355=new Array();
var _356=new Array();
var self=this;
createTimeoutFunction=function(_358){
return function(){
self.cancelRequest(_358);
};
};
this.getScriptId=function(id){
return "_JVLN_"+id;
};
this.getScriptObject=function(id){
return document.getElementById(this.getScriptId(id));
};
this.cloneObject=function(obj){
var _35c=new Object();
for(i in obj){
_35c[i]=obj[i];
}
return _35c;
};
this.request=function(url,_35e,_35f,_360,_361){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: started");
}
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: connectionId "+_361);
}
_361=_361.toLowerCase();
var _362=this.getScriptId(_361);
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: objId "+_362);
}
if(_35f!=null){
_354[_361]=_35f;
}
if(_360!=null){
if(!dojo.isFF){
_355[_361]=this.cloneObject(_360);
}else{
_355[_361]=_360;
}
}
var _363=document.createElement("script");
_363.id=_362;
_363.type="text/javascript";
_363.defer=true;
try{
_363.src=url;
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: url: "+url);
}
}
catch(e){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: error:",e);
}
return false;
}
try{
var body=document.getElementsByTagName("body");
if(body[0]){
body[0].appendChild(_363);
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: error getting body element to insert script:"+_363.id);
}
return false;
}
}
catch(e){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: error:",e);
}
return false;
}
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.request: added script: "+_363.id);
}
if(_35e){
var self=this;
_356[_361]=window.setTimeout(createTimeoutFunction(_361),_35e);
}
};
this.cancelRequest=function(id){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.cancelRequest:  Request ["+id+"] took too long.  Cancelling request for id: "+_356[id]);
}
var _367=_354[id];
_354[id]=null;
var _368=_355[id];
_355[id]=null;
if(_367!=null){
try{
if(_367){
_367(false,null,_368);
}
this.removeScript(id);
}
catch(e){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.cancelRequest: Exception Caught: "+e);
}
}
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.cancelRequest: no callback for : "+id);
}
}
};
this.removeScript=function(id){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.removeScript: removing script element for: "+id);
}
if(id){
var _36a=this.getScriptObject(id);
if(_36a!=null){
var body=document.getElementsByTagName("body");
body[0].removeChild(_36a);
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.removeScript: removed script for id: "+id);
}
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.removeScript: script is null for id: "+id);
}
}
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.removeScript: id is null");
}
}
};
this.dispatch=function(id,data){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.dispatch: id: "+id);
}
if(id!=null){
id=id.toLowerCase();
}
try{
if(id!=null&&typeof (_356[id])!="undefined"&&_356[id]!=null){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("request dispatched. removing timeout for id ["+id+"]  timeout id: "+_356[id]);
}
window.clearTimeout(_356[id]);
}
var _36e=_354[id];
var _36f=_355[id];
_355[id]=null;
if(_36e!=null){
_354[id]=null;
_36e(true,data,_36f);
window.setTimeout(function(){
self.removeScript(id);
},1000);
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("SemTagUtil.dispatch: callback is null for id: "+id);
}
}
}
catch(e){
console.log("SemTagUtil.dispatch: Exception Caught: ");
console.log(e);
}
};
}};
}
if(!dojo._hasResource["lconn.communities.bizCard.bizCard"]){
dojo._hasResource["lconn.communities.bizCard.bizCard"]=true;
dojo.provide("lconn.communities.bizCard.bizCard");
lconn.communities.bizCard.bizCard={servletUrl:null,requestor:null,initited:false,init:function(){
this.servletUrl=lconn.core.bizCard.bizCardUtils.getBaseURL("hgroup")+"/service/json/communityview?communityUuid=@@@UUID@@@";
if(this.initited==false){
this.requestor=new SemTagUtil.crossDomainRequest();
this.initited=true;
}
},getIdMethod:function(_370){
return _370.uuid?_370.uuid:null;
},convMethod:function(_371){
return _371;
},customTrim:function(_372){
return _372.replace(/^\s+/,"").replace(/\s+$/,"");
},processTag:function(_373){
try{
if(!this.initited){
lconn.core.bizCard.bizCardUtils.init();
SemTagMenu.init();
this.init();
}
this.processHcard(_373);
}
catch(e){
console.log(e);
}
},processHcard:function(_374){
var _375=this.getNameElement(_374);
if(!_375){
return;
}
if(this.isInline(_374)){
var _376={"target":_375};
this.getTagFromServer(_376);
}else{
lconn.core.bizCard.bizCardUtils.addHover(_375,lconn.communities.bizCard.bizCard.showHover,lconn.communities.bizCard.bizCard.showMenu);
}
},isInline:function(_377){
return this.getHcardAttributeValue("X-community-display-inline",_377);
},loadHcardCommunity:function(_378){
var _379=new Object();
var _37a=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_378);
var _37b=_37a.getElementsByTagName("*");
for(i=0;i<_37b.length;i++){
var _37c=_37b[i];
if(_37c.className){
var _37d=_37c.className.split(" ");
for(j=0;j<_37d.length;j++){
var c=_37d[j];
var attr=this.getHcardAttributeValue(c,_37a);
if(attr){
_379[c]=attr;
}
}
}
}
return _379;
},getHcardAttributeValue:function(_380,_381){
switch(_380){
case ("name"):
return this.getHcardTypedAttribute(_381,_380,"name");
case ("uuid"):
return this.getHcardTypedAttribute(_381,_380,"uuid");
case ("selectedWidgetId"):
return this.getHcardTypedAttribute(_381,_380,"selectedWidgetId");
}
var _382=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_381);
var _383=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_380,_382,1);
if(_383.length>0&&_383[0].tagName.match(/^abbr$/i)){
return _383[0].getAttribute("title");
}
switch(_380){
case ("uuid"):
var uuid=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_383[0]);
if(uuid){
return uuid;
}else{
return this.getHcardAttributeValue("name",_381);
}
break;
case ("name"):
var name=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_383[0]);
if(name){
return name;
}
break;
case ("selectedWidgetId"):
var _386=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_383[0]);
if(_386){
return _386;
}
break;
case ("X-community-display-inline"):
if(_383.length>0){
return true;
}else{
return false;
}
default:
return lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_383[0]);
break;
}
},getHcardTypedAttribute:function(_387,_388,_389){
var _38a=new Object();
var _38b=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_387);
var _38c=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_388,_38b);
for(i=0;i<_38c.length;i++){
var _38d=_38c[i];
_38a=lconn.core.bizCard.bizCardUtils.getTypedValue(_38d,_389);
}
return _38a;
},showHover:function(_38e){
try{
lconn.core.bizCard.bizCardUtils.showHover(_38e,lconn.communities.bizCard.bizCard.showMenu);
}
catch(e){
console.log("Error in lconn.communities.bizCard.bizCard.showHover");
console.log(e);
}
},showMenu:function(_38f){
SemTagMenu.waitCursor();
lconn.communities.bizCard.bizCard.getTagFromServer(_38f);
},getTagFromServer:function(_390){
var _391=null;
var _392=null;
if(_390!=null&&_390.target!=null&&_390.target.className=="name"){
_391=_390.target;
_392=_390;
SemTagMenu.currentElem=_391;
}else{
_391=SemTagMenu.currentElem;
_392={target:_391,original:_390};
if(_391==null&&_390!=null){
_392=_390;
_391=_390.target;
}
}
var _393=this.customTrim(this.getElementUuid(_391));
var _394={"UUID":_393};
var _395="lconn.communities.bizCard.bizCard.dispatch";
var _396=_393;
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.getTagFromServer sending request for: "+_393+")";
}
lconn.core.bizCard.bizCardUtils.getBizCardData(this.servletUrl+"&preventCache="+new Date().getTime(),_394,_395,this.requestor,this.requestReturn,_392,_396);
},requestReturn:function(_397,_398,_399){
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.requestReturn: success="+_397;
}
var _39a=_397?lconn.communities.bizCard.bizCard.convMethod(_398):{};
var _39b=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_399);
lconn.communities.bizCard.bizCard.fillCommunityJsonMoreFromDom(_39a,_39b);
lconn.communities.bizCard.bizCard.update(_39a,_39b,_399);
},fillCommunityJsonMoreFromDom:function(_39c,_39d){
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.fillCommunityJsonMoreFromDom";
}
if(!_39c.name){
var _39e=lconn.core.bizCard.bizCardUtils.findNameElementInHcard(_39d);
if(_39e){
_39c.name=lconn.core.bizCard.bizCardUtils.getTextValue(_39e);
}
}
if(!_39c.uuid){
var uuid=this.getElementUuid(_39d);
_39c.uuid=uuid;
}
},update:function(_3a0,_3a1,_3a2){
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.update";
}
this.currentCommunity=_3a0;
var _3a3=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_3a1);
if(this.isInline(_3a3)){
var out=new lconn.core.bizCard.bizCardUtils.out();
var _3a5=this.getHcardAttributeValue("selectedWidgetId",_3a3).selectedWidgetId;
lconn.communities.bizCard.bizCardUI.getInlineMarkup(_3a0,"ltr",out,_3a5);
var prev=lconn.core.bizCard.bizCardUtils.getElementsByClassName("personinlinemenu",_3a3,1);
if(prev.length>0){
prev[0].innerHTML=out.buffer;
}else{
var span=document.createElement("span");
span.className="personinlinemenu";
span.innerHTML=out.buffer;
_3a3.appendChild(span);
}
}else{
var _3a8=new Array();
var _3a9="personMenuActions";
var _3aa=new lconn.core.bizCard.bizCardUtils.out();
var _3ab=new lconn.core.bizCard.bizCardUtils.out();
lconn.communities.bizCard.bizCardUI.getMenuData(_3a0,"ltr",_3a8,_3a9,_3aa,_3ab);
lconn.core.bizCard.bizCardUtils.setMenuData(_3a2,_3a8,_3a9,lconn.core.bizCard.bizCardUtils.getMenuHeaderJson(_3aa.buffer,-100));
}
},dispatch:function(data){
var _3ad=this.getIdMethod(data);
this.requestor.dispatch(_3ad,data);
},getElementUuid:function(elem){
var uuid;
var _3b0=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",elem);
if(_3b0!=null){
uuid=this.getHcardAttributeValue("uuid",_3b0);
uuid=uuid.uuid;
}
return uuid;
},getNameElement:function(elem){
if(elem.className!="vcomm"){
elem=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",elem);
}
var _3b2=lconn.core.bizCard.bizCardUtils.getElementsByClassName("name",elem,1)[0];
return _3b2;
}};
}
if(!dojo._hasResource["lconn.communities.bizCard.bizCardUI"]){
dojo._hasResource["lconn.communities.bizCard.bizCardUI"]=true;
var showLinks=(dojo.cookie("community.inline.card.links")==1);
dojo.provide("lconn.communities.bizCard.bizCardUI");
lconn.communities.bizCard.bizCardUI={getMenuData:function(_3b3,bidi,_3b5,_3b6,_3b7,_3b8){
var _3b9=dojo.i18n.getLocalization("lc_default")["label.overview"];
if(_3b9==null){
_3b9=dojo.i18n.getLocalization("lc_default")["label.navigation.overview.heading"];
}
var _3ba="";
if(lconn.core.bizCard.bizCardUtils.standaloneCSSloaded){
_3ba=" lotusui";
}
_3b7.write("<div id='container' "+_3ba+" style='width: 32em; height:12em;border: 1px solid #e0e0e0; -moz-border-radius:7px;background-color:#F5F8FF;padding:10px 0px 8px 10px;'>");
_3b7.write("  <div id='navigationLinks' style='clear:left; border-bottom:1px solid #e0e0e0;padding: 0px 0pt 5px 0px;margin:0;'>");
_3b7.write("      <a href='"+_3b3.homeUrl+"' title=\""+_3b9+"\" class='action'>"+_3b9+"</a>");
this.writeLinksforPopupCard(_3b7,_3b3);
_3b7.write("  </div><br/>");
if(_3b3.imageUrl!=null&&_3b3.imageUrl!=""){
_3b7.write("  <img src='"+_3b3.imageUrl+"' alt=\""+_3b3.name+"\" title=\""+_3b3.name+"\" height='95' width='95' style='float:left;margin: 0px 10px 10px 10px; padding:2px !important; border:1px solid #c2c2c2;background-color:#fff;'/>");
}
_3b7.write("  <div  style='height:9em;overflow:hidden;'>");
_3b7.write("  <h2 style='font-size:1.1em;margin:0;margin-right:20px;padding:0;'>"+_3b3.name+"<span id='membersCount' style='font-size:.9em;color:#999;font-weight:normal;'> ("+_3b3.membercount+" "+dojo.i18n.getLocalization("lc_default")["label.members.lowercase"]+")</span></h2>");
if(_3b3.tags!=null&&_3b3.tags!=""){
_3b7.write("  <div style='font-size:.9em;color:#999;padding:0;margin:0;'>"+dojo.i18n.getLocalization("lc_default")["label.tags"]+" "+_3b3.tags+"</div>");
}
if(_3b3.description!=null&&_3b3.description!=""){
_3b7.write("  <p id='communityDescription' style='font-size:.9em;padding:3px 5px 0 0;margin:0;'>");
_3b7.write("      "+_3b3.description);
_3b7.write("  </p>                        ");
}
_3b7.write("  </div>                      ");
_3b7.write("</div><!-- end container -->");
},getInlineMarkup:function(comm,bidi,_3bd,_3be){
var _3bf=_3bd;
var _3c0=(dojo.cookie("community.inline.card.links")!=0);
var _3c1="lotusTwistyOpen";
if(_3c0){
_3c1="lotusTwistyOpen";
}else{
_3c1="lotusTwistyClosed";
}
var _3c2="";
if(lconn.core.bizCard.bizCardUtils.standaloneCSSloaded){
_3c2="lotusui";
}
_3bf.write("<div class=\"lotusMenu "+_3c2+"\">");
_3bf.write("<div class=\"lotusBottomCorner  lotusInlineMenu\">");
_3bf.write("<div class=\"lotusInner\">");
_3bf.write("<div class=\" lotusCenter lotusInlinePhoto\"><a href=\""+comm.homeUrl+"\"><img src=\""+comm.imageUrl+"\" width=\"155\" height=\"155\" alt=\""+comm.name+"\" /></a></div>");
_3bf.write("<div class=\"lotusLeft\"><a id=\""+comm.uuid+"_twisty\" class=\"lotusSprite lotusArrow "+_3c1+"\" href=\"javascript:lconn.communities.bizCard.bizCardUI.toggleSection('"+comm.uuid+"');\"></a></div>");
_3bf.write("<h2><a href=\""+comm.homeUrl+"\">"+comm.name+"</a></h2>");
_3bf.write("<div class=\"lotusMenuSeparator\"></div>");
this.writeLinks(_3bf,comm,_3be,_3c0);
_3bf.write("</div>");
_3bf.write("</div>");
_3bf.write("</div>");
},writeLinksforPopupCard:function(_3c3,_3c4){
for(var i=0;_3c4.links!=null&&i<_3c4.links.length;i++){
_3c3.write("&nbsp;&nbsp;|&nbsp;<a href='"+_3c4.links[i].url+"' title='"+_3c4.links[i].label+"' class='action'>"+_3c4.links[i].label+"</a>");
}
},toggleSection:function(_3c6){
var _3c7=dojo.byId(_3c6+"_twisty");
var _3c8=dojo.byId(_3c6+"_comm_appLinks");
if(_3c8.style.display=="none"){
dojo.fx.wipeIn({node:_3c8,duration:300}).play();
dojo.removeClass(_3c7,"lotusTwistyClosed");
dojo.addClass(_3c7,"lotusTwistyOpen");
dojo.cookie("community.inline.card.links",1);
}else{
dojo.fx.wipeOut({node:_3c8,duration:300}).play();
dojo.removeClass(_3c7,"lotusTwistyOpen");
dojo.addClass(_3c7,"lotusTwistyClosed");
dojo.cookie("community.inline.card.links",0);
}
},writeLinks:function(_3c9,_3ca,_3cb,_3cc){
var _3cd=dojo.i18n.getLocalization("lc_default")["label.overview"];
if(_3cd==null){
_3cd=dojo.i18n.getLocalization("lc_default")["label.navigation.overview.heading"];
}
if(_3cc){
_3c9.write("<ul id=\""+_3ca.uuid+"_comm_appLinks\">");
}else{
_3c9.write("<ul id=\""+_3ca.uuid+"_comm_appLinks\" style=\"display: none\">");
}
_3c9.write("<li>"+"<a href='"+_3ca.homeUrl+"' title=\""+_3cd+"\" class='action'>"+_3cd+"</a>"+"</li>");
for(var i=0;_3ca.links!=null&&i<_3ca.links.length;i++){
_3c9.write("<li id=\""+_3ca.links[i].id+"navItem\"");
if(_3cb==_3ca.links[i].id){
_3c9.write(" class=\"lotusSelected\" ");
}
_3c9.write("><a href=\""+_3ca.links[i].url+"\" title=\""+_3ca.links[i].label+"\" class=\"action\">"+_3ca.links[i].label+"</a></li>");
}
_3c9.write("</ul>");
return;
}};
}
if(!dojo._hasResource["lconn.core.i18nOverrider"]){
dojo._hasResource["lconn.core.i18nOverrider"]=true;
dojo.provide("lconn.core.i18nOverrider");
if(lconn.core.i18nOverrider.originalFunction==null){
lconn.core.i18nOverrider.originalFunction=dojo.i18n.getLocalization;
}
dojo.i18n.getLocalization=function(_3cf,_3d0,_3d1){
if(_3cf=="dijit"||_3cf=="dojo"){
return lconn.core.i18nOverrider.originalFunction(_3cf,_3d0,_3d1);
}
var _3d2=_3d0;
if(window[_3cf]!=null){
var _3d3=window[_3cf];
if(_3d3!=null&&_3d3!="undefined"){
return _3d3;
}else{
return lconn.core.i18nOverrider.originalFunction(_3cf,_3d0,_3d1);
}
}else{
return lconn.core.i18nOverrider.originalFunction(_3cf,_3d0,_3d1);
}
};
lconn.core.i18nOverrider.getResourceString=function(_3d4){
return dojo.i18n.getLocalization("lc_default",_3d4);
};
lconn.core.i18nOverrider.loadResourceStringsInParams=function(_3d5,_3d6){
if(_3d5==null){
_3d5=new Array;
}
for(var i=0;_3d6!=null&&i<_3d6.length;i++){
var _3d8=dojo.i18n.getLocalization("default",_3d6[i]);
var _3d9=_3d8.replace(/\'\'/g,"'");
if(_3d9==null||_3d9==""){
_3d5.push([_3d6[i],_3d6[i]+" resourceKey not found"]);
}else{
_3d5.push([_3d6[i],_3d9]);
}
}
return _3d5;
};
lconn.core.i18nOverrider.replaceParams=function(_3da,_3db){
var _3dc=_3da.indexOf("{");
if(_3dc!=-1){
var _3dd=_3da.indexOf("}");
if(_3dd==-1){
return _3da;
}
var _3de=_3da.substring(_3dc+1,_3dd);
var _3df=_3db[_3de];
return _3da.substring(0,_3dc)+_3df+lconn.core.i18nOverrider.replaceParams(_3da.substring(_3dd+1),_3db);
}else{
return _3da;
}
};
}
if(!dojo._hasResource["lconn.core.utilities"]){
dojo._hasResource["lconn.core.utilities"]=true;
dojo.provide("lconn.core.utilities");
lconn.core.utilities.getURLParam=function(_3e0){
var _3e1=decodeURIComponent(window.location);
if(_3e1.indexOf(_3e0)==-1){
return null;
}else{
var _3e2=_3e1.substring(_3e1.indexOf(_3e0+"=")+_3e0.length+1);
var _3e3=_3e2.indexOf("&");
if(_3e3!=-1){
_3e2=_3e2.substring(0,_3e3);
}
return _3e2;
}
};
lconn.core.utilities.replacePlaceHolders=function(_3e4,_3e5){
var _3e6=new Object();
for(var i=0;_3e5!=null&&i<_3e5.length;i++){
_3e6["{"+i+"}"]=_3e5[i];
}
return lconn.core.i18nOverrider.replaceParams(_3e4,_3e6);
};
lconn.core.utilities.processUntilElementIsFound=function(_3e8,_3e9,_3ea,_3eb){
var _3ec="";
var _3ed=0;
_3ec=window.setInterval(function(){
var _3ee=null;
if(_3ea!=null){
_3ee=_3ea.getElementById(_3e8);
}else{
_3ee=dojo.byId(_3e8);
}
_3ed++;
if(_3ee!=null){
window.clearInterval(_3ec);
_3e9(_3ee,_3eb);
}else{
if(_3ed==20){
window.clearInterval(_3ec);
}
}
},500);
};
lconn.core.utilities.processUntilAvailable=function(_3ef,test,_3f1){
var _3f2="";
var _3f3=0;
_3f2=window.setInterval(function(){
_3f3++;
if(eval(test)){
window.clearInterval(_3f2);
if(_3f1!=null){
_3ef(_3f1);
}else{
_3ef();
}
}else{
if(_3f3==20){
window.clearInterval(_3f2);
}
}
},500);
};
lconn.core.utilities.gotoURL=function(url,_3f5){
if(_3f5==null){
if(url.indexOf("?")!=-1){
url+="&ver="+profilesData.config.buildNumber+"&lastMod="+profilesData.config.profileLastMod;
}else{
url+="?ver="+profilesData.config.buildNumber+"&lastMod="+profilesData.config.profileLastMod;
}
}
if(dojo.isIE){
var _3f6=url;
setTimeout("window.location.href = SideBar_RedirectUrl",0);
}else{
window.location.assign(url);
}
};
lconn.core.utilities.toggleVisibility=function(_3f7,_3f8){
var _3f9=null;
if((typeof _3f7)=="string"){
_3f9=dojo.byId(_3f7);
}else{
_3f9=_3f7;
}
if(_3f9){
if(_3f9.style.visibility=="hidden"){
lconn.core.utilities.show(_3f9,_3f8);
}else{
lconn.core.utilities.hide(_3f9,_3f8);
}
}
return false;
};
lconn.core.utilities.hide=function(_3fa,_3fb,nofx,_3fd){
var _3fe=null;
if((typeof _3fa)=="string"){
_3fe=dojo.byId(_3fa);
}else{
_3fe=_3fa;
}
if(_3fe!=null){
var _3ff=function(){
_3fe.style.visibility="hidden";
if(!_3fb){
_3fe.style.display="none";
}
if(_3fd!=null){
_3fd();
}
};
if(nofx==null||nofx==false){
var _400=dojo.fx.wipeOut({node:_3fe,duration:300,onEnd:_3ff});
_400.play();
}else{
_3ff();
}
}
return false;
};
lconn.core.utilities.show=function(_401,_402,_403,nofx,_405){
var _406=0;
var _407=null;
if((typeof _401)=="string"){
_407=dojo.byId(_401);
}else{
_407=_401;
}
if(_403&&_407==null){
var _408="";
_408=window.setInterval(function(){
_406++;
if((typeof _401)=="string"){
_407=dojo.byId(_401);
}else{
_407=_401;
}
if(_407!=null){
window.clearInterval(_408);
lconn.core.utilities.show(_407,_402,false,nofx,_405);
}else{
if(_406==20){
window.clearInterval(_408);
}
}
},300);
}else{
if(_407!=null){
var _409=function(){
_407.style.visibility="visible";
if(!_402){
_407.style.display="block";
}
if(_405!=null){
_405();
}
};
if(nofx==null||nofx==false){
var _40a=dojo.fx.wipeIn({node:_407,duration:300});
_40a.play();
}else{
_409();
}
}
}
return false;
};
}
if(!dojo._hasResource["lconn.profiles.bizCard.bizCard"]){
dojo._hasResource["lconn.profiles.bizCard.bizCard"]=true;
dojo.provide("lconn.profiles.bizCard.bizCard");
if(!window.SemTagPerson){
window.SemTagPerson={services:[]};
}
lconn.profiles.bizCard.bizCard={applicationContext:null,servletUrlByUserId:null,servletUrlByEmail:null,requestor:null,services:[],initited:false,init:function(){
if(this.initited==false){
this.applicationContext=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
this.servletUrlByUserId2=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/json/profile.do?userid=@@@USERID@@@&lang=@@@LANG@@@";
this.servletUrlByEmail2=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/json/profile.do?email=@@@EMAIL@@@&lang=@@@LANG@@@";
this.servletUrlByUserId=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/json/profile.do?userid=@@@USERID@@@&callback=lconn.profiles.bizCard.bizCard.dispatchByUserId&lang=@@@LANG@@@";
this.servletUrlByEmail=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/json/profile.do?email=@@@EMAIL@@@&callback=lconn.profiles.bizCard.bizCard.dispatchByEmail&lang=@@@LANG@@@";
this.requestor=new SemTagUtil.crossDomainRequest();
if(window.generalrs==null){
lconn.core.bizCard.bizCardUtils.loadScript(lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/resources/js-resources.js");
}
this.initited=true;
}
},getIdMethod:function(_40b){
return (_40b.email&&_40b.email.internet)?_40b.email.internet:null;
},convMethod:function(_40c){
return _40c;
},dispatchByEmail:function(data){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByEmail: data: "+data);
}
var _40e=(data.email&&data.email.internet)?data.email.internet:null;
this.dispatch(_40e,data);
},dispatchByUserId:function(data){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByUserId: data: "+data);
}
var _410=data.X_lconn_userid?data.X_lconn_userid:null;
this.dispatch(_410,data);
},dispatchByConfig:function(data){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByConfig: data: "+data);
}
this.dispatch("configDataId",data);
},dispatch:function(id,data){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatch: id:"+id+"  data: "+data);
}
this.requestor.dispatch(id,data);
},processTag:function(_414){
try{
if(!this.initited){
lconn.core.bizCard.bizCardUtils.init();
SemTagMenu.init();
this.init();
}
this.processHcard(_414);
}
catch(e){
console.log(e);
}
},processHcard:function(_415){
var _416=this.getNameElement(_415);
if(!_416){
return;
}
if(this.isInline(_415)){
var _417={"target":_416};
this.getTagFromServer(_417);
}else{
lconn.core.bizCard.bizCardUtils.addHover(_416,this.showHover,this.showMenu,this.keystrokeHandler);
}
},isInline:function(_418){
return this.getHcardAttributeValue("X-person-display-inline",_418);
},loadHcardPerson:function(_419){
var _41a=new Object();
var _41b=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_419);
var _41c=_41b.getElementsByTagName("*");
for(i=0;i<_41c.length;i++){
var _41d=_41c[i];
if(_41d.className){
var _41e=_41d.className.split(" ");
for(j=0;j<_41e.length;j++){
var c=_41e[j];
var attr=this.getHcardAttributeValue(c,_41b);
if(attr){
_41a[c]=attr;
}
}
}
}
return _41a;
},getHcardAttributeValue:function(_421,_422){
switch(_421){
case ("email"):
return this.getHcardTypedAttribute(_422,_421,"internet");
case ("tel"):
return this.getHcardTypedAttribute(_422,_421,"voice");
case ("adr"):
return this.getHcardTypedAttribute(_422,_421,"intl");
}
var _423=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_422);
var _424=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_421,_423,1);
if(_424.length>0&&_424[0].tagName.match(/^abbr$/i)){
return _424[0].getAttribute("title");
}
switch(_421){
case ("fn"):
var fn=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_424[0]);
if(fn){
return fn;
}else{
return this.getHcardAttributeValue("n",_422);
}
break;
case ("n"):
if(_424.length>0){
var _426=_424[0];
var _427="";
var _428=["honorific-prefix","given-name","additional-name","family-name","honorific-suffix"];
for(i=0;i<5;i++){
var n=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(lconn.core.bizCard.bizCardUtils.getElementsByClassName(_428[i],_426,1)[0]);
if(n){
_427+=n+" ";
}
}
return _427;
}
return "";
break;
case ("photo"):
var _42a=_424[0];
if(_42a){
return _42a.getAttribute("src");
}else{
return;
}
break;
case ("X-sametime-status"):
var _42b=_424[0];
if(!_42b){
return "";
}
var _42c=_42b.getAttribute("value");
if(_42c){
return _42c;
}else{
return lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_42b);
}
break;
case ("X-person-display-inline"):
if(_424.length>0){
return true;
}else{
return false;
}
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:
return lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_424[0]);
break;
}
},getHcardTypedAttribute:function(_42d,_42e,_42f){
var _430=new Object();
var _431=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_42d);
var _432=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_42e,_431);
for(i=0;i<_432.length;i++){
var _433=_432[i];
if(_42e=="email"&&_433.nodeName.toLowerCase()=="a"&&_433.href.match(/^mailto:/)){
var _434=_433.href.indexOf("?");
if(_434>-1){
_430[_42f]=_433.href.slice(7,_434);
}else{
_430[_42f]=_433.href.slice(7);
}
continue;
}
_430=lconn.core.bizCard.bizCardUtils.getTypedValue(_433,_42f);
}
return _430;
},showHover:function(_435){
try{
lconn.core.bizCard.bizCardUtils.showHover(_435,lconn.profiles.bizCard.bizCard.showMenu);
}
catch(e){
console.log("Error in lconn.profiles.bizCard.bizCard.showHover");
console.log(e);
}
},showMenu:function(_436){
SemTagMenu.waitCursor();
lconn.profiles.bizCard.bizCard.getTagFromServer(_436);
},keystrokeHandler:function(_437){
if(_437.ctrlKey&&(_437.keyCode==13)){
if(_437.preventDefault){
_437.preventDefault();
}
lconn.profiles.bizCard.bizCard.showMenu(_437);
}
},getSearchType:function(_438){
indexOf.lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
},getTagFromServer:function(_439){
var _43a=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_439);
var _43b=lconn.core.bizCard.bizCardUtils.getLangParam();
var _43c={"LANG":lconn.core.bizCard.bizCardUtils.getLangParam()};
var url=null;
var _43e=null;
var _43f=null;
var _440=this.getElementUserId(_43a);
if(_440){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sending request for user id: "+_440);
}
_43c["USERID"]=_440;
_43e=_440;
url=this.servletUrlByUserId2;
_43f="lconn.profiles.bizCard.bizCard.dispatchByUserId";
}else{
var _441=this.getElementEmail(_43a);
if(_441){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sending request for email: "+_441);
}
_43c["EMAIL"]=_441;
_43e=_441;
url=this.servletUrlByEmail2;
_43f="lconn.profiles.bizCard.bizCard.dispatchByEmail";
}
}
if(_43e!=null){
lconn.core.bizCard.bizCardUtils.getBizCardData(url,_43c,_43f,this.requestor,this.requestReturn,_439,_43e);
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sent");
}
}else{
this.noInformationProvided(_43a,_439);
}
},noInformationProvided:function(_442,_443){
lconn.profiles.bizCard.bizCard.update(null,_442,_443);
},requestReturn:function(_444,_445,_446){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.requestReturn: success="+_444);
}
var _447=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_446);
var _445=_444?lconn.profiles.bizCard.bizCard.convMethod.call(null,_445):{};
lconn.profiles.bizCard.bizCard.fillPersonJsonMoreFromDom(_445,_447);
lconn.profiles.bizCard.bizCard.update(_445,_447,_446);
},fillPersonJsonMoreFromDom:function(_448,_449){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.fillPersonJsonMoreFromDom");
}
if(!_448.photo){
_448.photo=lconn.core.bizCard.bizCardUtils.baseUrl+"/images/profileNoPhoto.gif";
}
if(!_448.fn){
var _44a=lconn.core.bizCard.bizCardUtils.findNameElementInHcard(_449);
if(_44a){
_448.fn=lconn.core.bizCard.bizCardUtils.getTextValue(_44a);
}
}
if(!_448.email||!_448.email.internet){
var _44b=this.getElementEmail(_449);
_448.email={"internet":_44b};
}
if(!_448.tel||!_448.tel.voice){
var _44c=lconn.core.bizCard.bizCardUtils.findElementByNameInHcard(_449,"tel");
if(_44c){
var tels=lconn.core.bizCard.bizCardUtils.getTypedValue(_44c,"voice");
_448.tel={"voice":tels["voice"]};
}
}
var _44e=lconn.core.bizCard.bizCardUtils.findElementByNameInHcard(_449,"adr");
var _44f={};
if(_44e){
_44f=SemTagAddr.getAddressJson(_44e);
_448.adr=_44f;
}
},update:function(_450,_451,_452){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.update");
}
this.currentPerson=_450;
var _453=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_451);
if(this.isInline(_453)){
var out=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getInlineMarkup(_450,"ltr",out);
var span=document.createElement("span");
span.innerHTML=out.buffer;
_453.appendChild(span);
var _456=(dojo.cookie("card.inline.expanded")?false:true);
}else{
var _457=new Array();
var _458="personMenuActions";
var _459=new lconn.core.bizCard.bizCardUtils.out();
var _45a=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getMenuData(_450,"ltr",_457,_458,_459,_45a);
lconn.core.bizCard.bizCardUtils.setMenuData(_452,_457,_458,lconn.core.bizCard.bizCardUtils.getMenuHeaderJson(_459.buffer,-100));
}
if(_450!=null){
if(_450.X_bizCardSTAwareness){
this.invokeSametimeAwareness(_450);
}
}
},invokeSametimeAwareness:function(_45b){
if(this.attemptedToLoadSametime==null&&window.Status==null){
var _45c="http://localhost:59449/stwebapi/";
lconn.core.bizCard.bizCardUtils.loadScript(_45c+"getStatusNonDojo.js");
lconn.core.bizCard.bizCardUtils.loadCss(lconn.core.bizCard.bizCardUtils.getBaseURL("hcard")+"/css/sametime/main.css");
this.attemptedToLoadSametime=true;
}
lconn.core.utilities.processUntilAvailable(this.invokeSametimeAwarenessForPerson,"window.Status != null",_45b);
},invokeSametimeAwarenessForPerson:function(_45d){
var _45e="http://localhost:59449/stwebapi/";
var url=_45e+"getstatus/";
url+=_45d.email.internet+"?jsonp=lconn.profiles.bizCard.bizCard.sametimeCallBack&time="+new Date().getTime();
lconn.core.bizCard.bizCardUtils.loadScript(url);
},sametimeCallBack:function(_460){
if(_460.error!=null){
}else{
var _461=document.getElementById(_460.username+"vcardNameElem");
if(_461!=null&&typeof (Status)!="undefined"){
_461.className+=" awareness "+Status.getStyleForStatus(_460.status);
_461.setAttribute("userId",_460.username);
_461.onclick=function(){
var _462=this.getAttribute("userId");
sametime_invoke("chat",_462);
};
}
if(dojo.byId(_460.username+"ChatAction")!=null){
dojo.byId(_460.username+"ChatAction").style.display="inline";
}
if(dojo.byId(_460.username+"ChatActionMore")!=null){
dojo.byId(_460.username+"ChatActionMore").style.display="inline";
}
if(dojo.byId(_460.username+"CallActionMore")){
dojo.byId(_460.username+"CallActionMore").style.display="inline";
}
if(dojo.byId(_460.username+"vcardCommentElem")!=null){
if(_460.statusMessage!=null&&_460.statusMessage!=""){
dojo.byId(_460.username+"vcardCommentElem").style.display="block";
dojo.byId(_460.username+"vcardStStatusElem").innerHTML=_460.statusMessage;
}
}
}
},sametimeStart:function(_463,_464){
sametime_invoke(_463,_464);
},getElementEmail:function(elem){
var _466;
var _467=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",elem);
if(_467){
_466=this.getHcardAttributeValue("email",_467);
_466=_466.internet;
}else{
if(elem.nodeName.toLowerCase()=="a"&&elem.href.match(/^mailto:/)){
_466=elem.href.replace(/^mailto:/,"");
}
}
return _466;
},getElementUserId:function(elem){
var _469="";
var _46a=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",elem);
if(_46a){
_469=this.getHcardAttributeValue("x-lconn-userid",_46a);
}
return _469;
},getNameElement:function(elem){
if(elem.className!="vcard"){
elem=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",elem);
}
var _46c=lconn.core.bizCard.bizCardUtils.getElementsByClassName("fn",elem,1)[0];
if(!_46c){
_46c=lconn.core.bizCard.bizCardUtils.getElementsByClassName("n",elem,1)[0];
}
return _46c;
},requestReturnMiniBizCard:function(_46d,_46e,_46f,_470){
var _46e=_46d?lconn.profiles.bizCard.bizCard.convMethod.call(null,_46e):{};
var _471=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getMenuData(_46e,null,null,null,_471,null,true,(_470?true:false));
if(_46f.target!=null){
_46f.target.innerHTML=_471.buffer;
}else{
if(_46f.callbackfn!=null){
_46f.callbackfn(_471.buffer);
}
}
},renderMiniBizCard:function(_472,_473,_474){
this.init();
var _475={"target":_474,"callbackfn":_473};
var src=this.servletUrlByUserId.replace(/@@@USERID@@@/,_472);
this.requestor.request(src,10000,this.requestReturnMiniBizCard,_475,_472);
}};
}
if(!dojo._hasResource["lconn.profiles.bizCard.bizCardUI"]){
dojo._hasResource["lconn.profiles.bizCard.bizCardUI"]=true;
dojo.provide("lconn.profiles.bizCard.bizCardUI");
lconn.profiles.bizCard.bizCardUI={isDebug:false,isSlim:false,isExpandable:true,isEmailEnabled:true,getMenuData:function(_477,bidi,_479,_47a,_47b,_47c,_47d,_47e){
var _47f=dojo.cookie("card.popup.slim");
if(typeof (_47d)!="undefined"&&_47d!=null){
this.isSlim=_47d;
}else{
if(_47f!=null){
this.isSlim=(_47f==1);
}
}
if(typeof (_47e)!="undefined"){
this.isExpandable=_47e;
}
if(_477!=null){
this.isEmailEnabled=(_477.email!=null&&_477.email.internet!=null);
}else{
this.isEmailEnabled=false;
}
if(this.isDebug){
SemTagSvc.debug("slim? "+this.isSlim);
SemTagSvc.debug("expandable? "+this.isExpandable);
SemTagSvc.debug("email? "+this.isEmailEnabled);
}
var _480=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
_47b.write("<div class=\"lotusui\">");
_47b.write("<div id=\"cardDiv\" class=\"lotusVCard\" style=\"margin: 10px; position: static; opacity: 1;\">");
_47b.write("<a id=\"A11Yblank\" href=\"javascript:void(0);\" ><img src=\""+_480+"/nav/common/styles/images/blank.gif\" alt=\"\" /></a>");
_47b.write("<table id=\"cardTable\" class=\"lotusContainer\" cellspacing=\"0\">");
_47b.write("<tbody>");
_47b.write("<tr id=\"cardHeader\" "+((this.isSlim)?"style=\"display:none\"":"")+">"+"<td>"+"<table cellspacing=\"0\" width=\"100%\">");
if(_477!=null){
this.writeHeaderUIContent(_47b,_477,false);
}
_47b.write("</table>"+"</td></tr>");
_47b.write("<tr id=\"cardBody\">");
_47b.write("<td class=\"lotusDetails\" colspan=\"6\">");
this.writeBodyUIContent(_477,bidi,_479,_47a,_47b,_47c,_480);
_47b.write("</td>");
_47b.write("</tr>");
if(_477!=null){
this.writeFooterUIContent(_477,bidi,_479,_47a,_47b,_47c,_480);
}
_47b.write("</tbody></table></div></div>");
},writeHeaderUIContent:function(_481,_482,_483){
this.writeLinks(_481,_482,_483);
},writeBodyUIContent:function(_484,bidi,_486,_487,_488,_489,_48a){
this.getSubUIContent(_484,bidi,_486,_487,_488,_489,_48a);
},writeFooterUIContent:function(_48b,bidi,_48d,_48e,_48f,_490,_491){
_48f.write("<tr id=\"cardFooter\""+((this.isSlim)?"style=\"display:none\"":"")+">");
_48f.write("<td colspan=\"6\">");
if(_48b.X_inDirectory){
_48f.write("<div class=\"lotusPersonActions\">");
_48f.write("<ul class=\"lotusInlinelist\">");
var _492=(typeof (SemTagSvcConfig)!="undefined"&&SemTagSvcConfig.isBidiRTL);
if(_48b.X_bizCardActions.length>0){
_48f.write("<li class=\"lotusFirst\">"+this.getActionLink(_48b,0,true)+"</li>");
if(_492){
_48f.write("<li class=\"lotusFirst\"></li>");
}
}
if(this.isEmailEnabled&&_48b.X_bizCardSTAwareness){
if(_48b.X_STChatAction){
_48f.write("<li id=\""+_48b.email.internet+"ChatAction\" "+(_492?"class=\"lotusFirst\"":"")+" style=\"display:none;\">"+"<a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('chat', '"+_48b.email.internet+"');\">"+"<img src=\""+_491+"/nav/common/styles/images/iconChat.gif\" alt=\"\" /> "+generalrs.personCardChat+"</a>"+"</li>");
}
if(typeof (SemTagSvcConfig)!="undefined"&&SemTagSvcConfig.isBidiRTL){
_48f.write("<li class=\"lotusFirst\"></li>");
}
}
if(_48b.X_bizCardActions.length>1){
_48f.write("<li "+(!this.isEmailEnabled||_492?"class=\"lotusFirst\"":"")+">"+"<a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCardUI.displayMore('"+_48b.key+"MoreActionMenu',this.parentNode.parentNode);event.cancelBubble=true\">"+generalrs.personCardMoreActions+"<img src=\""+_491+"/nav/common/styles/images/btnDropDown.gif\" alt=\""+generalrs.personCardMoreActionsAltText+"\" title=\""+generalrs.personCardMoreActionsAltText+"\">"+"</a>"+"</li>");
}
_48f.write("</ul>"+"</div>");
if(_48b.X_bizCardActions.length>1||(this.isEmailEnabled&&_48b.X_bizCardSTAwareness)){
this.writeMoreActionsMenu(_48f,_48b,_491,false);
}
}
_48f.write("</td></tr>");
},getActionLink:function(_493,_494,_495){
var _496=_493.X_bizCardActions[_494];
var icon="";
if(_495&&typeof (_496.icon)!="undefined"){
icon="<img src=\""+_496.icon.href+"\" alt=\""+_496.icon.alt+"\" /> ";
}
return "<a class=\"email\" href=\""+_496.urlPattern+"\">"+icon+_496.label+"</a>";
},getSubUIContent:function(_498,bidi,_49a,_49b,_49c,_49d,_49e){
if(this.isExpandable){
this.writeExpandoUIContent(_49c,_49e);
}
if(_498!=null){
if(_498.X_bizCardShowPhoto){
_49c.write("<div class=\"lotusPhoto photo\"><img src=\""+_498.photo+"\" alt=\""+_498.fn+"\" title=\""+_498.fn+"\" height=\"59\" width=\"59\"></div>");
}
_49c.write("<div class=\"lotusPersonInfo\">");
if(_498.X_inDirectory!="true"){
var _49f=generalrs["label.personcard.noprofilemsg"];
_49c.write("<h3 id='noProfileMsg'>"+_49f+"</h3>");
}else{
_49c.write(_498.X_bizCardMainHtml);
}
_49c.write("</div><!--end lotusInfo-->");
var _4a0=((this.isEmailEnabled)?_498.email.internet:"");
_49c.write("<div id=\""+_4a0+"vcardCommentElem\" class=\"lotusComment\" style=\"display: none;\">");
_49c.write("<div class=\"lotusCommentHeader\">&nbsp;</div><!--end comment header-->");
_49c.write("<div class=\"lotusCommentBody\">\t");
if(_4a0!=""&&_498.X_bizCardSTStatusMsg){
_49c.write("<p>Sametime: <span id=\""+_4a0+"vcardStStatusElem\"></span></p>");
}
_49c.write("</div><!--end commentBody-->");
_49c.write("</div><!--end comment-->");
}else{
var _49f=dojo.i18n.getLocalization("lc_default")["label.personcard.noprofilemsg"];
_49c.write("<h3 id='noProfileMsg'>"+_49f+"</h3>");
}
},writeExpandoUIContent:function(_4a1,_4a2){
_4a1.write("<div class=\"lotusRight\">");
_4a1.write("<a onclick=\"lconn.profiles.bizCard.bizCardUI.toggleSlimCard(this,'"+_4a2+"');"+"event.cancelBubble=true;\""+"href=\"javascript:void(0);\">");
_4a1.write(" <img id=\"slimTwisty\" src=\""+_4a2+"/nav/common/styles/images/"+(this.isSlim?"iconShow.gif":"iconHide.gif")+"\" alt=\"\" title=\"\"/>");
_4a1.write("</a>");
_4a1.write("</div>");
},getInlineMarkup:function(_4a3,bidi,_4a5){
var _4a6=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
var _4a7=_4a5;
if(_4a3!=null){
var _4a8="";
if(this.isEmailEnabled){
_4a8=_4a3.email.internet;
}
_4a7.write("<div class=\"lotusui\">");
_4a7.write("<div id=\""+_4a3.key+"\" class=\"vcard lotusVCard lotusInlineVCard\" style=\"position:static;margin:10px\">");
_4a7.write("  <div class=\"lotusContainer\">");
_4a7.write("    <div id=\""+_4a3.key+"_Pivot\" class=\"lotusPivotNav\">");
_4a7.write("      <div class=\"lotusPivotNavToggle\">");
_4a7.write("        <a href=\"javascript:void(0);\" title=\"\" onclick=\"lconn.core.bizCard.bizCardUtils.toggleInlineCard('"+_4a3.key+"')\">"+"&nbsp;"+"</a>");
_4a7.write("      </div>");
if(_4a3.X_bizCardShowPhoto){
_4a7.write("      <div class=\"lotusPhoto photo\">");
_4a7.write("        <img id=\"photo\" src=\""+_4a3.photo+"\" alt=\""+_4a3.fn+"\" title=\""+_4a3.fn+"\" height=\"35\" width=\"35\" />");
_4a7.write("      </div>");
}
_4a7.write("      <div class=\"lotusPersonInfo\">");
_4a7.write("        <h2 class=\"fn\" id=\""+_4a8+"vcardNameElem\" class=\"fn\">"+_4a3.fn+"</h2>");
_4a7.write("      </div>");
_4a7.write("    </div>");
_4a7.write("    <div id=\""+_4a3.key+"_Details\" class=\"lotusInlineVCardDetails\">");
if(_4a3.X_bizCardActions.length>0){
_4a7.write("<div class=\"lotusEmail\">");
_4a7.write(this.getActionLink(_4a3,0,true));
_4a7.write("</div>");
}
this.writeLinks(_4a7,_4a3,true);
if(_4a3.X_bizCardActions.length>1){
_4a7.write("<div class=\"lotusPersonActions\">");
_4a7.write("  <ul class=\"lotusInlinelist\">");
_4a7.write("    <li class=\"lotusFirst\">");
_4a7.write("      <a href=\"javascript:;\"");
_4a7.write("        onclick=\"lconn.profiles.bizCard.bizCardUI.displayMore('"+_4a3.key+"InlineMoreActionMenu',this.parentNode.parentNode);event.cancelBubble=true\">");
_4a7.write(generalrs.personCardMoreActions);
_4a7.write("        <img src=\""+_4a6+"/nav/common/styles/images/btnDropDown.gif\" alt=\""+generalrs.personCardMoreActionsAltText+"\"");
_4a7.write("          title=\""+generalrs.personCardMoreActionsAltText+"\" />");
_4a7.write("      </a>");
_4a7.write("    </li>");
_4a7.write("  </ul>");
_4a7.write("</div>");
this.writeMoreActionsMenu(_4a7,_4a3,_4a6,true);
}
_4a7.write("    </div>");
_4a7.write("  </div>");
_4a7.write("</div>");
_4a7.write("</div>");
}else{
_4a7.write("<div class=\"lotusui\">");
_4a7.write("<div class=\"vcard lotusVCard lotusInlineVCard\" style=\"position:static;margin:10px\">");
_4a7.write("  <div class=\"lotusContainer\">");
_4a7.write("    </div>");
_4a7.write("    </div>");
_4a7.write("    </div>");
}
},writeLinks:function(_4a9,_4aa,_4ab){
try{
var _4ac=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
if(!_4aa.X_bizCardServiceLinks){
_4aa.X_bizCardServiceLinks=[];
}
if(!_4aa.X_concatSemPersonSvc&&SemTagPerson.services&&SemTagPerson.services.length>0){
_4aa.X_bizCardServiceLinks=_4aa.X_bizCardServiceLinks.concat(SemTagPerson.services);
_4aa.X_concatSemPersonSvc=true;
}
if(_4aa.X_bizCardServiceLinks&&_4aa.X_bizCardServiceLinks.length>0){
_4a9.write((_4ab)?"<ul id=\"appLinks1\" class=\"lotusAppLinks\">":"<tr id=\"appLinks1\" class=\"lotusAppLinks\">");
var _4ad=false;
var _4ae=false;
for(var k=0;k<_4aa.X_bizCardServiceLinks.length;k++){
var _4b0=false;
var _4b1=_4aa.X_bizCardServiceLinks[k];
if(_4b1==null||_4b1.name==null||_4b1.name==""){
continue;
}
var _4b2="";
var _4b3=false;
if(typeof (_4b1.href)!="undefined"&&_4b1.href!=null){
_4b2=_4b1.href;
}else{
if(typeof (_4b1.url_pattern)!="undefined"&&_4b1.url_pattern!=null&&_4b1.url_pattern!=""){
_4b2=_4b1.url_pattern;
if(_4b2.indexOf("{email}")!=-1&&(_4aa.email!=null&&_4aa.email.internet!=null)){
_4b2=_4b2.replace(/{email}/g,_4aa.email.internet);
}
if(_4b2.indexOf("{uid}")!=-1&&(_4aa.uid!=null)){
_4b2=_4b2.replace(/{uid}/g,_4aa.uid);
}
if(_4b2.indexOf("{key}")!=-1&&(_4aa.key!=null)){
_4b2=_4b2.replace(/{key}/g,_4aa.key);
}
if(_4b2.indexOf("{fn}")!=-1&&(_4aa.fn!=null)){
_4b2=_4b2.replace(/{fn}/g,_4aa.fn);
}
if(_4b2.indexOf("{displayName}")!=-1&&(_4aa.fn!=null)){
_4b2=_4b2.replace(/{displayName}/g,_4aa.fn);
}
if(_4b2.indexOf("{workPhoneNumber}")!=-1&&(_4aa.adr!=null&&_4aa.adr.work!=null)){
_4b2=_4b2.replace(/{workPhoneNumber}/g,_4aa.adr.work);
}
if(_4b2.indexOf("{userid}")!=-1&&(_4aa.X_lconn_userid!=null)){
_4b2=_4b2.replace(/{userid}/g,_4aa.X_lconn_userid);
}
if(typeof (_4b1.location)!="undefined"&&_4b1.location!=null){
_4b2=_4b1.location+_4b2;
}
}else{
continue;
}
}
if((_4ab==false)&&k==4&&_4aa.X_bizCardServiceLinks.length>=6&&!_4ad){
_4a9.write("<td>"+"<a onclick=\"lconn.profiles.bizCard.bizCardUI.toggleMoreApps('appLinks2',this); event.cancelBubble=true;\""+" href=\"javascript:void(0);\" "+" class=\"lotusMore lotusMoreExpanded\">&nbsp;"+"<span class=\"lotusAltText\">+</span>"+"</a>"+"</td>");
_4a9.write("</tr>");
_4a9.write("<tr id=\"appLinks2\" class=\"lotusAppLinks\">");
_4ad=true;
_4ae=true;
}
_4a9.write((_4ab)?"<li ":"<td ");
if(k==0||_4ae==true){
_4a9.write("class=\"lotusFirst\"");
}
_4ae=false;
var _4b4="";
if(typeof (_4b1.js_eval)!="undefined"&&_4b1.js_eval!=null&&_4b1.js_eval.indexOf("generalrs.")==0){
var key=_4b1.js_eval.substr("generalrs.".length);
if(typeof (generalrs[key])=="undefined"){
key=key.replace(/\_/g,".");
}
_4b4=generalrs[key];
}else{
if(_4b1.js_eval){
try{
if(_4aa.X_allowEvalLabel){
_4b4=dojo.eval(_4b1.js_eval);
}else{
_4b4=new String(_4b1.js_eval);
}
}
catch(exception2){
_4b4="!error.eval!";
}
}else{
if(_4b1.label){
_4b4=new String(_4b1.label);
}else{
_4b4="???";
}
}
}
if(_4b1.name=="blogs"&&_4aa.X_blogUrl!=null&&_4aa.X_blogUrl!=""){
_4a9.write("><a class=\"url\" href=\""+_4aa.X_blogUrl+"\">"+_4b4+"</a>");
}else{
_4a9.write("><a class=\"url\" href=\""+_4b2+"\">"+_4b4+"</a>");
}
_4a9.write((_4ab)?"</li>":"</td>");
}
if(_4ad){
_4a9.write("<td colspan=\""+(11-_4aa.X_bizCardServiceLinks.length)+"\">&nbsp;</td>");
}
_4a9.write((_4ab)?"</ul>":"</tr>");
}
}
catch(exception2){
alert(exception2.message);
}
},writeMoreActionsMenu:function(_4b6,_4b7,_4b8,_4b9){
try{
_4b6.write("<ul class=\"lotusActionMenu\" id=\""+_4b7.key);
if(_4b9){
_4b6.write("Inline");
}
_4b6.write("MoreActionMenu\">");
if(_4b7.X_bizCardActions.length>0&&!_4b9){
_4b6.write("<li class=\""+_4b7.X_bizCardActions[0].liClass+"\">"+this.getActionLink(_4b7,0,false)+"</li>");
}
if(this.isEmailEnabled&&_4b7.X_bizCardSTAwareness&&_4b7.email.internet!=""){
if(_4b7.X_STChatAction){
_4b6.write("<li id=\""+_4b7.email.internet+"ChatActionMore\" style=\"display:none;\"><a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('chat', '"+_4b7.email.internet+"');\"> "+generalrs.personCardChat+" </a></li>");
}
if(_4b7.X_STCallAction){
_4b6.write("<li id=\""+_4b7.email.internet+"CallActionMore\" style=\"display:none;\"><a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('call', '"+_4b7.email.internet+"');\"> "+generalrs.personCardCall+" </a></li>");
}
}
if(_4b7.X_bizCardActions.length>1){
for(var i=1;i<_4b7.X_bizCardActions.length;i++){
_4b6.write("<li class=\""+_4b7.X_bizCardActions[i].liClass+"\">"+this.getActionLink(_4b7,i,false)+"</li>");
}
}
_4b6.write("</ul>");
}
catch(exception2){
alert(exception2.message);
}
},displayMore:function(_4bb,_4bc){
_4bc.style.display="none";
document.getElementById(_4bb).style.display="block";
},convertQuickrEmail:function(_4bd){
_4bd=_4bd.replace(/@/g,"_at_");
_4bd=_4bd.replace(/\./g,"_");
return _4bd;
},toggleMoreApps:function(pDiv,_4bf){
var _4c0=document.getElementById(pDiv);
if(_4bf.className.indexOf("lotusMoreExpanded")!=-1){
_4bf.className="lotusMore";
_4c0.style.display="none";
}else{
_4bf.className+=" lotusMoreExpanded";
_4c0.style.display="";
}
},toggleSlimCard:function(_4c1,_4c2){
var _4c3=document.getElementById("slimTwisty");
if(_4c3.src.indexOf("iconHide.gif")!=-1){
this.slimCard(_4c2);
dojo.cookie("card.popup.slim",1);
}else{
this.expandCard(_4c2);
dojo.cookie("card.popup.slim",0);
}
},slimCard:function(_4c4){
var _4c5=document.getElementById("slimTwisty");
var _4c6=document.getElementById("cardHeader");
var _4c7=document.getElementById("cardFooter");
if(_4c5){
_4c5.src=_4c4+"/nav/common/styles/images/iconShow.gif";
}
_4c6.style.display="none";
_4c7.style.display="none";
},expandCard:function(_4c8){
var _4c9=document.getElementById("slimTwisty");
var _4ca=document.getElementById("cardHeader");
var _4cb=document.getElementById("cardFooter");
if(_4c9){
_4c9.src=_4c8+"/nav/common/styles/images/iconHide.gif";
}
_4ca.style.display="";
_4cb.style.display="";
},resizeObj:function(obj,_4cd,_4ce){
if(typeof (obj.style.height)=="undefined"||obj.style.height<=0){
obj.style.height=obj.height;
}
if(typeof (obj.style.width)=="undefined"||obj.style.width<=0){
obj.style.width=obj.width;
}
obj.style.height=(_4cd)?obj.style.height=_4ce+"%":obj.style.height;
obj.style.width=(_4cd)?obj.style.width=_4ce+"%":obj.style.width;
},openVCardDialog:function(key,_4d0){
this._createVCardDialog(key,_4d0);
},_createVCardDialog:function(key,_4d2){
window.open(this._getVCardDownloadUrl(key,_4d2),"vcarddl","status=0,toolbar=0,scrollbars=0,resizable=0,height=350,width=550");
},_getVCardDownloadUrl:function(key,_4d4){
var base=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
var lang=lconn.core.bizCard.bizCardUtils.getLangParam();
return base+"/html/exportVCardDialog.do?key="+key+"&lastMod="+_4d4+"&lang="+lang;
}};
}
if(!dojo._hasResource["lconn.core.TextBox"]){
dojo._hasResource["lconn.core.TextBox"]=true;
dojo.provide("lconn.core.TextBox");
dojo.declare("lconn.core.TextBox",[dijit._Widget,dijit._Templated],{shadowText:"",shadowTextOn:true,name:"",textBoxClass:"",templateString:"<span><input type=\"text\" class=\"${textBoxClass}\" dojoAttachPoint=\"textbox\" /><input type=\"hidden\" value=\"\" dojoAttachPoint=\"hiddenbox\" /></span>",postCreate:function(){
this.textbox.onfocus=dojo.hitch(this,"textBoxFocus");
this.textbox.onblur=dojo.hitch(this,"textBoxBlur");
this.textbox.name=this.id+"_textbox";
if(this.value){
this.textbox.value=this.value;
this.hiddenbox.value=this.value;
this.shadowTextOn=false;
}else{
dojo.addClass(this.textbox,"lotusInactive");
this.textbox.value=this.shadowText;
}
if(this.name){
this.hiddenbox.name=this.name;
}
if(this.title){
this.textbox.title=this.title;
}
},textBoxBlur:function(){
if(this.textbox.value.length==0){
dojo.addClass(this.textbox,"lotusInactive");
this.shadowTextOn=true;
this.textbox.value=this.shadowText;
this.hiddenbox.value="";
}else{
this.hiddenbox.value=this.textbox.value;
this.shadowTextOn=false;
}
},textBoxFocus:function(){
if(this.shadowTextOn){
this.shadowTextOn=false;
this.textbox.value="";
this.hiddenbox.value="";
dojo.removeClass(this.textbox,"lotusInactive");
this.textbox.focus();
}
},setHiddenValue:function(){
if(this.shadowTextOn){
this.hiddenbox.value="";
}else{
this.hiddenbox.value=this.textbox.value;
}
},focus:function(){
this.textbox.focus();
},getValue:function(){
return this.hiddenbox.value;
}});
}
if(!dojo._hasResource["lconn.core.SearchBar"]){
dojo._hasResource["lconn.core.SearchBar"]=true;
dojo.provide("lconn.core.SearchBar");
dojo.declare("lconn.core.SearchBar",[dijit._Widget,dijit._Templated],{templateString:["<div class=\"lotusSearch\"><form dojoAttachPoint=\"formNode\" method=\"POST\" dojoAttachEvent=\"onsubmit:formSubmitted\">","<input name=\"scope\" value=\"\" dojoAttachPoint=\"scopeInputNode\" type=\"hidden\" />","<input name=\"component\" value=\"\" dojoAttachPoint=\"featureInputNode\" type=\"hidden\" />","<table class=\"lotusLayout\" role=\"presentation\" summary=\"\"><tbody><tr>","<td><span id=\"${id}searchLbl\" class=\"lotusHidden\">${lblSelectScope}</span>","<a href=\"javascript:;\" title=\"${lblSelectScope}\" aria-labelledby=\"${id}searchLbl\" aria-describedby=\"${id}searchOpt\" wairole=\"menu\" role=\"menu\" class=\"lotusScope\" dojoAttachPoint=\"scopeNode\" dojoAttachEvent=\"onclick:openMenu\">","<img class=\"lotusIcon\" alt=\"\" src=\"${_blankGif}\" dojoAttachPoint=\"currScopeIconNode\" role=\"presentation\"/>","<span id=\"${id}searchOpt\" dojoAttachPoint=\"currScopeLabelNode\"> </span>","<span class=\"lotusAltText\" role=\"presentation\">&#9660;</span>","</a></td>","<td>","<label class=\"lotusHidden\" for=\"${id}searchInput\">${lblSearch}</label>","<input id=\"${id}searchInput\" dojoAttachPoint=\"textNode\" class=\"lotusText lotusInactive\" type=\"text\" name=\"query\" title=\"${lblSearch}\"/>","</td>","<td>","<span class=\"lotusBtnImg\">","<input dojoAttachPoint=\"onclick:submitForm\" class=\"lotusSearchButton\" type=\"image\" src=\"${_blankGif}\" alt=\"${lblSearch}\"/>","<a href=\"javascript:;\" alt=\"${lblSearch}\" dojoAttachEvent=\"onclick:submitForm\" class=\"lotusAltText\">${lblSearch}</a>","</span>","</td>","</tr></tbody></table>","</form></div>"].join(""),localOptions:[],globalOptions:[],localAction:"",searchContextPath:"",lblSearch:"",lblSelectScope:"",lblAllConnections:"",lblAdvanced:"",menuItems:[],featureIcons:{allareas:"lconnSprite lconnSprite-iconConnections16",activities:"lconnSprite lconnSprite-iconActivities16",blogs:"lconnSprite lconnSprite-iconBlogs16",communities:"lconnSprite lconnSprite-iconCommunities16",dogear:"lconnSprite lconnSprite-iconDogear16",files:"lconnSprite lconnSprite-iconFiles16",profiles:"lconnSprite lconnSprite-iconProfiles16",wikis:"lconnSprite lconnSprite-iconWikis16"},selectedOption:null,textBox:null,globalAction:"",advancedSearchUrl:"",SEARCH_ADVANCED:"searchAdvancedIdentifier",SEARCH_POST_PATH:"/web/search",SEARCH_ADVANCED_PATH:"/web/jsp/advancedSearch.jsp",postCreate:function(){
if(this.searchContextPath){
this.globalAction=this.searchContextPath+this.SEARCH_POST_PATH;
this.advancedSearchUrl=this.searchContextPath+this.SEARCH_ADVANCED_PATH;
}
this.showDefaultOption();
this.textBox=new lconn.core.TextBox({shadowText:this.lblSearch,textBoxClass:"lotusText",name:"query",title:this.lblSearch},this.textNode);
if(this.globalOptions&&this.globalOptions.length>0){
this.globalOptions.splice(0,0,{label:this.lblAllConnections,feature:"allareas",iconClass:"lconnSprite lconnSprite-iconConnections16"});
}
},changeLocalOptions:function(_4d7){
this.localOptions=_4d7;
if(this.scopeMenu){
this.scopeMenu.destroyRecursive();
this.scopeMenu=null;
this.menuItems=[];
}
this.showDefaultOption();
},showDefaultOption:function(){
for(var i in this.localOptions){
if(this.localOptions[i].defaultOption){
this.selectOption(this.localOptions[i],false);
return;
}
}
if(this.globalOptions&&this.globalOptions.length>0){
this.selectOption(this.globalOptions[0],false);
}
},getScopeMenu:function(){
if(!this.scopeMenu){
this.scopeMenu=new dijit.Menu({onItemClick:dojo.hitch(this,"selectOption")});
this.connect(this.scopeMenu,"_onBlur","closeMenu");
this.menuItems=[];
var _4d9=this.localOptions;
for(var i in _4d9){
_4d9[i].parentMenu=this.scopeMenu;
this.menuItems.push(new dijit.MenuItem(_4d9[i]));
}
if(this.globalOptions.length>0){
this.menuItems.push(new dijit.MenuSeparator({parentMenu:this.scopeMenu}));
}
_4d9=this.globalOptions;
for(var i in _4d9){
if(_4d9[i].feature&&this.featureIcons[_4d9[i].feature]){
_4d9[i].parentMenu=this.scopeMenu;
_4d9[i].iconClass=this.featureIcons[_4d9[i].feature];
this.menuItems.push(new dijit.MenuItem(_4d9[i]));
}
}
if(this.globalOptions.length>0){
this.menuItems.push(new dijit.MenuSeparator({parentMenu:this.scopeMenu}));
this.menuItems.push(new dijit.MenuItem({label:this.lblAdvanced,feature:this.SEARCH_ADVANCED}));
}
for(var i in this.menuItems){
this.scopeMenu.addChild(this.menuItems[i]);
}
}
return this.scopeMenu;
},openMenu:function(evt){
var menu=this.getScopeMenu();
dijit.popup.open({popup:menu,around:this.scopeNode,orient:(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),onExecute:function(){
},onCancel:dojo.hitch(this,function(){
dijit.popup.close(menu);
dijit.focus(this.scopeNode);
}),onClose:function(){
}});
menu.focus();
dojo.stopEvent(evt);
},closeMenu:function(){
if(this.scopeMenu){
dijit.popup.close(this.scopeMenu);
}
},onSelectOption:function(item,evt){
this.selectOption(item,true);
},selectOption:function(item,_4e0){
this.closeMenu();
this.selectedOption=item;
if(item.feature&&item.feature==this.SEARCH_ADVANCED){
location.href=this.advancedSearchUrl;
return;
}
this.currScopeLabelNode.innerHTML=item.label;
this.currScopeIconNode.className="lotusIcon";
if(item.iconClass){
dojo.addClass(this.currScopeIconNode,item.iconClass);
}
if(item.scope){
this.scopeInputNode.value=item.scope;
this.featureInputNode.value="";
}else{
if(item.feature){
if(item.feature=="allareas"){
this.featureInputNode.value="";
}else{
this.featureInputNode.value=item.feature;
}
this.scopeInputNode.value="";
}
}
if(item.action){
this.formNode.action=item.action;
}else{
if(item.feature){
this.formNode.action=this.globalAction;
}else{
this.formNode.action=this.localAction;
}
}
if(_4e0){
this.textBox.focus();
}
},submitForm:function(evt){
this.textBox.setHiddenValue();
if(this.onSubmit()){
this.formNode.submit();
}
if(evt){
dojo.stopEvent(evt);
}
return false;
},getValue:function(){
return this.textBox.getValue();
},formSubmitted:function(evt){
this.submitForm();
dojo.stopEvent(evt);
},onSubmit:function(){
}});
}
dojo.i18n._preloadLocalizations("dojo.nls.blogs",["da","es","hu","de","pt-br","pl","pt","ca","sv","ar","pt-pt","fi","zh","ru","xx","fr","zh-tw","it","th","cs","he","nl","el","no","ko","tr","en","ROOT","ja"]);

