dojo.registerModulePath("com.ibm.ajax", "../com.ibm.ajax");

;if(!dojo._hasResource["com.ibm.ajax.auth"]){
dojo._hasResource["com.ibm.ajax.auth"]=true;
dojo.provide("com.ibm.ajax.auth");
com.ibm.ajax.auth={contentTypeRegex:/^text\/html/,ignoredDojoErrors:["cancel","timeout"],nonHtmlTypes:["xml","json","json-comment-optional"],checkFromCaller:true,checkByContentType:true,checkByStatusCode:true,checkAllStatusCodes:false,checkByXLConnAuth:false,authenticationChecks:[],interceptDojoXhr:function(_1){
if(this._intercepted){
return;
}
this._intercepted=true;
if(_1){
this.isUrlSecure=_1;
}
dojo.xhr=dojo.hitch(dojo,this.xhrIntercept,this,dojo.xhr);
if(dojo.getObject("dojo.io.iframe")){
dojo.io.iframe.send=dojo.hitch(dojo.io.iframe,this.ioIntercept,this,dojo.io.iframe.send);
}
},prepareSecure:function(_2,_3,_4,_5){
if(_2["com.ibm.ajax.auth.prepareSecureCalled"]){
return _2;
}else{
_2["com.ibm.ajax.auth.prepareSecureCalled"]=true;
}
if(!_5){
var h=_2.headers=_2.headers||{};
var p=h["Pragma"];
if(!dojo.isArray(p)){
p=h["Pragma"]=(p)?[p]:[];
}
p.push("WWW-Authenticate=XHR");
}
_2._handle=_2.handle;
_2.handle=dojo.partial(this.testAuthenticationHandler,this,_3,_4);
return _2;
},setAuthenticationHandler:function(_6){
this.authenticationHandler=_6;
},setDefaultAuthenticationTests:function(_7,_8,_9){
this.checkFromCaller=_7;
this.checkByContentType=_8;
this.checkByStatusCode=_9;
},addAuthenticationCheck:function(_a){
if(_a){
this.authenticationChecks.push(_a);
}
},setAuthenticationTest:function(_b){
this.isAuthenticationRequired=dojo.partial(_b,this);
},isAuthenticationRequired:function(_c,_d){
if(this.isPossibleLoginRedirect(_c,_d)){
return true;
}
for(var i=0;i<this.authenticationChecks.length;i++){
if(this.authenticationChecks[i](this,_c,_d)){
_d._authOutcome="Custom authentication check #"+(i+1)+" indicated login necessary";
return true;
}
}
return false;
},isPossibleLoginRedirect:function(_e,_f){
if(_f.xhr&&(!_e||dojo.indexOf(this.ignoredDojoErrors,_e.dojoType)==-1)){
var _10;
try{
_10=_f.xhr.status;
}
catch(e){
}
var _11=_f.args.expectedContentType||_f.args.handleAs;
var _12=dojo.indexOf(this.nonHtmlTypes,_11)!=-1;
if(this.checkByStatusCode&&(_12||this.checkAllStatusCodes)){
if(_10==302){
_f._authOutcome="Status code was 302";
return true;
}
if(_10==401){
_f._authOutcome="Status code was 401";
return true;
}
if(dojo.isIE&&(_10==0||_10=="unknown")){
_f._authOutcome="Status code was 0 or \"unknown\"";
return true;
}
}
if(this.checkByContentType&&_12&&this.contentTypeRegex.exec(_f.xhr.getResponseHeader("Content-Type"))&&_10>=200&&_10<300&&_10!=204){
_f._authOutcome="Content-Type was HTML and status code indicated success";
return true;
}
try{
if(this.checkByXLConnAuth&&_f&&_f.xhr){
var h=_f.xhr.getResponseHeader("X-LConn-Auth");
if(h=="true"){
return false;
}
if(h=="false"){
return true;
}
}
}
catch(e){
}
}
return false;
},testAuthenticationHandler:function(_13,_14,_15,_16,_17){
if(_17.xhr&&_17.xhr.responseText){
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=en#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=en#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=es#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=es#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=ja#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=ja#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=ru#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=ru#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=zh#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=zh#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
if(_17.xhr.responseText.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=pt_BR#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks";
return;
}
}
var _18=dojo._toArray(arguments).slice(3);
var _19=false;
if(_13.checkFromCaller&&typeof _14=="function"&&_14(_16,_17)){
_17._authOutcome="isAuthRequired returned true";
_19=true;
}
_19=_19||_13.isAuthenticationRequired(_16,_17);
if(_19){
_13.authenticationHandler(_16,_17,_15);
_18[0]=new Error("xhr unauthenticated");
_18[0].dojoType="unauthenticated";
}
if(_17.args._handle){
return _17.args._handle.apply(this,_18);
}
return _16;
},authenticationHandler:function(){
console.log("auth::authenticationHandler DEBUG authentication was required");
},xhrIntercept:function(_1a,f,_1b,_1c){
var _1d=dojo._toArray(arguments).slice(2);
var p=_1c["auth"]||{};
var _1e=p.secured;
if(_1e||(_1e!=false&&_1a.isUrlSecure(_1c.url))){
_1d[1]=_1a.prepareSecure(_1c,p.isAuthRequired,p.onLogin,p.sendXhrAuthHeader===false);
}
return f.apply(this,_1d);
},ioIntercept:function(_1f,f,_20){
var _21=dojo._toArray(arguments).slice(2);
var p=_20["auth"]||{};
var _22=p.secured;
if(_22||(_22!=false&&_1f.isUrlSecure(_20.url))){
_21[0]=_1f.prepareSecure(_20,p.isAuthRequired,p.onLogin,p.sendXhrAuthHeader===false);
}
return f.apply(this,_21);
},isUrlSecure:function(url){
return false;
}};
}

dojo.registerModulePath("com.ibm.mm", "../com.ibm.mm");

;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(_1,_2){
if(_2.processEnclosedTags){
return dojo.query(_2.match,_1);
}else{
var a=dojo.query(_2.match+" "+_2.match,_1);
var b=dojo.query(_2.match,_1);
var _3,_4;
while(a.length>0){
_3=a[0];
_4=0;
while(_4<b.length){
if(_3==b[_4]){
a.splice(0,1);
b.splice(_4,1);
break;
}else{
_4++;
}
}
}
return b;
}
},onTagChanged:function(_5,_6,_7,_8){
var _9=null,_a=null,_b=null;
for(var _c=0;_c<this._tagTypes.length;_c++){
_9=this._tagTypes[_c];
this._processTypeTag(_5,_9,_6,_7,_8,true);
}
},onTagContentChanged:function(_d,_e,_f,_10){
var tag=null,_11=null,_12=null;
for(var _13=0;_13<this._tagTypes.length;_13++){
tag=this._tagTypes[_13];
this._processTypeTag(_d,tag,_e,_f,_10,false);
}
},_processTypeTag:function(_14,tag,_15,_16,_17,_18){
var _19=[];
if(_18&&this._checkRoot(_14,tag)){
_19[0]=_14;
}
_19=_19.concat(this._getNodes(_14,tag));
var _1a=[];
_1a=_1a.concat(_19);
if(_1a.length>0){
if(tag.loaded==null){
this._loadTagHandler(tag);
}
var _1b=[];
if(dojo.isFunction(_16)){
try{
_16(_14,_1a);
}
catch(error){
console.debug(error);
}
}
for(var _1c=0;_1c<_19.length;_1c++){
try{
tag.tagHandler.processTag(_19[_1c]);
}
catch(error){
_1b[_1b.length]=error;
if(_15){
break;
}
}
}
if(dojo.isFunction(_17)){
try{
_17(_14,_1a,_1b);
}
catch(error){
console.debug(error);
}
}
}
},_checkRoot:function(_1d,tag){
var _1e=false;
if(_1d!=null&&_1d.nodeType){
var _1f=_1d.cloneNode(false);
var _20=document.createElement("div");
_20.appendChild(_1f);
var _21=this._getNodes(_20,tag);
if(_21!=null&&_21.length>0){
_1e=true;
}
delete _1f;
delete _20;
delete _21;
}
return _1e;
},_loadTags:function(){
if(this._tagTypes==null){
var _22=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(_23){
_22._tagTypes=dojo.fromJson(_23);
},error:function(_24){
console.dir(_24);
}});
}
}
},onAddConfigEntry:function(_25){
},onRemoveConfigEntry:function(_26){
},parseDom:function(_27,_28){
dojo.publish(this.tagChanged,[_28]);
},_loadTagHandler:function(tag){
dojo.registerModulePath(tag.module,tag.path);
dojo.eval("dojo.r"+"equire('"+tag.baseClass+"')");
var _29="{create:function(){return new "+tag.baseClass+"()}}";
var _2a=dojo.fromJson(_29);
tag.tagHandler=_2a.create();
tag.loaded=true;
}});
}

dojo.registerModulePath("dijit", "../dijit");

;if(!dojo._hasResource["dijit._base.manager"]){
dojo._hasResource["dijit._base.manager"]=true;
dojo.provide("dijit._base.manager");
dojo.declare("dijit.WidgetSet",null,{constructor:function(){
this._hash={};
this.length=0;
},add:function(_1){
if(this._hash[_1.id]){
throw new Error("Tried to register widget with id=="+_1.id+" but that id is already registered");
}
this._hash[_1.id]=_1;
this.length++;
},remove:function(id){
if(this._hash[id]){
delete this._hash[id];
this.length--;
}
},forEach:function(_2,_3){
_3=_3||dojo.global;
var i=0,id;
for(id in this._hash){
_2.call(_3,this._hash[id],i++,this._hash);
}
return this;
},filter:function(_4,_5){
_5=_5||dojo.global;
var _6=new dijit.WidgetSet(),i=0,id;
for(id in this._hash){
var w=this._hash[id];
if(_4.call(_5,w,i++,this._hash)){
_6.add(w);
}
}
return _6;
},byId:function(id){
return this._hash[id];
},byClass:function(_7){
var _8=new dijit.WidgetSet(),id,_9;
for(id in this._hash){
_9=this._hash[id];
if(_9.declaredClass==_7){
_8.add(_9);
}
}
return _8;
},toArray:function(){
var ar=[];
for(var id in this._hash){
ar.push(this._hash[id]);
}
return ar;
},map:function(_a,_b){
return dojo.map(this.toArray(),_a,_b);
},every:function(_c,_d){
_d=_d||dojo.global;
var x=0,i;
for(i in this._hash){
if(!_c.call(_d,this._hash[i],x++,this._hash)){
return false;
}
}
return true;
},some:function(_e,_f){
_f=_f||dojo.global;
var x=0,i;
for(i in this._hash){
if(_e.call(_f,this._hash[i],x++,this._hash)){
return true;
}
}
return false;
}});
dijit.registry=new dijit.WidgetSet();
dijit._widgetTypeCtr={};
dijit.getUniqueId=function(_10){
var id;
do{
id=_10+"_"+(_10 in dijit._widgetTypeCtr?++dijit._widgetTypeCtr[_10]:dijit._widgetTypeCtr[_10]=0);
}while(dijit.byId(id));
return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;
};
dijit.findWidgets=function(_11){
var _12=[];
function _13(_14){
for(var _15=_14.firstChild;_15;_15=_15.nextSibling){
if(_15.nodeType==1){
var _16=_15.getAttribute("widgetId");
if(_16){
var _17=dijit.byId(_16);
_12.push(_17);
}else{
_13(_15);
}
}
}
};
_13(_11);
return _12;
};
dijit._destroyAll=function(){
dijit._curFocus=null;
dijit._prevFocus=null;
dijit._activeStack=[];
dojo.forEach(dijit.findWidgets(dojo.body()),function(_18){
if(!_18._destroyed){
if(_18.destroyRecursive){
_18.destroyRecursive();
}else{
if(_18.destroy){
_18.destroy();
}
}
}
});
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit._destroyAll();
});
}
dijit.byId=function(id){
return typeof id=="string"?dijit.registry._hash[id]:id;
};
dijit.byNode=function(_19){
return dijit.registry.byId(_19.getAttribute("widgetId"));
};
dijit.getEnclosingWidget=function(_1a){
while(_1a){
var id=_1a.getAttribute&&_1a.getAttribute("widgetId");
if(id){
return dijit.byId(id);
}
_1a=_1a.parentNode;
}
return null;
};
dijit._isElementShown=function(_1b){
var _1c=dojo.style(_1b);
return (_1c.visibility!="hidden")&&(_1c.visibility!="collapsed")&&(_1c.display!="none")&&(dojo.attr(_1b,"type")!="hidden");
};
dijit.isTabNavigable=function(_1d){
if(dojo.attr(_1d,"disabled")){
return false;
}else{
if(dojo.hasAttr(_1d,"tabIndex")){
return dojo.attr(_1d,"tabIndex")>=0;
}else{
switch(_1d.nodeName.toLowerCase()){
case "a":
return dojo.hasAttr(_1d,"href");
case "area":
case "button":
case "input":
case "object":
case "select":
case "textarea":
return true;
case "iframe":
if(dojo.isMoz){
return _1d.contentDocument.designMode=="on";
}else{
if(dojo.isWebKit){
var doc=_1d.contentDocument,_1e=doc&&doc.body;
return _1e&&_1e.contentEditable=="true";
}else{
try{
doc=_1d.contentWindow.document;
_1e=doc&&doc.body;
return _1e&&_1e.firstChild&&_1e.firstChild.contentEditable=="true";
}
catch(e){
return false;
}
}
}
default:
return _1d.contentEditable=="true";
}
}
}
};
dijit._getTabNavigable=function(_1f){
var _20,_21,_22,_23,_24,_25;
var _26=function(_27){
dojo.query("> *",_27).forEach(function(_28){
var _29=dijit._isElementShown(_28);
if(_29&&dijit.isTabNavigable(_28)){
var _2a=dojo.attr(_28,"tabIndex");
if(!dojo.hasAttr(_28,"tabIndex")||_2a==0){
if(!_20){
_20=_28;
}
_21=_28;
}else{
if(_2a>0){
if(!_22||_2a<_23){
_23=_2a;
_22=_28;
}
if(!_24||_2a>=_25){
_25=_2a;
_24=_28;
}
}
}
}
if(_29&&_28.nodeName.toUpperCase()!="SELECT"){
_26(_28);
}
});
};
if(dijit._isElementShown(_1f)){
_26(_1f);
}
return {first:_20,last:_21,lowest:_22,highest:_24};
};
dijit.getFirstInTabbingOrder=function(_2b){
var _2c=dijit._getTabNavigable(dojo.byId(_2b));
return _2c.lowest?_2c.lowest:_2c.first;
};
dijit.getLastInTabbingOrder=function(_2d){
var _2e=dijit._getTabNavigable(dojo.byId(_2d));
return _2e.last?_2e.last:_2e.highest;
};
dijit.defaultDuration=dojo.config["defaultDuration"]||200;
}


;if(!dojo._hasResource["dijit._base.focus"]){
dojo._hasResource["dijit._base.focus"]=true;
dojo.provide("dijit._base.focus");
dojo.require("dijit._base.manager");
dojo.mixin(dijit,{_curFocus:null,_prevFocus:null,isCollapsed:function(){
return dijit.getBookmark().isCollapsed;
},getBookmark:function(){
var bm,rg,tg,_1=dojo.doc.selection,cf=dijit._curFocus;
if(dojo.global.getSelection){
_1=dojo.global.getSelection();
if(_1){
if(_1.isCollapsed){
tg=cf?cf.tagName:"";
if(tg){
tg=tg.toLowerCase();
if(tg=="textarea"||(tg=="input"&&(!cf.type||cf.type.toLowerCase()=="text"))){
_1={start:cf.selectionStart,end:cf.selectionEnd,node:cf,pRange:true};
return {isCollapsed:(_1.end<=_1.start),mark:_1};
}
}
bm={isCollapsed:true};
}else{
rg=_1.getRangeAt(0);
bm={isCollapsed:false,mark:rg.cloneRange()};
}
}
}else{
if(_1){
tg=cf?cf.tagName:"";
tg=tg.toLowerCase();
if(cf&&tg&&(tg=="button"||tg=="textarea"||tg=="input")){
if(_1.type&&_1.type.toLowerCase()=="none"){
return {isCollapsed:true,mark:null};
}else{
rg=_1.createRange();
return {isCollapsed:rg.text&&rg.text.length?false:true,mark:{range:rg,pRange:true}};
}
}
bm={};
try{
rg=_1.createRange();
bm.isCollapsed=!(_1.type=="Text"?rg.htmlText.length:rg.length);
}
catch(e){
bm.isCollapsed=true;
return bm;
}
if(_1.type.toUpperCase()=="CONTROL"){
if(rg.length){
bm.mark=[];
var i=0,_2=rg.length;
while(i<_2){
bm.mark.push(rg.item(i++));
}
}else{
bm.isCollapsed=true;
bm.mark=null;
}
}else{
bm.mark=rg.getBookmark();
}
}else{
console.warn("No idea how to store the current selection for this browser!");
}
}
return bm;
},moveToBookmark:function(_3){
var _4=dojo.doc,_5=_3.mark;
if(_5){
if(dojo.global.getSelection){
var _6=dojo.global.getSelection();
if(_6&&_6.removeAllRanges){
if(_5.pRange){
var r=_5;
var n=r.node;
n.selectionStart=r.start;
n.selectionEnd=r.end;
}else{
_6.removeAllRanges();
_6.addRange(_5);
}
}else{
console.warn("No idea how to restore selection for this browser!");
}
}else{
if(_4.selection&&_5){
var rg;
if(_5.pRange){
rg=_5.range;
}else{
if(dojo.isArray(_5)){
rg=_4.body.createControlRange();
dojo.forEach(_5,function(n){
rg.addElement(n);
});
}else{
rg=_4.body.createTextRange();
rg.moveToBookmark(_5);
}
}
rg.select();
}
}
}
},getFocus:function(_7,_8){
var _9=!dijit._curFocus||(_7&&dojo.isDescendant(dijit._curFocus,_7.domNode))?dijit._prevFocus:dijit._curFocus;
return {node:_9,bookmark:(_9==dijit._curFocus)&&dojo.withGlobal(_8||dojo.global,dijit.getBookmark),openedForWindow:_8};
},focus:function(_a){
if(!_a){
return;
}
var _b="node" in _a?_a.node:_a,_c=_a.bookmark,_d=_a.openedForWindow,_e=_c?_c.isCollapsed:false;
if(_b){
var _f=(_b.tagName.toLowerCase()=="iframe")?_b.contentWindow:_b;
if(_f&&_f.focus){
try{
_f.focus();
}
catch(e){
}
}
dijit._onFocusNode(_b);
}
if(_c&&dojo.withGlobal(_d||dojo.global,dijit.isCollapsed)&&!_e){
if(_d){
_d.focus();
}
try{
dojo.withGlobal(_d||dojo.global,dijit.moveToBookmark,null,[_c]);
}
catch(e2){
}
}
},_activeStack:[],registerIframe:function(_10){
return dijit.registerWin(_10.contentWindow,_10);
},unregisterIframe:function(_11){
dijit.unregisterWin(_11);
},registerWin:function(_12,_13){
var _14=function(evt){
dijit._justMouseDowned=true;
setTimeout(function(){
dijit._justMouseDowned=false;
},0);
dijit._onTouchNode(_13||evt.target||evt.srcElement,"mouse");
};
var doc=dojo.isIE?_12.document.documentElement:_12.document;
if(doc){
if(dojo.isIE){
doc.attachEvent("onmousedown",_14);
var _15=function(evt){
if(evt.srcElement.tagName.toLowerCase()!="#document"&&dijit.isTabNavigable(evt.srcElement)){
dijit._onFocusNode(_13||evt.srcElement);
}else{
dijit._onTouchNode(_13||evt.srcElement);
}
};
doc.attachEvent("onactivate",_15);
var _16=function(evt){
dijit._onBlurNode(_13||evt.srcElement);
};
doc.attachEvent("ondeactivate",_16);
return function(){
doc.detachEvent("onmousedown",_14);
doc.detachEvent("onactivate",_15);
doc.detachEvent("ondeactivate",_16);
doc=null;
};
}else{
doc.addEventListener("mousedown",_14,true);
var _17=function(evt){
dijit._onFocusNode(_13||evt.target);
};
doc.addEventListener("focus",_17,true);
var _18=function(evt){
dijit._onBlurNode(_13||evt.target);
};
doc.addEventListener("blur",_18,true);
return function(){
doc.removeEventListener("mousedown",_14,true);
doc.removeEventListener("focus",_17,true);
doc.removeEventListener("blur",_18,true);
doc=null;
};
}
}
},unregisterWin:function(_19){
_19&&_19();
},_onBlurNode:function(_1a){
dijit._prevFocus=dijit._curFocus;
dijit._curFocus=null;
if(dijit._justMouseDowned){
return;
}
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
}
dijit._clearActiveWidgetsTimer=setTimeout(function(){
delete dijit._clearActiveWidgetsTimer;
dijit._setStack([]);
dijit._prevFocus=null;
},100);
},_onTouchNode:function(_1b,by){
if(dijit._clearActiveWidgetsTimer){
clearTimeout(dijit._clearActiveWidgetsTimer);
delete dijit._clearActiveWidgetsTimer;
}
var _1c=[];
try{
while(_1b){
var _1d=dojo.attr(_1b,"dijitPopupParent");
if(_1d){
_1b=dijit.byId(_1d).domNode;
}else{
if(_1b.tagName&&_1b.tagName.toLowerCase()=="body"){
if(_1b===dojo.body()){
break;
}
_1b=dijit.getDocumentWindow(_1b.ownerDocument).frameElement;
}else{
var id=_1b.getAttribute&&_1b.getAttribute("widgetId");
if(id){
_1c.unshift(id);
}
_1b=_1b.parentNode;
}
}
}
}
catch(e){
}
dijit._setStack(_1c,by);
},_onFocusNode:function(_1e){
if(!_1e){
return;
}
if(_1e.nodeType==9){
return;
}
dijit._onTouchNode(_1e);
if(_1e==dijit._curFocus){
return;
}
if(dijit._curFocus){
dijit._prevFocus=dijit._curFocus;
}
dijit._curFocus=_1e;
dojo.publish("focusNode",[_1e]);
},_setStack:function(_1f,by){
var _20=dijit._activeStack;
dijit._activeStack=_1f;
for(var _21=0;_21<Math.min(_20.length,_1f.length);_21++){
if(_20[_21]!=_1f[_21]){
break;
}
}
var _22;
for(var i=_20.length-1;i>=_21;i--){
_22=dijit.byId(_20[i]);
if(_22){
_22._focused=false;
_22._hasBeenBlurred=true;
if(_22._onBlur){
_22._onBlur(by);
}
if(_22._setStateClass){
_22._setStateClass();
}
dojo.publish("widgetBlur",[_22,by]);
}
}
for(i=_21;i<_1f.length;i++){
_22=dijit.byId(_1f[i]);
if(_22){
_22._focused=true;
if(_22._onFocus){
_22._onFocus(by);
}
if(_22._setStateClass){
_22._setStateClass();
}
dojo.publish("widgetFocus",[_22,by]);
}
}
}});
dojo.addOnLoad(function(){
var _23=dijit.registerWin(window);
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
dijit.unregisterWin(_23);
_23=null;
});
}
});
}

dojo.registerModulePath("dojo", "../dojo");

;if(!dojo._hasResource["dojo.AdapterRegistry"]){
dojo._hasResource["dojo.AdapterRegistry"]=true;
dojo.provide("dojo.AdapterRegistry");
dojo.AdapterRegistry=function(_1){
this.pairs=[];
this.returnWrappers=_1||false;
};
dojo.extend(dojo.AdapterRegistry,{register:function(_2,_3,_4,_5,_6){
this.pairs[((_6)?"unshift":"push")]([_2,_3,_4,_5]);
},match:function(){
for(var i=0;i<this.pairs.length;i++){
var _7=this.pairs[i];
if(_7[1].apply(this,arguments)){
if((_7[3])||(this.returnWrappers)){
return _7[2];
}else{
return _7[2].apply(this,arguments);
}
}
}
throw new Error("No match found");
},unregister:function(_8){
for(var i=0;i<this.pairs.length;i++){
var _9=this.pairs[i];
if(_9[0]==_8){
this.pairs.splice(i,1);
return true;
}
}
return false;
}});
}


;if(!dojo._hasResource["dijit._base.place"]){
dojo._hasResource["dijit._base.place"]=true;
dojo.provide("dijit._base.place");
dojo.require("dojo.AdapterRegistry");
dijit.getViewport=function(){
var _1=(dojo.doc.compatMode=="BackCompat")?dojo.body():dojo.doc.documentElement;
var _2=dojo._docScroll();
return {w:_1.clientWidth,h:_1.clientHeight,l:_2.x,t:_2.y};
};
dijit.placeOnScreen=function(_3,_4,_5,_6){
var _7=dojo.map(_5,function(_8){
var c={corner:_8,pos:{x:_4.x,y:_4.y}};
if(_6){
c.pos.x+=_8.charAt(1)=="L"?_6.x:-_6.x;
c.pos.y+=_8.charAt(0)=="T"?_6.y:-_6.y;
}
return c;
});
return dijit._place(_3,_7);
};
dijit._place=function(_9,_a,_b){
var _c=dijit.getViewport();
if(!_9.parentNode||String(_9.parentNode.tagName).toLowerCase()!="body"){
dojo.body().appendChild(_9);
}
var _d=null;
dojo.some(_a,function(_e){
var _f=_e.corner;
var pos=_e.pos;
if(_b){
_b(_9,_e.aroundCorner,_f);
}
var _10=_9.style;
var _11=_10.display;
var _12=_10.visibility;
_10.visibility="hidden";
_10.display="";
var mb=dojo.marginBox(_9);
_10.display=_11;
_10.visibility=_12;
var _13=Math.max(_c.l,_f.charAt(1)=="L"?pos.x:(pos.x-mb.w)),_14=Math.max(_c.t,_f.charAt(0)=="T"?pos.y:(pos.y-mb.h)),_15=Math.min(_c.l+_c.w,_f.charAt(1)=="L"?(_13+mb.w):pos.x),_16=Math.min(_c.t+_c.h,_f.charAt(0)=="T"?(_14+mb.h):pos.y),_17=_15-_13,_18=_16-_14,_19=(mb.w-_17)+(mb.h-_18);
if(_d==null||_19<_d.overflow){
_d={corner:_f,aroundCorner:_e.aroundCorner,x:_13,y:_14,w:_17,h:_18,overflow:_19};
}
return !_19;
});
_9.style.left=_d.x+"px";
_9.style.top=_d.y+"px";
if(_d.overflow&&_b){
_b(_9,_d.aroundCorner,_d.corner);
}
return _d;
};
dijit.placeOnScreenAroundNode=function(_1a,_1b,_1c,_1d){
_1b=dojo.byId(_1b);
var _1e=_1b.style.display;
_1b.style.display="";
var _1f=dojo.position(_1b,true);
_1b.style.display=_1e;
return dijit._placeOnScreenAroundRect(_1a,_1f.x,_1f.y,_1f.w,_1f.h,_1c,_1d);
};
dijit.placeOnScreenAroundRectangle=function(_20,_21,_22,_23){
return dijit._placeOnScreenAroundRect(_20,_21.x,_21.y,_21.width,_21.height,_22,_23);
};
dijit._placeOnScreenAroundRect=function(_24,x,y,_25,_26,_27,_28){
var _29=[];
for(var _2a in _27){
_29.push({aroundCorner:_2a,corner:_27[_2a],pos:{x:x+(_2a.charAt(1)=="L"?0:_25),y:y+(_2a.charAt(0)=="T"?0:_26)}});
}
return dijit._place(_24,_29,_28);
};
dijit.placementRegistry=new dojo.AdapterRegistry();
dijit.placementRegistry.register("node",function(n,x){
return typeof x=="object"&&typeof x.offsetWidth!="undefined"&&typeof x.offsetHeight!="undefined";
},dijit.placeOnScreenAroundNode);
dijit.placementRegistry.register("rect",function(n,x){
return typeof x=="object"&&"x" in x&&"y" in x&&"width" in x&&"height" in x;
},dijit.placeOnScreenAroundRectangle);
dijit.placeOnScreenAroundElement=function(_2b,_2c,_2d,_2e){
return dijit.placementRegistry.match.apply(dijit.placementRegistry,arguments);
};
dijit.getPopupAlignment=function(_2f,_30){
var _31={};
dojo.forEach(_2f,function(pos){
switch(pos){
case "after":
_31[_30?"BR":"BL"]=_30?"BL":"BR";
break;
case "before":
_31[_30?"BL":"BR"]=_30?"BR":"BL";
break;
case "below":
_31[_30?"BL":"BR"]=_30?"TL":"TR";
_31[_30?"BR":"BL"]=_30?"TR":"TL";
break;
case "above":
default:
_31[_30?"TL":"TR"]=_30?"BL":"BR";
_31[_30?"TR":"TL"]=_30?"BR":"BL";
break;
}
});
return _31;
};
dijit.getPopupAroundAlignment=function(_32,_33){
var _34={};
dojo.forEach(_32,function(pos){
switch(pos){
case "after":
_34[_33?"BR":"BL"]=_33?"BL":"BR";
break;
case "before":
_34[_33?"BL":"BR"]=_33?"BR":"BL";
break;
case "below":
_34[_33?"BL":"BR"]=_33?"TL":"TR";
_34[_33?"BR":"BL"]=_33?"TR":"TL";
break;
case "above":
default:
_34[_33?"TL":"TR"]=_33?"BL":"BR";
_34[_33?"TR":"TL"]=_33?"BR":"BL";
break;
}
});
return _34;
};
}


;if(!dojo._hasResource["dijit._base.window"]){
dojo._hasResource["dijit._base.window"]=true;
dojo.provide("dijit._base.window");
dijit.getDocumentWindow=function(_1){
if(dojo.isIE&&window!==document.parentWindow&&!_1._parentWindow){
_1.parentWindow.execScript("document._parentWindow = window;","Javascript");
var _2=_1._parentWindow;
_1._parentWindow=null;
return _2;
}
return _1._parentWindow||_1.parentWindow||_1.defaultView;
};
}


;if(!dojo._hasResource["dijit._base.popup"]){
dojo._hasResource["dijit._base.popup"]=true;
dojo.provide("dijit._base.popup");
dojo.require("dijit._base.focus");
dojo.require("dijit._base.place");
dojo.require("dijit._base.window");
dijit.popup=new function(){
var _1=[],_2=1000,_3=1;
this.moveOffScreen=function(_4){
var s=_4.style;
s.visibility="hidden";
s.position="absolute";
s.top="-9999px";
if(s.display=="none"){
s.display="";
}
dojo.body().appendChild(_4);
};
var _5=function(){
for(var pi=_1.length-1;pi>0&&_1[pi].parent===_1[pi-1].widget;pi--){
}
return _1[pi];
};
var _6=[];
this.open=function(_7){
var _8=_7.popup,_9=_7.orient||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),_a=_7.around,id=(_7.around&&_7.around.id)?(_7.around.id+"_dropdown"):("popup_"+_3++);
var _b=_6.pop(),_c,_d;
if(!_b){
_c=dojo.create("div",{"class":"dijitPopup"},dojo.body());
dijit.setWaiRole(_c,"presentation");
}else{
_c=_b[0];
_d=_b[1];
}
dojo.attr(_c,{id:id,style:{zIndex:_2+_1.length,visibility:"hidden",top:"-9999px"},dijitPopupParent:_7.parent?_7.parent.id:""});
var s=_8.domNode.style;
s.display="";
s.visibility="";
s.position="";
s.top="0px";
_c.appendChild(_8.domNode);
if(!_d){
_d=new dijit.BackgroundIframe(_c);
}else{
_d.resize(_c);
}
var _e=_a?dijit.placeOnScreenAroundElement(_c,_a,_9,_8.orient?dojo.hitch(_8,"orient"):null):dijit.placeOnScreen(_c,_7,_9=="R"?["TR","BR","TL","BL"]:["TL","BL","TR","BR"],_7.padding);
_c.style.visibility="visible";
var _f=[];
_f.push(dojo.connect(_c,"onkeypress",this,function(evt){
if(evt.charOrCode==dojo.keys.ESCAPE&&_7.onCancel){
dojo.stopEvent(evt);
_7.onCancel();
}else{
if(evt.charOrCode===dojo.keys.TAB){
dojo.stopEvent(evt);
var _10=_5();
if(_10&&_10.onCancel){
_10.onCancel();
}
}
}
}));
if(_8.onCancel){
_f.push(dojo.connect(_8,"onCancel",_7.onCancel));
}
_f.push(dojo.connect(_8,_8.onExecute?"onExecute":"onChange",function(){
var _11=_5();
if(_11&&_11.onExecute){
_11.onExecute();
}
}));
_1.push({wrapper:_c,iframe:_d,widget:_8,parent:_7.parent,onExecute:_7.onExecute,onCancel:_7.onCancel,onClose:_7.onClose,handlers:_f});
if(_8.onOpen){
_8.onOpen(_e);
}
return _e;
};
this.close=function(_12){
while(dojo.some(_1,function(_13){
return _13.widget==_12;
})){
var top=_1.pop(),_14=top.wrapper,_15=top.iframe,_16=top.widget,_17=top.onClose;
if(_16.onClose){
_16.onClose();
}
dojo.forEach(top.handlers,dojo.disconnect);
if(_16&&_16.domNode){
this.moveOffScreen(_16.domNode);
}
_14.style.top="-9999px";
_14.style.visibility="hidden";
_6.push([_14,_15]);
if(_17){
_17();
}
}
};
}();
dijit._frames=new function(){
var _18=[];
this.pop=function(){
var _19;
if(_18.length){
_19=_18.pop();
_19.style.display="";
}else{
if(dojo.isIE){
var _1a=dojo.config["dojoBlankHtmlUrl"]||(dojo.moduleUrl("dojo","resources/blank.html")+"")||"javascript:\"\"";
var _1b="<iframe src='"+_1a+"'"+" style='position: absolute; left: 0px; top: 0px;"+"z-index: -1; filter:Alpha(Opacity=\"0\");'>";
_19=dojo.doc.createElement(_1b);
}else{
_19=dojo.create("iframe");
_19.src="javascript:\"\"";
_19.className="dijitBackgroundIframe";
dojo.style(_19,"opacity",0.1);
}
_19.tabIndex=-1;
}
return _19;
};
this.push=function(_1c){
_1c.style.display="none";
_18.push(_1c);
};
}();
dijit.BackgroundIframe=function(_1d){
if(!_1d.id){
throw new Error("no id");
}
if(dojo.isIE||dojo.isMoz){
var _1e=dijit._frames.pop();
_1d.appendChild(_1e);
if(dojo.isIE<7){
this.resize(_1d);
this._conn=dojo.connect(_1d,"onresize",this,function(){
this.resize(_1d);
});
}else{
dojo.style(_1e,{width:"100%",height:"100%"});
}
this.iframe=_1e;
}
};
dojo.extend(dijit.BackgroundIframe,{resize:function(_1f){
if(this.iframe&&dojo.isIE<7){
dojo.style(this.iframe,{width:_1f.offsetWidth+"px",height:_1f.offsetHeight+"px"});
}
},destroy:function(){
if(this._conn){
dojo.disconnect(this._conn);
this._conn=null;
}
if(this.iframe){
dijit._frames.push(this.iframe);
delete this.iframe;
}
}});
}

dojo.registerModulePath("com.ibm.oneui", "../com.ibm.oneui");

;if(!dojo._hasResource["com.ibm.oneui.util.openAround"]){
dojo._hasResource["com.ibm.oneui.util.openAround"]=true;
dojo.provide("com.ibm.oneui.util.openAround");
dojo.require("dijit._base.popup");
com.ibm.oneui.util.openAround=function(_1,_2,_3,_4){
var _5=dijit.byId(_1);
if(_4){
dojo.stopEvent(_4);
}
if(_5&&_5.preventReopen){
_5.preventReopen=_5.wasShowing=false;
return;
}
if(_4&&!_2){
_2=_4.target;
}
function _6(){
try{
dijit.focus(_2);
}
catch(e){
}
dijit.popup.close(_5);
};
dijit.popup.open({popup:_5,around:_2,orient:(_3?_3.orient:null)||(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),onExecute:_6,onCancel:_6});
_5.focus();
if(!_5._blurCloseHandler){
_5._blurCloseHandler=_5.connect(_5,"_onBlur",function(){
_5.wasShowing=_5.isShowingNow;
setTimeout(function(){
_5.wasShowing=false;
},1);
dijit.popup.close(_5);
});
}
};
}


;if(!dojo._hasResource["com.ibm.oneui.util.proxy"]){
dojo._hasResource["com.ibm.oneui.util.proxy"]=true;
(function(){
dojo.provide("com.ibm.oneui.util.proxy");
var _1=com.ibm.oneui.util;
var _2=function(_3){
return _3=="https"?443:80;
};
var _4=dojo.config.proxy;
if(_4){
var _5=window.location;
var _6=_5.hostname||localhost;
var _7=(_5.protocol||"http").replace(":","");
var _8=_5.port||_2(_7);
_1.proxy=function(_9){
var _a=new dojo._Url(_9);
var _b=_a.host;
if(_b){
var _c=_a.scheme||_7;
var _d=_a.port||_2(_c);
if(_c!=_7||_d!=_8||_b!=_6){
return _4+"/"+_c+"/"+encodeURIComponent(_b+":"+_d)+(_a.path||"")+(_a.query?("?"+_a.query):"");
}
}
return _9;
};
}else{
_1.proxy=function(_e){
return _e;
};
}
})();
}


;if(!dojo._hasResource["dijit._base.scroll"]){
dojo._hasResource["dijit._base.scroll"]=true;
dojo.provide("dijit._base.scroll");
dijit.scrollIntoView=function(_1,_2){
try{
_1=dojo.byId(_1);
var _3=_1.ownerDocument||dojo.doc,_4=_3.body||dojo.body(),_5=_3.documentElement||_4.parentNode,_6=dojo.isIE,_7=dojo.isWebKit;
if((!(dojo.isMoz||_6||_7)||_1==_4||_1==_5)&&(typeof _1.scrollIntoView!="undefined")){
_1.scrollIntoView(false);
return;
}
var _8=_3.compatMode=="BackCompat",_9=_8?_4:_5,_a=_7?_4:_9,_b=_9.clientWidth,_c=_9.clientHeight,_d=!dojo._isBodyLtr(),_e=_2||dojo.position(_1),el=_1.parentNode,_f=function(el){
return ((_6<=6||(_6&&_8))?false:(dojo.style(el,"position").toLowerCase()=="fixed"));
};
if(_f(_1)){
return;
}
while(el){
if(el==_4){
el=_a;
}
var _10=dojo.position(el),_11=_f(el);
with(_10){
if(el==_a){
w=_b,h=_c;
if(_a==_5&&_6&&_d){
x+=_a.offsetWidth-w;
}
if(x<0||!_6){
x=0;
}
if(y<0||!_6){
y=0;
}
}else{
var pb=dojo._getPadBorderExtents(el);
w-=pb.w;
h-=pb.h;
x+=pb.l;
y+=pb.t;
}
with(el){
if(el!=_a){
var _12=clientWidth,_13=w-_12;
if(_12>0&&_13>0){
w=_12;
if(_6&&_d){
x+=_13;
}
}
_12=clientHeight;
_13=h-_12;
if(_12>0&&_13>0){
h=_12;
}
}
if(_11){
if(y<0){
h+=y,y=0;
}
if(x<0){
w+=x,x=0;
}
if(y+h>_c){
h=_c-y;
}
if(x+w>_b){
w=_b-x;
}
}
var l=_e.x-x,t=_e.y-Math.max(y,0),r=l+_e.w-w,bot=t+_e.h-h;
if(r*l>0){
var s=Math[l<0?"max":"min"](l,r);
_e.x+=scrollLeft;
scrollLeft+=(_6>=8&&!_8&&_d)?-s:s;
_e.x-=scrollLeft;
}
if(bot*t>0){
_e.y+=scrollTop;
scrollTop+=Math[t<0?"max":"min"](t,bot);
_e.y-=scrollTop;
}
}
}
el=(el!=_a)&&!_11&&el.parentNode;
}
}
catch(error){
console.error("scrollIntoView: "+error);
_1.scrollIntoView(false);
}
};
}


;if(!dojo._hasResource["dijit._base.sniff"]){
dojo._hasResource["dijit._base.sniff"]=true;
dojo.provide("dijit._base.sniff");
(function(){
var d=dojo,_1=d.doc.documentElement,ie=d.isIE,_2=d.isOpera,_3=Math.floor,ff=d.isFF,_4=d.boxModel.replace(/-/,""),_5={dj_ie:ie,dj_ie6:_3(ie)==6,dj_ie7:_3(ie)==7,dj_ie8:_3(ie)==8,dj_iequirks:ie&&d.isQuirks,dj_opera:_2,dj_khtml:d.isKhtml,dj_webkit:d.isWebKit,dj_safari:d.isSafari,dj_chrome:d.isChrome,dj_gecko:d.isMozilla,dj_ff3:_3(ff)==3};
_5["dj_"+_4]=true;
for(var p in _5){
if(_5[p]){
if(_1.className){
_1.className+=" "+p;
}else{
_1.className=p;
}
}
}
dojo._loaders.unshift(function(){
if(!dojo._isBodyLtr()){
_1.className+=" dijitRtl";
for(var p in _5){
if(_5[p]){
_1.className+=" "+p+"-rtl";
}
}
}
});
})();
}


;if(!dojo._hasResource["dijit._base.typematic"]){
dojo._hasResource["dijit._base.typematic"]=true;
dojo.provide("dijit._base.typematic");
dijit.typematic={_fireEventAndReload:function(){
this._timer=null;
this._callback(++this._count,this._node,this._evt);
this._currentTimeout=Math.max(this._currentTimeout<0?this._initialDelay:(this._subsequentDelay>1?this._subsequentDelay:Math.round(this._currentTimeout*this._subsequentDelay)),10);
this._timer=setTimeout(dojo.hitch(this,"_fireEventAndReload"),this._currentTimeout);
},trigger:function(_1,_2,_3,_4,_5,_6,_7){
if(_5!=this._obj){
this.stop();
this._initialDelay=_7||500;
this._subsequentDelay=_6||0.9;
this._obj=_5;
this._evt=_1;
this._node=_3;
this._currentTimeout=-1;
this._count=-1;
this._callback=dojo.hitch(_2,_4);
this._fireEventAndReload();
}
},stop:function(){
if(this._timer){
clearTimeout(this._timer);
this._timer=null;
}
if(this._obj){
this._callback(-1,this._node,this._evt);
this._obj=null;
}
},addKeyListener:function(_8,_9,_a,_b,_c,_d){
if(_9.keyCode){
_9.charOrCode=_9.keyCode;
dojo.deprecated("keyCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}else{
if(_9.charCode){
_9.charOrCode=String.fromCharCode(_9.charCode);
dojo.deprecated("charCode attribute parameter for dijit.typematic.addKeyListener is deprecated. Use charOrCode instead.","","2.0");
}
}
return [dojo.connect(_8,"onkeypress",this,function(_e){
if(_e.charOrCode==_9.charOrCode&&(_9.ctrlKey===undefined||_9.ctrlKey==_e.ctrlKey)&&(_9.altKey===undefined||_9.altKey==_e.altKey)&&(_9.metaKey===undefined||_9.metaKey==(_e.metaKey||false))&&(_9.shiftKey===undefined||_9.shiftKey==_e.shiftKey)){
dojo.stopEvent(_e);
dijit.typematic.trigger(_9,_a,_8,_b,_9,_c,_d);
}else{
if(dijit.typematic._obj==_9){
dijit.typematic.stop();
}
}
}),dojo.connect(_8,"onkeyup",this,function(_f){
if(dijit.typematic._obj==_9){
dijit.typematic.stop();
}
})];
},addMouseListener:function(_10,_11,_12,_13,_14){
var dc=dojo.connect;
return [dc(_10,"mousedown",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.trigger(evt,_11,_10,_12,_10,_13,_14);
}),dc(_10,"mouseup",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_10,"mouseout",this,function(evt){
dojo.stopEvent(evt);
dijit.typematic.stop();
}),dc(_10,"mousemove",this,function(evt){
dojo.stopEvent(evt);
}),dc(_10,"dblclick",this,function(evt){
dojo.stopEvent(evt);
if(dojo.isIE){
dijit.typematic.trigger(evt,_11,_10,_12,_10,_13,_14);
setTimeout(dojo.hitch(this,dijit.typematic.stop),50);
}
})];
},addListener:function(_15,_16,_17,_18,_19,_1a,_1b){
return this.addKeyListener(_16,_17,_18,_19,_1a,_1b).concat(this.addMouseListener(_15,_18,_19,_1a,_1b));
}};
}


;if(!dojo._hasResource["dijit._base.wai"]){
dojo._hasResource["dijit._base.wai"]=true;
dojo.provide("dijit._base.wai");
dijit.wai={onload:function(){
var _1=dojo.create("div",{id:"a11yTestNode",style:{cssText:"border: 1px solid;"+"border-color:red green;"+"position: absolute;"+"height: 5px;"+"top: -999px;"+"background-image: url(\""+(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif"))+"\");"}},dojo.body());
var cs=dojo.getComputedStyle(_1);
if(cs){
var _2=cs.backgroundImage;
var _3=(cs.borderTopColor==cs.borderRightColor)||(_2!=null&&(_2=="none"||_2=="url(invalid-url:)"));
dojo[_3?"addClass":"removeClass"](dojo.body(),"dijit_a11y");
if(dojo.isIE){
_1.outerHTML="";
}else{
dojo.body().removeChild(_1);
}
}
}};
if(dojo.isIE||dojo.isMoz){
dojo._loaders.unshift(dijit.wai.onload);
}
dojo.mixin(dijit,{_XhtmlRoles:/banner|contentinfo|definition|main|navigation|search|note|secondary|seealso/,hasWaiRole:function(_4,_5){
var _6=this.getWaiRole(_4);
return _5?(_6.indexOf(_5)>-1):(_6.length>0);
},getWaiRole:function(_7){
return dojo.trim((dojo.attr(_7,"role")||"").replace(this._XhtmlRoles,"").replace("wairole:",""));
},setWaiRole:function(_8,_9){
var _a=dojo.attr(_8,"role")||"";
if(!this._XhtmlRoles.test(_a)){
dojo.attr(_8,"role",_9);
}else{
if((" "+_a+" ").indexOf(" "+_9+" ")<0){
var _b=dojo.trim(_a.replace(this._XhtmlRoles,""));
var _c=dojo.trim(_a.replace(_b,""));
dojo.attr(_8,"role",_c+(_c?" ":"")+_9);
}
}
},removeWaiRole:function(_d,_e){
var _f=dojo.attr(_d,"role");
if(!_f){
return;
}
if(_e){
var t=dojo.trim((" "+_f+" ").replace(" "+_e+" "," "));
dojo.attr(_d,"role",t);
}else{
_d.removeAttribute("role");
}
},hasWaiState:function(_10,_11){
return _10.hasAttribute?_10.hasAttribute("aria-"+_11):!!_10.getAttribute("aria-"+_11);
},getWaiState:function(_12,_13){
return _12.getAttribute("aria-"+_13)||"";
},setWaiState:function(_14,_15,_16){
_14.setAttribute("aria-"+_15,_16);
},removeWaiState:function(_17,_18){
_17.removeAttribute("aria-"+_18);
}});
}


;if(!dojo._hasResource["dijit._base"]){
dojo._hasResource["dijit._base"]=true;
dojo.provide("dijit._base");
dojo.require("dijit._base.focus");
dojo.require("dijit._base.manager");
dojo.require("dijit._base.place");
dojo.require("dijit._base.popup");
dojo.require("dijit._base.scroll");
dojo.require("dijit._base.sniff");
dojo.require("dijit._base.typematic");
dojo.require("dijit._base.wai");
dojo.require("dijit._base.window");
}


;if(!dojo._hasResource["dijit._Widget"]){
dojo._hasResource["dijit._Widget"]=true;
dojo.provide("dijit._Widget");
dojo.require("dijit._base");
dojo.connect(dojo,"_connect",function(_1,_2){
if(_1&&dojo.isFunction(_1._onConnect)){
_1._onConnect(_2);
}
});
dijit._connectOnUseEventHandler=function(_3){
};
dijit._lastKeyDownNode=null;
if(dojo.isIE){
(function(){
var _4=function(_5){
dijit._lastKeyDownNode=_5.srcElement;
};
dojo.doc.attachEvent("onkeydown",_4);
dojo.addOnWindowUnload(function(){
dojo.doc.detachEvent("onkeydown",_4);
});
})();
}else{
dojo.doc.addEventListener("keydown",function(_6){
dijit._lastKeyDownNode=_6.target;
},true);
}
(function(){
var _7={},_8=function(_9){
var dc=_9.declaredClass;
if(!_7[dc]){
var r=[],_a,_b=_9.constructor.prototype;
for(var _c in _b){
if(dojo.isFunction(_b[_c])&&(_a=_c.match(/^_set([a-zA-Z]*)Attr$/))&&_a[1]){
r.push(_a[1].charAt(0).toLowerCase()+_a[1].substr(1));
}
}
_7[dc]=r;
}
return _7[dc]||[];
};
dojo.declare("dijit._Widget",null,{id:"",lang:"",dir:"","class":"",style:"",title:"",tooltip:"",srcNodeRef:null,domNode:null,containerNode:null,attributeMap:{id:"",dir:"",lang:"","class":"",style:"",title:""},_deferredConnects:{onClick:"",onDblClick:"",onKeyDown:"",onKeyPress:"",onKeyUp:"",onMouseMove:"",onMouseDown:"",onMouseOut:"",onMouseOver:"",onMouseLeave:"",onMouseEnter:"",onMouseUp:""},onClick:dijit._connectOnUseEventHandler,onDblClick:dijit._connectOnUseEventHandler,onKeyDown:dijit._connectOnUseEventHandler,onKeyPress:dijit._connectOnUseEventHandler,onKeyUp:dijit._connectOnUseEventHandler,onMouseDown:dijit._connectOnUseEventHandler,onMouseMove:dijit._connectOnUseEventHandler,onMouseOut:dijit._connectOnUseEventHandler,onMouseOver:dijit._connectOnUseEventHandler,onMouseLeave:dijit._connectOnUseEventHandler,onMouseEnter:dijit._connectOnUseEventHandler,onMouseUp:dijit._connectOnUseEventHandler,_blankGif:(dojo.config.blankGif||dojo.moduleUrl("dojo","resources/blank.gif")).toString(),postscript:function(_d,_e){
this.create(_d,_e);
},create:function(_f,_10){
this.srcNodeRef=dojo.byId(_10);
this._connects=[];
this._subscribes=[];
this._deferredConnects=dojo.clone(this._deferredConnects);
for(var _11 in this.attributeMap){
delete this._deferredConnects[_11];
}
for(_11 in this._deferredConnects){
if(this[_11]!==dijit._connectOnUseEventHandler){
delete this._deferredConnects[_11];
}
}
if(this.srcNodeRef&&(typeof this.srcNodeRef.id=="string")){
this.id=this.srcNodeRef.id;
}
if(_f){
this.params=_f;
dojo.mixin(this,_f);
}
this.postMixInProperties();
if(!this.id){
this.id=dijit.getUniqueId(this.declaredClass.replace(/\./g,"_"));
}
dijit.registry.add(this);
this.buildRendering();
if(this.domNode){
this._applyAttributes();
var _12=this.srcNodeRef;
if(_12&&_12.parentNode){
_12.parentNode.replaceChild(this.domNode,_12);
}
for(_11 in this.params){
this._onConnect(_11);
}
}
if(this.domNode){
this.domNode.setAttribute("widgetId",this.id);
}
this.postCreate();
if(this.srcNodeRef&&!this.srcNodeRef.parentNode){
delete this.srcNodeRef;
}
this._created=true;
},_applyAttributes:function(){
var _13=function(_14,_15){
if((_15.params&&_14 in _15.params)||_15[_14]){
_15.attr(_14,_15[_14]);
}
};
for(var _16 in this.attributeMap){
_13(_16,this);
}
dojo.forEach(_8(this),function(a){
if(!(a in this.attributeMap)){
_13(a,this);
}
},this);
},postMixInProperties:function(){
},buildRendering:function(){
this.domNode=this.srcNodeRef||dojo.create("div");
},postCreate:function(){
},startup:function(){
this._started=true;
},destroyRecursive:function(_17){
this._beingDestroyed=true;
this.destroyDescendants(_17);
this.destroy(_17);
},destroy:function(_18){
this._beingDestroyed=true;
this.uninitialize();
var d=dojo,dfe=d.forEach,dun=d.unsubscribe;
dfe(this._connects,function(_19){
dfe(_19,d.disconnect);
});
dfe(this._subscribes,function(_1a){
dun(_1a);
});
dfe(this._supportingWidgets||[],function(w){
if(w.destroyRecursive){
w.destroyRecursive();
}else{
if(w.destroy){
w.destroy();
}
}
});
this.destroyRendering(_18);
dijit.registry.remove(this.id);
this._destroyed=true;
},destroyRendering:function(_1b){
if(this.bgIframe){
this.bgIframe.destroy(_1b);
delete this.bgIframe;
}
if(this.domNode){
if(_1b){
dojo.removeAttr(this.domNode,"widgetId");
}else{
dojo.destroy(this.domNode);
}
delete this.domNode;
}
if(this.srcNodeRef){
if(!_1b){
dojo.destroy(this.srcNodeRef);
}
delete this.srcNodeRef;
}
},destroyDescendants:function(_1c){
dojo.forEach(this.getChildren(),function(_1d){
if(_1d.destroyRecursive){
_1d.destroyRecursive(_1c);
}
});
},uninitialize:function(){
return false;
},onFocus:function(){
},onBlur:function(){
},_onFocus:function(e){
this.onFocus();
},_onBlur:function(){
this.onBlur();
},_onConnect:function(_1e){
if(_1e in this._deferredConnects){
var _1f=this[this._deferredConnects[_1e]||"domNode"];
this.connect(_1f,_1e.toLowerCase(),_1e);
delete this._deferredConnects[_1e];
}
},_setClassAttr:function(_20){
var _21=this[this.attributeMap["class"]||"domNode"];
dojo.removeClass(_21,this["class"]);
this["class"]=_20;
dojo.addClass(_21,_20);
},_setStyleAttr:function(_22){
var _23=this[this.attributeMap.style||"domNode"];
if(dojo.isObject(_22)){
dojo.style(_23,_22);
}else{
if(_23.style.cssText){
_23.style.cssText+="; "+_22;
}else{
_23.style.cssText=_22;
}
}
this.style=_22;
},setAttribute:function(_24,_25){
dojo.deprecated(this.declaredClass+"::setAttribute() is deprecated. Use attr() instead.","","2.0");
this.attr(_24,_25);
},_attrToDom:function(_26,_27){
var _28=this.attributeMap[_26];
dojo.forEach(dojo.isArray(_28)?_28:[_28],function(_29){
var _2a=this[_29.node||_29||"domNode"];
var _2b=_29.type||"attribute";
switch(_2b){
case "attribute":
if(dojo.isFunction(_27)){
_27=dojo.hitch(this,_27);
}
var _2c=_29.attribute?_29.attribute:(/^on[A-Z][a-zA-Z]*$/.test(_26)?_26.toLowerCase():_26);
dojo.attr(_2a,_2c,_27);
break;
case "innerText":
_2a.innerHTML="";
_2a.appendChild(dojo.doc.createTextNode(_27));
break;
case "innerHTML":
_2a.innerHTML=_27;
break;
case "class":
dojo.removeClass(_2a,this[_26]);
dojo.addClass(_2a,_27);
break;
}
},this);
this[_26]=_27;
},attr:function(_2d,_2e){
var _2f=arguments.length;
if(_2f==1&&!dojo.isString(_2d)){
for(var x in _2d){
this.attr(x,_2d[x]);
}
return this;
}
var _30=this._getAttrNames(_2d);
if(_2f>=2){
if(this[_30.s]){
_2f=dojo._toArray(arguments,1);
return this[_30.s].apply(this,_2f)||this;
}else{
if(_2d in this.attributeMap){
this._attrToDom(_2d,_2e);
}
this[_2d]=_2e;
}
return this;
}else{
return this[_30.g]?this[_30.g]():this[_2d];
}
},_attrPairNames:{},_getAttrNames:function(_31){
var apn=this._attrPairNames;
if(apn[_31]){
return apn[_31];
}
var uc=_31.charAt(0).toUpperCase()+_31.substr(1);
return (apn[_31]={n:_31+"Node",s:"_set"+uc+"Attr",g:"_get"+uc+"Attr"});
},toString:function(){
return "[Widget "+this.declaredClass+", "+(this.id||"NO ID")+"]";
},getDescendants:function(){
return this.containerNode?dojo.query("[widgetId]",this.containerNode).map(dijit.byNode):[];
},getChildren:function(){
return this.containerNode?dijit.findWidgets(this.containerNode):[];
},nodesWithKeyClick:["input","button"],connect:function(obj,_32,_33){
var d=dojo,dc=d._connect,_34=[];
if(_32=="ondijitclick"){
if(!this.nodesWithKeyClick[obj.tagName.toLowerCase()]){
var m=d.hitch(this,_33);
_34.push(dc(obj,"onkeydown",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=e.target;
d.stopEvent(e);
}
}),dc(obj,"onkeyup",this,function(e){
if((e.keyCode==d.keys.ENTER||e.keyCode==d.keys.SPACE)&&e.target===dijit._lastKeyDownNode&&!e.ctrlKey&&!e.shiftKey&&!e.altKey&&!e.metaKey){
dijit._lastKeyDownNode=null;
return m(e);
}
}));
}
_32="onclick";
}
_34.push(dc(obj,_32,this,_33));
this._connects.push(_34);
return _34;
},disconnect:function(_35){
for(var i=0;i<this._connects.length;i++){
if(this._connects[i]==_35){
dojo.forEach(_35,dojo.disconnect);
this._connects.splice(i,1);
return;
}
}
},subscribe:function(_36,_37){
var d=dojo,_38=d.subscribe(_36,this,_37);
this._subscribes.push(_38);
return _38;
},unsubscribe:function(_39){
for(var i=0;i<this._subscribes.length;i++){
if(this._subscribes[i]==_39){
dojo.unsubscribe(_39);
this._subscribes.splice(i,1);
return;
}
}
},isLeftToRight:function(){
return dojo._isBodyLtr();
},isFocusable:function(){
return this.focus&&(dojo.style(this.domNode,"display")!="none");
},placeAt:function(_3a,_3b){
if(_3a.declaredClass&&_3a.addChild){
_3a.addChild(this,_3b);
}else{
dojo.place(this.domNode,_3a,_3b);
}
return this;
},_onShow:function(){
this.onShow();
},onShow:function(){
},onHide:function(){
}});
})();
}


;if(!dojo._hasResource["dojo.string"]){
dojo._hasResource["dojo.string"]=true;
dojo.provide("dojo.string");
dojo.string.rep=function(_1,_2){
if(_2<=0||!_1){
return "";
}
var _3=[];
for(;;){
if(_2&1){
_3.push(_1);
}
if(!(_2>>=1)){
break;
}
_1+=_1;
}
return _3.join("");
};
dojo.string.pad=function(_4,_5,ch,_6){
if(!ch){
ch="0";
}
var _7=String(_4),_8=dojo.string.rep(ch,Math.ceil((_5-_7.length)/ch.length));
return _6?_7+_8:_8+_7;
};
dojo.string.substitute=function(_9,_a,_b,_c){
_c=_c||dojo.global;
_b=_b?dojo.hitch(_c,_b):function(v){
return v;
};
return _9.replace(/\$\{([^\s\:\}]+)(?:\:([^\s\:\}]+))?\}/g,function(_d,_e,_f){
var _10=dojo.getObject(_e,false,_a);
if(_f){
_10=dojo.getObject(_f,false,_c).call(_c,_10,_e);
}
return _b(_10,_e).toString();
});
};
dojo.string.trim=String.prototype.trim?dojo.trim:function(str){
str=str.replace(/^\s+/,"");
for(var i=str.length-1;i>=0;i--){
if(/\S/.test(str.charAt(i))){
str=str.substring(0,i+1);
break;
}
}
return str;
};
}


;if(!dojo._hasResource["dojo.date.stamp"]){
dojo._hasResource["dojo.date.stamp"]=true;
dojo.provide("dojo.date.stamp");
dojo.date.stamp.fromISOString=function(_1,_2){
if(!dojo.date.stamp._isoRegExp){
dojo.date.stamp._isoRegExp=/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(.\d+)?)?((?:[+-](\d{2}):(\d{2}))|Z)?)?$/;
}
var _3=dojo.date.stamp._isoRegExp.exec(_1),_4=null;
if(_3){
_3.shift();
if(_3[1]){
_3[1]--;
}
if(_3[6]){
_3[6]*=1000;
}
if(_2){
_2=new Date(_2);
dojo.map(["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds"],function(_5){
return _2["get"+_5]();
}).forEach(function(_6,_7){
if(_3[_7]===undefined){
_3[_7]=_6;
}
});
}
_4=new Date(_3[0]||1970,_3[1]||0,_3[2]||1,_3[3]||0,_3[4]||0,_3[5]||0,_3[6]||0);
if(_3[0]<100){
_4.setFullYear(_3[0]||1970);
}
var _8=0,_9=_3[7]&&_3[7].charAt(0);
if(_9!="Z"){
_8=((_3[8]||0)*60)+(Number(_3[9])||0);
if(_9!="-"){
_8*=-1;
}
}
if(_9){
_8-=_4.getTimezoneOffset();
}
if(_8){
_4.setTime(_4.getTime()+_8*60000);
}
}
return _4;
};
dojo.date.stamp.toISOString=function(_a,_b){
var _c=function(n){
return (n<10)?"0"+n:n;
};
_b=_b||{};
var _d=[],_e=_b.zulu?"getUTC":"get",_f="";
if(_b.selector!="time"){
var _10=_a[_e+"FullYear"]();
_f=["0000".substr((_10+"").length)+_10,_c(_a[_e+"Month"]()+1),_c(_a[_e+"Date"]())].join("-");
}
_d.push(_f);
if(_b.selector!="date"){
var _11=[_c(_a[_e+"Hours"]()),_c(_a[_e+"Minutes"]()),_c(_a[_e+"Seconds"]())].join(":");
var _12=_a[_e+"Milliseconds"]();
if(_b.milliseconds){
_11+="."+(_12<100?"0":"")+_c(_12);
}
if(_b.zulu){
_11+="Z";
}else{
if(_b.selector!="time"){
var _13=_a.getTimezoneOffset();
var _14=Math.abs(_13);
_11+=(_13>0?"-":"+")+_c(Math.floor(_14/60))+":"+_c(_14%60);
}
}
_d.push(_11);
}
return _d.join("T");
};
}


;if(!dojo._hasResource["dojo.parser"]){
dojo._hasResource["dojo.parser"]=true;
dojo.provide("dojo.parser");
dojo.require("dojo.date.stamp");
dojo.parser=new function(){
var d=dojo;
this._attrName=d._scopeName+"Type";
this._query="["+this._attrName+"]";
function _1(_2){
if(d.isString(_2)){
return "string";
}
if(typeof _2=="number"){
return "number";
}
if(typeof _2=="boolean"){
return "boolean";
}
if(d.isFunction(_2)){
return "function";
}
if(d.isArray(_2)){
return "array";
}
if(_2 instanceof Date){
return "date";
}
if(_2 instanceof d._Url){
return "url";
}
return "object";
};
function _3(_4,_5){
switch(_5){
case "string":
return _4;
case "number":
return _4.length?Number(_4):NaN;
case "boolean":
return typeof _4=="boolean"?_4:!(_4.toLowerCase()=="false");
case "function":
if(d.isFunction(_4)){
_4=_4.toString();
_4=d.trim(_4.substring(_4.indexOf("{")+1,_4.length-1));
}
try{
if(_4.search(/[^\w\.]+/i)!=-1){
return new Function(_4);
}else{
return d.getObject(_4,false);
}
}
catch(e){
return new Function();
}
case "array":
return _4?_4.split(/\s*,\s*/):[];
case "date":
switch(_4){
case "":
return new Date("");
case "now":
return new Date();
default:
return d.date.stamp.fromISOString(_4);
}
case "url":
return d.baseUrl+_4;
default:
return d.fromJson(_4);
}
};
var _6={};
dojo.connect(dojo,"extend",function(){
_6={};
});
function _7(_8){
if(!_6[_8]){
var _9=d.getObject(_8);
if(!d.isFunction(_9)){
throw new Error("Could not load class '"+_8+"'. Did you spell the name correctly and use a full path, like 'dijit.form.Button'?");
}
var _a=_9.prototype;
var _b={},_c={};
for(var _d in _a){
if(_d.charAt(0)=="_"){
continue;
}
if(_d in _c){
continue;
}
var _e=_a[_d];
_b[_d]=_1(_e);
}
_6[_8]={cls:_9,params:_b};
}
return _6[_8];
};
this._functionFromScript=function(_f){
var _10="";
var _11="";
var _12=_f.getAttribute("args");
if(_12){
d.forEach(_12.split(/\s*,\s*/),function(_13,idx){
_10+="var "+_13+" = arguments["+idx+"]; ";
});
}
var _14=_f.getAttribute("with");
if(_14&&_14.length){
d.forEach(_14.split(/\s*,\s*/),function(_15){
_10+="with("+_15+"){";
_11+="}";
});
}
return new Function(_10+_f.innerHTML+_11);
};
this.instantiate=function(_16,_17,_18){
var _19=[],dp=dojo.parser;
_17=_17||{};
_18=_18||{};
d.forEach(_16,function(_1a){
if(!_1a){
return;
}
var _1b=dp._attrName in _17?_17[dp._attrName]:_1a.getAttribute(dp._attrName);
if(!_1b||!_1b.length){
return;
}
var _1c=_7(_1b),_1d=_1c.cls,ps=_1d._noScript||_1d.prototype._noScript;
var _1e={},_1f=_1a.attributes;
for(var _20 in _1c.params){
var _21=_20 in _17?{value:_17[_20],specified:true}:_1f.getNamedItem(_20);
if(!_21||(!_21.specified&&(!dojo.isIE||_20.toLowerCase()!="value"))){
continue;
}
var _22=_21.value;
switch(_20){
case "class":
_22="className" in _17?_17.className:_1a.className;
break;
case "style":
_22="style" in _17?_17.style:(_1a.style&&_1a.style.cssText);
}
var _23=_1c.params[_20];
if(typeof _22=="string"){
_1e[_20]=_3(_22,_23);
}else{
_1e[_20]=_22;
}
}
if(!ps){
var _24=[],_25=[];
d.query("> script[type^='dojo/']",_1a).orphan().forEach(function(_26){
var _27=_26.getAttribute("event"),_1b=_26.getAttribute("type"),nf=d.parser._functionFromScript(_26);
if(_27){
if(_1b=="dojo/connect"){
_24.push({event:_27,func:nf});
}else{
_1e[_27]=nf;
}
}else{
_25.push(nf);
}
});
}
var _28=_1d.markupFactory||_1d.prototype&&_1d.prototype.markupFactory;
var _29=_28?_28(_1e,_1a,_1d):new _1d(_1e,_1a);
_19.push(_29);
var _2a=_1a.getAttribute("jsId");
if(_2a){
d.setObject(_2a,_29);
}
if(!ps){
d.forEach(_24,function(_2b){
d.connect(_29,_2b.event,null,_2b.func);
});
d.forEach(_25,function(_2c){
_2c.call(_29);
});
}
});
if(!_17._started){
d.forEach(_19,function(_2d){
if(!_18.noStart&&_2d&&_2d.startup&&!_2d._started&&(!_2d.getParent||!_2d.getParent())){
_2d.startup();
}
});
}
return _19;
};
this.parse=function(_2e,_2f){
var _30;
if(!_2f&&_2e&&_2e.rootNode){
_2f=_2e;
_30=_2f.rootNode;
}else{
_30=_2e;
}
var _31=d.query(this._query,_30);
return this.instantiate(_31,null,_2f);
};
}();
(function(){
var _32=function(){
if(dojo.config.parseOnLoad){
dojo.parser.parse();
}
};
if(dojo.exists("dijit.wai.onload")&&(dijit.wai.onload===dojo._loaders[0])){
dojo._loaders.splice(1,0,_32);
}else{
dojo._loaders.unshift(_32);
}
})();
}


;if(!dojo._hasResource["dojo.cache"]){
dojo._hasResource["dojo.cache"]=true;
dojo.provide("dojo.cache");
(function(){
var _1={};
dojo.cache=function(_2,_3,_4){
if(typeof _2=="string"){
var _5=dojo.moduleUrl(_2,_3);
}else{
_5=_2;
_4=_3;
}
var _6=_5.toString();
var _7=_4;
if(_4!==undefined&&!dojo.isString(_4)){
_7=("value" in _4?_4.value:undefined);
}
var _8=_4&&_4.sanitize?true:false;
if(_7||_7===null){
if(_7==null){
delete _1[_6];
}else{
_7=_1[_6]=_8?dojo.cache._sanitize(_7):_7;
}
}else{
if(!(_6 in _1)){
_7=dojo._getText(_6);
_1[_6]=_8?dojo.cache._sanitize(_7):_7;
}
_7=_1[_6];
}
return _7;
};
dojo.cache._sanitize=function(_9){
if(_9){
_9=_9.replace(/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,"");
var _a=_9.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_a){
_9=_a[1];
}
}else{
_9="";
}
return _9;
};
})();
}


;if(!dojo._hasResource["dijit._Templated"]){
dojo._hasResource["dijit._Templated"]=true;
dojo.provide("dijit._Templated");
dojo.require("dijit._Widget");
dojo.require("dojo.string");
dojo.require("dojo.parser");
dojo.require("dojo.cache");
dojo.declare("dijit._Templated",null,{templateString:null,templatePath:null,widgetsInTemplate:false,_skipNodeCache:false,_earlyTemplatedStartup:false,constructor:function(){
this._attachPoints=[];
},_stringRepl:function(_1){
var _2=this.declaredClass,_3=this;
return dojo.string.substitute(_1,this,function(_4,_5){
if(_5.charAt(0)=="!"){
_4=dojo.getObject(_5.substr(1),false,_3);
}
if(typeof _4=="undefined"){
throw new Error(_2+" template:"+_5);
}
if(_4==null){
return "";
}
return _5.charAt(0)=="!"?_4:_4.toString().replace(/"/g,"&quot;");
},this);
},buildRendering:function(){
var _6=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var _7;
if(dojo.isString(_6)){
_7=dojo._toDom(this._stringRepl(_6));
if(_7.nodeType!=1){
throw new Error("Invalid template: "+_6);
}
}else{
_7=_6.cloneNode(true);
}
this.domNode=_7;
this._attachTemplateNodes(_7);
if(this.widgetsInTemplate){
var _8=dojo.parser,_9,_a;
if(_8._query!="[dojoType]"){
_9=_8._query;
_a=_8._attrName;
_8._query="[dojoType]";
_8._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(_7,{noStart:!this._earlyTemplatedStartup}));
if(_9){
_8._query=_9;
_8._attrName=_a;
}
this._supportingWidgets=dijit.findWidgets(_7);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
},_fillContent:function(_b){
var _c=this.containerNode;
if(_b&&_c){
while(_b.hasChildNodes()){
_c.appendChild(_b.firstChild);
}
}
},_attachTemplateNodes:function(_d,_e){
_e=_e||function(n,p){
return n.getAttribute(p);
};
var _f=dojo.isArray(_d)?_d:(_d.all||_d.getElementsByTagName("*"));
var x=dojo.isArray(_d)?0:-1;
for(;x<_f.length;x++){
var _10=(x==-1)?_d:_f[x];
if(this.widgetsInTemplate&&_e(_10,"dojoType")){
continue;
}
var _11=_e(_10,"dojoAttachPoint");
if(_11){
var _12,_13=_11.split(/\s*,\s*/);
while((_12=_13.shift())){
if(dojo.isArray(this[_12])){
this[_12].push(_10);
}else{
this[_12]=_10;
}
this._attachPoints.push(_12);
}
}
var _14=_e(_10,"dojoAttachEvent");
if(_14){
var _15,_16=_14.split(/\s*,\s*/);
var _17=dojo.trim;
while((_15=_16.shift())){
if(_15){
var _18=null;
if(_15.indexOf(":")!=-1){
var _19=_15.split(":");
_15=_17(_19[0]);
_18=_17(_19[1]);
}else{
_15=_17(_15);
}
if(!_18){
_18=_15;
}
this.connect(_10,_15,_18);
}
}
}
var _1a=_e(_10,"waiRole");
if(_1a){
dijit.setWaiRole(_10,_1a);
}
var _1b=_e(_10,"waiState");
if(_1b){
dojo.forEach(_1b.split(/\s*,\s*/),function(_1c){
if(_1c.indexOf("-")!=-1){
var _1d=_1c.split("-");
dijit.setWaiState(_10,_1d[0],_1d[1]);
}
});
}
}
},startup:function(){
dojo.forEach(this._startupWidgets,function(w){
if(w&&!w._started&&w.startup){
w.startup();
}
});
this.inherited(arguments);
},destroyRendering:function(){
dojo.forEach(this._attachPoints,function(_1e){
delete this[_1e];
},this);
this._attachPoints=[];
this.inherited(arguments);
}});
dijit._Templated._templateCache={};
dijit._Templated.getCachedTemplate=function(_1f,_20,_21){
var _22=dijit._Templated._templateCache;
var key=_20||_1f;
var _23=_22[key];
if(_23){
try{
if(!_23.ownerDocument||_23.ownerDocument==dojo.doc){
return _23;
}
}
catch(e){
}
dojo.destroy(_23);
}
if(!_20){
_20=dojo.cache(_1f,{sanitize:true});
}
_20=dojo.string.trim(_20);
if(_21||_20.match(/\$\{([^\}]+)\}/g)){
return (_22[key]=_20);
}else{
var _24=dojo._toDom(_20);
if(_24.nodeType!=1){
throw new Error("Invalid template: "+_20);
}
return (_22[key]=_24);
}
};
if(dojo.isIE){
dojo.addOnWindowUnload(function(){
var _25=dijit._Templated._templateCache;
for(var key in _25){
var _26=_25[key];
if(typeof _26=="object"){
dojo.destroy(_26);
}
delete _25[key];
}
});
}
dojo.extend(dijit._Widget,{dojoAttachEvent:"",dojoAttachPoint:"",waiRole:"",waiState:""});
}


;if(!dojo._hasResource["dijit._Contained"]){
dojo._hasResource["dijit._Contained"]=true;
dojo.provide("dijit._Contained");
dojo.declare("dijit._Contained",null,{getParent:function(){
var _1=dijit.getEnclosingWidget(this.domNode.parentNode);
return _1&&_1.isContainer?_1:null;
},_getSibling:function(_2){
var _3=this.domNode;
do{
_3=_3[_2+"Sibling"];
}while(_3&&_3.nodeType!=1);
return _3&&dijit.byNode(_3);
},getPreviousSibling:function(){
return this._getSibling("previous");
},getNextSibling:function(){
return this._getSibling("next");
},getIndexInParent:function(){
var p=this.getParent();
if(!p||!p.getIndexOfChild){
return -1;
}
return p.getIndexOfChild(this);
}});
}


;if(!dojo._hasResource["dijit.MenuItem"]){
dojo._hasResource["dijit.MenuItem"]=true;
dojo.provide("dijit.MenuItem");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._Contained");
dojo.declare("dijit.MenuItem",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitem\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t\t<div dojoAttachPoint=\"arrowWrapper\" style=\"visibility: hidden\">\n\t\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuExpand\">\n\t\t\t<span class=\"dijitMenuExpandA11y\">+</span>\n\t\t</div>\n\t</td>\n</tr>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),label:"",iconClass:"",accelKey:"",disabled:false,_fillContent:function(_1){
if(_1&&!("label" in this.params)){
this.attr("label",_1.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.domNode,false);
var _2=this.id+"_text";
dojo.attr(this.containerNode,"id",_2);
if(this.accelKeyNode){
dojo.attr(this.accelKeyNode,"id",this.id+"_accel");
_2+=" "+this.id+"_accel";
}
dijit.setWaiState(this.domNode,"labelledby",_2);
},_onHover:function(){
dojo.addClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemHover(this);
},_onUnhover:function(){
dojo.removeClass(this.domNode,"dijitMenuItemHover");
this.getParent().onItemUnhover(this);
},_onClick:function(_3){
this.getParent().onItemClick(this,_3);
dojo.stopEvent(_3);
},onClick:function(_4){
},focus:function(){
try{
if(dojo.isIE==8){
this.containerNode.focus();
}
dijit.focus(this.focusNode);
}
catch(e){
}
},_onFocus:function(){
this._setSelected(true);
this.getParent()._onItemFocus(this);
this.inherited(arguments);
},_setSelected:function(_5){
dojo.toggleClass(this.domNode,"dijitMenuItemSelected",_5);
},setLabel:function(_6){
dojo.deprecated("dijit.MenuItem.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_6);
},setDisabled:function(_7){
dojo.deprecated("dijit.Menu.setDisabled() is deprecated.  Use attr('disabled', bool) instead.","","2.0");
this.attr("disabled",_7);
},_setDisabledAttr:function(_8){
this.disabled=_8;
dojo[_8?"addClass":"removeClass"](this.domNode,"dijitMenuItemDisabled");
dijit.setWaiState(this.focusNode,"disabled",_8?"true":"false");
},_setAccelKeyAttr:function(_9){
this.accelKey=_9;
this.accelKeyNode.style.display=_9?"":"none";
this.accelKeyNode.innerHTML=_9;
dojo.attr(this.containerNode,"colSpan",_9?"1":"2");
}});
}


;if(!dojo._hasResource["dijit.CheckedMenuItem"]){
dojo._hasResource["dijit.CheckedMenuItem"]=true;
dojo.provide("dijit.CheckedMenuItem");
dojo.require("dijit.MenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_1){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_1);
dijit.setWaiState(this.domNode,"checked",_1);
this.checked=_1;
},onChange:function(_2){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["dojo.dnd.common"]){
dojo._hasResource["dojo.dnd.common"]=true;
dojo.provide("dojo.dnd.common");
dojo.dnd.getCopyKeyState=dojo.isCopyKeyPressed;
dojo.dnd._uniqueId=0;
dojo.dnd.getUniqueId=function(){
var id;
do{
id=dojo._scopeName+"Unique"+(++dojo.dnd._uniqueId);
}while(dojo.byId(id));
return id;
};
dojo.dnd._empty={};
dojo.dnd.isFormElement=function(e){
var t=e.target;
if(t.nodeType==3){
t=t.parentNode;
}
return " button textarea input select option ".indexOf(" "+t.tagName.toLowerCase()+" ")>=0;
};
}


;if(!dojo._hasResource["dojo.dnd.autoscroll"]){
dojo._hasResource["dojo.dnd.autoscroll"]=true;
dojo.provide("dojo.dnd.autoscroll");
dojo.dnd.getViewport=function(){
var d=dojo.doc,dd=d.documentElement,w=window,b=dojo.body();
if(dojo.isMozilla){
return {w:dd.clientWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&w.innerWidth){
return {w:w.innerWidth,h:w.innerHeight};
}else{
if(!dojo.isOpera&&dd&&dd.clientWidth){
return {w:dd.clientWidth,h:dd.clientHeight};
}else{
if(b.clientWidth){
return {w:b.clientWidth,h:b.clientHeight};
}
}
}
}
return null;
};
dojo.dnd.V_TRIGGER_AUTOSCROLL=32;
dojo.dnd.H_TRIGGER_AUTOSCROLL=32;
dojo.dnd.V_AUTOSCROLL_VALUE=16;
dojo.dnd.H_AUTOSCROLL_VALUE=16;
dojo.dnd.autoScroll=function(e){
var v=dojo.dnd.getViewport(),dx=0,dy=0;
if(e.clientX<dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=-dojo.dnd.H_AUTOSCROLL_VALUE;
}else{
if(e.clientX>v.w-dojo.dnd.H_TRIGGER_AUTOSCROLL){
dx=dojo.dnd.H_AUTOSCROLL_VALUE;
}
}
if(e.clientY<dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=-dojo.dnd.V_AUTOSCROLL_VALUE;
}else{
if(e.clientY>v.h-dojo.dnd.V_TRIGGER_AUTOSCROLL){
dy=dojo.dnd.V_AUTOSCROLL_VALUE;
}
}
window.scrollBy(dx,dy);
};
dojo.dnd._validNodes={"div":1,"p":1,"td":1};
dojo.dnd._validOverflow={"auto":1,"scroll":1};
dojo.dnd.autoScrollNodes=function(e){
for(var n=e.target;n;){
if(n.nodeType==1&&(n.tagName.toLowerCase() in dojo.dnd._validNodes)){
var s=dojo.getComputedStyle(n);
if(s.overflow.toLowerCase() in dojo.dnd._validOverflow){
var b=dojo._getContentBox(n,s),t=dojo.position(n,true);
var w=Math.min(dojo.dnd.H_TRIGGER_AUTOSCROLL,b.w/2),h=Math.min(dojo.dnd.V_TRIGGER_AUTOSCROLL,b.h/2),rx=e.pageX-t.x,ry=e.pageY-t.y,dx=0,dy=0;
if(dojo.isWebKit||dojo.isOpera){
rx+=dojo.body().scrollLeft,ry+=dojo.body().scrollTop;
}
if(rx>0&&rx<b.w){
if(rx<w){
dx=-w;
}else{
if(rx>b.w-w){
dx=w;
}
}
}
if(ry>0&&ry<b.h){
if(ry<h){
dy=-h;
}else{
if(ry>b.h-h){
dy=h;
}
}
}
var _1=n.scrollLeft,_2=n.scrollTop;
n.scrollLeft=n.scrollLeft+dx;
n.scrollTop=n.scrollTop+dy;
if(_1!=n.scrollLeft||_2!=n.scrollTop){
return;
}
}
}
try{
n=n.parentNode;
}
catch(x){
n=null;
}
}
dojo.dnd.autoScroll(e);
};
}


;if(!dojo._hasResource["dojo.dnd.Mover"]){
dojo._hasResource["dojo.dnd.Mover"]=true;
dojo.provide("dojo.dnd.Mover");
dojo.require("dojo.dnd.common");
dojo.require("dojo.dnd.autoscroll");
dojo.declare("dojo.dnd.Mover",null,{constructor:function(_1,e,_2){
this.node=dojo.byId(_1);
this.marginBox={l:e.pageX,t:e.pageY};
this.mouseButton=e.button;
var h=this.host=_2,d=_1.ownerDocument,_3=dojo.connect(d,"onmousemove",this,"onFirstMove");
this.events=[dojo.connect(d,"onmousemove",this,"onMouseMove"),dojo.connect(d,"onmouseup",this,"onMouseUp"),dojo.connect(d,"ondragstart",dojo.stopEvent),dojo.connect(d.body,"onselectstart",dojo.stopEvent),_3];
if(h&&h.onMoveStart){
h.onMoveStart(this);
}
},onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox;
this.host.onMove(this,{l:m.l+e.pageX,t:m.t+e.pageY});
dojo.stopEvent(e);
},onMouseUp:function(e){
if(dojo.isWebKit&&dojo.isMac&&this.mouseButton==2?e.button==0:this.mouseButton==e.button){
this.destroy();
}
dojo.stopEvent(e);
},onFirstMove:function(){
var s=this.node.style,l,t,h=this.host;
switch(s.position){
case "relative":
case "absolute":
l=Math.round(parseFloat(s.left));
t=Math.round(parseFloat(s.top));
break;
default:
s.position="absolute";
var m=dojo.marginBox(this.node);
var b=dojo.doc.body;
var bs=dojo.getComputedStyle(b);
var bm=dojo._getMarginBox(b,bs);
var bc=dojo._getContentBox(b,bs);
l=m.l-(bc.l-bm.l);
t=m.t-(bc.t-bm.t);
break;
}
this.marginBox.l=l-this.marginBox.l;
this.marginBox.t=t-this.marginBox.t;
if(h&&h.onFirstMove){
h.onFirstMove(this);
}
dojo.disconnect(this.events.pop());
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
var h=this.host;
if(h&&h.onMoveStop){
h.onMoveStop(this);
}
this.events=this.node=this.host=null;
}});
}


;if(!dojo._hasResource["dojo.dnd.Moveable"]){
dojo._hasResource["dojo.dnd.Moveable"]=true;
dojo.provide("dojo.dnd.Moveable");
dojo.require("dojo.dnd.Mover");
dojo.declare("dojo.dnd.Moveable",null,{handle:"",delay:0,skip:false,constructor:function(_1,_2){
this.node=dojo.byId(_1);
if(!_2){
_2={};
}
this.handle=_2.handle?dojo.byId(_2.handle):null;
if(!this.handle){
this.handle=this.node;
}
this.delay=_2.delay>0?_2.delay:0;
this.skip=_2.skip;
this.mover=_2.mover?_2.mover:dojo.dnd.Mover;
this.events=[dojo.connect(this.handle,"onmousedown",this,"onMouseDown"),dojo.connect(this.handle,"ondragstart",this,"onSelectStart"),dojo.connect(this.handle,"onselectstart",this,"onSelectStart")];
},markupFactory:function(_3,_4){
return new dojo.dnd.Moveable(_4,_3);
},destroy:function(){
dojo.forEach(this.events,dojo.disconnect);
this.events=this.node=this.handle=null;
},onMouseDown:function(e){
if(this.skip&&dojo.dnd.isFormElement(e)){
return;
}
if(this.delay){
this.events.push(dojo.connect(this.handle,"onmousemove",this,"onMouseMove"),dojo.connect(this.handle,"onmouseup",this,"onMouseUp"));
this._lastX=e.pageX;
this._lastY=e.pageY;
}else{
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseMove:function(e){
if(Math.abs(e.pageX-this._lastX)>this.delay||Math.abs(e.pageY-this._lastY)>this.delay){
this.onMouseUp(e);
this.onDragDetected(e);
}
dojo.stopEvent(e);
},onMouseUp:function(e){
for(var i=0;i<2;++i){
dojo.disconnect(this.events.pop());
}
dojo.stopEvent(e);
},onSelectStart:function(e){
if(!this.skip||!dojo.dnd.isFormElement(e)){
dojo.stopEvent(e);
}
},onDragDetected:function(e){
new this.mover(this.node,e,this);
},onMoveStart:function(_5){
dojo.publish("/dnd/move/start",[_5]);
dojo.addClass(dojo.body(),"dojoMove");
dojo.addClass(this.node,"dojoMoveItem");
},onMoveStop:function(_6){
dojo.publish("/dnd/move/stop",[_6]);
dojo.removeClass(dojo.body(),"dojoMove");
dojo.removeClass(this.node,"dojoMoveItem");
},onFirstMove:function(_7){
},onMove:function(_8,_9){
this.onMoving(_8,_9);
var s=_8.node.style;
s.left=_9.l+"px";
s.top=_9.t+"px";
this.onMoved(_8,_9);
},onMoving:function(_a,_b){
},onMoved:function(_c,_d){
}});
}


;if(!dojo._hasResource["dojo.dnd.move"]){
dojo._hasResource["dojo.dnd.move"]=true;
dojo.provide("dojo.dnd.move");
dojo.require("dojo.dnd.Mover");
dojo.require("dojo.dnd.Moveable");
dojo.declare("dojo.dnd.move.constrainedMoveable",dojo.dnd.Moveable,{constraints:function(){
},within:false,markupFactory:function(_1,_2){
return new dojo.dnd.move.constrainedMoveable(_2,_1);
},constructor:function(_3,_4){
if(!_4){
_4={};
}
this.constraints=_4.constraints;
this.within=_4.within;
},onFirstMove:function(_5){
var c=this.constraintBox=this.constraints.call(this,_5);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(this.within){
var mb=dojo.marginBox(_5.node);
c.r-=mb.w;
c.b-=mb.h;
}
},onMove:function(_6,_7){
var c=this.constraintBox,s=_6.node.style;
s.left=(_7.l<c.l?c.l:c.r<_7.l?c.r:_7.l)+"px";
s.top=(_7.t<c.t?c.t:c.b<_7.t?c.b:_7.t)+"px";
}});
dojo.declare("dojo.dnd.move.boxConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{box:{},markupFactory:function(_8,_9){
return new dojo.dnd.move.boxConstrainedMoveable(_9,_8);
},constructor:function(_a,_b){
var _c=_b&&_b.box;
this.constraints=function(){
return _c;
};
}});
dojo.declare("dojo.dnd.move.parentConstrainedMoveable",dojo.dnd.move.constrainedMoveable,{area:"content",markupFactory:function(_d,_e){
return new dojo.dnd.move.parentConstrainedMoveable(_e,_d);
},constructor:function(_f,_10){
var _11=_10&&_10.area;
this.constraints=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_11=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_11=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_11=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
}});
dojo.dnd.move.constrainedMover=function(fun,_12){
dojo.deprecated("dojo.dnd.move.constrainedMover, use dojo.dnd.move.constrainedMoveable instead");
var _13=function(_14,e,_15){
dojo.dnd.Mover.call(this,_14,e,_15);
};
dojo.extend(_13,dojo.dnd.Mover.prototype);
dojo.extend(_13,{onMouseMove:function(e){
dojo.dnd.autoScroll(e);
var m=this.marginBox,c=this.constraintBox,l=m.l+e.pageX,t=m.t+e.pageY;
l=l<c.l?c.l:c.r<l?c.r:l;
t=t<c.t?c.t:c.b<t?c.b:t;
this.host.onMove(this,{l:l,t:t});
},onFirstMove:function(){
dojo.dnd.Mover.prototype.onFirstMove.call(this);
var c=this.constraintBox=fun.call(this);
c.r=c.l+c.w;
c.b=c.t+c.h;
if(_12){
var mb=dojo.marginBox(this.node);
c.r-=mb.w;
c.b-=mb.h;
}
}});
return _13;
};
dojo.dnd.move.boxConstrainedMover=function(box,_16){
dojo.deprecated("dojo.dnd.move.boxConstrainedMover, use dojo.dnd.move.boxConstrainedMoveable instead");
return dojo.dnd.move.constrainedMover(function(){
return box;
},_16);
};
dojo.dnd.move.parentConstrainedMover=function(_17,_18){
dojo.deprecated("dojo.dnd.move.parentConstrainedMover, use dojo.dnd.move.parentConstrainedMoveable instead");
var fun=function(){
var n=this.node.parentNode,s=dojo.getComputedStyle(n),mb=dojo._getMarginBox(n,s);
if(_17=="margin"){
return mb;
}
var t=dojo._getMarginExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_17=="border"){
return mb;
}
t=dojo._getBorderExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
if(_17=="padding"){
return mb;
}
t=dojo._getPadExtents(n,s);
mb.l+=t.l,mb.t+=t.t,mb.w-=t.w,mb.h-=t.h;
return mb;
};
return dojo.dnd.move.constrainedMover(fun,_18);
};
dojo.dnd.constrainedMover=dojo.dnd.move.constrainedMover;
dojo.dnd.boxConstrainedMover=dojo.dnd.move.boxConstrainedMover;
dojo.dnd.parentConstrainedMover=dojo.dnd.move.parentConstrainedMover;
}


;if(!dojo._hasResource["dojo.dnd.TimedMoveable"]){
dojo._hasResource["dojo.dnd.TimedMoveable"]=true;
dojo.provide("dojo.dnd.TimedMoveable");
dojo.require("dojo.dnd.Moveable");
(function(){
var _1=dojo.dnd.Moveable.prototype.onMove;
dojo.declare("dojo.dnd.TimedMoveable",dojo.dnd.Moveable,{timeout:40,constructor:function(_2,_3){
if(!_3){
_3={};
}
if(_3.timeout&&typeof _3.timeout=="number"&&_3.timeout>=0){
this.timeout=_3.timeout;
}
},markupFactory:function(_4,_5){
return new dojo.dnd.TimedMoveable(_5,_4);
},onMoveStop:function(_6){
if(_6._timer){
clearTimeout(_6._timer);
_1.call(this,_6,_6._leftTop);
}
dojo.dnd.Moveable.prototype.onMoveStop.apply(this,arguments);
},onMove:function(_7,_8){
_7._leftTop=_8;
if(!_7._timer){
var _9=this;
_7._timer=setTimeout(function(){
_7._timer=null;
_1.call(_9,_7,_7._leftTop);
},this.timeout);
}
}});
})();
}


;if(!dojo._hasResource["dojo.fx.Toggler"]){
dojo._hasResource["dojo.fx.Toggler"]=true;
dojo.provide("dojo.fx.Toggler");
dojo.declare("dojo.fx.Toggler",null,{node:null,showFunc:dojo.fadeIn,hideFunc:dojo.fadeOut,showDuration:200,hideDuration:200,constructor:function(_1){
var _2=this;
dojo.mixin(_2,_1);
_2.node=_1.node;
_2._showArgs=dojo.mixin({},_1);
_2._showArgs.node=_2.node;
_2._showArgs.duration=_2.showDuration;
_2.showAnim=_2.showFunc(_2._showArgs);
_2._hideArgs=dojo.mixin({},_1);
_2._hideArgs.node=_2.node;
_2._hideArgs.duration=_2.hideDuration;
_2.hideAnim=_2.hideFunc(_2._hideArgs);
dojo.connect(_2.showAnim,"beforeBegin",dojo.hitch(_2.hideAnim,"stop",true));
dojo.connect(_2.hideAnim,"beforeBegin",dojo.hitch(_2.showAnim,"stop",true));
},show:function(_3){
return this.showAnim.play(_3||0);
},hide:function(_4){
return this.hideAnim.play(_4||0);
}});
}


;if(!dojo._hasResource["dojo.fx"]){
dojo._hasResource["dojo.fx"]=true;
dojo.provide("dojo.fx");
dojo.require("dojo.fx.Toggler");
(function(){
var d=dojo,_1={_fire:function(_2,_3){
if(this[_2]){
this[_2].apply(this,_3||[]);
}
return this;
}};
var _4=function(_5){
this._index=-1;
this._animations=_5||[];
this._current=this._onAnimateCtx=this._onEndCtx=null;
this.duration=0;
d.forEach(this._animations,function(a){
this.duration+=a.duration;
if(a.delay){
this.duration+=a.delay;
}
},this);
};
d.extend(_4,{_onAnimate:function(){
this._fire("onAnimate",arguments);
},_onEnd:function(){
d.disconnect(this._onAnimateCtx);
d.disconnect(this._onEndCtx);
this._onAnimateCtx=this._onEndCtx=null;
if(this._index+1==this._animations.length){
this._fire("onEnd");
}else{
this._current=this._animations[++this._index];
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play(0,true);
}
},play:function(_6,_7){
if(!this._current){
this._current=this._animations[this._index=0];
}
if(!_7&&this._current.status()=="playing"){
return this;
}
var _8=d.connect(this._current,"beforeBegin",this,function(){
this._fire("beforeBegin");
}),_9=d.connect(this._current,"onBegin",this,function(_a){
this._fire("onBegin",arguments);
}),_b=d.connect(this._current,"onPlay",this,function(_c){
this._fire("onPlay",arguments);
d.disconnect(_8);
d.disconnect(_9);
d.disconnect(_b);
});
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
this._onAnimateCtx=d.connect(this._current,"onAnimate",this,"_onAnimate");
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
this._onEndCtx=d.connect(this._current,"onEnd",this,"_onEnd");
this._current.play.apply(this._current,arguments);
return this;
},pause:function(){
if(this._current){
var e=d.connect(this._current,"onPause",this,function(_d){
this._fire("onPause",arguments);
d.disconnect(e);
});
this._current.pause();
}
return this;
},gotoPercent:function(_e,_f){
this.pause();
var _10=this.duration*_e;
this._current=null;
d.some(this._animations,function(a){
if(a.duration<=_10){
this._current=a;
return true;
}
_10-=a.duration;
return false;
});
if(this._current){
this._current.gotoPercent(_10/this._current.duration,_f);
}
return this;
},stop:function(_11){
if(this._current){
if(_11){
for(;this._index+1<this._animations.length;++this._index){
this._animations[this._index].stop(true);
}
this._current=this._animations[this._index];
}
var e=d.connect(this._current,"onStop",this,function(arg){
this._fire("onStop",arguments);
d.disconnect(e);
});
this._current.stop();
}
return this;
},status:function(){
return this._current?this._current.status():"stopped";
},destroy:function(){
if(this._onAnimateCtx){
d.disconnect(this._onAnimateCtx);
}
if(this._onEndCtx){
d.disconnect(this._onEndCtx);
}
}});
d.extend(_4,_1);
dojo.fx.chain=function(_12){
return new _4(_12);
};
var _13=function(_14){
this._animations=_14||[];
this._connects=[];
this._finished=0;
this.duration=0;
d.forEach(_14,function(a){
var _15=a.duration;
if(a.delay){
_15+=a.delay;
}
if(this.duration<_15){
this.duration=_15;
}
this._connects.push(d.connect(a,"onEnd",this,"_onEnd"));
},this);
this._pseudoAnimation=new d.Animation({curve:[0,1],duration:this.duration});
var _16=this;
d.forEach(["beforeBegin","onBegin","onPlay","onAnimate","onPause","onStop","onEnd"],function(evt){
_16._connects.push(d.connect(_16._pseudoAnimation,evt,function(){
_16._fire(evt,arguments);
}));
});
};
d.extend(_13,{_doAction:function(_17,_18){
d.forEach(this._animations,function(a){
a[_17].apply(a,_18);
});
return this;
},_onEnd:function(){
if(++this._finished>this._animations.length){
this._fire("onEnd");
}
},_call:function(_19,_1a){
var t=this._pseudoAnimation;
t[_19].apply(t,_1a);
},play:function(_1b,_1c){
this._finished=0;
this._doAction("play",arguments);
this._call("play",arguments);
return this;
},pause:function(){
this._doAction("pause",arguments);
this._call("pause",arguments);
return this;
},gotoPercent:function(_1d,_1e){
var ms=this.duration*_1d;
d.forEach(this._animations,function(a){
a.gotoPercent(a.duration<ms?1:(ms/a.duration),_1e);
});
this._call("gotoPercent",arguments);
return this;
},stop:function(_1f){
this._doAction("stop",arguments);
this._call("stop",arguments);
return this;
},status:function(){
return this._pseudoAnimation.status();
},destroy:function(){
d.forEach(this._connects,dojo.disconnect);
}});
d.extend(_13,_1);
dojo.fx.combine=function(_20){
return new _13(_20);
};
dojo.fx.wipeIn=function(_21){
var _22=_21.node=d.byId(_21.node),s=_22.style,o;
var _23=d.animateProperty(d.mixin({properties:{height:{start:function(){
o=s.overflow;
s.overflow="hidden";
if(s.visibility=="hidden"||s.display=="none"){
s.height="1px";
s.display="";
s.visibility="";
return 1;
}else{
var _24=d.style(_22,"height");
return Math.max(_24,1);
}
},end:function(){
return _22.scrollHeight;
}}}},_21));
d.connect(_23,"onEnd",function(){
s.height="auto";
s.overflow=o;
});
return _23;
};
dojo.fx.wipeOut=function(_25){
var _26=_25.node=d.byId(_25.node),s=_26.style,o;
var _27=d.animateProperty(d.mixin({properties:{height:{end:1}}},_25));
d.connect(_27,"beforeBegin",function(){
o=s.overflow;
s.overflow="hidden";
s.display="";
});
d.connect(_27,"onEnd",function(){
s.overflow=o;
s.height="auto";
s.display="none";
});
return _27;
};
dojo.fx.slideTo=function(_28){
var _29=_28.node=d.byId(_28.node),top=null,_2a=null;
var _2b=(function(n){
return function(){
var cs=d.getComputedStyle(n);
var pos=cs.position;
top=(pos=="absolute"?n.offsetTop:parseInt(cs.top)||0);
_2a=(pos=="absolute"?n.offsetLeft:parseInt(cs.left)||0);
if(pos!="absolute"&&pos!="relative"){
var ret=d.position(n,true);
top=ret.y;
_2a=ret.x;
n.style.position="absolute";
n.style.top=top+"px";
n.style.left=_2a+"px";
}
};
})(_29);
_2b();
var _2c=d.animateProperty(d.mixin({properties:{top:_28.top||0,left:_28.left||0}},_28));
d.connect(_2c,"beforeBegin",_2c,_2b);
return _2c;
};
})();
}


;if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_1){
if(_1.reset){
_1.reset();
}
});
},validate:function(){
var _2=false;
return dojo.every(dojo.map(this.getDescendants(),function(_3){
_3._hasBeenBlurred=true;
var _4=_3.disabled||!_3.validate||_3.validate();
if(!_4&&!_2){
dijit.scrollIntoView(_3.containerNode||_3.domNode);
_3.focus();
_2=true;
}
return _4;
}),function(_5){
return _5;
});
},setValues:function(_6){
dojo.deprecated(this.declaredClass+"::setValues() is deprecated. Use attr('value', val) instead.","","2.0");
return this.attr("value",_6);
},_setValueAttr:function(_7){
var _8={};
dojo.forEach(this.getDescendants(),function(_9){
if(!_9.name){
return;
}
var _a=_8[_9.name]||(_8[_9.name]=[]);
_a.push(_9);
});
for(var _b in _8){
if(!_8.hasOwnProperty(_b)){
continue;
}
var _c=_8[_b],_d=dojo.getObject(_b,false,_7);
if(_d===undefined){
continue;
}
if(!dojo.isArray(_d)){
_d=[_d];
}
if(typeof _c[0].checked=="boolean"){
dojo.forEach(_c,function(w,i){
w.attr("value",dojo.indexOf(_d,w.value)!=-1);
});
}else{
if(_c[0].multiple){
_c[0].attr("value",_d);
}else{
dojo.forEach(_c,function(w,i){
w.attr("value",_d[i]);
});
}
}
}
},getValues:function(){
dojo.deprecated(this.declaredClass+"::getValues() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
},_getValueAttr:function(){
var _e={};
dojo.forEach(this.getDescendants(),function(_f){
var _10=_f.name;
if(!_10||_f.disabled){
return;
}
var _11=_f.attr("value");
if(typeof _f.checked=="boolean"){
if(/Radio/.test(_f.declaredClass)){
if(_11!==false){
dojo.setObject(_10,_11,_e);
}else{
_11=dojo.getObject(_10,false,_e);
if(_11===undefined){
dojo.setObject(_10,null,_e);
}
}
}else{
var ary=dojo.getObject(_10,false,_e);
if(!ary){
ary=[];
dojo.setObject(_10,ary,_e);
}
if(_11!==false){
ary.push(_11);
}
}
}else{
var _12=dojo.getObject(_10,false,_e);
if(typeof _12!="undefined"){
if(dojo.isArray(_12)){
_12.push(_11);
}else{
dojo.setObject(_10,[_12,_11],_e);
}
}else{
dojo.setObject(_10,_11,_e);
}
}
});
return _e;
},isValid:function(){
this._invalidWidgets=dojo.filter(this.getDescendants(),function(_13){
return !_13.disabled&&_13.isValid&&!_13.isValid();
});
return !this._invalidWidgets.length;
},onValidStateChange:function(_14){
},_widgetChange:function(_15){
var _16=this._lastValidState;
if(!_15||this._lastValidState===undefined){
_16=this.isValid();
if(this._lastValidState===undefined){
this._lastValidState=_16;
}
}else{
if(_15.isValid){
this._invalidWidgets=dojo.filter(this._invalidWidgets||[],function(w){
return (w!=_15);
},this);
if(!_15.isValid()&&!_15.attr("disabled")){
this._invalidWidgets.push(_15);
}
_16=(this._invalidWidgets.length===0);
}
}
if(_16!==this._lastValidState){
this._lastValidState=_16;
this.onValidStateChange(_16);
}
},connectChildren:function(){
dojo.forEach(this._changeConnections,dojo.hitch(this,"disconnect"));
var _17=this;
var _18=this._changeConnections=[];
dojo.forEach(dojo.filter(this.getDescendants(),function(_19){
return _19.validate;
}),function(_1a){
_18.push(_17.connect(_1a,"validate",dojo.hitch(_17,"_widgetChange",_1a)));
_18.push(_17.connect(_1a,"_setDisabledAttr",dojo.hitch(_17,"_widgetChange",_1a)));
});
this._widgetChange(null);
},startup:function(){
this.inherited(arguments);
this._changeConnections=[];
this.connectChildren();
}});
}


;if(!dojo._hasResource["dijit._DialogMixin"]){
dojo._hasResource["dijit._DialogMixin"]=true;
dojo.provide("dijit._DialogMixin");
dojo.declare("dijit._DialogMixin",null,{attributeMap:dijit._Widget.prototype.attributeMap,execute:function(_1){
},onCancel:function(){
},onExecute:function(){
},_onSubmit:function(){
this.onExecute();
this.execute(this.attr("value"));
},_getFocusItems:function(_2){
var _3=dijit._getTabNavigable(dojo.byId(_2));
this._firstFocusItem=_3.lowest||_3.first||_2;
this._lastFocusItem=_3.last||_3.highest||this._firstFocusItem;
if(dojo.isMoz&&this._firstFocusItem.tagName.toLowerCase()=="input"&&dojo.getNodeProp(this._firstFocusItem,"type").toLowerCase()=="file"){
dojo.attr(_2,"tabIndex","0");
this._firstFocusItem=_2;
}
}});
}


;if(!dojo._hasResource["dijit.DialogUnderlay"]){
dojo._hasResource["dijit.DialogUnderlay"]=true;
dojo.provide("dijit.DialogUnderlay");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("dijit.DialogUnderlay",[dijit._Widget,dijit._Templated],{templateString:"<div class='dijitDialogUnderlayWrapper'><div class='dijitDialogUnderlay' dojoAttachPoint='node'></div></div>",dialogId:"","class":"",attributeMap:{id:"domNode"},_setDialogIdAttr:function(id){
dojo.attr(this.node,"id",id+"_underlay");
},_setClassAttr:function(_1){
this.node.className="dijitDialogUnderlay "+_1;
},postCreate:function(){
dojo.body().appendChild(this.domNode);
},layout:function(){
var is=this.node.style,os=this.domNode.style;
os.display="none";
var _2=dijit.getViewport();
os.top=_2.t+"px";
os.left=_2.l+"px";
is.width=_2.w+"px";
is.height=_2.h+"px";
os.display="block";
},show:function(){
this.domNode.style.display="block";
this.layout();
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
},hide:function(){
this.bgIframe.destroy();
this.domNode.style.display="none";
},uninitialize:function(){
if(this.bgIframe){
this.bgIframe.destroy();
}
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["dijit._Container"]){
dojo._hasResource["dijit._Container"]=true;
dojo.provide("dijit._Container");
dojo.declare("dijit._Container",null,{isContainer:true,buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},addChild:function(_1,_2){
var _3=this.containerNode;
if(_2&&typeof _2=="number"){
var _4=this.getChildren();
if(_4&&_4.length>=_2){
_3=_4[_2-1].domNode;
_2="after";
}
}
dojo.place(_1.domNode,_3,_2);
if(this._started&&!_1._started){
_1.startup();
}
},removeChild:function(_5){
if(typeof _5=="number"&&_5>0){
_5=this.getChildren()[_5];
}
if(_5&&_5.domNode){
var _6=_5.domNode;
_6.parentNode.removeChild(_6);
}
},getChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).map(dijit.byNode);
},hasChildren:function(){
return dojo.query("> [widgetId]",this.containerNode).length>0;
},destroyDescendants:function(_7){
dojo.forEach(this.getChildren(),function(_8){
_8.destroyRecursive(_7);
});
},_getSiblingOfChild:function(_9,_a){
var _b=_9.domNode,_c=(_a>0?"nextSibling":"previousSibling");
do{
_b=_b[_c];
}while(_b&&(_b.nodeType!=1||!dijit.byNode(_b)));
return _b&&dijit.byNode(_b);
},getIndexOfChild:function(_d){
return dojo.indexOf(this.getChildren(),_d);
},startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_e){
_e.startup();
});
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["dijit.layout._LayoutWidget"]){
dojo._hasResource["dijit.layout._LayoutWidget"]=true;
dojo.provide("dijit.layout._LayoutWidget");
dojo.require("dijit._Widget");
dojo.require("dijit._Container");
dojo.require("dijit._Contained");
dojo.declare("dijit.layout._LayoutWidget",[dijit._Widget,dijit._Container,dijit._Contained],{baseClass:"dijitLayoutContainer",isLayoutContainer:true,postCreate:function(){
dojo.addClass(this.domNode,"dijitContainer");
dojo.addClass(this.domNode,this.baseClass);
this.inherited(arguments);
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
var _1=this.getParent&&this.getParent();
if(!(_1&&_1.isLayoutContainer)){
this.resize();
this.connect(dojo.isIE?this.domNode:dojo.global,"onresize",function(){
this.resize();
});
}
},resize:function(_2,_3){
var _4=this.domNode;
if(_2){
dojo.marginBox(_4,_2);
if(_2.t){
_4.style.top=_2.t+"px";
}
if(_2.l){
_4.style.left=_2.l+"px";
}
}
var mb=_3||{};
dojo.mixin(mb,_2||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(_4),mb);
}
var cs=dojo.getComputedStyle(_4);
var me=dojo._getMarginExtents(_4,cs);
var be=dojo._getBorderExtents(_4,cs);
var bb=(this._borderBox={w:mb.w-(me.w+be.w),h:mb.h-(me.h+be.h)});
var pe=dojo._getPadExtents(_4,cs);
this._contentBox={l:dojo._toPixelValue(_4,cs.paddingLeft),t:dojo._toPixelValue(_4,cs.paddingTop),w:bb.w-pe.w,h:bb.h-pe.h};
this.layout();
},layout:function(){
},_setupChild:function(_5){
dojo.addClass(_5.domNode,this.baseClass+"-child");
if(_5.baseClass){
dojo.addClass(_5.domNode,this.baseClass+"-"+_5.baseClass);
}
},addChild:function(_6,_7){
this.inherited(arguments);
if(this._started){
this._setupChild(_6);
}
},removeChild:function(_8){
dojo.removeClass(_8.domNode,this.baseClass+"-child");
if(_8.baseClass){
dojo.removeClass(_8.domNode,this.baseClass+"-"+_8.baseClass);
}
this.inherited(arguments);
}});
dijit.layout.marginBox2contentBox=function(_9,mb){
var cs=dojo.getComputedStyle(_9);
var me=dojo._getMarginExtents(_9,cs);
var pb=dojo._getPadBorderExtents(_9,cs);
return {l:dojo._toPixelValue(_9,cs.paddingLeft),t:dojo._toPixelValue(_9,cs.paddingTop),w:mb.w-(me.w+pb.w),h:mb.h-(me.h+pb.h)};
};
(function(){
var _a=function(_b){
return _b.substring(0,1).toUpperCase()+_b.substring(1);
};
var _c=function(_d,_e){
_d.resize?_d.resize(_e):dojo.marginBox(_d.domNode,_e);
dojo.mixin(_d,dojo.marginBox(_d.domNode));
dojo.mixin(_d,_e);
};
dijit.layout.layoutChildren=function(_f,dim,_10){
dim=dojo.mixin({},dim);
dojo.addClass(_f,"dijitLayoutContainer");
_10=dojo.filter(_10,function(_11){
return _11.layoutAlign!="client";
}).concat(dojo.filter(_10,function(_12){
return _12.layoutAlign=="client";
}));
dojo.forEach(_10,function(_13){
var elm=_13.domNode,pos=_13.layoutAlign;
var _14=elm.style;
_14.left=dim.l+"px";
_14.top=dim.t+"px";
_14.bottom=_14.right="auto";
dojo.addClass(elm,"dijitAlign"+_a(pos));
if(pos=="top"||pos=="bottom"){
_c(_13,{w:dim.w});
dim.h-=_13.h;
if(pos=="top"){
dim.t+=_13.h;
}else{
_14.top=dim.t+dim.h+"px";
}
}else{
if(pos=="left"||pos=="right"){
_c(_13,{h:dim.h});
dim.w-=_13.w;
if(pos=="left"){
dim.l+=_13.w;
}else{
_14.left=dim.l+dim.w+"px";
}
}else{
if(pos=="client"){
_c(_13,dim);
}
}
}
});
};
})();
}


;if(!dojo._hasResource["dojo.html"]){
dojo._hasResource["dojo.html"]=true;
dojo.provide("dojo.html");
dojo.require("dojo.parser");
(function(){
var _1=0,d=dojo;
dojo.html._secureForInnerHtml=function(_2){
return _2.replace(/(?:\s*<!DOCTYPE\s[^>]+>|<title[^>]*>[\s\S]*?<\/title>)/ig,"");
};
dojo.html._emptyNode=dojo.empty;
dojo.html._setNodeContent=function(_3,_4){
d.empty(_3);
if(_4){
if(typeof _4=="string"){
_4=d._toDom(_4,_3.ownerDocument);
}
if(!_4.nodeType&&d.isArrayLike(_4)){
for(var _5=_4.length,i=0;i<_4.length;i=_5==_4.length?i+1:0){
d.place(_4[i],_3,"last");
}
}else{
d.place(_4,_3,"last");
}
}
return _3;
};
dojo.declare("dojo.html._ContentSetter",null,{node:"",content:"",id:"",cleanContent:false,extractContent:false,parseContent:false,constructor:function(_6,_7){
dojo.mixin(this,_6||{});
_7=this.node=dojo.byId(this.node||_7);
if(!this.id){
this.id=["Setter",(_7)?_7.id||_7.tagName:"",_1++].join("_");
}
if(!(this.node||_7)){
new Error(this.declaredClass+": no node provided to "+this.id);
}
},set:function(_8,_9){
if(undefined!==_8){
this.content=_8;
}
if(_9){
this._mixin(_9);
}
this.onBegin();
this.setContent();
this.onEnd();
return this.node;
},setContent:function(){
var _a=this.node;
if(!_a){
console.error("setContent given no node");
}
try{
_a=dojo.html._setNodeContent(_a,this.content);
}
catch(e){
var _b=this.onContentError(e);
try{
_a.innerHTML=_b;
}
catch(e){
console.error("Fatal "+this.declaredClass+".setContent could not change content due to "+e.message,e);
}
}
this.node=_a;
},empty:function(){
if(this.parseResults&&this.parseResults.length){
dojo.forEach(this.parseResults,function(w){
if(w.destroy){
w.destroy();
}
});
delete this.parseResults;
}
dojo.html._emptyNode(this.node);
},onBegin:function(){
var _c=this.content;
if(dojo.isString(_c)){
if(this.cleanContent){
_c=dojo.html._secureForInnerHtml(_c);
}
if(this.extractContent){
var _d=_c.match(/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im);
if(_d){
_c=_d[1];
}
}
}
this.empty();
this.content=_c;
return this.node;
},onEnd:function(){
if(this.parseContent){
this._parse();
}
return this.node;
},tearDown:function(){
delete this.parseResults;
delete this.node;
delete this.content;
},onContentError:function(_e){
return "Error occured setting content: "+_e;
},_mixin:function(_f){
var _10={},key;
for(key in _f){
if(key in _10){
continue;
}
this[key]=_f[key];
}
},_parse:function(){
var _11=this.node;
try{
this.parseResults=dojo.parser.parse(_11,true);
}
catch(e){
this._onError("Content",e,"Error parsing in _ContentSetter#"+this.id);
}
},_onError:function(_12,err,_13){
var _14=this["on"+_12+"Error"].call(this,err);
if(_13){
console.error(_13,err);
}else{
if(_14){
dojo.html._setNodeContent(this.node,_14,true);
}
}
}});
dojo.html.set=function(_15,_16,_17){
if(undefined==_16){
console.warn("dojo.html.set: no cont argument provided, using empty string");
_16="";
}
if(!_17){
return dojo.html._setNodeContent(_15,_16,true);
}else{
var op=new dojo.html._ContentSetter(dojo.mixin(_17,{content:_16,node:_15}));
return op.set();
}
};
})();
}

dojo.provide("dijit.nls.loading")._built=true;
dojo.provide("dijit.nls.loading.en");
dijit.nls.loading.en={"loadingState":"Loading...","errorState":"Sorry, an error occurred"};

;if(!dojo._hasResource["dojo.i18n"]){
dojo._hasResource["dojo.i18n"]=true;
dojo.provide("dojo.i18n");
dojo.i18n.getLocalization=function(_1,_2,_3){
_3=dojo.i18n.normalizeLocale(_3);
var _4=_3.split("-");
var _5=[_1,"nls",_2].join(".");
var _6=dojo._loadedModules[_5];
if(_6){
var _7;
for(var i=_4.length;i>0;i--){
var _8=_4.slice(0,i).join("_");
if(_6[_8]){
_7=_6[_8];
break;
}
}
if(!_7){
_7=_6.ROOT;
}
if(_7){
var _9=function(){
};
_9.prototype=_7;
return new _9();
}
}
throw new Error("Bundle not found: "+_2+" in "+_1+" , locale="+_3);
};
dojo.i18n.normalizeLocale=function(_a){
var _b=_a?_a.toLowerCase():dojo.locale;
if(_b=="root"){
_b="ROOT";
}
return _b;
};
dojo.i18n._requireLocalization=function(_c,_d,_e,_f){
var _10=dojo.i18n.normalizeLocale(_e);
var _11=[_c,"nls",_d].join(".");
var _12="";
if(_f){
var _13=_f.split(",");
for(var i=0;i<_13.length;i++){
if(_10["indexOf"](_13[i])==0){
if(_13[i].length>_12.length){
_12=_13[i];
}
}
}
if(!_12){
_12="ROOT";
}
}
var _14=_f?_12:_10;
var _15=dojo._loadedModules[_11];
var _16=null;
if(_15){
if(dojo.config.localizationComplete&&_15._built){
return;
}
var _17=_14.replace(/-/g,"_");
var _18=_11+"."+_17;
_16=dojo._loadedModules[_18];
}
if(!_16){
_15=dojo["provide"](_11);
var _19=dojo._getModuleSymbols(_c);
var _1a=_19.concat("nls").join("/");
var _1b;
dojo.i18n._searchLocalePath(_14,_f,function(loc){
var _1c=loc.replace(/-/g,"_");
var _1d=_11+"."+_1c;
var _1e=false;
if(!dojo._loadedModules[_1d]){
dojo["provide"](_1d);
var _1f=[_1a];
if(loc!="ROOT"){
_1f.push(loc);
}
_1f.push(_d);
var _20=_1f.join("/")+".js";
_1e=dojo._loadPath(_20,null,function(_21){
var _22=function(){
};
_22.prototype=_1b;
_15[_1c]=new _22();
for(var j in _21){
_15[_1c][j]=_21[j];
}
});
}else{
_1e=true;
}
if(_1e&&_15[_1c]){
_1b=_15[_1c];
}else{
_15[_1c]=_1b;
}
if(_f){
return true;
}
});
}
if(_f&&_10!=_12){
_15[_10.replace(/-/g,"_")]=_15[_12.replace(/-/g,"_")];
}
};
(function(){
var _23=dojo.config.extraLocale;
if(_23){
if(!_23 instanceof Array){
_23=[_23];
}
var req=dojo.i18n._requireLocalization;
dojo.i18n._requireLocalization=function(m,b,_24,_25){
req(m,b,_24,_25);
if(_24){
return;
}
for(var i=0;i<_23.length;i++){
req(m,b,_23[i],_25);
}
};
}
})();
dojo.i18n._searchLocalePath=function(_26,_27,_28){
_26=dojo.i18n.normalizeLocale(_26);
var _29=_26.split("-");
var _2a=[];
for(var i=_29.length;i>0;i--){
_2a.push(_29.slice(0,i).join("-"));
}
_2a.push(false);
if(_27){
_2a.reverse();
}
for(var j=_2a.length-1;j>=0;j--){
var loc=_2a[j]||"ROOT";
var _2b=_28(loc);
if(_2b){
break;
}
}
};
dojo.i18n._preloadLocalizations=function(_2c,_2d){
function _2e(_2f){
_2f=dojo.i18n.normalizeLocale(_2f);
dojo.i18n._searchLocalePath(_2f,true,function(loc){
for(var i=0;i<_2d.length;i++){
if(_2d[i]==loc){
dojo["require"](_2c+"_"+loc);
return true;
}
}
return false;
});
};
_2e();
var _30=dojo.config.extraLocale||[];
for(var i=0;i<_30.length;i++){
_2e(_30[i]);
}
};
}


;if(!dojo._hasResource["dijit.layout.ContentPane"]){
dojo._hasResource["dijit.layout.ContentPane"]=true;
dojo.provide("dijit.layout.ContentPane");
dojo.require("dijit._Widget");
dojo.require("dijit._Contained");
dojo.require("dijit.layout._LayoutWidget");
dojo.require("dojo.parser");
dojo.require("dojo.string");
dojo.require("dojo.html");
dojo.requireLocalization("dijit","loading",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.declare("dijit.layout.ContentPane",dijit._Widget,{href:"",extractContent:false,parseOnLoad:true,preventCache:false,preload:false,refreshOnShow:false,loadingMessage:"<span class='dijitContentPaneLoading'>${loadingState}</span>",errorMessage:"<span class='dijitContentPaneError'>${errorState}</span>",isLoaded:false,baseClass:"dijitContentPane",doLayout:true,ioArgs:{},isContainer:true,isLayoutContainer:true,onLoadDeferred:null,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[]}),postMixInProperties:function(){
this.inherited(arguments);
var _1=dojo.i18n.getLocalization("dijit","loading",this.lang);
this.loadingMessage=dojo.string.substitute(this.loadingMessage,_1);
this.errorMessage=dojo.string.substitute(this.errorMessage,_1);
if(!this.href&&this.srcNodeRef&&this.srcNodeRef.innerHTML){
this.isLoaded=true;
}
},buildRendering:function(){
this.inherited(arguments);
if(!this.containerNode){
this.containerNode=this.domNode;
}
},postCreate:function(){
this.domNode.title="";
if(!dojo.attr(this.domNode,"role")){
dijit.setWaiRole(this.domNode,"group");
}
dojo.addClass(this.domNode,this.baseClass);
},startup:function(){
if(this._started){
return;
}
var _2=dijit._Contained.prototype.getParent.call(this);
this._childOfLayoutWidget=_2&&_2.isLayoutContainer;
this._needLayout=!this._childOfLayoutWidget;
if(this.isLoaded){
dojo.forEach(this.getChildren(),function(_3){
_3.startup();
});
}
if(this._isShown()||this.preload){
this._onShow();
}
this.inherited(arguments);
},_checkIfSingleChild:function(){
var _4=dojo.query("> *",this.containerNode).filter(function(_5){
return _5.tagName!=="SCRIPT";
}),_6=_4.filter(function(_7){
return dojo.hasAttr(_7,"dojoType")||dojo.hasAttr(_7,"widgetId");
}),_8=dojo.filter(_6.map(dijit.byNode),function(_9){
return _9&&_9.domNode&&_9.resize;
});
if(_4.length==_6.length&&_8.length==1){
this._singleChild=_8[0];
}else{
delete this._singleChild;
}
dojo.toggleClass(this.containerNode,this.baseClass+"SingleChild",!!this._singleChild);
},setHref:function(_a){
dojo.deprecated("dijit.layout.ContentPane.setHref() is deprecated. Use attr('href', ...) instead.","","2.0");
return this.attr("href",_a);
},_setHrefAttr:function(_b){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this.href=_b;
if(this._created&&(this.preload||this._isShown())){
this._load();
}else{
this._hrefChanged=true;
}
return this.onLoadDeferred;
},setContent:function(_c){
dojo.deprecated("dijit.layout.ContentPane.setContent() is deprecated.  Use attr('content', ...) instead.","","2.0");
this.attr("content",_c);
},_setContentAttr:function(_d){
this.href="";
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._setContent(_d||"");
this._isDownloaded=false;
return this.onLoadDeferred;
},_getContentAttr:function(){
return this.containerNode.innerHTML;
},cancel:function(){
if(this._xhrDfd&&(this._xhrDfd.fired==-1)){
this._xhrDfd.cancel();
}
delete this._xhrDfd;
this.onLoadDeferred=null;
},uninitialize:function(){
if(this._beingDestroyed){
this.cancel();
}
this.inherited(arguments);
},destroyRecursive:function(_e){
if(this._beingDestroyed){
return;
}
this.inherited(arguments);
},resize:function(_f,_10){
if(!this._wasShown){
this._onShow();
}
this._resizeCalled=true;
if(_f){
dojo.marginBox(this.domNode,_f);
}
var cn=this.containerNode;
if(cn===this.domNode){
var mb=_10||{};
dojo.mixin(mb,_f||{});
if(!("h" in mb)||!("w" in mb)){
mb=dojo.mixin(dojo.marginBox(cn),mb);
}
this._contentBox=dijit.layout.marginBox2contentBox(cn,mb);
}else{
this._contentBox=dojo.contentBox(cn);
}
this._layoutChildren();
},_isShown:function(){
if(this._childOfLayoutWidget){
if(this._resizeCalled&&"open" in this){
return this.open;
}
return this._resizeCalled;
}else{
if("open" in this){
return this.open;
}else{
var _11=this.domNode;
return (_11.style.display!="none")&&(_11.style.visibility!="hidden")&&!dojo.hasClass(_11,"dijitHidden");
}
}
},_onShow:function(){
if(this.href){
if(!this._xhrDfd&&(!this.isLoaded||this._hrefChanged||this.refreshOnShow)){
this.refresh();
}
}else{
if(!this._childOfLayoutWidget&&this._needLayout){
this._layoutChildren();
}
}
this.inherited(arguments);
this._wasShown=true;
},refresh:function(){
this.cancel();
this.onLoadDeferred=new dojo.Deferred(dojo.hitch(this,"cancel"));
this._load();
return this.onLoadDeferred;
},_load:function(){
this._setContent(this.onDownloadStart(),true);
var _12=this;
var _13={preventCache:(this.preventCache||this.refreshOnShow),url:this.href,handleAs:"text"};
if(dojo.isObject(this.ioArgs)){
dojo.mixin(_13,this.ioArgs);
}
var _14=(this._xhrDfd=(this.ioMethod||dojo.xhrGet)(_13));
_14.addCallback(function(_15){
try{
_12._isDownloaded=true;
_12._setContent(_15,false);
_12.onDownloadEnd();
}
catch(err){
_12._onError("Content",err);
}
delete _12._xhrDfd;
return _15;
});
_14.addErrback(function(err){
if(!_14.canceled){
_12._onError("Download",err);
}
delete _12._xhrDfd;
return err;
});
delete this._hrefChanged;
},_onLoadHandler:function(_16){
this.isLoaded=true;
try{
this.onLoadDeferred.callback(_16);
this.onLoad(_16);
}
catch(e){
console.error("Error "+this.widgetId+" running custom onLoad code: "+e.message);
}
},_onUnloadHandler:function(){
this.isLoaded=false;
try{
this.onUnload();
}
catch(e){
console.error("Error "+this.widgetId+" running custom onUnload code: "+e.message);
}
},destroyDescendants:function(){
if(this.isLoaded){
this._onUnloadHandler();
}
var _17=this._contentSetter;
dojo.forEach(this.getChildren(),function(_18){
if(_18.destroyRecursive){
_18.destroyRecursive();
}
});
if(_17){
dojo.forEach(_17.parseResults,function(_19){
if(_19.destroyRecursive&&_19.domNode&&_19.domNode.parentNode==dojo.body()){
_19.destroyRecursive();
}
});
delete _17.parseResults;
}
dojo.html._emptyNode(this.containerNode);
delete this._singleChild;
},_setContent:function(_1a,_1b){
this.destroyDescendants();
var _1c=this._contentSetter;
if(!(_1c&&_1c instanceof dojo.html._ContentSetter)){
_1c=this._contentSetter=new dojo.html._ContentSetter({node:this.containerNode,_onError:dojo.hitch(this,this._onError),onContentError:dojo.hitch(this,function(e){
var _1d=this.onContentError(e);
try{
this.containerNode.innerHTML=_1d;
}
catch(e){
console.error("Fatal "+this.id+" could not change content due to "+e.message,e);
}
})});
}
var _1e=dojo.mixin({cleanContent:this.cleanContent,extractContent:this.extractContent,parseContent:this.parseOnLoad},this._contentSetterParams||{});
dojo.mixin(_1c,_1e);
_1c.set((dojo.isObject(_1a)&&_1a.domNode)?_1a.domNode:_1a);
delete this._contentSetterParams;
if(!_1b){
dojo.forEach(this.getChildren(),function(_1f){
if(!this.parseOnLoad||_1f.getParent){
_1f.startup();
}
},this);
this._scheduleLayout();
this._onLoadHandler(_1a);
}
},_onError:function(_20,err,_21){
this.onLoadDeferred.errback(err);
var _22=this["on"+_20+"Error"].call(this,err);
if(_21){
console.error(_21,err);
}else{
if(_22){
this._setContent(_22,true);
}
}
},_scheduleLayout:function(){
if(this._isShown()){
this._layoutChildren();
}else{
this._needLayout=true;
}
},_layoutChildren:function(){
if(this.doLayout){
this._checkIfSingleChild();
}
if(this._singleChild&&this._singleChild.resize){
var cb=this._contentBox||dojo.contentBox(this.containerNode);
this._singleChild.resize({w:cb.w,h:cb.h});
}else{
dojo.forEach(this.getChildren(),function(_23){
if(_23.resize){
_23.resize();
}
});
}
delete this._needLayout;
},onLoad:function(_24){
},onUnload:function(){
},onDownloadStart:function(){
return this.loadingMessage;
},onContentError:function(_25){
},onDownloadError:function(_26){
return this.errorMessage;
},onDownloadEnd:function(){
}});
}


;if(!dojo._hasResource["dijit.TooltipDialog"]){
dojo._hasResource["dijit.TooltipDialog"]=true;
dojo.provide("dijit.TooltipDialog");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit._Templated");
dojo.require("dijit.form._FormMixin");
dojo.require("dijit._DialogMixin");
dojo.declare("dijit.TooltipDialog",[dijit.layout.ContentPane,dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:dojo.cache("dijit","templates/TooltipDialog.html","<div waiRole=\"presentation\">\n\t<div class=\"dijitTooltipContainer\" waiRole=\"presentation\">\n\t\t<div class =\"dijitTooltipContents dijitTooltipFocusNode\" dojoAttachPoint=\"containerNode\" tabindex=\"-1\" waiRole=\"dialog\"></div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" waiRole=\"presentation\"></div>\n</div>\n"),postCreate:function(){
this.inherited(arguments);
this.connect(this.containerNode,"onkeypress","_onKey");
this.containerNode.title=this.title;
},orient:function(_1,_2,_3){
var c=this._currentOrientClass;
if(c){
dojo.removeClass(this.domNode,c);
}
c="dijitTooltipAB"+(_3.charAt(1)=="L"?"Left":"Right")+" dijitTooltip"+(_3.charAt(0)=="T"?"Below":"Above");
dojo.addClass(this.domNode,c);
this._currentOrientClass=c;
},onOpen:function(_4){
this.orient(this.domNode,_4.aroundCorner,_4.corner);
this._onShow();
if(this.autofocus){
this._getFocusItems(this.containerNode);
dijit.focus(this._firstFocusItem);
}
},onClose:function(){
this.onHide();
},_onKey:function(_5){
var _6=_5.target;
var dk=dojo.keys;
if(_5.charOrCode===dk.TAB){
this._getFocusItems(this.containerNode);
}
var _7=(this._firstFocusItem==this._lastFocusItem);
if(_5.charOrCode==dk.ESCAPE){
setTimeout(dojo.hitch(this,"onCancel"),0);
dojo.stopEvent(_5);
}else{
if(_6==this._firstFocusItem&&_5.shiftKey&&_5.charOrCode===dk.TAB){
if(!_7){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(_5);
}else{
if(_6==this._lastFocusItem&&_5.charOrCode===dk.TAB&&!_5.shiftKey){
if(!_7){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(_5);
}else{
if(_5.charOrCode===dk.TAB){
_5.stopPropagation();
}
}
}
}
}});
}

dojo.provide("dijit.nls.common")._built=true;
dojo.provide("dijit.nls.common.en");
dijit.nls.common.en={"itemClose":"Close","buttonCancel":"Cancel","buttonOk":"OK","buttonSave":"Save"};

;if(!dojo._hasResource["dijit.Dialog"]){
dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.require("dojo.dnd.move");
dojo.require("dojo.dnd.TimedMoveable");
dojo.require("dojo.fx");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit.form._FormMixin");
dojo.require("dijit._DialogMixin");
dojo.require("dijit.DialogUnderlay");
dojo.require("dijit.layout.ContentPane");
dojo.requireLocalization("dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin],{templateString:dojo.cache("dijit","templates/Dialog.html","<div class=\"dijitDialog\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\n\t<div dojoAttachPoint=\"titleBar\" class=\"dijitDialogTitleBar\">\n\t<span dojoAttachPoint=\"titleNode\" class=\"dijitDialogTitle\" id=\"${id}_title\"></span>\n\t<span dojoAttachPoint=\"closeButtonNode\" class=\"dijitDialogCloseIcon\" dojoAttachEvent=\"onclick: onCancel, onmouseenter: _onCloseEnter, onmouseleave: _onCloseLeave\" title=\"${buttonCancel}\">\n\t\t<span dojoAttachPoint=\"closeText\" class=\"closeText\" title=\"${buttonCancel}\">x</span>\n\t</span>\n\t</div>\n\t\t<div dojoAttachPoint=\"containerNode\" class=\"dijitDialogPaneContent\"></div>\n</div>\n"),attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{title:[{node:"titleNode",type:"innerHTML"},{node:"titleBar",type:"attribute"}],"aria-describedby":""}),open:false,duration:dijit.defaultDuration,refocus:true,autofocus:true,_firstFocusItem:null,_lastFocusItem:null,doLayout:false,draggable:true,"aria-describedby":"",postMixInProperties:function(){
var _1=dojo.i18n.getLocalization("dijit","common");
dojo.mixin(this,_1);
this.inherited(arguments);
},postCreate:function(){
dojo.style(this.domNode,{display:"none",position:"absolute"});
dojo.body().appendChild(this.domNode);
this.inherited(arguments);
this.connect(this,"onExecute","hide");
this.connect(this,"onCancel","hide");
this._modalconnects=[];
},onLoad:function(){
this._position();
this.inherited(arguments);
},_endDrag:function(e){
if(e&&e.node&&e.node===this.domNode){
this._relativePosition=dojo.position(e.node);
}
},_setup:function(){
var _2=this.domNode;
if(this.titleBar&&this.draggable){
this._moveable=(dojo.isIE==6)?new dojo.dnd.TimedMoveable(_2,{handle:this.titleBar}):new dojo.dnd.Moveable(_2,{handle:this.titleBar,timeout:0});
dojo.subscribe("/dnd/move/stop",this,"_endDrag");
}else{
dojo.addClass(_2,"dijitDialogFixed");
}
this.underlayAttrs={dialogId:this.id,"class":dojo.map(this["class"].split(/\s/),function(s){
return s+"_underlay";
}).join(" ")};
this._fadeIn=dojo.fadeIn({node:_2,duration:this.duration,beforeBegin:dojo.hitch(this,function(){
var _3=dijit._underlay;
if(!_3){
_3=dijit._underlay=new dijit.DialogUnderlay(this.underlayAttrs);
}else{
_3.attr(this.underlayAttrs);
}
var _4=948+dijit._dialogStack.length*2;
dojo.style(dijit._underlay.domNode,"zIndex",_4);
dojo.style(this.domNode,"zIndex",_4+1);
_3.show();
}),onEnd:dojo.hitch(this,function(){
if(this.autofocus){
this._getFocusItems(this.domNode);
dijit.focus(this._firstFocusItem);
}
})});
this._fadeOut=dojo.fadeOut({node:_2,duration:this.duration,onEnd:dojo.hitch(this,function(){
_2.style.display="none";
var ds=dijit._dialogStack;
if(ds.length==0){
dijit._underlay.hide();
}else{
dojo.style(dijit._underlay.domNode,"zIndex",948+ds.length*2);
dijit._underlay.attr(ds[ds.length-1].underlayAttrs);
}
if(this.refocus){
var _5=this._savedFocus;
if(ds.length>0){
var pd=ds[ds.length-1];
if(!dojo.isDescendant(_5.node,pd.domNode)){
pd._getFocusItems(pd.domNode);
_5=pd._firstFocusItem;
}
}
dijit.focus(_5);
}
})});
},uninitialize:function(){
var _6=false;
if(this._fadeIn&&this._fadeIn.status()=="playing"){
_6=true;
this._fadeIn.stop();
}
if(this._fadeOut&&this._fadeOut.status()=="playing"){
_6=true;
this._fadeOut.stop();
}
if((this.open||_6)&&!dijit._underlay._destroyed){
dijit._underlay.hide();
}
if(this._moveable){
this._moveable.destroy();
}
this.inherited(arguments);
},_size:function(){
this._checkIfSingleChild();
if(this._singleChild){
if(this._singleChildOriginalStyle){
this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;
}
delete this._singleChildOriginalStyle;
}else{
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
var mb=dojo.marginBox(this.domNode);
var _7=dijit.getViewport();
if(mb.w>=_7.w||mb.h>=_7.h){
var w=Math.min(mb.w,Math.floor(_7.w*0.75)),h=Math.min(mb.h,Math.floor(_7.h*0.75));
if(this._singleChild&&this._singleChild.resize){
this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;
this._singleChild.resize({w:w,h:h});
}else{
dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});
}
}else{
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize();
}
}
},_position:function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var _8=this.domNode,_9=dijit.getViewport(),p=this._relativePosition,bb=p?null:dojo._getBorderBox(_8),l=Math.floor(_9.l+(p?p.x:(_9.w-bb.w)/2)),t=Math.floor(_9.t+(p?p.y:(_9.h-bb.h)/2));
dojo.style(_8,{left:l+"px",top:t+"px"});
}
},_onKey:function(_a){
var ds=dijit._dialogStack;
if(ds[ds.length-1]!=this){
return;
}
if(_a.charOrCode){
var dk=dojo.keys;
var _b=_a.target;
if(_a.charOrCode===dk.TAB){
this._getFocusItems(this.domNode);
}
var _c=(this._firstFocusItem==this._lastFocusItem);
if(_b==this._firstFocusItem&&_a.shiftKey&&_a.charOrCode===dk.TAB){
if(!_c){
dijit.focus(this._lastFocusItem);
}
dojo.stopEvent(_a);
}else{
if(_b==this._lastFocusItem&&_a.charOrCode===dk.TAB&&!_a.shiftKey){
if(!_c){
dijit.focus(this._firstFocusItem);
}
dojo.stopEvent(_a);
}else{
while(_b){
if(_b==this.domNode||dojo.hasClass(_b,"dijitPopup")){
if(_a.charOrCode==dk.ESCAPE){
this.onCancel();
}else{
return;
}
}
_b=_b.parentNode;
}
if(_a.charOrCode!==dk.TAB){
dojo.stopEvent(_a);
}else{
if(!dojo.isOpera){
try{
this._firstFocusItem.focus();
}
catch(e){
}
}
}
}
}
}
},show:function(){
if(this.open){
return;
}
if(!this._alreadyInitialized){
this._setup();
this._alreadyInitialized=true;
}
if(this._fadeOut.status()=="playing"){
this._fadeOut.stop();
}
this._modalconnects.push(dojo.connect(window,"onscroll",this,"layout"));
this._modalconnects.push(dojo.connect(window,"onresize",this,function(){
var _d=dijit.getViewport();
if(!this._oldViewport||_d.h!=this._oldViewport.h||_d.w!=this._oldViewport.w){
this.layout();
this._oldViewport=_d;
}
}));
this._modalconnects.push(dojo.connect(dojo.doc.documentElement,"onkeypress",this,"_onKey"));
dojo.style(this.domNode,{opacity:0,display:""});
this.open=true;
this._onShow();
this._size();
this._position();
dijit._dialogStack.push(this);
this._fadeIn.play();
this._savedFocus=dijit.getFocus(this);
},hide:function(){
var ds=dijit._dialogStack;
if(!this._alreadyInitialized||this!=ds[ds.length-1]){
return;
}
if(this._fadeIn.status()=="playing"){
this._fadeIn.stop();
}
ds.pop();
this._fadeOut.play();
if(this._scrollConnected){
this._scrollConnected=false;
}
dojo.forEach(this._modalconnects,dojo.disconnect);
this._modalconnects=[];
if(this._relativePosition){
delete this._relativePosition;
}
this.open=false;
this.onHide();
},layout:function(){
if(this.domNode.style.display!="none"){
if(dijit._underlay){
dijit._underlay.layout();
}
this._position();
}
},destroy:function(){
dojo.forEach(this._modalconnects,dojo.disconnect);
if(this.refocus&&this.open){
setTimeout(dojo.hitch(dijit,"focus",this._savedFocus),25);
}
this.inherited(arguments);
},_onCloseEnter:function(){
dojo.addClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
},_onCloseLeave:function(){
dojo.removeClass(this.closeButtonNode,"dijitDialogCloseIcon-hover");
}});
dojo.declare("dijit.Dialog",[dijit.layout.ContentPane,dijit._DialogBase],{});
dijit._dialogStack=[];
dojo.require("dijit.TooltipDialog");
}


;if(!dojo._hasResource["dijit._KeyNavContainer"]){
dojo._hasResource["dijit._KeyNavContainer"]=true;
dojo.provide("dijit._KeyNavContainer");
dojo.require("dijit._Container");
dojo.declare("dijit._KeyNavContainer",dijit._Container,{tabIndex:"0",_keyNavCodes:{},connectKeyNavHandlers:function(_1,_2){
var _3=(this._keyNavCodes={});
var _4=dojo.hitch(this,this.focusPrev);
var _5=dojo.hitch(this,this.focusNext);
dojo.forEach(_1,function(_6){
_3[_6]=_4;
});
dojo.forEach(_2,function(_7){
_3[_7]=_5;
});
this.connect(this.domNode,"onkeypress","_onContainerKeypress");
this.connect(this.domNode,"onfocus","_onContainerFocus");
},startupKeyNavChildren:function(){
dojo.forEach(this.getChildren(),dojo.hitch(this,"_startupChild"));
},addChild:function(_8,_9){
dijit._KeyNavContainer.superclass.addChild.apply(this,arguments);
this._startupChild(_8);
},focus:function(){
this.focusFirstChild();
},focusFirstChild:function(){
var _a=this._getFirstFocusableChild();
if(_a){
this.focusChild(_a);
}
},focusNext:function(){
var _b=this._getNextFocusableChild(this.focusedChild,1);
this.focusChild(_b);
},focusPrev:function(){
var _c=this._getNextFocusableChild(this.focusedChild,-1);
this.focusChild(_c,true);
},focusChild:function(_d,_e){
if(this.focusedChild&&_d!==this.focusedChild){
this._onChildBlur(this.focusedChild);
}
_d.focus(_e?"end":"start");
this.focusedChild=_d;
},_startupChild:function(_f){
_f.attr("tabIndex","-1");
this.connect(_f,"_onFocus",function(){
_f.attr("tabIndex",this.tabIndex);
});
this.connect(_f,"_onBlur",function(){
_f.attr("tabIndex","-1");
});
},_onContainerFocus:function(evt){
if(evt.target!==this.domNode){
return;
}
this.focusFirstChild();
dojo.attr(this.domNode,"tabIndex","-1");
},_onBlur:function(evt){
if(this.tabIndex){
dojo.attr(this.domNode,"tabIndex",this.tabIndex);
}
this.inherited(arguments);
},_onContainerKeypress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
var _10=this._keyNavCodes[evt.charOrCode];
if(_10){
_10();
dojo.stopEvent(evt);
}
},_onChildBlur:function(_11){
},_getFirstFocusableChild:function(){
return this._getNextFocusableChild(null,1);
},_getNextFocusableChild:function(_12,dir){
if(_12){
_12=this._getSiblingOfChild(_12,dir);
}
var _13=this.getChildren();
for(var i=0;i<_13.length;i++){
if(!_12){
_12=_13[(dir>0)?0:(_13.length-1)];
}
if(_12.isFocusable()){
return _12;
}
_12=this._getSiblingOfChild(_12,dir);
}
return null;
}});
}


;if(!dojo._hasResource["dijit.PopupMenuItem"]){
dojo._hasResource["dijit.PopupMenuItem"]=true;
dojo.provide("dijit.PopupMenuItem");
dojo.require("dijit.MenuItem");
dojo.declare("dijit.PopupMenuItem",dijit.MenuItem,{_fillContent:function(){
if(this.srcNodeRef){
var _1=dojo.query("*",this.srcNodeRef);
dijit.PopupMenuItem.superclass._fillContent.call(this,_1[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
this.inherited(arguments);
if(!this.popup){
var _2=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.popup=dijit.byNode(_2);
}
dojo.body().appendChild(this.popup.domNode);
this.popup.domNode.style.display="none";
if(this.arrowWrapper){
dojo.style(this.arrowWrapper,"visibility","");
}
dijit.setWaiState(this.focusNode,"haspopup","true");
},destroyDescendants:function(){
if(this.popup){
if(!this.popup._destroyed){
this.popup.destroyRecursive();
}
delete this.popup;
}
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["dijit.MenuSeparator"]){
dojo._hasResource["dijit.MenuSeparator"]=true;
dojo.provide("dijit.MenuSeparator");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._Contained");
dojo.declare("dijit.MenuSeparator",[dijit._Widget,dijit._Templated,dijit._Contained],{templateString:dojo.cache("dijit","templates/MenuSeparator.html","<tr class=\"dijitMenuSeparator\">\n\t<td colspan=\"4\">\n\t\t<div class=\"dijitMenuSeparatorTop\"></div>\n\t\t<div class=\"dijitMenuSeparatorBottom\"></div>\n\t</td>\n</tr>\n"),postCreate:function(){
dojo.setSelectable(this.domNode,false);
},isFocusable:function(){
return false;
}});
}


;if(!dojo._hasResource["dijit.Menu"]){
dojo._hasResource["dijit.Menu"]=true;
dojo.provide("dijit.Menu");
dojo.require("dijit._Widget");
dojo.require("dijit._KeyNavContainer");
dojo.require("dijit._Templated");
dojo.declare("dijit._MenuBase",[dijit._Widget,dijit._Templated,dijit._KeyNavContainer],{parentMenu:null,popupDelay:500,startup:function(){
if(this._started){
return;
}
dojo.forEach(this.getChildren(),function(_1){
_1.startup();
});
this.startupKeyNavChildren();
this.inherited(arguments);
},onExecute:function(){
},onCancel:function(_2){
},_moveToPopup:function(_3){
if(this.focusedChild&&this.focusedChild.popup&&!this.focusedChild.disabled){
this.focusedChild._onClick(_3);
}else{
var _4=this._getTopMenu();
if(_4&&_4._isMenuBar){
_4.focusNext();
}
}
},_onPopupHover:function(_5){
if(this.currentPopup&&this.currentPopup._pendingClose_timer){
var _6=this.currentPopup.parentMenu;
if(_6.focusedChild){
_6.focusedChild._setSelected(false);
}
_6.focusedChild=this.currentPopup.from_item;
_6.focusedChild._setSelected(true);
this._stopPendingCloseTimer(this.currentPopup);
}
},onItemHover:function(_7){
if(this.isActive){
this.focusChild(_7);
if(this.focusedChild.popup&&!this.focusedChild.disabled&&!this.hover_timer){
this.hover_timer=setTimeout(dojo.hitch(this,"_openPopup"),this.popupDelay);
}
}
if(this.focusedChild){
this.focusChild(_7);
}
this._hoveredChild=_7;
},_onChildBlur:function(_8){
this._stopPopupTimer();
_8._setSelected(false);
var _9=_8.popup;
if(_9){
this._stopPendingCloseTimer(_9);
_9._pendingClose_timer=setTimeout(function(){
_9._pendingClose_timer=null;
if(_9.parentMenu){
_9.parentMenu.currentPopup=null;
}
dijit.popup.close(_9);
},this.popupDelay);
}
},onItemUnhover:function(_a){
if(this.isActive){
this._stopPopupTimer();
}
if(this._hoveredChild==_a){
this._hoveredChild=null;
}
},_stopPopupTimer:function(){
if(this.hover_timer){
clearTimeout(this.hover_timer);
this.hover_timer=null;
}
},_stopPendingCloseTimer:function(_b){
if(_b._pendingClose_timer){
clearTimeout(_b._pendingClose_timer);
_b._pendingClose_timer=null;
}
},_stopFocusTimer:function(){
if(this._focus_timer){
clearTimeout(this._focus_timer);
this._focus_timer=null;
}
},_getTopMenu:function(){
for(var _c=this;_c.parentMenu;_c=_c.parentMenu){
}
return _c;
},onItemClick:function(_d,_e){
if(_d.disabled){
return false;
}
if(typeof this.isShowingNow=="undefined"){
this._markActive();
}
this.focusChild(_d);
if(_d.popup){
this._openPopup();
}else{
this.onExecute();
_d.onClick(_e);
}
},_openPopup:function(){
this._stopPopupTimer();
var _f=this.focusedChild;
if(!_f){
return;
}
var _10=_f.popup;
if(_10.isShowingNow){
return;
}
if(this.currentPopup){
this._stopPendingCloseTimer(this.currentPopup);
dijit.popup.close(this.currentPopup);
}
_10.parentMenu=this;
_10.from_item=_f;
var _11=this;
dijit.popup.open({parent:this,popup:_10,around:_f.domNode,orient:this._orient||(this.isLeftToRight()?{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"}:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"}),onCancel:function(){
_11.focusChild(_f);
_11._cleanUp();
_f._setSelected(true);
_11.focusedChild=_f;
},onExecute:dojo.hitch(this,"_cleanUp")});
this.currentPopup=_10;
_10.connect(_10.domNode,"onmouseenter",dojo.hitch(_11,"_onPopupHover"));
if(_10.focus){
_10._focus_timer=setTimeout(dojo.hitch(_10,function(){
this._focus_timer=null;
this.focus();
}),0);
}
},_markActive:function(){
this.isActive=true;
dojo.addClass(this.domNode,"dijitMenuActive");
dojo.removeClass(this.domNode,"dijitMenuPassive");
},onOpen:function(e){
this.isShowingNow=true;
this._markActive();
},_markInactive:function(){
this.isActive=false;
dojo.removeClass(this.domNode,"dijitMenuActive");
dojo.addClass(this.domNode,"dijitMenuPassive");
},onClose:function(){
this._stopFocusTimer();
this._markInactive();
this.isShowingNow=false;
this.parentMenu=null;
},_closeChild:function(){
this._stopPopupTimer();
if(this.focusedChild){
this.focusedChild._setSelected(false);
this.focusedChild._onUnhover();
this.focusedChild=null;
}
if(this.currentPopup){
dijit.popup.close(this.currentPopup);
this.currentPopup=null;
}
},_onItemFocus:function(_12){
if(this._hoveredChild&&this._hoveredChild!=_12){
this._hoveredChild._onUnhover();
}
},_onBlur:function(){
this._cleanUp();
this.inherited(arguments);
},_cleanUp:function(){
this._closeChild();
if(typeof this.isShowingNow=="undefined"){
this._markInactive();
}
}});
dojo.declare("dijit.Menu",dijit._MenuBase,{constructor:function(){
this._bindings=[];
},templateString:dojo.cache("dijit","templates/Menu.html","<table class=\"dijit dijitMenu dijitMenuPassive dijitReset dijitMenuTable\" waiRole=\"menu\" tabIndex=\"${tabIndex}\" dojoAttachEvent=\"onkeypress:_onKeyPress\">\n\t<tbody class=\"dijitReset\" dojoAttachPoint=\"containerNode\"></tbody>\n</table>\n"),targetNodeIds:[],contextMenuForWindow:false,leftClickToOpen:false,refocus:true,_contextMenuWithMouse:false,postCreate:function(){
if(this.contextMenuForWindow){
this.bindDomNode(dojo.body());
}else{
dojo.forEach(this.targetNodeIds,this.bindDomNode,this);
}
var k=dojo.keys,l=this.isLeftToRight();
this._openSubMenuKey=l?k.RIGHT_ARROW:k.LEFT_ARROW;
this._closeSubMenuKey=l?k.LEFT_ARROW:k.RIGHT_ARROW;
this.connectKeyNavHandlers([k.UP_ARROW],[k.DOWN_ARROW]);
},_onKeyPress:function(evt){
if(evt.ctrlKey||evt.altKey){
return;
}
switch(evt.charOrCode){
case this._openSubMenuKey:
this._moveToPopup(evt);
dojo.stopEvent(evt);
break;
case this._closeSubMenuKey:
if(this.parentMenu){
if(this.parentMenu._isMenuBar){
this.parentMenu.focusPrev();
}else{
this.onCancel(false);
}
}else{
dojo.stopEvent(evt);
}
break;
}
},_iframeContentWindow:function(_13){
var win=dijit.getDocumentWindow(this._iframeContentDocument(_13))||this._iframeContentDocument(_13)["__parent__"]||(_13.name&&dojo.doc.frames[_13.name])||null;
return win;
},_iframeContentDocument:function(_14){
var doc=_14.contentDocument||(_14.contentWindow&&_14.contentWindow.document)||(_14.name&&dojo.doc.frames[_14.name]&&dojo.doc.frames[_14.name].document)||null;
return doc;
},bindDomNode:function(_15){
_15=dojo.byId(_15);
var cn;
if(_15.tagName.toLowerCase()=="iframe"){
var _16=_15,win=this._iframeContentWindow(_16);
cn=dojo.withGlobal(win,dojo.body);
}else{
cn=(_15==dojo.body()?dojo.doc.documentElement:_15);
}
var _17={node:_15,iframe:_16};
dojo.attr(_15,"_dijitMenu"+this.id,this._bindings.push(_17));
var _18=dojo.hitch(this,function(cn){
return [dojo.connect(cn,(this.leftClickToOpen)?"onclick":"oncontextmenu",this,function(evt){
this._openMyself(evt,cn,_16);
}),dojo.connect(cn,"onkeydown",this,"_contextKey"),dojo.connect(cn,"onmousedown",this,"_contextMouse")];
});
_17.connects=cn?_18(cn):[];
if(_16){
_17.onloadHandler=dojo.hitch(this,function(){
var win=this._iframeContentWindow(_16);
cn=dojo.withGlobal(win,dojo.body);
_17.connects=_18(cn);
});
if(_16.addEventListener){
_16.addEventListener("load",_17.onloadHandler,false);
}else{
_16.attachEvent("onload",_17.onloadHandler);
}
}
},unBindDomNode:function(_19){
var _1a;
try{
_1a=dojo.byId(_19);
}
catch(e){
return;
}
var _1b="_dijitMenu"+this.id;
if(_1a&&dojo.hasAttr(_1a,_1b)){
var bid=dojo.attr(_1a,_1b)-1,b=this._bindings[bid];
dojo.forEach(b.connects,dojo.disconnect);
var _1c=b.iframe;
if(_1c){
if(_1c.removeEventListener){
_1c.removeEventListener("load",b.onloadHandler,false);
}else{
_1c.detachEvent("onload",b.onloadHandler);
}
}
dojo.removeAttr(_1a,_1b);
delete this._bindings[bid];
}
},_contextKey:function(e){
this._contextMenuWithMouse=false;
if(e.keyCode==dojo.keys.F10){
dojo.stopEvent(e);
if(e.shiftKey&&e.type=="keydown"){
var _1d={target:e.target,pageX:e.pageX,pageY:e.pageY};
_1d.preventDefault=_1d.stopPropagation=function(){
};
window.setTimeout(dojo.hitch(this,function(){
this._openMyself(_1d);
}),1);
}
}
},_contextMouse:function(e){
this._contextMenuWithMouse=true;
},_openMyself:function(e,_1e,_1f){
if(this.leftClickToOpen&&e.button>0){
return;
}
dojo.stopEvent(e);
var x,y;
if(dojo.isSafari||this._contextMenuWithMouse){
x=e.pageX;
y=e.pageY;
if(_1f){
var od=e.target.ownerDocument,ifc=dojo.position(_1f,true),win=this._iframeContentWindow(_1f),_20=dojo.withGlobal(win,"_docScroll",dojo);
var cs=dojo.getComputedStyle(_1f),tp=dojo._toPixelValue,_21=(dojo.isIE&&dojo.isQuirks?0:tp(_1f,cs.paddingLeft))+(dojo.isIE&&dojo.isQuirks?tp(_1f,cs.borderLeftWidth):0),top=(dojo.isIE&&dojo.isQuirks?0:tp(_1f,cs.paddingTop))+(dojo.isIE&&dojo.isQuirks?tp(_1f,cs.borderTopWidth):0);
x+=ifc.x+_21-_20.x;
y+=ifc.y+top-_20.y;
}
}else{
var _22=dojo.position(e.target,true);
x=_22.x+10;
y=_22.y+10;
}
var _23=this;
var _24=dijit.getFocus(this);
function _25(){
if(_23.refocus){
dijit.focus(_24);
}
dijit.popup.close(_23);
};
dijit.popup.open({popup:this,x:x,y:y,onExecute:_25,onCancel:_25,orient:this.isLeftToRight()?"L":"R"});
this.focus();
this._onBlur=function(){
this.inherited("_onBlur",arguments);
dijit.popup.close(this);
};
},uninitialize:function(){
dojo.forEach(this._bindings,function(b){
if(b){
this.unBindDomNode(b.node);
}
},this);
this.inherited(arguments);
}});
dojo.require("dijit.MenuItem");
dojo.require("dijit.PopupMenuItem");
dojo.require("dijit.CheckedMenuItem");
dojo.require("dijit.MenuSeparator");
}


;if(!dojo._hasResource["dijit.Tooltip"]){
dojo._hasResource["dijit.Tooltip"]=true;
dojo.provide("dijit.Tooltip");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("dijit._MasterTooltip",[dijit._Widget,dijit._Templated],{duration:dijit.defaultDuration,templateString:dojo.cache("dijit","templates/Tooltip.html","<div class=\"dijitTooltip dijitTooltipLeft\" id=\"dojoTooltip\">\n\t<div class=\"dijitTooltipContainer dijitTooltipContents\" dojoAttachPoint=\"containerNode\" waiRole='alert'></div>\n\t<div class=\"dijitTooltipConnector\"></div>\n</div>\n"),postCreate:function(){
dojo.body().appendChild(this.domNode);
this.bgIframe=new dijit.BackgroundIframe(this.domNode);
this.fadeIn=dojo.fadeIn({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onShow")});
this.fadeOut=dojo.fadeOut({node:this.domNode,duration:this.duration,onEnd:dojo.hitch(this,"_onHide")});
},show:function(_1,_2,_3){
if(this.aroundNode&&this.aroundNode===_2){
return;
}
if(this.fadeOut.status()=="playing"){
this._onDeck=arguments;
return;
}
this.containerNode.innerHTML=_1;
this.domNode.style.top=(this.domNode.offsetTop+1)+"px";
var _4=dijit.placeOnScreenAroundElement(this.domNode,_2,dijit.getPopupAroundAlignment((_3&&_3.length)?_3:dijit.Tooltip.defaultPosition,this.isLeftToRight()),dojo.hitch(this,"orient"));
dojo.style(this.domNode,"opacity",0);
this.fadeIn.play();
this.isShowingNow=true;
this.aroundNode=_2;
},orient:function(_5,_6,_7){
_5.className="dijitTooltip "+{"BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft"}[_6+"-"+_7];
},_onShow:function(){
if(dojo.isIE){
this.domNode.style.filter="";
}
},hide:function(_8){
if(this._onDeck&&this._onDeck[1]==_8){
this._onDeck=null;
}else{
if(this.aroundNode===_8){
this.fadeIn.stop();
this.isShowingNow=false;
this.aroundNode=null;
this.fadeOut.play();
}else{
}
}
},_onHide:function(){
this.domNode.style.cssText="";
if(this._onDeck){
this.show.apply(this,this._onDeck);
this._onDeck=null;
}
}});
dijit.showTooltip=function(_9,_a,_b){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.show(_9,_a,_b);
};
dijit.hideTooltip=function(_c){
if(!dijit._masterTT){
dijit._masterTT=new dijit._MasterTooltip();
}
return dijit._masterTT.hide(_c);
};
dojo.declare("dijit.Tooltip",dijit._Widget,{label:"",showDelay:400,connectId:[],position:[],constructor:function(){
this._nodeConnectionsById={};
},_setConnectIdAttr:function(_d){
for(var _e in this._nodeConnectionsById){
this.removeTarget(_e);
}
dojo.forEach(dojo.isArrayLike(_d)?_d:[_d],this.addTarget,this);
},_getConnectIdAttr:function(){
var _f=[];
for(var id in this._nodeConnectionsById){
_f.push(id);
}
return _f;
},addTarget:function(id){
var _10=dojo.byId(id);
if(!_10){
return;
}
if(_10.id in this._nodeConnectionsById){
return;
}
this._nodeConnectionsById[_10.id]=[this.connect(_10,"onmouseenter","_onTargetMouseEnter"),this.connect(_10,"onmouseleave","_onTargetMouseLeave"),this.connect(_10,"onfocus","_onTargetFocus"),this.connect(_10,"onblur","_onTargetBlur")];
if(dojo.isIE&&!_10.style.zoom){
_10.style.zoom=1;
}
},removeTarget:function(_11){
var id=_11.id||_11;
if(id in this._nodeConnectionsById){
dojo.forEach(this._nodeConnectionsById[id],this.disconnect,this);
delete this._nodeConnectionsById[id];
}
},postCreate:function(){
dojo.addClass(this.domNode,"dijitTooltipData");
},startup:function(){
this.inherited(arguments);
var ids=this.connectId;
dojo.forEach(dojo.isArrayLike(ids)?ids:[ids],this.addTarget,this);
},_onTargetMouseEnter:function(e){
this._onHover(e);
},_onTargetMouseLeave:function(e){
this._onUnHover(e);
},_onTargetFocus:function(e){
this._focus=true;
this._onHover(e);
},_onTargetBlur:function(e){
this._focus=false;
this._onUnHover(e);
},_onHover:function(e){
if(!this._showTimer){
var _12=e.target;
this._showTimer=setTimeout(dojo.hitch(this,function(){
this.open(_12);
}),this.showDelay);
}
},_onUnHover:function(e){
if(this._focus){
return;
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
this.close();
},open:function(_13){
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
dijit.showTooltip(this.label||this.domNode.innerHTML,_13,this.position);
this._connectNode=_13;
this.onShow(_13,this.position);
},close:function(){
if(this._connectNode){
dijit.hideTooltip(this._connectNode);
delete this._connectNode;
this.onHide();
}
if(this._showTimer){
clearTimeout(this._showTimer);
delete this._showTimer;
}
},onShow:function(_14,_15){
},onHide:function(){
},uninitialize:function(){
this.close();
this.inherited(arguments);
}});
dijit.Tooltip.defaultPosition=["after","before"];
}


;if(!dojo._hasResource["dijit.form._FormWidget"]){
dojo._hasResource["dijit.form._FormWidget"]=true;
dojo.provide("dijit.form._FormWidget");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.declare("dijit.form._FormWidget",[dijit._Widget,dijit._Templated],{baseClass:"",name:"",alt:"",value:"",type:"text",tabIndex:"0",disabled:false,intermediateChanges:false,scrollOnFocus:true,attributeMap:dojo.delegate(dijit._Widget.prototype.attributeMap,{value:"focusNode",id:"focusNode",tabIndex:"focusNode",alt:"focusNode",title:"focusNode"}),postMixInProperties:function(){
this.nameAttrSetting=this.name?("name='"+this.name+"'"):"";
this.inherited(arguments);
},_setDisabledAttr:function(_1){
this.disabled=_1;
dojo.attr(this.focusNode,"disabled",_1);
if(this.valueNode){
dojo.attr(this.valueNode,"disabled",_1);
}
dijit.setWaiState(this.focusNode,"disabled",_1);
if(_1){
this._hovering=false;
this._active=false;
this.focusNode.setAttribute("tabIndex","-1");
}else{
this.focusNode.setAttribute("tabIndex",this.tabIndex);
}
this._setStateClass();
},setDisabled:function(_2){
dojo.deprecated("setDisabled("+_2+") is deprecated. Use attr('disabled',"+_2+") instead.","","2.0");
this.attr("disabled",_2);
},_onFocus:function(e){
if(this.scrollOnFocus){
dijit.scrollIntoView(this.domNode);
}
this.inherited(arguments);
},_onMouse:function(_3){
var _4=_3.currentTarget;
if(_4&&_4.getAttribute){
this.stateModifier=_4.getAttribute("stateModifier")||"";
}
if(!this.disabled){
switch(_3.type){
case "mouseenter":
case "mouseover":
this._hovering=true;
this._active=this._mouseDown;
break;
case "mouseout":
case "mouseleave":
this._hovering=false;
this._active=false;
break;
case "mousedown":
this._active=true;
this._mouseDown=true;
var _5=this.connect(dojo.body(),"onmouseup",function(){
if(this._mouseDown&&this.isFocusable()){
this.focus();
}
this._active=false;
this._mouseDown=false;
this._setStateClass();
this.disconnect(_5);
});
break;
}
this._setStateClass();
}
},isFocusable:function(){
return !this.disabled&&!this.readOnly&&this.focusNode&&(dojo.style(this.domNode,"display")!="none");
},focus:function(){
dijit.focus(this.focusNode);
},_setStateClass:function(){
var _6=this.baseClass.split(" ");
function _7(_8){
_6=_6.concat(dojo.map(_6,function(c){
return c+_8;
}),"dijit"+_8);
};
if(this.checked){
_7("Checked");
}
if(this.state){
_7(this.state);
}
if(this.selected){
_7("Selected");
}
if(this.disabled){
_7("Disabled");
}else{
if(this.readOnly){
_7("ReadOnly");
}else{
if(this._active){
_7(this.stateModifier+"Active");
}else{
if(this._focused){
_7("Focused");
}
if(this._hovering){
_7(this.stateModifier+"Hover");
}
}
}
}
var tn=this.stateNode||this.domNode,_9={};
dojo.forEach(tn.className.split(" "),function(c){
_9[c]=true;
});
if("_stateClasses" in this){
dojo.forEach(this._stateClasses,function(c){
delete _9[c];
});
}
dojo.forEach(_6,function(c){
_9[c]=true;
});
var _a=[];
for(var c in _9){
_a.push(c);
}
tn.className=_a.join(" ");
this._stateClasses=_6;
},compare:function(_b,_c){
if(typeof _b=="number"&&typeof _c=="number"){
return (isNaN(_b)&&isNaN(_c))?0:_b-_c;
}else{
if(_b>_c){
return 1;
}else{
if(_b<_c){
return -1;
}else{
return 0;
}
}
}
},onChange:function(_d){
},_onChangeActive:false,_handleOnChange:function(_e,_f){
this._lastValue=_e;
if(this._lastValueReported==undefined&&(_f===null||!this._onChangeActive)){
this._resetValue=this._lastValueReported=_e;
}
if((this.intermediateChanges||_f||_f===undefined)&&((typeof _e!=typeof this._lastValueReported)||this.compare(_e,this._lastValueReported)!=0)){
this._lastValueReported=_e;
if(this._onChangeActive){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
}
this._onChangeHandle=setTimeout(dojo.hitch(this,function(){
this._onChangeHandle=null;
this.onChange(_e);
}),0);
}
}
},create:function(){
this.inherited(arguments);
this._onChangeActive=true;
this._setStateClass();
},destroy:function(){
if(this._onChangeHandle){
clearTimeout(this._onChangeHandle);
this.onChange(this._lastValueReported);
}
this.inherited(arguments);
},setValue:function(_10){
dojo.deprecated("dijit.form._FormWidget:setValue("+_10+") is deprecated.  Use attr('value',"+_10+") instead.","","2.0");
this.attr("value",_10);
},getValue:function(){
dojo.deprecated(this.declaredClass+"::getValue() is deprecated. Use attr('value') instead.","","2.0");
return this.attr("value");
}});
dojo.declare("dijit.form._FormValueWidget",dijit.form._FormWidget,{readOnly:false,attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{value:"",readOnly:"focusNode"}),_setReadOnlyAttr:function(_11){
this.readOnly=_11;
dojo.attr(this.focusNode,"readOnly",_11);
dijit.setWaiState(this.focusNode,"readonly",_11);
this._setStateClass();
},postCreate:function(){
if(dojo.isIE){
this.connect(this.focusNode||this.domNode,"onkeydown",this._onKeyDown);
}
if(this._resetValue===undefined){
this._resetValue=this.value;
}
},_setValueAttr:function(_12,_13){
this.value=_12;
this._handleOnChange(_12,_13);
},_getValueAttr:function(){
return this._lastValue;
},undo:function(){
this._setValueAttr(this._lastValueReported,false);
},reset:function(){
this._hasBeenBlurred=false;
this._setValueAttr(this._resetValue,true);
},_onKeyDown:function(e){
if(e.keyCode==dojo.keys.ESCAPE&&!(e.ctrlKey||e.altKey||e.metaKey)){
var te;
if(dojo.isIE){
e.preventDefault();
te=document.createEventObject();
te.keyCode=dojo.keys.ESCAPE;
te.shiftKey=e.shiftKey;
e.srcElement.fireEvent("onkeypress",te);
}
}
},_layoutHackIE7:function(){
if(dojo.isIE==7){
var _14=this.domNode;
var _15=_14.parentNode;
var _16=_14.firstChild||_14;
var _17=_16.style.filter;
var _18=this;
while(_15&&_15.clientHeight==0){
(function ping(){
var _19=_18.connect(_15,"onscroll",function(e){
_18.disconnect(_19);
_16.style.filter=(new Date()).getMilliseconds();
setTimeout(function(){
_16.style.filter=_17;
},0);
});
})();
_15=_15.parentNode;
}
}
}});
}


;if(!dojo._hasResource["dijit._HasDropDown"]){
dojo._hasResource["dijit._HasDropDown"]=true;
dojo.provide("dijit._HasDropDown");
dojo.require("dijit._base.place");
dojo.require("dijit._Widget");
dojo.declare("dijit._HasDropDown",null,{_buttonNode:null,_arrowWrapperNode:null,_popupStateNode:null,_aroundNode:null,dropDown:null,autoWidth:true,forceWidth:false,maxHeight:0,dropDownPosition:["below","above"],_stopClickEvents:true,_onDropDownMouse:function(e){
if(e.type=="click"&&!this._seenKeydown){
return;
}
this._seenKeydown=false;
if(e.type=="mousedown"){
this._docHandler=this.connect(dojo.doc,"onmouseup","_onDropDownMouseup");
}
if(this.disabled||this.readOnly){
return;
}
if(this._stopClickEvents){
dojo.stopEvent(e);
}
this.toggleDropDown();
if(e.type=="click"||e.type=="keypress"){
this._onDropDownMouseup();
}
},_onDropDownMouseup:function(e){
if(e&&this._docHandler){
this.disconnect(this._docHandler);
}
var _1=this.dropDown,_2=false;
if(e&&this._opened){
var c=dojo.position(this._buttonNode,true);
if(!(e.pageX>=c.x&&e.pageX<=c.x+c.w)||!(e.pageY>=c.y&&e.pageY<=c.y+c.h)){
var t=e.target;
while(t&&!_2){
if(dojo.hasClass(t,"dijitPopup")){
_2=true;
}else{
t=t.parentNode;
}
}
if(_2){
t=e.target;
if(_1.onItemClick){
var _3;
while(t&&!(_3=dijit.byNode(t))){
t=t.parentNode;
}
if(_3&&_3.onClick&&_3.getParent){
_3.getParent().onItemClick(_3,e);
}
}
return;
}
}
}
if(this._opened&&_1.focus){
window.setTimeout(dojo.hitch(_1,"focus"),1);
}
},_setupDropdown:function(){
this._buttonNode=this._buttonNode||this.focusNode||this.domNode;
this._popupStateNode=this._popupStateNode||this.focusNode||this._buttonNode;
this._aroundNode=this._aroundNode||this.domNode;
this.connect(this._buttonNode,"onmousedown","_onDropDownMouse");
this.connect(this._buttonNode,"onclick","_onDropDownMouse");
this.connect(this._buttonNode,"onkeydown","_onDropDownKeydown");
this.connect(this._buttonNode,"onblur","_onDropDownBlur");
this.connect(this._buttonNode,"onkeypress","_onKey");
if(this._setStateClass){
this.connect(this,"openDropDown","_setStateClass");
this.connect(this,"closeDropDown","_setStateClass");
}
var _4={"after":this.isLeftToRight()?"Right":"Left","before":this.isLeftToRight()?"Left":"Right","above":"Up","below":"Down","left":"Left","right":"Right"}[this.dropDownPosition[0]]||this.dropDownPosition[0]||"Down";
dojo.addClass(this._arrowWrapperNode||this._buttonNode,"dijit"+_4+"ArrowButton");
},postCreate:function(){
this._setupDropdown();
this.inherited(arguments);
},destroyDescendants:function(){
if(this.dropDown){
if(!this.dropDown._destroyed){
this.dropDown.destroyRecursive();
}
delete this.dropDown;
}
this.inherited(arguments);
},_onDropDownKeydown:function(e){
this._seenKeydown=true;
},_onKeyPress:function(e){
if(this._opened&&e.charOrCode==dojo.keys.ESCAPE&&!e.shiftKey&&!e.ctrlKey&&!e.altKey){
this.toggleDropDown();
dojo.stopEvent(e);
return;
}
this.inherited(arguments);
},_onDropDownBlur:function(e){
this._seenKeydown=false;
},_onKey:function(e){
if(this.disabled||this.readOnly){
return;
}
var d=this.dropDown;
if(d&&this._opened&&d.handleKey){
if(d.handleKey(e)===false){
return;
}
}
if(d&&this._opened&&e.keyCode==dojo.keys.ESCAPE){
this.toggleDropDown();
return;
}
if(e.keyCode==dojo.keys.DOWN_ARROW||e.keyCode==dojo.keys.ENTER||e.charOrCode==" "){
this._onDropDownMouse(e);
}
},_onBlur:function(){
this.closeDropDown();
this.inherited(arguments);
},isLoaded:function(){
return true;
},loadDropDown:function(_5){
_5();
},toggleDropDown:function(){
if(this.disabled||this.readOnly){
return;
}
this.focus();
var _6=this.dropDown;
if(!_6){
return;
}
if(!this._opened){
if(!this.isLoaded()){
this.loadDropDown(dojo.hitch(this,"openDropDown"));
return;
}else{
this.openDropDown();
}
}else{
this.closeDropDown();
}
},openDropDown:function(){
var _7=this.dropDown;
var _8=_7.domNode;
var _9=this;
if(!this._preparedNode){
dijit.popup.moveOffScreen(_8);
this._preparedNode=true;
if(_8.style.width){
this._explicitDDWidth=true;
}
if(_8.style.height){
this._explicitDDHeight=true;
}
}
if(this.maxHeight||this.forceWidth||this.autoWidth){
var _a={display:"",visibility:"hidden"};
if(!this._explicitDDWidth){
_a.width="";
}
if(!this._explicitDDHeight){
_a.height="";
}
dojo.style(_8,_a);
var mb=dojo.marginBox(_8);
var _b=(this.maxHeight&&mb.h>this.maxHeight);
dojo.style(_8,{overflow:_b?"auto":"hidden"});
if(this.forceWidth){
mb.w=this.domNode.offsetWidth;
}else{
if(this.autoWidth){
mb.w=Math.max(mb.w,this.domNode.offsetWidth);
}else{
delete mb.w;
}
}
if(_b){
mb.h=this.maxHeight;
if("w" in mb){
mb.w+=16;
}
}else{
delete mb.h;
}
delete mb.t;
delete mb.l;
if(dojo.isFunction(_7.resize)){
_7.resize(mb);
}else{
dojo.marginBox(_8,mb);
}
}
var _c=dijit.popup.open({parent:this,popup:_7,around:this._aroundNode,orient:dijit.getPopupAroundAlignment((this.dropDownPosition&&this.dropDownPosition.length)?this.dropDownPosition:["below"],this.isLeftToRight()),onExecute:function(){
_9.closeDropDown(true);
},onCancel:function(){
_9.closeDropDown(true);
},onClose:function(){
dojo.attr(_9._popupStateNode,"popupActive",false);
dojo.removeClass(_9._popupStateNode,"dijitHasDropDownOpen");
_9._opened=false;
_9.state="";
}});
dojo.attr(this._popupStateNode,"popupActive","true");
dojo.addClass(_9._popupStateNode,"dijitHasDropDownOpen");
this._opened=true;
this.state="Opened";
return _c;
},closeDropDown:function(_d){
if(this._opened){
dijit.popup.close(this.dropDown);
if(_d){
this.focus();
}
this._opened=false;
this.state="";
}
}});
}


;if(!dojo._hasResource["dijit.form.Button"]){
dojo._hasResource["dijit.form.Button"]=true;
dojo.provide("dijit.form.Button");
dojo.require("dijit.form._FormWidget");
dojo.require("dijit._Container");
dojo.require("dijit._HasDropDown");
dojo.declare("dijit.form.Button",dijit.form._FormWidget,{label:"",showLabel:true,iconClass:"",type:"button",baseClass:"dijitButton",templateString:dojo.cache("dijit.form","templates/Button.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class=\"dijitReset dijitRight dijitInline\"\n\t\t><span class=\"dijitReset dijitInline dijitButtonNode\"\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\tdojoAttachPoint=\"titleNode,focusNode\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\" waiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\"\n\t\t\t\t\t><span class=\"dijitReset dijitToggleButtonIconChar\">&#10003;</span\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode\"\n\t\t\t\t></span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),attributeMap:dojo.delegate(dijit.form._FormWidget.prototype.attributeMap,{label:{node:"containerNode",type:"innerHTML"},iconClass:{node:"iconNode",type:"class"}}),_onClick:function(e){
if(this.disabled){
return false;
}
this._clicked();
return this.onClick(e);
},_onButtonClick:function(e){
if(this._onClick(e)===false){
e.preventDefault();
}else{
if(this.type=="submit"&&!this.focusNode.form){
for(var _1=this.domNode;_1.parentNode;_1=_1.parentNode){
var _2=dijit.byNode(_1);
if(_2&&typeof _2._onSubmit=="function"){
_2._onSubmit(e);
break;
}
}
}
}
},_setValueAttr:function(_3){
var _4=this.attributeMap.value||"";
if(this[_4.node||_4||"domNode"].tagName=="BUTTON"){
if(_3!=this.value){
console.debug("Cannot change the value attribute on a Button widget.");
}
}
},_fillContent:function(_5){
if(_5&&(!this.params||!("label" in this.params))){
this.attr("label",_5.innerHTML);
}
},postCreate:function(){
dojo.setSelectable(this.focusNode,false);
this.inherited(arguments);
},_setShowLabelAttr:function(_6){
if(this.containerNode){
dojo.toggleClass(this.containerNode,"dijitDisplayNone",!_6);
}
this.showLabel=_6;
},onClick:function(e){
return true;
},_clicked:function(e){
},setLabel:function(_7){
dojo.deprecated("dijit.form.Button.setLabel() is deprecated.  Use attr('label', ...) instead.","","2.0");
this.attr("label",_7);
},_setLabelAttr:function(_8){
this.containerNode.innerHTML=this.label=_8;
if(this.showLabel==false&&!this.params.title){
this.titleNode.title=dojo.trim(this.containerNode.innerText||this.containerNode.textContent||"");
}
}});
dojo.declare("dijit.form.DropDownButton",[dijit.form.Button,dijit._Container,dijit._HasDropDown],{baseClass:"dijitDropDownButton",templateString:dojo.cache("dijit.form","templates/DropDownButton.html","<span class=\"dijit dijitReset dijitLeft dijitInline\"\n\tdojoAttachPoint=\"_buttonNode\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\"\n\t><span class='dijitReset dijitRight dijitInline'\n\t\t><span class='dijitReset dijitInline dijitButtonNode'\n\t\t\t><button class=\"dijitReset dijitStretch dijitButtonContents\"\n\t\t\t\t${nameAttrSetting} type=\"${type}\" value=\"${value}\"\n\t\t\t\tdojoAttachPoint=\"focusNode,titleNode,_arrowWrapperNode\"\n\t\t\t\twaiRole=\"button\" waiState=\"haspopup-true,labelledby-${id}_label\"\n\t\t\t\t><span class=\"dijitReset dijitInline\"\n\t\t\t\t\tdojoAttachPoint=\"iconNode\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitButtonText\"\n\t\t\t\t\tdojoAttachPoint=\"containerNode,_popupStateNode\"\n\t\t\t\t\tid=\"${id}_label\"\n\t\t\t\t></span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonInner\">&thinsp;</span\n\t\t\t\t><span class=\"dijitReset dijitInline dijitArrowButtonChar\">&#9660;</span\n\t\t\t></button\n\t\t></span\n\t></span\n></span>\n"),_fillContent:function(){
if(this.srcNodeRef){
var _9=dojo.query("*",this.srcNodeRef);
dijit.form.DropDownButton.superclass._fillContent.call(this,_9[0]);
this.dropDownContainer=this.srcNodeRef;
}
},startup:function(){
if(this._started){
return;
}
if(!this.dropDown){
var _a=dojo.query("[widgetId]",this.dropDownContainer)[0];
this.dropDown=dijit.byNode(_a);
delete this.dropDownContainer;
}
dijit.popup.moveOffScreen(this.dropDown.domNode);
this.inherited(arguments);
},isLoaded:function(){
var _b=this.dropDown;
return (!_b.href||_b.isLoaded);
},loadDropDown:function(){
var _c=this.dropDown;
if(!_c){
return;
}
if(!this.isLoaded()){
var _d=dojo.connect(_c,"onLoad",this,function(){
dojo.disconnect(_d);
this.openDropDown();
});
_c.refresh();
}else{
this.openDropDown();
}
},isFocusable:function(){
return this.inherited(arguments)&&!this._mouseDown;
}});
dojo.declare("dijit.form.ComboButton",dijit.form.DropDownButton,{templateString:dojo.cache("dijit.form","templates/ComboButton.html","<table class='dijit dijitReset dijitInline dijitLeft'\n\tcellspacing='0' cellpadding='0' waiRole=\"presentation\"\n\t><tbody waiRole=\"presentation\"><tr waiRole=\"presentation\"\n\t\t><td class=\"dijitReset dijitStretch dijitButtonNode\"><button id=\"${id}_button\" class=\"dijitReset dijitButtonContents\"\n\t\t\tdojoAttachEvent=\"onclick:_onButtonClick,onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse,onkeypress:_onButtonKeyPress\"  dojoAttachPoint=\"titleNode\"\n\t\t\twaiRole=\"button\" waiState=\"labelledby-${id}_label\"\n\t\t\t><div class=\"dijitReset dijitInline\" dojoAttachPoint=\"iconNode\" waiRole=\"presentation\"></div\n\t\t\t><div class=\"dijitReset dijitInline dijitButtonText\" id=\"${id}_label\" dojoAttachPoint=\"containerNode\" waiRole=\"presentation\"></div\n\t\t></button></td\n\t\t><td id=\"${id}_arrow\" class='dijitReset dijitRight dijitButtonNode dijitArrowButton'\n\t\t\tdojoAttachPoint=\"_popupStateNode,focusNode,_buttonNode\"\n\t\t\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onkeypress:_onArrowKeyPress\"\n\t\t\tstateModifier=\"DownArrow\"\n\t\t\ttitle=\"${optionsTitle}\" ${nameAttrSetting}\n\t\t\twaiRole=\"button\" waiState=\"haspopup-true\"\n\t\t\t><div class=\"dijitReset dijitArrowButtonInner\" waiRole=\"presentation\">&thinsp;</div\n\t\t\t><div class=\"dijitReset dijitArrowButtonChar\" waiRole=\"presentation\">&#9660;</div\n\t\t></td\n\t></tr></tbody\n></table>\n"),attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{id:"",tabIndex:["focusNode","titleNode"],title:"titleNode"}),optionsTitle:"",baseClass:"dijitComboButton",_focusedNode:null,postCreate:function(){
this.inherited(arguments);
this._focalNodes=[this.titleNode,this._popupStateNode];
var _e=dojo.isIE;
dojo.forEach(this._focalNodes,dojo.hitch(this,function(_f){
this.connect(_f,_e?"onactivate":"onfocus",this._onNodeFocus);
this.connect(_f,_e?"ondeactivate":"onblur",this._onNodeBlur);
}));
if(_e&&(_e<8||dojo.isQuirks)){
with(this.titleNode){
style.width=scrollWidth+"px";
this.connect(this.titleNode,"onresize",function(){
setTimeout(function(){
style.width=scrollWidth+"px";
},0);
});
}
}
},_onNodeFocus:function(evt){
this._focusedNode=evt.currentTarget;
var fnc=this._focusedNode==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.addClass(this._focusedNode,fnc);
},_onNodeBlur:function(evt){
var fnc=evt.currentTarget==this.focusNode?"dijitDownArrowButtonFocused":"dijitButtonContentsFocused";
dojo.removeClass(evt.currentTarget,fnc);
},_onBlur:function(){
this.inherited(arguments);
this._focusedNode=null;
},_onButtonKeyPress:function(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"RIGHT_ARROW":"LEFT_ARROW"]){
dijit.focus(this._popupStateNode);
dojo.stopEvent(evt);
}
},_onArrowKeyPress:function(evt){
if(evt.charOrCode==dojo.keys[this.isLeftToRight()?"LEFT_ARROW":"RIGHT_ARROW"]){
dijit.focus(this.titleNode);
dojo.stopEvent(evt);
}
},focus:function(_10){
dijit.focus(_10=="start"?this.titleNode:this._popupStateNode);
}});
dojo.declare("dijit.form.ToggleButton",dijit.form.Button,{baseClass:"dijitToggleButton",checked:false,attributeMap:dojo.mixin(dojo.clone(dijit.form.Button.prototype.attributeMap),{checked:"focusNode"}),_clicked:function(evt){
this.attr("checked",!this.checked);
},_setCheckedAttr:function(_11){
this.checked=_11;
dojo.attr(this.focusNode||this.domNode,"checked",_11);
dijit.setWaiState(this.focusNode||this.domNode,"pressed",_11);
this._setStateClass();
this._handleOnChange(_11,true);
},setChecked:function(_12){
dojo.deprecated("setChecked("+_12+") is deprecated. Use attr('checked',"+_12+") instead.","","2.0");
this.attr("checked",_12);
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
}});
}


;if(!dojo._hasResource["dijit.form.CheckBox"]){
dojo._hasResource["dijit.form.CheckBox"]=true;
dojo.provide("dijit.form.CheckBox");
dojo.require("dijit.form.Button");
dojo.declare("dijit.form.CheckBox",dijit.form.ToggleButton,{templateString:dojo.cache("dijit.form","templates/CheckBox.html","<div class=\"dijitReset dijitInline\" waiRole=\"presentation\"\n\t><input\n\t \t${nameAttrSetting} type=\"${type}\" ${checkedAttrSetting}\n\t\tclass=\"dijitReset dijitCheckBoxInput\"\n\t\tdojoAttachPoint=\"focusNode\"\n\t \tdojoAttachEvent=\"onmouseover:_onMouse,onmouseout:_onMouse,onclick:_onClick\"\n/></div>\n"),baseClass:"dijitCheckBox",type:"checkbox",value:"on",readOnly:false,attributeMap:dojo.delegate(dijit.form.ToggleButton.prototype.attributeMap,{readOnly:"focusNode"}),_setReadOnlyAttr:function(_1){
this.readOnly=_1;
dojo.attr(this.focusNode,"readOnly",_1);
dijit.setWaiState(this.focusNode,"readonly",_1);
this._setStateClass();
},_setValueAttr:function(_2){
if(typeof _2=="string"){
this.value=_2;
dojo.attr(this.focusNode,"value",_2);
_2=true;
}
if(this._created){
this.attr("checked",_2);
}
},_getValueAttr:function(){
return (this.checked?this.value:false);
},postMixInProperties:function(){
if(this.value==""){
this.value="on";
}
this.checkedAttrSetting=this.checked?"checked":"";
this.inherited(arguments);
},_fillContent:function(_3){
},reset:function(){
this._hasBeenBlurred=false;
this.attr("checked",this.params.checked||false);
this.value=this.params.value||"on";
dojo.attr(this.focusNode,"value",this.value);
},_onFocus:function(){
if(this.id){
dojo.query("label[for='"+this.id+"']").addClass("dijitFocusedLabel");
}
},_onBlur:function(){
if(this.id){
dojo.query("label[for='"+this.id+"']").removeClass("dijitFocusedLabel");
}
},_onClick:function(e){
if(this.readOnly){
return false;
}
return this.inherited(arguments);
}});
dojo.declare("dijit.form.RadioButton",dijit.form.CheckBox,{type:"radio",baseClass:"dijitRadio",_setCheckedAttr:function(_4){
this.inherited(arguments);
if(!this._created){
return;
}
if(_4){
var _5=this;
dojo.query("INPUT[type=radio]",this.focusNode.form||dojo.doc).forEach(function(_6){
if(_6.name==_5.name&&_6!=_5.focusNode&&_6.form==_5.focusNode.form){
var _7=dijit.getEnclosingWidget(_6);
if(_7&&_7.checked){
_7.attr("checked",false);
}
}
});
}
},_clicked:function(e){
if(!this.checked){
this.attr("checked",true);
}
}});
}


;if(!dojo._hasResource["dijit.form.TextBox"]){
dojo._hasResource["dijit.form.TextBox"]=true;
dojo.provide("dijit.form.TextBox");
dojo.require("dijit.form._FormWidget");
dojo.declare("dijit.form.TextBox",dijit.form._FormValueWidget,{trim:false,uppercase:false,lowercase:false,propercase:false,maxLength:"",selectOnClick:false,templateString:dojo.cache("dijit.form","templates/TextBox.html","<input class=\"dijit dijitReset dijitLeft\" dojoAttachPoint='textbox,focusNode'\n\tdojoAttachEvent='onmouseenter:_onMouse,onmouseleave:_onMouse'\n\tautocomplete=\"off\" type=\"${type}\" ${nameAttrSetting}\n\t/>\n"),baseClass:"dijitTextBox",attributeMap:dojo.delegate(dijit.form._FormValueWidget.prototype.attributeMap,{maxLength:"focusNode"}),_getValueAttr:function(){
return this.parse(this.attr("displayedValue"),this.constraints);
},_setValueAttr:function(_1,_2,_3){
var _4;
if(_1!==undefined){
_4=this.filter(_1);
if(typeof _3!="string"){
if(_4!==null&&((typeof _4!="number")||!isNaN(_4))){
_3=this.filter(this.format(_4,this.constraints));
}else{
_3="";
}
}
}
if(_3!=null&&_3!=undefined&&((typeof _3)!="number"||!isNaN(_3))&&this.textbox.value!=_3){
this.textbox.value=_3;
}
this.inherited(arguments,[_4,_2]);
},displayedValue:"",getDisplayedValue:function(){
dojo.deprecated(this.declaredClass+"::getDisplayedValue() is deprecated. Use attr('displayedValue') instead.","","2.0");
return this.attr("displayedValue");
},_getDisplayedValueAttr:function(){
return this.filter(this.textbox.value);
},setDisplayedValue:function(_5){
dojo.deprecated(this.declaredClass+"::setDisplayedValue() is deprecated. Use attr('displayedValue', ...) instead.","","2.0");
this.attr("displayedValue",_5);
},_setDisplayedValueAttr:function(_6){
if(_6===null||_6===undefined){
_6="";
}else{
if(typeof _6!="string"){
_6=String(_6);
}
}
this.textbox.value=_6;
this._setValueAttr(this.attr("value"),undefined,_6);
},format:function(_7,_8){
return ((_7==null||_7==undefined)?"":(_7.toString?_7.toString():_7));
},parse:function(_9,_a){
return _9;
},_refreshState:function(){
},_onInput:function(e){
if(e&&e.type&&/key/i.test(e.type)&&e.keyCode){
switch(e.keyCode){
case dojo.keys.SHIFT:
case dojo.keys.ALT:
case dojo.keys.CTRL:
case dojo.keys.TAB:
return;
}
}
if(this.intermediateChanges){
var _b=this;
setTimeout(function(){
_b._handleOnChange(_b.attr("value"),false);
},0);
}
this._refreshState();
},postCreate:function(){
this.textbox.setAttribute("value",this.textbox.value);
this.inherited(arguments);
if(dojo.isMoz||dojo.isOpera){
this.connect(this.textbox,"oninput",this._onInput);
}else{
this.connect(this.textbox,"onkeydown",this._onInput);
this.connect(this.textbox,"onkeyup",this._onInput);
this.connect(this.textbox,"onpaste",this._onInput);
this.connect(this.textbox,"oncut",this._onInput);
}
},_blankValue:"",filter:function(_c){
if(_c===null){
return this._blankValue;
}
if(typeof _c!="string"){
return _c;
}
if(this.trim){
_c=dojo.trim(_c);
}
if(this.uppercase){
_c=_c.toUpperCase();
}
if(this.lowercase){
_c=_c.toLowerCase();
}
if(this.propercase){
_c=_c.replace(/[^\s]+/g,function(_d){
return _d.substring(0,1).toUpperCase()+_d.substring(1);
});
}
return _c;
},_setBlurValue:function(){
this._setValueAttr(this.attr("value"),true);
},_onBlur:function(e){
if(this.disabled){
return;
}
this._setBlurValue();
this.inherited(arguments);
if(this._selectOnClickHandle){
this.disconnect(this._selectOnClickHandle);
}
if(this.selectOnClick&&dojo.isMoz){
this.textbox.selectionStart=this.textbox.selectionEnd=undefined;
}
},_onFocus:function(by){
if(this.disabled||this.readOnly){
return;
}
if(this.selectOnClick&&by=="mouse"){
this._selectOnClickHandle=this.connect(this.domNode,"onmouseup",function(){
this.disconnect(this._selectOnClickHandle);
var _e;
if(dojo.isIE){
var _f=dojo.doc.selection.createRange();
var _10=_f.parentElement();
_e=_10==this.textbox&&_f.text.length==0;
}else{
_e=this.textbox.selectionStart==this.textbox.selectionEnd;
}
if(_e){
dijit.selectInputText(this.textbox);
}
});
}
this._refreshState();
this.inherited(arguments);
},reset:function(){
this.textbox.value="";
this.inherited(arguments);
}});
dijit.selectInputText=function(_11,_12,_13){
var _14=dojo.global;
var _15=dojo.doc;
_11=dojo.byId(_11);
if(isNaN(_12)){
_12=0;
}
if(isNaN(_13)){
_13=_11.value?_11.value.length:0;
}
dijit.focus(_11);
if(_15["selection"]&&dojo.body()["createTextRange"]){
if(_11.createTextRange){
var _16=_11.createTextRange();
with(_16){
collapse(true);
moveStart("character",-99999);
moveStart("character",_12);
moveEnd("character",_13-_12);
select();
}
}
}else{
if(_14["getSelection"]){
if(_11.setSelectionRange){
_11.setSelectionRange(_12,_13);
}
}
}
};
}

dojo.provide("dijit.form.nls.validate")._built=true;
dojo.provide("dijit.form.nls.validate.en");
dijit.form.nls.validate.en={"invalidMessage":"The value entered is not valid.","missingMessage":"This value is required.","rangeMessage":"This value is out of range."};

;if(!dojo._hasResource["dijit.form.ValidationTextBox"]){
dojo._hasResource["dijit.form.ValidationTextBox"]=true;
dojo.provide("dijit.form.ValidationTextBox");
dojo.require("dojo.i18n");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.Tooltip");
dojo.requireLocalization("dijit.form","validate",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.declare("dijit.form.ValidationTextBox",dijit.form.TextBox,{templateString:dojo.cache("dijit.form","templates/ValidationTextBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" waiRole=\"presentation\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input class=\"dijitReset\" dojoAttachPoint='textbox,focusNode' autocomplete=\"off\"\n\t\t\t${nameAttrSetting} type='${type}'\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitTextBox",required:false,promptMessage:"",invalidMessage:"$_unset_$",constraints:{},regExp:".*",regExpGen:function(_1){
return this.regExp;
},state:"",tooltipPosition:[],_setValueAttr:function(){
this.inherited(arguments);
this.validate(this._focused);
},validator:function(_2,_3){
return (new RegExp("^(?:"+this.regExpGen(_3)+")"+(this.required?"":"?")+"$")).test(_2)&&(!this.required||!this._isEmpty(_2))&&(this._isEmpty(_2)||this.parse(_2,_3)!==undefined);
},_isValidSubset:function(){
return this.textbox.value.search(this._partialre)==0;
},isValid:function(_4){
return this.validator(this.textbox.value,this.constraints);
},_isEmpty:function(_5){
return /^\s*$/.test(_5);
},getErrorMessage:function(_6){
return this.invalidMessage;
},getPromptMessage:function(_7){
return this.promptMessage;
},_maskValidSubsetError:true,validate:function(_8){
var _9="";
var _a=this.disabled||this.isValid(_8);
if(_a){
this._maskValidSubsetError=true;
}
var _b=!_a&&_8&&this._isValidSubset();
var _c=this._isEmpty(this.textbox.value);
if(_c){
this._maskValidSubsetError=true;
}
this.state=(_a||(!this._hasBeenBlurred&&_c)||_b)?"":"Error";
if(this.state=="Error"){
this._maskValidSubsetError=false;
}
this._setStateClass();
dijit.setWaiState(this.focusNode,"invalid",_a?"false":"true");
if(_8){
if(_c){
_9=this.getPromptMessage(true);
}
if(!_9&&(this.state=="Error"||(_b&&!this._maskValidSubsetError))){
_9=this.getErrorMessage(true);
}
}
this.displayMessage(_9);
return _a;
},_message:"",displayMessage:function(_d){
if(this._message==_d){
return;
}
this._message=_d;
dijit.hideTooltip(this.domNode);
if(_d){
dijit.showTooltip(_d,this.domNode,this.tooltipPosition);
}
},_refreshState:function(){
this.validate(this._focused);
this.inherited(arguments);
},constructor:function(){
this.constraints={};
},postMixInProperties:function(){
this.inherited(arguments);
this.constraints.locale=this.lang;
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
if(this.invalidMessage=="$_unset_$"){
this.invalidMessage=this.messages.invalidMessage;
}
var p=this.regExpGen(this.constraints);
this.regExp=p;
var _e="";
if(p!=".*"){
this.regExp.replace(/\\.|\[\]|\[.*?[^\\]{1}\]|\{.*?\}|\(\?[=:!]|./g,function(re){
switch(re.charAt(0)){
case "{":
case "+":
case "?":
case "*":
case "^":
case "$":
case "|":
case "(":
_e+=re;
break;
case ")":
_e+="|$)";
break;
default:
_e+="(?:"+re+"|$)";
break;
}
});
}
try{
"".search(_e);
}
catch(e){
_e=this.regExp;
console.warn("RegExp error in "+this.declaredClass+": "+this.regExp);
}
this._partialre="^(?:"+_e+")$";
},_setDisabledAttr:function(_f){
this.inherited(arguments);
this._refreshState();
},_setRequiredAttr:function(_10){
this.required=_10;
dijit.setWaiState(this.focusNode,"required",_10);
this._refreshState();
},postCreate:function(){
if(dojo.isIE){
var s=dojo.getComputedStyle(this.focusNode);
if(s){
var ff=s.fontFamily;
if(ff){
this.focusNode.style.fontFamily=ff;
}
}
}
this.inherited(arguments);
},reset:function(){
this._maskValidSubsetError=true;
this.inherited(arguments);
},_onBlur:function(){
this.displayMessage("");
this.inherited(arguments);
}});
dojo.declare("dijit.form.MappedTextBox",dijit.form.ValidationTextBox,{postMixInProperties:function(){
this.inherited(arguments);
this.nameAttrSetting="";
},serialize:function(val,_11){
return val.toString?val.toString():"";
},toString:function(){
var val=this.filter(this.attr("value"));
return val!=null?(typeof val=="string"?val:this.serialize(val,this.constraints)):"";
},validate:function(){
this.valueNode.value=this.toString();
return this.inherited(arguments);
},buildRendering:function(){
this.inherited(arguments);
this.valueNode=dojo.place("<input type='hidden'"+(this.name?" name='"+this.name+"'":"")+">",this.textbox,"after");
},reset:function(){
this.valueNode.value="";
this.inherited(arguments);
}});
dojo.declare("dijit.form.RangeBoundTextBox",dijit.form.MappedTextBox,{rangeMessage:"",rangeCheck:function(_12,_13){
return ("min" in _13?(this.compare(_12,_13.min)>=0):true)&&("max" in _13?(this.compare(_12,_13.max)<=0):true);
},isInRange:function(_14){
return this.rangeCheck(this.attr("value"),this.constraints);
},_isDefinitelyOutOfRange:function(){
var val=this.attr("value");
var _15=false;
var _16=false;
if("min" in this.constraints){
var min=this.constraints.min;
min=this.compare(val,((typeof min=="number")&&min>=0&&val!=0)?0:min);
_15=(typeof min=="number")&&min<0;
}
if("max" in this.constraints){
var max=this.constraints.max;
max=this.compare(val,((typeof max!="number")||max>0)?max:0);
_16=(typeof max=="number")&&max>0;
}
return _15||_16;
},_isValidSubset:function(){
return this.inherited(arguments)&&!this._isDefinitelyOutOfRange();
},isValid:function(_17){
return this.inherited(arguments)&&((this._isEmpty(this.textbox.value)&&!this.required)||this.isInRange(_17));
},getErrorMessage:function(_18){
var v=this.attr("value");
if(v!==null&&v!==""&&v!==undefined&&!this.isInRange(_18)){
return this.rangeMessage;
}
return this.inherited(arguments);
},postMixInProperties:function(){
this.inherited(arguments);
if(!this.rangeMessage){
this.messages=dojo.i18n.getLocalization("dijit.form","validate",this.lang);
this.rangeMessage=this.messages.rangeMessage;
}
},postCreate:function(){
this.inherited(arguments);
if(this.constraints.min!==undefined){
dijit.setWaiState(this.focusNode,"valuemin",this.constraints.min);
}
if(this.constraints.max!==undefined){
dijit.setWaiState(this.focusNode,"valuemax",this.constraints.max);
}
},_setValueAttr:function(_19,_1a){
dijit.setWaiState(this.focusNode,"valuenow",_19);
this.inherited(arguments);
}});
}


;if(!dojo._hasResource["dojo.data.util.sorter"]){
dojo._hasResource["dojo.data.util.sorter"]=true;
dojo.provide("dojo.data.util.sorter");
dojo.data.util.sorter.basicComparator=function(a,b){
var r=-1;
if(a===null){
a=undefined;
}
if(b===null){
b=undefined;
}
if(a==b){
r=0;
}else{
if(a>b||a==null){
r=1;
}
}
return r;
};
dojo.data.util.sorter.createSortFunction=function(_1,_2){
var _3=[];
function _4(_5,_6,_7,s){
return function(_8,_9){
var a=s.getValue(_8,_5);
var b=s.getValue(_9,_5);
return _6*_7(a,b);
};
};
var _a;
var _b=_2.comparatorMap;
var bc=dojo.data.util.sorter.basicComparator;
for(var i=0;i<_1.length;i++){
_a=_1[i];
var _c=_a.attribute;
if(_c){
var _d=(_a.descending)?-1:1;
var _e=bc;
if(_b){
if(typeof _c!=="string"&&("toString" in _c)){
_c=_c.toString();
}
_e=_b[_c]||bc;
}
_3.push(_4(_c,_d,_e,_2));
}
}
return function(_f,_10){
var i=0;
while(i<_3.length){
var ret=_3[i++](_f,_10);
if(ret!==0){
return ret;
}
}
return 0;
};
};
}


;if(!dojo._hasResource["dojo.data.util.simpleFetch"]){
dojo._hasResource["dojo.data.util.simpleFetch"]=true;
dojo.provide("dojo.data.util.simpleFetch");
dojo.require("dojo.data.util.sorter");
dojo.data.util.simpleFetch.fetch=function(_1){
_1=_1||{};
if(!_1.store){
_1.store=this;
}
var _2=this;
var _3=function(_4,_5){
if(_5.onError){
var _6=_5.scope||dojo.global;
_5.onError.call(_6,_4,_5);
}
};
var _7=function(_8,_9){
var _a=_9.abort||null;
var _b=false;
var _c=_9.start?_9.start:0;
var _d=(_9.count&&(_9.count!==Infinity))?(_c+_9.count):_8.length;
_9.abort=function(){
_b=true;
if(_a){
_a.call(_9);
}
};
var _e=_9.scope||dojo.global;
if(!_9.store){
_9.store=_2;
}
if(_9.onBegin){
_9.onBegin.call(_e,_8.length,_9);
}
if(_9.sort){
_8.sort(dojo.data.util.sorter.createSortFunction(_9.sort,_2));
}
if(_9.onItem){
for(var i=_c;(i<_8.length)&&(i<_d);++i){
var _f=_8[i];
if(!_b){
_9.onItem.call(_e,_f,_9);
}
}
}
if(_9.onComplete&&!_b){
var _10=null;
if(!_9.onItem){
_10=_8.slice(_c,_d);
}
_9.onComplete.call(_e,_10,_9);
}
};
this._fetchItems(_1,_7,_3);
return _1;
};
}


;if(!dojo._hasResource["dojo.data.util.filter"]){
dojo._hasResource["dojo.data.util.filter"]=true;
dojo.provide("dojo.data.util.filter");
dojo.data.util.filter.patternToRegExp=function(_1,_2){
var _3="^";
var c=null;
for(var i=0;i<_1.length;i++){
c=_1.charAt(i);
switch(c){
case "\\":
_3+=c;
i++;
_3+=_1.charAt(i);
break;
case "*":
_3+=".*";
break;
case "?":
_3+=".";
break;
case "$":
case "^":
case "/":
case "+":
case ".":
case "|":
case "(":
case ")":
case "{":
case "}":
case "[":
case "]":
_3+="\\";
default:
_3+=c;
}
}
_3+="$";
if(_2){
return new RegExp(_3,"mi");
}else{
return new RegExp(_3,"m");
}
};
}


;if(!dojo._hasResource["dojo.regexp"]){
dojo._hasResource["dojo.regexp"]=true;
dojo.provide("dojo.regexp");
dojo.regexp.escapeString=function(_1,_2){
return _1.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,function(ch){
if(_2&&_2.indexOf(ch)!=-1){
return ch;
}
return "\\"+ch;
});
};
dojo.regexp.buildGroupRE=function(_3,re,_4){
if(!(_3 instanceof Array)){
return re(_3);
}
var b=[];
for(var i=0;i<_3.length;i++){
b.push(re(_3[i]));
}
return dojo.regexp.group(b.join("|"),_4);
};
dojo.regexp.group=function(_5,_6){
return "("+(_6?"?:":"")+_5+")";
};
}

dojo.provide("dijit.form.nls.ComboBox")._built=true;
dojo.provide("dijit.form.nls.ComboBox.en");
dijit.form.nls.ComboBox.en={"previousMessage":"Previous choices","nextMessage":"More choices"};

;if(!dojo._hasResource["dijit.form.ComboBox"]){
dojo._hasResource["dijit.form.ComboBox"]=true;
dojo.provide("dijit.form.ComboBox");
dojo.require("dijit.form._FormWidget");
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dojo.data.util.simpleFetch");
dojo.require("dojo.data.util.filter");
dojo.require("dojo.regexp");
dojo.requireLocalization("dijit.form","ComboBox",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.declare("dijit.form.ComboBoxMixin",null,{item:null,pageSize:Infinity,store:null,fetchProperties:{},query:{},autoComplete:true,highlightMatch:"first",searchDelay:100,searchAttr:"name",labelAttr:"",labelType:"text",queryExpr:"${0}*",ignoreCase:true,hasDownArrow:true,templateString:dojo.cache("dijit.form","templates/ComboBox.html","<div class=\"dijit dijitReset dijitInlineTable dijitLeft\"\n\tid=\"widget_${id}\"\n\tdojoAttachEvent=\"onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse\" dojoAttachPoint=\"comboNode\" waiRole=\"combobox\" tabIndex=\"-1\"\n\t><div style=\"overflow:hidden;\"\n\t\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton'\n\t\t\tdojoAttachPoint=\"downArrowNode\" waiRole=\"presentation\"\n\t\t\tdojoAttachEvent=\"onmousedown:_onArrowMouseDown,onmouseup:_onMouse,onmouseenter:_onMouse,onmouseleave:_onMouse\"\n\t\t\t><div class=\"dijitArrowButtonInner\">&thinsp;</div\n\t\t\t><div class=\"dijitArrowButtonChar\">&#9660;</div\n\t\t></div\n\t\t><div class=\"dijitReset dijitValidationIcon\"><br></div\n\t\t><div class=\"dijitReset dijitValidationIconText\">&Chi;</div\n\t\t><div class=\"dijitReset dijitInputField\"\n\t\t\t><input ${nameAttrSetting} type=\"text\" autocomplete=\"off\" class='dijitReset'\n\t\t\tdojoAttachEvent=\"onkeypress:_onKeyPress,compositionend\"\n\t\t\tdojoAttachPoint=\"textbox,focusNode\" waiRole=\"textbox\" waiState=\"haspopup-true,autocomplete-list\"\n\t\t/></div\n\t></div\n></div>\n"),baseClass:"dijitComboBox",_getCaretPos:function(_1){
var _2=0;
if(typeof (_1.selectionStart)=="number"){
_2=_1.selectionStart;
}else{
if(dojo.isIE){
var tr=dojo.doc.selection.createRange().duplicate();
var _3=_1.createTextRange();
tr.move("character",0);
_3.move("character",0);
try{
_3.setEndPoint("EndToEnd",tr);
_2=String(_3.text).replace(/\r/g,"").length;
}
catch(e){
}
}
}
return _2;
},_setCaretPos:function(_4,_5){
_5=parseInt(_5);
dijit.selectInputText(_4,_5,_5);
},_setDisabledAttr:function(_6){
this.inherited(arguments);
dijit.setWaiState(this.comboNode,"disabled",_6);
},_abortQuery:function(){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
if(this._fetchHandle){
if(this._fetchHandle.abort){
this._fetchHandle.abort();
}
this._fetchHandle=null;
}
},_onKeyPress:function(_7){
var _8=_7.charOrCode;
if(_7.altKey||((_7.ctrlKey||_7.metaKey)&&(_8!="x"&&_8!="v"))||_8==dojo.keys.SHIFT){
return;
}
var _9=false;
var _a="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _b=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(_8);
_b=pw.getHighlightedOption();
}
switch(_8){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_9=true;
_a="_startSearchAll";
}else{
this._announceOption(_b);
}
dojo.stopEvent(_7);
break;
case dk.ENTER:
if(_b){
if(_b==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(_7);
break;
}else{
if(_b==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(_7);
break;
}
}
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
}
_7.preventDefault();
case dk.TAB:
var _c=this.attr("displayedValue");
if(pw&&(_c==pw._messages["previousMessage"]||_c==pw._messages["nextMessage"])){
break;
}
if(_b){
this._selectOption();
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_b){
dojo.stopEvent(_7);
this._selectOption();
this._hideResultList();
}else{
_9=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(_7);
this._hideResultList();
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_9=true;
break;
default:
_9=typeof _8=="string"||_8==229;
}
if(_9){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_a),1);
}
},_autoCompleteText:function(_d){
var fn=this.focusNode;
dijit.selectInputText(fn,fn.value.length);
var _e=this.ignoreCase?"toLowerCase":"substr";
if(_d[_e](0).indexOf(this.focusNode.value[_e](0))==0){
var _f=this._getCaretPos(fn);
if((_f+1)>fn.value.length){
fn.value=_d;
dijit.selectInputText(fn,_f);
}
}else{
fn.value=_d;
dijit.selectInputText(fn);
}
},_openResultList:function(_10,_11){
this._fetchHandle=null;
if(this.disabled||this.readOnly||(_11.query[this.searchAttr]!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_10.length){
this._hideResultList();
return;
}
_11._maxOptions=this._maxOptions;
var _12=this._popupWidget.createOptions(_10,_11,dojo.hitch(this,"_getMenuLabelFromItem"));
this._showResultList();
if(_11.direction){
if(1==_11.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_11.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}else{
if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_11.query[this.searchAttr])){
this._announceOption(_12[1]);
}
}
},_showResultList:function(){
this._hideResultList();
this._arrowPressed();
this.displayMessage("");
dojo.style(this._popupWidget.domNode,{width:"",height:""});
var _13=this.open();
var _14=dojo.marginBox(this._popupWidget.domNode);
this._popupWidget.domNode.style.overflow=((_13.h==_14.h)&&(_13.w==_14.w))?"hidden":"auto";
var _15=_13.w;
if(_13.h<this._popupWidget.domNode.scrollHeight){
_15+=16;
}
dojo.marginBox(this._popupWidget.domNode,{h:_13.h,w:Math.max(_15,this.domNode.offsetWidth)});
if(_15<this.domNode.offsetWidth){
this._popupWidget.domNode.parentNode.style.left=dojo.position(this.domNode).x+"px";
}
dijit.setWaiState(this.comboNode,"expanded","true");
},_hideResultList:function(){
this._abortQuery();
if(this._isShowingNow){
dijit.popup.close(this._popupWidget);
this._arrowIdle();
this._isShowingNow=false;
dijit.setWaiState(this.comboNode,"expanded","false");
dijit.removeWaiState(this.focusNode,"activedescendant");
}
},_setBlurValue:function(){
var _16=this.attr("displayedValue");
var pw=this._popupWidget;
if(pw&&(_16==pw._messages["previousMessage"]||_16==pw._messages["nextMessage"])){
this._setValueAttr(this._lastValueReported,true);
}else{
if(typeof this.item=="undefined"){
this.item=null;
this.attr("displayedValue",_16);
}else{
if(this.value!=this._lastValueReported){
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
}
this._refreshState();
}
}
},_onBlur:function(){
this._hideResultList();
this._arrowIdle();
this.inherited(arguments);
},_setItemAttr:function(_17,_18,_19){
if(!_19){
_19=this.labelFunc(_17,this.store);
}
this.value=this._getValueField()!=this.searchAttr?this.store.getIdentity(_17):_19;
this.item=_17;
dijit.form.ComboBox.superclass._setValueAttr.call(this,this.value,_18,_19);
},_announceOption:function(_1a){
if(!_1a){
return;
}
var _1b;
if(_1a==this._popupWidget.nextButton||_1a==this._popupWidget.previousButton){
_1b=_1a.innerHTML;
this.item=undefined;
this.value="";
}else{
_1b=this.labelFunc(_1a.item,this.store);
this.attr("item",_1a.item,false,_1b);
}
this.focusNode.value=this.focusNode.value.substring(0,this._lastInput.length);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(_1a,"id"));
this._autoCompleteText(_1b);
},_selectOption:function(evt){
if(evt){
this._announceOption(evt.target);
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},_onArrowMouseDown:function(evt){
if(this.disabled||this.readOnly){
return;
}
dojo.stopEvent(evt);
this.focus();
if(this._isShowingNow){
this._hideResultList();
}else{
this._startSearchAll();
}
},_startSearchAll:function(){
this._startSearch("");
},_startSearchFromInput:function(){
this._startSearch(this.focusNode.value.replace(/([\\\*\?])/g,"\\$1"));
},_getQueryString:function(_1c){
return dojo.string.substitute(this.queryExpr,[_1c]);
},_startSearch:function(key){
if(!this._popupWidget){
var _1d=this.id+"_popup";
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_1d});
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_1d);
}
var _1e=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_1e[this.searchAttr]=this._getQueryString(key);
this.searchTimer=setTimeout(dojo.hitch(this,function(_1f,_20){
this.searchTimer=null;
var _21={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_1f,onBegin:dojo.hitch(this,"_setMaxOptions"),onComplete:dojo.hitch(this,"_openResultList"),onError:function(_22){
_20._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_22);
dojo.hitch(_20,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_21,_20.fetchProperties);
this._fetchHandle=_20.store.fetch(_21);
var _23=function(_24,_25){
_24.start+=_24.count*_25;
_24.direction=_25;
this._fetchHandle=this.store.fetch(_24);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_23,this._fetchHandle);
},_1e,this),this.searchDelay);
},_setMaxOptions:function(_26,_27){
this._maxOptions=_26;
},_getValueField:function(){
return this.searchAttr;
},_arrowPressed:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.addClass(this.downArrowNode,"dijitArrowButtonActive");
}
},_arrowIdle:function(){
if(!this.disabled&&!this.readOnly&&this.hasDownArrow){
dojo.removeClass(this.downArrowNode,"dojoArrowButtonPushed");
}
},compositionend:function(evt){
this._onKeyPress({charOrCode:229});
},constructor:function(){
this.query={};
this.fetchProperties={};
},postMixInProperties:function(){
if(!this.hasDownArrow){
this.baseClass="dijitTextBox";
}
if(!this.store){
var _28=this.srcNodeRef;
this.store=new dijit.form._ComboBoxDataStore(_28);
if(!this.value||((typeof _28.selectedIndex=="number")&&_28.selectedIndex.toString()===this.value)){
var _29=this.store.fetchSelectedItem();
if(_29){
var _2a=this._getValueField();
this.value=_2a!=this.searchAttr?this.store.getValue(_29,_2a):this.labelFunc(_29,this.store);
}
}
}
this.inherited(arguments);
},postCreate:function(){
var _2b=dojo.query("label[for=\""+this.id+"\"]");
if(_2b.length){
_2b[0].id=(this.id+"_label");
var cn=this.comboNode;
dijit.setWaiState(cn,"labelledby",_2b[0].id);
}
this.inherited(arguments);
},uninitialize:function(){
if(this._popupWidget&&!this._popupWidget._destroyed){
this._hideResultList();
this._popupWidget.destroy();
}
this.inherited(arguments);
},_getMenuLabelFromItem:function(_2c){
var _2d=this.labelAttr?this.store.getValue(_2c,this.labelAttr):this.labelFunc(_2c,this.store);
var _2e=this.labelType;
if(this.highlightMatch!="none"&&this.labelType=="text"&&this._lastInput){
_2d=this.doHighlight(_2d,this._escapeHtml(this._lastInput));
_2e="html";
}
return {html:_2e=="html",label:_2d};
},doHighlight:function(_2f,_30){
var _31="i"+(this.highlightMatch=="all"?"g":"");
var _32=this._escapeHtml(_2f);
_30=dojo.regexp.escapeString(_30);
var ret=_32.replace(new RegExp("(^|\\s)("+_30+")",_31),"$1<span class=\"dijitComboBoxHighlightMatch\">$2</span>");
return ret;
},_escapeHtml:function(str){
str=String(str).replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
return str;
},open:function(){
this._isShowingNow=true;
return dijit.popup.open({popup:this._popupWidget,around:this.domNode,parent:this});
},reset:function(){
this.item=null;
this.inherited(arguments);
},labelFunc:function(_33,_34){
return _34.getValue(_33,this.searchAttr).toString();
}});
dojo.declare("dijit.form._ComboBoxMenu",[dijit._Widget,dijit._Templated],{templateString:"<ul class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow: \"auto\"; overflow-x: \"hidden\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' waiRole='option'></li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' waiRole='option'></li>"+"</ul>",_messages:null,postMixInProperties:function(){
this._messages=dojo.i18n.getLocalization("dijit.form","ComboBox",this.lang);
this.inherited(arguments);
},_setValueAttr:function(_35){
this.value=_35;
this.onChange(_35);
},onChange:function(_36){
},onPage:function(_37){
},postCreate:function(){
this.previousButton.innerHTML=this._messages["previousMessage"];
this.nextButton.innerHTML=this._messages["nextMessage"];
this.inherited(arguments);
},onClose:function(){
this._blurOptionNode();
},_createOption:function(_38,_39){
var _3a=_39(_38);
var _3b=dojo.doc.createElement("li");
dijit.setWaiRole(_3b,"option");
if(_3a.html){
_3b.innerHTML=_3a.label;
}else{
_3b.appendChild(dojo.doc.createTextNode(_3a.label));
}
if(_3b.innerHTML==""){
_3b.innerHTML="&nbsp;";
}
_3b.item=_38;
return _3b;
},createOptions:function(_3c,_3d,_3e){
this.previousButton.style.display=(_3d.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
dojo.forEach(_3c,function(_3f,i){
var _40=this._createOption(_3f,_3e);
_40.className="dijitReset dijitMenuItem";
dojo.attr(_40,"id",this.id+i);
this.domNode.insertBefore(_40,this.nextButton);
},this);
var _41=false;
if(_3d._maxOptions&&_3d._maxOptions!=-1){
if((_3d.start+_3d.count)<_3d._maxOptions){
_41=true;
}else{
if((_3d.start+_3d.count)>(_3d._maxOptions-1)){
if(_3d.count==_3c.length){
_41=true;
}
}
}
}else{
if(_3d.count==_3c.length){
_41=true;
}
}
this.nextButton.style.display=_41?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
return this.domNode.childNodes;
},clearResultList:function(){
while(this.domNode.childNodes.length>2){
this.domNode.removeChild(this.domNode.childNodes[this.domNode.childNodes.length-2]);
}
},_onMouseDown:function(evt){
dojo.stopEvent(evt);
},_onMouseUp:function(evt){
if(evt.target===this.domNode){
return;
}else{
if(evt.target==this.previousButton){
this.onPage(-1);
}else{
if(evt.target==this.nextButton){
this.onPage(1);
}else{
var tgt=evt.target;
while(!tgt.item){
tgt=tgt.parentNode;
}
this._setValueAttr({target:tgt},true);
}
}
}
},_onMouseOver:function(evt){
if(evt.target===this.domNode){
return;
}
var tgt=evt.target;
if(!(tgt==this.previousButton||tgt==this.nextButton)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_onMouseOut:function(evt){
if(evt.target===this.domNode){
return;
}
this._blurOptionNode();
},_focusOptionNode:function(_42){
if(this._highlighted_option!=_42){
this._blurOptionNode();
this._highlighted_option=_42;
dojo.addClass(this._highlighted_option,"dijitMenuItemSelected");
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemSelected");
this._highlighted_option=null;
}
},_highlightNextOption:function(){
var fc=this.domNode.firstChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(fc.style.display=="none"?fc.nextSibling:fc);
}else{
var ns=this._highlighted_option.nextSibling;
if(ns&&ns.style.display!="none"){
this._focusOptionNode(ns);
}
}
dijit.scrollIntoView(this._highlighted_option);
},highlightFirstOption:function(){
this._focusOptionNode(this.domNode.firstChild.nextSibling);
dijit.scrollIntoView(this._highlighted_option);
},highlightLastOption:function(){
this._focusOptionNode(this.domNode.lastChild.previousSibling);
dijit.scrollIntoView(this._highlighted_option);
},_highlightPrevOption:function(){
var lc=this.domNode.lastChild;
if(!this.getHighlightedOption()){
this._focusOptionNode(lc.style.display=="none"?lc.previousSibling:lc);
}else{
var ps=this._highlighted_option.previousSibling;
if(ps&&ps.style.display!="none"){
this._focusOptionNode(ps);
}
}
dijit.scrollIntoView(this._highlighted_option);
},_page:function(up){
var _43=0;
var _44=this.domNode.scrollTop;
var _45=dojo.style(this.domNode,"height");
if(!this.getHighlightedOption()){
this._highlightNextOption();
}
while(_43<_45){
if(up){
if(!this.getHighlightedOption().previousSibling||this._highlighted_option.previousSibling.style.display=="none"){
break;
}
this._highlightPrevOption();
}else{
if(!this.getHighlightedOption().nextSibling||this._highlighted_option.nextSibling.style.display=="none"){
break;
}
this._highlightNextOption();
}
var _46=this.domNode.scrollTop;
_43+=(_46-_44)*(up?-1:1);
_44=_46;
}
},pageUp:function(){
this._page(true);
},pageDown:function(){
this._page(false);
},getHighlightedOption:function(){
var ho=this._highlighted_option;
return (ho&&ho.parentNode)?ho:null;
},handleKey:function(key){
switch(key){
case dojo.keys.DOWN_ARROW:
this._highlightNextOption();
break;
case dojo.keys.PAGE_DOWN:
this.pageDown();
break;
case dojo.keys.UP_ARROW:
this._highlightPrevOption();
break;
case dojo.keys.PAGE_UP:
this.pageUp();
break;
}
}});
dojo.declare("dijit.form.ComboBox",[dijit.form.ValidationTextBox,dijit.form.ComboBoxMixin],{_setValueAttr:function(_47,_48,_49){
this.item=null;
if(!_47){
_47="";
}
dijit.form.ValidationTextBox.prototype._setValueAttr.call(this,_47,_48,_49);
}});
dojo.declare("dijit.form._ComboBoxDataStore",null,{constructor:function(_4a){
this.root=_4a;
dojo.query("> option",_4a).forEach(function(_4b){
_4b.innerHTML=dojo.trim(_4b.innerHTML);
});
},getValue:function(_4c,_4d,_4e){
return (_4d=="value")?_4c.value:(_4c.innerText||_4c.textContent||"");
},isItemLoaded:function(_4f){
return true;
},getFeatures:function(){
return {"dojo.data.api.Read":true,"dojo.data.api.Identity":true};
},_fetchItems:function(_50,_51,_52){
if(!_50.query){
_50.query={};
}
if(!_50.query.name){
_50.query.name="";
}
if(!_50.queryOptions){
_50.queryOptions={};
}
var _53=dojo.data.util.filter.patternToRegExp(_50.query.name,_50.queryOptions.ignoreCase),_54=dojo.query("> option",this.root).filter(function(_55){
return (_55.innerText||_55.textContent||"").match(_53);
});
if(_50.sort){
_54.sort(dojo.data.util.sorter.createSortFunction(_50.sort,this));
}
_51(_54,_50);
},close:function(_56){
return;
},getLabel:function(_57){
return _57.innerHTML;
},getIdentity:function(_58){
return dojo.attr(_58,"value");
},fetchItemByIdentity:function(_59){
var _5a=dojo.query("option[value='"+_59.identity+"']",this.root)[0];
_59.onItem(_5a);
},fetchSelectedItem:function(){
var _5b=this.root,si=_5b.selectedIndex;
return dojo.query("> option:nth-child("+(si!=-1?si+1:1)+")",_5b)[0];
}});
dojo.extend(dijit.form._ComboBoxDataStore,dojo.data.util.simpleFetch);
}


;if(!dojo._hasResource["dojo.cldr.supplemental"]){
dojo._hasResource["dojo.cldr.supplemental"]=true;
dojo.provide("dojo.cldr.supplemental");
dojo.require("dojo.i18n");
dojo.cldr.supplemental.getFirstDayOfWeek=function(_1){
var _2={mv:5,ae:6,af:6,bh:6,dj:6,dz:6,eg:6,er:6,et:6,iq:6,ir:6,jo:6,ke:6,kw:6,lb:6,ly:6,ma:6,om:6,qa:6,sa:6,sd:6,so:6,tn:6,ye:6,as:0,au:0,az:0,bw:0,ca:0,cn:0,fo:0,ge:0,gl:0,gu:0,hk:0,ie:0,il:0,is:0,jm:0,jp:0,kg:0,kr:0,la:0,mh:0,mo:0,mp:0,mt:0,nz:0,ph:0,pk:0,sg:0,th:0,tt:0,tw:0,um:0,us:0,uz:0,vi:0,za:0,zw:0,et:0,mw:0,ng:0,tj:0,sy:4};
var _3=dojo.cldr.supplemental._region(_1);
var _4=_2[_3];
return (_4===undefined)?1:_4;
};
dojo.cldr.supplemental._region=function(_5){
_5=dojo.i18n.normalizeLocale(_5);
var _6=_5.split("-");
var _7=_6[1];
if(!_7){
_7={de:"de",en:"us",es:"es",fi:"fi",fr:"fr",he:"il",hu:"hu",it:"it",ja:"jp",ko:"kr",nl:"nl",pt:"br",sv:"se",zh:"cn"}[_6[0]];
}else{
if(_7.length==4){
_7=_6[2];
}
}
return _7;
};
dojo.cldr.supplemental.getWeekend=function(_8){
var _9={eg:5,il:5,sy:5,"in":0,ae:4,bh:4,dz:4,iq:4,jo:4,kw:4,lb:4,ly:4,ma:4,om:4,qa:4,sa:4,sd:4,tn:4,ye:4};
var _a={ae:5,bh:5,dz:5,iq:5,jo:5,kw:5,lb:5,ly:5,ma:5,om:5,qa:5,sa:5,sd:5,tn:5,ye:5,af:5,ir:5,eg:6,il:6,sy:6};
var _b=dojo.cldr.supplemental._region(_8);
var _c=_9[_b];
var _d=_a[_b];
if(_c===undefined){
_c=6;
}
if(_d===undefined){
_d=0;
}
return {start:_c,end:_d};
};
}


;if(!dojo._hasResource["dojo.cookie"]){
dojo._hasResource["dojo.cookie"]=true;
dojo.provide("dojo.cookie");
dojo.require("dojo.regexp");
dojo.cookie=function(_1,_2,_3){
var c=document.cookie;
if(arguments.length==1){
var _4=c.match(new RegExp("(?:^|; )"+dojo.regexp.escapeString(_1)+"=([^;]*)"));
return _4?decodeURIComponent(_4[1]):undefined;
}else{
_3=_3||{};
var _5=_3.expires;
if(typeof _5=="number"){
var d=new Date();
d.setTime(d.getTime()+_5*24*60*60*1000);
_5=_3.expires=d;
}
if(_5&&_5.toUTCString){
_3.expires=_5.toUTCString();
}
_2=encodeURIComponent(_2);
var _6=_1+"="+_2,_7;
for(_7 in _3){
_6+="; "+_7;
var _8=_3[_7];
if(_8!==true){
_6+="="+_8;
}
}
document.cookie=_6;
}
};
dojo.cookie.isSupported=function(){
if(!("cookieEnabled" in navigator)){
this("__djCookieTest__","CookiesAllowed");
navigator.cookieEnabled=this("__djCookieTest__")=="CookiesAllowed";
if(navigator.cookieEnabled){
this("__djCookieTest__","",{expires:-1});
}
}
return navigator.cookieEnabled;
};
}


;if(!dojo._hasResource["dojo.date"]){
dojo._hasResource["dojo.date"]=true;
dojo.provide("dojo.date");
dojo.date.getDaysInMonth=function(_1){
var _2=_1.getMonth();
var _3=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_2==1&&dojo.date.isLeapYear(_1)){
return 29;
}
return _3[_2];
};
dojo.date.isLeapYear=function(_4){
var _5=_4.getFullYear();
return !(_5%400)||(!(_5%4)&&!!(_5%100));
};
dojo.date.getTimezoneName=function(_6){
var _7=_6.toString();
var tz="";
var _8;
var _9=_7.indexOf("(");
if(_9>-1){
tz=_7.substring(++_9,_7.indexOf(")"));
}else{
var _a=/([A-Z\/]+) \d{4}$/;
if((_8=_7.match(_a))){
tz=_8[1];
}else{
_7=_6.toLocaleString();
_a=/ ([A-Z\/]+)$/;
if((_8=_7.match(_a))){
tz=_8[1];
}
}
}
return (tz=="AM"||tz=="PM")?"":tz;
};
dojo.date.compare=function(_b,_c,_d){
_b=new Date(+_b);
_c=new Date(+(_c||new Date()));
if(_d=="date"){
_b.setHours(0,0,0,0);
_c.setHours(0,0,0,0);
}else{
if(_d=="time"){
_b.setFullYear(0,0,0);
_c.setFullYear(0,0,0);
}
}
if(_b>_c){
return 1;
}
if(_b<_c){
return -1;
}
return 0;
};
dojo.date.add=function(_e,_f,_10){
var sum=new Date(+_e);
var _11=false;
var _12="Date";
switch(_f){
case "day":
break;
case "weekday":
var _13,_14;
var mod=_10%5;
if(!mod){
_13=(_10>0)?5:-5;
_14=(_10>0)?((_10-5)/5):((_10+5)/5);
}else{
_13=mod;
_14=parseInt(_10/5);
}
var _15=_e.getDay();
var adj=0;
if(_15==6&&_10>0){
adj=1;
}else{
if(_15==0&&_10<0){
adj=-1;
}
}
var _16=_15+_13;
if(_16==0||_16==6){
adj=(_10>0)?2:-2;
}
_10=(7*_14)+_13+adj;
break;
case "year":
_12="FullYear";
_11=true;
break;
case "week":
_10*=7;
break;
case "quarter":
_10*=3;
case "month":
_11=true;
_12="Month";
break;
default:
_12="UTC"+_f.charAt(0).toUpperCase()+_f.substring(1)+"s";
}
if(_12){
sum["set"+_12](sum["get"+_12]()+_10);
}
if(_11&&(sum.getDate()<_e.getDate())){
sum.setDate(0);
}
return sum;
};
dojo.date.difference=function(_17,_18,_19){
_18=_18||new Date();
_19=_19||"day";
var _1a=_18.getFullYear()-_17.getFullYear();
var _1b=1;
switch(_19){
case "quarter":
var m1=_17.getMonth();
var m2=_18.getMonth();
var q1=Math.floor(m1/3)+1;
var q2=Math.floor(m2/3)+1;
q2+=(_1a*4);
_1b=q2-q1;
break;
case "weekday":
var _1c=Math.round(dojo.date.difference(_17,_18,"day"));
var _1d=parseInt(dojo.date.difference(_17,_18,"week"));
var mod=_1c%7;
if(mod==0){
_1c=_1d*5;
}else{
var adj=0;
var _1e=_17.getDay();
var _1f=_18.getDay();
_1d=parseInt(_1c/7);
mod=_1c%7;
var _20=new Date(_17);
_20.setDate(_20.getDate()+(_1d*7));
var _21=_20.getDay();
if(_1c>0){
switch(true){
case _1e==6:
adj=-1;
break;
case _1e==0:
adj=0;
break;
case _1f==6:
adj=-1;
break;
case _1f==0:
adj=-2;
break;
case (_21+mod)>5:
adj=-2;
}
}else{
if(_1c<0){
switch(true){
case _1e==6:
adj=0;
break;
case _1e==0:
adj=1;
break;
case _1f==6:
adj=2;
break;
case _1f==0:
adj=1;
break;
case (_21+mod)<0:
adj=2;
}
}
}
_1c+=adj;
_1c-=(_1d*2);
}
_1b=_1c;
break;
case "year":
_1b=_1a;
break;
case "month":
_1b=(_18.getMonth()-_17.getMonth())+(_1a*12);
break;
case "week":
_1b=parseInt(dojo.date.difference(_17,_18,"day")/7);
break;
case "day":
_1b/=24;
case "hour":
_1b/=60;
case "minute":
_1b/=60;
case "second":
_1b/=1000;
case "millisecond":
_1b*=_18.getTime()-_17.getTime();
}
return Math.round(_1b);
};
}

dojo.provide("dojo.cldr.nls.gregorian")._built=true;
dojo.provide("dojo.cldr.nls.gregorian.en");
dojo.cldr.nls.gregorian.en={"field-era":"Era","dateFormat-long":"MMMM d, y","days-standAlone-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateTimeFormat-full":"{1} {0}","dateFormatItem-MMMd":"MMM d","days-standAlone-narrow":["S","M","T","W","T","F","S"],"dateTimeFormats-appendItem-Timezone":"{0} {1}","months-format-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"dateFormatItem-MMMMd":"MMMM d","dateFormatItem-EEEd":"d EEE","dateFormatItem-MMMEd":"E, MMM d","dateFormat-full":"EEEE, MMMM d, y","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dateFormatItem-Hm":"H:mm","dateFormatItem-yMMMM":"MMMM y","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","am":"AM","dateTimeFormat-medium":"{1} {0}","field-year":"Year","timeFormat-medium":"h:mm:ss a","field-minute":"Minute","dateFormatItem-yMMM":"MMM y","field-day":"Day","field-dayperiod":"AM/PM","dateTimeFormats-appendItem-Year":"{0} {1}","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"eraNames":["Before Christ","Anno Domini"],"field-weekday":"Day of the Week","dateFormatItem-MMM":"LLL","dateTimeFormat-short":"{1} {0}","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-standAlone-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dateFormatItem-yMEd":"EEE, M/d/yyyy","months-format-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"days-format-wide":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"dateFormatItem-MMMMEd":"E, MMMM d","dateFormatItem-MEd":"E, M/d","timeFormat-long":"h:mm:ss a z","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","timeFormat-short":"h:mm a","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"timeFormat-full":"h:mm:ss a zzzz","dateFormatItem-Hms":"H:mm:ss","dateFormatItem-ms":"mm:ss","field-zone":"Zone","months-standAlone-wide":["January","February","March","April","May","June","July","August","September","October","November","December"],"eraAbbr":["BC","AD"],"field-second":"Second","months-standAlone-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-Md":"M/d","dateFormatItem-M":"L","dateFormatItem-hms":"h:mm:ss a","dateTimeFormats-appendItem-Era":"{0} {1}","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormatItem-yQQQ":"QQQ y","eraNarrow":["B","A"],"dateFormatItem-d":"d","days-format-abbr":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"field-hour":"Hour","dateFormatItem-y":"y","field-week":"Week","dateFormatItem-yM":"M/yyyy","quarters-format-narrow":["1","2","3","4"],"dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateFormatItem-yQ":"Q yyyy","field-month":"Month","dateFormat-short":"M/d/yy","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateTimeFormat-long":"{1} {0}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dateFormatItem-hm":"h:mm a","days-format-narrow":["S","M","T","W","T","F","S"],"quarters-standAlone-narrow":["1","2","3","4"],"pm":"PM","dateFormat-medium":"MMM d, y","months-standAlone-abbr":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]};

;if(!dojo._hasResource["dojo.date.locale"]){
dojo._hasResource["dojo.date.locale"]=true;
dojo.provide("dojo.date.locale");
dojo.require("dojo.date");
dojo.require("dojo.cldr.supplemental");
dojo.require("dojo.regexp");
dojo.require("dojo.string");
dojo.require("dojo.i18n");
dojo.requireLocalization("dojo.cldr","gregorian",null,"ROOT,aa,af,am,ar,ar-jo,ar-lb,ar-qa,ar-sa,ar-sy,ar-tn,ar-ye,as,az,az-cyrl,be,bg,bn,bo,byn,ca,cs,cy,da,de,de-at,de-be,dz,el,el-polyton,en,en-au,en-be,en-bw,en-bz,en-ca,en-dsrt,en-gb,en-ie,en-in,en-mt,en-nz,en-pk,en-shaw,en-za,en-zw,eo,es,es-ar,es-cl,es-co,es-ec,es-es,es-gt,es-hn,es-pa,es-pe,es-pr,es-us,et,eu,fa,fa-af,fi,fil,fo,fr,fr-be,fr-ca,fr-ch,ga,gl,gsw,gu,gv,ha,haw,he,hi,hr,hu,hy,hy-am-revised,id,ig,ii,in,is,it,it-ch,it-it,iw,ja,ka,kk,kl,km,kn,ko,ko-kr,kok,kw,lt,lv,mk,ml,mn,mo,mr,ms,ms-bn,mt,nb,ne,nl,nl-be,nn,no,om,or,pa,pa-arab,pa-pk,pl,ps,pt,pt-br,pt-pt,ro,ru,ru-ua,se-fi,sh,si,sk,sl,so,sq,sr,sr-ba,sr-cyrl-ba,sr-latn,sr-latn-me,sr-me,sv,sv-fi,sw,syr,ta,te,th,ti,ti-er,tl,tr,uk,ur,vi,yo,zh,zh-cn,zh-hans-sg,zh-hant,zh-hant-hk,zh-hant-mo,zh-hk,zh-mo,zh-sg,zh-tw,zu");
(function(){
function _1(_2,_3,_4,_5){
return _5.replace(/([a-z])\1*/ig,function(_6){
var s,_7,c=_6.charAt(0),l=_6.length,_8=["abbr","wide","narrow"];
switch(c){
case "G":
s=_3[(l<4)?"eraAbbr":"eraNames"][_2.getFullYear()<0?0:1];
break;
case "y":
s=_2.getFullYear();
switch(l){
case 1:
break;
case 2:
if(!_4.fullYear){
s=String(s);
s=s.substr(s.length-2);
break;
}
default:
_7=true;
}
break;
case "Q":
case "q":
s=Math.ceil((_2.getMonth()+1)/3);
_7=true;
break;
case "M":
var m=_2.getMonth();
if(l<3){
s=m+1;
_7=true;
}else{
var _9=["months","format",_8[l-3]].join("-");
s=_3[_9][m];
}
break;
case "w":
var _a=0;
s=dojo.date.locale._getWeekOfYear(_2,_a);
_7=true;
break;
case "d":
s=_2.getDate();
_7=true;
break;
case "D":
s=dojo.date.locale._getDayOfYear(_2);
_7=true;
break;
case "E":
var d=_2.getDay();
if(l<3){
s=d+1;
_7=true;
}else{
var _b=["days","format",_8[l-3]].join("-");
s=_3[_b][d];
}
break;
case "a":
var _c=(_2.getHours()<12)?"am":"pm";
s=_3[_c];
break;
case "h":
case "H":
case "K":
case "k":
var h=_2.getHours();
switch(c){
case "h":
s=(h%12)||12;
break;
case "H":
s=h;
break;
case "K":
s=(h%12);
break;
case "k":
s=h||24;
break;
}
_7=true;
break;
case "m":
s=_2.getMinutes();
_7=true;
break;
case "s":
s=_2.getSeconds();
_7=true;
break;
case "S":
s=Math.round(_2.getMilliseconds()*Math.pow(10,l-3));
_7=true;
break;
case "v":
case "z":
s=dojo.date.locale._getZone(_2,true,_4);
if(s){
break;
}
l=4;
case "Z":
var _d=dojo.date.locale._getZone(_2,false,_4);
var tz=[(_d<=0?"+":"-"),dojo.string.pad(Math.floor(Math.abs(_d)/60),2),dojo.string.pad(Math.abs(_d)%60,2)];
if(l==4){
tz.splice(0,0,"GMT");
tz.splice(3,0,":");
}
s=tz.join("");
break;
default:
throw new Error("dojo.date.locale.format: invalid pattern char: "+_5);
}
if(_7){
s=dojo.string.pad(s,l);
}
return s;
});
};
dojo.date.locale._getZone=function(_e,_f,_10){
if(_f){
return dojo.date.getTimezoneName(_e);
}else{
return _e.getTimezoneOffset();
}
};
dojo.date.locale.format=function(_11,_12){
_12=_12||{};
var _13=dojo.i18n.normalizeLocale(_12.locale),_14=_12.formatLength||"short",_15=dojo.date.locale._getGregorianBundle(_13),str=[],_16=dojo.hitch(this,_1,_11,_15,_12);
if(_12.selector=="year"){
return _17(_15["dateFormatItem-yyyy"]||"yyyy",_16);
}
var _18;
if(_12.selector!="date"){
_18=_12.timePattern||_15["timeFormat-"+_14];
if(_18){
str.push(_17(_18,_16));
}
}
if(_12.selector!="time"){
_18=_12.datePattern||_15["dateFormat-"+_14];
if(_18){
str.push(_17(_18,_16));
}
}
return str.length==1?str[0]:_15["dateTimeFormat-"+_14].replace(/\{(\d+)\}/g,function(_19,key){
return str[key];
});
};
dojo.date.locale.regexp=function(_1a){
return dojo.date.locale._parseInfo(_1a).regexp;
};
dojo.date.locale._parseInfo=function(_1b){
_1b=_1b||{};
var _1c=dojo.i18n.normalizeLocale(_1b.locale),_1d=dojo.date.locale._getGregorianBundle(_1c),_1e=_1b.formatLength||"short",_1f=_1b.datePattern||_1d["dateFormat-"+_1e],_20=_1b.timePattern||_1d["timeFormat-"+_1e],_21;
if(_1b.selector=="date"){
_21=_1f;
}else{
if(_1b.selector=="time"){
_21=_20;
}else{
_21=_1d["dateTimeFormat-"+_1e].replace(/\{(\d+)\}/g,function(_22,key){
return [_20,_1f][key];
});
}
}
var _23=[],re=_17(_21,dojo.hitch(this,_24,_23,_1d,_1b));
return {regexp:re,tokens:_23,bundle:_1d};
};
dojo.date.locale.parse=function(_25,_26){
var _27=dojo.date.locale._parseInfo(_26),_28=_27.tokens,_29=_27.bundle,re=new RegExp("^"+_27.regexp+"$",_27.strict?"":"i"),_2a=re.exec(_25);
if(!_2a){
return null;
}
var _2b=["abbr","wide","narrow"],_2c=[1970,0,1,0,0,0,0],_2d="",_2e=dojo.every(_2a,function(v,i){
if(!i){
return true;
}
var _2f=_28[i-1];
var l=_2f.length;
switch(_2f.charAt(0)){
case "y":
if(l!=2&&_26.strict){
_2c[0]=v;
}else{
if(v<100){
v=Number(v);
var _30=""+new Date().getFullYear(),_31=_30.substring(0,2)*100,_32=Math.min(Number(_30.substring(2,4))+20,99),num=(v<_32)?_31+v:_31-100+v;
_2c[0]=num;
}else{
if(_26.strict){
return false;
}
_2c[0]=v;
}
}
break;
case "M":
if(l>2){
var _33=_29["months-format-"+_2b[l-3]].concat();
if(!_26.strict){
v=v.replace(".","").toLowerCase();
_33=dojo.map(_33,function(s){
return s.replace(".","").toLowerCase();
});
}
v=dojo.indexOf(_33,v);
if(v==-1){
return false;
}
}else{
v--;
}
_2c[1]=v;
break;
case "E":
case "e":
var _34=_29["days-format-"+_2b[l-3]].concat();
if(!_26.strict){
v=v.toLowerCase();
_34=dojo.map(_34,function(d){
return d.toLowerCase();
});
}
v=dojo.indexOf(_34,v);
if(v==-1){
return false;
}
break;
case "D":
_2c[1]=0;
case "d":
_2c[2]=v;
break;
case "a":
var am=_26.am||_29.am;
var pm=_26.pm||_29.pm;
if(!_26.strict){
var _35=/\./g;
v=v.replace(_35,"").toLowerCase();
am=am.replace(_35,"").toLowerCase();
pm=pm.replace(_35,"").toLowerCase();
}
if(_26.strict&&v!=am&&v!=pm){
return false;
}
_2d=(v==pm)?"p":(v==am)?"a":"";
break;
case "K":
if(v==24){
v=0;
}
case "h":
case "H":
case "k":
if(v>23){
return false;
}
_2c[3]=v;
break;
case "m":
_2c[4]=v;
break;
case "s":
_2c[5]=v;
break;
case "S":
_2c[6]=v;
}
return true;
});
var _36=+_2c[3];
if(_2d==="p"&&_36<12){
_2c[3]=_36+12;
}else{
if(_2d==="a"&&_36==12){
_2c[3]=0;
}
}
var _37=new Date(_2c[0],_2c[1],_2c[2],_2c[3],_2c[4],_2c[5],_2c[6]);
if(_26.strict){
_37.setFullYear(_2c[0]);
}
var _38=_28.join(""),_39=_38.indexOf("d")!=-1,_3a=_38.indexOf("M")!=-1;
if(!_2e||(_3a&&_37.getMonth()>_2c[1])||(_39&&_37.getDate()>_2c[2])){
return null;
}
if((_3a&&_37.getMonth()<_2c[1])||(_39&&_37.getDate()<_2c[2])){
_37=dojo.date.add(_37,"hour",1);
}
return _37;
};
function _17(_3b,_3c,_3d,_3e){
var _3f=function(x){
return x;
};
_3c=_3c||_3f;
_3d=_3d||_3f;
_3e=_3e||_3f;
var _40=_3b.match(/(''|[^'])+/g),_41=_3b.charAt(0)=="'";
dojo.forEach(_40,function(_42,i){
if(!_42){
_40[i]="";
}else{
_40[i]=(_41?_3d:_3c)(_42);
_41=!_41;
}
});
return _3e(_40.join(""));
};
function _24(_43,_44,_45,_46){
_46=dojo.regexp.escapeString(_46);
if(!_45.strict){
_46=_46.replace(" a"," ?a");
}
return _46.replace(/([a-z])\1*/ig,function(_47){
var s,c=_47.charAt(0),l=_47.length,p2="",p3="";
if(_45.strict){
if(l>1){
p2="0"+"{"+(l-1)+"}";
}
if(l>2){
p3="0"+"{"+(l-2)+"}";
}
}else{
p2="0?";
p3="0{0,2}";
}
switch(c){
case "y":
s="\\d{2,4}";
break;
case "M":
s=(l>2)?"\\S+?":p2+"[1-9]|1[0-2]";
break;
case "D":
s=p2+"[1-9]|"+p3+"[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6]";
break;
case "d":
s="[12]\\d|"+p2+"[1-9]|3[01]";
break;
case "w":
s=p2+"[1-9]|[1-4][0-9]|5[0-3]";
break;
case "E":
s="\\S+";
break;
case "h":
s=p2+"[1-9]|1[0-2]";
break;
case "k":
s=p2+"\\d|1[01]";
break;
case "H":
s=p2+"\\d|1\\d|2[0-3]";
break;
case "K":
s=p2+"[1-9]|1\\d|2[0-4]";
break;
case "m":
case "s":
s="[0-5]\\d";
break;
case "S":
s="\\d{"+l+"}";
break;
case "a":
var am=_45.am||_44.am||"AM";
var pm=_45.pm||_44.pm||"PM";
if(_45.strict){
s=am+"|"+pm;
}else{
s=am+"|"+pm;
if(am!=am.toLowerCase()){
s+="|"+am.toLowerCase();
}
if(pm!=pm.toLowerCase()){
s+="|"+pm.toLowerCase();
}
if(s.indexOf(".")!=-1){
s+="|"+s.replace(/\./g,"");
}
}
s=s.replace(/\./g,"\\.");
break;
default:
s=".*";
}
if(_43){
_43.push(_47);
}
return "("+s+")";
}).replace(/[\xa0 ]/g,"[\\s\\xa0]");
};
})();
(function(){
var _48=[];
dojo.date.locale.addCustomFormats=function(_49,_4a){
_48.push({pkg:_49,name:_4a});
};
dojo.date.locale._getGregorianBundle=function(_4b){
var _4c={};
dojo.forEach(_48,function(_4d){
var _4e=dojo.i18n.getLocalization(_4d.pkg,_4d.name,_4b);
_4c=dojo.mixin(_4c,_4e);
},this);
return _4c;
};
})();
dojo.date.locale.addCustomFormats("dojo.cldr","gregorian");
dojo.date.locale.getNames=function(_4f,_50,_51,_52){
var _53,_54=dojo.date.locale._getGregorianBundle(_52),_55=[_4f,_51,_50];
if(_51=="standAlone"){
var key=_55.join("-");
_53=_54[key];
if(_53[0]==1){
_53=undefined;
}
}
_55[1]="format";
return (_53||_54[_55.join("-")]).concat();
};
dojo.date.locale.isWeekend=function(_56,_57){
var _58=dojo.cldr.supplemental.getWeekend(_57),day=(_56||new Date()).getDay();
if(_58.end<_58.start){
_58.end+=7;
if(day<_58.start){
day+=7;
}
}
return day>=_58.start&&day<=_58.end;
};
dojo.date.locale._getDayOfYear=function(_59){
return dojo.date.difference(new Date(_59.getFullYear(),0,1,_59.getHours()),_59)+1;
};
dojo.date.locale._getWeekOfYear=function(_5a,_5b){
if(arguments.length==1){
_5b=0;
}
var _5c=new Date(_5a.getFullYear(),0,1).getDay(),adj=(_5c-_5b+7)%7,_5d=Math.floor((dojo.date.locale._getDayOfYear(_5a)+adj-1)/7);
if(_5c==_5b){
_5d++;
}
return _5d;
};
}


;if(!dojo._hasResource["dojo.io.iframe"]){
dojo._hasResource["dojo.io.iframe"]=true;
dojo.provide("dojo.io.iframe");
dojo.io.iframe={create:function(_1,_2,_3){
if(window[_1]){
return window[_1];
}
if(window.frames[_1]){
return window.frames[_1];
}
var _4=null;
var _5=_3;
if(!_5){
if(dojo.config["useXDomain"]&&!dojo.config["dojoBlankHtmlUrl"]){
console.warn("dojo.io.iframe.create: When using cross-domain Dojo builds,"+" please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"+" to the path on your domain to blank.html");
}
_5=(dojo.config["dojoBlankHtmlUrl"]||dojo.moduleUrl("dojo","resources/blank.html"));
}
var _6=dojo.isIE?"<iframe name=\""+_1+"\" src=\""+_5+"\" onload=\""+_2+"\">":"iframe";
_4=dojo.doc.createElement(_6);
with(_4){
name=_1;
setAttribute("name",_1);
id=_1;
}
dojo.body().appendChild(_4);
window[_1]=_4;
with(_4.style){
if(!(dojo.isSafari<3)){
position="absolute";
}
left=top="1px";
height=width="1px";
visibility="hidden";
}
if(!dojo.isIE){
this.setSrc(_4,_5,true);
_4.onload=new Function(_2);
}
return _4;
},setSrc:function(_7,_8,_9){
try{
if(!_9){
if(dojo.isWebKit){
_7.location=_8;
}else{
frames[_7.name].location=_8;
}
}else{
var _a;
if(dojo.isIE||dojo.isWebKit>521){
_a=_7.contentWindow.document;
}else{
if(dojo.isSafari){
_a=_7.document;
}else{
_a=_7.contentWindow;
}
}
if(!_a){
_7.location=_8;
return;
}else{
_a.location.replace(_8);
}
}
}
catch(e){
console.log("dojo.io.iframe.setSrc: ",e);
}
},doc:function(_b){
var _c=_b.contentDocument||(((_b.name)&&(_b.document)&&(dojo.doc.getElementsByTagName("iframe")[_b.name].contentWindow)&&(dojo.doc.getElementsByTagName("iframe")[_b.name].contentWindow.document)))||((_b.name)&&(dojo.doc.frames[_b.name])&&(dojo.doc.frames[_b.name].document))||null;
return _c;
},send:function(_d){
if(!this["_frame"]){
this._frame=this.create(this._iframeName,dojo._scopeName+".io.iframe._iframeOnload();");
}
var _e=dojo._ioSetArgs(_d,function(_f){
_f.canceled=true;
_f.ioArgs._callNext();
},function(dfd){
var _10=null;
try{
var _11=dfd.ioArgs;
var dii=dojo.io.iframe;
var ifd=dii.doc(dii._frame);
var _12=_11.handleAs;
_10=ifd;
if(_12!="html"){
if(_12=="xml"){
if(dojo.isIE){
dojo.query("a",dii._frame.contentWindow.document.documentElement).orphan();
var _13=(dii._frame.contentWindow.document).documentElement.innerText;
_13=_13.replace(/>\s+</g,"><");
_13=dojo.trim(_13);
var _14={responseText:_13};
_10=dojo._contentHandlers["xml"](_14);
}
}else{
try{
if(ifd.childNodes.length>1){
baseUri=ifd.childNodes[1].baseURI;
if(baseUri!=null){
if(baseUri.indexOf("Spam%20prevention%20on%20developerWorks")>0){
window.onbeforeunload=null;
window.location.href=baseUri;
}
}else{
if(ifd.childNodes[1].innerHTML){
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=en#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=en#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=es#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=es#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=ja#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=ja#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=ru#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=ru#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=zh#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=zh#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=pt_BR#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=pt_br#!/wiki/Spam%20prevention%20on%20developerWorks";
}else{
if(ifd.childNodes[1].innerHTML.indexOf("window.location.replace(\"/developerworks/community/wikis/home?lang=en_US#!/wiki/Spam%20prevention%20on%20developerWorks\");")>0){
window.onbeforeunload=null;
window.location.href="/developerworks/community/wikis/home?lang=en#!/wiki/Spam%20prevention%20on%20developerWorks";
}
}
}
}
}
}
}
}
}
}
}
}
catch(ex){
}
_10=ifd.getElementsByTagName("textarea")[0].value;
if(_12=="json"){
_10=dojo.fromJson(_10);
}else{
if(_12=="javascript"){
_10=dojo.eval(_10);
}
}
}
}
}
catch(e){
_10=e;
}
finally{
_11._callNext();
}
return _10;
},function(_15,dfd){
dfd.ioArgs._hasError=true;
dfd.ioArgs._callNext();
return _15;
});
_e.ioArgs._callNext=function(){
if(!this["_calledNext"]){
this._calledNext=true;
dojo.io.iframe._currentDfd=null;
dojo.io.iframe._fireNextRequest();
}
};
this._dfdQueue.push(_e);
this._fireNextRequest();
dojo._ioWatch(_e,function(dfd){
return !dfd.ioArgs["_hasError"];
},function(dfd){
return (!!dfd.ioArgs["_finished"]);
},function(dfd){
if(dfd.ioArgs._finished){
dfd.callback(dfd);
}else{
dfd.errback(new Error("Invalid dojo.io.iframe request state"));
}
});
return _e;
},_currentDfd:null,_dfdQueue:[],_iframeName:dojo._scopeName+"IoIframe",_fireNextRequest:function(){
try{
if((this._currentDfd)||(this._dfdQueue.length==0)){
return;
}
do{
var dfd=this._currentDfd=this._dfdQueue.shift();
}while(dfd&&dfd.canceled&&this._dfdQueue.length);
if(!dfd||dfd.canceled){
this._currentDfd=null;
return;
}
var _16=dfd.ioArgs;
var _17=_16.args;
_16._contentToClean=[];
var fn=dojo.byId(_17["form"]);
var _18=_17["content"]||{};
if(fn){
if(_18){
var _19=function(_1a,_1b){
var tn;
if(dojo.isIE){
tn=dojo.doc.createElement("<input type='hidden' name='"+_1a+"'>");
}else{
tn=dojo.doc.createElement("input");
tn.type="hidden";
tn.name=_1a;
}
tn.value=_1b;
fn.appendChild(tn);
_16._contentToClean.push(_1a);
};
for(var x in _18){
var val=_18[x];
if(dojo.isArray(val)&&val.length>1){
var i;
for(i=0;i<val.length;i++){
_19(x,val[i]);
}
}else{
if(!fn[x]){
_19(x,val);
}else{
fn[x].value=val;
}
}
}
}
var _1c=fn.getAttributeNode("action");
var _1d=fn.getAttributeNode("method");
var _1e=fn.getAttributeNode("target");
if(_17["url"]){
_16._originalAction=_1c?_1c.value:null;
if(_1c){
_1c.value=_17.url;
}else{
fn.setAttribute("action",_17.url);
}
}
if(!_1d||!_1d.value){
if(_1d){
_1d.value=(_17["method"])?_17["method"]:"post";
}else{
fn.setAttribute("method",(_17["method"])?_17["method"]:"post");
}
}
_16._originalTarget=_1e?_1e.value:null;
if(_1e){
_1e.value=this._iframeName;
}else{
fn.setAttribute("target",this._iframeName);
}
fn.target=this._iframeName;
dojo._ioNotifyStart(dfd);
fn.submit();
}else{
var _1f=_17.url+(_17.url.indexOf("?")>-1?"&":"?")+_16.query;
dojo._ioNotifyStart(dfd);
this.setSrc(this._frame,_1f,true);
}
}
catch(e){
dfd.errback(e);
}
},_iframeOnload:function(){
var dfd=this._currentDfd;
if(!dfd){
this._fireNextRequest();
return;
}
var _20=dfd.ioArgs;
var _21=_20.args;
var _22=dojo.byId(_21.form);
if(_22){
var _23=_20._contentToClean;
for(var i=0;i<_23.length;i++){
var key=_23[i];
for(var j=0;j<_22.childNodes.length;j++){
var _24=_22.childNodes[j];
if(_24.name==key){
dojo.destroy(_24);
break;
}
}
}
if(_20["_originalAction"]){
_22.setAttribute("action",_20._originalAction);
}
if(_20["_originalTarget"]){
_22.setAttribute("target",_20._originalTarget);
_22.target=_20._originalTarget;
}
}
_20._finished=true;
}};
}

dojo.registerModulePath("lconn.core", "../lconn.core");

;if(!dojo._hasResource["lconn.core.util.dojoPatches"]){
dojo._hasResource["lconn.core.util.dojoPatches"]=true;
dojo.provide("lconn.core.util.dojoPatches");
dojo.require("dijit._Templated");
(function(){
function _1(_2){
var _3=true,_4=_2;
if(_2.nodeType===1){
return _2;
}
if(_2.nodeType===11){
_3=false;
var _5=_2.childNodes.length,n=null,nt=null,_6=null,_3=false;
while(_5--&&!_3){
n=_2.childNodes[_5];
nt=n.nodeType;
if(nt===8){
}else{
if(nt===3){
if(n.nodeValue&&dojo.trim(n.nodeValue).length>0){
_3=true;
}
}else{
if(nt===1){
if(!_6){
_6=n;
}else{
_3=true;
}
}
}
}
}
if(!_3){
if(!_6){
_3=true;
}else{
_2=_6;
}
}
}
if(_3){
return _4;
}else{
return _2;
}
};
dijit._Templated.getCachedTemplate=function(_7,_8,_9){
var _a=dijit._Templated._templateCache;
var _b=_8||_7;
var _c=_a[_b];
if(_c){
try{
if(!_c.ownerDocument||_c.ownerDocument==dojo.doc){
return _c;
}
}
catch(e){
}
dojo.destroy(_c);
}
if(!_8){
_8=dojo.cache(_7,{sanitize:true});
}
_8=dojo.string.trim(_8);
if(_9||_8.match(/\$\{([^\}]+)\}/g)){
return (_a[_b]=_8);
}else{
var _d=_1(dojo._toDom(_8));
if(_d.nodeType!=1){
throw new Error("Invalid template: "+_8);
}
return (_a[_b]=_d);
}
};
dijit._Templated._meta.hidden.buildRendering=function(){
var _e=dijit._Templated.getCachedTemplate(this.templatePath,this.templateString,this._skipNodeCache);
var _f,_10;
if(dojo.isString(_e)){
_f=_1(dojo._toDom(this._stringRepl(_e)));
if(_f.nodeType!=1){
throw new Error("Invalid template: "+_e);
}
}else{
_f=_e.cloneNode(true);
}
this.domNode=_f;
this._attachTemplateNodes(_f);
if(this.widgetsInTemplate){
var _11=dojo.parser,qry,_12;
if(_11._query!="[dojoType]"){
qry=_11._query;
_12=_11._attrName;
_11._query="[dojoType]";
_11._attrName="dojoType";
}
var cw=(this._startupWidgets=dojo.parser.parse(_f,{noStart:!this._earlyTemplatedStartup}));
if(qry){
_11._query=qry;
_11._attrName=_12;
}
this._supportingWidgets=dijit.findWidgets(_f);
this._attachTemplateNodes(cw,function(n,p){
return n[p];
});
}
this._fillContent(this.srcNodeRef);
};
})();
}


;if(!dojo._hasResource["lconn.core.a11y"]){
dojo._hasResource["lconn.core.a11y"]=true;
dojo.provide("lconn.core.a11y");
dojo.addOnLoad(function(){
var _1=document.getElementsByTagName("body")[0];
if(dojo.hasClass(_1,"dijit_a11y")){
dojo.addClass(_1,"lotusImagesOff");
}
});
}


;dojo.cache("lconn.core", "templates/ComboBox.html", "<input type=\"text\" autocomplete=\"off\" ${nameAttrSetting} id=\"widget_${id}\" size=\"${size}\" dojoAttachEvent=\"onkeypress:_onKeyPress, compositionend\" dojoAttachPoint=\"domNode,textbox,focusNode,comboNode\" waiRole=\"combobox\" waiState=\"haspopup-true,autocomplete-list,expanded-false\" />");

;if(!dojo._hasResource["lconn.core.TypeAhead"]){
dojo._hasResource["lconn.core.TypeAhead"]=true;
dojo.provide("lconn.core.TypeAhead");
dojo.require("dijit.form.ComboBox");
dojo.declare("lconn.core.TypeAhead",[dijit.form.ComboBox],{size:"",templateString:null,templatePath:dojo.moduleUrl("lconn.core","templates/ComboBox.html"),formatItem:function(_1,_2){
if(!_2){
return _1;
}else{
return _1=_1.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
}
},formatItemHtml:function(_3){
return this.formatItem(_3,true);
},minChars:1,hasDownArrow:false,multipleValues:true,token:"",hintText:null,autoComplete:false,submitFormOnKey:false,submitFormOnNonSelectingEnter:false,searchDelay:300,postCreate:function(){
var _4=this.focusNode.style.fontFamily||"";
if(!this.downArrowNode){
this.downArrowNode=this.domNode.parentNode.appendChild(dojo.create("div",{style:{display:"none"}}));
}
this.dummyPopupNode=this.domNode.parentNode.appendChild(dojo.create("div",{id:this.id+"_dummypopup",style:{display:"none"}}));
dojo.attr(this.dummyPopupNode,"role","textbox");
dijit.setWaiState(this.domNode,"owns",this.dummyPopupNode.id);
this.inherited(arguments);
this.focusNode.style.fontFamily=_4;
this.updateHintText();
},_onFocus:function(_5){
this.updateHintText(null,true);
this.inherited(arguments);
if(dojo.isIE){
window.setTimeout("dijit.focus(dojo.byId('"+this.textbox.id+"'))",0);
}
},_onBlur:function(_6){
this.inherited(arguments);
if(dojo.isIE&&this.dropdownNode){
dojo.removeClass(this.dropdownNode,"lconnTypeAhead");
}
this.updateHintText();
},_hasAttr:function(_7,_8){
return dojo.isIE?_7.getAttribute(_8)!==null:_7.hasAttribute(_8);
},setValue:function(){
this.inherited(arguments);
this.updateHintText(arguments[0],false);
},updateHintText:function(_9,_a){
var _b=this.focusNode;
if(_9){
_b.title=this.hintText=_9;
}
if(this.hintText){
if(!this._focused&&(_b.value==""||!_b.hasInput)){
_b.hasInput=false;
_b.style.color="#666";
_b.value=this.hintText||"";
}else{
if(!_b.hasInput){
_b.hasInput=true;
_b.style.color="#000";
if(_b.value!=""){
_b.value="";
if(_a&&dojo.isFF){
setTimeout(function(){
dijit.focus(_b);
},1);
}
}
if(_a&&dojo.isIE){
try{
dijit.selectInputText(_b,0,0);
}
catch(e){
}
}
}
}
}
},_onKeyPress:function(_c){
var _d=_c.charOrCode;
if(_c.altKey||((_c.ctrlKey||_c.metaKey)&&(_d!="x"&&_d!="v"))||_d==dojo.keys.SHIFT){
return;
}
var _e=false;
var _f="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _10=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(_d);
_10=pw.getHighlightedOption();
}
switch(_d){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_e=true;
_f="_startSearchAll";
}else{
this._announceOption(_10);
}
dojo.stopEvent(_c);
break;
case dk.ENTER:
if(_10){
if(_10==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(_c);
break;
}else{
if(_10==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(_c);
break;
}
}
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
if(this.submitFormOnNonSelectingEnter){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
this._lastQuery=null;
if(this._isShowingNow){
this._hideResultList();
}
break;
}
}
if(!this.submitFormOnKey){
_c.preventDefault();
}
case dk.TAB:
var _11=this.attr("displayedValue");
if(pw&&(_11==pw._messages["previousMessage"]||_11==pw._messages["nextMessage"])){
break;
}
if(_10){
pw.attr("value",{target:_10});
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(_c);
this._hideResultList();
if(this._currentInput){
this.focusNode.value=this._currentInput;
delete this._currentInput;
}
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_e=true;
break;
default:
dijit.setWaiState(this.focusNode,"activedescendant",this.focusNode.id);
this.focusNode.focus();
_e=typeof _d=="string"||_d==229;
}
if(_e){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_f),1);
}
},_numTokensPreceding:function(str,pos){
var _12=str.substring(0,pos);
var _13=_12.split(this.token).length-1;
return _13;
},_splitByToken:function _splitByToken(str){
var _14=[str];
if(this.token&&str.indexOf(this.token)!=-1){
str=str.replace(new RegExp(this.token+"+","g"),this.token);
str=str.replace(new RegExp("^"+this.token),"");
str=str.replace(new RegExp(this.token+"$"),"");
_14=str.split(this.token);
}
return _14;
},_autoCompleteText:function(_15){
var fn=this.focusNode;
var _16=this._getCaretPos(fn);
dijit.selectInputText(fn,fn.value.length);
var _17;
if(this.multipleValues){
_17=fn.value.split(this.token);
}else{
_17=[fn.value];
}
var _18=0;
if(this.multipleValues){
_18=this._numTokensPreceding(fn.value,_16);
}
if(this.multipleValues&&this.token!=" "&&_18>0){
_15=" "+_15;
}
var _19=this.ignoreCase?"toLowerCase":"substr";
if(dojo.string.trim(_15[_19](0)).indexOf(dojo.string.trim(_17[_18][_19](0)))==0){
if(_16+1>fn.value.length||fn.value.charAt(_16)==this.token){
var end=_16+_15.length-_17[_18].length;
if(_15!=this.NoResultsMessage&&_15!=this.searchDirectory&&_15.indexOf("**")==-1){
_17[_18]=_15;
fn.value=_17.join(this.token);
dijit.selectInputText(fn,_16,end);
}else{
fn.value=this._currentInput;
}
}
}else{
if(_15!=this.NoResultsMessage&&_15!=this.searchDirectory&&_15.indexOf("**")==-1){
_17[_18]=_15;
fn.value=_17.join(this.token);
var _1a=0;
for(var i=0;i<_18;i++){
_1a+=_17[i].length;
}
_1a+=this.token.length*_18;
dijit.selectInputText(fn,_1a,_1a+_15.length);
}else{
fn.value=this._currentInput;
}
}
},_openResultList:function(_1b,_1c){
this._fetchHandle=null;
if(!this.domNode||this.disabled||this.readOnly||(_1c.query!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(!_1b.length&&(this.hideEmptyResults||_1c.hideEmptyResults)){
this._hideResultList();
return;
}
_1c._maxOptions=this._maxOptions;
var _1d=this._popupWidget.createOptions(_1b,_1c,dojo.hitch(this,"_getMenuLabelFromItem"));
this.results=_1b;
this._showResultList();
if(_1c.direction){
if(1==_1c.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_1c.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}else{
if(this.autoComplete&&!this._prev_key_backspace&&!/^[*]+$/.test(_1c.query[this.searchAttr])){
this._announceOption(_1d[1]);
}
}
},_showResultList:function(){
this.inherited(arguments);
var fn=this.focusNode;
var pw=this._popupWidget;
if(this._isShowingNow&&pw&&pw.id&&!dijit.getWaiState(fn,"activedescendant")){
dijit.setWaiState(fn,"activedescendant",pw.id);
}
if(pw!=null){
pw.domNode.style.height="auto";
}
if(dojo.isIE){
dojo.addClass(pw.domNode.parentNode,"lconnTypeAhead");
this.dropdownNode=pw.domNode.parentNode;
}
dojo.publish("com/ibm/social/incontext/typeahead/onDisplayChange",[pw]);
},_announceOption:function(_1e){
if(!_1e){
return;
}
var _1f=this._getCaretPos(this.focusNode);
var _20;
if(_1e==this._popupWidget.nextButton||_1e==this._popupWidget.previousButton||_1e==this._popupWidget.searchButton){
_20=_1e.innerHTML;
this.item=undefined;
this.value="";
}else{
_20=this.formatItem(_1e.item);
if(!this.multipleValues){
this.attr("item",_1e.item,false,_20);
}
}
if(this.multipleValues){
_1f=_1f||this.caretPos||this.focusNode.value.length;
var _21=this.focusNode.value;
if(this._currentInput){
_21=this._currentInput;
}
var _22=_21.split(this.token);
var _23=this._numTokensPreceding(_21,_1f);
var q=this._lastQuery;
if(this.multipleValues&&this.token!=" "&&_23>0){
q=" "+q;
}
_22[_23]=q;
this.focusNode.value=_22.join(this.token);
}else{
this.focusNode.value=this.focusNode.value.substring(0,_1f);
}
this._setCaretPos(this.focusNode,_1f);
dijit.setWaiState(this.focusNode,"activedescendant",dojo.attr(_1e,"id"));
this._autoCompleteText(_20);
},_selectOption:function(evt){
if(evt&&!this.noUpdateOnSelect){
this._announceOption(evt.target);
}
this._hideResultList();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
if(evt&&evt.target){
var tgt=evt.target;
this.onSelect(tgt.item);
}
dijit.form._FormValueWidget.prototype._setValueAttr.call(this,this.value,true);
},onSelect:function(_24){
},_doSelect:function(tgt){
var _25=this.formatItem(tgt.item);
if(this.multipleValues){
var _26=this.keyArr[this.keyIdx];
this.keyArr[this.keyIdx]=(this.keyIdx!=0&&this.token!=" "?" ":"")+_25;
_25=this.keyArr.join(this.token);
var _27=this.token+(this.token!=" "?" ":"");
if(_25.length>=_27.length&&_25.substring(_25.length-_27.length)!=_27){
_25+=_27;
}
}else{
this.item=tgt.item;
}
this.attr("value",_25);
this._setCaretPos(this.focusNode,_25.length);
},_startSearchAll:function(){
this._startSearch("");
},_startSearchFromInput:function(){
var _28=this._currentInput=this.focusNode.value;
var _29=_28;
if(this.multipleValues){
this.keyArr=_28.split(this.token);
this.caretPos=this._getCaretPos(this.focusNode);
this.keyIdx=this._numTokensPreceding(_28,this.caretPos);
_29=this.keyArr[this.keyIdx];
}
_29=dojo.string.trim(_29);
if(this.shouldStartSearch(_29)){
this._startSearch(_29);
}else{
this._hideResultList();
}
},shouldStartSearch:function(_2a){
var _2b;
if(this.store&&this.store.shouldStartSearch){
_2b=this.store.shouldStartSearch(_2a);
}
if(typeof _2b=="undefined"){
var _2c=this.minChars;
if(_2a.length>=_2c){
return true;
}
var _2d=0;
var _2e=encodeURIComponent(_2a);
for(var i=0;i<_2e.length;i++){
_2d++;
if(_2d>=_2c){
break;
}
if(_2e.charAt(i)=="%"){
i+=2;
}
}
_2b=_2d>=_2c;
}
return _2b;
},_startSearch:function(key){
var _2f=this.id+"_popup";
if(!this._popupWidget){
this._popupWidget=new dijit.form._ComboBoxMenu({onChange:dojo.hitch(this,this._selectOption),id:_2f});
dijit.setWaiRole(this._popupWidget.domNode,"listbox");
dijit.setWaiState(this._popupWidget.domNode,"live","polite");
this._popupWidget.domNode.style.listStyleType="none";
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_2f);
dojo.addClass(this._popupWidget.domNode,"lconnHighlight");
}else{
dijit.setWaiState(this.focusNode,"activedescendant",_2f);
}
var _30=dojo.clone(this.query);
this._lastInput=key;
this._lastQuery=_30=key;
this.searchTimer=setTimeout(dojo.hitch(this,function(_31,_32){
this.searchTimer=null;
var _33={queryOptions:{ignoreCase:this.ignoreCase,deep:true},query:_31,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_34){
_32._fetchHandle=null;
console.error("dijit.form.ComboBox: "+_34);
dojo.hitch(_32,"_hideResultList")();
},start:0,count:this.pageSize};
dojo.mixin(_33,_32.fetchProperties);
this._fetchHandle=_32.store.fetch(_33);
var _35=function(_36,_37){
_36.start+=_36.count*_37;
_36.direction=_37;
this._fetchHandle=this.store.fetch(_36);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_35,this._fetchHandle);
},_30,this),this.searchDelay);
},getAttribute:function(_38){
if(this.item&&this.item[_38]){
return this.item[_38];
}else{
return "";
}
},getTextBoxValue:function(){
return this.focusNode.value;
},_getMenuLabelFromItem:function(_39){
var _3a=this.formatItemHtml(_39);
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 _3b=_3a.toLowerCase();
var _3c=key.toLowerCase();
var _3d=0;
var _3e=null;
var _3f=_3c.split(/\s/);
var sbf=[];
for(var i=0;i<_3f.length;i++){
var s=_3f[i];
var _3e=_3b.indexOf(s,_3d);
if(_3e!=-1){
sbf.push(_3a.substring(_3d,_3e));
sbf.push("<b>");
sbf.push(_3a.substring(_3e,_3e+s.length));
sbf.push("</b>");
_3d=_3e+s.length;
}
}
sbf.push(_3a.substring(_3d));
return {html:true,label:sbf.join("")};
}});
}

dojo.provide("lconn.core.nls.strings")._built=true;
dojo.provide("lconn.core.nls.strings.en");
lconn.core.nls.strings.en={"rs_tunedOutPri":"Tuned Out","rs_forumSettingCancel":"Cancel","rs_copyTemplateMembers":"Use members from template","rs_personColon":"Person: ","rs_actUpdatedByDate":"Updated by ${0} ${1}","rs_forumMessages":"${0} messages","rs_startActivity":"Start an Activity","rs_completedActivityLink":"Show completed Activities","rs_forumSortBy":"Sort by:","rs_noTemplate":"None","rs_jumpPage":"Jump to page ${0} of ${1}","rs_viewAsCloudDescription":"Viewing tags as a tag cloud","rs_group_browse_cancel_button":"Cancel","rs_tagDialogCloseTile":"Close","rs_shared":"Shared","rs_group_browse_paging":"Paging","rs_tagCloudRelatedTags":"Related Tags","rs_relatedTagTitle":"Add the tag ${0} with count ${1}","rs_member_members":"Members","rs_postedBy":"Latest post by","rs_tuneOut":"Mark as Tuned Out","rs_browser_setting":"Browser Setting","rs_normalTemplate":"Mark as normal template","rs_group_browse_group_typeahead_label":"Type a group name:","rs_viewAsListDescription":"Viewing tags as a sequential list of tags","rs_forumSettingSave":"Save","rs_PersonPicture":"${0}\'s Picture","rs_numResults":"Showing ${0} results of ${1}","rs_clearAll":"Clear all","rs_notificationConfirm":"The notification message was sent successfully. ","rs_removeFilter":"Remove","rs_defaultForumList":"Show forum list by default","rs_normalTags":"Active Tags","rs_group_browse_previous_page":"Previous Page","rs_startFirstTopic":"Start the First Topic","rs_markComplete":"Mark Complete","rs_activityFormGoal":"Activity Goal","rs_group_browse_next_page":"Next Page","rs_viewAsListTitle":"List tags as a sequential list of tags","rs_group_browse_page_info":"${0} - ${1} of ${2}","rs_typeToFilter":"Type to filter this list","rs_externalLabel":"External","rs_group_browse_groups":"Browse Groups","rs_favoriteTemplate":"Mark as Favorite Template","rs_noResults":"No Results found","rs_viewAsCloudTitle":"List tags as a tag cloud","rs_close":"Close","rs_prioritize":"Prioritize","rs_hide":"Hide","rs_noTopics":"There are no topics yet for this community.","rs_deleteEntry":"Delete","rs_searchCommunityDirectory":"Community not listed? Use full search...","rs_customLangaugeLinkLabel":"Custom Language","rs_feedError":"Failed to load feed.","rs_restore":"Restore","rs_shadowText_searchDirectory":"Type member name or email address to find person","rs_more":"More","rs_tagCloudViewAllTitle":"Browse all tags","rs_notifyColon":"Notify: ","rs_ok":"OK","rs_actTagsDelim":", ","rs_activitiesUnavailable":"The Activities service is unavailable.","rs_peopleLabel":"People","rs_icfixlayout":{"dialog_title":"Reformat Contents","reformat_save":"Reformat and Save","warn_layout":"Your content exceeds the maximum display width.  Do you want to reformat automatically to fit the available space?","save_as_is":"Save as Is","button_label":"Reformat","cancel":"Cancel","warning":"Warning","remember_decision":"Remember my decision"},"rs_forumTopics":"${0} topics","rs_feedOpenQuestions":"Feed for these open questions","rs_startTopic":"Start a Topic","rs_tagCloudSeachDesc":"Find a Tag","rs_linkMore":"... [more]","rs_group_browse_enter_string":"Type to find groups","rs_manageForumSetting":"Manage Forum Settings","rs_shadowText_searchPersonAndGroupDirectory":"Type member name or email address to find person","rs_replace":"Replace","rs_template":"Template","rs_viewAll":"View All","rs_forumSettingNote":"Note: Topics display by default if there is only one forum.","rs_templateOptions":"Template options","rs_locked":"[Locked]","rs_forumSettingSaveAndClose":"Save and Close","rs_tagCloudRelatedTagsDescription":"Add a related tag to further refine your search","rs_forumSettingConfirm":"Your changes for Forums have been saved.","rs_messageColon":"Message: ","rs_forumSettingError":"An error occurred. Contact your administrator.","rs_tagCloudNoTagsProfiles":"Search the directory. Tags associated with the profiles returned by the search will be displayed here.","rs_shadowText_searchCommunityDirectory":"Type to find community","rs_topics":"topics","rs_group_browse_find_groups":"Find Groups","rs_removeActFromComm":"Remove from community","rs_forumLastAddedPost":"Latest post by ${0}","rs_activityWidgetTitle":"Activities","rs_notificationFail":"The notification message was not sent. Try again later and contact your system administrator if the problem persists.","rs_aboutThisTemplate":"About This Template","rs_tagCloudSelectedTags":"Selected Tags","rs_linkLess":"... [less]","rs_group_role":"Group Role","rs_group_browse_results_label":"Select a matching group:","rs_medPri":"Medium Priority","rs_quote":"Quote","rs_tagDialogPageInfo":"${0} - ${1} of ${2} tags","rs_yesterday":"Yesterday","rs_forumSettingCommunityOverviewPage":"Community overview page:","rs_tagCloudNavigationLabel":"Tags","rs_group_name":"Group Name","rs_shadowText_searchGroupDirectory":"Type to find group","rs_replies":"replies","rs_member_add_to_community":"Click to add member","rs_listItem":"List item","rs_navNextLabel":"Next","rs_typeName":"Type in a Name","rs_activityFeedLink":"Feed for these activities","rs_pageLabel":"Page:","rs_group_remove_name":"Click to remove group","rs_forumSettingApplicationView":"Forum application default view:","rs_activityWidgetBriefDescription":"Track community goals.  Create to-dos and share resources.","rs_sortByReplies":"Sort by Replies","rs_group_browse_parent_group_label":"You are in:","rs_tagLoadingTags":"Loading Content","rs_actUpdatedBy":"Updated by ${0}","rs_loading":"Loading...","rs_forumOpenQuestions":"Open Questions","rs_removeTagTitle":"Remove the tag ${0} from the selected filter tags","rs_tomorrow":"Tomorrow","rs_edit":"Edit","rs_startFromTemplate":"Start Activity from this Template","rs_createPersonLink":"Create Person Link","rs_group_browse_next":"Next","rs_searchPersonAndGroupDirectory":"Person or group not listed? Use full search...","rs_notifyOthers":"Notify other people","rs_pickCommunity":"Pick from Community List","rs_activityWidgetDescription":"Community activities can be used to collaborate and track progress on community projects or initiatives.","rs_activity":"Activity","rs_tagCloudNoRecentTags":"No recent tags","rs_startFirstActivity":"Create Your First Activity","rs_inactivePerson":"${0} (inactive)","rs_group_browse_group_name":"Group name:","rs_pagepos":"${0} - ${1} of ${2}","rs_group_browse_remove_selection":"Remove nested group selection: ${0}","rs_defaultTopicList":"Show topic list by default","rs_reply":"reply","rs_tagCloudHelpAlt":"Get help with tags","rs_feedAnsweredQuestions":"Feed for these answered questions","rs_filterListPrompt":"Type to filter this list","rs_tagCloudSeach":"Search","rs_group_add_to_community":"Click to add group","rs_tagCloudViewAll":"Browse","rs_noReplies":"No replies","rs_labelColon":"Label: ","rs_member_remove_group":"Remove ${0}","rs_filterGroupLabel":"Select Group","rs_formSettingHideMessage":"Hide this message","rs_jumpPageLabel":"Jump to page","rs_member_groups":"Groups","rs_group_browse_group_no_groups":"This group does not contain any groups","rs_searchInputDefault":"Type to find a tag","rs_warning":"Warning","rs_forumUnAnsweredQuestion":"Unanswered question","rs_addTagTitle":"Filter by the tag ${0} with count ${1}","rs_forumSettingSubmit":"Submit","rs_forumAnsweredQuestion":"Answered question","rs_group_browse_add_button":"Add","rs_highPri":"High Priority","rs_searchDirectory":"Person not listed? Use full search...","rs_personLink":"Person Link","rs_forumSortByTopicsAndReplies":"Topics and Replies","rs_searchInputTagSelected":"Type another tag","rs_topic":"topic","rs_viewAsList":"List","rs_tagDialogTitle":"All Tags","rs_searchGroupDirectory":"Group not listed? Use full search...","rs_noTopicsShort":"No topics","rs_member_no_results":"No results found","rs_viewAsCloud":"Cloud","rs_actDue":"Due ${0}","rs_normalPri":"Normal Priority (Default)","rs_today":"Today","rs_sortbyTopicsAndReplies":"Sort by Topics and Replies","rs_markIncomplete":"Restore","rs_errorPersists":"If the problem persists, contact your system administrator.","rs_noActivities":"There are no activities started for this community.","rs_actTags":"Tags: ","rs_group_browse_previous":"Previous","rs_forumSortByReplies":"Replies","rs_group_browse_page_info_alt":"Matching groups ${0} through ${1} of ${2}","rs_tagCloudNoTags":"No tags yet","rs_tagCloudToggleHint":"Click to hide or show","rs_copyActivityMembers":"Use members from activity","rs_navPrevLabel":"Previous","rs_tagsLabel":"Tags","rs_forumSortByDate":"Date","rs_copyOf":"Copy of ${0}","rs_noTopicsLoggedIn":"Ask a question, brainstorm, or simply share your ideas.","rs_group_browse_group_selected":"Selected Group:","rs_a11y_warning":"Warning:","rs_group_browse_groups_dialog_title":"Browse Groups","rs_forumSortByTopic":"Topics","rs_removeTag":"Remove the tag from the selected filter tags","rs_pageNumLabel":"Page Number","rs_member_remove_name":"Click to remove member"};

;dojo.cache("lconn.core", "CommonTags/templates/typeAhead.html", "<input type=\"text\" id=\"widget_${id}\" class=\"lotusText\" autocomplete=\"off\" ${nameAttrSetting}dojoAttachEvent=\"onkeypress:_onKeyPress, compositionend\"dojoAttachPoint=\"comboNode,textbox,focusNode\" waiState=\"haspopup-true,autocomplete-list,expanded-false\" waiRole=\"combobox\" />");

;if(!dojo._hasResource["lconn.core.CommonTags.CommonTagsTypeAhead"]){
dojo._hasResource["lconn.core.CommonTags.CommonTagsTypeAhead"]=true;
dojo.provide("lconn.core.CommonTags.CommonTagsTypeAhead");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("lconn.core.TypeAhead");
dojo.requireLocalization("lconn.core","strings");
dojo.declare("lconn.core.CommonTags.CommonTagsTypeAhead",[lconn.core.TypeAhead],{hideEmptyResults:true,templateString:null,templatePath:dojo.moduleUrl("lconn.core","CommonTags/templates/typeAhead.html"),submitFormOnNonSelectingEnter:true,postMixInProperties:function(){
this.inherited(arguments);
var b=dojo.i18n.getLocalization("lconn.core","strings");
this.hintText=this.hintText||b.rs_searchInputDefault;
}});
}


;if(!dojo._hasResource["lconn.core.MenuUtility"]){
dojo._hasResource["lconn.core.MenuUtility"]=true;
dojo.provide("lconn.core.MenuUtility");
dojo.require("dijit._base.popup");
dojo.require("com.ibm.oneui.util.openAround");
dojo.declare("lconn.core.MenuUtility",null,{openMenu:function(_1,_2,_3,_4){
dojo.deprecated("lconn.core.MenuUtility","Use com.ibm.oneui.util.openAround","3.5");
if(_1){
_1=dojo.fixEvent(_1);
}
com.ibm.oneui.util.openAround(_2,_3,_4,_1);
},openMenuA11y:function(_5,_6){
dojo.deprecated("lconn.core.MenuUtility","Use com.ibm.oneui.util.openAround, this is handled by standard onclick events","3.5");
if(_5.keyCode==dojo.keys.ENTER){
this.openMenu(_5,_6);
}
}});
menuUtility=new lconn.core.MenuUtility();
lconn.core.MenuUtility.open=function(_7,e){
dojo.deprecated("lconn.core.MenuUtility","Use com.ibm.oneui.util.openAround","3.5");
menuUtility.openMenu(e,_7);
};
lconn.core.MenuUtility.openAround=function(_8,_9,_a){
dojo.deprecated("lconn.core.MenuUtility","Use com.ibm.oneui.util.openAround","3.5");
menuUtility.openMenu(null,_8,_9,_a);
};
lconn.core.MenuUtility.attachListeners=function(_b,_c,_d){
var _d=_d||dojo.partial(lconn.core.MenuUtility.openAround,_b,_c);
dojo.connect(_c,"onclick",_d);
dojo.connect(_c,"onmousedown",function(){
_b.preventReopen=_b.isShowingNow||_b.wasShowing;
_b.wasShowing=false;
});
dojo.connect(_c,"onkeypress",function(e){
_b.wasShowing=_b.preventReopen=false;
if(e.charOrCode==dojo.keys.DOWN_ARROW){
dojo.stopEvent(e);
_d();
}
});
_c=null;
};
}


;if(!dojo._hasResource["lconn.core.Res"]){
dojo._hasResource["lconn.core.Res"]=true;
dojo.provide("lconn.core.Res");
dojo.require("dojo.i18n");
dojo.require("dojo.string");
dojo.requireLocalization("lconn.core","strings");
dojo.declare("lconn.core.Res",[],{bundleFor:"lconn.core",resBundle:null,loadDefaultBundle:function(){
this.resBundle=dojo.i18n.getLocalization(this.bundleFor,"strings");
},loadBundle:function(_1){
this.resBundle=dojo.i18n.getLocalization(_1,"strings");
},getDefaultBundle:function(){
return dojo.i18n.getLocalization(this.bundleFor,"strings");
},getBundle:function(_2){
return dojo.i18n.getLocalization(_2,"strings");
},getStringFrom:function(_3,_4,_5){
var _6=dojo.i18n.getLocalization(_3,"strings")[_4];
if(_5==undefined){
return _6;
}else{
return dojo.string.substitute(_6,_5);
}
},getString:function(_7,_8){
var _9=dojo.i18n.getLocalization(this.bundleFor,"strings")[_7];
if(_8==undefined){
return _9;
}else{
return dojo.string.substitute(_9,_8);
}
}});
}


;if(!dojo._hasResource["com.ibm.oneui.util.Url"]){
dojo._hasResource["com.ibm.oneui.util.Url"]=true;
(function(){
dojo.provide("com.ibm.oneui.util.Url");
dojo.declare("com.ibm.oneui.util.Url",dojo._Url,{getQuery:function(){
if(!this.queryParameters){
this.queryParameters=_1(this.query);
}
return this.queryParameters;
},getQueryString:function(){
var _2=this.queryParameters;
if(_2){
this.query=_3(_2);
this.queryParameters=null;
}
return this.query;
},toString:function(){
var _4=[];
if(this.scheme){
_4.push(this.scheme);
_4.push(":");
}
if(this.authority){
_4.push("//");
_4.push(this.authority);
}
_4.push(this.path);
var _5=this.getQueryString();
if(_5){
if(_5.charAt(0)!="?"){
_4.push("?");
}
_4.push(_5);
}
if(this.fragment){
_4.push("#");
_4.push(this.fragment);
}
return _4.join("");
}});
function _1(_6){
var _7={};
if(!_6){
return _7;
}
if(_6.charAt(0)=="?"){
_6=_6.substring(1);
}
var _8=_6.split("&");
for(var i=0;i<_8.length;i++){
if(_8[i].length>0){
var _9=_8[i].indexOf("=");
if(_9==-1){
var _a=decodeURIComponent(_8[i]);
var _b=_7[_a];
if(dojo.isArray(_b)){
_b.push("");
}else{
if(_b){
_7[_a]=[_b,""];
}else{
_7[_a]="";
}
}
}else{
if(_9>0){
var _a=decodeURIComponent(_8[i].substring(0,_9));
var _c=decodeURIComponent(_8[i].substring(_9+1));
var _b=_7[_a];
if(dojo.isArray(_b)){
_b.push(_c);
}else{
if(_b){
_7[_a]=[_b,_c];
}else{
_7[_a]=_c;
}
}
}
}
}
}
return _7;
};
function _3(_d){
var _e=[];
for(var _f in _d){
var _10=_d[_f];
if(_10!==undefined&&_10!=null){
_f=encodeURIComponent(_f);
if(dojo.isArray(_10)){
for(var i=0;i<_10.length;i++){
if(_10[i]){
_e.push(_e.length==0?"?":"&");
_e.push(_f);
_e.push("=");
_e.push(encodeURIComponent(_10[i]));
}
}
}else{
_e.push(_e.length==0?"?":"&");
_e.push(_f);
_e.push("=");
_e.push(encodeURIComponent(_10));
}
}
}
return _e.join("");
};
com.ibm.oneui.util.Url.secure=((window.location.protocol||"http").replace(":","")=="https");
})();
}


;if(!dojo._hasResource["lconn.core.url"]){
dojo._hasResource["lconn.core.url"]=true;
dojo.provide("lconn.core.url");
dojo.provide("lconn.core.url.ProxyUrlHelper");
dojo.require("com.ibm.oneui.util.proxy");
dojo.require("com.ibm.oneui.util.Url");
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}};
lconn.core.url.parse=function(_1,_2){
var l=arguments.length,u=null;
if(!_1){
return null;
}else{
if((typeof _1!="string"&&console.trace)||(_2&&typeof _2!="string"&&console.trace)){
throw "Arguments for URI must be a string";
}
}
_1=new dojo._Url(_1,_2);
_1.queryParameters=lconn.core.url.getRequestParameters(_1);
return _1;
};
lconn.core.url.write=function(_3){
if(!_3){
return null;
}
var _4="";
if(_3.scheme){
_4+=_3.scheme+":";
}
if(_3.authority){
_4+="//"+_3.authority;
}
_4+=_3.path;
if(_3.queryParameters){
_4+=lconn.core.url.writeParameters(_3.queryParameters);
}else{
if(_3.query){
_4+=((_3.query.charAt(0)!="?")?"?":"")+_3.query;
}
}
if(_3.fragment){
_4+="#"+_3.fragment;
}
return _4;
};
dojo._Url.prototype.toCanonicalString=function(){
return lconn.core.url.write(this);
};
lconn.core.url.rewrite=function(_5,p){
if(_5&&p){
_5=lconn.core.url.parse(_5);
dojo.mixin(_5.queryParameters,p);
_5=lconn.core.url.write(_5);
}
return _5;
};
lconn.core.url.splitQuery=function(_6){
var _7={};
if(!_6){
return _7;
}
if(_6.charAt(0)=="?"){
_6=_6.substring(1);
}
var _8=_6.split("&");
for(var i=0;i<_8.length;i++){
if(_8[i].length>0){
var _9=_8[i].indexOf("=");
if(_9==-1){
var _a=decodeURIComponent(_8[i]);
var _b=_7[_a];
if(dojo.isArray(_b)){
_b.push("");
}else{
if(_b){
_7[_a]=[_b,""];
}else{
_7[_a]="";
}
}
}else{
if(_9>0){
var _a=decodeURIComponent(_8[i].substring(0,_9));
var _c=decodeURIComponent(_8[i].substring(_9+1));
var _b=_7[_a];
if(dojo.isArray(_b)){
_b.push(_c);
}else{
if(_b){
_7[_a]=[_b,_c];
}else{
_7[_a]=_c;
}
}
}
}
}
}
return _7;
};
lconn.core.url.getRequestParameters=function(_d){
if(!_d){
return {};
}
if(typeof _d=="string"){
_d=new dojo._Url(_d);
}
return lconn.core.url.splitQuery(_d.query);
};
lconn.core.url.writeParameters=function(_e){
var _f=[];
for(var key in _e){
var _10=_e[key];
if(typeof _10!="undefined"&&_10!=null){
key=encodeURIComponent(key);
if(dojo.isArray(_10)){
for(var i=0;i<_10.length;i++){
if(_10[i]){
_f.push(_f.length==0?"?":"&");
_f.push(key);
_f.push("=");
_f.push(encodeURIComponent(_10[i]));
}
}
}else{
_f.push(_f.length==0?"?":"&");
_f.push(key);
_f.push("=");
_f.push(encodeURIComponent(_10));
}
}
}
return _f.join("");
};
lconn.core.url.getServiceUrl=function(_11,_12){
var _13=com.ibm.oneui.util.Url,_14=null;
if(!_11){
return null;
}else{
if(_13.secure||_12){
if(_11.secureEnabled){
_14=_11.secureUrl;
}else{
if(_11.url){
_14=_11.url;
}else{
return null;
}
}
}else{
if(_11.url){
_14=_11.url;
}else{
if(_11.secureEnabled){
_14=_11.secureUrl;
}else{
return null;
}
}
}
}
return new _13(_14);
};
lconn.core.url.ensureQualified=function(_15){
if(!_15){
throw "Null URL is not permitted";
}
return new dojo._Url(dojo.global.location.toString(),_15).toString();
};
lconn.core.url.ProxyUrlHelper=function(){
};
lconn.core.url.ProxyUrlHelper.prototype={getProxifiedURL:function(url){
return com.ibm.oneui.util.proxy(url);
}};
}


;if(!dojo._hasResource["lconn.core.LanguageSelector"]){
dojo._hasResource["lconn.core.LanguageSelector"]=true;
dojo.provide("lconn.core.LanguageSelector");
dojo.require("dojo.cookie");
dojo.require("lconn.core.MenuUtility");
dojo.require("lconn.core.Res");
dojo.require("lconn.core.url");
dojo.declare("lconn.core.LanguageSelector",null,{_jsonString:null,_selectorNode:null,_menu:null,_cookieProperties:null,COOKIE_NAME:null,constructor:function(_1,_2,_3,_4){
this._selectorNode=_1;
this._jsonString=_2;
this._cookieProperties=_4;
this.id=this._selectorNode.id;
this.COOKIE_NAME=lconn.core.LanguageSelector.COOKIE_NAME=_3;
this._setSelectorLabel();
dojo.connect(this._selectorNode,"onclick",dojo.hitch(this,"_openMenu"));
},_openMenu:function(_5){
try{
this._buildLanguageMenu();
this._attachLanguageMenu(this.id);
var dd=dojo.query(".dijitPopup");
for(var i=0;i<dd.length;i++){
if(dd[i].id.indexOf("_dropdown")!=-1){
dojo.removeAttr(dd[i],"style");
}
}
menuUtility.openMenu(null,this._menu.id,this._selectorNode);
dojo.stopEvent(_5);
}
catch(e){
console.log(e);
}
},_setSelectorLabel:function(){
var _6=dojo.cookie(this.COOKIE_NAME);
var _7=new lconn.core.Res();
_7.loadDefaultBundle();
this.strBundle=_7.resBundle;
var _8=" <img alt=\"\" role=\"presentation\" src=\""+dijit._Widget.prototype._blankGif+"\"  class=\"lotusArrow lotusDropDownSprite\"><span class=\"lotusAltText\">&#9660;</span>";
var _9="<span class=\"lotusAccess\">Language Selector</span>";
if(_6){
var _a=0;
var _b=this.strBundle.rs_customLangaugeLinkLabel+_9+_8;
for(var _c in this._jsonString){
if(this._isCodeEqual(_c,_6)){
_b=this._jsonString[_c]+_9+_8;
break;
}else{
if(this._isCodeEqualOrMoreSpecific(_c,_6)&&_c.length>_a){
_b=this._jsonString[_c]+_9+_8;
_a=_c.length;
}
}
}
this._selectorNode.innerHTML=_b;
}else{
this._selectorNode.innerHTML=this.strBundle.rs_customLangaugeLinkLabel+_9+_8;
}
},_attachLanguageMenu:function(id){
var _d=dojo.byId(id);
dijit.setWaiState(_d,"owns",id+"_popup");
},_buildLanguageMenu:function(){
if(this._menu==null){
var _e=true;
this._menu=new dijit.Menu({"class":"lotusNavMenu",id:this.id+"_popup"});
for(var _f in this._jsonString){
if(_f!="BD"){
this._menu.addChild(this._buildMenuItem(this._jsonString[_f],_f));
}else{
_e=false;
}
}
var res=new lconn.core.Res();
res.loadDefaultBundle();
this.strBundle=res.resBundle;
if(_e){
this._menu.addChild(this._buildMenuItem(this.strBundle.rs_browser_setting,"BD"));
}
this._menu.domNode.style.display="none";
dojo.body().appendChild(this._menu.domNode);
var _10=this;
dojo.connect(this._menu,"onItemClick",function(_11){
if((_11!=null)&&(typeof _11.language!="undefined")){
dojo.cookie(_10.COOKIE_NAME,_11.language,_10._cookieProperties);
var _12=null;
var _13=document.getElementById("REFRESH_URL");
if(_13){
_12=_13.getAttribute("href");
}
if(!_12){
_12=window.location.href;
}
var _14=_11.language;
if(_14=="BD"||!_14){
_14=null;
}
var url=lconn.core.url.parse(_12);
if(_14==null&&url.queryParameters.lang==null){
window.location.reload(true);
}else{
window.location=lconn.core.url.rewrite(_12,{lang:_14});
}
}
});
}
},_buildMenuItem:function(_15,_16){
var _17=new dijit.MenuItem({label:_15,iconClass:"lotusHidden"});
_17.language=_16;
return _17;
},_isCodeEqualOrMoreSpecific:function(_18,_19){
var _1a=_18.toLowerCase().replace(/-/,"_");
var _1b=_19.toLowerCase().replace(/-/,"_");
if(_1a==_1b){
return true;
}
var _1c=_1a.length>0&&_1b.indexOf(_1a+"_")==0;
if(_1c){
var _1d={zh:"zh_tw",pt:"pt_br"};
if(_1d[_1a]==_1b){
return false;
}else{
return true;
}
}
return false;
},_isCodeEqual:function(_1e,_1f){
var _20=_1e.toLowerCase().replace(/-/,"_");
var _21=_1f.toLowerCase().replace(/-/,"_");
return _20===_21;
}});
}


;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(_1,_2){
this.queryParam=(_1.queryParam?_1.queryParam:_2.getAttribute("queryParam"));
this.url=(_1.url?_1.url:_2.getAttribute("url"));
},queryParam:"",maxQueryLength:255,cache:[],timeout:5000,clear:function(){
this.cache=[];
},fetch:function(_3){
var _4={};
this.searchDirectory=(_3.queryOptions.searchDirectory?true:false);
if(typeof this.cache[_3.query.toLowerCase()]=="object"){
_3.onComplete(this.cache[_3.query.toLowerCase()],_3);
return _3;
}
if(this.queryParam){
if(this.getUTF8Length(_3.query)>this.maxQueryLength){
var _5=this.getUTF8Substring(_3.query);
_4[this.queryParam]=_5;
}else{
_4[this.queryParam]=_3.query;
}
}
dojo.xhrGet({url:this.url,content:_4,handleAs:"json",timeout:this.timeout,load:dojo.hitch(this,function(_6){
this.cache[_3.query.toLowerCase()]=_6;
if(_3.onComplete){
_3.onComplete(_6,_3);
}
}),error:function(){
console.log("There was an error");
}});
return _3;
},getUTF8Length:function(_7){
var _8=0;
if(_7!=null){
for(var i=0;i<_7.length;i++){
var c=_7.charCodeAt(i);
if(c<127){
_8+=1;
}else{
if((128<=c)&&(c<=2047)){
_8+=2;
}else{
if((2048<=c)&&(c<=65535)){
_8+=3;
}
}
}
}
}
return _8;
},getUTF8Substring:function(_9){
var _a=_9;
var i=0;
while(this.getUTF8Length(_a)>this.maxQueryLength){
_a=_9.substring(0,_9.length-i);
i++;
}
return _a;
},getValue:function(_b,_c,_d){
return _b;
}});
}


;if(!dojo._hasResource["lconn.core.theme"]){
dojo._hasResource["lconn.core.theme"]=true;
(function(){
dojo.provide("lconn.core.theme");
dojo.require("lconn.core.url");
dojo.require("com.ibm.oneui.util.Url");
lconn.core.theme={getUrl:function(_1){
_2();
return _3+_1+_4;
},switchTheme:function(_5){
var _6=_2();
if(_5=="default"||!_5){
_5=_7;
}
if(_5==_8||!_6){
return;
}
_8=_5;
var _9=_a(dojo.byId("lotusThemeStylesheet"));
var _b=_a(dojo.byId("lotusAppStylesheet"));
var _c=encodeURIComponent(_5);
if(_5){
_9=_6.cloneNode(true);
_9.id="lotusThemeStylesheet";
_d.path=_e+"_lconntheme/"+_c+".css";
_9.href=_d.toString();
dojo.place(_9,_6,"after");
if(_f){
_b=_6.cloneNode(true);
_b.id="lotusAppStylesheet";
_d.path=_e+"_lconnappstyles/"+_c+"/"+encodeURIComponent(_f)+".css";
_b.href=_d.toString();
dojo.place(_b,_9,"after");
}
}
}};
var _7,_10,_f,_e,_d,_8,_3,_4;
function _2(){
var _11=dojo.byId("lotusBaseStylesheet");
if(!_d&&_11){
_3=dojo.attr(_11,"base");
_d=new com.ibm.oneui.util.Url(_3);
_d.query=dojo.attr(_11,"query");
_e=_d.path;
_8=_7=dojo.attr(_11,"theme")||"default";
_10=dojo.attr(_11,"defaultTheme")||_7;
_f=dojo.attr(_11,"appName");
_3+="com.ibm.lconn.core.styles.oneui"+(dojo.attr(_11,"oneui")||2)+"/";
_4="?etag="+encodeURIComponent(_d.getQuery().etag);
}
return _11;
};
function _a(_12){
if(_12){
_12.id="";
setTimeout(function(){
var _13=_12.parentNode;
if(_13){
_13.removeChild(_12);
}
},1);
}
return _12;
};
})();
}


;if(!dojo._hasResource["lconn.core.widget.MenuLauncher"]){
dojo._hasResource["lconn.core.widget.MenuLauncher"]=true;
dojo.provide("lconn.core.widget.MenuLauncher");
dojo.require("dijit._Widget");
dojo.declare("lconn.core.widget.MenuLauncher",dijit._Widget,{hideDelay:1000,openDelay:0,preloadDelay:0,classActive:"lotusHover",activeParent:0,activateOnFocus:false,widthAdjust:0,orient:{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"},orientRTL:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"},buildRendering:function(){
this.domNode=this.popupStateNode=this.srcNodeRef;
this.connect(this,"onMouseEnter","_delayOpen");
this.connect(this,"onMouseLeave","_delayClose");
if(this.activateOnFocus){
this.connect(this,"onFocus","_delayOpen");
this.connect(this,"onBlur","_closeMenu");
}else{
this.connect(this,"onClick","_onClick");
}
this.menuId=this.menuId||dojo.attr(this.domNode,"aria-owns")||dojo.attr(this.domNode,"aria-describedby")||(this.id?(this.id+"_popup"):dijit.getUniqueId("ml"));
this.externalContent=dojo.attr(this.domNode,"external-content");
delete this.srcNodeRef;
},decorateAria:function(){
dojo.attr(this.domNode,"aria-owns",this.menuId);
},whenInit:function(){
this.decorateAria();
var _1=this._initDfd;
if(!_1){
var _2=this._initMenu();
if(!(_2 instanceof dojo.Deferred)){
if(!this.menu){
throw "_initMenu must initialize this.menu or return a deferred";
}
_2=new dojo.Deferred();
_2.callback(this.menu);
}
_1=this._initDfd=_2;
_1.addCallback(this,"initFinal").addErrback(this,function(){
this._initDfd=null;
});
}
return _1;
},initFinal:function(){
var _3=this.menu;
_3._launcher=this;
dijit.popup.moveOffScreen(_3.domNode);
var _4=document.createElement("span");
_4.style.display="none";
dojo.attr(_4,"widgetId",_3.id);
dojo.body().appendChild(_4);
var _5=this.domNode;
for(var i=0;i<this.activeParent;i++){
_5=_5.parentNode;
}
this.activeNode=_5;
if(this.externalContent){
var _6=dijit.byId(this.externalContent);
this.connect(_6,"onMouseEnter","_openMenu");
this.connect(_6,"onMouseLeave","_delayClose");
this.connect(_6,"onClose","_closeMenu");
dojo.connect(this,"onOpen",dojo.hitch(this,function(){
dojo.style(this.menu.domNode,{padding:0});
var _7=dojo.position(dojo.byId(_6.bindto),true);
dojo.style(_6.domNode,{top:_7.y+"px",left:_7.x+"px",height:_7.h+"px",width:_7.w+"px",zIndex:2000});
_6.show(arguments);
}));
dojo.connect(this,"onClose",function(){
_6.hide();
});
}
this.connect(_3,"onMouseEnter","_openMenu");
this.connect(_3,"onMouseLeave","_delayClose");
},_initMenu:function(){
throw "Must override initMenu() to do dynamic loading";
},_onClick:function(e){
if(e){
dojo.stopEvent(e);
}
this._openMenu("click");
},_preloadMenu:function(){
this.whenInit().addCallback(this,function(){
var _8=this.menu;
var _9=dojo.getObject("dijit.layout.ContentPane");
if(_8._preload){
_8._preload();
}else{
if(_9&&_8 instanceof _9){
if(_8.isLoaded||_8.isFailed||_8._xhrDfd){
return;
}
_8._load();
}
}
});
},_openMenu:function(_a){
this._shouldBeOpen=true;
this.whenInit().addCallback(this,function(){
if((!this._opened&&this._closing)||!this._shouldBeOpen){
return;
}
if(typeof _a!="string"){
_a=null;
}
this._delayEnd();
var _b=this.menu;
if(!_b){
return;
}
if(!this._opened){
if(_b.href&&!(_b.isLoaded||_b.isFailed)){
var _c=this;
var _d=dojo.connect(_b,"onLoad",function(){
dojo.disconnect(_d);
_c._openFinal(_a);
});
this._preloadMenu();
return;
}else{
this._openFinal(_a);
}
}else{
this.onOpen(_a);
}
});
},_openFinal:function(_e){
if(!this._shouldBeOpen){
return;
}
if(typeof _e!="string"){
_e=null;
}
var _f=this.menu;
var _10=_f.domNode.style.width;
var _11=this;
if(lconn.core.widget.MenuLauncher._menu){
dijit.popup.close(lconn.core.widget.MenuLauncher._menu);
}
if(this.onBeforeOpen(_e)===true){
return;
}
dojo.addClass(this.activeNode,this.classActive);
dijit.popup.open({parent:this,popup:_f,around:this.domNode,orient:this.getOrient(),onExecute:function(){
_11._closeMenu(true);
},onCancel:function(){
_11._closeMenu(true);
},onClose:function(){
_11._delayEnd();
lconn.core.widget.MenuLauncher._menu=null;
_f.domNode.style.width=_10;
dijit.setWaiState(_f.domNode,"hidden","true");
if(_11.domNode){
dojo.removeClass(_11.activeNode,_11.classActive);
}
_11._opened=false;
_11.onClose();
}});
lconn.core.widget.MenuLauncher._menu=_f;
this._opened=true;
this.onOpen(_e);
},_closeMenu:function(_12){
this._delayEnd();
this._shouldBeOpen=false;
if(this._opened){
if(dojo.isIE){
setTimeout(dojo.hitch(this,"_closeMenuFinal",_12),0);
}else{
this._closeMenuFinal(_12);
}
}
},_closeMenuFinal:function(_13){
this._shouldBeOpen=false;
dijit.popup.close(this.menu);
if(_13){
dijit.focus(this.focusNode||this.domNode);
}
},getOrient:function(){
return this.isLeftToRight()?this.orient:this.orientRTL;
},_delayOpen:function(){
if(!this._opening){
this._delayEnd();
this._opening=setTimeout(dojo.hitch(this,"_openMenu","mouseover"),this.openDelay);
if(this.preloadDelay>0&&(!this.menu||!this.menu.isLoaded)){
this._preload=setTimeout(dojo.hitch(this,"_preloadMenu"),this.preloadDelay);
}
}
},_delayClose:function(){
if(!this._closing){
this._delayEnd();
this._closing=setTimeout(dojo.hitch(this,"_closeMenu",false),this.hideDelay);
}
},_delayEnd:function(){
try{
clearTimeout(this._opening);
}
catch(e){
}
try{
clearTimeout(this._closing);
}
catch(e){
}
try{
clearTimeout(this._preload);
}
catch(e){
}
this._closing=this._opening=this._preload=null;
},onBeforeOpen:function(_14){
return false;
},onOpen:function(_15){
if(_15=="click"&&!this.activateOnFocus){
this.focusMenu();
}
dijit.setWaiState(this.menu.domNode,"hidden","false");
},onClose:function(){
},focusMenu:function(){
var _16=this.menu;
if(_16.focus){
_16.focus();
}else{
_16._getFocusItems(_16.containerNode);
dijit.focus(_16._firstFocusItem);
}
}});
}

dojo.registerModulePath("com.ibm.lconn.gadget", "../com.ibm.lconn.gadget");

;if(!dojo._hasResource["com.ibm.lconn.gadget.container.Handle"]){
dojo._hasResource["com.ibm.lconn.gadget.container.Handle"]=true;
dojo.provide("com.ibm.lconn.gadget.container.Handle");
dojo.declare("com.ibm.lconn.gadget.container.Handle",null,{load:function(){
},unload:function(){
},refresh:function(){
if(this.getState()===com.ibm.lconn.gadget.container.Handle.LOADED){
this.unload();
this.load();
}
},getWidgetInfo:function(){
},getState:function(){
}});
dojo.mixin(com.ibm.lconn.gadget.container.Handle,{LOADING:"LOADING",LOADED:"LOADED",UNLOADED:"UNLOADED",ERROR:"ERROR",__factory__:function(_1,_2,_3){
}});
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.Accessor"]){
dojo._hasResource["com.ibm.lconn.gadget.container.Accessor"]=true;
dojo.provide("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container.Handle");
dojo.declare("com.ibm.lconn.gadget.container.Accessor",null,{getCommonContainer:function(){
},getIRuntime:function(){
}});
com.ibm.lconn.gadget.container.Accessor.__instance__=com.ibm.lconn.gadget.container.Accessor.__instance__||function(_1){
};
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.Topics"]){
dojo._hasResource["com.ibm.lconn.gadget.container.Topics"]=true;
dojo.provide("com.ibm.lconn.gadget.container.Topics");
com.ibm.lconn.gadget.container.Topics=(function(){
var _1={};
var _2="com/ibm/lconn/gadget/";
_1.GadgetWindow={};
_1.GadgetWindow.SITE_TOPIC_SET_TITLE="setTitle";
_1.GadgetWindow.AFTER_ADJUST_WIDTH="afterAdjustWidth";
_1.GadgetWindow.AFTER_ADJUST_HEIGHT="afterAdjustHeight";
_1.GadgetWindow.SET_PREFS="setPrefs";
_1.getSiteTopic=function(_3,_4){
return _2+"site/"+_3+"/"+_4;
};
_1.getLifecycleEventTopic=function(_5){
return _2+_5;
};
_1.getMasterLifecycleTopic=function(){
return _2+"lifecycle";
};
return _1;
})();
}


;if(!dojo._hasResource["lconn.core.util.jsonCompat"]){
dojo._hasResource["lconn.core.util.jsonCompat"]=true;
dojo.provide("lconn.core.util.jsonCompat");
var JSON;
if(!JSON){
JSON={};
}
(function(){
"use strict";
function f(n){
return n<10?"0"+n:n;
};
if(typeof Date.prototype.toJSON!=="function"){
Date.prototype.toJSON=function(_1){
return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null;
};
String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(_2){
return this.valueOf();
};
}
var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_3=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_4,_5,_6={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","\"":"\\\"","\\":"\\\\"},_7;
function _8(_9){
_3.lastIndex=0;
return _3.test(_9)?"\""+_9.replace(_3,function(a){
var c=_6[a];
return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);
})+"\"":"\""+_9+"\"";
};
function _a(_b,_c){
var i,k,v,_d,_e=_4,_f,_10=_c[_b];
if(_10&&typeof _10==="object"&&typeof _10.toJSON==="function"){
_10=_10.toJSON(_b);
}
if(typeof _7==="function"){
_10=_7.call(_c,_b,_10);
}
switch(typeof _10){
case "string":
return _8(_10);
case "number":
return isFinite(_10)?String(_10):"null";
case "boolean":
case "null":
return String(_10);
case "object":
if(!_10){
return "null";
}
_4+=_5;
_f=[];
if(Object.prototype.toString.apply(_10)==="[object Array]"){
_d=_10.length;
for(i=0;i<_d;i+=1){
_f[i]=_a(i,_10)||"null";
}
v=_f.length===0?"[]":_4?"[\n"+_4+_f.join(",\n"+_4)+"\n"+_e+"]":"["+_f.join(",")+"]";
_4=_e;
return v;
}
if(_7&&typeof _7==="object"){
_d=_7.length;
for(i=0;i<_d;i+=1){
if(typeof _7[i]==="string"){
k=_7[i];
v=_a(k,_10);
if(v){
_f.push(_8(k)+(_4?": ":":")+v);
}
}
}
}else{
for(k in _10){
if(Object.prototype.hasOwnProperty.call(_10,k)){
v=_a(k,_10);
if(v){
_f.push(_8(k)+(_4?": ":":")+v);
}
}
}
}
v=_f.length===0?"{}":_4?"{\n"+_4+_f.join(",\n"+_4)+"\n"+_e+"}":"{"+_f.join(",")+"}";
_4=_e;
return v;
}
};
if(typeof JSON.stringify!=="function"){
JSON.stringify=function(_11,_12,_13){
var i;
_4="";
_5="";
if(typeof _13==="number"){
for(i=0;i<_13;i+=1){
_5+=" ";
}
}else{
if(typeof _13==="string"){
_5=_13;
}
}
_7=_12;
if(_12&&typeof _12!=="function"&&(typeof _12!=="object"||typeof _12.length!=="number")){
throw new Error("JSON.stringify");
}
return _a("",{"":_11});
};
}
if(typeof JSON.parse!=="function"){
JSON.parse=function(_14,_15){
var j;
function _16(_17,key){
var k,v,_18=_17[key];
if(_18&&typeof _18==="object"){
for(k in _18){
if(Object.prototype.hasOwnProperty.call(_18,k)){
v=_16(_18,k);
if(v!==undefined){
_18[k]=v;
}else{
delete _18[k];
}
}
}
}
return _15.call(_17,key,_18);
};
_14=String(_14);
cx.lastIndex=0;
if(cx.test(_14)){
_14=_14.replace(cx,function(a){
return "\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4);
});
}
if(/^[\],:{}\s]*$/.test(_14.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){
j=eval("("+_14+")");
return typeof _15==="function"?_16({"":j},""):j;
}
throw new SyntaxError("JSON.parse");
};
}
}());
}

dojo.provide("com.ibm.social.gadget.nls.i18n")._built=true;
dojo.provide("com.ibm.social.gadget.nls.i18n.en");
com.ibm.social.gadget.nls.i18n.en={"This is a link to the profile of ${0}":"This is a link to the profile of ${0}","Photo of ${0}":"Photo of ${0}"};
dojo.registerModulePath("com.ibm.social.gadget", "../com.ibm.social.gadget");

;if(!dojo._hasResource["com.ibm.social.gadget.people.util.localizer"]){
dojo._hasResource["com.ibm.social.gadget.people.util.localizer"]=true;
dojo.provide("com.ibm.social.gadget.people.util.localizer");
dojo.require("dojo.i18n");
dojo.require("dojo.string");
dojo.requireLocalization("com.ibm.social.gadget","i18n");
(function(){
var _1=function(_2,_3){
var _4=dojo.i18n.getLocalization("com.ibm.social.gadget","i18n");
_1=function(_5,_6){
var _7=_4[_5];
return (_6)?dojo.string.substitute(_7,_6):_7;
};
return _1(_2,_3);
};
dojo.declare("",null,{constructor:function(){
dojo.i18n.getLocalization("com.ibm.social.gadget","i18n");
}});
dojo.declare("com.ibm.social.gadget.people.util.localizer",null,{getLocalizedString:function(_8,_9){
return _1(_8,_9);
}});
})();
}


;dojo.mixin(dojo.provide("lconn.core.config.services"),{"activities":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/activities","url":"http://www.ibm.com/developerworks/community/activities"},"blogs":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/blogs","url":"http://www.ibm.com/developerworks/community/blogs"},"bookmarklet":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections/bookmarklet","url":"http://www.ibm.com/developerworks/community/connections/bookmarklet"},"communities":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/groups","url":"http://www.ibm.com/developerworks/community/groups"},"deploymentConfig":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections","url":"http://www.ibm.com/developerworks/community/connections"},"files":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/files","url":"http://www.ibm.com/developerworks/community/files"},"forums":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/forums","url":"http://www.ibm.com/developerworks/community/forums"},"help":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/help","url":"http://www.ibm.com/developerworks/community/help"},"homepage":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/homepage","url":"http://www.ibm.com/developerworks/community/homepage"},"mediaGallery":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/news/widgets/lw","url":"http://www.ibm.com/developerworks/community/news/widgets/lw"},"microblogging":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections/opensocial","url":"http://www.ibm.com/developerworks/community/connections/opensocial"},"mobile":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/mobile","url":"http://www.ibm.com/developerworks/community/mobile"},"moderation":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/moderation","url":"http://www.ibm.com/developerworks/community/moderation"},"news":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/news","url":"http://www.ibm.com/developerworks/community/news"},"oauth":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections/oauth","url":"http://www.ibm.com/developerworks/community/connections/oauth"},"oauthprovider":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/oauth2","url":"http://www.ibm.com/developerworks/community/oauth2"},"opensocial":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections/opensocial","url":"http://www.ibm.com/developerworks/community/connections/opensocial"},"personTag":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/profiles/ibm_semanticTagServlet","url":"http://www.ibm.com/developerworks/community/profiles/ibm_semanticTagServlet"},"profiles":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/profiles","url":"http://www.ibm.com/developerworks/community/profiles"},"sand":{"secureEnabled":true},"search":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/search","url":"http://www.ibm.com/developerworks/community/search"},"webresources":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/connections/resources","url":"http://www.ibm.com/developerworks/community/connections/resources"},"wikis":{"secureEnabled":true,"secureUrl":"https://www.ibm.com/developerworks/community/wikis","url":"http://www.ibm.com/developerworks/community/wikis"}});


;if(!dojo._hasResource["com.ibm.social.gadget.people._vcard_utils"]){
dojo._hasResource["com.ibm.social.gadget.people._vcard_utils"]=true;
dojo.provide("com.ibm.social.gadget.people._vcard_utils");
dojo.require("com.ibm.social.gadget.people.util.localizer");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
com.ibm.social.gadget.people._vcard_utils=(function(){
var _1=dojo.declare("",[com.ibm.social.gadget.people.util.localizer],{finalize_plain_vcards:function(_2){
if(typeof lconn.core.config.services.profiles==="undefined"){
this.killLinks_(_2);
}else{
}
return _2;
},finalize_biz_vcards:function(_3){
if(typeof lconn.core.config.services.profiles==="undefined"){
this.killLinks_(_3);
}else{
dojo.query("a.fn",_3).forEach(function(_4){
_4.removeAttribute("title");
});
SemTagSvc.parseDom(null,_3);
}
return _3;
},killLinks_:function(_5){
dojo.query("a.fn",_5).forEach(function(_6){
_6.removeAttribute("href");
_6.removeAttribute("target");
_6.removeAttribute("title");
dojo.style(_6,{"textDecoration":"none","cursor":"default"});
});
},generateVcard:function(_7,_8,_9,_a){
_a=_a||{"inline":false};
var _b=lconn.core.url.getServiceUrl(lconn.core.config.services.profiles);
var _c=this.getLocalizedString("Photo of ${0}",[_8]);
var _d=this.getLocalizedString("This is a link to the profile of ${0}",[_8]);
var _e=_b+"/html/profileView.do?userid="+_7;
var _f=dojo.create("span",{className:"vcard"});
_f=dojo.place(_f,_9.refNode,_9.relPos);
var _10=dojo.create("a",{href:_e,title:_d,className:"fn url",target:this.linkTarget,innerHTML:_8},_f);
dojo.create("span",{className:"photo",src:_b+"/photo.do?userid="+_7,alt:_c,style:{display:"none"}},_10);
dojo.create("span",{className:"x-lconn-userid",style:{display:"none"},innerHTML:_7},_f);
if(_a.inline&&typeof window.SemTagSvc!=="undefined"){
return this.finalize_biz_vcards(_f);
}else{
return this.finalize_plain_vcards(_f);
}
}});
return new _1();
})();
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.people_container"]){
dojo._hasResource["com.ibm.lconn.gadget.services.people_container"]=true;
dojo.provide("com.ibm.lconn.gadget.services.people_container");
dojo.require("com.ibm.social.gadget.people._vcard_utils");
dojo.require("com.ibm.social.gadget.people.util.localizer");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
com.ibm.lconn.gadget.services.people_container=(function(){
var _1=dojo.declare("",[com.ibm.social.gadget.people.util.localizer],{generateVcard:function(_2,_3,_4){
var _5=lconn.core.url.getServiceUrl(lconn.core.config.services.profiles);
var _6=this.getLocalizedString("Photo of ${0}",[_3]);
var _7=this.getLocalizedString("This is a link to the profile of ${0}",[_3]);
var _8=_5+"/html/profileView.do?userid="+_2;
var _9=dojo.create("span",{className:"vcard"});
_9=dojo.place(_9,_4.refNode,_4.relPos);
var _a=dojo.create("a",{href:_8,title:_7,className:"fn url",target:this.linkTarget,innerHTML:_3},_9);
dojo.create("span",{className:"photo",src:_5+"/photo.do?userid="+_2,alt:_6,style:{display:"none"}},_a);
dojo.create("span",{className:"x-lconn-userid",style:{display:"none"},innerHTML:_2},_9);
return _9;
}});
return new _1();
})();
}

dojo.registerModulePath("com.ibm.social.sharebox", "../com.ibm.social.sharebox");

;if(!dojo._hasResource["com.ibm.social.sharebox._dialog_utils"]){
dojo._hasResource["com.ibm.social.sharebox._dialog_utils"]=true;
dojo.provide("com.ibm.social.sharebox._dialog_utils");
if(!com.ibm.social.sharebox._dialog_utils.getInstance){
dojo.mixin(com.ibm.social.sharebox._dialog_utils,(function(){
var _1;
function _2(){
return {close:function(){
},displayMessage:function(_3,_4){
},displayMessageHtml:function(_5,_6){
},shareAddActivityEntry:function(_7){
},setDirty:function(_8,_9){
},setSubmitState:function(_a){
},onClose:function(){
}};
};
return {getInstance:function(){
if(!_1){
_1=_2();
}
return _1;
}};
})());
}
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.resources.iRuntimeModule"]){
dojo._hasResource["com.ibm.lconn.gadget.resources.iRuntimeModule"]=true;
dojo.provide("com.ibm.lconn.gadget.resources.iRuntimeModule");
dojo.require("lconn.core.util.jsonCompat");
dojo.require("com.ibm.lconn.gadget.services.people_container");
dojo.require("com.ibm.social.sharebox._dialog_utils");
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.Views"]){
dojo._hasResource["com.ibm.lconn.gadget.container.Views"]=true;
dojo.provide("com.ibm.lconn.gadget.container.Views");
dojo.declare("com.ibm.lconn.gadget.container.Views",null,{registerCreateElementGadgetHandler:function(_1,_2,_3){
},registerCreateElementForEEHandler:function(_4,_5,_6){
},registerCreateElementForUrlHandler:function(_7,_8,_9){
}});
dojo.mixin(com.ibm.lconn.gadget.container.Views,{__instance__:function(){
}});
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.util.domStore"]){
dojo._hasResource["com.ibm.lconn.gadget.util.domStore"]=true;
dojo.provide("com.ibm.lconn.gadget.util.domStore");
com.ibm.lconn.gadget.util.domStore=(function(){
var _1=[0],_2="data-iContainer-data-"+ +new Date();
return function(_3){
var _4=dojo.attr(_3,_2),_5=_1.length;
if(!_4){
_4=_5;
dojo.attr(_3,_2,_5);
_1[_4]={};
}
return {get:function(_6){
return _1[_4][_6];
},set:function(_7,_8){
_1[_4][_7]=_8;
return _8;
}};
};
})();
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.ViewHandler"]){
dojo._hasResource["com.ibm.lconn.gadget.services.ViewHandler"]=true;
dojo.provide("com.ibm.lconn.gadget.services.ViewHandler");
dojo.require("com.ibm.lconn.gadget.util.domStore");
(function(_1,_2){
var _3="_____NULL_____";
var _4="data-iContainer-destroy-handler";
function _5(_6){
if(!_6||_6===""){
return _3;
}else{
return _6;
}
};
function _7(_8){
return _8.el_;
};
_1.declare("com.ibm.lconn.gadget.services.ViewHandler",null,{_registry:null,_handledMethod:null,constructor:function(_9){
this._registry={};
this._handledMethod=_9;
},registerHandler:function(_a,_b,_c){
_a=_5(_a);
var _d={"createHandler":_b,"destroyHandler":_c};
this._registry[_a]=_d;
},invokeCreate:function(_e,_f,_10){
_f=_5(_f);
var _11=this._registry,_12=_11[_f]||_11[_3];
_13=null;
if(_12){
var _13=_12.createHandler.apply(_e,_10);
_2(_13).set(_4,_12.destroyHandler);
return _13;
}else{
throw "Unknown view target for "+this._handledMethod+": "+_f;
}
}});
_1.mixin(com.ibm.lconn.gadget.services.ViewHandler,{invokeDestroy:function(_14,_15,_16){
var _17=_7(_15),_18=_2(_17).get(_4);
if(_18){
_18.apply(_14,_16);
}else{
throw "Could not find handler method";
}
}});
})(dojo,com.ibm.lconn.gadget.util.domStore);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.ViewContainer"]){
dojo._hasResource["com.ibm.lconn.gadget.services.ViewContainer"]=true;
dojo.provide("com.ibm.lconn.gadget.services.ViewContainer");
dojo.require("com.ibm.lconn.gadget.container.Views");
dojo.require("com.ibm.lconn.gadget.services.ViewHandler");
(function(_1,_2,_3){
var _4=_1.declare("com.ibm.lconn.gadget.services.ViewContainer",[_2],{_createForGadgetRegistry:null,_createForEERegistry:null,_createForUrlRegistry:null,_container:null,constructor:function(){
this._createForGadgetRegistry=new _3("createElementForGadget");
this._createForEERegistry=new _3("createElementForEmbeddedExperience");
this._createForUrlRegistry=new _3("createElementForUrl");
},registerCreateElementGadgetHandler:function(_5,_6,_7){
return this._createForGadgetRegistry.registerHandler(_5,_6,_7);
},registerCreateElementForEEHandler:function(_8,_9,_a){
return this._createForEERegistry.registerHandler(_8,_9,_a);
},registerCreateElementForUrlHandler:function(_b,_c,_d){
return this._createForUrlRegistry.registerHandler(_b,_c,_d);
},bindContainer:function(_e){
this._container=_e;
},createElementForGadget:function(_f,rel,_10,_11,_12,_13){
return this._createForGadgetRegistry.invokeCreate(this._container,_11,arguments);
},createElementForEmbeddedExperience:function(rel,_14,_15,_16,_17){
return this._createForEERegistry.invokeCreate(this._container,_15,arguments);
},createElementForUrl:function(rel,_18,_19,_1a){
return this._createForUrlRegistry.invokeCreate(this._container,_18,arguments);
},destroyElement:function(_1b){
return _3.invokeDestroy(this._container,_1b,arguments);
}});
var _1c=new _4();
_2.__instance__=function(){
return _1c;
};
})(dojo,com.ibm.lconn.gadget.container.Views,com.ibm.lconn.gadget.services.ViewHandler);
}

dojo.provide("com.ibm.lconn.gadget.nls.gadgetDialogStrings")._built=true;
dojo.provide("com.ibm.lconn.gadget.nls.gadgetDialogStrings.en");
com.ibm.lconn.gadget.nls.gadgetDialogStrings.en={"cancel":{"label":"Cancel","a11y":"Cancel","tooltip":"Cancel"}};

;dojo.cache("com.ibm.lconn.gadget", "services/dialog/templates/GadgetDialog.html", "<div id=\"${id}_dialog\" role=\"dialog\" aria-labelledby=\"${gadgetNodeId}_title\"> <div class=\"lotusDialogBorder\"> <div class=\"lotusDialog\"> <div class=\"lotusDialogHeader\"> <h1 dojoAttachPoint=\"titleNode\" id=\"${gadgetNodeId}_title\" class=\"lotusHeading\">${gadgettitle}</h1> <a class=\"lotusDialogClose\" href=\"javascript:;\" dojoAttachEvent=\"onclick:closeDialog\" title=\"${nlsCommon.rs_close}\"> <img alt=\"${nlsCommon.rs_close}\" src=\"${blankGif}\" /> <span class=\"lotusAltText\">${nlsCommon.rs_close}</span> </a> </div> <div class=\"lotusDialogContent\" id=\"${gadgetNodeId}\" dojoAttachPoint=\"gadgetNode\" style=\"padding-right:0px;padding-bottom:0px;overflow:auto;width:${gadgetwidth};height:${gadgetheight};\">gadget goes here</div> </div> </div></div>");

;if(!dojo._hasResource["com.ibm.lconn.gadget.services.dialog.GadgetDialog"]){
dojo._hasResource["com.ibm.lconn.gadget.services.dialog.GadgetDialog"]=true;
dojo.provide("com.ibm.lconn.gadget.services.dialog.GadgetDialog");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit.Dialog");
dojo.require("dojo.i18n");
dojo.require("com.ibm.lconn.gadget.container.Topics");
dojo.requireLocalization("com.ibm.lconn.gadget","gadgetDialogStrings");
dojo.requireLocalization("lconn.core","strings");
dojo.declare("com.ibm.lconn.gadget.services.dialog.GadgetDialog",[dijit._Widget,dijit._Templated],{blankGif:"",_extents:{"height":300,"width":700},nlsCommon:dojo.i18n.getLocalization("lconn.core","strings"),templatePath:dojo.moduleUrl("com.ibm.lconn.gadget","services/dialog/templates/GadgetDialog.html"),popup:null,_setExtentStyle:function(_1,_2){
var _3="gadget"+_1;
if((typeof (_2)!="undefined")&&(_2!=null)){
var _4=_2["modulePrefs"][_1];
if(_4!=0){
this._extents[_1]=_4;
}
}
this[_3]=this._extents[_1]+"px";
},constructor:function(_5){
var _6=function(_7,_8){
var _9="gadgettitle";
if(typeof _8!="undefined"){
var _a=_8["modulePrefs"]["title"];
this[_9]=_a!==""?_a:_7;
}else{
this[_9]=_7;
}
};
_6.apply(this,["Gadget Dialog",_5.gadget_metadata]);
this._setExtentStyle("width",_5.gadget_metadata);
this._setExtentStyle("height",_5.gadget_metadata);
this.inherited(arguments);
},postMixInProperties:function(){
this.blankGif=dojo.config.blankGif;
this.inherited(arguments);
this.nls=dojo.i18n.getLocalization("com.ibm.lconn.gadget","gadgetDialogStrings");
},postCreate:function(){
this._subscribeAll();
},_subscribeAll:function(){
var _b=com.ibm.lconn.gadget.container.Topics.getSiteTopic(this.gadgetNodeId,com.ibm.lconn.gadget.container.Topics.GadgetWindow.SITE_TOPIC_SET_TITLE);
this.subscribe(_b,"onGadgetTitleUpdated");
_b=com.ibm.lconn.gadget.container.Topics.getSiteTopic(this.gadgetNodeId,com.ibm.lconn.gadget.container.Topics.GadgetWindow.AFTER_ADJUST_WIDTH);
this.subscribe(_b,"onWidthUpdated");
_b=com.ibm.lconn.gadget.container.Topics.getSiteTopic(this.gadgetNodeId,com.ibm.lconn.gadget.container.Topics.GadgetWindow.AFTER_ADJUST_HEIGHT);
this.subscribe(_b,"onHeightUpdated");
_b=com.ibm.lconn.gadget.container.Topics.getLifecycleEventTopic(osapi.container.CallbackType.ON_RENDER);
this.subscribe(_b,"onGadgetLoaded");
},show:function(){
if(this.popup==null){
this.popup=new dijit.Dialog();
}
this.popup.attr({content:this.domNode,title:""});
this.popup.show();
},_updateStyles:function(){
this.popup.layout();
dojo.style(this.gadgetNode,"overflow",null);
var _c=dojo.style(this.popup.containerNode,"height");
var _d=dojo.style(this.popup.containerNode,"width");
if(_c<this._extents["height"]){
dojo.style(this.gadgetNode,"height","auto");
dojo.style(this.popup.containerNode,"height","auto");
if(!dojo.isIE){
if(dojo.isSafari){
dojo.style(this.gadgetNode,"height",this._extents.height+"px");
}else{
dojo.style(this.gadgetNode,"height","auto");
}
dojo.style(this.popup.containerNode,"overflow","visible");
}else{
dojo.style(this.popup.containerNode,"height",(this._extents.height+67)+"px");
dojo.style(this.popup.containerNode,"overflow","visible");
}
}
if(_d<this._extents["width"]){
dojo.style(this.popup.containerNode,"width","auto");
if(!dojo.isIE){
dojo.style(this.gadgetNode,"width","auto");
dojo.style(this.popup.containerNode,"overflow","visible");
}else{
dojo.style(this.popup.containerNode,"width",(this._extents.width+25)+"px");
dojo.style(this.popup.containerNode,"overflow","visible");
}
}
},hide:function(){
this.popup.hide();
},destroy:function(){
this.inherited(arguments);
},onGadgetTitleUpdated:function(_e){
this.titleNode.innerHTML=_e;
},onWidthUpdated:function(_f){
this._extents.width=dojo.style(dojo.query("iframe",this.gadgetNode)[0],"width");
this._updateStyles();
},onHeightUpdated:function(_10){
this._extents.height=dojo.style(dojo.query("iframe",this.gadgetNode)[0],"height");
this._updateStyles();
},onGadgetLoaded:function(_11,_12){
if(dojo.isIE&&_12==this.gadgetNodeId){
if(_12===this.gadgetNodeId){
var _13=dojo.query("iframe",dojo.byId(_12))[0];
if(dojo.attr(_13,"scrolling")=="no"){
dojo.attr(_13,"scrolling","auto");
var _14=_13.parentNode;
var _15=_14.innerHTML;
_14.removeChild(_13);
dojo.place(_15,_14);
}
}
}
dojo.style(dojo.query("iframe",this.gadgetNode)[0],"maxHeight","300px");
dojo.style(this.gadgetNode,{"height":"auto","width":"auto"});
this._updateStyles();
},closeDialog:function(){
this.hide();
}});
}

dojo.registerModulePath("dojox", "../dojox");

;if(!dojo._hasResource["dojox.uuid.generateRandomUuid"]){
dojo._hasResource["dojox.uuid.generateRandomUuid"]=true;
dojo.provide("dojox.uuid.generateRandomUuid");
dojox.uuid.generateRandomUuid=function(){
var _1=16;
function _2(){
var _3=Math.floor((Math.random()%1)*Math.pow(2,32));
var _4=_3.toString(_1);
while(_4.length<8){
_4="0"+_4;
}
return _4;
};
var _5="-";
var _6="4";
var _7="8";
var a=_2();
var b=_2();
b=b.substring(0,4)+_5+_6+b.substring(5,8);
var c=_2();
c=_7+c.substring(1,4)+_5+c.substring(4,8);
var d=_2();
var _8=a+_5+b+_5+c+d;
_8=_8.toLowerCase();
return _8;
};
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.util.specHelper"]){
dojo._hasResource["com.ibm.lconn.gadget.util.specHelper"]=true;
dojo.provide("com.ibm.lconn.gadget.util.specHelper");
dojo.require("lconn.core.url");
dojo.require("dojox.uuid.generateRandomUuid");
com.ibm.lconn.gadget.util.specHelper=(function(_1,_2){
var _3={},_4=dojo.global.location.toString(),_5=function(){
},_6=dojo.global;
var _7=function(_8){
if(_8){
if(dojo.isString(_8)){
return function(){
(_6[_8]||_5).apply(null,arguments);
};
}else{
return _8;
}
}else{
return _5;
}
};
var _9=_3.nextDomId=function(){
return "gadget_"+_2();
};
var _a=function(_b){
var _c=_b.placement;
if(_c&&!dojo.isString(_c)){
if(!_c.id){
_c.id=_9();
}
}
};
var _d=function(_e){
return (_e&&_e.instanceData&&_e.instanceData.renderType&&_e.instanceData.renderType==="inline");
};
var _f=_3.isGadget=function(_10){
return (_10&&_10.componentType&&_10.componentType==="gadget");
};
var _11=_3.isEEGadget=function(_12){
return (_f(_12)&&_12.instanceData&&_12.instanceData.eeDataModel);
};
var _13=_3.isInlineEE=function(_14){
return (_11(_14)&&_d(_14));
};
var _15=_3.isInlineGadget=function(_16){
return (_f(_16)&&_d(_16));
};
var _17=_3.normalizeWidgetSpec=function(_18){
var _19=null,_1a=null,_1b=null,_1c=null;
_18.definitionUrl=_1.parse(_4,_18.definitionUrl).toString();
_19=_18.instanceData||(_18.instanceData={});
if(_13(_18)){
throw "Inline EE gadgets are not permitted. Attempted to load: "+_18.definitionUrl;
}
if(_f(_18)){
_19=_18.instanceData||(_18.instanceData={});
if(dojo.config.isDebug){
_1a=_19.renderParams||(_19.renderParams={});
_1a[com.ibm.lconn.gadget.container.Container.RenderParam.TEST_MODE]=true;
}
}
_a(_18);
_19.errback=_7(_18.errback);
return _18;
};
var _1d=_3.cloneSpec=function(_1e){
if(!_1e){
return _1e;
}
var _1f={};
for(var key in _1e){
if(key==="placement"){
var val=_1e[key];
if(!dojo.isString(val)){
val=dojo.byId(val).id;
}
_1f[key]=val;
}else{
_1f[key]=_1e[key];
}
}
return _1f;
};
return _3;
})(lconn.core.url,dojox.uuid.generateRandomUuid);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.util.trace"]){
dojo._hasResource["com.ibm.lconn.gadget.util.trace"]=true;
dojo.provide("com.ibm.lconn.gadget.util.trace");
com.ibm.lconn.gadget.util.trace=(function(){
var _1={},_2=dojo.global,_3=null,_4=null;
if(!_2.console){
_4={log:function(){
}};
}else{
_4=console;
}
if(dojo.isFunction(_4.log)&&_4.log.apply){
_3=function(_5){
return dojo.hitch(_4,_4[_5]);
};
}else{
_3=function(_6){
return function(){
_4[_6](Array.prototype.slice.call(arguments));
};
};
}
dojo.forEach(["log","debug","warn","error"],function(_7){
if(_2.console&&(_7!=="debug"||dojo.config.isDebug===true)){
_1[_7]=(_4[_7])?_3(_7):_3("log");
}else{
_1[_7]=function(){
};
}
});
_1.entering=function(_8,_9,_a){
if(!_a){
_1.debug("ENTER: "+_8+"."+_9);
}else{
_1.debug("ENTER: "+_8+"."+_9);
}
};
_1.exiting=function(_b,_c,_d){
if(!_d){
_1.debug("EXITING: "+_b+"."+_c);
}else{
_1.debug("EXITING: "+_b+"."+_c);
}
};
_1.throwing=function(_e,_f,_10){
if(!_10){
_1.debug("THOWING: "+_e+"."+_f);
}else{
_1.debug("THOWING: "+_e+"."+_f+" -- ERROR: "+dojo.toJson(_10));
}
};
return _1;
})();
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.viewModifications"]){
dojo._hasResource["com.ibm.lconn.gadget.services.viewModifications"]=true;
dojo.provide("com.ibm.lconn.gadget.services.viewModifications");
dojo.require("com.ibm.lconn.gadget.container.Views");
dojo.require("com.ibm.lconn.gadget.services.ViewContainer");
dojo.require("com.ibm.lconn.gadget.services.dialog.GadgetDialog");
dojo.require("com.ibm.lconn.gadget.container.Topics");
dojo.require("com.ibm.lconn.gadget.util.specHelper");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("lconn.core.url");
com.ibm.lconn.gadget.services.viewModifications=(function(_1,_2){
var _3={};
var _4=com.ibm.lconn.gadget.container.Views.__instance__();
var _5=com.ibm.lconn.gadget.util.specHelper.nextDomId;
var _6=function(_7,_8){
var _9=osapi.container.GadgetSite.prototype[_7];
osapi.container.GadgetSite.prototype[_7]=function(){
_9.apply(this,arguments);
var _a=com.ibm.lconn.gadget.container.Topics.getSiteTopic(this.getId(),com.ibm.lconn.gadget.container.Topics.GadgetWindow[_8]);
dojo.publish(_a,arguments);
};
};
_3.registerService=function(_b){
var _c=_b.views;
_4.bindContainer(_b);
_c.createElementForGadget=dojo.hitch(_4,"createElementForGadget");
_c.createElementForEmbeddedExperience=dojo.hitch(_4,"createElementForEmbeddedExperience");
_c.createElementForUrl=dojo.hitch(_4,"createElementForUrl");
_c.destroyElement=dojo.hitch(_4,"destroyElement");
_b.rpcRegister("requestNavigateTo",function(_d,_e,_f,_10){
var _11=_d.gs;
var _12=_11.currentGadgetHolder_.gadgetInfo_.url;
var _13=_11.currentGadgetHolder_.renderParams_||{};
_13.view=_e;
var _14={};
if(_f){
if(dojo.isObject(_f)){
dojo.mixin(_14,_f);
}else{
if(dojo.isString(_f)){
dojo.mixin(_14,_1.splitQuery(_f));
}else{
_2.log("opt_params passed to gadgets.views.requestNavigateTo could not be processed.",_f);
}
}
}
_b.navigateGadget(_11,_12,_14,_13,null);
});
_6("setHeight","AFTER_ADJUST_HEIGHT");
_6("setWidth","AFTER_ADJUST_WIDTH");
};
_4.registerCreateElementGadgetHandler(null,_15,_16);
_4.registerCreateElementForEEHandler(null,_17,_16);
_4.registerCreateElementForUrlHandler(null,_18,_16);
function _15(_19,rel,_1a,_1b,_1c,_1d){
var _1e=_1a||"default";
var _1f=_1b||"default";
switch(_1f.toLowerCase()){
case "modaldialog":
return _20(this,true,_1e,true,_19);
break;
default:
return _20(this,true,_1e,true,_19);
}
};
function _17(rel,_21,_22,_23,_24){
return _20(this,true,"embedded",true);
};
function _18(rel,_25,_26,_27){
return _17.apply(this,arguments);
};
function _16(_28){
_29(this,_28);
};
function _20(_2a,_2b,_2c,_2d,_2e,_2f){
var _30=_5();
var _31={"id":"gadget_dialog_"+_30,"gadgetNodeId":_30,"gadget_metadata":_2e};
var _32=new com.ibm.lconn.gadget.services.dialog.GadgetDialog(_31);
_32.closeDialog=function(){
var _33=dojo.attr(dojo.query("#"+_30+">iframe")[0],"id");
_16.call(_2a,_2a.getGadgetSiteByIframeId_(_33));
};
_32.show();
return _32.gadgetNode;
};
function _29(_34,_35){
var _36=_35.el_.id;
var _37="gadget_dialog_"+_36;
_34.closeGadget(_35);
var _38=dijit.byId(_37);
if(_38){
_38.hide();
_38.destroyRecursive();
}
};
return _3;
})(lconn.core.url,com.ibm.lconn.gadget.util.trace);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.lifecycleModifications"]){
dojo._hasResource["com.ibm.lconn.gadget.services.lifecycleModifications"]=true;
dojo.provide("com.ibm.lconn.gadget.services.lifecycleModifications");
com.ibm.lconn.gadget.services.lifecycleModifications=(function(){
var _1={};
_1.registerService=function(_2){
var _3,_4,_5;
_3=com.ibm.lconn.gadget.container.Topics.getMasterLifecycleTopic();
_4={};
_5=function(_6,_7){
var _8=com.ibm.lconn.gadget.container.Topics.getLifecycleEventTopic(_6);
return function(){
dojo.publish(_8,arguments);
dojo.publish(_7,arguments);
};
};
for(var _9 in osapi.container.CallbackType){
_4[osapi.container.CallbackType[_9]]=_5(osapi.container.CallbackType[_9],_3);
}
_2.addGadgetLifecycleCallback("lconn_gadget_lifecycle_publisher",_4);
};
return _1;
})();
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.set_title"]){
dojo._hasResource["com.ibm.lconn.gadget.services.set_title"]=true;
dojo.provide("com.ibm.lconn.gadget.services.set_title");
dojo.require("com.ibm.lconn.gadget.container.Topics");
dojo.require("com.ibm.lconn.gadget.util.trace");
com.ibm.lconn.gadget.services.set_title=(function(_1){
var _2={};
var _3=function(_4,_5){
var _6,_7;
if(_4.gs&&_4.gs.id_){
var _8=com.ibm.lconn.gadget.container.Topics.getSiteTopic(_4.gs.id_,com.ibm.lconn.gadget.container.Topics.GadgetWindow.SITE_TOPIC_SET_TITLE);
dojo.publish(_8,[_5]);
_7=document.getElementById(_4.gs.id_);
if(_7.title){
_7.title=_5;
}
}else{
_1.log("looks like you're trying to set the title on an inline gadget, you need to use a better rpc call");
_1.log("try gadgets.rpc.call('', 'set_title', null, {'mid':__MODULE_ID__})");
}
};
_2.registerService=function(_9){
_9.rpcRegister("set_title",_3);
};
return _2;
})(com.ibm.lconn.gadget.util.trace);
}

dojo.provide("com.ibm.lconn.gadget.nls.iframeDialogStrings")._built=true;
dojo.provide("com.ibm.lconn.gadget.nls.iframeDialogStrings.en");
com.ibm.lconn.gadget.nls.iframeDialogStrings.en={"dialogTitle":"OAuth Authorization"};

;if(!dojo._hasResource["com.ibm.lconn.gadget.services.dialog.IframeDialog"]){
dojo._hasResource["com.ibm.lconn.gadget.services.dialog.IframeDialog"]=true;
dojo.provide("com.ibm.lconn.gadget.services.dialog.IframeDialog");
dojo.require("dijit.Dialog");
dojo.requireLocalization("com.ibm.lconn.gadget","iframeDialogStrings");
dojo.declare("com.ibm.lconn.gadget.services.dialog.IframeDialog",null,{nls:dojo.i18n.getLocalization("com.ibm.lconn.gadget","iframeDialogStrings"),_w:500,_h:500,_url:"",_ifElement:null,_dialog:null,_wRegex:/width=(\d+)/,_hRegex:/height=(\d+)/,isAuto:null,constructor:function(_1,_2,_3){
this._url=_1;
this.isAuto=_3;
if(_2){
var _4,_5;
if(_4=_2.match(this._wRegex)){
this._w=_4[1];
}
if(_5=_2.match(this._hRegex)){
this._h=_5[1];
}
}
},init:function(_6,_7){
if(!this._dialog){
var _8=this._dialog=new dijit.Dialog({title:this.nls.dialogTitle,"class":"lcSharebox"});
var _9=document.createElement("div");
var _a="<iframe";
if(_6){
_a+=" id='"+_6+"'";
_a+=" name='"+_6+"'";
}
_a+="></iframe>";
_9.innerHTML=_a;
var _b=this._ifElement=_9.firstChild;
if(_7){
dojo.attr(_8.containerNode,"id",_7);
}
dojo.attr(_b,"src",this._url);
if(this._w){
_b.style.width=this._w+"px";
}
if(this._h){
_b.style.height=this._h+"px";
}
_8.attr("content",_b);
dojo.connect(_8,"onHide",this,"onClose");
}
},show:function(){
this._dialog.show();
},getWindow:function(){
return this._ifElement.contentWindow;
},hide:function(){
this._dialog.hide();
},destroy:function(){
this._dialog.destroyRecursive(false);
},onClose:function(){
}});
}

dojo.provide("com.ibm.social.ee.nls.socialEEStrings")._built=true;
dojo.provide("com.ibm.social.ee.nls.socialEEStrings.en");
com.ibm.social.ee.nls.socialEEStrings.en={"size":{"B":"${0} B","GB":"${0} GB","MB":"${0} MB","KB":"${0} KB"},"REPLIES_SUBMITTED":{"CONFIRM":"Your reply has been submitted for review and will be available when approved."},"DOWNLOAD_INFO":{"COUNT_SHORT":"${0}-${1}","PAGE":"Page","COUNT":"${0}-${1} of ${2}","ITEMS_PER_PAGE":" items per page.","ELLIPSIS":"...","SHOW_PEOPLE":"See who has downloaded...","NEXT":"Next","NEXT_TOOLTIP":"Next page","PREVIOUS":"Previous","VERSION":{"MONTH":"Version ${version} on ${date}","TODAY":"Version ${version} at ${time}","YESTERDAY":"Version ${version} yesterday","DAY":"Version ${version} on ${date}","YEAR":"Version ${version} on ${date}"},"PREVIOUS_TOOLTIP":"Previous page","FILE":{"ERROR":"Unable to load download information","V_LATEST":"You have downloaded the latest version of this file","V_OLDER":"You last downloaded version ${0} of this file","LOADING":"Loading...","EMPTY":"Anonymous users only"},"SHOW":"Show"},"EE_DIALOG":{"CONFIRM_CLOSE_MESSAGE":"Are you sure you want to abandon your changes? Press OK to continue or Cancel to return","TITLE_NI":"${author} invited you to join their network.","ERROR_MSG_GENERIC":"Something went wrong.  Please try again.","ERROR_MSG_CONTENT_NOT_AVAILABLE":"The content for this item is not available.","AUTHOR_TITLE":"View profile for ${author}","ERROR":"Error","ERROR_MSG_NOT_AVAILABLE":"This item has been deleted or is no longer available.","TITLE_SU":"${author} posted a message.","ERROR_MSG_NO_ACCESS":"You no longer have access to this item.","OPEN_LINK":"Open ${title}","CONFIRM_CLOSE_TITLE":"Confirm","ERROR_ALT_TEXT":"Error:","CANCEL":"Cancel","OK":"Ok","LOADING":"Loading..."},"COMMENTS_SUBMITTED":{"OK":"OK","CONFIRM":"Your comment has been submitted for review and will be available when approved.","DIALOG_TITLE":"Submission Confirmation"},"FILE_SHARE_INFO":{"ADD":"Add","READERS_LABEL":"Readers:\xa0","SHARE_WITH":"Share with:","COMMUNITY":"a Community","A11Y_READER_REMOVED":"Removed ${0} as a reader","READER_IF_PUBLIC":"Everyone (public)","INFO_SUCCESS":"The file was shared successfully.","ADD_TXT":"Add people or communities as readers","PLACEHOLDER":"Person name or email...","PERSON":"a Person","SHOW_MORE":"Show more...","SELECT_USER_ERROR":"You must select at least one person or community to share with","EDITORS_LABEL":"Editors:\xa0","EMPTY_READERS":"None","NOT_LOGGED_IN_ERROR":"The file was not shared because you were not logged in.  Click \'Share\' to share the file.","TRIM_LONG_MESSAGE":"Shorten message?","SELF_REFERENCE_ERROR":"You cannot share with yourself.","TOOLTIP":"Give others access to this file","CANCEL_ERROR":"The file was not shared because the request was cancelled.  Click \'Share\' to try again.","ERROR_SHARING":"The file could not be shared.  Please try again later.","MESSAGE":"Message:","OWNER_REFERENCE_ERROR":"You cannot share with the owner of the file.","VISIBILITY_RESTRICTION_ERROR_SHARE":"A file that is restricted may not be made public.","OWNER_LABEL":"Owner:\xa0","ERROR":"Unable to load share information","TIMEOUT_ERROR":"The file was not shared because the server could not be contacted.  Click \'Share\' to try again.","A11Y_READER_ADDED":"Selected ${0} as a reader","READER_IF_PUBLIC_TOOLTIP":"This file is public and visible to everyone","MESSAGE_TXT":"Add an optional message","MAX_SHARES_ERROR":"The maximum number of shares has been exceeded.","REMOVE_ITEM_ALT":"Remove ${0}","CANCEL":"Cancel","NO_MEMBERS":"None","SHARE_COMMUNITY_WARN":"Sharing with the public community \'${0}\' will make this file public.","WARN_LONG_MESSAGE":"The message is too long.","ACCESS_DENIED_ERROR":"You no longer have permission to share this file.","ERROR_NOT_FOUND":"The file you have requested has been deleted or moved. If someone sent you this link, check that it is correct.","NOT_FOUND_ERROR":"The file has been deleted or is no longer visible to you and cannot be shared.","ERROR_ACCESS_DENIED":"You do not have permission to view this file.  The file is not public and is not shared with you.","SHARE":"Share"},"repost":{"title":"Repost this update to my followers or communities","msg_generic":"Something went wrong.  Please try again.","name":"Repost","msg_success":"The update was successfully reposted to your followers."},"authUser":{"error_403":"You do not have permission to retrieve user information.","error":"An error occurred retrieving the current user.  ${again}.","error_404":"Unable to find authenticated user.","error_again":"Please try again"},"COMMENTS_DELETE":{"DIALOG_TITLE":"Delete Comment","CANCEL":"Cancel","TOOLTIP":"Delete Comment","NAME":"Delete Comment","OK":"OK"},"generic":{"visibility":{"pub":"Public","priv":"Private"},"comments":"Comments","untitled":"(Untitled)","action":{"created":"Created","updated":"Updated"},"timestamp":{"created":{"MONTH":"Created ${MMM} ${d}","TODAY":"Created today at ${time}","YESTERDAY":"Created yesterday at ${time}","DAY":"Created ${EEEE} at ${time}","TOMORROW":"Created ${MMM} ${d}, ${YYYY}","YEAR":"Created ${MMM} ${d}, ${YYYY}"},"updated":{"MONTH":"Updated ${MMM} ${d}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${EEEE} at ${time}","TOMORROW":"Updated ${MMM} ${d}, ${YYYY}","YEAR":"Updated ${MMM} ${d}, ${YYYY}"}},"error":"Unable to retrieve data.","tags":"Tags:","tags_more":"and ${0} more","titleTooltip":"Navigate to ${app}","likes":"Likes"},"statusUpdate":{"notifications":{"POST_COMMENT":"${user} wrote:","USER_BOARD_POST":"${user} wrote on your board","STATUS_UPDATE":"${user} posted a message"},"error":"An error occurred.  ${again}.","error_again":"Please try again","error_404":"The status update no longer exists.","createdCompact":{"MONTH":"Created: ${MMM} ${d}","TODAY":"Created: Today at ${time}","YESTERDAY":"Created: Yesterday at ${time}","DAY":"Created: ${EEEE} at ${time}","TOMORROW":"Created: ${MMM} ${d}, ${YYYY}","YEAR":"Created: ${MMM} ${d}, ${YYYY}"}},"VERSIONS":{"REVERT_DESCRIPTION":"Restored from version ${0}","ERROR_REQUEST_UNKNOWN":"An unknown error has occurred.","DELETE_VERSION_SINGLE":"Delete version ${0}","ERROR_REQUEST_CANCELLED":"The request was canceled.","COUNT_SHORT":"${0}-${1}","PAGE":"Page","ITEMS_PER_PAGE":" items per page.","ELLIPSIS":"...","NEXT_TOOLTIP":"Next page","CREATE_VERSION_TOOLTIP":"Create a version of this file","CONTENT":{"DOWNLOAD":"Download","VIEW_TOOLTIP":"View version ${0}","REVERT":{"WIDGET":"Restore this version","A11Y":"This button opens a dialog that allows the user to confirm restoring a file from a previous version. Confirming this action will result in a refresh of the contents on the page.","FULL":"Restore"},"DOWNLOAD_TOOLTIP":"Download this version (${0})","VIEW":"View","DELETE_TOOLTIP":"Delete version ${0}"},"NO_VERSIONS":"There are no versions","ERROR_REQUEST_TIMEOUT":"The server could not be contacted.","PREVIOUS_TOOLTIP":"Previous page","LOADING":"Loading ..","DELETEERROR":"The version was not deleted due to an error.","REVERT_VERSION":"Restore version ${0}","REVERT":{"GENERIC_ERROR":"The version could not be restored because of an unknown error.  Click \'Restore\' again to try your request again.","ERROR_CANCEL":"The version was not restored because the request was canceled.  Click \'Restore\' again to try your request again.","ERROR_QUOTA_VIOLATION":"The version could not be restored because of space restrictions.","ERROR_MAX_CONTENT_SIZE":"The version could not be restored because it is larger than the maximum allowed file size of ${0}","ERROR_NAME_EXISTS":"The version could not be restored because another file has the same name.","ERROR_TIMEOUT":"The version was not restored because the server could not be contacted.  Click \'Restore\' again to try your request again.","ERROR_NOT_FOUND":"The version could not be restored because it has been deleted or is no longer visible to you.","ERROR_ACCESS_DENIED":"The version could not be restored because you are not an editor."},"ERROR":"Unable to load version information.","DELETE":{"GENERIC_ERROR":"The version could not be deleted because of an unknown error.  Click \'Delete\' again to try your request again.","ERROR_CANCEL":"The version was not deleted because the request was canceled.  Click \'Delete\' again to try your request again.","A11Y":"This button opens a dialog that allows the user to confirm the deletion of this version. Confirming this action will result in a refresh of the contents on the page.","ERROR_TIMEOUT":"The version was not deleted because the server could not be contacted.  Click \'Delete\' again to try your request again.","FULL":"Delete","ERROR_NOT_LOGGED_IN":"You must be logged in to delete this version.  Click \'Delete\' to be prompted to log in.","ERROR_NOT_FOUND":"The version could not be deleted because it has been already deleted or is no longer visible to you.","ERROR_ACCESS_DENIED":"The version could not be deleted because you are not an editor."},"DELETE_ALL":"Delete all versions prior to version","INFO":"Version ${0} created ${1} by ","DATE":{"RELATIVE_TIME":{"MONTH":"${date}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${date}","YEAR":"${date_long}","FULL":"${date_long} ${time_long}"},"UPDATED":{"MONTH":"Updated ${date_short}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${EEee} at ${time}","YEAR":"Updated ${date_short}","FULL":"${EEEE}, ${date_long} ${time_long}"},"AM":"AM","RELATIVE_TIME_L":{"MONTH":"${date_short} at ${time}","TODAY":"today at ${time}","YESTERDAY":"yesterday at ${time}","DAY":"${EEee} at ${time}","YEAR":"${date_short} at ${time}","FULL":"${EEEE}, ${date_long} ${time_long}"}},"COUNT":"${0}-${1} of ${2}","VERSION_NUMBER":"Version ${0}","NEXT":"Next","CREATE_VERSION":"Create a new version","PREVIOUS":"Previous","DELETED":"Deleted","SHOW":"Show"},"forum":{"attachments":"${count} Attachments","error_403":"You do not have permission to view this forum. The forum is not public and is not shared with you.","error_404":"The forum no longer exists or you do not have sufficient permissions to access it.","QUESTION_NOT_ANSWERED":"This question has not been answered yet.","QUESTION_ANSWERED":"This question has been answered.","attachments_one":"${count} Attachment","error":"An error occurred.  ${again}.","error_again":"Please try again","readMore":"View full topic...","readMore_a11y":"Activating this link will open the ${name} forum topic in a new window.","readMore_tooltip":"Open the ${name} forum topic."},"blog":{"error_403":"You do not have permission to view this blog. The blog is not public and is not shared with you.","error_404":"The blog no longer exists or you do not have sufficient permissions to access it.","error":"An error occurred.  ${again}.","error_again":"Please try again","graduated":"Graduated","vote":{"LOADING":"Loading...","INLINE":{"UNRECOMMENDED":{"TEXT":"\x3ca class=\'lotusLikeAction\' role=\'button\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eVote\x3c/a\x3e","READONLYTEXT":"","TOOLTIP":"Vote for this"},"RECOMMENDED_BYMANY":{"TEXT":"${recommendCount}","READONLYTEXT":"${recommendCount}","TOOLTIP":"${recommendCount} voted for this"},"RECOMMENDED_BYONE":{"TEXT":"${recommendCount}","READONLYTEXT":"${recommendCount}","TOOLTIP":"1 person voted for this"},"RECOMMENDED":{"TEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eVoted\x3c/span\x3e \x3cspan class=\'lotusDivider\' role=\'presentation\'\x3e-\x3c/span\x3e \x3ca class=\'lotusLikeActions\' role=\'button\' aria-label=\'Voted - Undo\' href=\'javascript:;\' id=\'TOGGLE_${id}\'\x3eUndo\x3c/a\x3e","READONLYTEXT":"\x3cspan class=\'lotusLikeDescription\'\x3eVoted\x3c/span\x3e","TOOLTIP":"Remove your vote from this"},"RECOMMENDED_BYNONE":{"TEXT":"${recommendCount}","READONLYTEXT":"${recommendCount}","TOOLTIP":"0 people voted for this"}},"TEMPLATE_STRINGS":{"LIKES":"Voted"}},"readMore":" Read more ...","readMore_a11y":"Activating this link will open the ${name} blog entry in a new window.","readMore_tooltip":"Open the ${name} blog entry."},"MESSAGE":{"SUCCESS":"Confirmation","HIDE_DETAILS":"Hide details","MORE_DETAILS":"More details","ERROR":"Error","ERROR_ALT_TEXT":"Error:","DISMISS":"Hide this message","WARNING":"Warning","INFO":"Information"},"REPLIES":{"SHOW_FULL_REPLY_TOOLTIP":"Navigate to the original reply in the forum topic","PREV_COMMENTS":"Show more replies","ADD_COMMENT":"Reply to this topic","REPLY_TITLE":"Re: ${0}","ERROR_CREATE_CANCEL":"Your reply could not be saved because the request was canceled.  Click \'Save\' to try again.","ERROR_CREATE_NOT_FOUND":"Your reply could not be saved because the topic has been deleted or is no longer visible to you.","ERROR_CREATE_ACCESS_DENIED":"Your reply could not be saved because the topic has been deleted or is no longer visible to you.","REPLY_ACTION":"Reply","THIS_TAB_TITLE":"This Reply","ERROR_NO_CONTENT":"Enter your reply and click \'Save.\'  If you no longer want to leave a reply click \'Cancel.\'","NAVIGATE_TO_REPLY":"Navigate to the parent reply","WARN_LONG_COMMENT":"The reply is too long.  ${shorten}","NAVIGATE_TO_TOPIC":"Navigate to the parent topic","REPLY_TO_REPLY":"In reponse to ${thisReply}","SHOW_FULL_REPLY":"View full reply","SHOWING_RECENT_REPLIES":"Showing ${0} most recent replies","MODERATION_PENDING":"This reply is pending review.","REPLY_TO_TOPIC":"In response to ${thisTopic}","PLACEHOLDER_TXT":"Reply to this topic","ADD_COMMENT_TOOLTIP":"Reply to this forum topic","MODERATION_REMOVED":{"MONTH":"This reply was removed by ${user} on ${MMM} ${d}.","TODAY":"This reply was removed by ${user} today at ${time}.","YESTERDAY":"This reply was removed by ${user} yesterday at ${time}.","DAY":"This reply was removed by ${user} on ${EEEE} at ${time}.","TOMORROW":"This reply was removed by ${user} on ${MMM} ${d}, ${YYYY}.","YEAR":"This reply was removed by ${user} on ${MMM} ${d}, ${YYYY}."},"ERROR":"An error has occurred while retrieving the replies. ${again}","THIS_REPLY":"this reply","ERROR_CREATE_NOT_LOGGED_IN":"You must be logged in to create this reply.  Click \'Save\' to be prompted to log in.","ERROR_UNAUTHORIZED":"Your reply could not be saved because you are not authorized to leave a reply.","EMPTY":"There are no replies.","THIS_TOPIC":"this topic","TAB_TITLE":"Replies (${0})","REPLY_ACTION_TOOLTIP":"Reply to this post","ERROR_CREATE":"Your reply could not be saved.  Try again later.","ERROR_CREATE_TIMEOUT":"Your reply could not be saved because the server could not be contacted.  Click \'Save\' to try again.","MODERATION_REJECTED":{"MONTH":"This reply was rejected by ${user} on ${MMM} ${d}.","TODAY":"This reply was rejected by ${user} today at ${time}.","YESTERDAY":"This reply was rejected by ${user} yesterday at ${time}.","DAY":"This reply was rejected by ${user} on ${EEEE} at ${time}.","TOMORROW":"This reply was rejected by ${user} on ${MMM} ${d}, ${YYYY}.","YEAR":"This reply was rejected by ${user} on ${MMM} ${d}, ${YYYY}."},"TRIM_LONG_COMMENT":"Shorten reply?","COMMENT_DELETED":{"MONTH":"Reply deleted by ${user} on ${MMM} ${d}","TODAY":"Reply deleted by ${user} today at ${time}","YESTERDAY":"Reply deleted by ${user} yesterday at ${time}","DAY":"Reply deleted by ${user} on ${EEEE} at ${time}","TOMORROW":"Reply deleted by ${user} on ${MMM} ${d}, ${YYYY}","YEAR":"Reply deleted by ${user} on ${MMM} ${d}, ${YYYY}"},"MODERATION_QUARANTINED":"The post has been quarantined by the moderator.","REASON_FOR_DELETION":"Reason for deletion: ${reason}"},"login":{"error":"Your user name and/or password does not match any existing accounts. Please try again.","logIn":"Log In","welcome":"Login to IBM Connections","user":"User name:","password":"Password:"},"common":{"ERROR_ALT":"Error","tags_more":"and ${0} more","inactiveIndicator":"(inactive)","more":{"label":"More","tooltip":"More Actions"},"inactiveUser":"${user} (inactive)","PERSON_TITLE":"Open the profile of ${user}."},"DATE":{"RELATIVE_TIME":{"MONTH":"${date_short}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","TOMORROW":"${date_short}","DAY":"${EEee} at ${time}","YEAR":"${date_short}","FULL":"${EEEE}, ${date_long} ${time_long}"},"ADDED":{"MONTH":"Added ${date_long}","TODAY":"Added today at ${time}","YESTERDAY":"Added yesterday at ${time}","DAY":"Added ${EEee} at ${time}","YEAR":"Added ${date_long}","FULL":"${EEEE}, ${date_long} ${time_long}"},"TODAY":"today","YESTERDAY":"yesterday","COMPACT":{"MONTH":"${date_short}","TODAY":"Today","YESTERDAY":"Yesterday","TOMORROW":"Tomorrow","DAY":"${EEee}","YEAR":"${date_short}","FULL":"${EEEE}, ${date_long} ${time_long}"},"AM":"AM","FULL":"${EEEE}, ${date_long} ${time_long}","LAST_UPDATED":{"MONTH":"Last updated ${date_long}","TODAY":"Last updated today at ${time}","YESTERDAY":"Last updated yesterday at ${time}","DAY":"Last updated ${EEee} at ${time}","YEAR":"Last updated ${date_long}","FULL":"${EEEE}, ${date_long} ${time_long}"},"TODAY_U":"Today","YESTERDAY_U":"Yesterday","UPDATED":{"MONTH":"Updated ${date_long}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${EEee} at ${time}","YEAR":"Updated ${date_long}","FULL":"${EEEE}, ${date_long} ${time_long}"},"RELATIVE_TIME_LONG":{"MONTH":"${date_long}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","TOMORROW":"${date_long}","DAY":"${EEee} at ${time}","YEAR":"${date_long}","FULL":"${EEEE}, ${date_long} ${time_long}"},"DATE_ONLY":{"MONTH":"${date_short}","TODAY":"${date_short}","YESTERDAY":"${date_short}","TOMORROW":"${date_short}","DAY":"${date_short}","YEAR":"${date_short}","FULL":"${EEEE}, ${date_long}"},"PM":"PM","MONTHS_ABBR":{"11":"DEC","0":"JAN","1":"FEB","2":"MAR","3":"APR","4":"MAY","5":"JUN","6":"JUL","7":"AUG","8":"SEP","9":"OCT","10":"NOV"},"DATE_TIME":{"MONTH":"${date_short} at ${time}","TODAY":"${date_short} at ${time}","YESTERDAY":"${date_short} at ${time}","TOMORROW":"${date_short} at ${time}","DAY":"${date_short} at ${time}","YEAR":"${date_short} at ${time}","FULL":"${EEEE}, ${date_long} ${time_long}"},"TIME_ONLY":{"MONTH":"${time}","TODAY":"${time}","YESTERDAY":"${time}","TOMORROW":"${time}","DAY":"${time}","YEAR":"${time}","FULL":"${time_long}"}},"network":{"friendsInviteUpdatesDescription":"Receive updates about people you are following on the Home page and in an email summary.","error_404":"The network request no longer exists.","profile_title":"Open the profile of ${user}.","timestamp":{"created":{"MONTH":"${MMM} ${d}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${EEEE} at ${time}","TOMORROW":"${MMM} ${d}, ${YYYY}","YEAR":"${MMM} ${d}, ${YYYY}"}},"error":"An error occurred.  ${again}.","error_again":"Please try again","messages":{"error":{"accept":"There was an error accepting the request.","ignore":"There was an error ignoring the request."},"success":{"accept":{"follow":"You are now network contacts and following ${user}.","nofollow":"You are now network contacts."},"ignore":{"follow":"You have ignored the invitation but are now following ${user}.","nofollow":"You have ignored the invitation."}}},"warning":"Warning","profile_a11y":"Activating this link will open the profile of ${user} in a new window."},"HISTORY":{"PROFILE_TITLE":"Open the profile of ${user}.","ERROR_ADDTL":"An error occurred while retrieving additional updates. ${again}","ERROR_AGAIN_TITLE":"Try the request again for more updates.","ERROR_ALT":"Error","SORTS":{"DATE_TOOLTIP_REVERSE":"Sort from least recent history to most recent updates","DATE_TOOLTIP":"Sort from most recent history to least recent updates","DATE":"Date"},"MORE":"Show Previous Updates","TIMESTAMP":{"CREATED":{"MONTH":"${MMM} ${d}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${EEEE} at ${time}","TOMORROW":"${MMM} ${d}, ${YYYY}","YEAR":"${MMM} ${d}, ${YYYY}"}},"SORT_BY":"Sort by:","ERROR":"An error has occurred while retrieving the updates. ${again}","ERROR_AGAIN":"Try again.","EMPTY":"Could not retrieve recent updates for this item. It has been deleted or you no longer have access to it.","TAB_TITLE":"Recent Updates"},"COMMENTS":{"PREV_COMMENTS":"Show previous comments","ADD_COMMENT":"Add a Comment","DIALOG_TITLE":"Shorten Comment","ERROR_EDIT":"Your comment could not be updated.  Try again later.","PROFILE_TITLE":"Open the profile of ${user}.","ERROR_EDIT_TIMEOUT":"Your comment could not be updated because the server could not be contacted.  Click \'Post\' to try again.","FLAG_ITEM":{"ERROR_SAVING":"There was an error with processing the request. Try again later.","DESCRIPTION_LABEL":"Provide a reason for flagging this item (optional)","ACTION":"Flag as Inappropriate","SUCCESS_SAVING":"Your flag has been submitted. A moderator will investigate shortly.","TITLE":"Flag this item as inappropriate","BUSY":"Saving...","CANCEL":"Cancel","OK":"Save","EDITERROR":"The file\'s metadata was not edited due to an error","COMMENT":{"TITLE":"Flag this comment as inappropriate","A11Y":"This button opens a dialog that allows the user to flag this comment as inappropriate."}},"ERROR_CREATE_CANCEL":"Your comment could not be saved because the request was canceled.  Click \'Post\' to try again.","EDIT":"Edit","NAME":"Shorten Comment","DELETE_CONFIRM":"Are you sure you want to delete this comment?","ERROR_NO_CONTENT":"Enter your comment and click \'Post.\'  If you no longer want to leave a comment click \'Cancel.\'","WARN_LONG_COMMENT":"The comment is too long.  ${shorten}","ERROR_NO_CONTENT_EDIT":"Enter your comment and click \'Post.\'  If you no longer want to edit your comment click \'Cancel.\'","ERROR_EDIT_ACCESS_DENIED":"Your comment could not be updated because the item has been deleted or is no longer visible to you.","ERROR_EDIT_NOT_FOUND":"Your comment could not be updated because the item has been deleted or is no longer visible to you.","ARIA_LABEL":"Comments","COMMENT_CREATED_NOVERSION":{"MONTH":"${user} ${MMM} ${d}","TODAY":"${user} today at ${time}","YESTERDAY":"${user} yesterday at ${time}","DAY":"${user} ${EEEE} at ${time}","TOMORROW":"${user} ${MMM} ${d}, ${YYYY}","YEAR":"${user} ${MMM} ${d}, ${YYYY}"},"POST":"Post","ERROR_AGAIN_TITLE":"Try the request again for more comments.","ERROR_ADDTL":"An error occurred while retrieving additional comments. ${again}","SUBSCRIBE_TO_COMMENTS":"Subscribe to these comments","ADD_COMMENT_TOOLTIP":"Add a comment to this item","MODERATION_REMOVED":{"MONTH":"This comment was removed by ${user} on ${MMM} ${d}.","TODAY":"This comment was removed by ${user} today at ${time}.","YESTERDAY":"This comment was removed by ${user} yesterday at ${time}.","DAY":"This comment was removed by ${user} on ${EEEE} at ${time}.","TOMORROW":"This comment was removed by ${user} on ${MMM} ${d}, ${YYYY}.","YEAR":"This comment was removed by ${user} on ${MMM} ${d}, ${YYYY}."},"ERROR_AGAIN":"Try again.","COMMENT_EDITED":{"MONTH":"${user} edited ${MMM} ${d} (version ${version})","TODAY":"${user} edited today at ${time} (version ${version})","YESTERDAY":"${user} edited yesterday at ${time} (version ${version})","DAY":"${user} edited ${EEEE} at ${time} (version ${version})","TOMORROW":"${user} edited ${MMM} ${d}, ${YYYY} (version ${version})","YEAR":"${user} edited ${MMM} ${d}, ${YYYY} (version ${version})"},"DELETE":"Delete","EMPTY":"There are no comments.","EDIT_TOOLTIP":"Edit comment","DELETEREASON":"Reason for deleting this comment:","COMMENT_COUNT_MANY":"${0} comments","ERROR_ALT":"Error","ERROR_CREATE":"Your comment could not be saved.  Try again later.","ERROR_CREATE_TIMEOUT":"Your comment could not be saved because the server could not be contacted.  Click \'Post\' to try again.","ERROR_EDIT_NOT_LOGGED_IN":"You must be logged in to edit this comment.  Click \'Post\' to be prompted to log in.","ERROR_DELETE_NOT_FOUND":"Your comment could not be deleted because the comment or item has been deleted or is no longer visible to you.","ERROR_DELETE_ACCESS_DENIED":"Your comment could not be deleted because the item has been deleted or is no longer visible to you.","ACTION_NOT_SUPPORTED":"Unsupported Action","COMMENT_EDITED_NOVERSION":{"MONTH":"${user} edited ${MMM} ${d}","TODAY":"${user} edited today at ${time}","YESTERDAY":"${user} edited yesterday at ${time}","DAY":"${user} edited ${EEEE} at ${time}","TOMORROW":"${user} edited ${MMM} ${d}, ${YYYY}","YEAR":"${user} edited ${MMM} ${d}, ${YYYY}"},"YES":"Yes","SUBSCRIBE_TO_COMMENTS_TOOLTIP":"Follow changes to these comments through your feed reader","COMMENT_CREATED":{"MONTH":"${user} ${MMM} ${d} (version ${version})","TODAY":"${user} today at ${time} (version ${version})","YESTERDAY":"${user} yesterday at ${time} (version ${version})","DAY":"${user} ${EEEE} at ${time} (version ${version})","TOMORROW":"${user} ${MMM} ${d}, ${YYYY} (version ${version})","YEAR":"${user} ${MMM} ${d}, ${YYYY} (version ${version})"},"ERROR_CREATE_NOT_FOUND":"Your comment could not be saved because the item has been deleted or is no longer visible to you.","ERROR_CREATE_ACCESS_DENIED":"Your comment could not be saved because the item has been deleted or is no longer visible to you.","VIEW_COMMENTS_FILE":"View comments on this file","PROFILE_A11Y":"Activating this link will open the profile of ${user} in a new window.","DELETE_TOOLTIP":"Delete comment","SHOWMORE":"Read more...","COMMENT_LABEL":"Comment:","ERROR_DELETE_NOT_LOGGED_IN":"You must be logged in to delete this comment.  Click \'Delete\' to be prompted to log in.","OK":"OK","MODERATION_PENDING":"This comment is pending review.","ERROR_DELETE":"Your comment could not be deleted.  Try again later.","TOOLTIP":"Shorten Comment","COMMENT_CREATED_TIME":{"MONTH":"${MMM} ${d}","TODAY":"Today at ${time}","YESTERDAY":"Yesterday at ${time}","DAY":"${EEEE} at ${time}","TOMORROW":"${MMM} ${d}, ${YYYY}","YEAR":"${MMM} ${d}, ${YYYY}"},"ERROR_DELETE_TIMEOUT":"Your comment could not be deleted because the server could not be contacted.  Click \'Delete\' to try again.","PLACEHOLDER_TXT":"Add a comment","ERROR":"An error has occurred while retrieving the comments. ${again}","ERROR_CREATE_NOT_LOGGED_IN":"You must be logged in to create this comment.  Click \'Post\' to be prompted to log in.","ERROR_UNAUTHORIZED":"Your comment could not be saved because you are not authorized to leave a comment.","TAB_TITLE":"Comments (${0})","ERROR_GENERAL":"An error has occurred.","COMMENT_COUNT_ONE":"${0} comment","ERROR_DELETE_CANCEL":"Your comment could not be deleted because the request was canceled.  Click \'Delete\' to try again.","MODERATION_REJECTED":{"MONTH":"This comment was rejected by ${user} on ${MMM} ${d}.","TODAY":"This comment was rejected by ${user} today at ${time}.","YESTERDAY":"This comment was rejected by ${user} yesterday at ${time}.","DAY":"This comment was rejected by ${user} on ${EEEE} at ${time}.","TOMORROW":"This comment was rejected by ${user} on ${MMM} ${d}, ${YYYY}.","YEAR":"This comment was rejected by ${user} on ${MMM} ${d}, ${YYYY}."},"ERROR_EDIT_CANCEL":"Your comment could not be updated because the request was canceled.  Click \'Post\' to try again.","TRIM_LONG_COMMENT":"Shorten comment?","COMMENT_DELETED":{"MONTH":"Comment deleted by ${user} on ${MMM} ${d}","TODAY":"Comment deleted by ${user} today at ${time}","YESTERDAY":"Comment deleted by ${user} yesterday at ${time}","DAY":"Comment deleted by ${user} on ${EEEE} at ${time}","TOMORROW":"Comment deleted by ${user} on ${MMM} ${d}, ${YYYY}","YEAR":"Comment deleted by ${user} on ${MMM} ${d}, ${YYYY}"},"LINK":"Link","CANCEL":"Cancel","SAVE":"Save"},"UNSAVEDCHANGES":{"CONFIRM":"Are you sure you want to abandon your changes?  Press OK to continue or Cancel to return.","DIALOG_TITLE":"Confirm","CANCEL":"Cancel","TOOLTIP":"Confirm","NAME":"Confirm","OK":"OK"},"idea":{"readMore_a11y":"Activating this link will open the ${name} idea in a new window.","error_404":"We could not save your vote because you have either reached your voting limit or the idea is no longer available to you.","readMore_tooltip":"Open the ${name} idea."},"OAUTH":{"infoMsg":"IBM Connections needs your authorization to access your data.","authorizeGadget":"${clickHere} to authorize this application to access your Connections information.","clickHere":"Click here","confirmAuthorization":"${clickHere} to confirm that you have authorized this application to access your Connections information.","continueBtnA11y":"Activating this link will open a new window that will allow you to authorize access to Connections.","welcomeHeader":"Welcome to IBM Connections","continueBtnLabel":"Continue"},"COMMENTS_SHORTEN":{"CONFIRM":"Shortening will remove the text beyond the comment limit.  Click \'OK\' to shorten or \'Cancel\' to edit the comment yourself.","DIALOG_TITLE":"Shorten Comment","CANCEL":"Cancel","TOOLTIP":"Shorten Comment","NAME":"Shorten Comment","OK":"OK"},"file":{"error_403":"You do not have permission to view this file. The file is not public and is not shared with you.","error_404":"The file no longer exists or you do not have sufficient permissions to access it.","profile_title":"Open the profile of ${user}.","tooltip":"Open ${name} in the Files application","download":{"DOWNLOAD_ALT":"Download","TOOLTIP":"Download this file (${size})"},"a11y_help":"Activating this link will open ${name} in a new window.","PREVIEW":{"TITLE":"Preview this file in a new window.","LINK":"Preview"},"error":"An error occurred.  ${again}.","notifications":{"USER_SHARED":"${user} wrote:","NO_CHANGE_SUMMARY":"${user} did not provide a change summary","COMMENTED":"${user} commented","CHANGE_SUMMARY":"${user} provided change summary"},"error_again":"Please try again","download_tooltip":"Download this file (${0})","about":{"ANYUPDATE_TIMESTAMP":"${date_long} ${time_long}","UPDATE_TIMESTAMP":"${date_long} ${time_long} by ${user}","CREATE_TIMESTAMP":"${date_long} ${time_long} by ${user}"},"profile_a11y":"Activating this link will open the profile of ${user} in a new window.","following":{"title":"Toggle whether you will receive updates about this file","remove":"Stop Following","add":"Follow File"},"timestamp":{"updatedCompact":{"MONTH":"Updated: ${MMM} ${d}","TODAY":"Updated: Today at ${time}","YESTERDAY":"Updated: Yesterday at ${time}","DAY":"Updated: ${EEEE} at ${time}","TOMORROW":"Updated: ${MMM} ${d}, ${YYYY}","YEAR":"Updated: ${MMM} ${d}, ${YYYY}"},"createdOther":{"MONTH":"${user} created on ${MMM} ${d}","TODAY":"${user} created today at ${time}","YESTERDAY":"${user} created yesterday at ${time}","DAY":"${user} created on ${EEEE} at ${time}","TOMORROW":"${user} created on ${MMM} ${d}, ${YYYY}","YEAR":"${user} created on ${MMM} ${d}, ${YYYY}"},"created":{"MONTH":"Created ${MMM} ${d}","TODAY":"Created today at ${time}","YESTERDAY":"Created yesterday at ${time}","DAY":"Created ${EEEE} at ${time}","TOMORROW":"Created ${MMM} ${d}, ${YYYY}","YEAR":"Created ${MMM} ${d}, ${YYYY}"},"updated":{"MONTH":"Updated ${MMM} ${d}","TODAY":"Updated today at ${time}","YESTERDAY":"Updated yesterday at ${time}","DAY":"Updated ${EEEE} at ${time}","TOMORROW":"Updated ${MMM} ${d}, ${YYYY}","YEAR":"Updated ${MMM} ${d}, ${YYYY}"},"createdCompact":{"MONTH":"Created: ${MMM} ${d}","TODAY":"Created: Today at ${time}","YESTERDAY":"Created: Yesterday at ${time}","DAY":"Created: ${EEEE} at ${time}","TOMORROW":"Created: ${MMM} ${d}, ${YYYY}","YEAR":"Created: ${MMM} ${d}, ${YYYY}"},"updatedOther":{"MONTH":"${user} updated on ${MMM} ${d}","TODAY":"${user} updated today at ${time}","YESTERDAY":"${user} updated yesterday at ${time}","DAY":"${user} updated on ${EEEE} at ${time}","TOMORROW":"${user} updated on ${MMM} ${d}, ${YYYY}","YEAR":"${user} updated on ${MMM} ${d}, ${YYYY}"}},"TAGS":"Tags:","share":{"title":"Give others access to this file","label":"Share"}}};

;dojo.cache("com.ibm.lconn.gadget", "services/dialog/templates/OAuthErrorDialog.html", "<div id=\"${id}_dialog\" role=\"dialog\" aria-labelledby=\"${id}_title\" class=\"lotusDialog\"> <div class=\"lotusDialogBorder\"> <div class=\"lotusDialog\"> <div class=\"lotusDialogHeader\"> <a class=\"lotusDialogClose\" href=\"javascript:;\" dojoAttachEvent=\"onclick:closeDialog\" title=\"${nls.MESSAGE.DISMISS}\"> <img alt=\"${nls.MESSAGE.DISMISS}\" src=\"${blankGif}\" /> <span class=\"lotusAltText\">${nls.MESSAGE.DISMISS}</span> </a> </div> <div class=\"lotusDialogContent\" id=\"${id}_dialog_content\"> <div class=\"lotusMessage2\" role=\"alert\"> <img class=\"lotusIcon lotusIconMsgError\" src=\"${blankGif}\" alt=\"${nls.MESSAGE.ERROR_ALT_TEXT}\" /> <span class=\"lotusAltText\">${nls.MESSAGE.ERROR_ALT_TEXT}</span> <div class=\"lotusMessageBody\">${errorMessage}</div> </div> </div> </div> </div></div>");

;if(!dojo._hasResource["com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog"]){
dojo._hasResource["com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog"]=true;
dojo.provide("com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog");
dojo.require("dijit.Dialog");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.requireLocalization("com.ibm.social.ee","socialEEStrings");
dojo.declare("com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog",[dijit._Widget,dijit._Templated],{widgetsInTemplate:true,nls:dojo.i18n.getLocalization("com.ibm.social.ee","socialEEStrings"),templatePath:dojo.moduleUrl("com.ibm.lconn.gadget","services/dialog/templates/OAuthErrorDialog.html"),blankGif:null,errorMessage:null,dialog:null,constructor:function(){
var _1=this.nls.network;
this.blankGif=dojo.config.blankGif;
this.errorMessage=dojo.replace(_1.error,{again:_1.error_again},/\$\{([^\}]+)\}/g);
this.dialog=new dijit.Dialog();
},show:function(){
this.dialog.show();
this.dialog.attr({content:this.domNode});
},closeDialog:function(){
this.dialog.destroy();
this.dialog=null;
this.destroy();
}});
}


;dojo.mixin(dojo.provide("com.ibm.lconn.gadget.config.settings"),{"developer":{"allowIntranetProxyAccess":false,"allowSSOFeature":false,"enabled":false},"security":{"allowUrlCheckPattern":"","authErrorRetryIntervalSec":300,"containerTokenCheckSec":5,"containerTokenTTLSec":43200,"featureAdminEnabled":true,"gadgetTokenTTLSec":64800,"preloadJS":false,"preloadJSSafari":true,"ssoDomain":".ibm.com","transientErrorRetryIntervalSec":60,"urlWhitelistEnabled":true,"whiteListEnabled":true}});


;if(!dojo._hasResource["dojo.DeferredList"]){
dojo._hasResource["dojo.DeferredList"]=true;
dojo.provide("dojo.DeferredList");
dojo.declare("dojo.DeferredList",dojo.Deferred,{constructor:function(_1,_2,_3,_4,_5){
this.list=_1;
this.resultList=new Array(this.list.length);
this.chain=[];
this.id=this._nextId();
this.fired=-1;
this.paused=0;
this.results=[null,null];
this.canceller=_5;
this.silentlyCancelled=false;
if(this.list.length===0&&!_2){
this.callback(this.resultList);
}
this.finishedCount=0;
this.fireOnOneCallback=_2;
this.fireOnOneErrback=_3;
this.consumeErrors=_4;
dojo.forEach(this.list,function(d,_6){
d.addCallback(this,function(r){
this._cbDeferred(_6,true,r);
return r;
});
d.addErrback(this,function(r){
this._cbDeferred(_6,false,r);
return r;
});
},this);
},_cbDeferred:function(_7,_8,_9){
this.resultList[_7]=[_8,_9];
this.finishedCount+=1;
if(this.fired!==0){
if(_8&&this.fireOnOneCallback){
this.callback([_7,_9]);
}else{
if(!_8&&this.fireOnOneErrback){
this.errback(_9);
}else{
if(this.finishedCount==this.list.length){
this.callback(this.resultList);
}
}
}
}
if(!_8&&this.consumeErrors){
_9=null;
}
return _9;
},gatherResults:function(_a){
var d=new dojo.DeferredList(_a,false,true,false);
d.addCallback(function(_b){
var _c=[];
dojo.forEach(_b,function(_d){
_c.push(_d[1]);
});
return _c;
});
return d;
}});
}


;if(!dojo._hasResource["lconn.core.auth"]){
dojo._hasResource["lconn.core.auth"]=true;
dojo.provide("lconn.core.auth");
dojo.require("dojo.string");
dojo.require("dojo.DeferredList");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
dojo.require("com.ibm.oneui.util.Url");
(function(_1,_2){
var _3=5000,_4=[],_5=[],_6={defaultApp:"${appSvcUrl}/core/login_redirect?redirect=${redirectUrl}",activities:"${appSvcUrl}/service/authredirect.jsp",blogs:"${appSvcUrl}/roller-ui/login-redirect.jsp?redirect=${redirectUrl}",communities:"${appSvcUrl}/service/html/login",dogear:"${appSvcUrl}/loginredirect?redirect=${redirectUrl}",files:"${appSvcUrl}/form/login_redirect?redirect=${redirectUrl}",forums:"${appSvcUrl}/auth/redirect",homepage:"${appSvcUrl}/web/login_redirect?redirectUrl=${redirectUrl}",metrics:"${appSvcUrl}/login_redirect?redirect=${redirectUrl}",moderation:"${appSvcUrl}/login_redirect?redirect=${redirectUrl}",news:"${appSvcUrl}/login_redirect?redirect=${redirectUrl}",oauth:"${appSvcUrl}/login_redirect?redirect=${redirectUrl}",profiles:"${appSvcUrl}/auth/loginRedirect.do",search:"${appSvcUrl}/login_redirect?redirect=${redirectUrl}",wikis:"${appSvcUrl}/form/login_redirect?redirect=${redirectUrl}"};
function _7(_8,_9){
switch(_8){
case "activities":
_a("ActivitiesRedirect",_9.redirectUrl);
break;
case "communities":
_a("CommunitiesReqURL",_9.redirectUrl);
break;
case "forums":
_a("ForumReqURL",_9.redirectUrl);
break;
case "homepage":
_a("ConnectionsHomepageActivityStreamState",_9.redirectUrl);
break;
case "profiles":
_a("ProfilesReqURL",_9.redirectUrl);
break;
}
};
function _b(){
var _c=[];
if(!lconn.core.auth.isAuthenticated()){
dojo.forEach(_4,function(_d,i){
var _e=_d();
if(_e&&_e instanceof dojo.Deferred){
_c.push(_e);
}
});
}
return _c;
};
function _f(_10){
var _11=[];
if(_10||lconn.core.auth.isAuthenticated()){
dojo.forEach(_5,function(_12,i){
var dfd=_12();
if(dfd&&dfd instanceof dojo.Deferred){
_11.push(dfd);
}
});
}
return _11;
};
function _a(key,_13){
_2.cookie=key+"="+_13+"; path=/";
};
function _14(){
if(dojo.global.ibmConfig&&typeof ibmConfig.serviceName!=="undefined"){
return ibmConfig.serviceName;
}
var _15=dojo.byId("lotusBaseStylesheet");
if(_15){
var _16=dojo.attr(_15,"appName");
if(_16){
return _16;
}
}
return "news";
};
function _17(_18){
var _19=_1.location.href;
var _1a=_14();
var _1b=lconn.core.config.services[_1a];
if(_1b){
_19=(_1b.secureEnabled&&_18!==false)?_1b.secureUrl:_1b.url;
}
var _1c=lconn.core.url.parse(_19);
return _1c.toString();
};
lconn.core.auth={addLoginHandler:function(_1d){
_4.push(_1d);
},addLogoutHandler:function(_1e){
_5.push(_1e);
},login:function(url){
var _1f=new dojo.DeferredList(_b(),false);
var _20=url||lconn.core.auth.getLoginUrl();
_1f.addBoth(function(_21){
_1.location.href=_20;
});
},logoutAndLogin:function(url){
_f(true);
var _22=lconn.core.auth.getLogoutUrl();
dojo.xhrPost({url:_22,handleAs:"text",handle:function(){
lconn.core.auth.login(url);
},secure:false,timeout:_3});
},logout:function(url){
var _23=new dojo.DeferredList(_f(),false);
var _24=url||lconn.core.auth.getLogoutUrl("/");
_23.addBoth(function(_25){
_1.location.href=_24;
});
},isAuthenticated:function(){
var _26=false;
var _27=dojo.byId("usernameText");
var _28=_27?_27.innerHTML:null;
_26=_28?true:false;
return _26;
},getLogoutUrl:function(_29){
var _2a=_17(com.ibm.oneui.util.Url.secure);
var _2b=_29||"/";
_2a=_2a+"/ibm_security_logout?logoutExitPage="+encodeURIComponent(_2b);
return _2a;
},getLoginUrl:function(url){
url=url||_1.location.href;
var _2c=_14("default");
var u=lconn.core.url.parse(url);
if(u.fragment){
switch(_2c){
case "activities":
u.fragment=u.fragment.replace(/,/g,"%2C");
break;
case "files":
case "metrics":
case "moderation":
case "wikis":
u.path+=u.fragment.indexOf("!")===0?u.fragment.substring(1):u.fragment;
delete u.fragment;
}
}
var _2d=lconn.core.config.services[_2c].secureUrl;
if(_2d.charAt(_2d.length-1)=="/"){
_2d=_2d.substring(0,_2d.length-1);
}
var opt={appSvcUrl:_2d,redirectUrl:u.toCanonicalString(),hashSegment:u.fragment||""};
_7(_2c,opt);
return dojo.string.substitute(_6[_2c],opt);
}};
lconn.core.auth.logoutAndlogin=lconn.core.auth.logoutAndLogin;
})(window,document);
}


;if(!dojo._hasResource["lconn.core.util.LCDeferred"]){
dojo._hasResource["lconn.core.util.LCDeferred"]=true;
dojo.provide("lconn.core.util.LCDeferred");
(function(){
var _1=function(){
};
var _2=Object.freeze||function(){
};
lconn.core.util.LCDeferred=function(_3){
var _4,_5,_6,_7,_8;
var _9=(this.promise={});
function _a(_b){
if(_5){
throw new Error("This deferred has already been resolved");
}
_4=_b;
_5=true;
_c();
};
function _c(){
var _d;
while(!_d&&_8){
var _e=_8;
_8=_8.next;
if((_d=(_e.progress==_1))){
_5=false;
}
var _f=(_6?_e.error:_e.resolved);
if(_f){
try{
var _10=_f(_4);
if(_10&&typeof _10.then==="function"){
_10.then(dojo.hitch(_e.deferred,"resolve"),dojo.hitch(_e.deferred,"reject"));
continue;
}
var _11=_d&&_10===undefined;
if(_d&&!_11){
_6=_10 instanceof Error;
}
_e.deferred[_11&&_6?"reject":"resolve"](_11?_4:_10);
}
catch(e){
_e.deferred.reject(e);
}
}else{
if(_6){
_e.deferred.reject(_4);
}else{
_e.deferred.resolve(_4);
}
}
}
};
this.resolve=this.callback=function(_12){
this.fired=0;
this.results=[_12,null];
_a(_12);
};
this.reject=this.errback=function(_13){
_6=true;
this.fired=1;
_a(_13);
this.results=[null,_13];
if(!_13||_13.log!==false){
(dojo.config.deferredOnError||function(x){
console.error(x);
})(_13);
}
};
this.progress=function(_14){
var _15=_8;
while(_15){
var _16=_15.progress;
_16&&_16(_14);
_15=_15.next;
}
};
this.addCallbacks=function(_17,_18){
this.then(_17,_18,_1);
return this;
};
this.then=_9.then=function(_19,_1a,_1b){
var _1c=_1b==_1?this:new lconn.core.util.LCDeferred(_9.cancel);
var _1d={resolved:_19,error:_1a,progress:_1b,deferred:_1c};
if(_8){
_7=_7.next=_1d;
}else{
_8=_7=_1d;
}
if(_5){
_c();
}
return _1c.promise;
};
var _1e=this;
this.cancel=_9.cancel=function(){
if(!_5){
var _1f=_3&&_3(_1e);
if(!_5){
if(!(_1f instanceof Error)){
_1f=new Error(_1f);
}
_1f.log=false;
_1e.reject(_1f);
}
}
};
_2(_9);
};
dojo.extend(lconn.core.util.LCDeferred,{addCallback:function(_20){
return this.addCallbacks(dojo.hitch.apply(dojo,arguments));
},addErrback:function(_21){
return this.addCallbacks(null,dojo.hitch.apply(dojo,arguments));
},addBoth:function(_22){
var _23=dojo.hitch.apply(dojo,arguments);
return this.addCallbacks(_23,_23);
},fired:-1});
})();
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.TokenRefreshHandler"]){
dojo._hasResource["com.ibm.lconn.gadget.services.TokenRefreshHandler"]=true;
dojo.provide("com.ibm.lconn.gadget.services.TokenRefreshHandler");
dojo.require("com.ibm.lconn.gadget.config.settings");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("lconn.core.auth");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
dojo.require("lconn.core.util.LCDeferred");
dojo.require("com.ibm.oneui.util.proxy");
dojo.require("dojo.cookie");
com.ibm.lconn.gadget.services.TokenRefreshHandler=(function(_1,_2,_3,_4,_5,_6,_7,_8,_9){
var _a={};
var _b=_8.security;
var _c="X-LConn-Auth",_d="X-IC-CRE-User",_e="X-IC-CRE-Request-Origin",_f="X-Update-Nonce",_10="X-IC-Container-Token";
var _11=_4.opensocial,_12=_3.parse(_1.global.location.toString(),_11?_6(_3.getServiceUrl(_11).toString()):"");
var _13=_1.global.location;
_7.debug("Container token refresh TTL is: "+_b.containerTokenTTLSec);
_7.debug("Container token check: "+_b.containerTokenCheckSec);
function _14(_15,_16){
return _15&&_15.userId===_16.userId;
};
function _17(_18){
_7.debug("Invalidating current token data");
var _19=_18.sites_;
for(var _1a in _19){
var _1b=_19[_1a];
if(_1b instanceof osapi.container.GadgetSite){
var _1c=_1b.getActiveSiteHolder();
var _1d=_18.service_.getCachedGadgetMetadata(_1c.getUrl());
_1d[osapi.container.MetadataResponse.NEEDS_TOKEN_REFRESH]=true;
}
}
};
function _1e(_1f){
var c=document.cookie,_20="(?:^|; )"+_1.regexp.escapeString(_1f)+"=([^;]*)",_21,_22=new RegExp(_20),res,_23=[],i;
_21=c.match(new RegExp(_20,"g"));
if(_21&&_21.length>0){
i=_21.length;
while(i--){
res=_21[i];
_23.push(decodeURIComponent(res.match(_22)[1]));
}
}
return _23;
};
function _24(_25,_26){
var _27,_28,_29;
var _2a=false,_2b=null,_2c;
var _2d=_13.hostname;
var i,c;
if(_26){
i=_26.length;
while(i--){
_27=_26[i];
if((c=_27.indexOf("$"))>0&&c<_27.length-1){
_29=_27.substring(0,c);
_28=_27.substring(c+1);
_2c=_14(_25,{userId:_28,isAuth:(_28.indexOf("anonymous")!==0)});
if((_2d.indexOf(_29)+_29.length)===_2d.length){
if(_2b===null||_29===_2d){
if(_2b===_29){
_2a=_2a||_2c;
}else{
_2b=_29;
_2a=_2c;
}
}
}
}
}
}
return _2a;
};
function _2e(_2f){
var _30=_1e(_10);
if(!_24(_2f,_30)){
_7.debug("Must be in proxy situation, not getting container token cookie back from server.");
var _31=_13.hostname+"$"+_2f.userId;
_1.cookie(_10,_31,{path:"/"});
}
};
var _a=_1.declare("",[],{_userData:null,_lastUpdate:null,_containerToken:null,_commonContainer:null,getContainerToken:function(){
var _32=[_12.toString(),"/common/tokenRefresh?type=container&token="].join(""),_33=new _5();
var _34={};
_34[_f]="check";
_34[_e]=_13.href;
_1.xhrGet({url:_32,handleAs:"json",headers:_34,sync:false,load:_1.hitch(this,"_creTokenDataHandlerLoad",_33),error:_1.hitch(this,"_creTokenDataHandlerError",_33)});
return _33;
},_getCachedToken:function(){
var now=new Date().getTime();
var _35=_1e(_10);
var _36=this._containerToken;
var _37=this._lastUpdate;
if(_37){
_37+=(_b.containerTokenTTLSec*1000);
}
if(!_24(this._userData,_35)){
return false;
}else{
if((_36&&_36.token)&&(_37&&now<_37)){
return _36.token;
}else{
return false;
}
}
},_creTokenDataHandlerLoad:function(_38,_39,_3a){
_7.debug("SUCCESS: Load token: %o",_39);
var _3b=this._parseUserData(_3a);
_2e(_3b);
_38.callback({creToken:_39.containerToken,userData:_3b});
if(!this._userData){
this._lastUpdate=new Date().getTime();
this._containerToken=_39.containerToken;
this._userData=_3b;
}
},_parseUserData:function(_3c){
var _3d=("true"===_3c.xhr.getResponseHeader(_c));
var _3e=_3c.xhr.getResponseHeader(_d);
if(!_3e){
_3d=false;
_3e="anonymous_54d8eff5b051e9c3fc7f19b4c5a12cf8d40498d7";
_7.warn("No X-IC-CRE-User header, switching to anon user");
}
return {isAuth:_3d,userId:_3e};
},_creTokenDataHandlerError:function(_3f,_40,_41){
_7.error("ERROR: "+_40);
_3f.errback(_40);
},_clearTokenData:function(_42){
this._invalidateGadgetTokens();
},tokenRefresh:function(_43){
var _44=this,_45=this._getCachedToken();
if(!_45){
this.getContainerToken().then(function(_46){
if((!_46)||(!_46.creToken)||(!_46.userData)||(!_46.userData.userId)){
var _47,_48=_b.transientErrorRetryIntervalSec;
_7.debug("data: "+_46);
_7.debug("data.creToken: "+_46.creToken);
_7.debug("data.userData: "+_46.userData);
_7.debug("data.userData.userId: "+_46.userData.userId);
_7.warn("Error while refreshing container token - bad data.  Will retry in: "+_48+" seconds");
_43(_47,_48);
return;
}
_44._containerToken=_46.creToken;
_44._lastUpdate=new Date().getTime();
if(!_14(_44._userData,_46.userData)){
_17(_44._commonContainer);
_44._userData=_46.userData;
_43(_46.creToken.token,_b.containerTokenCheckSec);
_44._commonContainer.refreshTokens_();
cre$.internalutil.setCREContainerToken(_46.creToken);
}else{
_7.debug("Token refresh success %o",_46);
_43(_46.creToken.token,_b.containerTokenCheckSec);
cre$.internalutil.setCREContainerToken(_46.creToken);
}
},function(_49){
var _4a,_4b=_b.transientErrorRetryIntervalSec;
_7.warn("Error while refreshing container token.  Will retry in: "+_4b+" seconds");
_43(_4a,_4b);
});
}else{
_43(_45,_b.containerTokenCheckSec);
}
},setCommonContainer:function(_4c){
this._commonContainer=_4c;
},logoutHandler:function(){
_1.cookie(_10,_9,{expires:-1,domain:_b.ssoDomain,path:"/"});
_1.cookie(_10,_9,{expires:-1,path:"/"});
}});
return _a;
})(dojo,lconn.core.auth,lconn.core.url,lconn.core.config.services,lconn.core.util.LCDeferred,com.ibm.oneui.util.proxy,com.ibm.lconn.gadget.util.trace,com.ibm.lconn.gadget.config.settings);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.tokenRefreshService"]){
dojo._hasResource["com.ibm.lconn.gadget.services.tokenRefreshService"]=true;
dojo.provide("com.ibm.lconn.gadget.services.tokenRefreshService");
dojo.require("com.ibm.lconn.gadget.services.TokenRefreshHandler");
dojo.require("lconn.core.auth");
dojo.require("dojo.cookie");
com.ibm.lconn.gadget.services.tokenRefreshService=(function(_1,_2,_3){
var _4={};
var _5=new _2();
_4.getContainerToken=function(){
return _5.getContainerToken();
};
_4.getTokenRefresher=function(){
return _1.hitch(_5,"tokenRefresh");
};
_4.registerService=function(_6){
_5.setCommonContainer(_6);
};
_3.addLogoutHandler(function(){
_5.logoutHandler();
});
return _4;
})(dojo,com.ibm.lconn.gadget.services.TokenRefreshHandler,lconn.core.auth);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.oauthPopupDialog"]){
dojo._hasResource["com.ibm.lconn.gadget.services.oauthPopupDialog"]=true;
dojo.provide("com.ibm.lconn.gadget.services.oauthPopupDialog");
dojo.require("com.ibm.lconn.gadget.services.dialog.IframeDialog");
dojo.require("com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog");
dojo.require("com.ibm.lconn.gadget.services.tokenRefreshService");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("lconn.core.auth");
com.ibm.lconn.gadget.services.oauthPopupDialog.registerService=function(_1){
var _2={};
var _3=com.ibm.lconn.gadget.services.tokenRefreshService,_4=lconn.core.auth;
var _5=com.ibm.lconn.gadget.util.trace;
var _6={AUTHORIZE_SUCCESS:"authorize_success",AUTHORIZE_REJECTED:"authorize_rejected",AUTHORIZE_SERVER_ERROR:"authorize_server_error",AUTO_AUTHORIZE_REJECTED:"auto_authorize_rejected"};
_1.rpcRegister("_ic_oauth_dialog_status",function(_7,_8){
if(!_8.status){
return;
}
var _9=_8.status,_a=_8.message,_b=_2[_7.f].handler,_c=_2[_7.f].dialog;
if(_b===undefined){
return;
}
switch(_9){
case _6.AUTHORIZE_SUCCESS:
_b();
break;
case _6.AUTHORIZE_REJECTED:
_b();
break;
case _6.AUTHORIZE_SERVER_ERROR:
_c.show();
break;
case _6.AUTO_AUTHORIZE_REJECTED:
if(_c.isAuto){
_b(true);
}else{
_c.show();
}
break;
}
if(_a){
console.log(_a);
}
});
var _d={};
_1.setupNonGadgetRpcEndpoint();
_1.rpcRegister("_ic_oauth_dialog_open",function(_e,_f,_10,pid,_11){
var _12=_e[osapi.container.GadgetSite.RPC_ARG_KEY];
var _13=_12.getId();
var _14=null;
function _15(_16){
_12.rpcCall("_ic_oauth_dialog_closed",function(){
},{isAutoFail:_16,pids:_d[_13]});
delete (_d[_13]);
if(_14){
delete _2[_14];
}
};
function _17(){
var _18=["_ic_oauth_dialog_status","__ack","__cb","gadgets.rpc.config","gadgets.rpc.register","gadgets.rpc.unregister","gadgets.rpc.registerDefault","gadgets.rpc.unregisterDefault","gadgets.rpc.forceParentVerifiable","gadgets.rpc.call","gadgets.rpc.getRelayUrl","gadgets.rpc.setRelayUrl","gadgets.rpc.setAuthToken","gadgets.rpc.setupReceiver","gadgets.rpc.getAuthToken","gadgets.rpc.removeReceiver","gadgets.rpc.getRelayChannel","gadgets.rpc.receive","gadgets.rpc.receiveSameDomain","gadgets.rpc.getOrigin","gadgets.rpc.getTargetOrigin"],ifd=new com.ibm.lconn.gadget.services.dialog.IframeDialog(_f,_10,_11),_19=com.ibm.lconn.gadget.util.specHelper.nextDomId(),_1a=com.ibm.lconn.gadget.util.specHelper.nextDomId();
gadgets.rpc.setUpRpcIdsForNonGadgetIframe(_19,_1a,_f,_18);
ifd.init(_19,_1a);
if(!_11){
ifd.show();
}
_14=_19;
var _1b=function(_1c){
ifd.destroy();
_15(_1c);
};
dojo.connect(ifd,"onClose",_1b);
_2[_19]={window:ifd.getWindow(),handler:_1b,dialog:ifd};
};
if(!_d[_13]){
_d[_13]=[pid];
_3.getContainerToken().then(function(_1d){
var _1e=_1d.userData;
if(!_1e.isAuth){
_4.login();
}else{
_17();
}
},function(_1f){
_5.error("Error checking user authentication: "+_1f);
var _20=new com.ibm.lconn.gadget.services.dialog.OAuthErrorDialog();
_20.startup();
_20.show();
_15(_11);
});
}else{
_d[_13].push(pid);
}
});
};
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.sso_reauth_callback"]){
dojo._hasResource["com.ibm.lconn.gadget.services.sso_reauth_callback"]=true;
dojo.provide("com.ibm.lconn.gadget.services.sso_reauth_callback");
dojo.require("lconn.core.auth");
dojo.require("com.ibm.lconn.gadget.util.trace");
com.ibm.lconn.gadget.services.sso_reauth_callback.registerService=function(_1){
_1.rpcRegister("_cre_sso_reauth_cb",function(_2){
com.ibm.lconn.gadget.util.trace.log("_cre_sso_reauth_cb rpc service fired with arguments",arguments);
com.ibm.lconn.gadget.util.trace.log("redirecting to login...");
lconn.core.auth.logoutAndlogin();
});
};
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.fake_handleRpcMethod"]){
dojo._hasResource["com.ibm.lconn.gadget.services.fake_handleRpcMethod"]=true;
dojo.provide("com.ibm.lconn.gadget.services.fake_handleRpcMethod");
dojo.require("com.ibm.lconn.gadget.util.trace");
com.ibm.lconn.gadget.services.fake_handleRpcMethod=(function(_1){
var _2={},_3="osapi._handleRpcMethod called - method not implemented in this container. arguments : ";
_2.registerService=function(_4){
_4.rpcRegister("osapi._handleGadgetRpcMethod",function(){
_1.debug(_3,arguments);
});
};
return _2;
})(com.ibm.lconn.gadget.util.trace);
}


;dojo.mixin(dojo.provide("lconn.core.config"),{"deploymentId":"com.ibm.lc.c15c6db2-b6af-42b4-b051-d5dbf01fd098","enableEmail":true,"languageSensitivity":true,"versionStamp":"20150306.124355"});


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.urlSecurityService"]){
dojo._hasResource["com.ibm.lconn.gadget.services.urlSecurityService"]=true;
dojo.provide("com.ibm.lconn.gadget.services.urlSecurityService");
dojo.require("com.ibm.lconn.gadget.config.settings");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("lconn.core.config");
dojo.require("lconn.core.config.services");
dojo.require("lconn.core.url");
com.ibm.lconn.gadget.services.urlSecurityService=(function(_1,_2,_3,_4,_5,_6){
var _7={},_8=_3.security.urlWhitelistEnabled,_9=_3.security.allowUrlCheckPattern;
opensocialUrl_=_2.getServiceUrl(_6.opensocial),errorPage_=opensocialUrl_+"/ic/errors/errorMini.jsp";
if(_9){
_9=new RegExp(_3.security.allowUrlCheckPattern,"i");
}else{
_9={"test":function(){
return false;
}};
}
function _a(_b,_c,_d){
if(_e(_c)){
return this.navigateUrlNoSecurity.apply(this,arguments);
}else{
_4.warn("Blocking access to url: "+_c+".  URL does not match whitelist.");
var _f=Array.prototype.slice.call(arguments);
_f[1]=errorPage_;
return this.navigateUrlNoSecurity.apply(this,_f);
}
};
function _e(url){
if(!_8){
return true;
}
return url&&url.indexOf("..")===-1&&_9.test(url);
};
_7.registerService=function(_10){
_10.navigateUrlNoSecurity=_10.navigateUrl;
_10.navigateUrl=_a;
};
return _7;
})(dojo,lconn.core.url,com.ibm.lconn.gadget.config.settings,com.ibm.lconn.gadget.util.trace,com.ibm.lconn.gadget.services.dialog.UrlAccessDeniedDialog,lconn.core.config.services);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.ICActions"]){
dojo._hasResource["com.ibm.lconn.gadget.container.ICActions"]=true;
dojo.provide("com.ibm.lconn.gadget.container.ICActions");
dojo.declare("com.ibm.lconn.gadget.container.ICActions",null,{registerNavigateGadgetHandler:function(_1){
},registerService:function(_2){
}});
dojo.mixin(com.ibm.lconn.gadget.container.ICActions,{__instance__:function(){
}});
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.services.ICActionsContainer"]){
dojo._hasResource["com.ibm.lconn.gadget.services.ICActionsContainer"]=true;
dojo.provide("com.ibm.lconn.gadget.services.ICActionsContainer");
dojo.require("com.ibm.lconn.gadget.container.ICActions");
(function(_1,_2){
var _3=_1.declare("com.ibm.lconn.gadget.services.ICActionsContainer",[_2],{_renderGadgetInContainer:null,constructor:function(){
this._renderGadgetInContainer=[];
},registerService:function(_4){
_4.actions.registerNavigateGadgetHandler(_1.hitch(this,this.handleGadgetSelection));
},registerNavigateGadgetHandler:function(_5){
if(typeof _5==="function"){
this._renderGadgetInContainer.push(_5);
}
},handleGadgetSelection:function(_6,_7){
_1.forEach(this._renderGadgetInContainer,function(_8){
_8(_6,_7);
});
}});
var _9=new _3();
_2.__instance__=function(){
return _9;
};
})(dojo,com.ibm.lconn.gadget.container.ICActions);
}


;if(!dojo._hasResource["lconn.core.util.LCDeferredList"]){
dojo._hasResource["lconn.core.util.LCDeferredList"]=true;
dojo.provide("lconn.core.util.LCDeferredList");
dojo.require("lconn.core.util.LCDeferred");
(function(_1,_2){
lconn.core.util.LCDeferredList=function(_3,_4,_5,_6,_7){
var _8=[];
_2.call(this);
var _9=this;
if(_3.length===0&&!_4){
this.resolve([0,[]]);
}
var _a=0;
_1.forEach(_3,function(_b,i){
_b.then(function(_c){
if(_4){
_9.resolve([i,_c]);
}else{
_d(true,_c);
}
},function(_e){
if(_5){
_9.reject(_e);
}else{
_d(false,_e);
}
if(_6){
return null;
}
throw _e;
});
function _d(_f,_10){
_8[i]=[_f,_10];
_a++;
if(_a===_3.length){
_9.resolve(_8);
}
};
});
};
lconn.core.util.LCDeferredList.prototype=new _1.Deferred();
lconn.core.util.LCDeferredList.prototype.gatherResults=function(_11){
var d=new lconn.core.util.LCDeferredList(_11,false,true,false);
d.addCallback(function(_12){
var ret=[];
_1.forEach(_12,function(_13){
ret.push(_13[1]);
});
return ret;
});
return d;
};
return lconn.core.util.LCDeferredList;
})(dojo,lconn.core.util.LCDeferred);
}


;if(!dojo._hasResource["lconn.core.util.amdLoader"]){
dojo._hasResource["lconn.core.util.amdLoader"]=true;
dojo.provide("lconn.core.util.amdLoader");
lconn.core.util.amdLoader=(function(_1){
var _2,_3,_4;
var _5="2.0.2",_6=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,_7=/require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,_8=/\.js$/,_9=/^\.\//,_a=Object.prototype.toString,ap=Array.prototype,_b=ap.slice,_c=ap.splice,_d=!!(typeof window!=="undefined"&&navigator&&document),_e=!_d&&typeof importScripts!=="undefined",_f=_d&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,_10="_",_11=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",_12={},cfg={},_13=[],_14=false,req,s,_15,_16,_17,src,_18,_19,_1a,_1b;
function _1c(it){
return _a.call(it)==="[object Function]";
};
function _1d(it){
return _a.call(it)==="[object Array]";
};
function _1e(ary,_1f){
if(ary){
var i;
for(i=0;i<ary.length;i+=1){
if(ary[i]&&_1f(ary[i],i,ary)){
break;
}
}
}
};
function _20(ary,_21){
if(ary){
var i;
for(i=ary.length-1;i>-1;i-=1){
if(ary[i]&&_21(ary[i],i,ary)){
break;
}
}
}
};
function _22(obj,_23){
return obj.hasOwnProperty(_23);
};
function _24(obj,_25){
var _26;
for(_26 in obj){
if(obj.hasOwnProperty(_26)){
if(_25(obj[_26],_26)){
break;
}
}
}
};
function _27(_28,_29,_2a,_2b){
if(_29){
_24(_29,function(_2c,_2d){
if(_2a||!_22(_28,_2d)){
if(_2b&&typeof _2c!=="string"){
if(!_28[_2d]){
_28[_2d]={};
}
_27(_28[_2d],_2c,_2a,_2b);
}else{
_28[_2d]=_2c;
}
}
});
}
return _28;
};
function _2e(obj,fn){
return function(){
return fn.apply(obj,arguments);
};
};
function _2f(){
return document.getElementsByTagName("script");
};
function _30(_31){
if(!_31){
return _31;
}
var g=_1;
_1e(_31.split("."),function(_32){
g=g[_32];
});
return g;
};
function _33(_34,_35,_36){
return function(){
var _37=_b.call(arguments,0),_38;
if(_36&&_1c((_38=_37[_37.length-1]))){
_38.__requireJsBuild=true;
}
_37.push(_35);
return _34.apply(null,_37);
};
};
function _39(req,_3a,_3b){
_1e([["toUrl"],["undef"],["defined","requireDefined"],["specified","requireSpecified"]],function(_3c){
var _3d=_3c[1]||_3c[0];
req[_3c[0]]=_3a?_33(_3a[_3d],_3b):function(){
var ctx=_12[_10];
return ctx[_3d].apply(ctx,arguments);
};
});
};
function _3e(id,msg,err,_3f){
var e=new Error(msg+"\nhttp://requirejs.org/docs/errors.html#"+id);
e.requireType=id;
e.requireModules=_3f;
if(err){
e.originalError=err;
}
return e;
};
if(typeof _3!=="undefined"){
return;
}
if(typeof _4!=="undefined"){
if(_1c(_4)){
return;
}
cfg=_4;
_4=undefined;
}
if(typeof _2!=="undefined"&&!_1c(_2)){
cfg=_2;
_2=undefined;
}
function _40(_41){
var _42={waitSeconds:60,baseUrl:"./",paths:{},pkgs:{},shim:{}},_43={},_44={},_45=[],_46={},_47={},_48=1,_49=1,_4a=[],_4b,_4c,_4d,_4e,_4f;
function _50(ary){
var i,_51;
for(i=0;ary[i];i+=1){
_51=ary[i];
if(_51==="."){
ary.splice(i,1);
i-=1;
}else{
if(_51===".."){
if(i===1&&(ary[2]===".."||ary[0]==="..")){
break;
}else{
if(i>0){
ary.splice(i-1,2);
i-=2;
}
}
}
}
}
};
function _52(_53,_54,_55){
var _56=_54&&_54.split("/"),map=_42.map,_57=map&&map["*"],_58,_59,_5a,_5b,i,j,_5c,_5d;
if(_53&&_53.charAt(0)==="."){
if(_54){
if(_42.pkgs[_54]){
_56=[_54];
}else{
_56=_56.slice(0,_56.length-1);
}
_53=_56.concat(_53.split("/"));
_50(_53);
_59=_42.pkgs[(_58=_53[0])];
_53=_53.join("/");
if(_59&&_53===_58+"/"+_59.main){
_53=_58;
}
}else{
if(_53.indexOf("./")===0){
_53=_53.substring(2);
}
}
}
if(_55&&(_56||_57)&&map){
_5b=_53.split("/");
for(i=_5b.length;i>0;i-=1){
_5c=_5b.slice(0,i).join("/");
if(_56){
for(j=_56.length;j>0;j-=1){
_5a=map[_56.slice(0,j).join("/")];
if(_5a){
_5a=_5a[_5c];
if(_5a){
_5d=_5a;
break;
}
}
}
}
if(!_5d&&_57&&_57[_5c]){
_5d=_57[_5c];
}
if(_5d){
_5b.splice(0,i,_5d);
_53=_5b.join("/");
break;
}
}
}
return _53;
};
function _5e(_5f){
if(_d){
_1e(_2f(),function(_60){
if(_60.getAttribute("data-requiremodule")===_5f&&_60.getAttribute("data-requirecontext")===_4d.contextName){
_60.parentNode.removeChild(_60);
return true;
}
});
}
};
function _61(id){
var _62=_42.paths[id];
if(_62&&_1d(_62)&&_62.length>1){
_5e(id);
_62.shift();
_4d.undef(id);
_4d.require([id]);
return true;
}
};
function _63(_64,_65,_66,_67){
var _68=_64?_64.indexOf("!"):-1,_69=null,_6a=_65?_65.name:null,_6b=_64,_6c=true,_6d="",url,_6e,_6f;
if(!_64){
_6c=false;
_64="_@r"+(_48+=1);
}
if(_68!==-1){
_69=_64.substring(0,_68);
_64=_64.substring(_68+1,_64.length);
}
if(_69){
_69=_52(_69,_6a,_67);
_6e=_46[_69];
}
if(_64){
if(_69){
if(_6e&&_6e.normalize){
_6d=_6e.normalize(_64,function(_70){
return _52(_70,_6a,_67);
});
}else{
_6d=_52(_64,_6a,_67);
}
}else{
_6d=_52(_64,_6a,_67);
url=_4d.nameToUrl(_64,null,_65);
}
}
_6f=_69&&!_6e&&!_66?"_unnormalized"+(_49+=1):"";
return {prefix:_69,name:_6d,parentMap:_65,unnormalized:!!_6f,url:url,originalName:_6b,isDefine:_6c,id:(_69?_69+"!"+_6d:_6d)+_6f};
};
function _71(_72){
var id=_72.id,mod=_43[id];
if(!mod){
mod=_43[id]=new _4d.Module(_72);
}
return mod;
};
function on(_73,_74,fn){
var id=_73.id,mod=_43[id];
if(_22(_46,id)&&(!mod||mod.defineEmitComplete)){
if(_74==="defined"){
fn(_46[id]);
}
}else{
_71(_73).on(_74,fn);
}
};
function _75(err,_76){
var ids=err.requireModules,_77=false;
if(_76){
_76(err);
}else{
_1e(ids,function(id){
var mod=_43[id];
if(mod){
mod.error=err;
if(mod.events.error){
_77=true;
mod.emit("error",err);
}
}
});
if(!_77){
req.onError(err);
}
}
};
function _78(){
if(_13.length){
_c.apply(_45,[_45.length-1,0].concat(_13));
_13=[];
}
};
function _79(mod,_7a,_7b){
var _7c=mod&&mod.map,_7d=_33(_7b||_4d.require,_7c,_7a);
_39(_7d,_4d,_7c);
_7d.isBrowser=_d;
return _7d;
};
_4e={"require":function(mod){
return _79(mod);
},"exports":function(mod){
mod.usingExports=true;
if(mod.map.isDefine){
return (mod.exports=_46[mod.map.id]={});
}
},"module":function(mod){
return (mod.module={id:mod.map.id,uri:mod.map.url,config:function(){
return (_42.config&&_42.config[mod.map.id])||{};
},exports:_46[mod.map.id]});
}};
function _7e(id){
delete _43[id];
_1e(_4a,function(mod,i){
if(mod.map.id===id){
_4a.splice(i,1);
if(!mod.defined){
_4d.waitCount-=1;
}
return true;
}
});
};
function _7f(mod,_80){
var id=mod.map.id,_81=mod.depMaps,_82;
if(!mod.inited){
return;
}
if(_80[id]){
return mod;
}
_80[id]=true;
_1e(_81,function(_83){
var _84=_83.id,_85=_43[_84];
if(!_85){
return;
}
if(!_85.inited||!_85.enabled){
_82=null;
delete _80[id];
return true;
}
return (_82=_7f(_85,_27({},_80)));
});
return _82;
};
function _86(mod,_87,_88){
var id=mod.map.id,_89=mod.depMaps;
if(!mod.inited||!mod.map.isDefine){
return;
}
if(_87[id]){
return _46[id];
}
_87[id]=mod;
_1e(_89,function(_8a){
var _8b=_8a.id,_8c=_43[_8b],_8d;
if(_4e[_8b]){
return;
}
if(_8c){
if(!_8c.inited||!_8c.enabled){
_88[id]=true;
return;
}
_8d=_86(_8c,_87,_88);
if(!_88[_8b]){
mod.defineDepById(_8b,_8d);
}
}
});
mod.check(true);
return _46[id];
};
function _8e(mod){
mod.check();
};
function _8f(){
var _90=_42.waitSeconds*1000,_91=_90&&(_4d.startTime+_90)<new Date().getTime(),_92=[],_93=false,_94=true,map,_95,err,_96;
if(_4b){
return;
}
_4b=true;
_24(_43,function(mod){
map=mod.map;
_95=map.id;
if(!mod.enabled){
return;
}
if(!mod.error){
if(!mod.inited&&_91){
if(_61(_95)){
_96=true;
_93=true;
}else{
_92.push(_95);
_5e(_95);
}
}else{
if(!mod.inited&&mod.fetched&&map.isDefine){
_93=true;
if(!map.prefix){
return (_94=false);
}
}
}
}
});
if(_91&&_92.length){
err=_3e("timeout","Load timeout for modules: "+_92,null,_92);
err.contextName=_4d.contextName;
return _75(err);
}
if(_94){
_1e(_4a,function(mod){
if(mod.defined){
return;
}
var _97=_7f(mod,{}),_98={};
if(_97){
_86(_97,_98,{});
_24(_98,_8e);
}
});
_24(_43,_8e);
}
if((!_91||_96)&&_93){
if((_d||_e)&&!_4f){
_4f=setTimeout(function(){
_4f=0;
_8f();
},50);
}
}
_4b=false;
};
_4c=function(map){
this.events=_44[map.id]||{};
this.map=map;
this.shim=_42.shim[map.id];
this.depExports=[];
this.depMaps=[];
this.depMatched=[];
this.pluginMaps={};
this.depCount=0;
};
_4c.prototype={init:function(_99,_9a,_9b,_9c){
_9c=_9c||{};
if(this.inited){
return;
}
this.factory=_9a;
if(_9b){
this.on("error",_9b);
}else{
if(this.events.error){
_9b=_2e(this,function(err){
this.emit("error",err);
});
}
}
this.depMaps=_99&&_99.slice(0);
this.depMaps.rjsSkipMap=_99.rjsSkipMap;
this.errback=_9b;
this.inited=true;
this.ignore=_9c.ignore;
if(_9c.enabled||this.enabled){
this.enable();
}else{
this.check();
}
},defineDepById:function(id,_9d){
var i;
_1e(this.depMaps,function(map,_9e){
if(map.id===id){
i=_9e;
return true;
}
});
return this.defineDep(i,_9d);
},defineDep:function(i,_9f){
if(!this.depMatched[i]){
this.depMatched[i]=true;
this.depCount-=1;
this.depExports[i]=_9f;
}
},fetch:function(){
if(this.fetched){
return;
}
this.fetched=true;
_4d.startTime=(new Date()).getTime();
var map=this.map;
if(this.shim){
_79(this,true)(this.shim.deps||[],_2e(this,function(){
return map.prefix?this.callPlugin():this.load();
}));
}else{
return map.prefix?this.callPlugin():this.load();
}
},load:function(){
var url=this.map.url;
if(!_47[url]){
_47[url]=true;
_4d.load(this.map.id,url);
}
},check:function(_a0){
if(!this.enabled||this.enabling){
return;
}
var id=this.map.id,_a1=this.depExports,_a2=this.exports,_a3=this.factory,err,_a4;
if(!this.inited){
this.fetch();
}else{
if(this.error){
this.emit("error",this.error);
}else{
if(!this.defining){
this.defining=true;
if(this.depCount<1&&!this.defined){
if(_1c(_a3)){
if(this.events.error){
try{
_a2=_4d.execCb(id,_a3,_a1,_a2);
}
catch(e){
err=e;
}
}else{
_a2=_4d.execCb(id,_a3,_a1,_a2);
}
if(this.map.isDefine){
_a4=this.module;
if(_a4&&_a4.exports!==undefined&&_a4.exports!==this.exports){
_a2=_a4.exports;
}else{
if(_a2===undefined&&this.usingExports){
_a2=this.exports;
}
}
}
if(err){
err.requireMap=this.map;
err.requireModules=[this.map.id];
err.requireType="define";
return _75((this.error=err));
}
}else{
_a2=_a3;
}
this.exports=_a2;
if(this.map.isDefine&&!this.ignore){
_46[id]=_a2;
if(req.onResourceLoad){
req.onResourceLoad(_4d,this.map,this.depMaps);
}
}
delete _43[id];
this.defined=true;
_4d.waitCount-=1;
if(_4d.waitCount===0){
_4a=[];
}
}
this.defining=false;
if(!_a0){
if(this.defined&&!this.defineEmitted){
this.defineEmitted=true;
this.emit("defined",this.exports);
this.defineEmitComplete=true;
}
}
}
}
}
},callPlugin:function(){
var map=this.map,id=map.id,_a5=_63(map.prefix,null,false,true);
on(_a5,"defined",_2e(this,function(_a6){
var _a7=this.map.name,_a8=this.map.parentMap?this.map.parentMap.name:null,_a9,_aa,_ab;
if(this.map.unnormalized){
if(_a6.normalize){
_a7=_a6.normalize(_a7,function(_ac){
return _52(_ac,_a8,true);
})||"";
}
_aa=_63(map.prefix+"!"+_a7,this.map.parentMap,false,true);
on(_aa,"defined",_2e(this,function(_ad){
this.init([],function(){
return _ad;
},null,{enabled:true,ignore:true});
}));
_ab=_43[_aa.id];
if(_ab){
if(this.events.error){
_ab.on("error",_2e(this,function(err){
this.emit("error",err);
}));
}
_ab.enable();
}
return;
}
_a9=_2e(this,function(_ae){
this.init([],function(){
return _ae;
},null,{enabled:true});
});
_a9.error=_2e(this,function(err){
this.inited=true;
this.error=err;
err.requireModules=[id];
_24(_43,function(mod){
if(mod.map.id.indexOf(id+"_unnormalized")===0){
_7e(mod.map.id);
}
});
_75(err);
});
_a9.fromText=function(_af,_b0){
var _b1=_14;
if(_b1){
_14=false;
}
_71(_63(_af));
req.exec(_b0);
if(_b1){
_14=true;
}
_4d.completeLoad(_af);
};
_a6.load(map.name,_79(map.parentMap,true,function(_b2,cb){
_b2.rjsSkipMap=true;
return _4d.require(_b2,cb);
}),_a9,_42);
}));
_4d.enable(_a5,this);
this.pluginMaps[_a5.id]=_a5;
},enable:function(){
this.enabled=true;
if(!this.waitPushed){
_4a.push(this);
_4d.waitCount+=1;
this.waitPushed=true;
}
this.enabling=true;
_1e(this.depMaps,_2e(this,function(_b3,i){
var id,mod,_b4;
if(typeof _b3==="string"){
_b3=_63(_b3,(this.map.isDefine?this.map:this.map.parentMap),false,!this.depMaps.rjsSkipMap);
this.depMaps[i]=_b3;
_b4=_4e[_b3.id];
if(_b4){
this.depExports[i]=_b4(this);
return;
}
this.depCount+=1;
on(_b3,"defined",_2e(this,function(_b5){
this.defineDep(i,_b5);
this.check();
}));
if(this.errback){
on(_b3,"error",this.errback);
}
}
id=_b3.id;
mod=_43[id];
if(!_4e[id]&&mod&&!mod.enabled){
_4d.enable(_b3,this);
}
}));
_24(this.pluginMaps,_2e(this,function(_b6){
var mod=_43[_b6.id];
if(mod&&!mod.enabled){
_4d.enable(_b6,this);
}
}));
this.enabling=false;
this.check();
},on:function(_b7,cb){
var cbs=this.events[_b7];
if(!cbs){
cbs=this.events[_b7]=[];
}
cbs.push(cb);
},emit:function(_b8,evt){
_1e(this.events[_b8],function(cb){
cb(evt);
});
if(_b8==="error"){
delete this.events[_b8];
}
}};
function _b9(_ba){
_71(_63(_ba[0],null,true)).init(_ba[1],_ba[2]);
};
function _bb(_bc,_bd,_be,_bf){
if(_bc.detachEvent&&!_11){
if(_bf){
_bc.detachEvent(_bf,_bd);
}
}else{
_bc.removeEventListener(_be,_bd,false);
}
};
function _c0(evt){
var _c1=evt.currentTarget||evt.srcElement;
_bb(_c1,_4d.onScriptLoad,"load","onreadystatechange");
_bb(_c1,_4d.onScriptError,"error");
return {node:_c1,id:_c1&&_c1.getAttribute("data-requiremodule")};
};
return (_4d={config:_42,contextName:_41,registry:_43,defined:_46,urlFetched:_47,waitCount:0,defQueue:_45,Module:_4c,makeModuleMap:_63,configure:function(cfg){
if(cfg.baseUrl){
if(cfg.baseUrl.charAt(cfg.baseUrl.length-1)!=="/"){
cfg.baseUrl+="/";
}
}
var _c2=_42.pkgs,_c3=_42.shim,_c4=_42.paths,map=_42.map;
_27(_42,cfg,true);
_42.paths=_27(_c4,cfg.paths,true);
if(cfg.map){
_42.map=_27(map||{},cfg.map,true,true);
}
if(cfg.shim){
_24(cfg.shim,function(_c5,id){
if(_1d(_c5)){
_c5={deps:_c5};
}
if(_c5.exports&&!_c5.exports.__buildReady){
_c5.exports=_4d.makeShimExports(_c5.exports);
}
_c3[id]=_c5;
});
_42.shim=_c3;
}
if(cfg.packages){
_1e(cfg.packages,function(_c6){
var _c7;
_c6=typeof _c6==="string"?{name:_c6}:_c6;
_c7=_c6.location;
_c2[_c6.name]={name:_c6.name,location:_c7||_c6.name,main:(_c6.main||"main").replace(_9,"").replace(_8,"")};
});
_42.pkgs=_c2;
}
_24(_43,function(mod,id){
mod.map=_63(id);
});
if(cfg.deps||cfg.callback){
_4d.require(cfg.deps||[],cfg.callback);
}
},makeShimExports:function(_c8){
var _c9;
if(typeof _c8==="string"){
_c9=function(){
return _30(_c8);
};
_c9.exports=_c8;
return _c9;
}else{
return function(){
return _c8.apply(_1,arguments);
};
}
},requireDefined:function(id,_ca){
return _22(_46,_63(id,_ca,false,true).id);
},requireSpecified:function(id,_cb){
id=_63(id,_cb,false,true).id;
return _22(_46,id)||_22(_43,id);
},require:function(_cc,_cd,_ce,_cf){
var _d0,id,map,_d1,_d2;
if(typeof _cc==="string"){
if(_1c(_cd)){
return _75(_3e("requireargs","Invalid require call"),_ce);
}
if(req.get){
return req.get(_4d,_cc,_cd);
}
_d0=_cc;
_cf=_cd;
map=_63(_d0,_cf,false,true);
id=map.id;
if(!_22(_46,id)){
return _75(_3e("notloaded","Module name \""+id+"\" has not been loaded yet for context: "+_41));
}
return _46[id];
}
if(_ce&&!_1c(_ce)){
_cf=_ce;
_ce=undefined;
}
if(_cd&&!_1c(_cd)){
_cf=_cd;
_cd=undefined;
}
_78();
while(_45.length){
_d2=_45.shift();
if(_d2[0]===null){
return _75(_3e("mismatch","Mismatched anonymous define() module: "+_d2[_d2.length-1]));
}else{
_b9(_d2);
}
}
_d1=_71(_63(null,_cf));
_d1.init(_cc,_cd,_ce,{enabled:true});
_8f();
return _4d.require;
},undef:function(id){
var map=_63(id,null,true),mod=_43[id];
delete _46[id];
delete _47[map.url];
delete _44[id];
if(mod){
if(mod.events.defined){
_44[id]=mod.events;
}
_7e(id);
}
},enable:function(_d3,_d4){
var mod=_43[_d3.id];
if(mod){
_71(_d3).enable();
}
},completeLoad:function(_d5){
var _d6=_42.shim[_d5]||{},_d7=_d6.exports&&_d6.exports.exports,_d8,_d9,mod;
_78();
while(_45.length){
_d9=_45.shift();
if(_d9[0]===null){
_d9[0]=_d5;
if(_d8){
break;
}
_d8=true;
}else{
if(_d9[0]===_d5){
_d8=true;
}
}
_b9(_d9);
}
mod=_43[_d5];
if(!_d8&&!_46[_d5]&&mod&&!mod.inited){
if(_42.enforceDefine&&(!_d7||!_30(_d7))){
if(_61(_d5)){
return;
}else{
return _75(_3e("nodefine","No define call for "+_d5,null,[_d5]));
}
}else{
_b9([_d5,(_d6.deps||[]),_d6.exports]);
}
}
_8f();
},toUrl:function(_da,_db){
var _dc=_da.lastIndexOf("."),ext=null;
if(_dc!==-1){
ext=_da.substring(_dc,_da.length);
_da=_da.substring(0,_dc);
}
return _4d.nameToUrl(_da,ext,_db);
},nameToUrl:function(_dd,ext,_de){
var _df,_e0,pkg,_e1,_e2,i,_e3,url,_e4;
_dd=_52(_dd,_de&&_de.id,true);
if(req.jsExtRegExp.test(_dd)){
url=_dd+(ext||"");
}else{
_df=_42.paths;
_e0=_42.pkgs;
_e2=_dd.split("/");
for(i=_e2.length;i>0;i-=1){
_e3=_e2.slice(0,i).join("/");
pkg=_e0[_e3];
_e4=_df[_e3];
if(_e4){
if(_1d(_e4)){
_e4=_e4[0];
}
_e2.splice(0,i,_e4);
break;
}else{
if(pkg){
if(_dd===pkg.name){
_e1=pkg.location+"/"+pkg.main;
}else{
_e1=pkg.location;
}
_e2.splice(0,i,_e1);
break;
}
}
}
url=_e2.join("/")+(ext||".js");
url=(url.charAt(0)==="/"||url.match(/^[\w\+\.\-]+:/)?"":_42.baseUrl)+url;
}
return _42.urlArgs?url+((url.indexOf("?")===-1?"?":"&")+_42.urlArgs):url;
},load:function(id,url){
req.load(_4d,id,url);
},execCb:function(_e5,_e6,_e7,_e8){
return _e6.apply(_e8,_e7);
},onScriptLoad:function(evt){
if(evt.type==="load"||(_f.test((evt.currentTarget||evt.srcElement).readyState))){
_18=null;
var _e9=_c0(evt);
_4d.completeLoad(_e9.id);
}
},onScriptError:function(evt){
var _ea=_c0(evt);
if(!_61(_ea.id)){
return _75(_3e("scripterror","Script error",evt,[_ea.id]));
}
}});
};
req=_4=function(_eb,_ec,_ed,_ee){
var _ef=_10,_f0,_f1;
if(!_1d(_eb)&&typeof _eb!=="string"){
_f1=_eb;
if(_1d(_ec)){
_eb=_ec;
_ec=_ed;
_ed=_ee;
}else{
_eb=[];
}
}
if(_f1&&_f1.context){
_ef=_f1.context;
}
_f0=_12[_ef];
if(!_f0){
_f0=_12[_ef]=req.s.newContext(_ef);
}
if(_f1){
_f0.configure(_f1);
}
return _f0.require(_eb,_ec,_ed);
};
req.config=function(_f2){
return req(_f2);
};
if(!_2){
_2=req;
}
req.version=_5;
req.jsExtRegExp=/^\/|:|\?|\.js$/;
req.isBrowser=_d;
s=req.s={contexts:_12,newContext:_40};
req({});
_39(req);
if(_d){
_15=s.head=document.getElementsByTagName("head")[0];
_16=document.getElementsByTagName("base")[0];
if(_16){
_15=s.head=_16.parentNode;
}
}
req.onError=function(err){
throw err;
};
req.load=function(_f3,_f4,url){
var _f5=(_f3&&_f3.config)||{},_f6;
if(_d){
_f6=_f5.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");
_f6.type=_f5.scriptType||"text/javascript";
_f6.charset="utf-8";
_f6.setAttribute("data-requirecontext",_f3.contextName);
_f6.setAttribute("data-requiremodule",_f4);
if(_f6.attachEvent&&!(_f6.attachEvent.toString&&_f6.attachEvent.toString().indexOf("[native code")<0)&&!_11){
_14=true;
_f6.attachEvent("onreadystatechange",_f3.onScriptLoad);
}else{
_f6.addEventListener("load",_f3.onScriptLoad,false);
_f6.addEventListener("error",_f3.onScriptError,false);
}
_f6.src=url;
_19=_f6;
if(_16){
_15.insertBefore(_f6,_16);
}else{
_15.appendChild(_f6);
}
_19=null;
return _f6;
}else{
if(_e){
importScripts(url);
_f3.completeLoad(_f4);
}
}
};
function _f7(){
if(_18&&_18.readyState==="interactive"){
return _18;
}
_20(_2f(),function(_f8){
if(_f8.readyState==="interactive"){
return (_18=_f8);
}
});
return _18;
};
if(_d){
_20(_2f(),function(_f9){
if(!_15){
_15=_f9.parentNode;
}
_17=_f9.getAttribute("data-main");
if(_17){
src=_17.split("/");
_1a=src.pop();
_1b=src.length?src.join("/")+"/":"./";
if(!cfg.baseUrl){
cfg.baseUrl=_1b;
}
_17=_1a.replace(_8,"");
cfg.deps=cfg.deps?cfg.deps.concat(_17):[_17];
return true;
}
});
}
_3=function(_fa,_fb,_fc){
var _fd,_fe;
if(typeof _fa!=="string"){
_fc=_fb;
_fb=_fa;
_fa=null;
}
if(!_1d(_fb)){
_fc=_fb;
_fb=[];
}
if(!_fb.length&&_1c(_fc)){
if(_fc.length){
_fc.toString().replace(_6,"").replace(_7,function(_ff,dep){
_fb.push(dep);
});
_fb=(_fc.length===1?["require"]:["require","exports","module"]).concat(_fb);
}
}
if(_14){
_fd=_19||_f7();
if(_fd){
if(!_fa){
_fa=_fd.getAttribute("data-requiremodule");
}
_fe=_12[_fd.getAttribute("data-requirecontext")];
}
}
(_fe?_fe.defQueue:_13).push([_fa,_fb,_fc]);
};
_3.amd={jQuery:true};
req.exec=function(text){
return eval(text);
};
req(cfg);
return {require:_2,requirejs:_4,define:_3};
})(dojo.global);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container._Accessor"]){
dojo._hasResource["com.ibm.lconn.gadget.container._Accessor"]=true;
dojo.provide("com.ibm.lconn.gadget.container._Accessor");
dojo.require("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container.Topics");
dojo.require("com.ibm.lconn.gadget.resources.iRuntimeModule");
dojo.require("com.ibm.lconn.gadget.services.viewModifications");
dojo.require("com.ibm.lconn.gadget.services.lifecycleModifications");
dojo.require("com.ibm.lconn.gadget.services.set_title");
dojo.require("com.ibm.lconn.gadget.services.oauthPopupDialog");
dojo.require("com.ibm.lconn.gadget.services.sso_reauth_callback");
dojo.require("com.ibm.lconn.gadget.services.fake_handleRpcMethod");
dojo.require("com.ibm.lconn.gadget.services.tokenRefreshService");
dojo.require("com.ibm.lconn.gadget.services.urlSecurityService");
dojo.require("com.ibm.lconn.gadget.container.ICActions");
dojo.require("com.ibm.lconn.gadget.services.ICActionsContainer");
dojo.require("com.ibm.lconn.gadget.config.settings");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("lconn.core.config");
dojo.require("lconn.core.config.services");
dojo.require("lconn.core.util.LCDeferred");
dojo.require("lconn.core.util.LCDeferredList");
dojo.require("lconn.core.util.amdLoader");
dojo.require("lconn.core.url");
dojo.require("com.ibm.oneui.util.proxy");
dojo.require("dojo.cookie");
(function init_com_ibm_lconn_gadget_container__Accessor(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){
var _c=null;
var _d=lconn.core.util.amdLoader.require;
var _e=_7.security;
var _f="X-IC-Preload";
var _10=(function(){
var _11=navigator.appName;
var _12=navigator.userAgent.indexOf("Safari");
return (_12!==-1||_11==="Safari");
})();
var _13=_1.global.location;
var _14=(_1.config.locale||""),_15=_14.substr(0,Math.min(_14.length,2)),_16=_14.substr(Math.min(_14.length,3),Math.min(_14.length,5));
var _17=(function(){
var _18={"pt":"br","zh":"tw"};
var _19={"zh":"zh-cn","he":"iw","nb":"no"};
var _1a=_15;
if(_18[_15]&&_18[_15]==_16){
_1a=_1a+"-"+_16;
}
_1a=_19[_1a]||_1a;
if(!_1a){
_1a="en";
}
return _1a;
})();
var _1b=_4.opensocial,_1c=_2.parse(_13.toString(),_1b?_9(_2.getServiceUrl(_1b).toString()):"");
if(!_1.config.blankGif){
(function configBlankGif_(){
var _1d=_4.webresources,_1e=_2.parse(_13.toString(),_9(_2.getServiceUrl(_1d).toString()));
_1.config.blankGif=_1e.toString()+"/web/com.ibm.lconn.core.styles.oneui3/images/blank.gif";
})();
}
function _1f(){
var _20=new _5();
var _21=_3.versionStamp||"";
var _22=(_17&&_17!=="")?"cre.messages."+_17+":":"",_23="&_ic_versionStamp="+_21,_24=(_1.config.isDebug?"&debug=1&noCache=1":_23),_25=_1c.toString()+"/gadgets/js/cre.iruntime:cre.iwidget.event:cre.wire:cre.iwidget:cre.iwidget.itemset:"+"cre.util.stringify:cre.service.event:cre.osgadget:"+_22+"core:container:rpc:pubsub-2:views:embedded-experiences:open-views:selection:inline:actions:viewenhancements:shared-script-frame:"+"cre.service.people:ibm.connections.sharedialog:com.ibm.connections.sharedialog:"+"com.ibm.connections.ee:ibm.connections.ee:container.nongadget:"+"open-views.js?c=1"+_24;
if(!_1.global.cre$){
_8.debug("_Accessor.loadCreJs_ loading CRE JS from: "+_25);
_d([_25],function(){
_8.debug("_Accessor.loadCreJs_ SUCCESS: Load CRE JS");
_20.resolve();
_8.debug("_Accessor.__instance__ Exit load");
},function(_26){
_8.error("_Accessor.loadCreJs_ ERROR: "+_26);
_20.errback(_26);
});
}else{
_8.debug("_Accessor.loadCreJs_ SUCCESS: Load CRE JS via JS Bridge");
_20.resolve();
}
return _20;
};
function _27(_28){
var loc=_13;
cre$.config.SCHEME=loc.protocol.substring(0,loc.protocol.length-1);
cre$.config.HOST=loc.hostname;
cre$.config.PORT=(loc.port&&loc.port!=="")?loc.port:"";
cre$.config.CONTEXT_ROOT=_1c.path;
cre$.config.locales=[_17];
cre$.config.MAX_TOKEN_TTL=_e.gadgetTokenTTLSec;
};
function _29(_2a){
var cc={},CC=osapi.container.ContainerConfig;
cc[osapi.container.ServiceConfig.API_HOST]=[_1c.scheme,"://",_1c.authority].join("");
cc[osapi.container.ServiceConfig.API_PATH]=_1c.path+"/rpc";
cc[CC.TOKEN_REFRESH_INTERVAL]=_e.gadgetTokenTTLSec*1000;
cc[CC.GET_CONTAINER_TOKEN]=_b.getTokenRefresher();
cc[CC.GET_LANGUAGE]=function(){
return _15;
};
cc[CC.GET_COUNTRY]=function(){
return _16;
};
cc[CC.SET_PREFERENCES]=function(_2b,_2c,_2d){
var _2e=_a.getSiteTopic(_2c,_a.GadgetWindow.SET_PREFS);
_1.publish(_2e,[{"siteId":_2b,"gadgetUrl":_2c,"preferences":_2d}]);
};
if(_1.config.isDebug){
cc[CC.RENDER_DEBUG]=true;
cc[CC.RENDER_TEST]=true;
}
return cc;
};
function _2f(_30){
com.ibm.lconn.gadget.services.viewModifications.registerService(_30);
com.ibm.lconn.gadget.services.set_title.registerService(_30);
com.ibm.lconn.gadget.services.lifecycleModifications.registerService(_30);
com.ibm.lconn.gadget.services.oauthPopupDialog.registerService(_30);
com.ibm.lconn.gadget.services.sso_reauth_callback.registerService(_30);
com.ibm.lconn.gadget.services.fake_handleRpcMethod.registerService(_30);
_b.registerService(_30);
com.ibm.lconn.gadget.container.ICActions.__instance__().registerService(_30);
com.ibm.lconn.gadget.services.urlSecurityService.registerService(_30);
};
var _31=_1.declare("",[com.ibm.lconn.gadget.container.Accessor],{_commonContainerPromise:null,_iRuntimePromise:null,constructor:function(_32,_33){
_8.entering("com.ibm.lconn.gadget.container._Accessor.prototype","constructor",arguments);
this._commonContainerPromise=new _5();
this._iRuntimePromise=new _5();
_32.then(_1.hitch(this,"_loadComplete",_33),_1.hitch(this,"_loadError"));
_8.exiting("com.ibm.lconn.gadget.container._Accessor.prototype","constructor",arguments);
},getCommonContainer:function(){
return this._commonContainerPromise;
},getIRuntime:function(){
return this._iRuntimePromise;
},fakeOpen:function(){
var _34={"id":"0",eventType:"PRELOAD"};
var _35=_4.webresources,_36=_2.parse(_13.toString(),_9(_2.getServiceUrl(_35).toString()));
var _37=_36.toString();
var _38=_37+"/web/com.ibm.social.ee/ConnectionsEE.xml";
var c=document.getElementsByTagName("body")[0];
var div=_1.create("div",{id:dijit.getUniqueId("fake")},c);
div.display="none";
var def=[{definitionUrl:_38,placement:_1.attr(div,"id"),componentType:"gadget",instanceData:{renderParams:{},eeDataModel:{context:_34}}}];
if(cre$&&cre$.iRuntime){
cre$.iRuntime.loadWidgets(def).then(function(){
_1.cookie(_f,"true",{path:"/"});
},function(_39){
_8.error("_Accessor.fakeOpen ERROR: "+_39);
});
}
},_loadComplete:function(_3a,_3b){
_8.entering("com.ibm.lconn.gadget.container._Accessor.prototype","_loadComplete");
var _3c=_3b[0][1];
_27(_3a);
var _3d=_29(_3a),_3e=new osapi.container.Container(_3d);
_1.global.__CONTAINER="default";
_2f(_3e);
cre$.internalutil.setCREContainerToken(_3c.creToken);
_3e.updateContainerSecurityToken(null,cre$.internalutil.getCREContainerToken().token,_e.containerTokenCheckSec);
cre$.iRuntime.setCommonContainer(_3e,{configSecurityToken:false,configInlineOAH:true});
this._commonContainerPromise.resolve(_3e);
this._iRuntimePromise.resolve(cre$.iRuntime);
if((_e.preloadJS)||(_10&&(_e.preloadJSSafari))){
var _3f=this.getCookieVals_(_f);
if(!_3f||(!_3f.length>0)){
this.fakeOpen();
}
}
_8.exiting("com.ibm.lconn.gadget.container._Accessor.prototype","_loadComplete");
},getCookieVals_:function(_40){
var c=document.cookie,_41="(?:^|; )"+_1.regexp.escapeString(_40)+"=([^;]*)",_42,_43=new RegExp(_41),res,_44=[],i;
_42=c.match(new RegExp(_41,"g"));
if(_42&&_42.length>0){
i=_42.length;
while(i--){
res=_42[i];
_44.push(decodeURIComponent(res.match(_43)[1]));
}
}
return _44;
},_loadError:function(_45){
_8.error("_Accessor.prototype._loadError called.",_45);
this._commonContainerPromise.errback(_45);
this._iRuntimePromise.errback(_45);
}});
_1.mixin(com.ibm.lconn.gadget.container.Accessor,{__instance__:function(_46){
_8.entering("com.ibm.lconn.gadget.container._Accessor","__instance__");
if(_c===null){
var _47=_1f(),_48=_b.getContainerToken();
_c=new _31(new _6([_48,_47]),_46);
}else{
_8.debug("_Accessor.__instance__ Already called, skipping re-init");
}
_8.exiting("com.ibm.lconn.gadget.container._Accessor","__instance__");
return _c;
}});
})(dojo,lconn.core.url,lconn.core.config,lconn.core.config.services,lconn.core.util.LCDeferred,lconn.core.util.LCDeferredList,com.ibm.lconn.gadget.config.settings,com.ibm.lconn.gadget.util.trace,com.ibm.oneui.util.proxy,com.ibm.lconn.gadget.container.Topics,com.ibm.lconn.gadget.services.tokenRefreshService);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.Container"]){
dojo._hasResource["com.ibm.lconn.gadget.container.Container"]=true;
dojo.provide("com.ibm.lconn.gadget.container.Container");
dojo.require("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container.Handle");
dojo.declare("com.ibm.lconn.gadget.container.Container",null,{loadWidget:function(_1){
},preloadWidgets:function(_2){
},loadWidgets:function(_3){
},getGadgetInfo:function(_4){
}});
com.ibm.lconn.gadget.container.Container.__instance__=com.ibm.lconn.gadget.container.Container.__instance__||function(_5){
};
com.ibm.lconn.gadget.container.Container.RenderParam={TEST_MODE:"testmode"};
}


;if(!dojo._hasResource["lconn.core.util.promises"]){
dojo._hasResource["lconn.core.util.promises"]=true;
dojo.provide("lconn.core.util.promises");
dojo.require("lconn.core.util.LCDeferred");
dojo.require("lconn.core.util.LCDeferredList");
(function(_1,d,_2,_3){
_1.iFaceClass=d.declare("",null,{then:function(){
},cancel:function(){
}});
_1.isPromiseLike=function(_4){
if(_4&&(_4.then&&d.isFunction(_4.then))){
return true;
}else{
return false;
}
};
_1.deferredToPromise=function(_5){
if(_1.isPromiseLike(_5)){
return _5;
}else{
var p=new _2();
_5.addCallback(p,"callback");
_5.addErrback(p,"errback");
return p;
}
};
})(lconn.core.util.promises,dojo,lconn.core.util.LCDeferred,lconn.core.util.LCDeferredList);
}


;if(!dojo._hasResource["lconn.core.util.LCChainedDeferred"]){
dojo._hasResource["lconn.core.util.LCChainedDeferred"]=true;
dojo.provide("lconn.core.util.LCChainedDeferred");
dojo.require("lconn.core.util.LCDeferred");
dojo.require("lconn.core.util.promises");
(function(d,_1,_2){
d.declare("lconn.core.util.LCChainedDeferred",_1.iFaceClass,{_promiseChain:null,_deferred:null,_errored:false,constructor:function(_3){
this._deferred=new _2();
this._promiseChain=_3;
this._hitch();
},then:function(cb,_4){
return this._deferred.then(cb,_4);
},cancel:function(){
if(this._promiseChain.cancel){
return this._promiseChain.cancel.apply(this._promiseChain,arguments);
}else{
this._errback.apply(this,arguments);
}
},_errback:function(){
this._errored=true;
var _5=this._deferred;
_5.errback.apply(_5.errback,arguments);
},_callback:function(_6){
if(!this._errored){
if(_1.isPromiseLike(_6)){
this._promiseChain=_6;
this._hitch();
}else{
this._deferred.callback(_6);
}
}
},_hitch:function(){
this._promiseChain.then(dojo.hitch(this,"_callback"),dojo.hitch(this,"_errback"));
}});
})(dojo,lconn.core.util.promises,lconn.core.util.LCDeferred);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container._Handle"]){
dojo._hasResource["com.ibm.lconn.gadget.container._Handle"]=true;
dojo.provide("com.ibm.lconn.gadget.container._Handle");
dojo.require("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container.Handle");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("com.ibm.lconn.gadget.util.specHelper");
dojo.require("lconn.core.util.LCChainedDeferred");
dojo.require("lconn.core.util.LCDeferred");
(function(_1,_2,_3,_4,_5,_6){
function _7(_8){
if(_8){
if(_1.isString(_8)){
return _8;
}else{
return _1.attr(_8,"id");
}
}
return null;
};
var _9=_1.declare("",_2,{_accessor:null,_widgetSpec:null,_promise:null,_state:_2.UNLOADED,_originalPlacement:null,constructor:function(_a,_b,_c){
this._accessor=_a;
this._widgetSpec=_b;
this._originalPlacement=this._widgetSpec.placement;
if(_c){
this._state=_2.LOADING;
this._promise=_c;
_c.then(_1.hitch(this,"_loaded"),_1.hitch(this,this._failLoad));
}
},load:function(){
if(this._state===_2.UNLOADED){
this._state=_2.LOADING;
this._widgetSpec.placement=this._originalPlacement;
this._promise=this._withRuntime(_1.hitch(this,"_loading"),_1.hitch(this,"_failLoad"));
}
},_loading:function(_d){
alert("UNIMPLEMENTED: _loading()");
},_loaded:function(_e){
alert("UNIMPLEMENTED: _loaded()");
},_failLoad:function(){
this._state=_2.ERROR;
_3.error("_WidgetHandleBase - "+this._widgetSpec.componentType+" failed to load (%o): ",this._widgetSpec.definitionUrl);
this._widgetSpec.instanceData.errback.apply(null,arguments);
},unload:function(){
var _f=this._state;
if(_f===_2.LOADING||_f===_2.LOADED){
this._promise.then(_1.hitch(this,"_unload"),_1.hitch(this,"_failUnload"));
}
},_unload:function(_10){
alert("UNIMPLEMENTED: _unload()");
},_failUnload:function(){
this._state=_2.ERROR;
_3.error("_WidgetHandleBase - "+this._widgetSpec.componentType+" failed to load (%o): ",this._widgetSpec.definitionUrl);
},getState:function(){
return this._state;
},open:function(){
_3.log("open() is deprecated, use load() method instead.");
this.load();
},close:function(){
_3.log("close() is deprecated, use unload() method instead.");
this.unload();
}});
var _11=_1.declare("",[_9],{_widgetId:null,_loading:function(_12){
return _12.loadWidgets([_4.cloneSpec(this._widgetSpec)]).then(_1.hitch(this,"_loaded",_12),_1.hitch(this,"_failLoad"));
},_loaded:function(_13){
_3.debug("_WidgetHandleImpl - %s loaded successfully: %o",this._widgetSpec.componentType,this._widgetSpec.definitionUrl);
var _14=_7(this._widgetSpec.placement);
this._widgetId=_13.getWidgetIdByDomId(_14);
if(this._widgetId==null){
this._widgetId=this._originalPlacement;
}
this._state=_2.LOADED;
return _13;
},_unload:function(_15){
var wid=this._widgetId;
if(this._widgetId){
if(this._widgetSpec.componentType=="gadget"){
wid=_15.getWidgetIdByDomId(wid);
}
_15.unLoadWidgets([wid]);
this._widgetId=null;
this._promise=null;
this._state=_2.UNLOADED;
}
},getWidgetInfo:function(){
var _16=this._state,_17=this;
if(_16===_2.LOADING||_16===_2.LOADED){
return this._promise.then(function(_18){
return _18.getWidgetById(_17._widgetId);
});
}else{
var _19="Unable to call getWidgetInfo() when widget handle is not in loaded state.  State of handle is:  "+this._state;
_3.debug(_19);
var _1a=new _6();
_1a.reject(_19);
return (_1a);
}
},_withRuntime:function(_1b,_1c){
return new _5(this._accessor.getIRuntime().then(_1b,_1c));
}});
var _1d=_1.declare("",[_9],{_gadgetSite:null,_withRuntime:function(_1e,_1f){
return new _5(this._accessor.getCommonContainer().then(_1e,_1f));
},_execCallback:function(){
try{
var _20=this._widgetSpec.instanceData||{},_21=_20.callback;
if(_21){
if(_1.isString(_21)){
_21=_1.global[_21];
if(_21){
_21();
}
}else{
_21();
}
}
}
catch(e){
}
}});
var _22=_1.declare("",[_1d],{_placement:null,_loading:function(cc){
var _23=this._widgetSpec,_24=_23.instanceData||{},_25=_24.renderParams||{},_26=_24.viewParams||{},_27=new _6();
this._placement=_23.placement;
var _28=this._gadgetSite||(this._gadgetSite=cc.newGadgetSite(_1.byId(_23.placement)));
var _29=_4.isInlineGadget(_23),_2a=(_29?cc.inline:cc);
if(!_25[osapi.container.RenderParam.VIEW]){
_25[osapi.container.RenderParam.VIEW]="home";
}
_2a.navigateGadget(_28,_23.definitionUrl,_26,_25,_1.hitch(this,"_loaded",cc,_27));
return _27;
},_loaded:function(cc,_2b,_2c){
if(_2c.error){
_2b.errback(_2c.error);
this._failLoad(_2c.error);
}else{
this._state=_2.LOADED;
_2b.callback(cc);
this._execCallback(_2c);
}
},_unload:function(cc){
cc.closeGadget(this._gadgetSite);
if(this._placement!=null){
this._widgetSpec.placement=this._placement;
}
this._gadgetSite=null;
this._state=_2.UNLOADED;
return null;
}});
var _2d=_1.declare("",[_1d],{_loading:function(cc){
var _2e=this._widgetSpec,_2f=_2e.instanceData||{},_30={},_31=_2f.eeDataModel||{},_32=new _6();
var _33=osapi.container.ee.RenderParam;
if(_2e.definitionUrl){
_30[_33.GADGET_RENDER_PARAMS]=_2f.renderParams||{};
_30[_33.GADGET_VIEW_PARAMS]=_2f.viewParams||{};
_31.gadget=_2e.definitionUrl;
}else{
_30[_33.URL_RENDER_PARAMS]=_2f.renderParams||{};
}
cc.ee.navigate(_1.byId(_2e.placement),_31,_30,_1.hitch(this,"_loaded",cc,_32));
return _32;
},_loaded:function(cc,_34,_35,_36){
if(_36&&_36.error){
_34.errback(_36.error);
this._failLoad(_36.error);
}else{
this._state=_2.LOADED;
this._gadgetSite=_35;
_34.callback(cc);
this._execCallback(_36);
}
},_unload:function(cc){
cc.ee.close(this._gadgetSite);
this._gadgetSite=null;
this._state=_2.UNLOADED;
return null;
}});
_2.__factory__=function(_37,_38,_39){
if(_4.isInlineEE(_38)){
throw "Inline EE gadgets are not permitted. Attempted to load: ";
}
if(!_39&&_4.isGadget(_38)){
if(_4.isEEGadget(_38)){
return new _2d(_37,_38);
}else{
return new _22(_37,_38);
}
}else{
return new _11(_37,_38,_39);
}
};
})(dojo,com.ibm.lconn.gadget.container.Handle,com.ibm.lconn.gadget.util.trace,com.ibm.lconn.gadget.util.specHelper,lconn.core.util.LCChainedDeferred,lconn.core.util.LCDeferred);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container._Container"]){
dojo._hasResource["com.ibm.lconn.gadget.container._Container"]=true;
dojo.provide("com.ibm.lconn.gadget.container._Container");
dojo.require("com.ibm.lconn.gadget.container.Container");
dojo.require("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container.Handle");
dojo.require("com.ibm.lconn.gadget.container._Handle");
dojo.require("com.ibm.lconn.gadget.services.people_container");
dojo.require("com.ibm.lconn.gadget.util.trace");
dojo.require("com.ibm.lconn.gadget.util.specHelper");
dojo.require("lconn.core.util.LCChainedDeferred");
dojo.require("lconn.core.util.LCDeferred");
dojo.require("lconn.core.util.promises");
(function init_com_ibm_lconn_gadget_container_Container(_1,_2,_3){
var _4=null,_5=_2.normalizeWidgetSpec,_6=_2.cloneSpec;
var _7=dojo.declare("",com.ibm.lconn.gadget.container.Container,{_accessor:null,constructor:function(_8){
this._accessor=_8;
},loadWidgets:function(_9){
_1.debug("Container's loadWidgets called");
var _a=this._accessor;
if(_9&&dojo.isArray(_9)){
var _b=_9.length,_c=null;
var _d=[];
var _e=[];
var _f=[];
while(_b--){
_d[_b]=_6(_5(_9[_b]));
_1.debug("_CONTAINER 1 widgetSpecs[idx].placement:  ",_9[_b].placement);
}
function _10(_11,_12){
dojo.forEach(_12,function(_13,i){
var _14=_f[_13.widgetObject.domId];
if(_13.isError()){
var err=_13.getError();
_1.error("Error (",_13.getError().message,") while loading widget: ",_13);
_14.errback(_13.getError());
}else{
_14.callback(_11);
}
});
};
function _15(_16){
_1.error("Error while loading widgets: ",_9);
dojo.forEach(_16,function(_17,i){
var _18=_f[i];
_18.errback(_16);
});
};
function _19(_1a){
if(dojo.isString(_1a)){
return _1a;
}
return _1a.id;
};
dojo.forEach(_9,function(_1b){
var _1c=new lconn.core.util.LCDeferred();
_f[_19(_1b.placement)]=_1c;
_e.push(_3.__factory__(_a,_1b,_1c));
});
_a.getIRuntime().then(function(_1d){
var _1e=dojo.hitch(null,_10,_1d);
_1d.loadWidgets(_d).then(_1e,_1e);
},_15);
return _e;
}else{
throw ("parameter must be an array: "+_9);
}
},loadWidget:function(_1f){
var _20=null;
_5(_1f);
_20=_3.__factory__(this._accessor,_1f);
_20.open();
return _20;
},preloadWidgets:function(_21){
if(_21&&dojo.isArray(_21)){
var idx=_21.length,_22=null;
while(idx--){
_5(_21[idx]);
}
return new lconn.core.util.LCChainedDeferred(this._accessor.getIRuntime().then(function(_23){
return _23.preloadWidgets(_21);
},function(_24){
_1.error("Error (",_24,") while preloading widgets: ",_21);
}));
}else{
var _22=new lconn.core.util.LCDeferred();
_22.errback("WidgetSpecs is undefined or a non-array type.");
return _22;
}
},getGadgetInfo:function(url){
var _25=new lconn.core.util.LCDeferred();
return new lconn.core.util.LCChainedDeferred(this._accessor.getCommonContainer().then(dojo.hitch(this,function(cc){
cc.preloadGadget(url,dojo.hitch(this,this._cb,_25,url));
return (_25);
}),dojo.hitch(this,function(_26){
_1.error("Error (",_26,") while getting gadget metadata:  ",url);
_25.resolve(null);
})));
},_cb:function(_27,url,_28){
if(_27!=null){
_27.resolve(_28[url]);
}else{
_1.error("Error while getting gadget metadata");
_27.resolve(null);
}
}});
dojo.mixin(com.ibm.lconn.gadget.container.Container,{__instance__:function(_29){
if(!_4){
_4=new _7(_29);
}
return _4;
}});
})(com.ibm.lconn.gadget.util.trace,com.ibm.lconn.gadget.util.specHelper,com.ibm.lconn.gadget.container.Handle);
}


;if(!dojo._hasResource["com.ibm.lconn.gadget.container.iContainer2"]){
dojo._hasResource["com.ibm.lconn.gadget.container.iContainer2"]=true;
dojo.provide("com.ibm.lconn.gadget.container.iContainer2");
dojo.require("com.ibm.lconn.gadget.container.Accessor");
dojo.require("com.ibm.lconn.gadget.container._Accessor");
dojo.require("com.ibm.lconn.gadget.container.Container");
dojo.require("com.ibm.lconn.gadget.container._Container");
dojo.require("com.ibm.lconn.gadget.container.Views");
dojo.require("com.ibm.lconn.gadget.container.ICActions");
dojo.require("com.ibm.lconn.gadget.services.ICActionsContainer");
dojo.require("com.ibm.lconn.gadget.services.ViewContainer");
dojo.require("com.ibm.lconn.gadget.util.trace");
(function init_com_ibm_lconn_gadget_container_iContainer2(){
var _1=com.ibm.lconn.gadget.container.iContainer2,_2=com.ibm.lconn.gadget.container.Container,_3=com.ibm.lconn.gadget.container.Accessor,_4=null,_5=null,_6=com.ibm.lconn.gadget.util.trace,_7=null,_8=new (dojo.declare("",null,{constructor:function(){
}}))();
_7=function(_9,_a){
var _b,_c,_d=_1;
for(_c in _9){
_c=_9[_c];
for(_b in _c){
if(!_8[_b]&&dojo.isFunction(_c[_b])){
_d[_b]=_a(_b);
}
}
}
};
_7([_3.prototype,_2.prototype],function(_e){
return function(){
var _f=arguments,_10=_1.init();
return _10[_e].apply(null,_f);
};
});
dojo.mixin(_1,{init:function(_11){
_6.entering("com.ibm.lconn.gadget.container.iContainer","init",_11);
_4=_3.__instance__(_11);
_5=_2.__instance__(_4);
_6.debug("Accessor: "+_4);
_6.debug("Container: "+_5);
_1.init=function(){
return _1;
};
_7([_3.prototype],function(_12){
return dojo.hitch(_4,_12);
});
_7([_2.prototype],function(_13){
return dojo.hitch(_5,_13);
});
_6.exiting("com.ibm.lconn.gadget.container.iContainer","init",_11);
return _1;
},views:com.ibm.lconn.gadget.container.Views.__instance__(),ICactions:com.ibm.lconn.gadget.container.ICActions.__instance__()});
if(dojo.global.__iContainer_skip_init__){
_6.debug("Defering iContainer init.");
}else{
dojo.ready(function(){
_1.init();
});
}
})();
}


;if(!dojo._hasResource["dojox.uuid._base"]){
dojo._hasResource["dojox.uuid._base"]=true;
dojo.provide("dojox.uuid._base");
dojox.uuid.NIL_UUID="00000000-0000-0000-0000-000000000000";
dojox.uuid.version={UNKNOWN:0,TIME_BASED:1,DCE_SECURITY:2,NAME_BASED_MD5:3,RANDOM:4,NAME_BASED_SHA1:5};
dojox.uuid.variant={NCS:"0",DCE:"10",MICROSOFT:"110",UNKNOWN:"111"};
dojox.uuid.assert=function(_1,_2){
if(!_1){
if(!_2){
_2="An assert statement failed.\n"+"The method dojox.uuid.assert() was called with a 'false' value.\n";
}
throw new Error(_2);
}
};
dojox.uuid.generateNilUuid=function(){
return dojox.uuid.NIL_UUID;
};
dojox.uuid.isValid=function(_3){
_3=_3.toString();
var _4=(dojo.isString(_3)&&(_3.length==36)&&(_3==_3.toLowerCase()));
if(_4){
var _5=_3.split("-");
_4=((_5.length==5)&&(_5[0].length==8)&&(_5[1].length==4)&&(_5[2].length==4)&&(_5[3].length==4)&&(_5[4].length==12));
var _6=16;
for(var i in _5){
var _7=_5[i];
var _8=parseInt(_7,_6);
_4=_4&&isFinite(_8);
}
}
return _4;
};
dojox.uuid.getVariant=function(_9){
if(!dojox.uuid._ourVariantLookupTable){
var _a=dojox.uuid.variant;
var _b=[];
_b[0]=_a.NCS;
_b[1]=_a.NCS;
_b[2]=_a.NCS;
_b[3]=_a.NCS;
_b[4]=_a.NCS;
_b[5]=_a.NCS;
_b[6]=_a.NCS;
_b[7]=_a.NCS;
_b[8]=_a.DCE;
_b[9]=_a.DCE;
_b[10]=_a.DCE;
_b[11]=_a.DCE;
_b[12]=_a.MICROSOFT;
_b[13]=_a.MICROSOFT;
_b[14]=_a.UNKNOWN;
_b[15]=_a.UNKNOWN;
dojox.uuid._ourVariantLookupTable=_b;
}
_9=_9.toString();
var _c=_9.charAt(19);
var _d=16;
var _e=parseInt(_c,_d);
dojox.uuid.assert((_e>=0)&&(_e<=16));
return dojox.uuid._ourVariantLookupTable[_e];
};
dojox.uuid.getVersion=function(_f){
var _10="dojox.uuid.getVersion() was not passed a DCE Variant UUID.";
dojox.uuid.assert(dojox.uuid.getVariant(_f)==dojox.uuid.variant.DCE,_10);
_f=_f.toString();
var _11=_f.charAt(14);
var _12=16;
var _13=parseInt(_11,_12);
return _13;
};
dojox.uuid.getNode=function(_14){
var _15="dojox.uuid.getNode() was not passed a TIME_BASED UUID.";
dojox.uuid.assert(dojox.uuid.getVersion(_14)==dojox.uuid.version.TIME_BASED,_15);
_14=_14.toString();
var _16=_14.split("-");
var _17=_16[4];
return _17;
};
dojox.uuid.getTimestamp=function(_18,_19){
var _1a="dojox.uuid.getTimestamp() was not passed a TIME_BASED UUID.";
dojox.uuid.assert(dojox.uuid.getVersion(_18)==dojox.uuid.version.TIME_BASED,_1a);
_18=_18.toString();
if(!_19){
_19=null;
}
switch(_19){
case "string":
case String:
return dojox.uuid.getTimestamp(_18,Date).toUTCString();
break;
case "hex":
var _1b=_18.split("-");
var _1c=_1b[0];
var _1d=_1b[1];
var _1e=_1b[2];
_1e=_1e.slice(1);
var _1f=_1e+_1d+_1c;
dojox.uuid.assert(_1f.length==15);
return _1f;
break;
case null:
case "date":
case Date:
var _20=3394248;
var _21=16;
var _22=_18.split("-");
var _23=parseInt(_22[0],_21);
var _24=parseInt(_22[1],_21);
var _25=parseInt(_22[2],_21);
var _26=_25&4095;
_26<<=16;
_26+=_24;
_26*=4294967296;
_26+=_23;
var _27=_26/10000;
var _28=60*60;
var _29=_20;
var _2a=_29*_28;
var _2b=_2a*1000;
var _2c=_27-_2b;
var _2d=new Date(_2c);
return _2d;
break;
default:
dojox.uuid.assert(false,"dojox.uuid.getTimestamp was not passed a valid returnType: "+_19);
break;
}
};
}


;if(!dojo._hasResource["dojox.uuid"]){
dojo._hasResource["dojox.uuid"]=true;
dojo.provide("dojox.uuid");
dojo.require("dojox.uuid._base");
}


;if(!dojo._hasResource["dijit.dijit"]){
dojo._hasResource["dijit.dijit"]=true;
dojo.provide("dijit.dijit");
dojo.require("dijit._base");
dojo.require("dojo.parser");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._Container");
dojo.require("dijit.layout._LayoutWidget");
dojo.require("dijit.form._FormWidget");
}

dojo.registerModulePath("com.ibm.lconn.socialmail", "../com.ibm.lconn.socialmail");

;if(!dojo._hasResource["lconn.core.header"]){
dojo._hasResource["lconn.core.header"]=true;
(function(){
dojo.provide("lconn.core.header");
dojo.require("lconn.core.theme");
dojo.require("lconn.core.widget.MenuLauncher");
lconn.core.header={initMenu:function(a,_1){
a._init=true;
var id=dojo.attr(a,"_lconn_menuid");
a.removeAttribute("_lconn_menuid");
var _2=new lconn.core.header.MenuLauncher({menuHref:dojo.attr(a,"src"),menuId:id,dialogTitle:dojo.attr(a,"aria-label"),focusNode:a,errorMessageText:dojo.attr(a,"errormessage")},a.parentNode);
_2[_1]();
},menuFocus:function(a){
if(!a._init){
this.initMenu(a,"onFocus");
}
},menuClick:function(a){
if(!a._init){
this.initMenu(a,"onClick");
}
},menuMouseover:function(a){
if(!a._init){
this.initMenu(a,"onMouseEnter");
}
},enableLanguageSelector:function(_3,_4,_5,_6,_7){
var dj=dojo;
var _8={path:"/"};
var _9=_7==-1?0:(_7/86400);
if(_9>0){
_8.expires=_9;
}
var _a=_6;
if(_a&&_a!="."){
dj.require("lconn.core.url");
var _b=lconn.core.url.parse(window.location.href);
var _c=_b.host;
_8.domain=_a+_c.substring(_c.indexOf("."),_c.length);
}
_3=dojo.byId(_3);
if(!_3){
console.log("language selector node not present in header or footer");
return;
}
try{
dj.require("lconn.core.LanguageSelector");
var _d=_3.nextSibling;
while(_d){
if(_d.nodeType==1){
dojo.removeClass(_d,"lotusFirst");
}
_d=_d.nextSibling;
}
_3.innerHTML="<a id='headerLanguageSelectorMenu' href='javascript:;' role='button' aria-haspopup='true'></a>";
_3.style.display="";
new lconn.core.LanguageSelector(_3.firstChild,_4,_5,_8);
}
catch(e){
console.error("lconn/core/LanguageSelector.js unavailable ");
console.error(e);
}
},switchTheme:lconn.core.theme.switchTheme};
dojo.declare("lconn.core.header.MenuLauncher",lconn.core.widget.MenuLauncher,{activeParent:0,_initMenuFinal:function(){
if(!dojo.getObject("lconn.core.header.Menu")){
var d=dojo;
d.provide("lconn.core.header.Menu");
dojo.declare("lconn.core.header.Menu",dijit.TooltipDialog,{autofocus:false,"class":"lotusNavMenu",isFailed:false,_errorMessageTemplate:["<div class=\"lotusMessage2 lotusWarning\" role=\"alert\">","<img class=\"lotusIcon lotusIconMsgWarning\" src=\""+dojo.config.blankGif+"\" alt=\"${rs_warning}\" />","<span class=\"lotusAltText\">${rs_a11y_warning}</span>","<div class=\"lotusMessageBody\">${message}</div>","</div>"].join(""),postCreate:function(){
this.inherited(arguments);
dijit.setWaiState(this.containerNode,"label",this.dialogTitle);
if(!this.errorMessageText){
var _e=dojo.i18n.getLocalization("dijit","loading");
if(_e){
this.errorMessageText=_e["errorState"];
}
}
if(this.errorMessageText){
this.errorMessage=dojo.string.substitute(this._errorMessageTemplate,dojo.mixin({message:this.errorMessageText},dojo.i18n.getLocalization("lconn.core","strings")));
}
},_attachTemplateNodes:function(){
this.inherited(arguments);
this.connect(this.domNode,"onmouseover","onMouseOver");
this.connect(this.domNode,"onmouseout","onMouseOut");
this.connect(this.domNode,"onclick","onMenuClick");
this.connect(this.domNode,"onclose","onClose");
},onClose:function(){
this.inherited(arguments);
if(this.domNode){
dojo.removeAttr(this.domNode.parentNode,"style");
}
},orient:function(_f,_10,_11){
this.domNode.className=this["class"]+" dijitTooltipAB"+(_11.charAt(1)=="L"?"Left":"Right");
var mb=dojo.marginBox(this.domNode);
var _12=false;
if(!this.isFailed){
var _13=dojo.attr(this.domNode.parentNode,"dijitpopupparent");
if(_13){
var _14=dojo.byId(_13);
if(_14){
var _15=dojo.attr(_14,"external-content-style");
if(_15){
var _16="";
var _17="";
var _18=_15.split(";");
for(var i=0;i<_18.length;i++){
var _19=_18[i].split(":");
if(_19[0]&&_19[1]){
if(_19[0]=="height"){
_16=_19[1];
}
if(_19[0]=="width"){
_17=_19[1];
}
}
}
if(_16=="auto"&&_17=="auto"){
_12=true;
}else{
if(_16=="auto"){
dojo.marginBox(_f,{w:mb.w});
_12=true;
}else{
if(_17=="auto"){
dojo.marginBox(_f,{h:mb.h});
_12=true;
}
}
}
}
}
}
}
if(!_12){
dojo.style(this.domNode,"height","");
dojo.style(this.domNode,"width","");
dojo.style(this.domNode.parentNode,"height","");
dojo.style(this.domNode.parentNode,"width","");
}
},onMenuClick:function(e){
var el=e.target;
for(var i=0;el&&i<5;i++){
if(el.nodeName.toLowerCase()=="a"){
if(dojo.isIE<9){
var _1a=el.style;
_1a.visibility="hidden";
setTimeout(function(){
_1a.visibility="";
},1);
}
this.onCancel();
return;
}else{
el=el.parentNode;
}
}
},_onError:function(_1b,err,_1c){
this.inherited(arguments);
this.isFailed=true;
},onDownloadError:function(_1d){
dojo.addClass(this.domNode,"lotusNavMenuError");
return this.inherited(arguments);
}});
}
this.menu=new lconn.core.header.Menu({widthAdjust:8,href:this.menuHref,dialogTitle:this.dialogTitle,id:this.menuId||undefined,errorMessageText:this.errorMessageText});
var _1e=dojo.attr(this.focusNode,"onmenuloaded");
if(_1e){
this.connect(this.menu,"onLoad",dojo.getObject(_1e));
}
},_initMenu:function(){
return this._whenDialog().addCallback(this,"_initMenuFinal");
},_whenDialog:function(){
var dfd=this._dlgDfd;
if(!dfd){
var d=dojo;
d.require("dijit.Dialog");
dfd=this._dlgDfd=new dojo.Deferred();
dfd.callback();
}
return dfd;
}});
})();
}


;if(!dojo._hasResource["lconn.core.i18nOverrider"]){
dojo._hasResource["lconn.core.i18nOverrider"]=true;
dojo.provide("lconn.core.i18nOverrider");
dojo.deprecated("lconn.core.i18nOverrider","Use standard resource bundle operations, stop requiring lconn.core.i18nOverrider.","3.5");
dojo.require("dojo.i18n");
if(lconn.core.i18nOverrider.originalFunction==null){
lconn.core.i18nOverrider.originalFunction=dojo.i18n.getLocalization;
}
dojo.i18n.getLocalization=function(_1,_2,_3){
try{
if(!_2&&_1){
dojo.deprecated("lconn.core.i18nOverrider","Accessing dojo.i18n.getLocalization with an empty bundle name for '"+_1+"' is deprecated and should be replaced with proper calls to dojo.i18n.getLocalization.","3.5");
return window[_1];
}
return lconn.core.i18nOverrider.originalFunction(_1,_2,_3);
}
catch(e){
console.error("Unable to access bundle",e);
throw e;
}
};
lconn.core.i18nOverrider.getResourceString=function(_4){
throw "Use dojo.i18n.getLocalization(...) instead";
};
lconn.core.i18nOverrider.loadResourceStringsInParams=function(_5,_6){
throw "Use dojo.i18n.getLocalization(...) instead";
};
lconn.core.i18nOverrider.replaceParams=function(_7,_8){
dojo.deprecated("lconn.core.i18nOverrider.replaceParams","Use dojo.string.substitute with ${} strings instead","3.5");
var _9=_7.indexOf("{");
if(_9!=-1){
var _a=_7.indexOf("}");
if(_a==-1){
return _7;
}
var _b=_7.substring(_9+1,_a);
var _c=_8[_b];
if(typeof _c=="undefined"){
_c="{"+_b+"}";
}
return _7.substring(0,_9)+_c+lconn.core.i18nOverrider.replaceParams(_7.substring(_a+1),_8);
}else{
return _7;
}
};
}


;if(!dojo._hasResource["lconn.core.utilities"]){
dojo._hasResource["lconn.core.utilities"]=true;
dojo.provide("lconn.core.utilities");
dojo.require("dojo.fx");
dojo.require("lconn.core.i18nOverrider");
dojo.require("lconn.core.url");
lconn.core.utilities.getHash=function(){
var _1=document.location.href;
var i=_1.indexOf("#");
if(i==-1){
return "";
}
return _1.substring(i+1);
};
lconn.core.utilities.getURLParam=function(_2,_3){
var _4=lconn.core.url.parse(window.location.href);
var _5=_4.queryParameters[_2];
if(_3&&_5===undefined&&_4.fragment){
_5=lconn.core.url.splitQuery(_4.fragment)[_2];
if(_5===undefined){
try{
var _6=decodeURIComponent(_4.fragment);
if(_6!=_4.fragment){
_5=lconn.core.url.splitQuery(_6)[_2];
}
}
catch(e){
}
}
}
if(dojo.isArray(_5)){
return _5[0];
}
return _5;
};
lconn.core.utilities.isCSSSpriteOn=function(){
var _7=document.createElement("img");
_7.className="lotusSprite lotusSprite-iconPublic16";
_7.style.display="none";
document.body.appendChild(_7);
var _8=dojo.style(_7).backgroundPosition;
var _9=_8&&_8!="0px 0px";
return _9;
};
lconn.core.utilities.replacePlaceHolders=function(_a,_b){
var _c=new Object();
for(var i=0;_b!=null&&i<_b.length;i++){
_c[""+i+""]=_b[i];
}
return lconn.core.i18nOverrider.replaceParams(_a,_c);
};
lconn.core.utilities.processUntilElementIsFound=function(_d,_e,_f,_10,_11,_12,_13){
if(typeof (_e)!="function"){
return;
}
var _14=500;
var _15=20;
var _16=true;
if(typeof (_12)=="number"){
_14=_12;
}
if(typeof (_13)=="number"){
_15=_13;
}
if(typeof (_11)=="boolean"){
_16=_11;
}
var _17="";
var _18=0;
var _19=null;
if(_f!=null){
_19=_f.getElementById(_d);
}else{
_19=dojo.byId(_d);
}
if(_19!=null){
_e(_19,_10);
return;
}
_17=window.setInterval(function(){
var _1a=null;
if(_f!=null){
_1a=_f.getElementById(_d);
}else{
_1a=dojo.byId(_d);
}
_18++;
if(_1a!=null){
window.clearInterval(_17);
_e(_1a,_10);
}else{
if(_18==_15){
window.clearInterval(_17);
if(_16){
throw new Error("lconn.core.utilities.processUntilElementIsFound: elementId was never found: "+_d);
}
}
}
},_14);
};
lconn.core.utilities.processUntilAvailable=function(_1b,_1c,_1d,_1e,_1f,_20){
if(typeof (_1b)!="function"){
return;
}
var _21=500;
var _22=20;
var _23=true;
if(typeof (_1f)=="number"){
_21=_1f;
}
if(typeof (_20)=="number"){
_22=_20;
}
if(typeof (_1e)=="boolean"){
_23=_1e;
}
var _24="";
var _25=0;
if(eval(_1c)){
if(_1d!=null){
_1b(_1d);
}else{
_1b();
}
return;
}
_24=window.setInterval(function(){
_25++;
if(eval(_1c)){
window.clearInterval(_24);
if(_1d!=null){
_1b(_1d);
}else{
_1b();
}
}else{
if(_25==_22){
window.clearInterval(_24);
if(_23){
throw new Error("lconn.core.utilities.processUntilAvailable: test was never met: "+_1c);
}
}
}
},_21);
};
lconn.core.utilities.gotoURL=function(url,_26){
if(_26==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 _27=url;
setTimeout("window.location.href = SideBar_RedirectUrl",0);
}else{
window.location.assign(url);
}
};
lconn.core.utilities.toggleVisibility=function(_28,_29){
var _2a=null;
if((typeof _28)=="string"){
_2a=dojo.byId(_28);
}else{
_2a=_28;
}
if(_2a){
if(_2a.style.visibility=="hidden"){
lconn.core.utilities.show(_2a,_29);
}else{
lconn.core.utilities.hide(_2a,_29);
}
}
return false;
};
lconn.core.utilities.hide=function(_2b,_2c,_2d,_2e){
var _2f=null;
if((typeof _2b)=="string"){
_2f=dojo.byId(_2b);
}else{
_2f=_2b;
}
if(_2f!=null){
var _30=function(){
_2f.style.visibility="hidden";
if(!_2c){
_2f.style.display="none";
}
if(_2e!=null){
_2e();
}
};
if(_2d==null||_2d==false){
var _31=dojo.fx.wipeOut({node:_2f,duration:300,onEnd:_30});
_31.play();
}else{
_30();
}
}
return false;
};
lconn.core.utilities.show=function(_32,_33,_34,_35,_36){
var _37=0;
var _38=null;
if((typeof _32)=="string"){
_38=dojo.byId(_32);
}else{
_38=_32;
}
if(_34&&_38==null){
var _39="";
_39=window.setInterval(function(){
_37++;
if((typeof _32)=="string"){
_38=dojo.byId(_32);
}else{
_38=_32;
}
if(_38!=null){
window.clearInterval(_39);
lconn.core.utilities.show(_38,_33,false,_35,_36);
}else{
if(_37==20){
window.clearInterval(_39);
}
}
},300);
}else{
if(_38!=null){
var _3a=function(){
_38.style.visibility="visible";
if(!_33){
_38.style.display="block";
}
if(_36!=null){
_36();
}
};
if(_35==null||_35==false){
var _3b=dojo.fx.wipeIn({node:_38,duration:300});
_3b.play();
}else{
_3a();
}
}
}
return false;
};
lconn.core.utilities.loadScript=function(_3c){
if(this.scripts==null){
this.scripts={};
}
if(!this.scripts[_3c]){
this.scripts[_3c]=true;
var _3d=document.createElement("script");
_3d.src=_3c;
document.body.insertBefore(_3d,document.body.firstChild);
}
};
lconn.core.utilities.getExtension=function(s){
if(!s){
return "";
}
var i=s.lastIndexOf(".");
if(i!=-1){
return dojo.trim(s.substring(i+1).toLowerCase());
}
return "";
};
lconn.core.utilities.getFileIconClassName=function(_3e,_3f){
var _3f=_3f||16;
var _40=lconn.core.utilities.getExtension(_3e);
_40=_40.replace(/[^a-z0-9]/g,"-");
var _41="lconn-ftype{size} lconn-ftype{size}-{ext}";
var _42=_41.replace(/\{size\}/g,_3f).replace(/\{ext\}/g,_40);
return _42;
};
lconn.core.utilities.isDefined=function(_43){
var _44=_43.indexOf(".");
var _45=true;
if(_44!=-1){
_45=lconn.core.utilities.isDefined(_43.substring(0,_44));
if(_45){
var _46=eval("typeof( "+_43+") != 'undefined'");
return _46;
}else{
return false;
}
}else{
return (window[_43]!=null);
}
};
}


;if(!dojo._hasResource["lconn.core.xpath"]){
dojo._hasResource["lconn.core.xpath"]=true;
dojo.provide("lconn.core.xpath");
lconn.core.xpath.debug=false;
lconn.core.xpath.selectNodes=function(_1,_2,_3,_4){
var _5=function(_6,_7){
for(var x=0;x<_6.length;x++){
if(_7==_6[x].prefix){
return _6[x].nameSpaceURI;
}
}
return null;
};
var _8=function(_9,_a){
var _b="";
for(var x=0;_a!=null&&x<_a.length;x++){
_b+="xmlns:"+_a[x].prefix+"='"+_a[x].nameSpaceURI+"' ";
}
if(_b!=""&&dojo.isIE){
_9.setProperty("SelectionNamespaces",_b);
}
};
var _c=function(_d){
if(_d!=null){
return function(_e){
var _f=_5(_d,_e);
if(lconn.core.xpath.debug){
alert("getNameSpaceResolver: prefix: "+_e+" URI: "+_f);
}
if(lconn.core.xpath.debug&&(_f==null||_f=="")){
alert("getNameSpaceResolver: no namespace was found for prefix: "+_e);
}
return _f;
};
}else{
return null;
}
};
var _10=function(_11){
var _12=new Array;
_12=_13(_12,_11);
return _12;
};
var _13=function(_14,_15){
if(_15.documentElement){
for(var x=0;x<_15.documentElement.attributes.length;x++){
var att=_15.documentElement.attributes[x];
var _16=att.nodeName.indexOf(":");
if(_16!=-1){
if(att.nodeName.substring(0,_16).toLowerCase()=="xmlns"){
var _17=att.nodeName.substring(_16+1);
var _18=_5(_14,_17);
if(lconn.core.xpath.debug){
alert("addNamesSpaceFromRootElement: current prefix: "+_17+" nameSpaceURI: "+_18);
}
if(_18==null){
_18=att.nodeValue;
if(lconn.core.xpath.debug){
alert("addNamesSpaceFromRootElement: adding prefix: "+_17+" nameSpaceURI: "+_18+" to the list");
}
_14.push({prefix:_17,nameSpaceURI:_18});
}
}
}
}
}
return _14;
};
if(_2==null){
throw Error("lconn.core.xpath.selectNodes : XMLDocument can not be null\n"+common_getStacktrace());
}
if(_3==null){
_3=_10(_2);
}else{
_3=_13(_3,_2);
}
for(var x=0;lconn.core.xpath.debug&&x<_3.length;x++){
alert(_3[x].prefix+":"+_3[x].nameSpaceURI);
}
if(_4==null&&(_2.documentElement!=null)){
_4=_2.documentElement;
}
if(dojo.isIE){
try{
_8(_2,_3);
return _4.selectNodes(_1);
}
catch(exception){
console.log(exception);
}
}else{
try{
var _19=_c(_3);
var _1a=0;
var _1b=null;
_1b=_2.evaluate(_1,_4,_19,_1a,_1b);
if(_1b!=null){
var _1c=new Array();
var $A=null;
while($A=_1b.iterateNext()){
_1c.push($A);
}
return _1c;
}
}
catch(exception){
console.log(exception);
}
}
};
lconn.core.xpath.selectSingleNode=function(_1d,_1e,_1f,_20){
var _21=lconn.core.xpath.selectNodes(_1d,_1e,_1f,_20);
if(_21==null){
return null;
}
return _21[0];
};
lconn.core.xpath.selectText=function(_22,_23,_24,_25){
var _26=lconn.core.xpath.selectSingleNode(_22,_23,_24,_25);
if(_26==null){
return null;
}
return _26.nodeValue;
};
lconn.core.xpath.setNodeValue=function(_27,_28,_29,_2a,_2b){
var _2c=lconn.core.xpath.selectSingleNode(_27,_28,_2a,_2b);
if(_2c!=null){
if(_2c.nodeType==1){
if(_2c.hasChildNodes()){
var _2d=_2c.firstChild;
_2c.replaceChild(_28.createTextNode(_29),_2d);
}else{
_2c.appendChild(_28.createTextNode(_29));
}
}else{
if(_2c.nodeType==2){
_2c.nodeValue=_29;
}else{
if(_2c.nodeType==3){
_2c.nodeValue=_29;
}else{
alert("lconn.core.xpath.setNodeValue: nodeType: "+_2c.nodeType);
}
}
}
}else{
var _2e=_27.lastIndexOf("/");
if(_2e!=-1){
var _2f=_27.substring(_2e+2);
var tmp=_27.substring(_2e+1);
if(tmp.indexOf("@")==0){
var _30=_27.substring(0,_2e);
var _31=lconn.core.xpath.selectSingleNode(_28,_2b,_30,_2a);
if(_31==null){
alert("lconn.core.xpath.setNodeValue: couldn't find parent node for: "+_30+" orig "+_27);
return;
}
_31.setAttribute(_2f,_29);
return;
}
}
alert("lconn.core.xpath.setNodeValue: couldn't find node for: "+_27);
}
};
}

dojo.provide("dojo.cldr.nls.number")._built=true;
dojo.provide("dojo.cldr.nls.number.en");
dojo.cldr.nls.number.en={"scientificFormat":"#E0","exponential":"E","minusSign":"-","nativeZeroDigit":"0","decimal":".","currencySpacing-beforeCurrency-currencyMatch":"[:letter:]","currencySpacing-afterCurrency-currencyMatch":"[:letter:]","nan":"NaN","percentFormat":"#,##0%","list":";","percentSign":"%","currencySpacing-beforeCurrency-surroundingMatch":"[:digit:]","infinity":"\u221e","currencyFormat":"\xa4#,##0.00;(\xa4#,##0.00)","decimalFormat":"#,##0.###","perMille":"\u2030","currencySpacing-beforeCurrency-insertBetween":"\xa0","currencySpacing-afterCurrency-insertBetween":"\xa0","plusSign":"+","currencySpacing-afterCurrency-surroundingMatch":"[:digit:]","patternDigit":"#","group":","};

;if(!dojo._hasResource["dojo.number"]){
dojo._hasResource["dojo.number"]=true;
dojo.provide("dojo.number");
dojo.require("dojo.i18n");
dojo.requireLocalization("dojo.cldr","number",null,"ROOT,af,af-na,ar,ar-dz,ar-ma,ar-qa,ar-sa,ar-sy,ar-tn,ar-ye,as,az,be,bg,bn,bo,ca,cs,da,de,de-at,de-ch,de-de,de-li,el,el-cy,en,en-au,en-be,en-bw,en-bz,en-gb,en-ie,en-in,en-jm,en-mt,en-na,en-nz,en-tt,en-us,en-us-posix,en-za,en-zw,eo,es,es-cl,es-do,es-ec,es-es,es-gt,es-hn,es-mx,es-ni,es-pa,es-pe,es-pr,es-py,es-sv,es-us,es-uy,es-ve,et,eu,fa,fa-af,fi,fil,fo,fr,fr-be,fr-ca,fr-ch,fr-lu,ga,gl,gsw,gu,gv,ha,haw,he,hi,hr,hu,hy,id,ii,in,is,it,it-ch,iw,ja,ja-jp,ka,kk,kl,km,kn,ko,ko-kr,kok,kw,lt,lv,mk,ml,mo,mr,ms,ms-bn,mt,nb,ne,nl,nl-be,nn,no,nr,nso,om,or,pa,pa-arab,pa-pk,pl,ps,pt,pt-pt,ro,ru,sa,sh,si,sk,sl,so,sq,sr,sr-latn-me,sr-me,ss,st,sv,sw,sw-ke,ta,te,th,ti,tl,tn,tr,ts,uk,ur,ur-in,uz-af,uz-arab,ve,vi,xh,zh,zh-cn,zh-hant-hk,zh-hk,zh-tw,zu");
dojo.require("dojo.string");
dojo.require("dojo.regexp");
dojo.number.format=function(_1,_2){
_2=dojo.mixin({},_2||{});
var _3=dojo.i18n.normalizeLocale(_2.locale);
var _4=dojo.i18n.getLocalization("dojo.cldr","number",_3);
_2.customs=_4;
var _5=_2.pattern||_4[(_2.type||"decimal")+"Format"];
if(isNaN(_1)||Math.abs(_1)==Infinity){
return null;
}
return dojo.number._applyPattern(_1,_5,_2);
};
dojo.number._numberPatternRE=/[#0,]*[#0](?:\.0*#*)?/;
dojo.number._applyPattern=function(_6,_7,_8){
_8=_8||{};
var _9=_8.customs.group;
var _a=_8.customs.decimal;
var _b=_7.split(";");
var _c=_b[0];
_7=_b[(_6<0)?1:0]||("-"+_c);
if(_7.indexOf("%")!=-1){
_6*=100;
}else{
if(_7.indexOf("\u2030")!=-1){
_6*=1000;
}else{
if(_7.indexOf("\xa4")!=-1){
_9=_8.customs.currencyGroup||_9;
_a=_8.customs.currencyDecimal||_a;
_7=_7.replace(/\u00a4{1,3}/,function(_d){
var _e=["symbol","currency","displayName"][_d.length-1];
return _8[_e]||_8.currency||"";
});
}else{
if(_7.indexOf("E")!=-1){
throw new Error("exponential notation not supported");
}
}
}
}
var _f=dojo.number._numberPatternRE;
var _10=_c.match(_f);
if(!_10){
throw new Error("unable to find a number expression in pattern: "+_7);
}
if(_8.fractional===false){
_8.places=0;
}
return _7.replace(_f,dojo.number._formatAbsolute(_6,_10[0],{decimal:_a,group:_9,places:_8.places,round:_8.round}));
};
dojo.number.round=function(_11,_12,_13){
var _14=10/(_13||10);
return (_14*+_11).toFixed(_12)/_14;
};
if((0.9).toFixed()==0){
(function(){
var _15=dojo.number.round;
dojo.number.round=function(v,p,m){
var d=Math.pow(10,-p||0),a=Math.abs(v);
if(!v||a>=d||a*Math.pow(10,p+1)<5){
d=0;
}
return _15(v,p,m)+(v>0?d:-d);
};
})();
}
dojo.number._formatAbsolute=function(_16,_17,_18){
_18=_18||{};
if(_18.places===true){
_18.places=0;
}
if(_18.places===Infinity){
_18.places=6;
}
var _19=_17.split(".");
var _1a=(_18.places>=0)?_18.places:(_19[1]&&_19[1].length)||0;
if(!(_18.round<0)){
_16=dojo.number.round(_16,_1a,_18.round);
}
var _1b=String(Math.abs(_16)).split(".");
var _1c=_1b[1]||"";
if(_18.places){
var _1d=dojo.isString(_18.places)&&_18.places.indexOf(",");
if(_1d){
_18.places=_18.places.substring(_1d+1);
}
_1b[1]=dojo.string.pad(_1c.substr(0,_18.places),_18.places,"0",true);
}else{
if(_19[1]&&_18.places!==0){
var pad=_19[1].lastIndexOf("0")+1;
if(pad>_1c.length){
_1b[1]=dojo.string.pad(_1c,pad,"0",true);
}
var _1e=_19[1].length;
if(_1e<_1c.length){
_1b[1]=_1c.substr(0,_1e);
}
}else{
if(_1b[1]){
_1b.pop();
}
}
}
var _1f=_19[0].replace(",","");
pad=_1f.indexOf("0");
if(pad!=-1){
pad=_1f.length-pad;
if(pad>_1b[0].length){
_1b[0]=dojo.string.pad(_1b[0],pad);
}
if(_1f.indexOf("#")==-1){
_1b[0]=_1b[0].substr(_1b[0].length-pad);
}
}
var _20=_19[0].lastIndexOf(",");
var _21,_22;
if(_20!=-1){
_21=_19[0].length-_20-1;
var _23=_19[0].substr(0,_20);
_20=_23.lastIndexOf(",");
if(_20!=-1){
_22=_23.length-_20-1;
}
}
var _24=[];
for(var _25=_1b[0];_25;){
var off=_25.length-_21;
_24.push((off>0)?_25.substr(off):_25);
_25=(off>0)?_25.slice(0,off):"";
if(_22){
_21=_22;
delete _22;
}
}
_1b[0]=_24.reverse().join(_18.group||",");
return _1b.join(_18.decimal||".");
};
dojo.number.regexp=function(_26){
return dojo.number._parseInfo(_26).regexp;
};
dojo.number._parseInfo=function(_27){
_27=_27||{};
var _28=dojo.i18n.normalizeLocale(_27.locale);
var _29=dojo.i18n.getLocalization("dojo.cldr","number",_28);
var _2a=_27.pattern||_29[(_27.type||"decimal")+"Format"];
var _2b=_29.group;
var _2c=_29.decimal;
var _2d=1;
if(_2a.indexOf("%")!=-1){
_2d/=100;
}else{
if(_2a.indexOf("\u2030")!=-1){
_2d/=1000;
}else{
var _2e=_2a.indexOf("\xa4")!=-1;
if(_2e){
_2b=_29.currencyGroup||_2b;
_2c=_29.currencyDecimal||_2c;
}
}
}
var _2f=_2a.split(";");
if(_2f.length==1){
_2f.push("-"+_2f[0]);
}
var re=dojo.regexp.buildGroupRE(_2f,function(_30){
_30="(?:"+dojo.regexp.escapeString(_30,".")+")";
return _30.replace(dojo.number._numberPatternRE,function(_31){
var _32={signed:false,separator:_27.strict?_2b:[_2b,""],fractional:_27.fractional,decimal:_2c,exponent:false};
var _33=_31.split(".");
var _34=_27.places;
if(_33.length==1||_34===0){
_32.fractional=false;
}else{
if(_34===undefined){
_34=_27.pattern?_33[1].lastIndexOf("0")+1:Infinity;
}
if(_34&&_27.fractional==undefined){
_32.fractional=true;
}
if(!_27.places&&(_34<_33[1].length)){
_34+=","+_33[1].length;
}
_32.places=_34;
}
var _35=_33[0].split(",");
if(_35.length>1){
_32.groupSize=_35.pop().length;
if(_35.length>1){
_32.groupSize2=_35.pop().length;
}
}
return "("+dojo.number._realNumberRegexp(_32)+")";
});
},true);
if(_2e){
re=re.replace(/([\s\xa0]*)(\u00a4{1,3})([\s\xa0]*)/g,function(_36,_37,_38,_39){
var _3a=["symbol","currency","displayName"][_38.length-1];
var _3b=dojo.regexp.escapeString(_27[_3a]||_27.currency||"");
_37=_37?"[\\s\\xa0]":"";
_39=_39?"[\\s\\xa0]":"";
if(!_27.strict){
if(_37){
_37+="*";
}
if(_39){
_39+="*";
}
return "(?:"+_37+_3b+_39+")?";
}
return _37+_3b+_39;
});
}
return {regexp:re.replace(/[\xa0 ]/g,"[\\s\\xa0]"),group:_2b,decimal:_2c,factor:_2d};
};
dojo.number.parse=function(_3c,_3d){
var _3e=dojo.number._parseInfo(_3d);
var _3f=(new RegExp("^"+_3e.regexp+"$")).exec(_3c);
if(!_3f){
return NaN;
}
var _40=_3f[1];
if(!_3f[1]){
if(!_3f[2]){
return NaN;
}
_40=_3f[2];
_3e.factor*=-1;
}
_40=_40.replace(new RegExp("["+_3e.group+"\\s\\xa0"+"]","g"),"").replace(_3e.decimal,".");
return _40*_3e.factor;
};
dojo.number._realNumberRegexp=function(_41){
_41=_41||{};
if(!("places" in _41)){
_41.places=Infinity;
}
if(typeof _41.decimal!="string"){
_41.decimal=".";
}
if(!("fractional" in _41)||/^0/.test(_41.places)){
_41.fractional=[true,false];
}
if(!("exponent" in _41)){
_41.exponent=[true,false];
}
if(!("eSigned" in _41)){
_41.eSigned=[true,false];
}
var _42=dojo.number._integerRegexp(_41);
var _43=dojo.regexp.buildGroupRE(_41.fractional,function(q){
var re="";
if(q&&(_41.places!==0)){
re="\\"+_41.decimal;
if(_41.places==Infinity){
re="(?:"+re+"\\d+)?";
}else{
re+="\\d{"+_41.places+"}";
}
}
return re;
},true);
var _44=dojo.regexp.buildGroupRE(_41.exponent,function(q){
if(q){
return "([eE]"+dojo.number._integerRegexp({signed:_41.eSigned})+")";
}
return "";
});
var _45=_42+_43;
if(_43){
_45="(?:(?:"+_45+")|(?:"+_43+"))";
}
return _45+_44;
};
dojo.number._integerRegexp=function(_46){
_46=_46||{};
if(!("signed" in _46)){
_46.signed=[true,false];
}
if(!("separator" in _46)){
_46.separator="";
}else{
if(!("groupSize" in _46)){
_46.groupSize=3;
}
}
var _47=dojo.regexp.buildGroupRE(_46.signed,function(q){
return q?"[-+]":"";
},true);
var _48=dojo.regexp.buildGroupRE(_46.separator,function(sep){
if(!sep){
return "(?:\\d+)";
}
sep=dojo.regexp.escapeString(sep);
if(sep==" "){
sep="\\s";
}else{
if(sep=="\xa0"){
sep="\\s\\xa0";
}
}
var grp=_46.groupSize,_49=_46.groupSize2;
if(_49){
var _4a="(?:0|[1-9]\\d{0,"+(_49-1)+"}(?:["+sep+"]\\d{"+_49+"})*["+sep+"]\\d{"+grp+"})";
return ((grp-_49)>0)?"(?:"+_4a+"|(?:0|[1-9]\\d{0,"+(grp-1)+"}))":_4a;
}
return "(?:0|[1-9]\\d{0,"+(grp-1)+"}(?:["+sep+"]\\d{"+grp+"})*)";
},true);
return _47+_48;
};
}

dojo.provide("net.jazz.ajax._xdbootstrap");dojo.mixin(dojo.getObject("net.jazz.ajax.config",true),{loaded:[],base:"/developerworks/community/connections/resources",params:"lang=en"},dojo.getObject("netJazzAjaxConfig",true));dojo.registerModulePath("net.jazz.ajax", "../net.jazz.ajax");

;if(!dojo._hasResource["net.jazz.ajax.xdloader"]){
dojo._hasResource["net.jazz.ajax.xdloader"]=true;
(function(){
var _1=dojo.provide("net.jazz.ajax.xdloader");
dojo.require("net.jazz.ajax._xdbootstrap");
if(window.djConfig){
djConfig.skipIeDomLoaded=true;
}
var _2=net.jazz.ajax;
var _3=_2.config;
var _4="_js_modules";
window[_4]=window[_4]||_3.loaded||[];
var _5="_js_url_rewriter";
window[_5]=typeof window[_5]==="function"?window[_5]:function(_6){
return _6;
};
var _7=new dojo._Url(_3.base);
var _8=(_7.scheme&&_7.authority)?(_7.scheme+"://"+_7.authority):"";
var _9=window[_5](_3.base);
var _a=_9+"/web/_xdloader";
var _b=_9+"/web/_js";
var _c=_3.params;
var _d=_3.etag;
var _e;
var _f=[];
var _10;
var _11=document.getElementsByTagName("head")[0];
if(!_11){
_11=document.getElementsByTagName("html")[0];
}
function _12(_13){
var _14=[],_15;
var _16;
var i=0;
var _17=[];
var _18=this;
var _19;
this.add=function(_1a,_1b){
_14=_14.concat(_1a);
_17.push(_1b);
};
this.addLayer=function(_1c,_1d,_1e){
_14=[].concat(_1c);
_15=_1d||[];
for(var i=0,l=_15.length;i<l;i++){
_15[i]+=".js";
}
_17.push(_1e);
};
function _1f(_20){
var _21=_15||window[_4];
var _22=_b+"?include="+_20.sort().join("~")+(_21.length>0?("&exclude="+_21.sort().join("~")+"~"):"")+(_d?("&etag="+encodeURIComponent(_d)):"")+(_c?("&"+_c):"");
return _22;
};
this.start=function(){
if(_e==_18){
_e=null;
}
_10=_18;
var _23,_24=[],_25={};
while(_23=_14.shift()){
if(!dojo.exists(_23)){
if(_25[_23]){
continue;
}
_25[_23]=1;
_24.push(_23+".js");
}
}
if(_24.length==0){
_26();
return;
}
var _27=_1f(_24);
var _28=document.createElement("script");
_28.type="text/javascript";
_28.src=_27;
_28.onload=function _onload(){
if(_28){
_28.onload=_28.onreadystatechange=null;
_28=null;
_26();
}
};
_28.onreadystatechange=function(){
if("loaded"===_28.readyState||"complete"===_28.readyState){
_onload();
}
};
_11.appendChild(_28);
};
this.loaded=function(_29,_2a){
_16=_2a;
_2b();
};
function _2b(){
if(i<_16.length){
var _2c=document.createElement("script");
_2c.type="text/javascript";
var src=_16[i++];
if(src.charAt(0)=="/"){
src=_8+src;
}
_2c.src=src;
_2c.onload=function _onload(){
if(_2c){
_2c.onload=_2c.onreadystatechange=null;
_2c=null;
_2b();
}
};
_2c.onreadystatechange=function(){
if("loaded"===_2c.readyState||"complete"===_2c.readyState){
_onload();
}
};
_11.appendChild(_2c);
}else{
_26();
}
};
function _26(){
if(_10==_18){
_10=null;
}
for(var k=0;k<_17.length;k++){
_17[k]();
}
if(_18.next){
_18.next.start();
}
};
function _2d(_2e){
console.error(_2e);
};
if(_13){
return;
}
if(_10){
var _2f=_10;
while(_2f.next){
_2f=_2f.next;
}
_2f.next=this;
}else{
setTimeout(this.start);
}
};
_1.loaded=function(_30,_31,_32){
window[_4]=window[_4].concat(_30);
if(!_10){
_10=new _12(true);
_10.add(_30,function(){
});
}
var _33=_31[0];
if(_33&&!_3.skipStyles){
if(_33.charAt(0)=="/"){
_33=_8+_33;
}
if(document.all&&document.styleSheets.length>31){
var _34;
for(var i=0;i<document.styleSheets.length;i++){
if(document.styleSheets[i].imports.length<32){
_34=document.styleSheets[i];
break;
}
}
if(_34!==null){
_34.addImport(_33);
}else{
throw new Error("No stylesheet is available to add an import to");
}
}else{
var _35=document.createElement("link");
_35.rel="stylesheet";
_35.type="text/css";
_35.href=_33;
_11.appendChild(_35);
}
}
_10.loaded(_30,_32);
};
_1.load_async=function(_36,_37,_38){
_1.batch_load_async([_36],_37,_38);
};
_1.batch_load_async=function(_39,_3a,_3b){
var _3c,_3d=[];
while(_3c=_39.shift()){
if(!dojo.exists(_3c)){
_3d.push(_3c);
}
}
if(_3d.length==0){
_3a();
}else{
if(_3b){
new _12().add(_3d,_3a);
}else{
if(!_e){
_e=new _12();
}
_e.add(_3d,_3a);
}
}
};
_1.load_layer_async=function(_3e,_3f,_40){
if(!dojo.isArray(_3e)){
_3e=[_3e];
}
if(!dojo.isArray(_3f)){
_3f=[_3f];
}
var _41=new _12();
_41.addLayer(_3e,_3f,_40);
};
})();
}


;if(!dojo._hasResource["lconn.core.CommonTags.AjaxCall"]){
dojo._hasResource["lconn.core.CommonTags.AjaxCall"]=true;
dojo.provide("lconn.core.CommonTags.AjaxCall");
dojo.declare("lconn.core.CommonTags.AjaxCall",null,{TAG_URL:"",REDIRECT_URL:"",TAG_TEMPLATE:"",URL_PARAMETERS:null,HANDLE_AS:null,getTags:function(_1,_2,_3){
var _4=this.generateTagParameters(_3);
var _5={url:this.TAG_URL,content:_4,handleAs:this.HANDLE_AS,timeout:30000,load:_1,error:dojo.hitch(this,this.handleError)};
dojo.xhrGet(_5);
},redirect:function(_6){
if(_6!="undefined"&&_6!=null){
if(this.REDIRECT_URL.indexOf("?")>0){
this.REDIRECT_URL=this.REDIRECT_URL.substring(0,this.REDIRECT_URL.indexOf("?"));
this.REDIRECT_URL+="?";
this.REDIRECT_URL=this.generateTagUrl(this.REDIRECT_URL,_6);
location.href=this.REDIRECT_URL;
}else{
this.REDIRECT_URL+="?";
this.REDIRECT_URL=this.generateTagUrl(this.REDIRECT_URL,_6);
location.href=this.REDIRECT_URL;
}
}else{
location.href=this.REDIRECT_URL;
}
},encodeTagParameter:function(_7){
var _8=_7.split(" ");
var _9=null;
for(var i=0;i<_8.length;i++){
var _a=_8[i];
if(i>0){
_9+=" "+encodeURIComponent(_a);
}else{
_9=encodeURIComponent(_a);
}
}
return _9;
},generateTagUrl:function(_b,_c){
for(var i in this.URL_PARAMETERS){
if(i!=this.TAG_TEMPLATE){
var _d=encodeURIComponent(this.URL_PARAMETERS[i]);
_b+=i+"="+_d+"&";
}
}
if(_c!="undefined"&&_c!=null&&_c!=""){
var _e=this.encodeTagParameter(_c);
_b+=this.TAG_TEMPLATE+"="+_e;
}
return _b;
},generateTagParameters:function(_f){
var _10={};
if(this.URL_PARAMETERS!=null){
_10=this.URL_PARAMETERS;
}
if(_f!="undefined"&&_f!=null){
_10[this.TAG_TEMPLATE]=_f;
}
return _10;
},getTotalTagNumber:function(_11,_12){
var _13={url:this.TAG_URL,content:{type:"count",search:_12},handleAs:"json",timeout:30000,load:function(_14){
_11(_14.total);
},error:dojo.hitch(this,this.handleError)};
dojo.xhrGet(_13);
},getPageTags:function(_15,_16,_17,_18){
var _19={url:this.TAG_URL,content:{type:"all",page:_16,ps:_17,search:_18},handleAs:this.HANDLE_AS,timeout:30000,load:_15,error:dojo.hitch(this,this.handleError)};
dojo.xhrGet(_19);
},handleError:function(){
},clearParamsFromUrl:function(url){
if(url.indexOf("?")>0){
url=url.substring(0,url.indexOf("?"));
}
return url;
}});
}


;if(!dojo._hasResource["lconn.core.CommonTags.FeedConverter"]){
dojo._hasResource["lconn.core.CommonTags.FeedConverter"]=true;
dojo.provide("lconn.core.CommonTags.FeedConverter");
dojo.declare("lconn.core.CommonTags.FeedConverter",null,{tagList:null,categoriesTagName:"app:categories",parseFeed:function(_1){
var _2=_1.documentElement.childNodes;
if(!_2){
return;
}
this.tagList=new Array();
for(var i=0;i<_2.length;i++){
if(_2[i].localName=="category"||_2[i].baseName=="category"){
var _3=this.generateTagObject(_2[i]);
this.tagList.push(_3);
}
}
return this.tagList;
},generateTagObject:function(_4){
var _5=new Object;
_5.name=_4.getAttribute("term");
var _6=_4.getAttribute("snx:frequency");
if(_6){
_5.frequency=parseInt(_6);
}
var _7=_4.getAttribute("snx:intensityBin");
if(_7){
_5.intensityBin=parseInt(_7);
}
return _5;
}});
}


;if(!dojo._hasResource["lconn.core.aria._Helper"]){
dojo._hasResource["lconn.core.aria._Helper"]=true;
dojo.provide("lconn.core.aria._Helper");
dojo.declare("lconn.core.aria._Helper",null,{allItems:null,selIdx:-1,_connects:null,detectInvert:false,invert:false,cycle:true,containerRole:"",itemRole:"",scrollVertical:true,scrollHorizontal:true,constructor:function(_1,_2){
dojo.safeMixin(this,_2||{});
this._connects=[];
var cn=this.containerNode=this._getNode(_1),ai=this.allItems=dojo.query(["[role='",this.itemRole,"']"].join(""),cn),_3=dojo.forEach;
if(this.detectInvert){
_3(ai,dojo.hitch(this,this._detectInvert));
}
for(var i=0,_4;_4=ai[i];i++){
if(this._isSelected(_4)){
this.selIdx=i;
break;
}
}
if(this.selIdx==-1){
this.selIdx=this._getSelIdx(!this.invert);
}
_3(ai,dojo.hitch(this,this._resetItem,ai[this.selIdx]));
this._connects.push(dojo.connect(cn,"onclick",this,"_onItemClick"));
this._connects.push(dojo.connect(cn,"onkeydown",this,"_onKeyDown"));
},destroy:function(){
dojo.forEach(this._connects,dojo.hitch(dojo,dojo.disconnect));
},focus:function(){
if(this.selIdx>=0){
dijit.focus(this.allItems[this.selIdx]);
}else{
this.focusNextItem();
}
},focusNextItem:function(){
this._focusItem(!this.invert);
},focusPrevItem:function(){
this._focusItem(this.invert);
},_focusItem:function(_5){
var ai=this.allItems,si=this._getSelIdx(_5);
if(si!=this.selIdx){
this._kickOut(ai[this.selIdx]);
this._kickIn(ai[si]);
dijit.focus(ai[si]);
this.selIdx=si;
}
},_getNode:function(_6){
var _7=dojo.byId(_6);
if(!_7){
throw [this.declaredClass,": "+_6," is not a valid node or id"].join("");
}
if(!dijit.hasWaiRole(_7,this.containerRole)){
throw [this.declaredClass," needs a source node with role='",this.containerRole,"'"].join("");
}
return _7;
},_kickOut:function(_8,i){
dojo.attr(_8,"tabindex",-1);
},_kickIn:function(_9,i){
dojo.removeAttr(_9,"tabindex");
},_onItemClick:function(e){
var _a=this._getIndexOfItemFromEvent(e);
if(_a!=-1){
this.selIdx=_a;
var _b=this.allItems[_a];
dojo.forEach(this.allItems,dojo.hitch(this,this._resetItem,_b));
}
},_getIndexOfItemFromEvent:function(e){
var _c=-1,_d;
do{
_d=_d?_d.parentNode:e.target;
_c=dojo.indexOf(this.allItems,_d);
}while(_c==-1&&_d&&_d!=this.containerNode);
return _c;
},_onKeyDown:function(e){
var dk=dojo.keys;
if(e.altKey||e.metaKey||e.ctrlKey||e.shiftKey){
return;
}
var _e=dojo._isBodyLtr()?dk.RIGHT_ARROW:dk.LEFT_ARROW;
var _f=dojo._isBodyLtr()?dk.LEFT_ARROW:dk.RIGHT_ARROW;
switch(e.keyCode){
case this.scrollHorizontal?_e:-1:
case this.scrollVertical?dk.DOWN_ARROW:-1:
dojo.stopEvent(e);
this.focusNextItem();
break;
case this.scrollHorizontal?_f:-1:
case this.scrollVertical?dk.UP_ARROW:-1:
dojo.stopEvent(e);
this.focusPrevItem();
break;
}
},_resetItem:function(sel,_10,i){
if(_10==sel){
this._kickIn(_10);
}else{
this._kickOut(_10);
}
},_detectInvert:function(_11,i){
var ps=[],pp=_11,n=0;
do{
ps.push(dojo.style(pp,"float"));
pp=pp.parentNode;
}while(pp!=this.containerNode&&n++<10);
var rh=(dojo._isBodyLtr()?"right":"left");
if(dojo.indexOf(ps,rh)!=-1){
this.invert=true;
}
},_isSelected:function(_12){
return false;
},_isHidden:function(_13){
var cn=this.containerNode;
var n=_13;
while(n&&n!=cn){
if(dojo.style(n,"display")=="none"||dijit.getWaiState(n,"hidden")=="true"){
return true;
}
n=n.parentNode;
}
return false;
},_getSelIdx:function(fwd){
var n=0,c=this.allItems.length,r=this.selIdx;
do{
r=fwd?this._nextSelIdx(r):this._prevSelIdx(r);
}while(this._isHidden(this.allItems[r])&&n++<c);
return r;
},_prevSelIdx:function(_14){
var ret=-1;
if(this.cycle){
ret=_14-1;
if(ret<0){
ret=this.allItems.length-1;
}
}else{
ret=Math.max(0,_14-1);
}
return ret;
},_nextSelIdx:function(_15){
var ret=-1;
if(this.cycle){
ret=_15+1;
if(ret>=this.allItems.length){
ret=0;
}
}else{
ret=Math.min(this.allItems.length-1,_15+1);
}
return ret;
}});
}


;if(!dojo._hasResource["lconn.core.aria.Toolbar"]){
dojo._hasResource["lconn.core.aria.Toolbar"]=true;
dojo.provide("lconn.core.aria.Toolbar");
dojo.require("lconn.core.aria._Helper");
dojo.declare("lconn.core.aria.Toolbar",lconn.core.aria._Helper,{containerRole:"toolbar",itemRole:"button"});
}


;dojo.cache("lconn.core", "CommonTags/templates/tagWidget.html", "<div> <div dojoAttachPoint=\"_tagMenu\"> <div dojoAttachPoint=\"_loadTags\"><img alt=\"${nls.rs_tagLoadingTags}\" src=\"${_blankGif}\" class=\"lotusLoading\" />${nls.rs_tagLoadingTags}</div> <div dojoAttachPoint=\"_noTags\" style=\"display:none;\">${nls.rs_tagCloudNoTags}</div> <div style=\"display:none\" dojoAttachPoint=\"_hasTags\"> <div dojoAttachPoint=\"_selectedTagsSection\" style=\"display:none;\"> <h3 style=\"border-bottom:0px;font-weight: bold;margin:0;padding:2px 0 0;\">${nls.rs_tagCloudSelectedTags}</h3> <ul class=\"lotusEditable lotusList lotusMeta\" dojoAttachPoint=\"_selectedTags\" role=\"listbox\"><li></li></ul> </div> </div> <div dojoAttachPoint=\"_tagSearchText\" style=\"display:none\"> <a href=\"javascript:void(0);\" class=\"lotusBold\" dojoAttachEvent=\"onclick: _showSearchForm\" role=\"button\" title=\"${nls.rs_tagCloudSeachDesc}\">${nls.rs_tagCloudSeachDesc}</a> </div> <div dojoAttachPoint=\"_tagSearchForm\" style=\"display:none\" class=\"lotusChunk lotusSearch\"> <form dojoAttachEvent=\"onsubmit: _searchTag\" style=\"margin:0;\"> <input class=\"lotusText\" dojoAttachPoint=\"_typeAheadDom\"/><span class=\"lotusBtnImg\" title=\"${nls.rs_tagCloudSeach}\"><input type=\"image\" class=\"lotusSearchButton\" src=\"${_blankGif}\" name=\"submit\" alt=\"${nls.rs_tagCloudSeach}\"/><a href=\"javascript:;\" dojoAttachEvent=\"onclick: _searchTag\" class=\"lotusAltText\" role=\"button\">${nls.rs_tagCloudSeach}</a></span> </form> </div> <div dojoAttachPoint=\"_relatedTagsSection\" style=\"display: none;\" class=\"lotusChunk10\"> <h3 style=\"border-bottom: 0px; font-weight: bold; margin:0; padding:2px 0 0;\">${nls.rs_tagCloudRelatedTags}</h3> <div>${nls.rs_tagCloudRelatedTagsDescription}</div> <ul class=\"lotusList lotusTags lotusRelatedTags\" dojoAttachPoint=\"_relatedTags\" role=\"listbox\"><li></li></ul> </div> <div dojoAttachPoint=\"_normalTagsSection\" style=\"display: none;\" class=\"lotusChunk10\" aria-label=\"${nls.rs_tagCloudNavigationLabel}\"> <div id=\"${id}_tagCloudView\" dojoAttachPoint=\"_tagCloudView\" style=\"display: none;\"> <div dojoAttachPoint=\"_tagCloudTable\" class=\"lotusTagCloud\"></div> </div> <div id=\"${id}_tagListView\" dojoAttachPoint=\"_tagListView\" style=\"display: none;\"> <ul id=\"${id}_tagList\" dojoAttachPoint=\"_tagList\" class=\"lotusList lotusEditable lotusMeta\" role=\"listbox\"><li></li></ul> </div> <div class=\"lotusChunk lotusSubsection\"> <div dojoAttachPoint=\"_tagCloudLink\" style=\"display: none;\"> <ul class=\"lotusInlinelist lotusActions\"> <li class=\"lotusFirst\"><span class=\"lotusBold\" dojoAttachPoint=\"_showCloudSpan\" role=\"button\" aria-controls=\"${id}_tagCloudView\" aria-disabled=\"true\" aria-pressed=\"true\" tabindex=\"0\">${nls.rs_viewAsCloud}</span></li> <li><a href=\"javascript:void(0);\" title=\"${nls.rs_viewAsListTitle}\" role=\"button\" aria-controls=\"${id}_tagListView\" dojoAttachPoint=\"_showListLink\" dojoAttachEvent=\"onclick: _showList\">${nls.rs_viewAsList}</a></li> <li dojoAttachPoint=\"_tagCloudAll\" style=\"display: none;\"><a href=\"javascript:void(0);\" title=\"${nls.rs_tagCloudViewAllTitle}\" role=\"button\" dojoAttachEvent=\"onclick:_showAllTags\">${nls.rs_tagCloudViewAll}</a></li> </ul> </div> <div dojoAttachPoint=\"_tagListLink\" style=\"display: none;\"> <ul class=\"lotusInlinelist lotusActions\"> <li class=\"lotusFirst\"><a href=\"javascript:void(0);\" title=\"${nls.rs_viewAsCloudTitle}\" role=\"button\" aria-controls=\"${id}_tagCloudView\" dojoAttachPoint=\"_showCloudLink\" dojoAttachEvent=\"onclick: _showCloud\">${nls.rs_viewAsCloud}</a></li> <li><span class=\"lotusBold\" dojoAttachPoint=\"_showListSpan\" role=\"button\" aria-controls=\"${id}_tagListView\" aria-disabled=\"true\" aria-pressed=\"true\" tabindex=\"0\">${nls.rs_viewAsList}</span></li> <li dojoAttachPoint=\"_tagListAll\" style=\"display: none;\"><a href=\"javascript:void(0);\" title=\"${nls.rs_tagCloudViewAllTitle}\" role=\"button\" dojoAttachEvent=\"onclick:_showAllTags\">${nls.rs_tagCloudViewAll}</a></li> </ul> </div> </div> </div> </div> </div>");

;if(!dojo._hasResource["lconn.core.CommonTags.TagWidget"]){
dojo._hasResource["lconn.core.CommonTags.TagWidget"]=true;
dojo.provide("lconn.core.CommonTags.TagWidget");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("lconn.core.aria.Toolbar");
dojo.require("lconn.core.TypeAheadDataStore");
dojo.require("lconn.core.CommonTags.CommonTagsTypeAhead");
dojo.require("lconn.core.CommonTags.AjaxCall");
dojo.require("lconn.core.CommonTags.FeedConverter");
dojo.declare("lconn.core.CommonTags.TagWidget",[dijit._Widget,dijit._Templated],{forRecentTags:false,loadOnStartup:true,tags:null,selectedTags:"",redirectUrl:"",urlParameters:null,tagTemplate:"",tagUrl:"",tagStore:null,ajaxCall:null,handleAs:"xml",feedConverter:null,_isRelated:false,disableRelated:false,multiSelected:true,typeAheadFeedUrl:"",typeAheadTemplate:"",tagDialogEnabled:false,redirectWhenClickTag:true,templatePath:dojo.moduleUrl("lconn.core","CommonTags/templates/tagWidget.html"),_selectedTagsArr:null,_viewType:"cloud",_showVis:null,_dialog:null,_showRelatedTags:false,postMixInProperties:function(){
this.inherited(arguments);
this.nls=dojo.i18n.getLocalization("lconn.core","strings");
if(!this.id){
this.id=dijit.getUniqueId("lconnTagWidget");
}
this._dirCode=dojo._isBodyLtr()?"":"\u200f";
},postCreate:function(){
this.inherited(arguments);
if(this.forRecentTags){
this._noTags.innerHTML=this.nls.rs_tagCloudNoRecentTags;
}
this.ajaxCall=this.createAjaxCall();
this.feedConverter=this.createFeedConverter();
this._createTypeAhead();
this.subscribe("com/ibm/lconn/tags/widget/reload",this.reload);
this.subscribe("lconn/core/CommonTags/AddTag",this._addSelectedTag);
this.subscribe("lconn/core/CommonTags/RemoveTag",this._removeSelectedTag);
if(this.loadOnStartup){
this.load();
}
},destroy:function(){
this.inherited(arguments);
this.destroyRelatedHelpers();
this.destroyNormalHelpers();
},destroyRelatedHelpers:function(){
if(this.relatedHelper){
this.relatedHelper.destroy();
}
this.relatedHelper=null;
},destroyNormalHelpers:function(){
if(this.listHelper){
this.listHelper.destroy();
}
this.listHelper=null;
if(this.cloudHelper){
this.cloudHelper.destroy();
}
this.cloudHelper=null;
},createAjaxCall:function(){
if(this.ajaxCall==null){
this.ajaxCall=new lconn.core.CommonTags.AjaxCall();
this.ajaxCall.TAG_URL=this.tagUrl;
this.ajaxCall.REDIRECT_URL=this.redirectUrl;
this.ajaxCall.TAG_TEMPLATE=this.tagTemplate;
this.ajaxCall.URL_PARAMETERS=this.urlParameters;
if(this.handleAs=="xml"||this.handleAs=="json"){
this.ajaxCall.HANDLE_AS=this.handleAs;
}else{
this.ajaxCall.HANDLE_AS="xml";
}
}
return this.ajaxCall;
},createFeedConverter:function(){
if(this.feedConverter==null){
this.feedConverter=new lconn.core.CommonTags.FeedConverter();
}
return this.feedConverter;
},load:function(){
this.reload(true);
},reload:function(_1,_2){
if(_2!=null){
this.ajaxCall.URL_PARAMETERS=_2;
}
_1=!!_1;
this.prepareData();
this.checkIfRelated();
if(this._isRelated==true){
this.ajaxCall.getTags(dojo.hitch(this,this.ajaxCallBack),_1,this.selectedTags);
}else{
this.ajaxCall.getTags(dojo.hitch(this,this.ajaxCallBack),_1);
}
},reloadTags:function(_3){
this.ajaxCall.URL_PARAMETERS=_3;
this.reload(false);
},ajaxCallBack:function(_4){
if(this.ajaxCall.HANDLE_AS=="json"){
this.tags=_4;
}else{
this.tags=this.feedConverter.parseFeed(_4);
}
this.updateView();
},checkIfRelated:function(){
if(this.selectedTags!=""&&this.selectedTags!="undefined"&&this.selectedTags!=null){
this._isRelated=true;
}else{
this._isRelated=false;
}
},updateView:function(){
this.prepareData();
this.checkIfRelated();
if(this._isRelated==true){
this._genSelectedTagsHtml();
if(!this.disableRelated){
this._genRelatedTagsHtml();
}
this._show();
}else{
this._genNormalTagsHtml();
this._show();
}
this._setFocus();
},prepareData:function(){
this._selectedTagsArr=new Array();
if(this.selectedTags!=null&&dojo.string.trim(this.selectedTags)!=""){
var _5=this.selectedTags.split(" ");
for(var i=0;i<_5.length;i++){
var _6=dojo.string.trim(_5[i]);
if(_6==""){
continue;
}
this._selectedTagsArr.push(_6);
}
}
this._selectedTagsArr=this._selectedTagsArr.sort();
this.selectedTags=this._selectedTagsArr.join(" ");
},_genRelatedTagsHtml:function(){
this.destroyRelatedHelpers();
this._relatedTags.innerHTML="";
this._showRelatedTags=false;
if(this.tags!=null){
var _7=this.tags.length;
for(var j=0;j<_7;j++){
var _8=this.tags[j];
if(lconn.core.CommonTags.TagTransform.existsInRelatedTags(_8.name,this._selectedTagsArr)){
continue;
}
var li=document.createElement("li");
dijit.setWaiRole(li,"presentation");
var a=document.createElement("a");
dijit.setWaiRole(a,"option");
a.href="javascript:;";
a.title=dojo.string.substitute(this.nls.rs_relatedTagTitle,[_8.name,_8.frequency]);
this.connect(a,"click",dojo.hitch(this,"_addSelectedTagFromEvent",_8.name));
var _9=document.createElement("span");
_9.className="lotusSymbol";
_9.innerHTML="+";
dojo.place(_9,a);
a=lconn.core.CommonTags.TagTransform.breakString(_8.name,document,a,10);
dojo.place(a,li);
dojo.place(document.createTextNode(this._dirCode+" "),li);
dojo.place(li,this._relatedTags);
this._showRelatedTags=true;
}
}
},_genNormalTagsHtml:function(){
this.destroyNormalHelpers();
this._tagCloudTable.innerHTML="";
this._tagList.innerHTML="";
if(this.tags!=null){
var _a=lconn.core.CommonTags.TagTransform.getPopularTags(this.tags,50);
lconn.core.CommonTags.TagTransform.addIntensityBin(_a);
var _b=document.createElement("ul");
dijit.setWaiRole(_b,"listbox");
_b.style.listStyleType="disc";
_b.tabIndex="-1";
for(var i=0;i<_a.length;i++){
var _c=_a[i];
var li=document.createElement("li");
dijit.setWaiRole(li,"presentation");
var a=document.createElement("a");
a.href="javascript:;";
a.className="lotusF"+(_c.intensityBin||3);
a.title=dojo.string.substitute(this.nls.rs_addTagTitle,[_c.name,_c.frequency]);
this.connect(a,"click",dojo.hitch(this,"_addSelectedTagFromEvent",_c.name));
dijit.setWaiRole(a,"option");
a=lconn.core.CommonTags.TagTransform.breakString(_c.name,document,a,10);
dojo.place(a,li);
dojo.place(document.createTextNode(this._dirCode+" "),li);
dojo.place(li,_b);
}
dojo.place(_b,this._tagCloudTable);
this.cloudHelper=new lconn.core.aria._Helper(_b,{containerRole:"listbox",itemRole:"option"});
var _d=lconn.core.CommonTags.TagTransform.getListTags(this.tags);
var _e=_d.length;
for(var j=0;j<_e;j++){
_c=_d[j];
var li=document.createElement("li");
dijit.setWaiRole(li,"presentation");
li.className="lotusAlignLeft";
var _f=document.createElement("span");
_f.className="lotusRight";
_f.innerHTML=_c.frequency;
li.appendChild(_f);
var a=document.createElement("a");
dijit.setWaiRole(a,"option");
dojo.addClass(a,"lotusLeft");
dojo.style(a,{"maxWidth":"130px","wordWrap":"break-word"});
a.href="javascript:;";
a.title=dojo.string.substitute(this.nls.rs_addTagTitle,[_c.name,_c.frequency]);
this.connect(a,"click",dojo.hitch(this,"_addSelectedTagFromEvent",_c.name));
lconn.core.CommonTags.TagTransform.breakString(_c.name,document,a,10);
li.appendChild(a);
li.appendChild(document.createTextNode(this._dirCode+" "));
dojo.place(li,this._tagList);
}
this.listHelper=new lconn.core.aria._Helper(this._tagList,{containerRole:"listbox",itemRole:"option"});
}
},_genSelectedTagsHtml:function(){
var el=this._selectedTags;
el.innerHTML="";
for(var i=0;i<this._selectedTagsArr.length;i++){
var _10=this._selectedTagsArr[i];
var li=document.createElement("li");
li.className="lotusAlignLeft";
var _11=document.createElement("span");
dojo.addClass(_11,"lotusLeft");
dojo.style(_11,{"maxWidth":"130px","wordWrap":"break-word"});
lconn.core.CommonTags.TagTransform.breakString(_10,document,_11,10);
li.appendChild(_11);
var a=document.createElement("a");
a.href="javascript:;";
a.className="lotusDelete lotusRight";
a.title=dojo.string.substitute(this.nls.rs_removeTagTitle,[_10]);
this.connect(a,"click",dojo.hitch(this,"_removeSelectedTagFromEvent",_10));
dojo.attr(a,"role","button");
a.appendChild(document.createTextNode("\xa0"));
var img=document.createElement("img");
img.alt="";
img.title=dojo.string.substitute(this.nls.rs_removeTagTitle,[_10]);
img.src=this._blankGif;
if(dojo.isIE<7){
img.style.verticalAlign="bottom";
}
dijit.setWaiRole(img,"presentation");
a.appendChild(img);
var _11=document.createElement("span");
_11.className="lotusAltText";
_11.appendChild(document.createTextNode("X"));
a.appendChild(_11);
li.appendChild(a);
el.appendChild(li);
}
},_addSelectedTagFromEvent:function(tag,_12){
try{
if(_12){
dojo.stopEvent(_12);
}
}
catch(e){
}
this._focusHint={related:true};
this._addSelectedTag(tag);
},_show:function(){
this._loadTags.style.display="none";
if((this.tags==null||this.tags.length==0)&&(this.selectedTags==null||dojo.string.trim(this.selectedTags)=="")){
if(this.forRecentTags){
this._tagSearchText.style.display="";
}else{
this._tagSearchText.style.display="none";
}
this._noTags.style.display="";
this._hasTags.style.display="none";
this._normalTagsSection.style.display="none";
}else{
this._noTags.style.display="none";
this._hasTags.style.display="";
if(!this._openedSearchForm){
this._tagSearchForm.style.display="none";
this._tagSearchText.style.display="";
}
if(this._isRelated==true){
this._normalTagsSection.style.display="none";
this._selectedTagsSection.style.display="";
this._showSearchForm(null,true);
if(this._showRelatedTags&&!this.disableRelated){
this._relatedTagsSection.style.display="";
}
}else{
this._selectedTagsSection.style.display="none";
this._relatedTagsSection.style.display="none";
this._normalTagsSection.style.display="";
if(this._viewType=="cloud"){
this._tagListLink.style.display="none";
this._tagListView.style.display="none";
this._tagListAll.style.display="none";
this._tagCloudLink.style.display="";
this._tagCloudView.style.display="";
if(this.tagDialogEnabled){
this._tagCloudAll.style.display="";
}
}else{
this._tagCloudLink.style.display="none";
this._tagCloudAll.style.display="none";
this._tagCloudView.style.display="none";
this._tagListLink.style.display="";
this._tagListView.style.display="";
if(this.tagDialogEnabled){
this._tagListAll.style.display="";
}
}
}
}
},_createTypeAhead:function(){
var _13=dijit.byId(this.id+"commonTagsTypeAhead");
if(_13!=null){
_13.destroy();
}
this.tagStore=this.tagStore||new lconn.core.TypeAheadDataStore({url:this.typeAheadFeedUrl,queryParam:this.typeAheadTemplate});
var _14={minChars:2,searchDelay:400,multipleValues:true,store:this.tagStore,token:" ","name":this.id+"commonTagsTypeAhead","id":this.id+"commonTagsTypeAhead"};
var _15=new lconn.core.CommonTags.CommonTagsTypeAhead(_14,this._typeAheadDom);
},_toggleSubs:function(){
if(this._tagMenu.style.display!="none"){
new dojo.fx.Toggler({node:this._tagMenu,showDuration:500,showFunc:dojo.fx.wipeOut}).show();
this._toggleBar.className="lotusSprite lotusArrow lotusTwistyClosed";
}else{
new dojo.fx.Toggler({node:this._tagMenu,showDuration:500,showFunc:dojo.fx.wipeIn}).show();
this._toggleBar.className="lotusSprite lotusArrow lotusTwistyOpen";
}
},_showSearchForm:function(e,_16){
var el=dijit.byId(this.id+"commonTagsTypeAhead");
this._tagSearchText.style.display="none";
this._tagSearchForm.style.display="";
if(el){
if(el.updateHintText){
el.updateHintText(_16?this.nls.rs_searchInputTagSelected:this.nls.rs_searchInputDefault);
}
if(e){
this._openedSearchForm=true;
dojo.stopEvent(e);
el.focus();
}
if(el.onSelect){
this.connect(el,"onSelect",dojo.hitch(this,"_searchTag",null));
}else{
if(el._doSelect){
this.connect(el,"_doSelect",dojo.hitch(this,"_searchTag",null));
}
}
}
},_popupHelp:function(_17){
dojo.stopEvent(_17);
var _18={tagWidget:this,event:_17};
dojo.publish("/tagWidget/help/show",[_18]);
},_showCloud:function(){
this._viewType="cloud";
this._show();
if(this.cloudHelper&&this.cloudHelper.focus){
this.cloudHelper.focus();
}else{
dijit.focus(this._showCloudSpan);
}
},_showList:function(){
this._viewType="list";
this._show();
if(this.listHelper&&this.listHelper.focus){
this.listHelper.focus();
}else{
dijit.focus(this._showListSpan);
}
},_loading:function(){
},_showAllTags:function(_19){
if(_19){
dojo.stopEvent(_19);
}
if(this._dialog==null){
var d=dojo;
d.require("lconn.core.CommonTags.TagDialog");
var _1a={ajaxCall:this.ajaxCall,feedConverter:this.feedConverter,tagWidget:this};
this._dialog=new lconn.core.CommonTags.TagDialog(_1a);
}
this._dialog.show();
},_searchTag:function(_1b,_1c){
try{
if(_1b){
dojo.stopEvent(_1b);
}
}
catch(e){
}
if(_1c){
if(typeof _1c=="string"){
var tag=_1c;
}else{
if(typeof _1c.name=="string"){
var tag=_1c.name;
}
}
}
var _1d=dijit.byId(this.id+"commonTagsTypeAhead");
if(!_1d){
return;
}
var _1e=_1d.domNode;
if(!_1e){
return;
}
if(!tag){
if(_1e.hasInput==false){
return;
}
var tag=_1e.value;
}
if(!tag){
return;
}
_1e.value="";
this._addSelectedTag(tag);
},_addSelectedTag:function(tag){
if(!tag){
return;
}
tag=tag.replace(new RegExp(" ","gm"),",");
var _1f=tag.split(",");
var _20=[];
if(this.multiSelected==true){
_20=this._selectedTagsArr||[];
for(var p=0;p<_1f.length;p++){
if(!_1f[p]||lconn.core.CommonTags.TagTransform.existsInRelatedTags(_1f[p],_20)){
continue;
}
_20.push(_1f[p]);
}
}else{
for(var p=0;p<_1f.length;p++){
if(!_1f[p]){
continue;
}
_20.push(_1f[p]);
}
}
if(_20.length>0){
if(this.multiSelected==true){
this._selectedTagsArr=_20;
}else{
this._selectedTagsArr.push(_20[0]);
}
this.selectedTags=this._selectedTagsArr.join(" ");
if(this.redirectWhenClickTag==false){
this.reload(false);
}else{
this.ajaxCall.redirect(this.selectedTags);
}
}else{
this.updateView();
}
},_removeSelectedTagFromEvent:function(tag,_21){
try{
if(_21){
dojo.stopEvent(_21);
}
}
catch(e){
}
var _22=this._selectedTagsArr||[];
this._focusHint={selected:dojo.indexOf(_22,tag)};
this._removeSelectedTag(tag);
},_removeSelectedTag:function(tag){
var _23=this._selectedTagsArr.length;
for(var i=0;i<_23;i++){
if(tag==this._selectedTagsArr[i]){
this._selectedTagsArr.splice(i,1);
break;
}
}
this.selectedTags=this._selectedTagsArr.join(" ");
if(this.redirectWhenClickTag==false){
this.reload(false);
}else{
this.ajaxCall.redirect(this.selectedTags);
}
},_setFocus:function(){
if(this.redirectWhenClickTag||!this._focusHint){
return;
}
var _24=this._focusHint;
this._focusHint=null;
var _25=null;
if(_24.related&&this._relatedTags){
_25=dojo.query("a",this._relatedTags)[0];
}else{
if(_24.selected>=0&&this._selectedTagsArr.length){
var _26=dojo.query("a",this._selectedTags);
_25=_26[_24.selected]||_26[_26.length-1];
}
}
if(!_25&&this._tagSearchForm.style.display!="none"){
_25=dojo.query("input",this._tagSearchForm)[0];
}
if(!_25&&this._tagSearchText.style.display!="none"){
_25=dojo.query("a",this._tagSearchText)[0];
}
if(_25){
dijit.focus(_25);
}
},setSelectedTags:function(_27){
if(_27!=null&&_27!="undefined"){
this._selectedTagsArr=_27;
this.selectedTags=this._selectedTagsArr.join(" ");
}
},setSingleTag:function(tag){
console.log("setting tag "+tag);
}});
dojo.declare("lconn.core.CommonTags._TagTransform",null,{getPopularTags:function(_28,_29){
if(_28==null||_28.length==0){
return [];
}
if(_28.length<=_29){
return _28.slice(0);
}
var _2a=[];
for(var i=0;i<_28.length;i++){
_2a.push(_28[i].frequency);
}
_2a=_2a.sort(function(a,b){
return a-b;
}).slice(_2a.length-_29);
var _2b=_2a[0];
var _2c=0;
while(_2a[_2c]==_2b){
_2c++;
}
var rtn=[];
var _2d=0;
for(var i=0;i<_28.length;i++){
if(_28[i].frequency>_2b){
rtn.push(_28[i]);
}else{
if(_28[i].frequency==_2b&&_2d<_2c){
rtn.push(_28[i]);
_2d++;
}
}
}
return rtn;
},getCloudTags:function(_2e){
if(_2e==null||_2e.length==0){
return [];
}
var _2f=this.sortByName(_2e);
this.addIntensityBin(_2f.tags);
return _2f.tags;
},addIntensityBin:function(_30){
if(_30==null||_30.length==0){
return [];
}
if(_30[0].intensityBin){
return _30;
}
var _31=_30.length;
var min=_30[0].frequency;
var max=_30[0].frequency;
for(var i=0;i<_31;i++){
var _32=_30[i].frequency;
if(_32<min){
min=_32;
}
if(_32>max){
max=_32;
}
}
var _33=0;
if(min!=max){
min=Math.log(1+min);
max=Math.log(1+max);
_33=max-min;
}
var _34=1;
var _35=5;
for(var i=0;i<_31;i++){
var tag=_30[i];
if(_33==0){
tag.intensityBin=Math.floor((_35+_34)/2);
}else{
tag.intensityBin=_34+Math.floor((_35-_34)*((Math.log(1+tag.frequency)-min)/_33));
}
}
return _30;
},getListTags:function(_36,_37){
if(_36==null||_36.length==0){
return [];
}
if(_37){
var _38=this.getTopCounts(_36,_37);
}else{
var _38=this.getTopCounts(_36);
}
var _36=this.sortByName(_36).tags;
var _39=new Array();
for(var i=0;i<_38.length;i++){
for(var j=0;j<_36.length;j++){
if(_36[j].frequency==_38[i]){
if(this.existsInArray(_36[j],_39)==false){
_39[i]=_36[j];
break;
}
}
}
}
return _39;
},existsInArray:function(tag,_3a){
for(var i=0;i<_3a.length;i++){
if(tag.name==_3a[i].name){
return true;
}
}
return false;
},existsInRelatedTags:function(tag,_3b){
for(var i=0;i<_3b.length;i++){
if(tag==_3b[i]){
return true;
}
}
return false;
},sortByName:function(_3c){
var _3d=new Array();
var map={};
for(var i=0;i<_3c.length;i++){
_3d.push(_3c[i].name);
map[_3c[i].name]=_3c[i].frequency;
}
_3d=_3d.sort();
var max=-1;
var min=-1;
var _3e=new Array();
for(var i=0;i<_3d.length;i++){
var _3f=_3d[i];
var _40=map[_3d[i]];
_3e[i]={name:_3f,frequency:_40};
if(max==-1){
max=_40;
}
if(min==-1){
min=_40;
}
max=Math.max(max,_40);
min=Math.min(min,_40);
}
return {tags:_3e,maxCount:max,minCount:min};
},getTopCounts:function(_41,_42){
var _43=new Array();
for(var i=0;i<_41.length;i++){
_43.push(_41[i].frequency);
}
_43=_43.sort(this.sortNumber).reverse();
if(_42!=null&&_42!="undefined"){
if(_42<=_43.length){
return _43.slice(0,_42);
}else{
return _43;
}
}else{
return _43.slice(0,10);
}
},sortNumber:function(a,b){
return a-b;
},breakString:function(s,d,el,_44){
if(!s){
return el;
}
_44=_44||10;
var b=new RegExp("[^\\s]{"+(_44+1)+"}","g");
var r;
var _45=0,end;
if(dojo.isIE||dojo.isSafari){
while(r=b.exec(s)){
end=--b.lastIndex;
el.appendChild(d.createTextNode(s.substring(_45,end)));
el.appendChild(d.createElement("wbr"));
_45=end;
}
}else{
while(r=b.exec(s)){
end=--b.lastIndex;
el.appendChild(d.createTextNode(s.substring(_45,end)+"\u200b"));
_45=end;
}
}
el.appendChild(d.createTextNode(s.substring(end)));
return el;
}});
lconn.core.CommonTags.TagTransform=new lconn.core.CommonTags._TagTransform();
}


;if(!dojo._hasResource["lconn.core.HTMLUtil"]){
dojo._hasResource["lconn.core.HTMLUtil"]=true;
dojo.provide("lconn.core.HTMLUtil");
lconn.core.HTMLUtil.setInnerTextNode=function(_1,_2){
_1.innerHTML="";
_1.appendChild(document.createTextNode(_2));
};
lconn.core.HTMLUtil.escapeInlineText=function(_3){
return lconn.core.HTMLUtil.escapeText(_3,true);
};
lconn.core.HTMLUtil.escapeText=function(_4,_5){
var _6=document.getElementById("escapeBufferDiv");
if(!_6){
var _7=document.createElement("div");
_7.id="escapeBufferDiv";
_7.style.display="none";
document.body.appendChild(_7);
_6=_7;
}
_6.appendChild(document.createTextNode(_4));
var _8=_6.innerHTML;
_6.innerHTML="";
if(_5){
_8=lconn.core.HTMLUtil.escape_q(_8);
}
return _8;
};
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.core.HelpLauncher"]){
dojo._hasResource["lconn.core.HelpLauncher"]=true;
dojo.provide("lconn.core.HelpLauncher");
dojo.require("dijit.TooltipDialog");
dojo.require("lconn.core.widget.MenuLauncher");
dojo.declare("lconn.core.HelpLauncher",lconn.core.widget.MenuLauncher,{openDelay:250,hideDelay:400,orient:{"TR":"TL","TL":"TR","BR":"BL","BL":"BR"},orientRTL:{"TL":"TR","TR":"TL","BL":"BR","BR":"BL"},_initMenu:function(){
this.menu=new lconn.core.HelpLauncher.ToolTip(dojo.mixin({id:this.menuId},this.optMenu));
},onOpen:function(){
this.inherited(arguments);
this.menu.containerNode.appendChild(document.createTextNode(""));
this.menu.domNode.parentNode.style.width=this.menu.width+22+"px";
}});
dojo.declare("lconn.core.HelpLauncher.ToolTip",dijit.TooltipDialog,{heading:"",message:"",help:"",close:"",autofocus:false,width:200,maxWidth:400,"class":"lotusTooltipDialog",parseOnLoad:false,postMixInProperties:function(){
this.isLoaded=true;
this.title=this.help;
},buildRendering:function(){
var _1=this.strings;
var d=document;
var m=this.message;
var _2=this.heading;
var _3=this.close;
var h3,p;
var el=d.createElement("div");
el.className="lotusHelp";
m=(m)?m:"";
var _4=(typeof (m)==="string")?m:(m.textContent||m.innerText);
var _5=_4.length;
var w=this.width+Math.min(Math.max(0,(_5-200)/125),1)*(this.maxWidth-this.width);
el.style.width=w+"px";
this.width=w;
dojo.style(el,"border","0px");
var _6=d.createElement("div");
_6.className="lotusInfoBox";
dijit.setWaiRole(_6,"document");
var _7=d.createElement("div");
_7.className="lotusRight";
var _8=this.closeLink=d.createElement("a");
_8.title=_3;
dijit.setWaiState(_8,"label",_3);
_8.className="lotusDelete";
_8.href="javascript:;";
this.connect(_8,"onclick","onCancel");
dijit.setWaiRole(_8,"button");
var _9=d.createElement("img");
_9.src=this._blankGif;
_9.setAttribute("alt",_3);
dijit.setWaiRole(_9,"presentation");
_8.appendChild(_9);
var _a=d.createElement("span");
_a.className="lotusAltText";
_a.appendChild(d.createTextNode("X"));
_8.appendChild(_a);
_7.appendChild(_8);
_6.appendChild(_7);
var _b=document.createElement("div");
_b.id=this.id+"_content";
_b.className="lotusHelpHeader";
dijit.setWaiState(_8,"describedBy",_b.id);
if(m){
if(_2){
h3=d.createElement("h3");
dijit.setWaiRole(h3,"heading");
dijit.setWaiState(h3,"level","1");
h3.appendChild(d.createTextNode(_2));
_6.appendChild(h3);
}
if(typeof (m)==="string"){
p=d.createElement("p");
p.appendChild(d.createTextNode(m));
_b.appendChild(p);
}else{
_b.appendChild(m);
}
}
_6.appendChild(_b);
el.appendChild(_6);
this.content=el;
this.inherited(arguments);
},destroy:function(){
dijit.popup.close(this);
this.inherited(arguments);
},closeOnLinkClick:true,_attachTemplateNodes:function(){
this.inherited(arguments);
this.connect(this.domNode,"onmouseover","onMouseOver");
this.connect(this.domNode,"onmouseout","onMouseOut");
if(this.closeOnLinkClick){
this.connect(this.domNode,"onclick","onTooltipClick");
}
},onTooltipClick:function(e){
var el=e.target;
for(var i=0;el&&i<5;i++){
if(el.nodeName.toLowerCase()=="a"&&el!=this.closeLink){
this.onCancel();
return;
}else{
if(el==this.containerNode){
return;
}else{
el=el.parentNode;
}
}
}
}});
lconn.core.HelpLauncher.createHelpLink=function(a,_c,_d,_e,_f){
var d=document;
this.strings=_e||lconn.core.HelpLauncher.strings;
a=a||document.createElement("a");
_f=_f||false;
if(!_f){
if(a.childNodes.length>0){
while(a.firstChild){
a.removeChild(a.firstChild);
}
}
a.href="javascript:;";
dijit.setWaiRole(a,"button");
var img=d.createElement("IMG");
img.className=(dojo.locale==="ar")?"lconnSprite lconnSprite-iconHelp16-ar":"lconnSprite lconnSprite-iconHelp16";
img.src=dijit._Widget.prototype._blankGif;
img.setAttribute("alt",this.strings.HELP);
a.appendChild(img);
var _10=d.createElement("span");
_10.className="lotusAltText";
_10.appendChild(d.createTextNode(dojo.locale==="ar"?"\u061f":"?"));
a.appendChild(_10);
}
new lconn.core.HelpLauncher({optMenu:{heading:_c,message:_d,help:this.strings.HELP,close:this.strings.CLOSE}},a);
return a;
};
lconn.core.HelpLauncher.strings={HELP:"Help",CLOSE:"Close"};
}

dojo.registerModulePath("com.ibm.oneui.ckeditor", "../com.ibm.oneui.ckeditor");

;if(!dojo._hasResource["com.ibm.oneui.ckeditor.editor.dojoconfig"]){
dojo._hasResource["com.ibm.oneui.ckeditor.editor.dojoconfig"]=true;
dojo.provide("com.ibm.oneui.ckeditor.editor.dojoconfig");
com.ibm.oneui.ckeditor.editor.dojoconfig.execCustomConfig=function(){
CKEDITOR.editorConfig=function(_1){
_1.dialog_backgroundCoverColor="black";
_1.dialog_backgroundCoverOpacity=0.3;
_1.skin="oneui3";
_1.dialog_startupFocusTab=true;
_1.colorButton_enableMore=false;
_1.resize_enabled=false;
_1.toolbarCanCollapse=false;
_1.toolbar="Large";
_1.disableNativeSpellChecker=false;
_1.forceEnterMode=true;
_1.useComputedState=true;
_1.ignoreEmptyParagraph=false;
_1.ibmFilterPastedDataUriImage=true;
_1.find_highlight={element:"span",styles:{"background-color":"#004","color":"#fff","border":"1px solid #004"}};
var _2="scayt|wsc|div|forms|about|resize";
var _3=new RegExp("(?:^|,)(?:"+_2+")(?=,|$)","g");
_1.plugins=_1.plugins.replace(_3,"");
_1.plugins+=",tableresize,sametimeemoticons,customdialogs,lotustoolbars,urllink,lotusstatusmessage,lotusbidi,lotuspastenotesdatalink,lotuspastevideo,lotuspasteiframe,lotustabletools,imagedatauri";
_1.pasteFromWordRemoveFontStyles=false;
_1.pasteFromWordRemoveStyles=false;
_1.menus={link:{buttonClass:"cke_button_link",commands:["link","bookmark"]},paste:{buttonClass:"cke_button_pastetext",groupName:"clipboard",commands:["paste","pastetext"]}};
};
};
}


;if(!dojo._hasResource["lconn.core.DateUtil"]){
dojo._hasResource["lconn.core.DateUtil"]=true;
dojo.provide("lconn.core.DateUtil");
dojo.require("dojo.i18n");
dojo.require("dojo.string");
dojo.require("dojo.date.locale");
dojo.requireLocalization("lconn.core","strings");
dojo.requireLocalization("dojo.cldr","gregorian");
dojo.require("lconn.core.Res");
var w={};
w.MILLS_IN_DAY=86400000;
w.inited=null;
w.Today="Error: not inited";
w.Yesterday="Error: not inited";
w.Tomorrow="Error: not inited";
w.initResStrings=function(){
var _1=new lconn.core.Res();
_1.loadDefaultBundle();
var b=_1.resBundle;
this.Today=b.rs_today;
this.Yesterday=b.rs_yesterday;
this.Tomorrow=b.rs_tomorrow;
this.inited=true;
};
w.delta=function(_2,_3){
var _4=_2.getTime()-_3;
var _5=Math.ceil(_4/(this.MILLS_IN_DAY));
return _5;
};
w.toString=function(_6,_7){
var _8;
if(!_6||!(_8=Date.parse(_6))){
console.log("Invalid date passed to DateUtil.toString(): "+_6);
return;
}
var _9="";
_9=this.toStringForTimeinMs(_8,_7);
return _9;
};
w.toStringForTimeinMs=function(_a,_b){
if(this.Days==null){
this.Days=dojo.i18n.getLocalization("dojo.cldr","gregorian")["days-format-wide"];
}
if(this.Month==null){
this.Month=dojo.i18n.getLocalization("dojo.cldr","gregorian")["months-format-abbr"];
}
if(this.inited==null){
this.initResStrings();
}
var _c=new Date();
_c.setHours(0,0,0,0);
var _d=new Date();
_d.setTime(_a);
var _e=this.delta(_c,_a);
var _f="";
if(_e<=2&&_e>=-2){
if(_e==2){
if(_b===undefined){
_f=this.Days[_d.getDay()]+" "+this.getLocalizedTime(_d);
}else{
_f=this.Days[_d.getDay()];
}
}else{
if(_e==1){
if(_b===undefined){
_f=this.Yesterday+" "+this.getLocalizedTime(_d);
}else{
_f=this.Yesterday;
}
}else{
if(_e==0){
if(_b===undefined){
_f=this.Today+" "+this.getLocalizedTime(_d);
}else{
_f=this.Today;
}
}else{
if(_e==-1){
_f=this.Tomorrow;
}else{
if(_e==-2){
_f=this.Days[_d.getDay()];
}
}
}
}
}
}else{
if(_c.getFullYear()==_d.getFullYear()){
var _10=djConfig.locale.substring(0,2).toLowerCase();
var _11="";
if(djConfig.locale.length>2){
_11=djConfig.locale.substring(3,5).toLowerCase();
}
if(_10=="en"&&(_11==""||_11=="us")){
_f=this.Month[_d.getMonth()]+" "+_d.getDate();
}else{
_f=this.getLocalizedDate(_d);
}
}else{
var _10=djConfig.locale.substring(0,2).toLowerCase();
var _11="";
if(djConfig.locale.length>2){
_11=djConfig.locale.substring(3,5).toLowerCase();
}
if(_10=="en"&&(_11==""||_11=="us")){
_f=this.Month[_d.getMonth()]+" "+_d.getDate()+", "+_d.getFullYear();
}else{
_f=this.getLocalizedDate(_d);
}
}
}
if(djConfig.locale=="ar"){
return "\u200f"+_f;
}
return _f;
};
w.getLocalizedTime=function(_12){
return dojo.date.locale.format(_12,{selector:"time",formatLength:"short",locale:djConfig.locale});
};
w.getLocalizedDate=function(_13){
return dojo.date.locale.format(_13,{selector:"date",formatLength:"medium",locale:djConfig.locale});
};
w.getLocaleString=function(_14){
var _15=new Date();
_15.setTime(_14);
return _15.toLocaleString();
};
lconn.core.DateUtil=w;
lconn.core.DateUtil.atomDateToJsDate=function atomDateToJsDate(_16){
var _17=null;
var s=_16;
var _18=(s.charAt(s.length-1)=="Z");
var _19=s.indexOf("-");
if(s.length>="yyyy-mm-ddThh:mm".length){
s=s.substring(_19-4);
var y=parseInt(s.substr(0,4));
var m=parseInt(s.substr(5,2),10)-1;
var d=parseInt(s.substr(8,2),10);
var h=parseInt(s.substr(11,2),10);
var mi=parseInt(s.substr(14,2),10);
var utc=0;
if(_18){
var _1a=s.substring(17,s.length-1);
var _1b=parseFloat(_1a);
utc=Date.UTC(y,m,d,h,mi)+_1b*1000;
}else{
var zh=0;
var zm=0;
var _1c=s.length-6;
var _1d=s.charAt(_1c);
if((_1d=="+"||_1d=="-")&&s.indexOf("T")<s.length-5){
var se=parseInt(s.substr(17,2),10);
var zh=parseInt(s.substr(_1c,3),10);
var zm=parseInt(s.substr(_1c+4,2),10);
}
utc=Date.UTC(y,m,d,h,mi,se)-(zh*60*60*1000+zm*60*1000);
}
_17=new Date(utc);
}
return _17;
};
lconn.core.DateUtil.AtomDateToString=function AtomDateToString(_1e,_1f){
var _20=lconn.core.DateUtil.atomDateToJsDate(_1e);
return _20?lconn.core.DateUtil.toString(_20,_1f):_1e;
};
}


;if(!dojo._hasResource["lconn.core.NameUtil"]){
dojo._hasResource["lconn.core.NameUtil"]=true;
dojo.provide("lconn.core.NameUtil");
dojo.require("lconn.core.HTMLUtil");
lconn.core.NameUtil={getHTML:function(_1,_2,_3,id,_4){
var _5;
var _6=lconn.core.HTMLUtil.escapeText(_3);
if(_2){
var _7=lconn.core.HTMLUtil.escapeText(_2);
if(_1){
_5=(_4?_1:lconn.core.HTMLUtil.escapeText(_1));
}else{
_5=_7;
}
return "<span"+(id?" id=\""+id+"\"":"")+"><span class=\"vcard\"><span class=\"fn person lotusPerson\">"+_5+"</span><span class=\"email\" style=\"display: none;\">"+_7+"</span><span class=\"x-lconn-userid\" style=\"display: none;\">"+_6+"</span></span></span>";
}else{
var _5;
var _8=lconn.core.HTMLUtil.escapeInlineText(_3);
if(_1){
_5=(_4?_1:lconn.core.HTMLUtil.escapeText(_1));
}else{
_5=_6;
}
return "<span"+(id?" id=\""+id+"\"":"")+"><span class=\"vcard\"><span class=\"fn person lotusPerson\">"+_5+"</span><span class=\"x-lconn-userid\" style=\"display: none;\">"+_6+"</span></span></span>";
}
}};
}


;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(_1,_2){
this.queryParam=(_1.queryParam?_1.queryParam:_2.getAttribute("queryParam"));
this.url=(_1.url?_1.url:_2.getAttribute("url"));
this.cache=[];
this.dirCache=[];
this.network=_1.network;
},queryParam:"",searchDirectory:false,cache:null,dirCache:null,network:null,fetch:function(_3){
var _4={};
var _5;
this.searchDirectory=(_3.queryOptions.searchDirectory?true:false);
if(this.searchDirectory){
_5=this.dirCache;
}else{
_5=this.cache;
}
if(typeof _5[_3.query.toLowerCase()]=="object"){
_3.count=_5.length;
_3.onComplete(_5[_3.query.toLowerCase()],_3);
return _3;
}
if(this.queryParam){
_4[this.queryParam]=_3.query;
}
if(this.searchDirectory){
_4.usedirectory="yes";
}
this.networkGet({url:this.url,content:_4,handleAs:"json-comment-optional",timeout:30000,load:dojo.hitch(this,function(_6){
var _7;
if(this.searchDirectory){
_7=this.dirCache;
}else{
_7=this.cache;
}
_3.count=_6.items.length;
_7[_3.query.toLowerCase()]=_6.items;
if(_3.onComplete){
_3.onComplete(_6.items,_3);
}
}),error:function(){
console.log("There was an error");
}});
return _3;
},networkGet:function(_8){
if(this.network&&this.network.get){
return this.network.get(_8);
}
return (this.network||dojo).xhrGet(_8);
},getValue:function(_9,_a,_b){
if(_9[_a]){
return _9[_a];
}else{
return _b;
}
}});
}


;if(!dojo._hasResource["lconn.core.PeopleTypeAhead"]){
dojo._hasResource["lconn.core.PeopleTypeAhead"]=true;
dojo.provide("lconn.core.PeopleTypeAhead");
dojo.require("lconn.core.TypeAhead");
dojo.require("lconn.core.Res");
dojo.require("dijit.form.ComboBox");
dojo.require("dijit.Tooltip");
dojo.declare("lconn.core.PeopleTypeAhead",[lconn.core.TypeAhead,lconn.core.Res],{isGroup:false,isPersonAndGroup:false,isCommunity:false,size:"",pageSize:15,multipleValues:false,NoResultsMessage:"",HeaderMessage:"",showHintText:true,disableSearchDirectory:false,autoSelectChars:[","],focused:false,templateString:null,templatePath:dojo.moduleUrl("lconn.core","templates/ComboBox.html"),disableBizCard:false,postMixInProperties:function(){
this.loadDefaultBundle();
this.searchDirectory=this.resBundle.rs_searchDirectory;
if(this.isGroup){
this.searchDirectory=this.resBundle.rs_searchGroupDirectory;
}else{
if(this.isCommunity){
this.searchDirectory=this.resBundle.rs_searchCommunityDirectory;
}else{
if(this.isPersonAndGroup){
this.searchDirectory=this.resBundle.rs_searchPersonAndGroupDirectory;
}
}
}
if(this.showHintText){
this.hintText="";
if(this.isGroup){
this.hintText=this.resBundle.rs_shadowText_searchGroupDirectory;
}else{
if(this.isCommunity){
this.hintText=this.resBundle.rs_shadowText_searchCommunityDirectory;
}else{
if(this.isPersonAndGroup){
this.hintText=this.resBundle.rs_shadowText_searchPersonAndGroupDirectory;
}
}
}
}else{
this.hintText=null;
}
this.inherited(arguments);
this.baseClass="lotusText";
},postCreate:function(){
this.inherited(arguments);
var _1=this.resBundle.rs_shadowText_searchDirectory;
if(this.isGroup){
_1=this.resBundle.rs_shadowText_searchGroupDirectory;
}else{
if(this.isCommunity){
_1=this.resBundle.rs_shadowText_searchCommunityDirectory;
}else{
if(this.isPersonAndGroup){
_1=this.resBundle.rs_shadowText_searchPersonAndGroupDirectory;
}
}
}
var _2=dojo.place("<div id=\""+this.id+"_ariaDescribedBy"+"\" style=\"display:none;\">"+_1+"</div>",this.domNode,"after");
dojo.attr(this.domNode,"aria-describedby",this.id+"_ariaDescribedBy");
},getItem:function(){
return (this.item?this.item:null);
},formatItem:function(_3,_4){
var _5="";
if(typeof _3=="string"){
return _4?this._htmlify(_3):_3;
}
if(!_3||!_3.name){
return _5;
}
if(_3.name.indexOf(",")!=-1&&_3.name.length>1&&_3.name[0]!="\""&&_3.name[_3.name.length-1]!="\""){
if(_4){
if(_3.businessOwner){
_5+="&quot;"+this._htmlify(_3.name)+"&quot;"+": "+this._htmlify(_3.businessOwner);
}else{
_5+="&quot;"+this._htmlify(_3.name)+"&quot;";
}
}else{
_5+="\""+_3.name+"\"";
}
}else{
if(_4){
if(_3.businessOwner){
_5+=this._htmlify(_3.name+": "+_3.businessOwner);
}else{
_5+=this._htmlify(_3.name);
}
}else{
_5+=_3.name;
}
}
if(_3.member){
if(_4){
_5+=" &lt;"+this._htmlify(_3.member)+"&gt;&lrm;";
}else{
_5+=" <"+_3.member+">\u200e";
}
}
return _5;
},_htmlify:function(_6){
return _6.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;");
},_onKeyPress:function(_7){
var _8=_7.charOrCode;
if(_7.altKey||((_7.ctrlKey||_7.metaKey)&&(_8!="x"&&_8!="v"))||_8==dojo.keys.SHIFT){
return;
}
var _9=false;
var _a="_startSearchFromInput";
var pw=this._popupWidget;
var dk=dojo.keys;
var _b=null;
this._prev_key_backspace=false;
this._abortQuery();
if(this._isShowingNow){
pw.handleKey(_8);
_b=pw.getHighlightedOption();
}
switch(_8){
case dk.PAGE_DOWN:
case dk.DOWN_ARROW:
case dk.PAGE_UP:
case dk.UP_ARROW:
if(!this._isShowingNow){
this._arrowPressed();
_9=true;
_a="_startSearchAll";
}else{
}
dojo.stopEvent(_7);
break;
case dk.ENTER:
if(_b){
if(_b==pw.nextButton){
this._nextSearch(1);
dojo.stopEvent(_7);
break;
}else{
if(_b==pw.previousButton){
this._nextSearch(-1);
dojo.stopEvent(_7);
break;
}else{
if(_b==pw.searchButton){
pw.searchDirectory();
dojo.stopEvent(_7);
return;
}else{
if(_b.item&&parseInt(_b.item.type)<0){
dojo.stopEvent(_7);
break;
}
}
}
}
pw.attr("value",{target:_b});
}else{
this._setBlurValue();
this._setCaretPos(this.focusNode,this.focusNode.value.length);
if(this.submitFormOnNonSelectingEnter){
if(this.searchTimer){
clearTimeout(this.searchTimer);
this.searchTimer=null;
}
this._lastQuery=null;
break;
}
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
if(!this.submitFormOnKey){
_7.preventDefault();
}
break;
case dk.TAB:
var _c=this.attr("displayedValue");
if(pw&&(_c==pw._messages["previousMessage"]||_c==pw._messages["nextMessage"])){
break;
}
if(_b){
pw.attr("value",{target:_b});
}
if(this._isShowingNow){
this._lastQuery=null;
this._hideResultList();
}
break;
case " ":
if(_b){
dojo.stopEvent(_7);
this._selectOption();
this._hideResultList();
}else{
_9=true;
}
break;
case dk.ESCAPE:
if(this._isShowingNow){
dojo.stopEvent(_7);
this._hideResultList();
if(this._currentInput){
this.focusNode.value=this._currentInput;
delete this._currentInput;
}
}
break;
case dk.DELETE:
case dk.BACKSPACE:
this._prev_key_backspace=true;
_9=true;
break;
default:
dijit.setWaiState(this.focusNode,"activedescendant",this.focusNode.id);
this.focusNode.focus();
_9=typeof _8=="string"||_8==229;
}
if(_9){
this.item=undefined;
this.searchTimer=setTimeout(dojo.hitch(this,_a),1);
}
},_onFocus:function(_d){
this.inherited(arguments);
this.focused=true;
},_onBlur:function(_e){
this.focused=false;
var pw=this._popupWidget;
if(!(pw&&pw.tooltipFocused)){
this.inherited(arguments);
}
if(dojo.isIE&&this.dropdownNode){
dojo.removeClass(this.dropdownNode,"lconnTypeAhead");
}
this.updateHintText();
},_startSearch:function(_f,opt){
opt=opt||{};
if(opt.searchImmediately){
opt.searchBoth=true;
}
var _10=this.id+"_popup";
if(!this._popupWidget){
this._popupWidget=new lconn.core.PeopleTypeAheadMenu({_strings:this._strings,rs_searchDirectory:this.searchDirectory,NoResultsMessage:this.NoResultsMessage,HeaderMessage:this.HeaderMessage,disableSearchDirectory:this.disableSearchDirectory,onChange:dojo.hitch(this,this._selectOption),id:_10,inputWidget:this,disableBizCard:this.disableBizCard});
var _11=this.textbox.getAttribute("wairole");
if(_11){
dijit.setWaiRole(this.textbox,_11);
}
dijit.setWaiState(this._popupWidget.domNode,"live","polite");
dijit.removeWaiState(this.focusNode,"activedescendant");
dijit.setWaiState(this.textbox,"owns",_10);
}else{
dijit.setWaiState(this.focusNode,"activedescendant",_10);
}
this.item=null;
var _12=dojo.clone(this.query);
this._lastQuery=_12=_f;
this.searchTimer=setTimeout(dojo.hitch(this,function(_13,_14){
var _15=this.store.fetch({queryOptions:dojo.mixin({ignoreCase:this.ignoreCase,deep:true},opt),query:_13,onComplete:dojo.hitch(this,"_openResultList"),onError:function(_16){
console.error("dijit.form.ComboBox: "+_16);
dojo.hitch(_14,"_hideResultList")();
},start:0,count:this.pageSize});
var _17=function(_18,_19){
_18.start+=_18.count*_19;
_18.direction=_19;
this.store.fetch(_18);
};
this._nextSearch=this._popupWidget.onPage=dojo.hitch(this,_17,_15);
this._popupWidget.searchDirectory=dojo.hitch(this,dojo.hitch(this,function(){
_15.queryOptions.searchDirectory=true;
this.store.fetch(_15);
}));
},_12,this),opt.searchImmediately?1:this.searchDelay);
},_openResultList:function(_1a,_1b){
if(this.disabled||this.readOnly||(_1b.query!=this._lastQuery)){
return;
}
this._popupWidget.clearResultList();
if(_1a.length){
var _1c=new String(this.formatItem(_1a[0]));
if(_1c&&this.autoComplete&&!this._prev_key_backspace&&(_1b.query!="")){
this._autoCompleteText(_1c);
}
}
_1b._maxOptions=this._maxOptions;
this._popupWidget.createOptions(_1a,_1b,dojo.hitch(this,"_getMenuLabelFromItem"));
this.results=_1a;
this._showResultList();
if(dojo.isIE&&(this.focusNode!=document.activeElement)&&!this.focusNode.preventFocus){
this.focusNode.focus();
}
if(_1b.direction){
if(1==_1b.direction){
this._popupWidget.highlightFirstOption();
}else{
if(-1==_1b.direction){
this._popupWidget.highlightLastOption();
}
}
this._announceOption(this._popupWidget.getHighlightedOption());
}
}});
dojo.declare("lconn.core.PeopleTypeAheadMenu",[dijit.form._ComboBoxMenu,lconn.core.Res],{rs_searchDirectory:" ",NoResultsMessage:"",HeaderMessage:"",templateString:"<ul waiRole='listbox' class='dijitReset dijitMenu' dojoAttachEvent='onmousedown:_onMouseDown,onmouseup:_onMouseUp,onmouseover:_onMouseOver,onmouseout:_onMouseOut' tabIndex='-1' style='overflow:\"auto\";'>"+"<li class='dijitMenuItem dijitMenuPreviousButton' dojoAttachPoint='previousButton' role='option'></li>"+"<li class='dijitMenuItem headerNode' dojoAttachPoint='headerNode' role='option'></li>"+"<li class='dijitMenuItem resultsNode'  style='overflow: hidden;' dojoAttachPoint='resultsNode' role='option'></li>"+"<li class='dijitMenuItem searchDirectory ${searchDirectoryClass}' style='overflow: hidden;' dojoAttachPoint='searchButton' role='option'>${rs_searchDirectory}</li>"+"<li class='dijitMenuItem dijitMenuNextButton' dojoAttachPoint='nextButton' role='option'></li>"+"</ul>",_messages:null,searchDirectoryClass:"",disableSearchDirectory:false,disableBizCard:false,inputWidget:null,tooltipFocused:false,tooltipAroundNode:null,tooltipTimeout:null,tooltipDelay:600,tooltipId:0,popupClosed:true,postMixInProperties:function(){
this.loadDefaultBundle();
this.inherited("postMixInProperties",arguments);
if(this.disableSearchDirectory){
this.searchDirectoryClass="lotusHidden";
}
if(!this.NoResultsMessage){
this.NoResultsMessage=this.resBundle.rs_noResults||"";
}
},postCreate:function(){
dojo.attr(this.previousButton,"aria-label",this.resBundle.rs_listItem);
dojo.attr(this.searchButton,"aria-label",this.rs_searchDirectory);
dojo.attr(this.nextButton,"aria-label",this.resBundle.rs_listItem);
this.searchButton.selectHandler=dojo.hitch(this,function(evt){
dojo.stopEvent(evt);
this.searchDirectory();
return true;
});
this.resultsNode.selectHandler=dojo.hitch(this,function(evt){
dojo.stopEvent(evt);
return true;
});
this.inherited("postCreate",arguments);
},searchDirectory:function(){
},setValue:function(_1d){
if(_1d.target.item){
this.value=_1d;
this.onChange(_1d);
}
},_onMouseUp:function(evt){
if(evt.target==this.searchButton){
this.searchDirectory();
}else{
if(evt.target!=this.resultsNode){
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||tgt==this.resultsNode)){
while(!tgt.item){
tgt=tgt.parentNode;
}
}
this._focusOptionNode(tgt);
},_focusOptionNode:function(_1e){
if(this._highlighted_option!=_1e){
this._blurOptionNode();
this._highlighted_option=_1e;
dojo.addClass(this._highlighted_option,"dijitMenuItemHover");
var _1f=dojo.attr(_1e,"exid");
var _20=dojo.attr(_1e,"persontype");
this.closeTooltip();
this.tooltipId++;
this.popupClosed=false;
if(_1f&&(_20==0)&&!this.disableBizCard){
this.renderBizCard(_1f,_1e);
}else{
this.inputWidget._announceOption(_1e);
}
}
},renderBizCard:function(_21,_22){
if(dojo.exists("lconn.profiles.bizCard.bizCard.renderMiniBizCard")){
this.tooltipTimeout=setTimeout(dojo.hitch(lconn.profiles.bizCard.bizCard,"renderMiniBizCard",_21,dojo.hitch(this,"showTooltip",this.tooltipId,_22)),this.tooltipDelay);
}
},_blurOptionNode:function(){
if(this._highlighted_option){
dojo.removeClass(this._highlighted_option,"dijitMenuItemHover");
this._highlighted_option=null;
}
},_createOption:function(_23,_24){
var _25=this.inherited("_createOption",arguments);
if(_23.userid){
dojo.attr(_25,"exid",_23.userid);
}
if(_23.type){
dojo.attr(_25,"persontype",_23.type);
}
dojo.attr(_25,"aria-describedby","bc_document_node");
return _25;
},createOptions:function(_26,_27,_28){
this.clearResultList();
this.previousButton.style.display=(!_27.start||_27.start==0)?"none":"";
dojo.attr(this.previousButton,"id",this.id+"_prev");
if(this.HeaderMessage){
var el=this.headerNode;
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.appendChild(document.createTextNode(this.HeaderMessage));
el.item=this.HeaderMessage;
this.domNode.insertBefore(el,this.nextButton);
}
dojo.forEach(_26,function(_29,i){
if(_27.count&&i>=_27.count){
return;
}
var _2a=this._createOption(_29,_28);
_2a.className="dijitMenuItem";
dojo.attr(_2a,"id",this.id+i);
dojo.style(_2a,"overflow","hidden");
this.domNode.insertBefore(_2a,this.nextButton);
},this);
this.nextButton.style.display=(_27.count&&_27.count<_26.length)?"":"none";
dojo.attr(this.nextButton,"id",this.id+"_next");
var el=this.resultsNode;
if(_26.length==0&&this.NoResultsMessage){
var _2b=dojo.string.substitute(this.NoResultsMessage,[_27.query]);
while(el.firstChild){
el.removeChild(el.firstChild);
}
el.appendChild(document.createTextNode(_2b));
el.item=_2b;
this.domNode.insertBefore(el,this.nextButton);
}
dojo.attr(this.resultsNode,"id",this.id+"_resultsNode");
if(!_27.queryOptions.searchDirectory&&_27.searchType!="directory"){
this.domNode.insertBefore(this.searchButton,this.nextButton);
}
dojo.attr(this.searchButton,"id",this.id+"_searchDir");
},clearResultList:function(){
var _2c=this.previousButton;
var _2d=this.nextButton;
while(_2c.nextSibling&&_2c.nextSibling!=_2d){
this.domNode.removeChild(_2c.nextSibling);
}
},getListLength:function(){
return this.domNode.childNodes.length-2-(this.searchButton.parentNode?1:0)-(this.resultsNode.parentNode?1:0)-(this.headerNode.parentNode?1:0);
},showTooltip:function(id,_2e,_2f){
if(id==this.tooltipId&&!this.popupClosed){
this.tooltipAroundNode=_2e;
dijit.showTooltip(_2f,_2e,["after","before"]);
dijit._masterTT.containerNode.removeAttribute("wairole");
dijit._masterTT.containerNode.removeAttribute("role");
this.inputWidget._announceOption(_2e);
dojo.publish("com/ibm/social/incontext/typeahead/onMiniBizCardDisplay",[_2f]);
var a=dojo.query("a","cardBody")[0];
if(a){
this.connect(a,"onblur",dojo.hitch(this,function(){
this.tooltipFocused=false;
var iw=this.inputWidget;
setTimeout(function(){
if(!(iw&&iw.focused)){
iw._hideResultList();
}
},100);
}));
dojo.connect(a,"onkeypress",dojo.hitch(this,function(evt){
var key=evt.charOrCode;
var dk=dojo.keys;
var iw=this.inputWidget;
switch(key){
case dk.ESCAPE:
this.closeTooltip();
if(iw&&iw.domNode){
iw.domNode.focus();
}
break;
case dk.TAB:
if(iw&&iw.domNode){
iw.domNode.focus();
}
dojo.stopEvent(evt);
break;
}
}));
}
}
},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();
}});
}


;if(!dojo._hasResource["lconn.core.TextBox"]){
dojo._hasResource["lconn.core.TextBox"]=true;
dojo.provide("lconn.core.TextBox");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
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.connect(this.textbox,"onfocus","textBoxFocus");
this.connect(this.textbox,"onblur","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;
},clearValue:function(){
this.textbox.value="";
this.textBoxBlur();
}});
dojo.declare("lconn.core.DefaultValueTextbox",[dijit._Widget,dijit._Templated],{templateString:"<input class=\"lotusInactive\" type=\"text\" name=\"${name}\" value=\"${defaultValue}\" dojoAttachEvent=\"onfocus:_onFocus, onkeypress:_onChange, onchange:_onChange\"></input></div>",name:"",defaultValue:"",setFocus:function setFocus(){
window.setTimeout("dijit.focus('"+this.id+"')",0);
},isDirty:function isDirty(){
return this.dirty;
},_onFocus:function _onFocus(_1){
if(dojo.hasClass(this.domNode,"lotusInactive")){
window.setTimeout("dojo.byId('"+this.id+"').select()",0);
}
},_onChange:function _onChange(_2){
dojo.removeClass(this.domNode,"lotusInactive");
this.dirty=true;
}});
}


;if(!dojo._hasResource["lconn.core.SearchBar"]){
dojo._hasResource["lconn.core.SearchBar"]=true;
dojo.provide("lconn.core.SearchBar");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit.Menu");
dojo.require("lconn.core.TextBox");
dojo.declare("lconn.core.SearchBar",[dijit._Widget,dijit._Templated],{templateString:["<div class=\"lotusSearch\" role=\"search\"><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\" cellspacing=\"0\" role=\"presentation\" summary=\"\"><tbody><tr>","<td><div class=\"lotusHidden\" id=\"${id}-searchOptionLabel\">${lblSelectScope}</div><div>","<a href=\"javascript:;\" title=\"${lblSelectScope}\" class=\"lotusScope\" dojoAttachPoint=\"scopeNode\" dojoAttachEvent=\"onclick:openMenu,onkeypress:openMenuA11y\" aria-haspopup=\"true\" role=\"button\" aria-labelledby=\"${id}-searchOptionLabel ${id}searchOpt\">","<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></div></td>","<td>","<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}\" title=\"${lblSearch}\" aria-label=\"${lblSearch}\"/>","<a href=\"javascript:;\" alt=\"${lblSearch}\" dojoAttachEvent=\"onclick:submitForm\" class=\"lotusAltText\">${lblSearch}</a>","</span>","</td>","</tr></tbody></table>","</form></div>"].join(""),localOptions:[],thirdPartySearchEngines:[],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-iconBookmarks16",files:"lconnSprite lconnSprite-iconFiles16",forums:"lconnSprite lconnSprite-iconForums16",profiles:"lconnSprite lconnSprite-iconProfiles16",wikis:"lconnSprite lconnSprite-iconWikis16",status_updates:"lconnSprite lconnSprite-iconStatusUpdate16"},selectedOption:null,textBox:null,globalAction:"",advancedSearchUrl:"",SEARCH_ADVANCED:"searchAdvancedIdentifier",SEARCH_POST_PATH:"/web/search",SEARCH_ADVANCED_PATH:"/web/jsp/advancedSearch.jsp",focusScopeMenuOnSelect:false,postCreate:function(){
if(this.searchContextPath){
this.globalAction=this.searchContextPath+this.SEARCH_POST_PATH;
this.advancedSearchUrl=this.searchContextPath+this.SEARCH_ADVANCED_PATH;
}
this.textBox=new lconn.core.TextBox({shadowText:this.lblSearch,textBoxClass:"lotusText",name:"query",title:this.lblSearch,value:this.searchFor},this.textNode);
if(this.globalOptions){
this.globalOptions.splice(0,0,{label:this.lblAllConnections,feature:"allareas",iconClass:"lconnSprite lconnSprite-iconConnections16","class":"lotusAlignLeft"});
}
this.showDefaultOption();
},changeLocalOptions:function(_1){
this.localOptions=_1;
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({"class":"lotusNavMenu lconnSearchScope",onItemClick:dojo.hitch(this,"selectOption")});
this.connect(this.scopeMenu,"_onBlur","closeMenu");
this.menuItems=[];
var _2=this.localOptions;
for(var i in _2){
_2[i].parentMenu=this.scopeMenu;
this.menuItems.push(new dijit.MenuItem(_2[i]));
}
if(_2&&_2.length&&this.globalOptions.length>0){
this.menuItems.push(new dijit.MenuSeparator({parentMenu:this.scopeMenu}));
}
_2=this.globalOptions;
if(_2.length>0){
for(var i in _2){
if(_2[i].feature&&this.featureIcons[_2[i].feature]){
_2[i].parentMenu=this.scopeMenu;
_2[i].iconClass=this.featureIcons[_2[i].feature];
this.menuItems.push(new dijit.MenuItem(_2[i]));
}
}
}
var _3=this.thirdPartySearchEngines;
if((_3!=null)&&(_3.length>0)){
this.menuItems.push(new dijit.MenuSeparator({parentMenu:this.scopeMenu}));
for(var i=0;i<_3.length;i++){
_3[i].parentMenu=this.scopeMenu;
this.menuItems.push(new dijit.MenuItem(_3[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,"class":"lotusAlignLeft"}));
}
for(var i=0;i<this.menuItems.length;i++){
if(this.menuItems[i].iconNode){
this.menuItems[i].iconNode.setAttribute("role","presentation");
}
this.scopeMenu.addChild(this.menuItems[i]);
}
}
return this.scopeMenu;
},openMenu:function(_4){
var _5=this.getScopeMenu();
dijit.popup.open({popup:_5,around:this.scopeNode,orient:(dojo._isBodyLtr()?{"BL":"TL","BR":"TR","TL":"BL","TR":"BR"}:{"BR":"TR","BL":"TL","TR":"BR","TL":"BL"}),onCancel:dojo.hitch(this,"_cancelMenu")});
_5.focus();
if(this.selectedOption._created){
_5.focusChild(this.selectedOption);
}
dojo.stopEvent(_4);
},openMenuA11y:function(_6){
if(_6.keyCode==dojo.keys.ENTER||_6.charCode==dojo.keys.SPACE||_6.keyCode==dojo.keys.DOWN_ARROW||_6.keyCode==dojo.keys.UP_ARROW){
this.openMenu(_6);
}
},_cancelMenu:function _cancelMenu(){
dijit.popup.close(this.getScopeMenu());
dijit.focus(this.scopeNode);
},closeMenu:function(){
if(this.scopeMenu){
dijit.popup.close(this.scopeMenu);
}
},onSelectOption:function(_7,_8){
this.selectOption(_7,true);
},selectOption:function(_9,_a){
this.closeMenu();
this.selectedOption=_9;
if(_9.feature&&_9.feature==this.SEARCH_ADVANCED){
location.href=this.advancedSearchUrl;
return;
}
this.currScopeLabelNode.innerHTML=_9.label;
this.currScopeIconNode.className="lotusIcon";
if(_9.iconClass){
dojo.addClass(this.currScopeIconNode,_9.iconClass);
}
if(_9.scope){
this.scopeInputNode.value=_9.scope;
this.featureInputNode.value="";
}else{
if(_9.feature){
if(_9.feature=="allareas"){
this.featureInputNode.value="";
}else{
this.featureInputNode.value=_9.feature;
}
this.scopeInputNode.value="";
}
}
if(_9.action){
if(_9.scope=="extkeyword"){
this.formNode.method="GET";
this.formNode.action=_9.action;
}else{
this.formNode.method="POST";
this.formNode.action=_9.action;
}
}else{
if(_9.feature){
this.formNode.method="GET";
this.formNode.action=this.globalAction;
}else{
this.formNode.method="POST";
this.formNode.action=this.localAction;
}
}
if(_9.method&&_9.method=="GET"||_9.method=="POST"){
this.formNode.method=_9.method;
}
if(_a){
if(this.focusScopeMenuOnSelect){
try{
this.scopeNode.focus();
}
catch(e){
this.textBox.focus();
}
}else{
this.textBox.focus();
}
}
},isThirdPartySearchEngineSelected:function(){
var _b=false;
var _c=this.selectedOption.label;
for(var i=0;i<this.thirdPartySearchEngines.length&&!_b;i++){
_b=(this.thirdPartySearchEngines[i].label==_c);
}
return _b;
},submitForm:function(_d){
this.textBox.setHiddenValue();
var _e=this.textBox.getValue();
_e=dojo.string.trim(_e);
if(_e){
if(this.onSubmit()){
if(this.isThirdPartySearchEngineSelected()){
location.href=this.selectedOption.action+encodeURIComponent(this.textBox.hiddenbox.value);
}else{
this.formNode.submit();
}
}
}
if(_d){
dojo.stopEvent(_d);
}
return false;
},getValue:function(){
return this.textBox.getValue();
},clearValue:function(){
return this.textBox.clearValue();
},formSubmitted:function(_f){
this.submitForm();
dojo.stopEvent(_f);
},onSubmit:function(){
}});
}


;if(!dojo._hasResource["lconn.core.aria.TabPanel"]){
dojo._hasResource["lconn.core.aria.TabPanel"]=true;
dojo.provide("lconn.core.aria.TabPanel");
dojo.require("lconn.core.aria._Helper");
dojo.declare("lconn.core.aria.TabPanel",lconn.core.aria._Helper,{containerRole:"tablist",itemRole:"tab",focusNextItem:function(){
var si=this.selIdx;
this.inherited(arguments);
this._selectItem(si);
},focusPrevItem:function(){
var si=this.selIdx;
this.inherited(arguments);
this._selectItem(si);
},_selectItem:function(si){
var ai=this.allItems;
if(si!=this.selIdx){
dijit.setWaiState(ai[si],"selected","false");
dijit.setWaiState(ai[this.selIdx],"selected","true");
this._activate(ai[this.selIdx]);
}
},_isSelected:function(_1){
return dijit.getWaiState(_1,"selected")=="true";
},_activate:function(_2){
try{
if(document.createEvent){
var _3=document.createEvent("HTMLEvents");
_3.initEvent("click",false,true);
_2.dispatchEvent(_3);
}else{
_2.fireEvent("onclick");
}
}
catch(e){
console.error([this.declaredClass,": ",e].join(""));
}
}});
}


;if(!dojo._hasResource["lconn.core.ckeditor"]){
dojo._hasResource["lconn.core.ckeditor"]=true;
(function(){
dojo.provide("lconn.core.ckeditor");
dojo.require("com.ibm.oneui.ckeditor.editor.dojoconfig");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
dojo.require("net.jazz.ajax.xdloader");
var _1=false;
var _2=[];
window.CKEDITOR_GETURL=function(_3){
if(!CKEDITOR||!CKEDITOR.basePath||!CKEDITOR.timestamp){
return null;
}
if(_3.indexOf(":/")==-1&&_3.indexOf("/")!==0){
_3=CKEDITOR.basePath+_3;
}
if(CKEDITOR.timestamp&&_3.charAt(_3.length-1)!="/"&&!(/[&?]t=/).test(_3)&&!(/[&?]etag=/).test(_3)){
_3+=(_3.indexOf("?")>=0?"&":"?")+"t="+CKEDITOR.timestamp+"&etag="+ibmConfig.versionStamp;
}
return _3;
};
lconn.core.ckeditor={applyCustomConfig:function(){
if(_1){
return;
}
_1=true;
com.ibm.oneui.ckeditor.editor.dojoconfig.execCustomConfig();
CKEDITOR.editorConfig(CKEDITOR.config);
CKEDITOR.config.customConfig="";
CKEDITOR.config.language=dojo.config.locale;
CKEDITOR.config.ibmHelpDocumentationUrl=lconn.core.ckeditor.getHelpUrl;
CKEDITOR.config.contentsCss=CKEDITOR.basePath+"contents.css"+"?etag="+ibmConfig.versionStamp;
for(var i=0,l=_2.length;i<l;i++){
_2[i]();
}
_2=[];
},addCustomConfig:function(f){
_2.push(f);
},replace:function(){
lconn.core.ckeditor.async("replace",dojo._toArray(arguments));
},appendTo:function(){
lconn.core.ckeditor.async("appendTo",dojo._toArray(arguments));
},async:function(_4,_5){
net.jazz.ajax.xdloader.load_layer_async("lconn.core.ckeditorstatic",["dojo.i18n","lconn.core.ckeditor"],function(){
if(typeof _4=="function"){
_4(CKEDITOR);
}else{
CKEDITOR[_4].apply(CKEDITOR,_5);
}
});
},getHelpUrl:function(_6){
var _7=null,_8=lconn.core.url.getServiceUrl(lconn.core.config.services.help);
if(_8){
_7=_8.toString()+"/topic/"+(_6||"com.ibm.lotus.connections.common.help/eucommon_ckeditor.html");
}
return _7;
}};
})();
}


;if(!dojo._hasResource["lconn.core.bizCard.bizCardUtils"]){
dojo._hasResource["lconn.core.bizCard.bizCardUtils"]=true;
(function(){
dojo.provide("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config");
dojo.require("com.ibm.mm.livetext.serviceImpl");
dojo.require("dojo.cookie");
var _1=dojo;
lconn.core.bizCard.bizCardUtils={isDebug:false,scriptResourceName:"semanticTagService.js",version:"4.0",scripts:new Array(),css:new Array(),initiated:false,_haveProxy:false,_proxyHelper:null,baseUrl:null,resourcesUrl:null,appChksum:null,liveElemPrefix:"semtag_live_",hoverIdx:0,hoverIdAttr:"icBizCard_idx",refcntAttr:"icBizCard_ref",setDojoObject:function(d){
if(typeof d=="object"){
_1=d;
}
},getDojoObject:function(){
return _1||dojo;
},init:function(_2){
if(this.initiated){
return;
}
_1.requireLocalization("lconn.profiles.bizCard","ui");
var _3=window.SemTagSvcConfig||{};
this.baseUrl=lconn.core.bizCard.bizCardUtils.initBaseUrl();
this.resourcesUrl=_3.resourcesSvc||null;
this._initProxyHelper();
this._initAppCksum();
if(_3.loadCssFiles&&!window.SemTagPersonConfig_noCss){
var _4=(window.SemTagSvcConfig&&SemTagSvcConfig.isBidiRTL);
if(!SemTagSvcConfig.isPortal){
this.loadCss(this.resourcesUrl+"/web/_style?include=com.ibm.lconn.core.styles.oneui3/base/standaloneVcard"+(_4?"RTL":"")+".css",{id:"lotusStandaloneVcardCSS"});
this.standaloneCSSloaded=true;
}
}
this.isDebug=(window.location.search.indexOf("debug=true")!=-1);
this.initiated=true;
},printDebug:function(_5){
if(lconn.core.bizCard.bizCardUtils.isDebug){
var d=new Date();
console.debug("["+d.toLocaleTimeString()+"."+d.getMilliseconds()+"] lconn.core.bizCard.bizCardUtils: "+_5);
}
},initBaseUrl:function(){
var _6="";
if(window.SemTagSvc_baseUrl!=null){
_6=SemTagSvc_baseUrl;
}else{
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.baseUrl!=null){
_6=SemTagSvcConfig.baseUrl;
}else{
_6=this.getURL(this.scriptResourceName,"script",SemTagSvc.baseUrl,"src").baseUrl;
}
}
return _6;
},_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(_7,_8){
if(window.SemTagSvcConfig!=null&&typeof (window.SemTagSvcConfig[_7])!="undefined"){
return window.SemTagSvcConfig[_7];
}
return _8;
},appendAppChkSum:function(_9){
if(_9==null||_9.indexOf("acs=")>=0){
return _9;
}
var c=null;
if(_9.indexOf("?")<0){
c="?";
}else{
c="&";
}
return _9+c+"acs="+this.appChksum;
},getService:function(_a){
for(i=0;window.livetextCfg!=null&&i<window.livetextCfg.length;i++){
var _b=window.livetextCfg[i];
if(_b.id==_a){
return _b;
}
}
return null;
},processUntilAvailable:function(_c,_d,_e){
var _f="";
_f=window.setInterval(function(){
if(eval(_d)){
if(_e!=null){
_c(_e);
}else{
_c();
}
window.clearInterval(_f);
}
},300);
},getBaseURL:function(_10){
var _11=lconn.core.bizCard.bizCardUtils.getService(_10);
if(_11!=null&&_11.baseURL!=null){
return _11.baseURL;
}else{
if(this.initiated){
return this.baseUrl;
}else{
return lconn.core.bizCard.bizCardUtils.initBaseUrl();
}
}
},buildBaseURL:function(_12){
var _13=_12.indexOf("//")+2;
var _14=_12.substring(0,_13);
var _15=_12.substring(_13,_12.length);
_13=_15.indexOf("/")+1;
var _16=_15.substring(0,_13);
_15=_15.substring(_13,_15.length);
_13=_15.indexOf("/");
var _17=_15.substring(0,_13);
_15=_15.substring(_13,_15.length);
var _18=_14+_16+_17;
return _18;
},getURL:function(_19,_1a,_1b,_1c){
var _1d={};
var _1e=location.protocol+"//"+location.host;
var s=document.getElementsByTagName(_1a);
var _1f="";
var _20=null;
for(var i=0;i<s.length;i++){
var src=s[i].getAttribute(_1c);
if(src&&src.indexOf(_19)!=-1){
_20=src;
_1f=src.substring(0,src.indexOf(_1b));
if(_1b==null){
_1f=this.buildBaseURL(src);
_1d.baseUrl=_1f;
}
_1d.resourceFound=true;
break;
}
}
if(_1d.baseUrl=="undefined"){
_1d.baseUrl=(_1f==_1e)?_1b:_1f+_1b;
}
return _1d;
},getUrlParam:function(_21){
var uri=lconn.core.url.parse(window.location.href);
var _22=uri.queryParameters[_21];
if(dojo.isArray(_22)&&_22!=null&&_22.length>0){
return _22[0];
}
return null;
},getProxifiedURL:function(url,_23,_24){
for(var key in _23){
if(key=="LANG"&&_23[key]==""){
var _25=new RegExp("&lang=@@@"+key+"@@@");
}else{
var _25=new RegExp("@@@"+key+"@@@");
}
var val=_23[key];
url=url.replace(_25,val);
}
url=this.appendAppChkSum(url);
url+="&suppress401=true";
if(this._haveProxy){
return this._proxyHelper.getProxifiedURL(url);
}
return url+"&callback="+_24;
},_timeout:10000,getBizCardData:function(url,_26,_27,_28,_29,_2a,_2b){
var url=this.getProxifiedURL(url,_26,_27);
if(this._haveProxy){
var _2c=function(_2d){
var _2e=dojo.fromJson(_2d.replace(/^\s*while\(1\);/,""));
_29(true,_2e,_2a);
};
var _2f=function(_30){
_29(false,_30,_2a);
};
dojo.xhrGet({url:url,timeout:this._timeout,load:_2c,error:_2f,contentType:"application/json",headers:{"X-Requested-With":""}});
}else{
_28.request(url,this._timeout,_29,_2a,_2b);
}
},out:function(){
this.buffer="";
this.write=function(str){
this.buffer+=str;
};
},getSinglePropertyValue:function(_31){
if(!_31){
return false;
}
var _32=_31.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
return _32;
},sortByOrder:function(a,b){
if(a.order>b.order){
return 1;
}else{
if(a.order<b.order){
return -1;
}else{
return 0;
}
}
},getElementsByClassName:function(_33,_34,_35,_36){
if(!_34){
_34=document.body;
}
if(!_35){
limit=0;
}
if(!_36){
_36=["*"];
}
var _37=new RegExp("(^|\\s)"+_33+"(\\s|$)");
if(_34&&_34.className&&_34.className.match(_37)){
return new Array(_34);
}
var _38=new Array();
for(var t=0;t<_36.length;t++){
var _39=_34.getElementsByTagName(_36[t]);
for(var i=0;i<_39.length;i++){
var _3a=_39[i];
if(_3a.className&&_3a.className.match&&_3a.className.match(_37)){
_38.push(_3a);
}
if(0<_35&&_35==_38.length){
break;
}
}
}
return _38;
},getParentByClassName:function(_3b,_3c){
if(!_3c){
return null;
}
var _3d=new RegExp("(^|\\s)"+_3b+"(\\s|$)");
if(_3c.className&&_3c.className.match(_3d)){
return _3c;
}
while(_3c.parentNode){
_3c=_3c.parentNode;
if(_3c.className&&_3c.className.match(_3d)){
return _3c;
}
}
},addHover:function(_3e,_3f,_40,_41){
while(typeof LCSemTagMenu==undefined){
alert("waiting...");
}
var _42=_3e.getAttribute(this.refcntAttr);
if(_42){
_3e.setAttribute(this.refcntAttr,parseInt(Number(_42)+1));
if(LCSemTagMenu.staticHover){
var img=LCSemTagMenu.findHoverFromLiveElement(_3e);
if(img){
dojo.connect(img,"onclick",_40);
img.setAttribute("href","javascript:a11y()");
}else{
this.printDebug("couldn't find the hover for this element!");
}
}else{
var _43=dojo.isFF?_3e.getAttribute("class"):_3e.className;
if(_43.indexOf("hasHover")==-1){
dojo.connect(_3e,"onmouseover",_3f);
dojo.connect(_3e,"onfocus",_3f);
dojo.connect(_3e,"onmouseout",function(evt){
LCSemTagMenu.unfocus(evt);
});
dojo.connect(_3e,"onblur",function(evt){
LCSemTagMenu.unfocus(evt);
});
}else{
this.printDebug("attempting to connect repeated events to element: "+_3e);
}
}
}else{
_3e.setAttribute(this.refcntAttr,"1");
this.hoverIdx++;
_3e.setAttribute(this.hoverIdAttr,parseInt(this.hoverIdx));
if(LCSemTagMenu.staticHover){
var img=this.createHoverImage();
dojo.connect(img,"onclick",_40);
img.setAttribute("href","javascript:a11y()");
var _44=_3e.nextSibling;
if(_44){
_44.parentNode.insertBefore(img,_44);
}else{
_3e.parentNode.appendChild(img);
}
_3e.setAttribute(this.hoverIdAttr,parseInt(this.hoverIdx));
_3e.id=this.liveElemPrefix+this.hoverIdx;
}else{
var _43=dojo.isFF?_3e.getAttribute("class"):_3e.className;
if(_43&&0<_43.length){
_43+=" hasHover";
}else{
_43="hasHover";
}
if(dojo.isFF){
_3e.setAttribute("class",_43);
}else{
_3e.className=_43;
}
dojo.connect(_3e,"onmouseover",_3f);
dojo.connect(_3e,"onfocus",_3f);
dojo.connect(_3e,"onmouseout",function(evt){
LCSemTagMenu.unfocus(evt);
});
dojo.connect(_3e,"onblur",function(evt){
LCSemTagMenu.unfocus(evt);
});
}
if(_41!=null){
dojo.connect(_3e,"onkeydown",_41);
}
}
},createHoverImage:function(){
var img=document.createElement("img");
this.hoverIdx++;
img.id=this.hoverIdAttr+this.hoverIdx;
img.className=LCSemTagMenu.iconName;
img.setAttribute("src",this.baseUrl+"/images/menu_selected_hover.gif");
img.setAttribute("border","0");
var _45=document.createElement("a");
dojo.connect(_45,"onfocus",LCSemTagMenu.activateHover);
dojo.connect(_45,"onmouseover",LCSemTagMenu.activateHover);
dojo.connect(_45,"onmouseout",LCSemTagMenu.deactivateHover);
_45.appendChild(img);
return _45;
},showHover:function(_46,_47){
this.printDebug("in showHover");
try{
if(LCSemTagMenu.showing){
LCSemTagMenu.clearTimeouts();
LCSemTagMenu.showHover(_46,_47);
}else{
LCSemTagMenu.startShowTimer(_46,_47);
}
}
catch(e){
console.error("Error in lconn.core.bizCard.bizCardUtils.showHover");
console.error(e);
}
},setMenuData:function(_48,_49,_4a,_4b,_4c){
LCSemTagMenu.setMenuData(_48,_49,_4a,_4b,_4c);
},getMenuItemJson:function(_4d,_4e,_4f,_50){
var o=_4f?_4f:0;
var i=_50?_50:"";
return {"label":_4d,"href":_4e,"order":o,"icon":i};
},getMenuHeaderJson:function(_51,_52){
return {"markup":_51,"order":_52};
},getMenuFooterJson:function(_53,_54){
return {"markup":_53,"order":_54};
},getElementFromEvent:function(_55){
return _55.target?_55.target:_55.srcElement;
},getLiveElementFromEvent:function(_56){
return LCSemTagMenu.findLiveElementFromEventSource(this.getElementFromEvent(_56));
},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;
},getStyle:function(_57,_58){
var _59;
if(window.getComputedStyle){
_59=document.defaultView.getComputedStyle(_57,null).getPropertyValue(_58);
}else{
if(_57.currentStyle){
_59=_57.currentStyle[_58];
}
}
return _59;
},createGroupJson:function(ctx,_5a){
return {"context":ctx,"extenders":_5a};
},createActionJson:function(id,ctx,_5b,_5c,url,_5d){
var o=parseInt(_5d);
return {"id":id,"context":ctx,"label":_5b,"description":_5c,"url":url,"order":o};
},parseOrder:function(_5e){
if(_5e==null||_5e.length==0){
return 0;
}
if(_5e.charAt(0)=="-"){
return parseInt(_5e.substr(1))*-1;
}else{
return parseInt(_5e);
}
},_langParamValue:"",getLangParam:function(){
var _5f=null;
var _60=dojo.getObject("lconn.core.LanguageSelector.COOKIE_NAME");
if((_60!="undefined")&&(_60!=null)){
_5f=dojo.cookie(_60);
}
if(_5f==null||_5f==""){
_5f=this.getUrlParam("lang");
}
if(_5f==null||_5f==""){
if(window.djConfig!=null&&djConfig.locale!=null){
_5f=djConfig.locale;
if(_5f=="pt-pt"){
_5f="pt";
}
}
}
if(_5f==null||_5f==""){
_5f="en";
}
_5f=_5f.replace(/\-/g,"_");
_5f=_5f.toLowerCase();
this._langParamValue=_5f;
return this._langParamValue;
},getTextValue:function(_61){
if(!_61){
return "";
}
return _61.innerHTML.replace(/<[a-zA-Z\/][^>]*>/gi,"");
},getTypedValue:function(_62,_63){
if(!_63){
_63="def";
}
var _64=new Array();
var _65=this.getElementsByClassName("type",_62);
var _66=this.getElementsByClassName("value",_62);
var _67="";
if(_66.length<1){
_67=this.getTextValue(_62);
}
for(i=0;i<_66.length;i++){
_67+=this.getTextValue(_66[i]);
}
if(_65.length<1){
_64[_63]=_67;
}else{
for(j=0;j<_65.length;j++){
var _68=_65[j];
var _69=_68.tagName.match(/^abbr$/i)?_68.getAttribute("title"):this.getTextValue(_68);
_64[_69.toLowerCase()]=_67;
}
}
return _64;
},findNameElementInHcard:function(_6a){
if(_6a.className!="vcard"){
_6a=this.getParentByClassName("vcard",_6a);
}
var _6b=this.getElementsByClassName("fn",_6a)[0];
if(!_6b){
_6b=this.getElementsByClassName("n",_6a)[0];
}
return _6b;
},findElementByNameInHcard:function(_6c,_6d){
if(_6c.className!="vcard"){
_6c=this.getParentByClassName("vcard",_6c);
}
return this.getElementsByClassName(_6d,_6c)[0];
},loadScript:function(_6e){
var _6f=this.getLangParam();
if(_6e.indexOf("lang=")!=-1&&_6f!=null){
_6e=_6e.substring(0,_6e.indexOf("lang"))+"lang="+_6f;
}else{
if(_6e.indexOf("resourcebundle")!=-1&&_6f!=null){
_6e=_6e+"&lang="+_6f;
}
if(_6e.indexOf("resourceStrings")!=-1&&_6f!=null){
_6e=_6e+"&lang="+_6f;
}
if(_6e.indexOf("js-resources.js")!=-1&&_6f!=null){
_6e=_6e+((_6e.indexOf("?")!=-1)?"&":"?")+"lang="+_6f;
}
}
_6e=this.appendAppChkSum(_6e);
if(!this.scripts[_6e]){
this.scripts[_6e]=true;
var _70=document.createElement("script");
_70.src=_6e;
document.body.insertBefore(_70,document.body.firstChild);
}
},loadCss:function(css,_71){
_71=_71||{};
css=this.appendAppChkSum(css);
if(!this.css[css]){
var _72=document.getElementsByTagName("head");
if(_72[0]){
this.css[css]=true;
var el=dojo.doc.createElement("link");
if(el){
el.rel="stylesheet";
el.href=css;
el.type="text/css";
el.media="screen";
dojo.mixin(el,_71);
return _72[0].appendChild(el);
}
}
}
return false;
},toggleInlineCard:function(_73){
var _74=dojo.doc.getElementById(_73+"_Pivot");
var _75=dojo.doc.getElementById(_73+"_Details");
if(_74!=null&&_75!=null){
if(_74.className.indexOf("lotusPivotNavOpen")!=-1){
_74.className="lotusPivotNav";
_75.style.display="none";
}else{
_74.className="lotusPivotNav lotusPivotNavOpen";
_75.style.display="block";
}
}
}};
window.LCSemTagMenu={isDebug:false,staticHover:false,focusRestored:false,id:"semtagmenu",hideDelay:500,showDelay:300,timeouts:new Array(),iconName:"menu_drop_icon",showing:false,currentElem:null,refCount:-1,tabOrderByDomNodeOrder:0,tabOrderByTabIndex:0,elemOrigTabIdx:null,elemTempTabIdx:1000,elemNext:null,originalActiveEl:null,svcHandlers:new Array(),items:new Array(),headers:new Array(),footers:new Array(),hoverIdRE:null,iconNameRE:new RegExp("(^|\\s)menu_drop_icon(\\s|$)"),hoverOffset:{x:15,y:15,w:315},menuOffset:{x:10,y:0,w:425},initited:false,init:function(){
if(this.initited==false){
LCSemTagMenu.hoverIdRE=new RegExp(lconn.core.bizCard.bizCardUtils.hoverIdPrefix);
dojo.connect(document,"onclick",LCSemTagMenu.click);
dojo.connect(document,"onkeydown",LCSemTagMenu.keydown);
this.isDebug=(window.location.search.indexOf("debug=true")!=-1);
this.initited=true;
}
},printDebug:function(msg){
if(LCSemTagMenu.isDebug){
var d=new Date();
console.debug("["+d.toLocaleTimeString()+"."+d.getMilliseconds()+"] LCSemTagMenu: "+msg);
}
},activateFocus:function(_76){
lconn.core.bizCard.bizCardUtils.activateHover(_76);
},activateHover:function(_77){
var _78=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_77);
if(_78){
_78.src=lconn.core.bizCard.bizCardUtils.baseUrl+"/images/menu_selected_hover.gif";
}
LCSemTagMenu.currentEvent=_77;
LCSemTagMenu.setCurrentElement(LCSemTagMenu.findLiveElementFromEventSource(_78));
},deactivateHover:function(_79){
var _7a=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_79);
if(_7a){
_7a.src=lconn.core.bizCard.bizCardUtils.baseUrl+"/images/menu_selected_hover.gif";
}
LCSemTagMenu.setCurrentElement(null);
},showHover:function(_7b,_7c){
this.printDebug("in showHover");
try{
if(LCSemTagMenu.staticHover){
return;
}
try{
if(LCSemTagMenu.focusRestored&&_7b.type=="focus"){
LCSemTagMenu.printDebug("skipping showHover because focus was restored from hide timer...  event ["+_7b.type+"]. ");
LCSemTagMenu.focusRestored=false;
return;
}
}
catch(e){
console.log("showHover: eat exception, IE has issues with certain events not having an event.type, so reset flag regardless");
LCSemTagMenu.focusRestored=false;
return;
}
LCSemTagMenu.originalActiveEl=document.activeElement;
var _7d=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_7b);
if(_7d&&_7d.tagName.toLowerCase()=="img"&&_7d.parentNode.tagName.toLowerCase()=="a"){
_7d=_7d.parentNode;
}
LCSemTagMenu.elemOrigTabIdx=_7d.getAttribute("tabIndex");
if(LCSemTagMenu.tabOrderByTabIndex&&!LCSemTagMenu.elemOrigTabIdx){
LCSemTagMenu.elemNext=_7d.nextSibling;
_7d.setAttribute("tabIndex",parseInt(Number(LCSemTagMenu.elemTempTabIdx)));
}
var tag=LCSemTagMenu.getMenuTag(_7d);
var _7e=0;
if(_7d&&_7d!=LCSemTagMenu.currentElem){
LCSemTagMenu.clearAllSvcHandlers(tag);
_7e=_7d.getAttribute(lconn.core.bizCard.bizCardUtils.refcntAttr);
if(_7e){
LCSemTagMenu.currentEvent=_7b;
LCSemTagMenu.setCurrentElement(_7d);
}else{
LCSemTagMenu.printDebug("showHover called for a DOM element with no refcnt attribute!");
LCSemTagMenu.setCurrentElement(null);
return;
}
}
LCSemTagMenu.addSvcHandler(tag,_7c);
LCSemTagMenu.setRefCount(_7e);
var _7f=dojo.byId("bc_document_node");
if(_7f){
var _80=true;
var _81=_7f.parentNode;
while(_81){
if(_81.className&&_81.className.indexOf("popupPersonCard")>-1||_81.className.indexOf("vcomm")>-1){
_80=false;
break;
}
_81=_81.parentNode;
}
if(_80){
_7f.parentNode.removeChild(_7f);
}
}
var out=new lconn.core.bizCard.bizCardUtils.out();
LCSemTagMenu.writeHover(out,"ltr");
tag.innerHTML=out.buffer;
LCSemTagMenu.showing=true;
var pos=LCSemTagMenu.currentElemPosition;
LCSemTagMenu.show(LCSemTagMenu.id,_7b,Math.round(pos.x),LCSemTagMenu.hoverOffset.x,Math.round(pos.y),LCSemTagMenu.hoverOffset.y,Math.round(pos.w),Math.round(pos.h),LCSemTagMenu.hoverOffset.w);
}
catch(e){
console.error("Error in LCSemTagMenu.showHover");
console.error(e);
}
},addSvcHandler:function(tag,_82){
LCSemTagMenu.svcHandlers.push(dojo.connect(tag,"onclick",_82));
},clearAllSvcHandlers:function(tag){
while(0<LCSemTagMenu.svcHandlers.length){
var _83=LCSemTagMenu.svcHandlers.pop();
if(_83){
dojo.disconnect(_83);
}
}
},getPosition:function(_84,_85){
if(_1&&typeof dojo.position=="function"){
return dojo.position(_84,_85);
}else{
if(_84["getBoundingClientRect"]){
var ret;
var db=_1.body();
ret=_84.getBoundingClientRect();
ret={x:ret.left,y:ret.top,w:ret.right-ret.left,h:ret.bottom-ret.top};
if(_1.isIE){
var _86=_1._getIeDocumentElementOffset();
ret.x-=_86.x+(_1.isQuirks?db.clientLeft+db.offsetLeft:0);
ret.y-=_86.y+(_1.isQuirks?db.clientTop+db.offsetTop:0);
}
if(_85){
var _87=_1._docScroll();
ret.x+=_87.x;
ret.y+=_87.y;
}
return ret;
}else{
return {x:0,y:0,w:0,h:0};
}
}
},setCurrentElement:function(_88){
LCSemTagMenu.currentElem=_88;
if(_88!=null){
LCSemTagMenu.currentElemPosition=this.getPosition(_88,true);
LCSemTagMenu.setRefCount(_88?Number(_88.getAttribute(lconn.core.bizCard.bizCardUtils.refcntAttr)):0);
while(0<LCSemTagMenu.headers.length){
LCSemTagMenu.headers.pop();
}
while(0<LCSemTagMenu.items.length){
LCSemTagMenu.items.pop();
}
while(0<LCSemTagMenu.footers.length){
LCSemTagMenu.footers.pop();
}
}
},setRefCount:function(cnt){
LCSemTagMenu.refCount=cnt;
},setMenuData:function(_89,_8a,_8b,_8c,_8d){
LCSemTagMenu.printDebug("Menu.setMenuData: items.length="+_8a.length);
if(!LCSemTagMenu.staticHover&&LCSemTagMenu.refCount<0){
LCSemTagMenu.printDebug("setMenuData called when refCount="+LCSemTagMenu.refCount);
return;
}
var _8e=LCSemTagMenu.findLiveElementFromEventSource(lconn.core.bizCard.bizCardUtils.getElementFromEvent(_89));
if(!_8e){
LCSemTagMenu.printDebug("setMenuData called on a null live element");
return;
}
if(LCSemTagMenu.staticHover&&(_8e!=LCSemTagMenu.currentElem||LCSemTagMenu.showing)){
LCSemTagMenu.currentEvent=_89;
LCSemTagMenu.setCurrentElement(_8e);
}
for(var i=0;i<_8a.length;i++){
LCSemTagMenu.items.push(_8a[i]);
}
if(_8b){
LCSemTagMenu.currentMenuCss=_8b;
}
if(_8c){
LCSemTagMenu.headers.push(_8c);
}
if(_8d){
LCSemTagMenu.footers.push(_8d);
}
LCSemTagMenu.stopEvent(_89);
LCSemTagMenu.showMenu();
try{
if(_89&&_89.isAccessibleOpen){
LCSemTagMenu.clearTimeouts();
}
}
catch(e){
LCSemTagMenu.printDebug("ERROR checking isAccessibleOpen event flag: "+e);
}
},getCurrentElement:function(){
return LCSemTagMenu.currentElem;
},showMenu:function(){
if(LCSemTagMenu.showing){
LCSemTagMenu.hide();
}
LCSemTagMenu.items.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
if(1<LCSemTagMenu.headers.length){
LCSemTagMenu.headers.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
}
if(1<LCSemTagMenu.footers.length){
LCSemTagMenu.footers.sort(lconn.core.bizCard.bizCardUtils.sortByOrder);
}
var out=new lconn.core.bizCard.bizCardUtils.out();
var _8f=(SemTagSvcConfig.isBidiRTL?"direction:rtl;":"");
var _90="";
_90+="<div role='dialog' class='popupPersonCard' style='z-index:"+(LCSemTagMenu.getTopZIndex()+1)+"; position:absolute;"+_8f+"'>";
if(0<LCSemTagMenu.headers.length){
_90+=LCSemTagMenu.headers[0].markup;
}
_90+="<a href='javascript:a11y()'><a>";
if(0<LCSemTagMenu.footers.length){
_90+=LCSemTagMenu.footers[0].markup;
}
_90+="</div>";
out.write(_90);
var tag=LCSemTagMenu.getMenuTag();
LCSemTagMenu.clearAllSvcHandlers(tag);
LCSemTagMenu.offScreen(tag);
tag.innerHTML=out.buffer;
LCSemTagMenu.defaultCursor();
if(LCSemTagMenu.staticHover&&dojo.isFF){
var _91=tag.getElementsByTagName("a");
if(0<_91.length){
_91[0].focus();
}
}
var _92={"target":LCSemTagMenu.currentElem};
var pos=LCSemTagMenu.currentElemPosition;
LCSemTagMenu.show(LCSemTagMenu.id,_92,Math.round(pos.x),LCSemTagMenu.menuOffset.x,Math.round(pos.y),LCSemTagMenu.menuOffset.y,Math.round(pos.w),Math.round(pos.h),LCSemTagMenu.menuOffset.w);
},createMenuTag:function(_93){
LCSemTagMenu.printDebug("in createMenuTag");
var tag=document.createElement((LCSemTagMenu.tabOrderByDomNodeOrder?"div":"span"));
tag.setAttribute("id",LCSemTagMenu.id);
tag.setAttribute("role","tooltip");
tag.style.position=(LCSemTagMenu.tabOrderByDomNodeOrder?"fixed":"absolute");
tag.style.display="none";
dojo.connect(tag,"onmouseout",LCSemTagMenu.mouseout);
dojo.connect(tag,"onmouseover",LCSemTagMenu.mouseover);
dojo.connect(tag,"onfocus",LCSemTagMenu.focus);
if(LCSemTagMenu.tabOrderByTabIndex){
dojo.connect(tag,"onkeydown",LCSemTagMenu.keydown);
}
if(LCSemTagMenu.tabOrderByDomNodeOrder){
if(_93){
_93.parentNode.appendChild(tag);
}else{
document.body.insertBefore(tag,document.body.firstChild);
}
}else{
document.body.insertBefore(tag,document.body.firstChild);
}
if(!dojo.hasClass(dojo.body(),"lotusui30_fonts")){
dojo.addClass(LCSemTagMenu.id,"lotusui lotusui30 lotusui30dojo lotusui30_fonts lotusSpritesOn");
}
return tag;
},getMenuTag:function(_94){
var tag=dojo.byId(LCSemTagMenu.id);
if(!tag){
tag=this.createMenuTag(_94);
}
if(LCSemTagMenu.tabOrderByTabIndex&&typeof (_94)!="undefined"&&_94!=null){
var _95=_94.getAttribute("tabIndex");
if(_95){
tag.setAttribute("tabIndex",parseInt(Number(_95)+1));
}
}else{
if(LCSemTagMenu.tabOrderByDomNodeOrder){
if(_94){
_94.parentNode.appendChild(tag);
}
}
}
return tag;
},windowWidth:function(){
var _96=-1;
var d=document;
if(typeof window.innerWidth!="undefined"){
_96=window.innerWidth;
}else{
if(d.documentElement&&typeof d.documentElement.clientWidth!="undefined"&&d.documentElement.clientWidth!=0){
_96=d.documentElement.clientWidth;
}else{
if(d.body&&typeof d.body.clientWidth!="undefined"){
_96=d.body.clientWidth;
}
}
}
return _96;
},windowHeight:function(){
var _97=-1;
var d=document;
if(typeof window.innerHeight!="undefined"){
_97=window.innerHeight;
}else{
if(d.documentElement&&typeof d.documentElement.clientHeight!="undefined"&&d.documentElement.clientHeight!=0){
_97=d.documentElement.clientHeight;
}else{
if(d.body&&typeof d.body.clientHeight!="undefined"){
_97=d.body.clientHeight;
}
}
}
return _97;
},show:function(_98,e,_99,_9a,_9b,_9c,_9d,_9e,_9f){
try{
var _a0=dojo.byId(_98);
if(_9d==null){
_9d=0;
}
if(_9e==null){
_9e=0;
}
if(_9f==null){
_9f=0;
}
var _a1=SemTagSvcConfig.isBidiRTL;
LCSemTagMenu.printDebug("in show..."+" Y,X:["+_9b+","+_99+"]"+" offsets:["+_9a+","+_9c+"] "+"parent W,H:["+_9d+","+_9e+"] "+"popup width: "+_9f);
_99=_99+_9a;
_9b=_9b+_9c;
var _a2=(e.target)?e.target:e.srcElement;
var top=(_9b!=null?_9b:lconn.core.bizCard.bizCardUtils.getEventAbsoluteY(e));
var _a3=(_99!=null?_99:lconn.core.bizCard.bizCardUtils.getEventAbsoluteX(e));
var _a4=this.windowWidth();
var _a5=this.windowHeight();
var _a6=document.body.scrollLeft;
var _a7=document.body.scrollTop;
LCSemTagMenu.printDebug("in show...(init values)"+" top,left:["+top+","+_a3+"] "+"win height,width:["+_a5+","+_a4+"] "+"scroll Y,X:["+_a7+","+_a6+"]");
if(_a1){
right=_a3-_9a+_9d;
_a3=right-_9a;
LCSemTagMenu.printDebug("in show...(bidi shift)"+" top,left:["+top+","+_a3+"]");
}
if(_a1){
if(_a3-_9f<0){
_a3=_9f-_9a+_a6;
LCSemTagMenu.printDebug("in show...(nudge right)"+" top,left:["+top+","+_a3+"]");
}
}else{
if(_a3+_9f>_a4){
_a3=_a4-_9f-_9a+_a6;
LCSemTagMenu.printDebug("in show...(nudge left)"+" top,left:["+top+","+_a3+"]");
}
}
if(SemTagSvcConfig.isPortal){
LCSemTagMenu.printDebug("in show...(in PORTAL start)"+" top,left:["+top+","+_a3+"]");
var od=SemTagUtil.getOwnerDocument(_a2);
if(od&&od.location!=document.location){
var f=SemTagUtil.getFrameElement(_a2);
if(f){
var el=f.offsetParent;
var x=0,y=0;
while(el){
x+=el.offsetLeft;
y+=el.offsetTop;
el=el.offsetParent;
}
var lof=_a2.offsetParent;
var xx=0,yy=0;
while(lof){
xx+=lof.offsetLeft;
yy+=lof.offsetTop;
lof=lof.offsetParent;
}
if(f.id=="wpsFLY_flyoutIFrame"){
top=y+yy+_a2.offsetHeight;
_a3=x+xx+_a2.offsetWidth;
}else{
top+=f.offsetTop;
_a3+=f.offsetLeft;
}
if(SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
iframeScrollLeft=f.contentWindow.pageXOffset;
iframeScrollTop=f.contentWindow.pageYOffset;
}
if(!SemTagUtil.isGecko&&f.id=="wpsFLY_flyoutIFrame"){
iframeScrollLeft=f.contentWindow.document.body.parentNode.scrollLeft;
iframeScrollTop=f.contentWindow.document.body.parentNode.scrollTop;
}
top-=iframeScrollTop;
_a3-=iframeScrollLeft;
}
}
LCSemTagMenu.printDebug("in show...(in PORTAL end)"+" top,left:["+top+","+_a3+"]");
}
LCSemTagMenu.printDebug("in show...(final)"+" top,left:["+top+","+_a3+"]");
_a0.style.top=top+"px";
_a0.style.left=_a3+"px";
_a0.style.display="block";
LCSemTagMenu.showing=true;
if(SemTagSvcConfig.isPortal){
_a0.style.zIndex="900";
}
if(dojo.isIE){
var _a8=dojo.byId("tempIframe");
if(_a8==null){
_a8=document.createElement("iframe");
_a8.setAttribute("id","tempIframe");
_a8.setAttribute("frameBorder","no");
_a8.setAttribute("scrolling","no");
_a8.setAttribute("src",lconn.core.bizCard.bizCardUtils.baseUrl+"/nav/blankIE.html");
_a8.style.position="absolute";
_a8.style.left=_a3+"px";
_a8.style.top=top+"px";
_a8.width=(_a0.offsetWidth).toString()+"px";
_a8.height=(_a0.offsetHeight).toString()+"px";
_a8.style.display="block";
_a8.style.zIndex="899";
document.body.appendChild(_a8);
}else{
_a8.style.left=_a3+"px";
_a8.style.top=top+"px";
_a8.width=(_a0.offsetWidth).toString()+"px";
_a8.height=(_a0.offsetHeight).toString()+"px";
_a8.style.display="block";
}
}
LCSemTagMenu.showing=true;
LCSemTagMenu.focusA11Y();
}
catch(e){
console.error("LCSemTagMenu.show: Exception Caught: ");
console.log(e);
}
},focusA11Y:function(){
try{
if(LCSemTagMenu.showing&&dojo.byId("bc_document_node")){
dojo.query("#A11Yblank",dojo.byId("bc_document_node"))[0].focus();
}
}
catch(e){
LCSemTagMenu.printDebug("focusA11Y:  could not focus element with A11Yblank id. Exception: "+e);
}
},hide:function(_a9,e){
LCSemTagMenu.printDebug("in hide");
LCSemTagMenu.clearTimeouts();
var tag=LCSemTagMenu.getMenuTag();
if(!tag){
return false;
}
tag.style.display="none";
LCSemTagMenu.clearAllSvcHandlers(tag);
LCSemTagMenu.defaultCursor();
LCSemTagMenu.setCurrentElement(null);
var _aa=dojo.byId("tempIframe");
if(_aa){
_aa.style.display="none";
}
LCSemTagMenu.showing=false;
return true;
},restoreFocus:function(){
LCSemTagMenu.printDebug("in restoreFocus");
try{
var _ab=LCSemTagMenu.originalActiveEl;
if(_ab){
if(LCSemTagMenu.tabOrderByTabIndex&&_ab&&_ab.getAttribute("tabIndex")){
tag.setAttribute("tabIndex",null);
_ab.setAttribute("tabIndex",LCSemTagMenu.elemOrigTabIdx);
}
if(!lconn.profiles.bizCard.bizCardUI.wndh_vCard||(lconn.profiles.bizCard.bizCardUI.wndh_vCard&&lconn.profiles.bizCard.bizCardUI.wndh_vCard.closed)){
LCSemTagMenu.focusRestored=true;
LCSemTagMenu.originalActiveEl.focus();
window.setTimeout("LCSemTagMenu.focusRestored = false;",500);
}
}
}
catch(e){
console.error("LCSemTagMenu.restoreFocus: could not restore focus.  Exception: "+e);
}
},offScreen:function(_ac){
_ac.style.top="-1000px";
_ac.style.left="-1000px";
_ac.style.display="block";
},findLiveElementFromEventSource:function(_ad){
if(LCSemTagMenu.staticHover){
var id=_ad.id;
if(!id.match(LCSemTagMenu.hoverIdRE)){
var _ae=_ad.getElementsByTagName("img");
for(var i=0;i<_ae.length;i++){
if(_ae[i].id&&_ae[i].id.match(LCSemTagMenu.hoverIdRE)){
id=_ae[i].id;
break;
}
}
}
var idx=id.substr(lconn.core.bizCard.bizCardUtils.hoverIdPrefix.length);
return document.getElementById(lconn.core.bizCard.bizCardUtils.liveElemPrefix+idx);
}else{
var _af=LCSemTagMenu.getCurrentElement();
return _af?_af:_ad;
}
},findHoverFromLiveElement:function(_b0){
var idx=_b0.getAttribute(lconn.core.bizCard.bizCardUtils.hoverIdPrefix+"idx");
return document.getElementById(lconn.core.bizCard.bizCardUtils.hoverIdPrefix+idx);
},inMenu:function(_b1,_b2){
if(!_b1||!_b2){
return false;
}
if(!LCSemTagMenu.showing){
return false;
}
try{
var el=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_b2);
if((_b2.type=="mouseout"||_b2.type=="mouseover")){
el=(_b2.toElement?_b2.toElement:dojo.body());
LCSemTagMenu.printDebug("moused to: id:["+el.id+"] tag:["+el.tagName+"]");
}
while(el&&el.parentNode&&(el=el.parentNode)){
if(el===_b1){
return true;
}
}
return false;
}
catch(e){
console.log("inMenu: eat exception, IE has issues with certain events not having an event.type");
return false;
}
},mouseout:function(_b3){
LCSemTagMenu.printDebug("in mouseout..."+_b3);
var _b4=LCSemTagMenu.id;
menuElem=dojo.byId(_b4);
if(LCSemTagMenu.inMenu(menuElem,_b3)){
LCSemTagMenu.printDebug("mouseout: moused-out off element but we are on menu");
}else{
if(LCSemTagMenu.showing){
LCSemTagMenu.startHideTimer(_b4);
}else{
LCSemTagMenu.clearTimeouts();
}
}
},mouseover:function(_b5){
LCSemTagMenu.printDebug("in mouseover..."+_b5);
LCSemTagMenu.clearTimeouts();
},focus:function(_b6){
LCSemTagMenu.printDebug("in focus..."+_b6);
LCSemTagMenu.mouseover(_b6);
},unfocus:function(_b7){
LCSemTagMenu.printDebug("in unfocus..."+_b7);
LCSemTagMenu.mouseout(_b7);
},click:function(_b8){
LCSemTagMenu.printDebug("in click..."+_b8);
if(!_b8){
return;
}
if(LCSemTagMenu.showing){
var el=lconn.core.bizCard.bizCardUtils.getElementFromEvent(_b8);
if(el&&el.className!="lotusVCardHover"){
menuElem=dojo.byId(LCSemTagMenu.id);
if(!LCSemTagMenu.inMenu(menuElem,_b8)){
LCSemTagMenu.hide(LCSemTagMenu.id);
}
}
}
},keydown:function(_b9){
LCSemTagMenu.printDebug("in keydown..."+_b9);
LCSemTagMenu.catchEscape(_b9);
LCSemTagMenu.catchTab(_b9);
},catchEscape:function(_ba){
if(_ba.keyCode==27){
if(LCSemTagMenu.showing){
LCSemTagMenu.hide(LCSemTagMenu.id);
LCSemTagMenu.restoreFocus();
}
}
},catchTab:function(_bb){
if(_bb.keyCode==9){
try{
if(LCSemTagMenu.showing&&document.activeElement.id=="A11YLast"){
LCSemTagMenu.focusA11Y();
}
if(LCSemTagMenu.showing&&dojo.query(".lotusVCardHover",dojo.byId(LCSemTagMenu.id)).length){
LCSemTagMenu.hide();
}
}
catch(e){
LCSemTagMenu.printDebug("catchTab:  could not check if current element is A11YLast id. Exception: "+e);
}
}
},stopEvent:function(_bc){
if(!_bc){
return;
}
if(dojo.isFF){
if(_bc.preventDefault==null){
_bc=_bc.original;
}
_bc.preventDefault();
_bc.stopPropagation();
}else{
try{
if(_bc.returnValue==null){
_bc=_bc.original;
}
_bc.returnValue=false;
_bc.cancelBubble=true;
}
catch(e){
}
}
},startShowTimer:function(_bd,_be,_bf){
LCSemTagMenu.printDebug("in startShowTimer");
var _c0=(typeof (_bf)=="number"?_bf:LCSemTagMenu.showDelay);
if(0<_c0){
var t=window.setTimeout(function(){
LCSemTagMenu.showHover(_bd,_be);
},_c0);
LCSemTagMenu.timeouts.push(t);
LCSemTagMenu.printDebug("...timer to show ("+t+") started, "+_c0+"ms");
}
},startHideTimer:function(_c1,_c2){
LCSemTagMenu.printDebug("in startHideTimer");
var _c3=(typeof (_c2)=="number"?_c2:LCSemTagMenu.hideDelay);
if(0<_c3){
var t=window.setTimeout(function(){
LCSemTagMenu.endHideTimer(_c1);
},_c3);
LCSemTagMenu.printDebug("...timer to hide ("+t+") started, "+_c3+"ms for "+_c1);
LCSemTagMenu.timeouts.push(t);
}
},endHideTimer:function(_c4){
LCSemTagMenu.printDebug("HIDE TIMER expired for "+_c4+".  Firing hide method.");
menuElem=dojo.byId(_c4);
LCSemTagMenu.hide(_c4);
LCSemTagMenu.restoreFocus();
},clearTimeouts:function(){
LCSemTagMenu.printDebug("in clearTimeouts:  ("+LCSemTagMenu.timeouts+")");
while((t=LCSemTagMenu.timeouts.pop())){
window.clearTimeout(t);
}
},defaultCursor:function(){
document.body.style.cursor="default";
},waitCursor:function(){
document.body.style.cursor="wait";
},clickCursor:function(){
document.body.style.cursor="pointer";
}};
LCSemTagMenu.defaultLoaded=true;
LCSemTagMenu.getTopZIndex=function(){
var _c5=0;
dojo.query("[style*='z-index']").forEach(function(_c6,_c7,arr){
_c5=((zIdx=parseInt(dojo.style(_c6,"z-index")))>_c5?zIdx:_c5);
});
return _c5;
};
LCSemTagMenu.writeHover=function(out,_c8){
var _c9=_1.i18n.getLocalization("lconn.profiles.bizCard","ui");
var _ca="z-index:"+(LCSemTagMenu.getTopZIndex()+1)+"; opacity: 1; top: 0;";
out.write("<a class='lotusVCardHover' "+" onmouseover='javascript:LCSemTagMenu.clickCursor();'"+" onmouseout='javascript:LCSemTagMenu.defaultCursor();'"+" style='"+_ca+"' "+" aria-label='"+_c9["label.semtag.hover.altA11Y"]+"' "+">"+_c9["label.semtag.hover.altA11Y"]+"</a>");
};
window.LCSemTagUtil={crossDomainRequest:function(){
var _cb=new Array();
var _cc=new Array();
var _cd=new Array();
var _ce=this;
createTimeoutFunction=function(_cf){
return function(){
_ce.cancelRequest(_cf);
};
};
this.getScriptId=function(id){
return "_JVLN_"+id;
};
this.getScriptObject=function(id){
return document.getElementById(this.getScriptId(id));
};
this.cloneObject=function(obj){
var _d0=new Object();
for(i in obj){
_d0[i]=obj[i];
}
return _d0;
};
this.request=function(url,_d1,_d2,_d3,_d4){
LCSemTagMenu.printDebug("LCSemTagUtil.request: started");
LCSemTagMenu.printDebug("LCSemTagUtil.request: connectionId "+_d4);
_d4=_d4.toLowerCase();
var _d5=this.getScriptId(_d4);
LCSemTagMenu.printDebug("LCSemTagUtil.request: objId "+_d5);
if(_d2!=null){
_cb[_d4]=_d2;
}
if(_d3!=null){
if(!dojo.isFF){
_cc[_d4]=this.cloneObject(_d3);
}else{
_cc[_d4]=_d3;
}
}
var _d6=document.createElement("script");
_d6.id=_d5;
_d6.type="text/javascript";
_d6.defer=true;
try{
_d6.src=url;
LCSemTagMenu.printDebug("LCSemTagUtil.request: url: "+url);
}
catch(e){
LCSemTagMenu.printDebug("LCSemTagUtil.request: error:",e);
return false;
}
try{
var _d7=document.getElementsByTagName("body");
if(_d7[0]){
_d7[0].appendChild(_d6);
}else{
LCSemTagMenu.printDebug("LCSemTagUtil.request: error getting body element to insert script:"+_d6.id);
return false;
}
}
catch(e){
LCSemTagMenu.printDebug("LCSemTagUtil.request: error:",e);
return false;
}
LCSemTagMenu.printDebug("LCSemTagUtil.request: added script: "+_d6.id);
if(_d1){
var _d8=this;
_cd[_d4]=window.setTimeout(createTimeoutFunction(_d4),_d1);
}
};
this.cancelRequest=function(id){
LCSemTagMenu.printDebug("LCSemTagUtil.cancelRequest:  Request ["+id+"] took too long.  Cancelling request for id: "+_cd[id]);
var _d9=_cb[id];
_cb[id]=null;
var _da=_cc[id];
_cc[id]=null;
if(_d9!=null){
try{
if(_d9){
_d9(false,null,_da);
}
this.removeScript(id);
}
catch(e){
LCSemTagMenu.printDebug("LCSemTagUtil.cancelRequest: Exception Caught: "+e);
}
}else{
LCSemTagMenu.printDebug("LCSemTagUtil.cancelRequest: no callback for : "+id);
}
};
this.removeScript=function(id){
LCSemTagMenu.printDebug("LCSemTagUtil.removeScript: removing script element for: "+id);
if(id){
var _db=this.getScriptObject(id);
if(_db!=null){
var _dc=document.getElementsByTagName("body");
_dc[0].removeChild(_db);
LCSemTagMenu.printDebug("LCSemTagUtil.removeScript: removed script for id: "+id);
}else{
LCSemTagMenu.printDebug("LCSemTagUtil.removeScript: script is null for id: "+id);
}
}else{
LCSemTagMenu.printDebug("LCSemTagUtil.removeScript: id is null");
}
};
this.dispatch=function(id,_dd){
LCSemTagMenu.printDebug("LCSemTagUtil.dispatch: id: "+id);
if(id!=null){
id=id.toLowerCase();
}
try{
if(id!=null&&typeof (_cd[id])!="undefined"&&_cd[id]!=null){
LCSemTagMenu.printDebug("request dispatched. removing timeout for id ["+id+"]  timeout id: "+_cd[id]);
window.clearTimeout(_cd[id]);
}
var _de=_cb[id];
var _df=_cc[id];
_cc[id]=null;
if(_de!=null){
_cb[id]=null;
_de(true,_dd,_df);
window.setTimeout(function(){
_ce.removeScript(id);
},1000);
}else{
LCSemTagMenu.printDebug("LCSemTagUtil.dispatch: callback is null for id: "+id);
}
}
catch(e){
console.error("LCSemTagUtil.dispatch: Exception Caught: ");
console.log(e);
}
};
}};
var _e0=window.SemTagSvc;
var _e1=window.SemTagSvc=(_e0||new com.ibm.mm.livetext.serviceImpl());
var _e2=window.livetextCfg=(window.livetextCfg||[]);
var _e3=window.SemTagSvcConfig=(window.SemTagSvcConfig||{});
if(!_e3.proxyURL&&dojo.config.proxy){
_e3.proxyURL=dojo.config.proxy;
}else{
if(_e3.proxyURL&&!dojo.config.proxy){
dojo.config.proxy=_e3.proxyURL;
}
}
_e3.appChksum=lconn.core.config.versionStamp;
window.doUIExtensionConfigOnload=function(){
};
dojo.addOnLoad(function(){
setTimeout(function(){
if(dojo.config.isDebug){
console.debug("Initialize semantic tag service");
}
_e3.isBidiRTL=!dojo._isBodyLtr();
if(!_e0){
_e1.init();
}
lconn.core.bizCard.bizCardUtils.init();
},1);
});
})();
}

dojo.provide("lconn.communities.bizCard.nls.ui")._built=true;
dojo.provide("lconn.communities.bizCard.nls.ui.en");
lconn.communities.bizCard.nls.ui.en={"label.top.buttons.join":"Join this Community","label.members":"Members ","label.deleteConfirm.communityNameConfirm":"Confirm community name:","label.action.confirm.community.after.follow.member":"You are following this community and will receive updates about community content.","label.top.buttons.actions":"More Actions","label.deleteConfirm.understandTitle":"I understand that the community and all associated data with it will be permanently deleted.","label.moderation.link":"Moderation","label.deleteConfirm.capitalizationWarning":"These values are case sensitive so be sure to use the correct capitalization.","label.top.buttons.metrics":"View Metrics","label.top.buttons.unfollow.title":"Stop following the community to stop receiving updates\xa0about community content.","label.members.lowercase":"members","label.collapse":"Click to collapse section","label.top.buttons.requestToJoin.title":"Request to join the community in order to post community content.","label.top.buttons.edit":"Edit Community","label.msg.confirmation":"Confirmation","tooltip.overview":"Click here to see the community&#146;s overview page","label.top.buttons.create":"Create Subcommunity","label.deleteConfirm.error":"The user name or community name does not match the required name.  Please check the names.","label.tags.tags":"Tags","label.deleteConfirm.signatureTitle":"Sign with your name:","label.action.confirm.community.before.leave.groupEnabled":"Leaving this community will remove you from the membership, however, if you are a member of one or more groups that are members of this community, your membership in the community via that group will remain.","label.top.buttons.gotoComm":"Go to Community","label.top.buttons.email":"Mail Community","label.action.confirm.community.after.unfollow":"You have stopped following this community.","label.action.confirm.community.after.follow.nonmember":"You are following this community and will receive updates about community content. Join this community to post content.","label.moderated.community.alt.text":"This is a moderated community","label.top.buttons.join.title":"Join the community to post community content.","label.deleteConfirm.oneSubCommunity":"This community has 1 subcommunity that will also be deleted.","label.top.buttons.com.actions":"Community Actions","label.top.buttons.editsub":"Edit Subcommunity","label.top.buttons.follow.title":"Follow the community to get updates\xa0about community content.","label.expand":"Click to expand section","label.msg.error":"Error","label.leaveConfirm.okButtonValue":"OK","label.theme.customize":"Customize","label.metrics.link":"Metrics","label.top.buttons.follow":"Follow this Community","label.top.buttons.unfollow":"Stop Following this Community","label.deleteConfirm.multipleSubCommunities":"This community has ${0} subcommunities that will also be deleted.","label.top.buttons.com.action.menu":"Press the space bar or enter key to activate the menu","label.public.community.alt.text":"This is a public community","label.top.buttons.requestToJoin":"Request to Join this Community","label.overview":"Overview","label.top.buttons.delete":"Delete Community","label.msg.action.failed.need.login":"The action failed because you are no longer logged in.","label.nav.landmark.comm":"Community","label.deleteConfirm.communityNameTitle":"Community name:","label.deleteConfirm.warning":"Warning: The following Community and all data associated with it will be permanently deleted!","label.deleteConfirm.closeButtonValue":"Cancel","label.msg.action.failed":"The action failed: ${0}","label.deleteConfirm.signDirection":"Enter the name of the community and sign in with your name to confirm that you are authorized to delete and that you want to permanently delete this entire community.","label.leaveConfirm.dlgTitle":"Leave this Community","label.deleteConfirm.okButtonValue":"Delete","label.deleteConfirm.nameTitle":"Your name:","label.leaveConfirm.closeButtonValue":"Cancel","confirm.delete.community":"Are you sure you want to delete this community? Deleting this community will remove all data including any content that has been added to the community. Click OK to delete this community or Cancel to return to the community.","label.top.buttons.leave":"Leave Community","label.private.community.alt.text":"This is a restricted community","label.deleteConfirm.dlgTitle":"Delete ${0}","label.action.confirm.community.before.leave":"Leaving this community will remove you from the membership.","label.subcommunities":"Subcommunities","label.top.buttons.moderate":"Moderate Community"};
dojo.registerModulePath("lconn.communities.bizCard", "../lconn.communities.bizCard");

;if(!dojo._hasResource["lconn.communities.bizCard.dialogs.leaveConfirm"]){
dojo._hasResource["lconn.communities.bizCard.dialogs.leaveConfirm"]=true;
dojo.provide("lconn.communities.bizCard.dialogs.leaveConfirm");
dojo.require("dijit.Dialog");
dojo.requireLocalization("lconn.communities.bizCard","ui");
dojo.declare("lconn.communities.bizCard.dialogs.leaveConfirm",[dijit.Dialog],{stringResources:dojo.i18n.getLocalization("lconn.communities.bizCard","ui"),templateString:"<div dojoAttachPoint=\"containerNode\" id=\"dialog_communities\" class=\"lotusui30dojo lotusDialogWrapper\" tabindex=\"-1\" waiRole=\"dialog\" waiState=\"labelledby-${id}_title\">\t\t\t<div style=\"width:600px\" aria-labelledby=\"${id}_title\" role=\"region\">\t\t\t\t<div dojoAttachPoint=\"dialogBorder\" class=\"lotusDialogBorder\">\t\t\t\t\t<div class=\"lotusDialog lotusForm2 lotusLeftLabels _lotusDelete\"> \t\t\t\t\t\t<div dojoAttachPoint=\"titleBar\" class=\"lotusDialogHeader\"> \t\t\t\t\t\t\t<div dojoAttachPoint=\"titleNode\" id=\"${id}_title\" class=\"lotusHeading\">${dlgTitle}</div> \t\t\t\t\t\t\t<a class=\"lotusDialogClose\" href=\"javascript:;\" title=\"Close\" dojoAttachEvent=\"onkeypress:onEnterCancelClicked,onclick:onCancelClicked\">\t\t\t\t\t\t\t\t<img dojoAttachEvent=\"onclick:onCancelClicked\" alt=\"Close\" src=\""+dojo.config.blankGif+"\"/>\t\t\t\t\t\t\t\t<span class=\"lotusAltText\">X</span>\t\t\t\t\t\t\t</a> \t\t\t\t\t\t</div>\t\t\t\t\t\t<div>\t\t\t\t\t\t\t<div class=\"lotusDialogContent\">\t\t\t\t\t\t\t\t${dlgContent}\t\t\t\t\t\t\t</div><!--end lotusDialogContent-->\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class=\"lotusDialogFooter\">\t\t\t\t\t\t\t<button dojoAttachPoint=\"okButtonNode\" class=\"lotusBtn\" dojoAttachEvent=\"onclick:onOkClicked\">${okButtonValue}</button>\t\t\t\t\t\t\t<button dojoAttachPoint=\"closeButtonNode\" dojoAttachPoint=\"closeText\" class=\"lotusBtn\" dojoAttachEvent=\"onclick:onCancelClicked\">${closeButtonValue}</button>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t</div><!--end lotusDialogBorder-->\t\t\t</div>\t\t</div>",callback:null,dlgContent:null,postMixInProperties:function(){
this.dlgTitle=this.stringResources["label.leaveConfirm.dlgTitle"];
this.okButtonValue=this.stringResources["label.leaveConfirm.okButtonValue"];
this.closeButtonValue=this.stringResources["label.leaveConfirm.closeButtonValue"];
this.inherited(arguments);
},postCreate:function(){
dojo.attr(this.dialogBorder,"style",{width:"auto"});
this.inherited(arguments);
dojo.removeClass(this.containerNode,"dijitContentPane");
},onOkClicked:function(){
this.hide();
if(this.callback!=null){
this.callback();
}
},onCancelClicked:function(){
this.hide();
},onEnterCancelClicked:function(_1){
if(_1.keyCode==13){
this.onCancelClicked();
}
}});
}


;if(!dojo._hasResource["dojox.html.entities"]){
dojo._hasResource["dojox.html.entities"]=true;
dojo.provide("dojox.html.entities");
(function(){
var _1=function(_2,_3){
var _4,_5;
if(_3._encCache&&_3._encCache.regexp&&_3._encCache.mapper&&_3.length==_3._encCache.length){
_4=_3._encCache.mapper;
_5=_3._encCache.regexp;
}else{
_4={};
_5=["["];
var i;
for(i=0;i<_3.length;i++){
_4[_3[i][0]]="&"+_3[i][1]+";";
_5.push(_3[i][0]);
}
_5.push("]");
_5=new RegExp(_5.join(""),"g");
_3._encCache={mapper:_4,regexp:_5,length:_3.length};
}
_2=_2.replace(_5,function(c){
return _4[c];
});
return _2;
};
var _6=function(_7,_8){
var _9,_a;
if(_8._decCache&&_8._decCache.regexp&&_8._decCache.mapper&&_8.length==_8._decCache.length){
_9=_8._decCache.mapper;
_a=_8._decCache.regexp;
}else{
_9={};
_a=["("];
var i;
for(i=0;i<_8.length;i++){
var e="&"+_8[i][1]+";";
if(i){
_a.push("|");
}
_9[e]=_8[i][0];
_a.push(e);
}
_a.push(")");
_a=new RegExp(_a.join(""),"g");
_8._decCache={mapper:_9,regexp:_a,length:_8.length};
}
_7=_7.replace(_a,function(c){
return _9[c];
});
return _7;
};
dojox.html.entities.html=[["&","amp"],["\"","quot"],["<","lt"],[">","gt"],["\xa0","nbsp"]];
dojox.html.entities.latin=[["\xa1","iexcl"],["\xa2","cent"],["\xa3","pound"],["\u20ac","euro"],["\xa4","curren"],["\xa5","yen"],["\xa6","brvbar"],["\xa7","sect"],["\xa8","uml"],["\xa9","copy"],["\xaa","ordf"],["\xab","laquo"],["\xac","not"],["\xad","shy"],["\xae","reg"],["\xaf","macr"],["\xb0","deg"],["\xb1","plusmn"],["\xb2","sup2"],["\xb3","sup3"],["\xb4","acute"],["\xb5","micro"],["\xb6","para"],["\xb7","middot"],["\xb8","cedil"],["\xb9","sup1"],["\xba","ordm"],["\xbb","raquo"],["\xbc","frac14"],["\xbd","frac12"],["\xbe","frac34"],["\xbf","iquest"],["\xc0","Agrave"],["\xc1","Aacute"],["\xc2","Acirc"],["\xc3","Atilde"],["\xc4","Auml"],["\xc5","Aring"],["\xc6","AElig"],["\xc7","Ccedil"],["\xc8","Egrave"],["\xc9","Eacute"],["\xca","Ecirc"],["\xcb","Euml"],["\xcc","Igrave"],["\xcd","Iacute"],["\xce","Icirc"],["\xcf","Iuml"],["\xd0","ETH"],["\xd1","Ntilde"],["\xd2","Ograve"],["\xd3","Oacute"],["\xd4","Ocirc"],["\xd5","Otilde"],["\xd6","Ouml"],["\xd7","times"],["\xd8","Oslash"],["\xd9","Ugrave"],["\xda","Uacute"],["\xdb","Ucirc"],["\xdc","Uuml"],["\xdd","Yacute"],["\xde","THORN"],["\xdf","szlig"],["\xe0","agrave"],["\xe1","aacute"],["\xe2","acirc"],["\xe3","atilde"],["\xe4","auml"],["\xe5","aring"],["\xe6","aelig"],["\xe7","ccedil"],["\xe8","egrave"],["\xe9","eacute"],["\xea","ecirc"],["\xeb","euml"],["\xec","igrave"],["\xed","iacute"],["\xee","icirc"],["\xef","iuml"],["\xf0","eth"],["\xf1","ntilde"],["\xf2","ograve"],["\xf3","oacute"],["\xf4","ocirc"],["\xf5","otilde"],["\xf6","ouml"],["\xf7","divide"],["\xf8","oslash"],["\xf9","ugrave"],["\xfa","uacute"],["\xfb","ucirc"],["\xfc","uuml"],["\xfd","yacute"],["\xfe","thorn"],["\xff","yuml"],["\u0192","fnof"],["\u0391","Alpha"],["\u0392","Beta"],["\u0393","Gamma"],["\u0394","Delta"],["\u0395","Epsilon"],["\u0396","Zeta"],["\u0397","Eta"],["\u0398","Theta"],["\u0399","Iota"],["\u039a","Kappa"],["\u039b","Lambda"],["\u039c","Mu"],["\u039d","Nu"],["\u039e","Xi"],["\u039f","Omicron"],["\u03a0","Pi"],["\u03a1","Rho"],["\u03a3","Sigma"],["\u03a4","Tau"],["\u03a5","Upsilon"],["\u03a6","Phi"],["\u03a7","Chi"],["\u03a8","Psi"],["\u03a9","Omega"],["\u03b1","alpha"],["\u03b2","beta"],["\u03b3","gamma"],["\u03b4","delta"],["\u03b5","epsilon"],["\u03b6","zeta"],["\u03b7","eta"],["\u03b8","theta"],["\u03b9","iota"],["\u03ba","kappa"],["\u03bb","lambda"],["\u03bc","mu"],["\u03bd","nu"],["\u03be","xi"],["\u03bf","omicron"],["\u03c0","pi"],["\u03c1","rho"],["\u03c2","sigmaf"],["\u03c3","sigma"],["\u03c4","tau"],["\u03c5","upsilon"],["\u03c6","phi"],["\u03c7","chi"],["\u03c8","psi"],["\u03c9","omega"],["\u03d1","thetasym"],["\u03d2","upsih"],["\u03d6","piv"],["\u2022","bull"],["\u2026","hellip"],["\u2032","prime"],["\u2033","Prime"],["\u203e","oline"],["\u2044","frasl"],["\u2118","weierp"],["\u2111","image"],["\u211c","real"],["\u2122","trade"],["\u2135","alefsym"],["\u2190","larr"],["\u2191","uarr"],["\u2192","rarr"],["\u2193","darr"],["\u2194","harr"],["\u21b5","crarr"],["\u21d0","lArr"],["\u21d1","uArr"],["\u21d2","rArr"],["\u21d3","dArr"],["\u21d4","hArr"],["\u2200","forall"],["\u2202","part"],["\u2203","exist"],["\u2205","empty"],["\u2207","nabla"],["\u2208","isin"],["\u2209","notin"],["\u220b","ni"],["\u220f","prod"],["\u2211","sum"],["\u2212","minus"],["\u2217","lowast"],["\u221a","radic"],["\u221d","prop"],["\u221e","infin"],["\u2220","ang"],["\u2227","and"],["\u2228","or"],["\u2229","cap"],["\u222a","cup"],["\u222b","int"],["\u2234","there4"],["\u223c","sim"],["\u2245","cong"],["\u2248","asymp"],["\u2260","ne"],["\u2261","equiv"],["\u2264","le"],["\u2265","ge"],["\u2282","sub"],["\u2283","sup"],["\u2284","nsub"],["\u2286","sube"],["\u2287","supe"],["\u2295","oplus"],["\u2297","otimes"],["\u22a5","perp"],["\u22c5","sdot"],["\u2308","lceil"],["\u2309","rceil"],["\u230a","lfloor"],["\u230b","rfloor"],["\u2329","lang"],["\u232a","rang"],["\u25ca","loz"],["\u2660","spades"],["\u2663","clubs"],["\u2665","hearts"],["\u2666","diams"],["\u0152","Elig"],["\u0153","oelig"],["\u0160","Scaron"],["\u0161","scaron"],["\u0178","Yuml"],["\u02c6","circ"],["\u02dc","tilde"],["\u2002","ensp"],["\u2003","emsp"],["\u2009","thinsp"],["\u200c","zwnj"],["\u200d","zwj"],["\u200e","lrm"],["\u200f","rlm"],["\u2013","ndash"],["\u2014","mdash"],["\u2018","lsquo"],["\u2019","rsquo"],["\u201a","sbquo"],["\u201c","ldquo"],["\u201d","rdquo"],["\u201e","bdquo"],["\u2020","dagger"],["\u2021","Dagger"],["\u2030","permil"],["\u2039","lsaquo"],["\u203a","rsaquo"]];
dojox.html.entities.encode=function(_b,m){
if(_b){
if(!m){
_b=_1(_b,dojox.html.entities.html);
_b=_1(_b,dojox.html.entities.latin);
}else{
_b=_1(_b,m);
}
}
return _b;
};
dojox.html.entities.decode=function(_c,m){
if(_c){
if(!m){
_c=_6(_c,dojox.html.entities.html);
_c=_6(_c,dojox.html.entities.latin);
}else{
_c=_6(_c,m);
}
}
return _c;
};
})();
}


;if(!dojo._hasResource["lconn.communities.bizCard.dialogs.deleteConfirm"]){
dojo._hasResource["lconn.communities.bizCard.dialogs.deleteConfirm"]=true;
dojo.provide("lconn.communities.bizCard.dialogs.deleteConfirm");
dojo.require("dijit.Dialog");
dojo.require("dojox.html.entities");
dojo.requireLocalization("lconn.communities.bizCard","ui");
dojo.declare("lconn.communities.bizCard.dialogs.deleteConfirm",[dijit.Dialog],{stringResources:dojo.i18n.getLocalization("lconn.communities.bizCard","ui"),templateString:"<div dojoAttachPoint=\"containerNode\" id=\"dialog_communities\" class=\"lotusui30dojo lotusDialogWrapper\" tabindex=\"-1\" role=\"dialog\" waiState=\"labelledby-${id}_title\" aria-describedby=\"warning\">\t\t\t<div dojoAttachPoint=\"dialogBorder\" class=\"lotusDialogBorder\" style=\"width:inherit; height:inherit\">\t\t\t\t<div class=\"lotusDialog lotusForm2 _lotusDelete\"> \t\t\t\t\t<div dojoAttachPoint=\"titleBar\" class=\"lotusDialogHeader\"> \t\t\t\t\t\t<div dojoAttachPoint=\"titleNode\" id=\"${id}_title\" class=\"lotusHeading\">${dlgTitle}</div> \t\t\t\t\t\t<a class=\"lotusDialogClose\" href=\"javascript:;\" title=\"Close\" dojoAttachEvent=\"onkeypress:onEnterCancelClicked,onclick:onCancelClicked\" >\t\t\t\t\t\t\t<img alt=\"Close\" src=\""+dojo.config.blankGif+"\"/>\t\t\t\t\t\t\t<span class=\"lotusAltText\" >X</span>\t\t\t\t\t\t</a> \t\t\t\t\t</div>\t\t\t\t\t<div style=\"overflow:hidden\"> \t\t\t\t\t\t<div class=\"lotusErrorBox lotusui30_layout\">\t\t\t\t\t\t\t<div class=\"lotusErrorContent\">\t\t\t\t\t\t\t\t<img alt=\"\" class=\"iconsMessages48 iconsMessages48-msgError48\" src=\""+dojo.config.blankGif+"\">\t\t\t\t\t\t\t\t<div class=\"lotusErrorForm\">\t\t\t\t\t\t\t\t\t<div class=\"lotusMessage2\" style=\"margin:0px; top:0px; padding:10px\">\t\t\t\t\t\t\t\t\t\t<span id=\"warning\" style=\"font-size:150%\">${warning}</span>\t\t\t\t\t\t\t\t\t\t<br>\t\t\t\t\t\t\t\t\t\t<span style=\"font-size:200%\">${communityTitle}</span>\t\t\t\t\t\t\t\t\t\t<div>\t\t\t\t\t\t\t\t\t\t<p><b dojoAttachPoint=\"subcommunities\"></b></p>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div style=\"clear:both\"></div>\t\t\t\t\t\t\t\t\t<br>\t\t\t\t\t\t\t\t\t<span>\t\t\t\t\t\t\t\t\t\t${signDirection}\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t<br><br>\t\t\t\t\t\t\t\t\t<span class=\"lotusMeta\" style=\"color:#666666\">\t\t\t\t\t\t\t\t\t\t${capitalizationWarning}\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t<br><br>\t\t\t\t\t\t\t\t\t<div class=\"lotusFormField\">\t\t\t\t\t\t\t\t\t\t<label role=\"presentation\" class=\"lotusFloat\" style=\"margin-left: 0px; width:200px\">${communityName}</label>\t\t\t\t\t\t\t\t\t\t<div class=\"lotusFieldWrapper\">${communityTitleDisplay}</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class=\"lotusFormField\">\t\t\t\t\t\t\t\t\t\t<label for=\"communityName\" class=\"lotusFloat\" style=\"margin-left: 0px; width:200px\">${confirmCommunityName}</label>\t\t\t\t\t\t\t\t\t\t<div class=\"lotusFieldWrapper\">\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" dojoAttachPoint=\"communityInputField\" aria-required=\"true\" value=\"\" name=\"communityName\" id=\"communityName\" class=\"lotusText\" dojoAttachEvent=\"oninput:onCommunityChange\"><br><br><br>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class=\"lotusFormField\">\t\t\t\t\t\t\t\t\t\t<label role=\"presentation\" class=\"lotusFloat\" style=\"margin-left: 0px; width:200px\">${nameTitle}</label>\t\t\t\t\t\t\t\t\t\t<div class=\"lotusFieldWrapper\">${userNameDisplay}</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class=\"lotusFormField\">\t\t\t\t\t\t\t\t\t\t<label for=\"signature\" class=\"lotusFloat\" style=\"margin-left: 0px; width:200px\">${signatureTitle}</label>\t\t\t\t\t\t\t\t\t\t<div class=\"lotusFieldWrapper\">\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" dojoAttachPoint=\"nameInputField\" aria-required=\"true\" value=\"\" name=\"signature\" id=\"signature\" class=\"lotusText\" dojoAttachEvent=\"oninput:onNameChange\"><br><br><br>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class=\"lotusFormField\"><div class=\"lotusFieldWrapper\">\t\t\t\t\t\t\t\t\t\t<input id=\"checkbox\" class=\"lotusCheckbox\" type=\"checkbox\" value=\"\" name=\"checkbox\" dojoAttachEvent=\"onclick:onCheckboxChecked\">\t\t\t\t\t\t\t\t\t\t<label class=\"lotusCheckbox\" for=\"checkbox\" style=\"margin-left: 0px\">${understandTitle}</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t</div><!--end lotusDialogContent-->\t\t\t\t\t<div class=\"lotusDialogFooter\">\t\t\t\t\t\t<button dojoAttachPoint=\"okButtonNode\" class=\"lotusBtn lotusBtnDisabled\" aria-disabled=\"true\" dojoAttachEvent=\"onclick:onOkClicked\">${okButtonValue}</button>\t\t\t\t\t\t<button dojoAttachPoint=\"closeButtonNode\" dojoAttachPoint=\"closeText\" name=\"yourButtonName\"class=\"lotusBtn\" dojoAttachEvent=\"onclick:onCancelClicked\">${closeButtonValue}</button>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div><!--end lotusDialogBorder-->\t\t</div>",userName:"TBD",communityTitle:"COMMUNITY TITLE",nameCorrect:false,communityNameCorrect:false,numSubs:0,_checkboxChecked:false,callback:null,communityName:"",confirmCommunityName:"",postMixInProperties:function(){
this.communityTitleDisplay=this.communityTitle.replace(/\u0020/g,"&nbsp;");
this.userNameDisplay=this.userName.replace(/\u0020/g,"&nbsp;");
this.dlgTitle=dojo.string.substitute(this.stringResources["label.deleteConfirm.dlgTitle"],[this.communityTitle]);
this.warning=this.stringResources["label.deleteConfirm.warning"];
this.signDirection=this.stringResources["label.deleteConfirm.signDirection"];
this.nameTitle=this.stringResources["label.deleteConfirm.nameTitle"];
this.signatureTitle=this.stringResources["label.deleteConfirm.signatureTitle"];
this.understandTitle=this.stringResources["label.deleteConfirm.understandTitle"];
this.okButtonValue=this.stringResources["label.deleteConfirm.okButtonValue"];
this.closeButtonValue=this.stringResources["label.deleteConfirm.closeButtonValue"];
this.communityName=this.stringResources["label.deleteConfirm.communityNameTitle"];
this.confirmCommunityName=this.stringResources["label.deleteConfirm.communityNameConfirm"];
this.capitalizationWarning=this.stringResources["label.deleteConfirm.capitalizationWarning"];
this.inherited(arguments);
},postCreate:function(){
if(dojo.isIE){
dojo.connect(this.nameInputField,"onpropertychange",this,"onNameChange");
dojo.connect(this.communityInputField,"onpropertychange",this,"onCommunityChange");
dojo.style(this.dialogBorder,"width","auto");
dojo.style(this.dialogBorder,"height","auto");
if(!dojo._isBodyLtr()){
var _1=Math.max(dojo.coords(this.titleNode).w,600);
dojo.query(".lotusFormField",this.domNode).forEach(function(_2){
dojo.style(_2,"width",_1+"px");
});
}
}
if(this.numSubs==1){
dojo.html.set(this.subcommunities,this.stringResources["label.deleteConfirm.oneSubCommunity"]);
}else{
if(this.numSubs>1){
dojo.html.set(this.subcommunities,dojo.string.substitute(this.stringResources["label.deleteConfirm.multipleSubCommunities"],[this.numSubs]));
}
}
this.inherited(arguments);
dojo.removeClass(this.containerNode,"dijitContentPane");
this._enableDeleteButton();
},onOkClicked:function(){
this.hide();
if(this.callback!=null){
this.callback();
}
},onEnterCancelClicked:function(_3){
if(_3.keyCode==13){
this.onCancelClicked();
}
},onCancelClicked:function(){
this.hide();
},onCheckboxChecked:function(_4){
this._checkboxChecked=_4.target.checked;
this._enableDeleteButton();
return (true);
},onNameChange:function(_5){
if(dojox.html.entities.decode(this.userName)==_5.target.value){
this.nameCorrect=true;
}else{
this.nameCorrect=false;
}
this._enableDeleteButton();
},onCommunityChange:function(_6){
if(dojox.html.entities.decode(this.communityTitle)==_6.target.value){
this.communityNameCorrect=true;
}else{
this.communityNameCorrect=false;
}
this._enableDeleteButton();
},_enableDeleteButton:function(){
okButton=this.okButtonNode;
bntDisabledClass="lotusBtnDisabled";
if(this._checkboxChecked==true&&this.nameCorrect==true&&this.communityNameCorrect==true){
dojo.attr(okButton,{"class":"lotusBtn","aria-disabled":"false"});
okButton.disabled=false;
}else{
dojo.attr(okButton,{"class":"lotusBtn lotusBtnDisabled","aria-disabled":"true"});
okButton.disabled=true;
}
},_size:function(){
var _7=this.inherited(arguments);
this.domNode.style.position="absolute";
return (_7);
}});
}


;if(!dojo._hasResource["lconn.communities.bizCard.core"]){
dojo._hasResource["lconn.communities.bizCard.core"]=true;
dojo.provide("lconn.communities.bizCard.core");
dojo.require("lconn.core.url");
dojo.require("dijit.Menu");
dojo.require("lconn.communities.bizCard.dialogs.leaveConfirm");
dojo.require("lconn.communities.bizCard.dialogs.deleteConfirm");
dojo.requireLocalization("lconn.communities.bizCard","ui");
lconn.communities.bizCard.core={messages:dojo.i18n.getLocalization("lconn.communities.bizCard","ui"),_firstActionShown:false,_communityActionsNode:null,_nonCommunityActionBar:false,openComposeEmail:function(_1){
var _2=false;
var _3=document.getElementsByTagName("body")[0];
if(dojo.hasClass(_3,"dijit_a11y")){
_2=true;
}
var _4=630;
if(dojo.isIE){
_4+=30;
}
if(_2){
_4+=50;
}
var _5="width=1000,height="+_4+",scrollbars=yes,resizable=yes,location=no,status=no,toolbar=no,menubar=no";
window.open(_1,"",_5);
return false;
},enableTopButton:function(_6,_7){
var _8=dojo.byId(_6);
if(_8){
dojo.connect(_8,"onclick",null,function(_9){
_7(_9);
if(_9!=null){
dojo.stopEvent(_9);
}
return false;
});
}
},confirmCommunityDeletion:function(_a){
numSubs=_a.subcommunities.length;
var _b=new lconn.communities.bizCard.dialogs.deleteConfirm({"communityTitle":ic_comm_communityName,"callback":this.CommunityDelete,"numSubs":numSubs,"userName":_a.userName});
_b.show();
},CommunityDelete:function(){
location.href=lconn.communities.bizCard.core.community.deleteUrl;
},confirmCommunityLeave:function(){
var _c="label.action.confirm.community.before.leave";
if(this.community.groupSupportEnabled){
_c="label.action.confirm.community.before.leave.groupEnabled";
}
var _d=new lconn.communities.bizCard.dialogs.leaveConfirm({"dlgContent":this.messages[_c],"callback":this.CommunityLeave});
_d.show();
},CommunityLeave:function(){
location.href=lconn.communities.bizCard.core.community.leaveUrl;
},setJoinCommunityReqCookie:function(){
document.cookie="JoinCommunityReqURL="+location.href+"; expires="+new Date(new Date().getTime()+365*24*60*60*1000).toGMTString()+"; path="+location.href;
},deleteCommunity:function(_e){
this.confirmCommunityDeletion(_e);
location.href=_e.deleteUrl;
},isNotEmpty:function(_f){
return _f!=null&&_f!="";
},buildActionsMenu:function(_10){
var _11=this.messages;
try{
var _12=dijit.byId("CommunitiesActionsMenuMain");
if(_12!=null){
_12.destroyRecursive();
}
}
catch(exception1){
console.log(exception1);
}
var _13=new dijit.Menu({"class":"lotusPlain",id:"CommunitiesActionsMenuMain"});
var _14=false;
if(lconn.core.WidgetPlacement!=null&&lconn.core.WidgetPlacement.isInWidgetFullpageMode){
_14=true;
}
if(_10.showGoToComm==true){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.gotoComm"],"GOTOCOMM"));
}
if(_10.isCommunityOverview==true&&_10.editSubEnabled==true&&_14==false){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.edit"],"EDITSUB"));
if(_10.customizeEnabled){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.theme.customize"],"customize"));
}
}
if(_10.editEnabled==true&&_14==false){
if(_10.createSubEnabled==true){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.create"],"CREATESUB"));
}
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.edit"],"EDIT"));
if(_10.customizeEnabled){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.theme.customize"],"customize"));
}
}
if(_10.moderateEnabled==true){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.moderate"],"MODERATE"));
}
if(this.isNotEmpty(_10.memberJoinURL)){
if(_10.canJoinCommunity==true){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.join"],"JOIN"));
}else{
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.requestToJoin"],"REQUESTJOIN"));
}
}
if(_10.mailEnabled==true){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.email"],"EMAIL"));
}
if(this.isNotEmpty(_10.leaveUrl)){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.leave"],"LEAVE"));
}
if(this.isNotEmpty(_10.deleteUrl)){
_13.addChild(lconn.communities.bizCard.core.buildActionsMenuItem(_11["label.top.buttons.delete"],"DELETE"));
}
var _15=function(_16){
if(_16!=null){
if(_16.action=="GOTOCOMM"){
location.href=lconn.communities.bizCard.core.community.homeUrl;
}else{
if(_16.action=="EMAIL"){
lconn.communities.bizCard.core.openComposeEmail(lconn.communities.bizCard.core.getComposeURL(lconn.communities.bizCard.core.community));
}else{
if(_16.action=="customize"){
lconn.core.applicationPalette.showPalette();
}else{
if(_16.action=="EDIT"){
displayCommunityEdit();
}else{
if(_16.action=="MODERATE"){
location.href=_10.moderationServiceUrl+_10.uuid;
}else{
if(_16.action=="METRICS"){
location.href=_10.metricsServiceUrl.replace("${0}",_10.uuid);
}else{
if(_16.action=="EDITSUB"){
displaySubcommunityEdit();
}else{
if(_16.action=="DELETE"){
if(lconn.communities.bizCard.core.confirmCommunityDeletion(_10)){
location.href=lconn.communities.bizCard.core.community.deleteUrl;
}
}else{
if(_16.action=="CREATESUB"){
displaySubcommunityCreate();
}else{
if(_16.action=="LEAVE"){
lconn.communities.bizCard.core.confirmCommunityLeave();
}else{
if(_16.action=="JOIN"){
lconn.communities.bizCard.core.setJoinCommunityReqCookie();
location.href=lconn.communities.bizCard.core.community.memberJoinURL;
}else{
if(_16.action=="REQUESTJOIN"){
location.href=lconn.communities.bizCard.core.community.memberJoinURL;
}
}
}
}
}
}
}
}
}
}
}
}
}
};
dojo.connect(_13,"onItemClick",_15);
return _13;
},buildActionsMenuItem:function(_17,_18){
var _19="communityMenu_"+_18;
var _1a=new dijit.MenuItem({label:_17,id:_19});
_1a.action=_18;
return _1a;
},openActionsMenu:function(evt){
try{
var _1b=lconn.communities.bizCard.core.buildActionsMenu(lconn.communities.bizCard.core.community);
if(evt.target.id!=null){
dojo.attr(evt.target,"aria-owns",evt.target.id+"_dropdown");
}
menuUtility.openMenu(evt,_1b.id);
dojo.stopEvent(evt);
}
catch(e){
console.log(e);
}
},getComposeURL:function(_1c){
var _1d=lconn.core.bizCard.bizCardUtils.getBaseURL("hgroup");
return _1d+"/service/html/composeemail?communityUuid="+_1c.uuid;
},joinComm:function(){
lconn.communities.bizCard.core.setJoinCommunityReqCookie();
location.href=lconn.communities.bizCard.core.community.memberJoinURL;
},setCommunitiesReqCookie:function(){
var _1e=location.href.substr(0,location.href.indexOf("/service"));
_1e=_1e.substr(_1e.indexOf("/",_1e.indexOf("://")+3));
document.cookie="CommunitiesReqURL="+location.href+"; expires="+new Date(new Date().getTime()+365*24*60*60*1000).toGMTString()+"; path="+_1e;
},addCommunityActionsMenuUI:function(_1f){
var _20=this.messages;
var _21=this._getCommunityActionsNode();
if(_21!=null){
if(!_1f.authContextAuthenticated){
if(this._nonCommunityActionBar==false){
var li=this.createActionListItem();
li.innerHTML=_1f.translatedLoginLinkToParticipate;
dojo.place(li,_21);
dojo.connect(li,"onclick",function(){
lconn.core.auth.login();
});
dojo.publish("CommunityActionBar",[{type:"CreatedLogin",community:_1f,node:li}]);
}
return;
}
if(!_1f.showMemberActions&&this.isNotEmpty(_1f.memberJoinURL)&&!_1f.isSuperAdmin){
var li="";
if(document.body.className.indexOf("minimal")!=-1){
li=dojo.create("li");
li.style.borderLeft="none";
if(_1f.canJoinCommunity==true){
li.innerHTML="<span class=\"lotusBtn\"><a id=\"joinDisplayActionsBtn\" href=\"javascript:lconn.communities.bizCard.core.joinComm();\" role=\"button\" aria-owns=\"joinDisplayActionsBtn\" title=\""+_20["label.top.buttons.join.title"]+"\" alt=\""+_20["label.top.buttons.join"]+"\">"+_20["label.top.buttons.join"]+"</a></span>";
}else{
li.innerHTML="<span class=\"lotusBtn\"><a id=\"joinDisplayActionsBtn\" href=\""+_1f.memberJoinURL+"\" role=\"button\" aria-owns=\"joinDisplayActionsBtn\" title=\""+_20["label.top.buttons.requestToJoin.title"]+"\" alt=\""+_20["label.top.buttons.requestToJoin"]+"\">"+_20["label.top.buttons.requestToJoin"]+"</a></span>";
}
}else{
li=this.createActionListItem();
if(_1f.canJoinCommunity==true){
li.innerHTML="<a id=\"joinDisplayActionsBtn\" href=\"javascript:lconn.communities.bizCard.core.joinComm();\" role=\"button\" aria-owns=\"joinDisplayActionsBtn\" title=\""+_20["label.top.buttons.join.title"]+"\" alt=\""+_20["label.top.buttons.join"]+"\">"+_20["label.top.buttons.join"]+"</a>";
}else{
li.innerHTML="<a id=\"joinDisplayActionsBtn\" href=\""+_1f.memberJoinURL+"\" role=\"button\" aria-owns=\"joinDisplayActionsBtn\" title=\""+_20["label.top.buttons.requestToJoin.title"]+"\" alt=\""+_20["label.top.buttons.requestToJoin"]+"\">"+_20["label.top.buttons.requestToJoin"]+"</a>";
}
}
dojo.place(li,_21);
dojo.publish("CommunityActionBar",[{type:"CreatedJoin",community:_1f,node:li}]);
}
if(_1f.showMemberActions||_1f.isSuperAdmin){
var _22=dojo.byId("displayActionsBtn");
if(_22){
var _23=_22.parentNode;
dojo.destroy(_23);
this._firstActionShown=false;
}
var li="";
if(document.body.className.indexOf("minimal")!=-1){
li=dojo.create("li");
li.style.borderLeft="none";
li.innerHTML="<span class=\"lotusBtn\"><a id=\"displayActionsBtn\" href=\"javascript:;\" role=\"button\" aria-haspopup=\"true\">"+_20["label.top.buttons.com.actions"]+"<img class=\"lotusArrow lotusDropDownSprite\" src=\""+dijit._Widget.prototype._blankGif+"\" role=\"presentation\" alt=\"\"/>"+"<span role=\"presentation\" class=\"lotusAltText\">&#x25bc;</span>"+"</a></span>";
}else{
li=this.createActionListItem();
li.innerHTML="<a id=\"displayActionsBtn\" href=\"javascript:;\" role=\"button\" aria-haspopup=\"true\">"+_20["label.top.buttons.com.actions"]+"<img class=\"lotusArrow lotusDropDownSprite\" src=\""+dijit._Widget.prototype._blankGif+"\" role=\"presentation\" alt=\"\"/>"+"<span role=\"presentation\" class=\"lotusAltText\">&#x25bc;</span>"+"</a>";
}
dojo.place(li,_21);
this.community=_1f;
this.enableTopButton("displayActionsBtn",lconn.communities.bizCard.core.openActionsMenu);
dojo.publish("CommunityActionBar",[{type:"CreatedAction",community:_1f,node:li}]);
}
dojo.publish("CommunityActionBar",[{type:"Created",community:_1f}]);
}
},addParentCommunity:function(_24){
var _25=this.messages;
var _26="";
if(_24.parentName!=null&&_24.parentName.length>0){
_26+="<div class=\"lotusMenuSection lotusIndent10\">";
_26+="<h3>";
_26+="<div class=\"lotusIndent15 communityLink\">";
_26+="<a class=\"lotusBold\" style=\"display:inline\" role=\"button\" href=\""+_24.parentUrl+"\" title=\""+_25["tooltip.overview"]+"\">";
if(_24.parentType!="public"){
if(_24.parentType=="private"){
_26+="<img class=\"iconsStates16 iconsStates16-CheckedOut\" src=\""+dojo.config.blankGif+"\" alt=\""+_25["label.private.community.alt.text"]+"\" title=\""+_25["label.private.community.alt.text"]+"\" />";
_26+="<span class=\"lotusAltText\">"+_25["label.private.community.alt.text"]+" </span>";
}else{
_26+="<img class=\"iconsOther16 iconsOther16-ModeratedCommunity16\" src=\""+dojo.config.blankGif+"\" alt=\""+_25["label.moderated.community.alt.text"]+"\" title=\""+_25["label.moderated.community.alt.text"]+"\"/>";
_26+="<span class=\"lotusAltText\">"+_25["label.moderated.community.alt.text"]+" </span>";
}
}
_26+=" "+_24.parentName+"</a>";
_26+="</div> </h3>";
_26+="</div><!--end section-->";
}
return _26;
},addSubCommunities:function(_27){
var _28=this.messages;
var _29="";
if(_27.subcommunities!=null&&_27.subcommunities.length>0){
_29="<div class=\"lotusMenuSection\" aria-labelledby=\"subCommNm\" role=\"navigation\"><h3><a role=\"button\" id=\""+_27.uuid+"_subtwisty\" class=\"lotusSprite lotusArrow lotusTwistyOpen\" title=\""+_28["label.collapse"]+"\" href=\"javascript:;\" onclick=\"lconn.communities.bizCard.core.toggleSection('"+_27.uuid+"_subtwisty"+"','"+_27.uuid+"_comm_subLinks"+"','"+_27.uuid+"_subAltOpen"+"');\">"+"<span id=\""+_27.uuid+"_subAltOpen\" class=\"lotusAltText\">&#x25bc;</span><span id=\""+_27.uuid+"_subAltClosed\" class=\"lotusHidden\">&#x25BA;</span></a><div id=\"subCommNm\"> "+_28["label.subcommunities"]+"</div></h3>"+"<div id=\""+_27.uuid+"_comm_subLinks\" class=\"lotusMenuSubsection\">"+"<ul role=\"toolbar\">";
for(var i=0;i<_27.subcommunities.length;i++){
var _2a=_27.subcommunities[i];
_29+="<li><a role=\"button\" href=\""+_2a.url+"\" title=\""+_2a.name+"\">"+_2a.name+"</a></li>";
}
_29+="</ul>"+"</div></div>";
}
return _29;
},toggleSection:function(_2b,_2c,_2d,_2e){
var _2f=this.messages;
var _30=dojo.byId(_2b);
var _31=dojo.byId(_2c);
var _32=dojo.byId(_2d);
if(_31.style.display=="none"){
_31.style.display="block";
dojo.removeClass(_30,"lotusTwistyClosed");
dojo.addClass(_30,"lotusTwistyOpen");
dojo.attr(_30,"title",_2f["label.collapse"]);
if(typeof _2e=="string"){
dojo.cookie(_2e,1);
}
_32.innerHTML="&#x25bc;";
}else{
_31.style.display="none";
dojo.removeClass(_30,"lotusTwistyOpen");
dojo.addClass(_30,"lotusTwistyClosed");
dojo.attr(_30,"title",_2f["label.expand"]);
if(typeof _2e=="string"){
dojo.cookie(_2e,0);
}
_32.innerHTML="&#x25ba;";
}
},showFollowConfirmation:function(_33){
var _34=dojo.byId("lotusContent");
if(_34!=null){
var _35="followCommunityConfirmId";
var _36=dojo.byId(_35);
if(_36!=null){
_36.innerHTML="";
_36.parentNode.removeChild(_36);
}
var _37=document.createElement("div");
dojo.addClass(_37,"lotusMessage lotusConfirm");
dojo.attr(_37,"role","alert");
dojo.attr(_37,"id",_35);
dojo.attr(_37,"aria-live","assertive");
_37.innerHTML="<img class=\"lconnSprite lconnSprite-iconConfirmation16\" title=\""+this.messages["label.msg.confirmation"]+"\" alt=\""+this.messages["label.msg.confirmation"]+"\" src=\""+dijit._Widget.prototype._blankGif+"\">";
var _38=document.createElement("span");
_38.innerHTML=_33;
_37.appendChild(_38);
_34.insertBefore(_37,_34.firstChild);
}
},follow:function(){
var _39=this.messages;
var _3a=function(_3b,_3c){
var _3d;
if((lconn.communities.bizCard.bizCard.currentCommunity&&lconn.communities.bizCard.bizCard.currentCommunity.memberJoinURL)||(lconn.communities.bizCard.core.community&&lconn.communities.bizCard.core.community.memberJoinURL)){
_3d="label.action.confirm.community.after.follow.nonmember";
}else{
_3d="label.action.confirm.community.after.follow.member";
}
lconn.communities.bizCard.core.showFollowConfirmation(_39[_3d]);
var _3e=dijit.byId("communityMenu_FOLLOW");
if(_3e==null){
_3e=dijit.byId("communityMenu_UNFOLLOW");
}
if(_3e!=null){
dojo.attr(_3e,"label",_39["label.top.buttons.unfollow"]);
dojo.attr(_3e,"title",_39["label.top.buttons.unfollow.title"]);
_3e.onClick=function(){
lconn.communities.bizCard.core.unFollow();
};
}
var _3f=dojo.byId("followDisplayActionsBtn");
if(_3f!=null){
_3f.innerHTML=_39["label.top.buttons.unfollow"];
if(dojo.isIE){
_3f.onclick=function(){
lconn.communities.bizCard.core.unFollow();
};
}else{
_3f.setAttribute("onclick","lconn.communities.bizCard.core.unFollow()");
}
dojo.attr(_3f,"title",_39["label.top.buttons.unfollow.title"]);
_3f.setAttribute("aria-label",_39["label.top.buttons.unfollow"]);
}
dojo.publish("lconn.comm.commFollowed",[lconn.communities.bizCard.core.community.uuid]);
};
var url=lconn.communities.bizCard.core.community.followUrl;
if(url==null){
url=lconn.communities.bizCard.core.community.unfollowUrl;
url=url.replace("memberunfollowsubmit","memberfollowsubmit");
}
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.proxyURL!=null){
var ph=new lconn.core.url.ProxyUrlHelper(SemTagSvcConfig.proxyURL);
url=ph.getProxifiedURL(url);
}
dojo.xhrGet({url:url,headers:{"X-Update-Nonce":"true"},load:_3a,error:this.getFollowErrorCallback()});
return false;
},getFollowErrorCallback:function(){
return function(_40,_41){
console.log("follow errorCallBack callback: "+_40);
var _42=lconn.communities.bizCard.core.messages;
var _43;
if(_41.xhr.status==401){
_43=_42["label.msg.action.failed.need.login"];
}else{
_43=_42["label.msg.action.failed"].replace("${0}",_40);
}
var _44=dojo.byId("lotusContent");
if(_44!=null){
var _45="followCommunityConfirmId";
var _46=dojo.byId(_45);
if(_46!=null){
_46.innerHTML="";
_46.parentNode.removeChild(_46);
}
var _47=document.createElement("div");
dojo.addClass(_47,"lotusMessage2");
dojo.attr(_47,"role","alert");
dojo.attr(_47,"id",_45);
dojo.attr(_47,"aria-live","assertive");
_47.innerHTML="<img class=\"lconnSprite lconnSprite-iconError16\" title=\""+_42["label.msg.error"]+"\" alt=\""+_42["label.msg.error"]+"\" src=\""+dijit._Widget.prototype._blankGif+"\">";
var _48=document.createElement("span");
_48.innerHTML=_43;
_47.appendChild(_48);
_44.insertBefore(_47,_44.firstChild);
}
};
},unFollow:function(){
var _49=this.messages;
var _4a=function(_4b,_4c){
lconn.communities.bizCard.core.showFollowConfirmation(_49["label.action.confirm.community.after.unfollow"]);
var _4d=dijit.byId("communityMenu_UNFOLLOW");
if(_4d==null){
_4d=dijit.byId("communityMenu_FOLLOW");
}
if(_4d!=null){
dojo.attr(_4d,"label",_49["label.top.buttons.follow"]);
dojo.attr(_4d,"title",_49["label.top.buttons.follow.title"]);
_4d.onClick=function(){
lconn.communities.bizCard.core.follow();
};
}
var _4e=dojo.byId("followDisplayActionsBtn");
if(_4e!=null){
_4e.innerHTML=_49["label.top.buttons.follow"];
if(dojo.isIE){
_4e.onclick=function(){
lconn.communities.bizCard.core.follow();
};
}else{
_4e.setAttribute("onclick","lconn.communities.bizCard.core.follow()");
}
_4e.setAttribute("aria-label",_49["label.top.buttons.follow"]);
dojo.attr(_4e,"title",_49["label.top.buttons.follow.title"]);
}
dojo.publish("lconn.comm.commUnFollowed",[lconn.communities.bizCard.core.community.uuid]);
};
var url=lconn.communities.bizCard.core.community.unfollowUrl;
if(url==null){
url=lconn.communities.bizCard.core.community.followUrl;
url=url.replace("memberfollowsubmit","memberunfollowsubmit");
}
if(window.SemTagSvcConfig!=null&&SemTagSvcConfig.proxyURL!=null){
var ph=new lconn.core.url.ProxyUrlHelper(SemTagSvcConfig.proxyURL);
url=ph.getProxifiedURL(url);
}
dojo.xhrGet({url:url,headers:{"X-Update-Nonce":"true"},load:_4a,error:this.getFollowErrorCallback()});
return false;
},addFollowActionsMenuUI:function(_4f){
var _50=this.messages;
var _51=dojo.byId("followActionBar");
var _52=dijit.byId("followDropDownMenu");
var _53=this._getCommunityActionsNode();
if(_4f.isCommunityOverview&&this.isNotEmpty(_4f.followUrl)){
var li=this.createActionListItem();
li.innerHTML="<a id=\"followDisplayActionsBtn\" href=\"javascript:void(0);\" role=\"button\" onclick=\"lconn.communities.bizCard.core.follow()\" title=\""+_50["label.top.buttons.follow.title"]+"\">"+_50["label.top.buttons.follow"]+"</a>";
dojo.place(li,_53);
dojo.publish("FollowActionBar",[{type:"CreatedFollow",community:_4f,node:li}]);
}else{
if(_4f.isCommunityOverview&&this.isNotEmpty(_4f.unfollowUrl)){
var li=this.createActionListItem();
li.innerHTML="<a id=\"followDisplayActionsBtn\" href=\"javascript:void(0);\" role=\"button\" onclick=\"lconn.communities.bizCard.core.unFollow()\" title=\""+_50["label.top.buttons.unfollow.title"]+"\">"+_50["label.top.buttons.unfollow"]+"</a>";
dojo.place(li,_53);
dojo.publish("FollowActionBar",[{type:"CreatedunFollow",community:_4f,node:li}]);
}else{
if(_52!=null){
if(this.isNotEmpty(_4f.followUrl)){
var _54=lconn.communities.bizCard.core.buildActionsMenuItem(_50["label.top.buttons.follow"],"FOLLOW");
_54.onClick=function(){
lconn.communities.bizCard.core.follow();
};
dojo.attr(_54,"title",_50["label.top.buttons.follow.title"]);
_52.addChild(_54);
}else{
if(this.isNotEmpty(_4f.unfollowUrl)){
var _54=lconn.communities.bizCard.core.buildActionsMenuItem(_50["label.top.buttons.unfollow"],"UNFOLLOW");
_54.onClick=function(){
lconn.communities.bizCard.core.unFollow();
};
dojo.attr(_54,"title",_50["label.top.buttons.unfollow.title"]);
_52.addChild(_54);
}
}
}
}
}
},startUp:function(_55,_56){
_55.isCommunityOverview=true;
this.addFollowActionsMenuUI(_55);
this.addCommunityActionsMenuUI(_55);
_55.subcommunities=_56.subcommunities;
dojo.byId("subcommArea").innerHTML=this.addSubCommunities(_55);
lconn.communities.bizCard.core.community=_55;
var _57=dojo.byId("lotusTitleBar");
var _58=dojo.byId("tabNavigation");
if(_57!=undefined&&_57!=null){
if(_58==undefined||_58!=null){
_58=document.createElement("a");
_58.setAttribute("id","tabNavigation");
_58.setAttribute("name","tabNavigation");
if(_57.firstChild){
_57.insertBefore(_58,_57.firstChild);
}else{
_57.appendChild(_58);
}
}
}
var _59;
if(dojo.byId("lotusNavBar")){
try{
_59=new lconn.core.WidgetPlacement.aria.Toolbar("lotusNavBar");
}
catch(ee){
_59=new lconn.core.aria.Toolbar("lotusNavBar");
}
}
},createActionListItem:function(){
var _5a=dojo.create("li");
dojo.addClass(_5a,"lotusNowrap");
if(this._firstActionShown==false){
dojo.addClass(_5a,"lotusFirst");
this._firstActionShown=true;
}
return (_5a);
},_getCommunityActionsNode:function(){
var _5b=null;
if(this._communityActionsNode==null){
var _5c=dojo.byId("communityActionBar");
if(_5c!=null){
var _5b=this._getParentNode(_5c);
if(_5b!=null){
this._firstActionShown=true;
this._nonCommunityActionBar=true;
if(_5c.tagName.toLowerCase()=="span"){
var _5d=dojo.create("li",{id:"communityActionBar",style:{display:"none"}});
dojo.place(_5d,_5c,"replace");
}
}
if(_5b==null){
_5b=dojo.create("ul",{"id":"communityActions","class":"lotusInlinelist lotusActions lotusRight"});
dojo.place(_5b,_5c,"first");
}
this._communityActionsNode=_5b;
}
}
return (this._communityActionsNode);
},_getParentNode:function(_5e){
var _5f=null;
var _60=_5e.parentNode;
if(_60!=null){
if(_60.nodeName.toLowerCase()=="li"){
_60=_60.parentNode;
}
if(_60.nodeName.toLowerCase()=="ul"){
_5f=_60;
}
}
return (_5f);
}};
}


;if(!dojo._hasResource["lconn.communities.bizCard.bizCardUI"]){
dojo._hasResource["lconn.communities.bizCard.bizCardUI"]=true;
dojo.provide("lconn.communities.bizCard.bizCardUI");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.core.utilities");
dojo.require("lconn.core.HTMLUtil");
dojo.require("dojo.cookie");
dojo.require("lconn.communities.bizCard.core");
dojo.requireLocalization("lconn.communities.bizCard","ui");
lconn.communities.bizCard.bizCardUI={messages:dojo.i18n.getLocalization("lconn.communities.bizCard","ui"),getMenuData:function(_1,_2,_3,_4,_5,_6){
var _7=this.messages;
var _8=_7["label.overview"];
var _9="";
if(lconn.core.bizCard.bizCardUtils.standaloneCSSloaded){
_9=" lotusui";
}
var _a=lconn.core.HTMLUtil.escapeInlineText(_1.name);
_5.write("<div id='container "+_9+"' style='width: 32em; border: 1px solid #e0e0e0; -moz-border-radius:7px;background-color:#F5F8FF;padding:10px 0px 8px 10px;'>");
_5.write("  <div id='navigationLinks' style='clear:left; border-bottom:1px solid #e0e0e0;padding: 0px 0pt 5px 0px;margin:0;'>");
_5.write("      <a href='"+_1.homeUrl+"' title=\""+_8+"\" class='action'>"+_8+"</a>");
this.writeLinksforPopupCard(_5,_1);
_5.write("  </div><br/>");
if(_1.imageUrl!=null&&_1.imageUrl!=""){
_5.write("  <img src='"+_1.imageUrl+"' alt=\""+_a+"\" title=\""+_a+"\" height='95' width='95' style='float:left;margin: 0px 10px 10px 10px; padding:2px !important; border:1px solid #c2c2c2;background-color:#fff;'/>");
}
_5.write("  <div  style='height:9em;overflow:hidden;'>");
_5.write("  <h2 style='font-size:1.1em;margin:0;margin-right:20px;padding:0;'>"+_1.name+"<span id='membersCount' style='font-size:.9em;color:#999;font-weight:normal;'> ("+_1.membercount+" "+_7["label.members"]+")</span></h2>");
if(_1.tags!=null&&_1.tags!=""){
_5.write("  <div style='font-size:.9em;color:#999;padding:0;margin:0;'>"+_7["label.tags"]+" "+_1.tags+"</div>");
}
if(_1.description!=null&&_1.description!=""){
_5.write("  <p id='communityDescription' style='font-size:.9em;padding:3px 5px 0 0;margin:0;'>");
_5.write("      "+_1.description);
_5.write("  </p>                        ");
}
_5.write("  </div>                      ");
_5.write("</div><!-- end container -->");
},getInlineMarkup:function(_b,_c,_d,_e){
var _f=this.messages;
var _10=_d;
var _11=(dojo.cookie("community.inline.card.links")!=0);
var _12="";
var _13=_f["label.collapse"];
var _14="lotusTwistyOpen";
if(_11){
_14="lotusTwistyOpen";
}else{
_14="lotusTwistyClosed";
_12="style=\"display: none\"";
_13=_f["label.expand"];
}
if(lconn.core.bizCard.bizCardUtils.standaloneCSSloaded){
_10.write("<div id=\"bc_document_node\" role=\"document\" style=\"width:220px\">");
}
_10.write("<div class=\"lotusMenu\" role=\"navigation\" aria-label=\""+_f["label.nav.landmark.comm"]+"\"><div class=\"lotusBottomCorner\"><div class=\"lotusInner\" style=\"width:200px;\" >");
_10.write(lconn.communities.bizCard.core.addParentCommunity(_b));
_10.write("<div class=\"lotusMenuSection\">");
_10.write("<h3 class=\"\"><div class=\"lotusIndent10\"><a style=\"background-color:white !important;\" id=\""+_b.uuid+"_twisty\" class=\"lotusSprite lotusArrow "+_14+"\" href=\"javascript:lconn.communities.bizCard.core.toggleSection('"+_b.uuid+"_twisty"+"','"+_b.uuid+"_comm_appLinks"+"','"+_b.uuid+"_commAltText"+"','"+"community.inline.card.links"+"');\" title=\""+_13+"\"><span id=\""+_b.uuid+"_commAltText\" class=\"lotusAltText\">&#x25bc;</span></a>");
_10.write("<table cellpadding=\"0\" cellspacing=\"0\" class=\"lotusLayout\" role=\"presentation\" width=\"155px\"><tr><td>");
_10.write("<a href=\""+_b.homeUrl+"\" class=\"discussCommunityLink lotusBold\" style=\"display:inline; background-color:white !important;\">");
if(_b.communityType!="public"){
var _15=lconn.core.bizCard.bizCardUtils.getBaseURL("hgroup");
if(_b.communityType=="private"){
_10.write("<img class='iconsStates16 iconsStates16-CheckedOut' src='"+dojo.config.blankGif+"' alt='"+_f["label.private.community.alt.text"]+"' title='"+_f["label.private.community.alt.text"]+"' /> ");
}else{
_10.write("<img class='lconnSprite lconnSprite-iconModeratedCommunity16' src='"+dojo.config.blankGif+"' alt='"+_f["label.moderated.community.alt.text"]+"' title='"+_f["label.moderated.community.alt.text"]+"' /> ");
}
var _16=document.getElementsByTagName("body")[0];
if(dojo.hasClass(_16,"lotusImagesOff")){
_10.write("<br>");
}
}
_10.write(_b.name+"</a>");
_10.write("</td></tr></table>");
_10.write("</div>");
_10.write("</h3>");
_10.write("<div id=\""+_b.uuid+"_comm_appLinks\" class=\"lotusMenuSubsection\" "+_12+">");
_10.write("<ul id=\"bizCardNav\" role=\"toolbar\">");
var _17=lconn.core.HTMLUtil.escapeInlineText(_b.name);
_10.write("<li role=\"presentation\" tabindex=\"-1\"><a title=\""+_f["tooltip.overview"]+"\" href=\""+_b.homeUrl+"\" style=\"background-color:white !important;\" tabindex=\"-1\"><img src=\""+_b.imageUrl+"\" width=\"155\" height=\"155\" alt=\""+_f["tooltip.overview"]+"\" class=\"discussCommunityLogo\" /></a></li>");
this.writeLinks(_10,_b,_e,_11);
if(_b.metricsEnabled){
_10.write("<li role=\"button\"");
if(_e=="metrics"){
_10.write(" class=\"lotusSelected\" ");
}
_10.write("><a href='"+_b.metricsServiceUrl.replace("${0}",_b.uuid)+"' title='"+_f["label.metrics.link"]+"'>"+_f["label.metrics.link"]+"</a></li>");
}
if(_b.moderateEnabled){
_10.write("<li role=\"button\"");
if(_e=="moderation"){
_10.write(" class=\"lotusSelected\" ");
}
_10.write("><a href='"+_b.moderationServiceUrl+_b.uuid+"' title='"+_f["label.moderation.link"]+"'>"+_f["label.moderation.link"]+"</a></li>");
}
_10.write("</ul>");
_10.write("</div><!--end subsection-->");
_10.write("</div><!--end section-->");
_10.write(lconn.communities.bizCard.core.addSubCommunities(_b));
_10.write("</div></div></div><!--end menu-->");
if(lconn.core.bizCard.bizCardUtils.standaloneCSSloaded){
_10.write("</div>");
var _18=function(){
var el=dojo.byId("bc_document_node");
if(!el){
setTimeout(_18,250);
return;
}
var _19=" lotusui lotusui30dojo lotusui30_body lotusui30_fonts lotusui30 lotusSpritesOn";
if(dojo.isIE==6){
_19+=" lotusui_ie lotusui_ie6";
}else{
if(dojo.isIE==7){
_19+=" lotusui_ie lotusui_ie7";
}else{
if(dojo.isIE){
_19+=" lotusui_ie";
}
}
}
el.className+=_19;
};
_18();
}
if(dojo.byId("dwPopulateWithCommunityName")!=null){
dojo.byId("dwPopulateWithCommunityName").innerHTML=dojo.byId("dwPopulateWithCommunityName").value=_b.name;
}
},writeLinksforPopupCard:function(_1a,_1b){
for(var i=0;_1b.links!=null&&i<_1b.links.length;i++){
_1a.write("&nbsp;&nbsp;|&nbsp;<a href='"+_1b.links[i].url+"' title='"+_1b.links[i].label+"' class='action'>"+_1b.links[i].label+"</a>");
}
},writeLinks:function(_1c,_1d,_1e,_1f){
var _20=this.messages;
var _21=_20["label.overview"];
_1c.write("<li role=\"button\"><a href=\""+_1d.homeUrl+"\" title=\""+_21+"\">"+_21+"</a></li>");
for(var i=0;_1d.links!=null&&i<_1d.links.length;i++){
if(_1d.links[i].id=="RecentUpdates"||_1d.links[i].id=="StatusUpdates"){
_1c.write("<li role=\"button\"");
if(_1e==_1d.links[i].id){
_1c.write(" class=\"lotusSelected\" ");
}
_1c.write("><a href=\""+_1d.links[i].url+"\" title=\""+_1d.links[i].label+"\">"+_1d.links[i].label+"</a></li>");
}
}
for(var i=0;_1d.links!=null&&i<_1d.links.length;i++){
if(_1d.links[i].id!="RecentUpdates"&&_1d.links[i].id!="StatusUpdates"){
_1c.write("<li role=\"button\"");
if(_1e==_1d.links[i].id){
_1c.write(" class=\"lotusSelected\" ");
}
_1c.write("><a href=\""+_1d.links[i].url+"\" title=\""+_1d.links[i].label+"\">"+_1d.links[i].label+"</a></li>");
}
}
return;
},addCommunityActionsMenu:function(_22){
_22.editEnabled=false;
_22.editSubEnabled=false;
_22.showGoToComm=true;
lconn.communities.bizCard.core.community=_22;
if(lconn.communities.bizCard.core.isNotEmpty(_22.unfollowUrl)){
dojo.publish("lconn.comm.commFollowed",[_22.uuid]);
}
lconn.communities.bizCard.core.addFollowActionsMenuUI(_22);
lconn.communities.bizCard.core.addCommunityActionsMenuUI(_22);
}};
}


;if(!dojo._hasResource["dojo.dnd.Avatar"]){
dojo._hasResource["dojo.dnd.Avatar"]=true;
dojo.provide("dojo.dnd.Avatar");
dojo.require("dojo.dnd.common");
dojo.declare("dojo.dnd.Avatar",null,{constructor:function(_1){
this.manager=_1;
this.construct();
},construct:function(){
this.isA11y=dojo.hasClass(dojo.body(),"dijit_a11y");
var a=dojo.create("table",{"class":"dojoDndAvatar",style:{position:"absolute",zIndex:"1999",margin:"0px"}}),_2=this.manager.source,_3,b=dojo.create("tbody",null,a),tr=dojo.create("tr",null,b),td=dojo.create("td",null,tr),_4=this.isA11y?dojo.create("span",{id:"a11yIcon",innerHTML:this.manager.copy?"+":"<"},td):null,_5=dojo.create("span",{innerHTML:_2.generateText?this._generateText():""},td),k=Math.min(5,this.manager.nodes.length),i=0;
dojo.attr(tr,{"class":"dojoDndAvatarHeader",style:{opacity:0.9}});
for(;i<k;++i){
if(_2.creator){
_3=_2._normalizedCreator(_2.getItem(this.manager.nodes[i].id).data,"avatar").node;
}else{
_3=this.manager.nodes[i].cloneNode(true);
if(_3.tagName.toLowerCase()=="tr"){
var _6=dojo.create("table"),_7=dojo.create("tbody",null,_6);
_7.appendChild(_3);
_3=_6;
}
}
_3.id="";
tr=dojo.create("tr",null,b);
td=dojo.create("td",null,tr);
td.appendChild(_3);
dojo.attr(tr,{"class":"dojoDndAvatarItem",style:{opacity:(9-i)/10}});
}
this.node=a;
},destroy:function(){
dojo.destroy(this.node);
this.node=false;
},update:function(){
dojo[(this.manager.canDropFlag?"add":"remove")+"Class"](this.node,"dojoDndAvatarCanDrop");
if(this.isA11y){
var _8=dojo.byId("a11yIcon");
var _9="+";
if(this.manager.canDropFlag&&!this.manager.copy){
_9="< ";
}else{
if(!this.manager.canDropFlag&&!this.manager.copy){
_9="o";
}else{
if(!this.manager.canDropFlag){
_9="x";
}
}
}
_8.innerHTML=_9;
}
dojo.query(("tr.dojoDndAvatarHeader td span"+(this.isA11y?" span":"")),this.node).forEach(function(_a){
_a.innerHTML=this._generateText();
},this);
},_generateText:function(){
return this.manager.nodes.length.toString();
}});
}


;if(!dojo._hasResource["dojo.dnd.Manager"]){
dojo._hasResource["dojo.dnd.Manager"]=true;
dojo.provide("dojo.dnd.Manager");
dojo.require("dojo.dnd.common");
dojo.require("dojo.dnd.autoscroll");
dojo.require("dojo.dnd.Avatar");
dojo.declare("dojo.dnd.Manager",null,{constructor:function(){
this.avatar=null;
this.source=null;
this.nodes=[];
this.copy=true;
this.target=null;
this.canDropFlag=false;
this.events=[];
},OFFSET_X:16,OFFSET_Y:16,overSource:function(_1){
if(this.avatar){
this.target=(_1&&_1.targetState!="Disabled")?_1:null;
this.canDropFlag=Boolean(this.target);
this.avatar.update();
}
dojo.publish("/dnd/source/over",[_1]);
},outSource:function(_2){
if(this.avatar){
if(this.target==_2){
this.target=null;
this.canDropFlag=false;
this.avatar.update();
dojo.publish("/dnd/source/over",[null]);
}
}else{
dojo.publish("/dnd/source/over",[null]);
}
},startDrag:function(_3,_4,_5){
this.source=_3;
this.nodes=_4;
this.copy=Boolean(_5);
this.avatar=this.makeAvatar();
dojo.body().appendChild(this.avatar.node);
dojo.publish("/dnd/start",[_3,_4,this.copy]);
this.events=[dojo.connect(dojo.doc,"onmousemove",this,"onMouseMove"),dojo.connect(dojo.doc,"onmouseup",this,"onMouseUp"),dojo.connect(dojo.doc,"onkeydown",this,"onKeyDown"),dojo.connect(dojo.doc,"onkeyup",this,"onKeyUp"),dojo.connect(dojo.doc,"ondragstart",dojo.stopEvent),dojo.connect(dojo.body(),"onselectstart",dojo.stopEvent)];
var c="dojoDnd"+(_5?"Copy":"Move");
dojo.addClass(dojo.body(),c);
},canDrop:function(_6){
var _7=Boolean(this.target&&_6);
if(this.canDropFlag!=_7){
this.canDropFlag=_7;
this.avatar.update();
}
},stopDrag:function(){
dojo.removeClass(dojo.body(),"dojoDndCopy");
dojo.removeClass(dojo.body(),"dojoDndMove");
dojo.forEach(this.events,dojo.disconnect);
this.events=[];
this.avatar.destroy();
this.avatar=null;
this.source=this.target=null;
this.nodes=[];
},makeAvatar:function(){
return new dojo.dnd.Avatar(this);
},updateAvatar:function(){
this.avatar.update();
},onMouseMove:function(e){
var a=this.avatar;
if(a){
dojo.dnd.autoScrollNodes(e);
var s=a.node.style;
s.left=(e.pageX+this.OFFSET_X)+"px";
s.top=(e.pageY+this.OFFSET_Y)+"px";
var _8=Boolean(this.source.copyState(dojo.isCopyKey(e)));
if(this.copy!=_8){
this._setCopyStatus(_8);
}
}
},onMouseUp:function(e){
if(this.avatar){
if(this.target&&this.canDropFlag){
var _9=Boolean(this.source.copyState(dojo.isCopyKey(e))),_a=[this.source,this.nodes,_9,this.target];
dojo.publish("/dnd/drop/before",_a);
dojo.publish("/dnd/drop",_a);
}else{
dojo.publish("/dnd/cancel");
}
this.stopDrag();
}
},onKeyDown:function(e){
if(this.avatar){
switch(e.keyCode){
case dojo.keys.CTRL:
var _b=Boolean(this.source.copyState(true));
if(this.copy!=_b){
this._setCopyStatus(_b);
}
break;
case dojo.keys.ESCAPE:
dojo.publish("/dnd/cancel");
this.stopDrag();
break;
}
}
},onKeyUp:function(e){
if(this.avatar&&e.keyCode==dojo.keys.CTRL){
var _c=Boolean(this.source.copyState(false));
if(this.copy!=_c){
this._setCopyStatus(_c);
}
}
},_setCopyStatus:function(_d){
this.copy=_d;
this.source._markDndStatus(this.copy);
this.updateAvatar();
dojo.removeClass(dojo.body(),"dojoDnd"+(this.copy?"Move":"Copy"));
dojo.addClass(dojo.body(),"dojoDnd"+(this.copy?"Copy":"Move"));
}});
dojo.dnd._manager=null;
dojo.dnd.manager=function(){
if(!dojo.dnd._manager){
dojo.dnd._manager=new dojo.dnd.Manager();
}
return dojo.dnd._manager;
};
}

dojo.provide("lconn.core.nls.widgets")._built=true;
dojo.provide("lconn.core.nls.widgets.en");
lconn.core.nls.widgets.en={"ErrorGeneric":"An error occurred while displaying content. Contact your system administrator.","msg.loginRequired":"Log in to view your content.","actionsmenu":"Actions Menu","wcuLoadInfo":"Find out how you are related to this profile based on your network and actions.","widgets_MoveUp":"Move Up","dykLoadInfo":"View recommended people to add to your network.","showErrorDetails":"Show Error Details","cancel":"Cancel","loadInfo":"Load Information ...","errorType":"Type: ","deleteWidgetConfirm":"I understand that the widget and its associated data will be deleted and cannot be recovered.","hideWidgetMsg":"You are about to hide your widget.\x3cbr/\x3e\x3cbr/\x3eYou can re-activate it at a later point simply by re-adding the widget to your Community. All of the Widget content will be kept intact.","widget_BackToOverview":"Back to Overview Page","widgets_Max":"Maximize","errorDefaultMsg3":"Click here to show more details","widget_AllTab":"All","deleteWithSharedContentWidgetConfirm":"I understand that the widget and its associated data will be deleted and cannot be recovered.  Content that members share with the community is still shared. If the widget is added again, this shared content reappears in the widget.","errorDefaultMsg2":"An error has occurred, contact your system Administrator","ticLoadInfo":"Find out what you have in common with this profile based on your network and activity.","widgets_Move":"Move","errorStackTrace":"Trace: ","edit":"Edit","errorLine":"Line:","actions_alt":"Actions for: ${0}","errorUnableToConnect":"Connection failed for {0}","deleteWidgetWarn":"Warning: Data for the widget {0} will be permanently deleted.","dykLoadInfo2":"View recommended people to add to your network based on your existing network contacts.","open":"Open","errorName":"Name: ","widgetCat_thrdParty":"Other","link.window.close":"Close window","hideWidget":"Hide Widget","toggle":"Toggle","multiFeedReaderNoFeeds":"No feeds available","help":"Help","label.theme.customize":"Customize","info.feed.general.moreinfo":"Click here to show more details","widget_AddingWidget":"Adding Widget","widgetCat_hidden":"Hidden","str_component_id":"CLFWZ","delete":"Delete","widgetCat_AllWidgets":"All Widgets","errorDefaultMsg":"Unable to display widget data","actions":"Actions","deleteWidgetMsg":"You are about to remove your widget. This will remove all widget content from the application. This action cannot be undone. Content that members share with the community is still shared. If the widget is added again, this shared content reappears in the widget.\x3cbr/\x3e\x3cbr/\x3eIf you are sure you want to remove the widget, click the Remove button below. \x3cbr/\x3eOtherwise, click Cancel.","widgets_Min":"Minimize","HideErrorDetails":"Hide Error Details","widgets_MoveDown":"Move Down","close":"Close","link.remove":"Remove","error.title.generic":"We\'ve encountered a problem.","widget_RemovingWidget":"Removing Widget","hide":"Hide","link.window.openNewWindow":"Clicking this will open a new window","deleteWidget":"Remove Widget","error.message.generic":"Something went wrong - click the Back button and try again. If this does not work, report the problem in the support forum.","errorMsg":"Message: ","refresh":"Refresh"};

;if(!dojo._hasResource["lconn.core.errorhandling"]){
dojo._hasResource["lconn.core.errorhandling"]=true;
dojo.provide("lconn.core.errorhandling");
dojo.require("lconn.core.utilities");
dojo.requireLocalization("lconn.core","widgets");
lconn.core.errorhandling.DefaultXHRErrorHandler=function(_1,_2){
var _3=dojo.i18n.getLocalization("lconn.core","widgets");
var _4=null;
var _5=null;
if(_1.status==404){
if(_2.args!=null&&_2.args.url!=null){
if(_2.args.url.indexOf("roller-ui/feed")!=-1||_2.args.url.indexOf("files/basic/anonymous/api/userlibrary")!=-1||_2.args.url.indexOf("wikis/basic/anonymous/api/userlibrary")!=-1){
_5=_3["multiFeedReaderNoFeeds"];
lconn.core.errorhandling.displayError(_2,_5,_1);
return;
}
}
}
if(_1.status==400){
if(_2.args!=null&&_2.args.url!=null){
if(_2.args.url.indexOf("service/atom/communities")!=-1){
_5=_3["multiFeedReaderNoFeeds"];
lconn.core.errorhandling.displayError(_2,_5,_1);
return;
}
}
}
if(_1.documentElement!=null){
if(_1.documentElement.nodeName=="error"||_1.documentElement.nodeName=="parsererror"){
var _6=(dojox.data.dom.innerXML(_1.documentElement));
_5=lconn.core.errorhandling.getErrorHTML(null,null,null,null,_6);
}
}else{
var _7=_3["errorUnableToConnect"];
_7=lconn.core.utilities.replacePlaceHolders(_7,[_2.args.url]);
if(_1.message!=null&&_1.name!=null){
if(_2.args.xsltArgs!=null){
return lconn.core.errorhandling.DefaultErrorHandler(_7,_1,_2.args.xsltArgs);
}else{
return lconn.core.errorhandling.DefaultErrorHandler(_7,_1,_2.args.htmlContainerElemId);
}
}else{
_5=lconn.core.errorhandling.getErrorHTML(_7,null,null,null,_1);
}
}
if(_5==null){
_5=lconn.core.errorhandling.getErrorHTML(null,null,null,null,_1);
}
lconn.core.errorhandling.displayError(_2,_5,_1);
};
lconn.core.errorhandling.displayError=function(_8,_9,_a){
var _b=null;
if(_8.args.xsltArgs!=null&&_8.args.xsltArgs.htmlContainerElemId!=null){
_b=_8.args.xsltArgs.htmlContainerElemId;
}else{
if(_8.args.htmlContainerElemId!=null){
_b=_8.args.htmlContainerElemId;
}
}
if(_b!=null){
if(typeof (_b)=="string"){
dojo.byId(_b).innerHTML=_9;
}else{
_b.innerHTML=_9;
}
}else{
alert("htmlContainerElemId was not defined.\n"+_9+"\nArguments: "+_8+"\nresponse: "+_a);
}
};
lconn.core.errorhandling.DefaultErrorHandler=function(_c,_d,_e){
var _f=function(_10,_11,_12){
var msg="";
if(_11 instanceof (Error)){
var _13=null;
if(_11.lineNumber!=null){
_13=_11.lineNumber;
}
if(_13!=null){
msg+=dojo.i18n.getLocalization("lconn.core","widgets")["errorLine"]+" "+_13+"<br/>";
}
var _14=null;
msg=lconn.core.errorhandling.getErrorHTML(_10,_11.message,_11.name,_13,_14);
}else{
var _14=null;
msg=lconn.core.errorhandling.getErrorHTML(_10,_11,null,null,_14);
}
var _15={args:{xsltArgs:{htmlContainerElemId:_12}}};
lconn.core.errorhandling.displayError(_15,msg);
};
if(typeof (_e)=="string"){
_f(_c,_d,_e);
}else{
if(typeof (_e)=="undefined"){
var _16=document.createElement("span");
_16.id="errorContainer";
document.body.appendChild(_16);
_f(_c,_d,"errorContainer");
}else{
if(_e.htmlContainerElemId!=null){
_f(_c,_d,_e.htmlContainerElemId);
}else{
_f(_c,_d,_e);
}
}
}
};
lconn.core.errorhandling.getErrorHTML=function(_17,_18,_19,_1a,_1b){
var _1c=dojo.i18n.getLocalization("lconn.core","widgets");
var _1d=new Date().getTime();
var msg="";
if(_18!=null&&_18.indexOf("BMWIW0001E")!=-1){
msg+="<div class='lconnWidgetMsgError lconnWidgetMsgCompact'>";
}else{
msg+="<div class='lconnWidgetMsgError'>";
}
var id=dijit.getUniqueId("error");
msg+="<img class='lconnSprite lconnSprite-iconError16' src='"+dijit._Widget.prototype._blankGif+"'/><b>"+_1c["errorDefaultMsg"]+"</b><br/>";
msg+=_1c["errorDefaultMsg2"]+"<br/><br/>";
msg+="<a href='javascript:void(0);' onclick=\"lconn.core.utilities.toggleVisibility('"+id+"');\">"+_1c["errorDefaultMsg3"]+"</a>";
msg+="<div id='"+id+"' style='visibility: hidden; display: none;'>";
msg+="<br/>";
if(_17!=null){
msg+=_1c["errorName"]+" "+_17+"<br/>";
}
if(_18!=null){
msg+=_1c["errorMsg"]+" "+_18+"<br/>";
}
if(_19!=null){
msg+=_1c["errorType"]+""+_19+"<br/>";
}
if(_1a!=null){
msg+=_1c["errorLine"]+" "+_1a+"<br/>";
}
if(_1b!=null){
msg+=_1c["errorStackTrace"]+"<br/><pre>"+_1b+"</pre><br/>";
}
msg+="</div>";
msg+="</div>";
return msg;
};
var common_getStacktrace=function(){
var _1e=common_getStacktrace.caller;
var _1f=new Error();
if(_1f.stack!=null){
return _1f.stack;
}else{
var _20="";
while(_1e!=null){
_20+="\n"+common_getFunctionName(_1e);
var _21=_1e.caller;
if(_21==null&&_1e.arguments!=null&&_1e.arguments.caller!=null){
_21=_1e.arguments.caller;
}
_1e=_21;
}
return _20;
}
};
var common_getFunctionName=function(_22){
var _23=_22.name;
if(_22.tempName!=null&&_22.tempName!=""){
_23=_22.tempName;
}
if(_23==null||_23==""){
var _24=_22.toString();
var _25=_24.match(/function (\w*)/);
if(_25!=null){
_23=_25[1];
}
if(_23==null||_23==""){
_23="anonymous-function";
}
}
return _23;
};
}


;if(!dojo._hasResource["lconn.core.back"]){
dojo._hasResource["lconn.core.back"]=true;
dojo.provide("lconn.core.back");
function registerBackButtonSupport(){
var _1=window.location.hash;
var _2=true;
var _3=true;
var _4=true;
var _5="lc.iframeElement";
var _6=null;
var _7=null;
var _8=null;
var _9=function(){
_1=window.location.hash;
_2=_8.search;
_3=false;
_4=null;
};
var _a=function(){
for(var i=0;lconn.core.WidgetPlacement.URLChangeCallBack!=null&&i<lconn.core.WidgetPlacement.URLChangeCallBack.length;i++){
lconn.core.WidgetPlacement.URLChangeCallBack[i](window.location.href);
}
return;
};
var _b=function(){
var _c=document.createElement("iframe");
var _d=new dojo._Url(location.href);
_c.id=_5;
var _e=WidgetPlacementConfig.params.contextRoot+"/static/"+WidgetPlacementConfig.params.version;
if(dojo.isIE){
_c.src=(_e+"/nav/blankIE.html"+(_d.fragment?"?"+_d.fragment:""));
}else{
_c.src=(_e+"/nav/Blank.html"+(_d.fragment?"?"+_d.fragment:""));
}
_c.style.display="none";
document.body.appendChild(_c);
return _c;
};
var _f=function(uri,_10){
_11(uri,"uri");
_11(_10,"queryString");
return _12(uri,"?",_10);
};
var _13=function(uri,_14){
_11(uri,"uri");
_11(_14,"fragmentString");
return _12(uri,"#",_14);
};
var _11=function(_15,_16){
if(_15!=null){
return;
}
if(_16){
throw new Error(_16+" cannot be null");
}
throw new Error("value cannot be null");
};
var _17=function(_18,_19){
if(!(dojo.trim(_18).length==0)){
return;
}
if(_19){
throw new Error(_19+" must be a non-empty string.  Saw: "+_18);
}
throw new Error("value must be a non-empty string.  Saw: "+_18);
};
var _12=function(_1a,_1b,_1c){
_11(_1b,"token");
_11(_1a,"string");
_11(_1c,"replacement");
if(_1a.indexOf(_1b)==-1){
return _1a+_1b+_1c;
}
return _1a.slice(0,_1a.indexOf(_1b)+1)+_1c;
};
if(dojo.isIE){
_b();
_6=window[_5];
_7=dojo.byId(_5);
_8=_6.location;
_9();
var _1d=function(){
if(_3&&_1==window.location.hash){
if(_8.search==_4){
_9();
}
return;
}
if(_1==window.location.hash&&_2==_8.search){
return;
}
if(_1!=window.location.hash){
_1=window.location.hash;
var _1e=new dojo._Url(window.location.href);
_3=true;
_4=_f(_8.search,_1e.fragment||"");
_7.src=_f(_7.src,_1e.fragment||"");
return _a();
}else{
var _1f=new dojo._Url(_8.href);
window.location.href=_13(window.location.href,_1f.query||"");
_9();
return _a();
}
};
setInterval(_1d,500);
}else{
var _1d=function(){
if(window.location.hash==_1){
return;
}
_1=window.location.hash;
return _a();
};
setInterval(_1d,500);
}
};
}

dojo.provide("lconn.core.config.nls.widgetbundles")._built=true;
dojo.provide("lconn.core.config.nls.widgetbundles.en");
lconn.core.config.nls.widgetbundles.en={"dwProfileLabels":{"label.advanced.searchForm.attribute.organizationTitle":"Company:","label.generalInfo.contactInformation.personalAddress":"Home address:","label.associatedInformation.contactinfo.title.collapse":"Click to collapse the contact information section","label.advanced.searchForm.attribute.managerUid":"Manager UID:","label.professionalInfo.educationAndWork.grants":"Grants","label.advanced.searchForm.attribute.officeName":"Office Name:","label.searchResult.attribute.workLocation.state":"State:","label.advanced.searchForm.attribute.displayName":"Display name:","label.advanced.searchForm.attribute.experience":"About Me:","label.searchResult.attribute.displayName":"Name:","label.generalInfo.biography1":"Elaborate on your background:","label.generalInfo.biography2":"The content of the field cannot exceed 1,500 characters","label.generalInfo.contactInformation.workAddress":"Work address:","label.advanced.searchForm.attribute.preferredLanguage":"Preferred Language:","label.settings.pwidgets.appearwidget":"Indicate the widgets you would like to appear on your public profile.","label.professionalInfo.educationAndWork.education":"Education","label.contactInformation.preferredLastName":"Preferred last name:","label.settings.forumssig.sigdefaulttext":"Write something on this board.","dwAboutMeActionsFor":"Actions for About me","remove.school":"Remove this school ","label.settings.IBMloginID":"IBM login ID:","label.settings.countryresidence":"Country/Region of residence:","//Settings":"label details","label.advanced.searchForm.attribute.countryDisplayValue":"Country/Region:","label.advanced.searchForm.attribute.floor":"Floor:","edu.class.year":"Class year ","label.contactInformation.officeName":"Office:","label.settings.forumssig.sig":"\x3cb\x3eSignature:\x3c/b\x3e","label.advanced.searchForm.attribute.courtesyTitle":"Courtesy Title:","label.jobInformation.myHomeNumber":"Home number:","label.jobInformation.extattr.JLCompany":"Company name:","label.contactInformation.extattr.Education_(List)":"Education (List):","label.contactInformation.nativeLastName":"Native last name:","label.jobInformation.companyTitle":"Company:","label.advanced.searchForm.attribute.isManager":"Is Manager:","label.generalInfo.biography":"Biography","label.advanced.searchForm.attribute.countryCode":"Country Code:","label.associatedInformation.description.info":"(The content of this field cannot exceed 1,500 characters)","label.advanced.searchForm.attribute.subHeading":"(Separate tags with a space or comma. Separate multi-word tags with a hyphen or underscore.)","label.contactInformation.floor":"Floor:","label.editProfile.generalInfo2":"If you do not want us to provide the required information please use the \"Back\" button on your browser to return to the previous page, or close the window or browser session that is displaying this page. ","label.contactInformation.groupwareEmail":"Alternate e-mail:","label.advanced.searchForm.attribute.freeBusyUrl":"Free Busy URL:","label.contactInformation.myLocation":"Location:","label.contactInformation.pagerServiceProvider":"Pager service provider:","label.searchResult.attribute.jobResp":"Title:","label.settings.forumssig.auto":"Automatically display the following with my posts:","label.contactInformation.courtesyTitle":"Prefix :","label.advanced.searchForm.attribute.managerUserid":"Manager User ID:","label.jobInformation.coursesTaken":"Courses taken:","label.contactInformation.blogUrl.info":"","label.jobInformation.publishedWork":"Published work:","label.contactInformation.extattr.AddtionalSpokenLanguages":"Additional spoken languages:","label.generalInfo.contactInformation":"Contact information","label.contactInformation.departmentTitle":"Department title:","label.contactInformation.extattr.ITN":"ITN:","label.advanced.searchForm.description.profileTags":"Can be used for expertise / skillset search. E.G. \"developer\" or \"javascript\"","edit.show":"Show","label.jobInformation.workLocation.countryDisplayValue":"Country:","label.settings.privacySel":"your selection(s), visit","label.generalInfo.contactInformation.workAddress.noCol":"Work address","label.advanced.searchForm.attribute.extattr$spokenLanguages":"Spoken Languages:","label.advanced.searchForm.attribute.secretaryEmail":"Secretary E-mail:","label.jobInformation.skills":"Skills:","label.settings.fbookconnect.connectmydw":"Connect My developerWorks with Facebook and share your activity on My developerWorks with your Facebook friends through your wall and friends\' News Feeds","label.professionalInfo.educationAndWork.courses":"Courses","label.jobInformation.extattr.JLPhone":"Office number:","label.professionalInfo.degree":"Degree/Position:","label.jobInformation.bldgId":"Building:","label.contactInformation.pagerId":"Pager ID:","label.settings.privacyTxt":"This data, at any time, revocable by you, may be stored by IBM or an affiliate on an international server and used by IBM or an affiliate.","label.searchResult.attribute.email":"Email:","label.jobInformation.extattr.JLPostalCode":"Postal code:","label.advanced.searchForm.attribute.preferredFirstName":"First name:","label.contactInformation.ipTelephoneNumber":"IP telephony number:","label.jobInformation.countryDisplayValue":"Country:","label.advanced.searchForm.attribute.secretaryName":"Secretary Name:","label.jobInformation.coursesLabel":"Courses","label.associatedInformation.description.title.expand":"Click to expand the About Me section","label.advanced.searchForm.attribute.workLocation$city":"City:","label.advanced.searchForm.attribute.pagerNumber":"Pager Number:","label.searchResult.attribute.telephoneNumber":"Phone:","label.contactInformation.noEducationInformation":"No education information available.","label.advanced.searchForm.attribute.deptNumber":"Department Number:","label.associatedInformation.contactinfo.title":"Click to expand or collapse the contact information section","label.settings.secuquestion":"Security question:","label.contactInformation.loginId":"IBM login ID:","label.advanced.searchForm.attribute.secretaryUserid":"Secretary User ID:","label.jobInformation.secretaryName":"Assistant:","label.searchresults.searchby.interest":"Interest","label.advanced.searchForm.attribute.shift":"Shift:","label.professionalInfo.professionalBio":"Professional bio","label.jobInformation.myBiography":"Biography:","label.contactInformation.preferredFirstName":"Preferred first name:","label.generalInfo.pronunciation":"Pronunciation","label.contactInformation.blogUrl":"Blog link:","label.contactInformation.telephoneNumber":"Office number:","label.contactInformation.displayName":"Display name:","edit.hide":"Hide","label.editProfile.update.success":"Your changes have been saved.","label.associatedInformation.contactinfo":"Contact Information","label.advanced.searchForm.attribute.mobileNumber":"Mobile Number:","label.jobInformation.extattr.educationClass":"Class year:","label.contactInformation.extattr.spokenLanguages":"Spoken languages:","label.jobInformation.publishedWorkLabel":"Published work","label.advanced.searchForm.attribute.pagerType":"Pager Type:","label.jobInformation.employeeNumber":"Employee number:","label.professionalInfo.biography1":"Elaborate on your roles and skills. Be sure to list your:","label.jobInformation.myPublicProfileURL":"My public profile URL is:","label.contactInformation.timezone":"Time zone:","label.advanced.searchForm.attribute.departmentTitle":"Department:","label.advanced.searchForm.attribute.givenName":"First Name:","label.jobInformation.myLanguage":"Language:","label.expertise.all":"All expertise","label.settings.privacyEmailTxt":"E-mail: Stay informed about IBM products, services, and other offerings! If you want to stay informed by e-mail, please let us know by modifying this preference.","label.settings.accountPrivacy":"IBM account and privacy preferences","label.settings.updatesecuinfoTitle":"IBM registration.","label.jobInformation.extattr.JLCity":"City:","label.settings.privacyWishUrl":"https://www.ibm.com/account/profile?page=signinview&appname=developerworks&d=http://www.ibm.com/developerworks/mydeveloperworks/profiles/html/editMyProfileView.do","label.searchResult.attribute.workLocation.city":"City:","label.jobInformation.email":"Office e-mail:","label.settings.privacyOtherTxt":"Other communications: IBM or an affiliate or selected organizations may keep you informed about IBM related products, services and other offerings through ways other than e-mail, for example, by telephone or postal mail. If you do not want us to use the information you provided here to keep you informed through other ways, please modify this preference.","label.settings.privacyOther":"Other communications: Please do not use the information I have provided here.","label.jobInformation.workLocation.postalCode":"Postal code:","label.generalInfo.basicProfileInfo":"Basic profile information","label.jobInformation.professionalBio":"Professional bio:","label.advanced.searchForm.attribute.pagerId":"Pager ID:","label.settings.secuvalue":"Your question here","label.settings.forumssig.sigtext":"(The closing that is automatically appended to your posts, max 1500 characters)","label.jobInformation.isManager":"Is manager:","label.jobInformation.educationWorkHistory":"Education:","label.contactInformation.extattr.Customers_Supported":"Customers:","label.professionalInfo.biography1.list1":"Professional organizations and user groups (include your position and year(s) of service)","label.contactInformation.freeBusyUrl":"Free/Busy time link:","label.editProfile.displayNameTaken":"This display name is taken.","label.professionalInfo.biography1.list2":"Conference presentations or sessions (include the conference name, year, session title and link to presentation)","label.IBMChampion":"IBM CHAMPION","label.professionalInfo.biography1.list3":"Honors and awards","label.associatedInformation.experience.title.collapse":"Click to collapse the Background section","dwAboutMeLoading":"Loading About me...","str_component_id":"CLFRN","label.settings.updatesecuinfo":"To update your profile security information, visit ","label.advanced.searchForm.attribute.calendarUrl":"Calendar URL:","label.associatedInformation.contactinfo.title.expand":"Click to expand the contact information section","label.contactInformation.alternateLastname":"Alternate last name:","label.advanced.searchForm.attribute.workLocation$state":"State/Province:","page.invalid.displayname":"This display name is not valid.\x3cbr/\x3ePlease choose another (between 3-31 characters).","label.searchresults.searchby.skill":"Skill","label.jobInformation.grants":"Grants:","label.settings.profileWidget":"Profile widgets","label.contactInformation.faxNumber":"Fax number:","page.download.vCard":"Download vCard","label.jobInformation.workLocation.address1":"Address:","label.advanced.searchForm.attribute.preferredLastName":"Last name:","label.advanced.searchForm.attribute.profileTags":"Tags:","label.jobInformation.workLocation.address2":"","edit.degree1":"\"Select one\",\"Primary/Secondary\",\"Undergraduate\",\"Graduate\", \"Post-graduate\", \"Faculty\"","edit.required":"Required in Canada and US","label.settings.updatesecuinfourl":"https://www.ibm.com/account/profile?page=signinview&appname=developerworks&d=http://www.ibm.com/developerworks/mydeveloperworks/profiles/html/editMyProfileView.do","label.jobInformation.managerUid":"Manager number:","label.settings.pwidgets.facebookwidget":"Facebook profile widget","label.advanced.searchForm.attribute.blogUrl":"Blog URL:","label.advanced.searchForm.attribute.telephoneNumber":"Phone Number:","label.jobInformation.extattr.HLState":"State/Province:","label.jobInformation.officeName":"Office:","label.professionalInfo.educationAndWork.workInformation":"Work information","label.contactInformation.bldgId":"Building:","label.contactInformation.surname":"Last name:","label.associatedInformation.description.title.collapse":"Click to collapse the About Me section","label.advanced.searchForm.attribute.nativeLastName":"Native Last Name:","label.jobInformation.coursesTaught":"Courses taught:","label.settings.secuanswerlabel":"Security answer:","label.advanced.searchForm.attribute.groupwareEmail":"Alternate E-mail:","label.contactInformation.pagerNumber":"Pager number:","label.searchResult.attribute.countryDisplayValue":"Country:","label.generalInfo.basicInfo1":"My public profiles URL is:","label.generalInfo.basicInfo2":"Items indicated with this icon ","label.generalInfo.basicInfo3":"will display in your public profile.","label.advanced.searchForm.description.jobResp":"E.G. \"Marketing Manager\"","label.jobInformation.workLocation.city":"City:","label.jobInformation.workLocation.state":"State:","label.advanced.searchForm.attribute.expertise":"Expertise:","label.contactInformation.preferredLanguage":"Language:","label.contactInformation.cn":"Common name:","label.editProfile.displaynameInvalid":"This display name is not valid. Please choose another between 3-31 characters in length. Following characters are not allowed: \x3c, \x3e, ;, \", \', and commaThis display name is not valid.","label.contactInformation.extattr.Department_Name":"Dept name:","edit.see.school.link":"/developerworks/mydeveloperworks/profiles/actions/requestSchool.jsp","label.advanced.searchForm.attribute.tag":"Tag:","label.advanced.searchForm.attribute.employeeNumber":"Employee Number:","label.jobInformation.publicProfile":"Public profile:","label.contactInformation.nativeFirstName":"Native first name:","label.professionalInfo.roles":"Roles and responsibilities","label.settings.pwidgets.linkedinwidget":"LinkedIn profile widget","label.contactInformation.emptyProfessionalInformation":"No professional information provided.","label.jobInformation.rolesResponsibilities":"Roles/responsibilities:","label.associatedInformation.description.title":"Click to expand or collapse the About Me section","label.searchResult.attribute.organizationTitle":"Organization:","label.jobInformation.floor":"Floor:","label.associatedInformation.blogUrl":"Blog link:","label.jobInformation.extattr.HLCountry":"Country/Region:","label.jobInformation.extattr.JLCountry":"Country/Region:","label.contactInformation.mobileNumber":"Mobile number:","label.viewMyPublicProfile":"View my public profile","label.generalInfo.contactInformation.homeAddress.noCol":"Home address","label.jobInformation.grantsLabel":"Grants","label.searchResult.attribute.tags":"Tags:","edit.link":"EDIT","edit.select":"Select one","label.associatedInformation.lastUpdate":"Last update:","label.advanced.searchForm.description.organizationTitle":"E.G \"IBM\" or \"Sales\"","label.advanced.searchForm.attribute.ipTelephoneNumber":"IP Telephone Number:","label.settings.privacyEmail":"E-mail: Yes, please have IBM or an affiliate send me e-mail.","label.contactInformation.extattr.Team_Summary":"Team summary:","label.advanced.searchForm.description.displayName":"First or Last Name E.G. \"Jane\" or \"Doe\"","enter.tags":"Enter tag(s) ","label.associatedInformation.blogUrl.info":"","label.contactInformation.extattr.Personal_System_Code_(PSC)":"PSC:","label.advanced.searchForm.attribute.surname":"Last Name:","label.professionalInfo.institution":"Institution:","label.professionalInfo.field":"Field of study:","label.search.champions.only":"Search only IBM Champion profiles","error.invalid.email":"This is not a valid e-mail address.","label.generalInfo.photo":"Photo","label.searchResult.attribute.groupwareEmail":"Alternate Email:","edit.settings":"Public profile settings","page.invite.network":"Invite to my network ","label.contactInformation.emptyGeneralInformation":"No general information provided.","label.contactInformation.calendarUrl":"Calendar link:","label.settings.pwidgets.customizewidget":"Customize the widgets by selecting EDIT from the widget.","label.editProfile.generalInfo":"The fields indicated with an asterisk (\x3cspan style=\"color:red\"\x3e*\x3c/span\x3e) are required to complete this transaction; other fields are optional. ","label.jobInformation.extattr.JLState":"State/Province:","label.associatedInformation.experience.info":"(The content of this field cannot exceed 1,500 characters)","label.jobInformation.extattr.HLCity":"City:","label.jobInformation.employment":"Employment:","label.contactInformation.noWorkInformation":"No work information available.","notice.qtwo.url":"http://www.ibm.com/common/translations/en/us/nc_two_question.html","label.jobInformation.deptNumber":"Department number:","label.search.all":"Search all profiles","edu.fields.select":"\"Select one\"","label.advanced.searchForm.attribute.description":"Description:","label.contactInformation.pagerPin":"Pager pin:","label.advanced.searchForm.attribute.secretaryUid":"Secretary UID:","label.advanced.searchForm.attribute.workLocation$statevalue":"State/Province:","label.searchResult.attribute.extattr.spokenLanguages":"Languages:","label.settings.secuanswervalue":"***********","label.jobInformation.countryCode":"Country code:","label.jobInformation.employeeTypeDesc":"Employee type:","label.professionalInfo.educationAndWork":"Education and work history","label.jobInformation.organizationTitle":"Organization:","label.jobInformation.departmentTitle":"Department title:","label.jobInformation.companyTitleHide":"hide my company information","label.advanced.searchForm.attribute.nativeFirstName":"Native First Name:","label.advanced.searchForm.attribute.pagerServiceProvider":"Pager Service Provider:","label.jobInformation.jobResp":"Job title:","page.message.collague":"Message colleague","label.jobInformation.extattr.HLAddress":"Street address:","label.jobInformation.extattr.JLAddress":"Street address:","label.jobInformation.myPersonal":"Personal:","label.associatedInformation.pronunciation":"Pronunciation","label.associatedInformation.experience.title":"Click to expand or collapse the Background section","label.settings.fbookconnect.imageurl":"http://dw.rtp.raleigh.ibm.com/developerworks/community/viper2009/delta/facebookconnect.jpg","label.jobInformation.extattr.JLPhoneExt":"Extension:","label.contactInformation.extattr.jobCategory":"Job category:","label.settings.facebook":"Facebook connect","label.jobInformation.extattr.CLInitials":"Middle initial(s):","label.advanced.searchForm.attribute.email":"E-mail address:","label.settings.privacySettings":"Privacy settings","label.jobInformation.shift":"Shift:","label.jobInformation.extattr.HLPostalCode":"Postal code:","label.settings.privacyWish":"If you wish to change","edit.add.school":"Add another school","label.associatedInformation.tagMyProfile":"Tag my profile","label.advanced.searchForm.attribute.jobResp":"Job title:","label.associatedInformation.experience":"Background","label.advanced.searchForm.attribute.background":"Background:","label.associatedInformation.experience.title.expand":"Click to expand the Background section","edit.see.school":"Don\'t see your school?","label.contactInformation.email":"E-mail address:","label.contactInformation.pagerType":"Pager type:","label.contactInformation.extattr.property1":"Extension 1:","label.advanced.searchForm.attribute.alternateLastname":"Alternate Last Name:","label.contactInformation.extattr.property2":"Extension 2:","label.jobInformation.extattr.WarrantCountry":"Country/Region of residence:","label.contactInformation.extattr.property3":"Extension 3:","label.associatedInformation.description":"About Me","label.jobInformation.extattr.CLSuffix":"Suffix:","label.jobInformation.secretaryUid":"Assistant number:","label.contactInformation.givenName":"First name:","label.professionalInfo.skills":"Skills","label.jobInformation.employmentLabel":"Employment","label.advanced.searchForm.attribute.faxNumber":"Fax Number:","label.settings.forumsSettings":"Forums signature and settings","label.jobInformation.telephoneNumber":"Phone:","label.jobInformation.secretaryEmail":"Assistant e-mail:","label.jobInformation.extattr.HLPhone":"Home number:","label.advanced.searchForm.attribute.bldgId":"Building ID:","label.settings.fbookconnect.imagealt":"Connect with Facebook","edu.fields":"\"Select one\",\"Agriculture\",\"Architecture & Design\",\"Business\",\"Chemistry\",\"Communications\",\"Computer Science\",\"Earth Sciences\",\"Economics\",\"Education\",\"Engineering\",\"Environmental Studies\",\"Health Sciences\",\"Language Studies\",\"Life Sciences\",\"Marketing\",\"Mathematics\",\"Physics\",\"Psychology\",\"Service Science\",\"Sociology \",\"Space Sciences\",\"Statistics\",\"Systems Architecture\",\"Systems Science\",\"Transportation\",\"Other\"","dwAboutMe":"About me","notice.backout.url":"http://www.ibm.com/common/translations/en/us/nc_all_fields_required_backout.html"},"dwRelatedWidgets":{"dwAboutMe":"About me","GroupTagBookmarks":"Related bookmarks","GroupTagBlogFeeds":"Related blog entries","dwAboutMeLoading":"Loading About me...","dwAboutMeActionsFor":"Actions for About me","GroupTagMembers":"Related profiles","GroupTagGroups":"Related groups","HTMLWidget":"Custom HTML"},"lc_default":{"relatedCommunitiesDescription":"Use this widget to link to other communities that might interest your community.","feedReader":"Feed Reader","CommunityUpdates":"Community Updates","Forum":"Forums","Blog":"Blog","filesDescription":"Use this widget to upload and share files with the community.","galleryDescription":"Use this widget to share photos and videos with the community.","Activities":"Activities","structTags":"Structured Tags","RecentUpdates":"Recent Updates","Wiki":"Wiki","commBookmarks":"Use this widget to link to key Web resources from your community.","updatesDescription":"Use this widget to follow activity within your community.","subcommunityDescription":"Use this widget to display and navigate to your subcommunities.","friends":"Network","ideationBlogsDescription":"Use this widget to enable community members to contribute and vote on ideas.","widgetPalette":"Widget Palette","linkRoll":"My Links","Files":"Files","StatusUpdates":"Status Updates","multiFeedReader":"Recent Posts","SubcommunityNav":"Subcommunities","forumDescription":"Use this widget to discuss topics and share ideas.","multiWidget":"Profile Information","Bookmarks":"Bookmarks","Calendar":"Events","calendarDescription":"Use this widget to post information about important events and dates to the community.","reportStructure":"Report-to Chain","eventsDescription":"Use this widget to post information about important events and dates to the community.","commonTags":"Organization Tags","socialTags":"Tags","board":"The Board","commFeeds":"Use this widget to add feeds to relevant websites to your community.","Updates":"Recent Updates","blogsDescription":"Use this widget to share your news and views using a community blog.","wikiDescription":"Use this widget to share resources and collaborate with community members.","IdeationBlog":"Ideation Blog","contactInfo":"Contact Information","commActivitesDescription":"Use this widget to create activities to track community goals and assign to-do items.","Feeds":"Feeds","Members":"Members","backgroundInfo":"Background","RelatedCommunities":"Related Communities"},"lc_clib":{"CustomLibrary.description":"Use this widget to manage documents from a document repository.","CustomLibrary":"Linked Library","MediaGallery.description":"Use this widget to share photos and videos with the community.","MediaGallery":"Media Gallery"},"notification":{"HEADER_RESPONSES":"Responses & Notifications","email.member.added.1":"1. {0}","OPEN_ACTIVITIES":"Open this activity","email.member.added.2":"2. {0}","FOOTER_COPYRIGHT":"Copyright IBM 2012. ","OPEN_FORUMS":"Open this forum","email.member.added.tgmc.description":"The Public community contains instructions and all materials related to this competition.\x3cbr\x3e\x3cbr\x3eThe Private \"{0}\" team subcommunity is only accessible to your team. You can use the subcommunity&#39s collaborative tools to help organize your project. \x3cbr\x3e\x3cbr\x3eYou can also update your personal profile information from any page by logging in and editing your profile. (Click on your profile name, located in the upper-right corner of the page.) For more information about maintaining your profile, see the topic in {1}.","REPLYTO_ERROR_CONTENT":"Email content:","TOTAL_NEW_STORIES_BLOGS":"({0} new updates)","FOOTER_UNSUBSCRIBE":"To unsubscribe or change settings, please go to your developerWorks community Settings.","email.owner.removed.tgmc.description":"{0} is no longer participating as a member of Team {1} for the TGMC competition.","INDIVIDUAL_TITLE":"[developerWorks community] {0}","TOTAL_NEW_STORIES_ACTIVITIES":"({0} new updates)","HEADER_TOPICS":"Topics","TIME_TYPE_PLAIN":"{0}","email.owner.added.tgmc.header":"{0} has been added to the Team {1}, which is participating in the TGMC {2} competition.","NOTIFICATION_DISCLAIMER_TGMC":"\x3cbr /\x3e\x3cbr /\x3eThe information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","dw.invite.external.view.public":"View public communities","INTRODUCTION":"This is a list of updates from your network of contacts, places, people and items you are following, and responses to content you\'ve posted.","NOTIFICATION_AD1":"\x3cbr /\x3e\x3cbr /\x3e\x3cdiv style=\"margin: auto; width: 100%;\"\x3e\x3cimg src=\"http://dw1.s81c.com/developerworks/i/bluemix-email.png\" alt=\"bluemix icon\" style=\"vertical-align: middle\" /\x3e\x3cspan style=\"color: #0e8097; font-family: \'Helvetica Neue\', Helvetica, Arial; font-size: 1.368em; text-align: center;\"\x3e","NOTIFICATION_AD2":"Develop and deploy your next app on the IBM Bluemix cloud platform.","USER_TYPE_HTML":"\x3cspan class=\"user\"\x3e{0}\x3c/span\x3e","NOTIFICATION_AD3":"\x3c/span\x3e\x3cbr/\x3e\x3cbr/\x3e\x3ctable style=\"max-width: 500px; width: 100%;\"\x3e\x3ctr\x3e\x3ctd style=\"background: #ff842c; border: 1px solid #cf6b25;\"\x3e\x3ca style=\"display: block; padding: 8px 30px !important; color: #1a1a1a; font-weight: bold; margin-bottom: 0px; padding: 5px 0px; text-align: center; text-decoration: none;\"","NOTIFICATION_AD4":"href=\"https://www.bluemix.net/?cm_mmc=dw-_-bluemix-_-dwcomm-_-email\"\x3eClick here to start building for free.\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e","OPEN_MENTIONS":"Open this status update","NOTIFICATION_FROM_WHERE_TGMC":"This is a notification sent from {0}.","OPEN_FILES":"Open file collection","dw.invite.external.message1":"\x3cb\x3e\x3cspan\x3e\x3ca rel=\'nofollow\' href=\'{0}\' target=\'_blank\'\x3e{1}\x3c/a\x3e\x3c/span\x3e\x3c/b\x3e has invited you to join the \x3ca rel=\'nofollow\' href=\'{2}\' target=\'_blank\'\x3e\x3cspan\x3e{3}\x3c/span\x3e\x3c/a\x3e community on developerWorks.","dw.invite.external.message2":"Before you can accept this invitation, you must first register with developerWorks.  Click the \'Register with developerWorks\' link below to create a profile.","SUBJECT_PREFIX":"developerWorks community [{0}]","HEADER_FILES":"Files","ITEMNAME_TYPE_PLAIN":"\'\'{0}\'\'","email.member.removed.tgmc.description":"You still belong to the {0}. You can leave the competition community at any time. ","NEWSLETTER_TITLE_WEEKLY":"[developerWorks community] Weekly Newsletter from {0} to {1}","email.invited.to.join.tgmc.register":"Register now and join the team!","REPLYTO_ERROR_NOTEXIST":"Your email reply could not be processed because the original item no longer exists.","INDIVIDUAL_TITLE_WIKIS":"Wikis","INDIVIDUAL_TITLE_ACTIVITIES":"Activities","HEADER_MENTIONS":"Mentions","LOTUS_CONNECTIONS_ICON_ALT":"developerWorks community","dw.invite.external.disclaimer1":"This is a notification sent from \x3ca rel=\'nofollow\' href=\'{0}\' target=\'_blank\'\x3e developerWorks community \x3c/a\x3e.","email.body.tgmc.signature.good":"\x3cbr\x3eGood luck!\x3cbr\x3e","dw.invite.external.disclaimer2":"The information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","OPEN_PROFILES":"View this profile","COLON":":","DATE_TYPE_HTML":"\x3cspan class=\"date\"\x3e{0}\x3c/span\x3e","INDIVIDUAL_TITLE_FORUMS":"Forums","str.msgid.ignore":"true","email.owner.removed.tgmc.subject":"{0} has left Team {1}","MORE_STORIES":"(more than {0} updates)","TOTAL_NEW_STORIES_TOPICS":"({0} new updates)","TOTAL_NEW_STORIES_RESPONSES":"({0} new responses & notifications)","HEADLINE_WEEKLY":"Your weekly updates from {0} to {1}","FILESIZE_TYPE_HTML":"\x3cspan class=\"filesize\"\x3e{0}\x3c/span\x3e","SINGLE_QUOTES":"\'\'{0}\'\'","REPLYTO_ACTION_HELP_POST":"Replying to this notification will let you post your reply using email.","REPLYTO_ACTION_HELP_EOM":"You can add \"{0}\" to the end of your reply on a new line. Any content after that will be discarded and will not show in your response.","INDIVIDUAL_EMAIL":"This is a notification sent from developerWorks community.","USER_TYPE_PLAIN":"\'\'{0}\'\'","NOTIFICATION_FROM_WHERE_PERIOD":"This is a notification sent from {0}.","HEADER_PROFILES":"My network of people","HEADER_NOTIFICATION":"My Notifications","REPLYTO_ERROR_OTHER":"Your email reply could not be processed due to an error.","HEADER_FORUMS":"Forums","SIZE.KB":"{0} KB","INDIVIDUAL_TITLE_DOGEAR":"Bookmarks","FILESIZE_TYPE_PLAIN":"{0}","CATEGORY_ERROR":"Error occurred when retrieving entries for this category, please contact administrator","OPEN_WIKIS":"Open this wiki","NOTIFICATION_DISCLAIMER":"\x3cbr /\x3e\x3cbr /\x3eThe information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","TOTAL_NEW_STORIES_MENTIONS":"({0} new mentions)","HEADER_WIKIS":"Wikis","TOTAL_NEW_STORIES_FILES":"({0} new updates)","INDIVIDUAL_TITLE_MODERATION":"Moderation","SUBJECT_DELIMITER":",","HEADER_COMMUNITIES":"Communities","INDIVIDUAL_TITLE_PROFILES":"Profiles","HTML_TYPE_PLAIN":"{0}","HEADLINE_WEEKLY_NO_DATE":"Your weekly updates","INDIVIDUAL_TITLE_COMMUNITIES":"Communities","email.member.added.tgmc.description.next":"\x3cb\x3eTGMC 2011 - Next steps:\x3c/b\x3e\x3cbr\x3e\x3cbr\x3e[Next Steps block appropiate to individual contest]","CUSTOM_URL":"http://www.ibm.com/developerworks/community/","email.member.removed.tgmc.header":"You have left Team {0} and are no longer participating with this team in the TGMC competition.","INDIVIDUAL_TITLE_BLOGS":"Blogs","LOTUS_CONNECTIONS":"developerWorks community","HEADER_TAGS":"Tags","FOOTER_TERM_OF_USE":"Terms of use","TOTAL_NEW_STORIES_PROFILES":"({0} new updates)","SEMICOLON":";","TOTAL_NEW_STORIES_NOTIFICATION":"({0} new notifications)","dw.invite.external.template":"\x3ch1\x3e{0}\x3c/h1\x3e\x3cdiv\x3e{1}\x3c/div\x3e\x3cdiv\x3e&nbsp;\x3c/div\x3e\x3ctable cellpadding=\'0\' cellspacing=\'0\'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd\x3e\x3ca rel=\'nofollow\' href=\'{2}\' target=\'_blank\'\x3e{3}\x3c/a\x3e&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;\x3ca rel=\'nofollow\' href=\'{4}\' target=\'_blank\'\x3e{5}\x3c/a\x3e&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;\x3ca rel=\'nofollow\' href=\'{6}\' target=\'_blank\'\x3e{7}\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3cdiv\x3e&nbsp;\x3c/div\x3e\x3cdiv\x3e{8}\x3c/div\x3e\x3cbr/\x3e\x3cdiv\x3e{9}\x3c/div\x3e\x3cbr/\x3e\x3cdiv\x3e{10}\x3c/div\x3e","REPLYTO_ERROR_DEFAULT_REASON":"An error occurred processing the email sent to developerWorks community.","SIZE.B":"{0} B","RELATED_COMMUNITY":"Community:","DATE_TYPE_PLAIN":"{0}","TOTAL_NEW_STORIES_FORUMS":"({0} new updates)","REPLYTO_ERROR_DATA_PROBLEM":"Your email reply could not be added because details about the original notification could not be found.","TIME_TYPE_HTML":"\x3cspan class=\"time\"\x3e{0}\x3c/span\x3e","email.member.added.tgmc.header":"Please bookmark the following two communities, as they will be needed to participate in this competition:","SIZE.MB":"{0} MB","DOUBLE_QUOTES":"\"{0}\"","REPLYTO_ERROR_TITLE":"We\'re sorry, but your reply could not be added","DATETIME_TYPE_PLAIN":"{0}","POSTING_DATE":"Posting Date:","HEADER_BOOKMARKS":"Bookmarks","NEWSLETTER_TITLE_DAILY":"[developerWorks community] Daily Newsletter for {0}","REPLYTO_ERROR_DISALLOWEDCONTENT":"Your email reply could not be added because it contains disallowed content.","ITEMNAME_TYPE_HTML":"\x3cspan class=\"itemname\"\x3e{0}\x3c/span\x3e","NOTIFICATION_FROM_WHERE_AND_UNSUBSCRIBE":"This is a notification sent from {0}. {1}.","email.invited.to.join.tgmc.body":"TGMC Competition {0} is {1}","OPEN_COMMUNITIES":"Open this community","email.owner.added.tgmc.description":"The Public community contains instructions and all materials related to this competition.\x3cbr\x3e\x3cbr\x3eThe Private \"{0}\" team community is only accessible to your team. You can use the community&#39s collaborative tools to help organize your project. If you wish to add more members to your team, you will be able to invite them from there.","REPLYTO_DEFAULT_SOURCE":"developerWorks community","COMMA":",","ANCHOR":"\x3ca href=\"{0}\"\x3e{1}\x3c/a\x3e","email.member.added.tgmc.subject":"You have joined team \"{0}\" that has been entered into the TGMC competition","TEXT_TYPE_PLAIN":"{0}","OPEN_TOPICS":"Open this topic","REPLYTO_ERROR_SUBJECT":"Email Subject: ","dw.invite.external.register":"Register with developerWorks","OPEN_BLOGS":"Open this blog","email.invited.to.join.tgmc.subject":"Join Team {0} for {1} Competition","TOTAL_NEW_STORIES_WIKIS":"({0} new updates)","email.member.tgmc.removed.info":"If you have questions, send email to \x3ca href=\"mailto:tgmc@us.ibm.com\"\x3etgmc@us.ibm.com\x3c/a\x3e.","TOTAL_NEW_STORIES_TAGS":"({0} new stories)","HEADER_BLOGS":"Blogs","PERIOD":".","TOTAL_NEW_STORIES_COMMUNITIES":"({0} new updates)","ICON_ALT":"Icon","NOTIFICATION_FROM_WHERE":"This is a notification sent from {0}","USER_TYPE_HTML_PLAIN":"\x3cb\x3e{0}\x3c/b\x3e","REPLYTO_ERROR_CORRUPTMESSAGE":"Your email reply could not be added because the message is corrupt.","REPLYTO_ERROR_EMPTYMESSAGE":"Your email reply could not be added because the message is empty.","DATETIME_TYPE_HTML":"\x3cspan class=\"datetime\"\x3e{0}\x3c/span\x3e","email.body.tgmc.signature":"Sincerely,\x3cbr\x3e\x3cbr\x3eThe Great Mind Challenge Team","HEADLINE_DAILY":"Your daily updates for {0}","dw.invite.external.view.com":"View the {0} community","MORE_20_UPDATES":"(More than 20 new updates)","email.member.removed.tgmc.subject":"You have left Team {0}","email.invited.to.join.tgmc.header":"{0} has invited you to join team \"{1}\" as part of the {2} Competition","HEADER_ACTIVITIES":"Activities","INDIVIDUAL_TITLE_NEWS":"developerWorks community","email.owner.added.tgmc.subject":"a new team member has been added to team {0}","VIEW_ALL":"View all...","OPEN_ITEM":"Open this item","SIZE.GB":"{0} GB","REPLYTO_ERROR_AUTHENTICATION":"Your email reply could not be processed due to an authorization problem.","email.invited.to.join.tgmc.footer":"Please respond to the invitation: {0}","INDIVIDUAL_TITLE_FILES":"Files","MORE_20_COMMENTS":"(More than 20 new comments and replies)","dw.invite.external.subject":"You have been invited to join developerWorks community","SUBJECT_PREFIX_CONTENTS":"source.name","MOBILE_LINK_TEXT":"Open in Mobile","TOTAL_NEW_STORIES_BOOKMARKS":"({0} new updates)","HEADLINE_DAILY_NO_DATE":"Your daily updates","HTML_TYPE_HTML":"\x3cspan class=\"html\"\x3e{0}\x3c/span\x3e","TEXT_TYPE_HTML":"\x3cspan class=\"text\"\x3e{0}\x3c/span\x3e"},"lc_sand":{"sand_thingsInCommon":"Things in Common","sand_simComm":"Similar Communities","sand_DYK":"Do You Know","sand_socialPath":"Who Connects Us?","sand_recomItems":"Recommendations","sand_recomComm":"Recommendations"},"notification_en":{"HEADER_RESPONSES":"Responses & Notifications","email.member.added.1":"1. {0}","OPEN_ACTIVITIES":"Open this activity","email.member.added.2":"2. {0}","FOOTER_COPYRIGHT":"Copyright IBM 2012. ","OPEN_FORUMS":"Open this forum","email.member.added.tgmc.description":"The Public community contains instructions and all materials related to this competition.\x3cbr\x3e\x3cbr\x3eThe Private \"{0}\" team subcommunity is only accessible to your team. You can use the subcommunity&#39s collaborative tools to help organize your project. \x3cbr\x3e\x3cbr\x3eYou can also update your personal profile information from any page by logging in and editing your profile. (Click on your profile name, located in the upper-right corner of the page.) For more information about maintaining your profile, see the topic in {1}.","REPLYTO_ERROR_CONTENT":"Email content:","TOTAL_NEW_STORIES_BLOGS":"({0} new updates)","FOOTER_UNSUBSCRIBE":"To unsubscribe or change settings, please go to your developerWorks community Settings.","email.owner.removed.tgmc.description":"{0} is no longer participating as a member of Team {1} for the TGMC competition.","INDIVIDUAL_TITLE":"[developerWorks community] {0}","TOTAL_NEW_STORIES_ACTIVITIES":"({0} new updates)","HEADER_TOPICS":"Topics","TIME_TYPE_PLAIN":"{0}","email.owner.added.tgmc.header":"{0} has been added to the Team {1}, which is participating in the TGMC {2} competition.","NOTIFICATION_DISCLAIMER_TGMC":"\x3cbr /\x3e\x3cbr /\x3eThe information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","dw.invite.external.view.public":"View public communities","INTRODUCTION":"This is a list of updates from your network of contacts, places, people and items you are following, and responses to content you\'ve posted.","NOTIFICATION_AD1":"\x3cbr /\x3e\x3cbr /\x3e\x3cdiv style=\"margin: auto; width: 100%;\"\x3e\x3cimg src=\"http://dw1.s81c.com/developerworks/i/bluemix-email.png\" alt=\"bluemix icon\" style=\"vertical-align: middle\" /\x3e\x3cspan style=\"color: #0e8097; font-family: \'Helvetica Neue\', Helvetica, Arial; font-size: 1.368em; text-align: center;\"\x3e","NOTIFICATION_AD2":"Develop and deploy your next app on the IBM Bluemix cloud platform.","USER_TYPE_HTML":"\x3cspan class=\"user\"\x3e{0}\x3c/span\x3e","NOTIFICATION_AD3":"\x3c/span\x3e\x3cbr/\x3e\x3cbr/\x3e\x3ctable style=\"max-width: 500px; width: 100%;\"\x3e\x3ctr\x3e\x3ctd style=\"background: #ff842c; border: 1px solid #cf6b25;\"\x3e\x3ca style=\"display: block; padding: 8px 30px !important; color: #1a1a1a; font-weight: bold; margin-bottom: 0px; padding: 5px 0px; text-align: center; text-decoration: none;\"","NOTIFICATION_AD4":"href=\"https://www.bluemix.net/?cm_mmc=dw-_-bluemix-_-dwcomm-_-email\"\x3eClick here to start building for free.\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/table\x3e\x3c/div\x3e","OPEN_MENTIONS":"Open this status update","NOTIFICATION_FROM_WHERE_TGMC":"This is a notification sent from {0}.","OPEN_FILES":"Open file collection","dw.invite.external.message1":"\x3cb\x3e\x3cspan\x3e\x3ca rel=\'nofollow\' href=\'{0}\' target=\'_blank\'\x3e{1}\x3c/a\x3e\x3c/span\x3e\x3c/b\x3e has invited you to join the \x3ca rel=\'nofollow\' href=\'{2}\' target=\'_blank\'\x3e\x3cspan\x3e{3}\x3c/span\x3e\x3c/a\x3e community on developerWorks.","dw.invite.external.message2":"Before you can accept this invitation, you must first register with developerWorks.  Click the \'Register with developerWorks\' link below to create a profile.","SUBJECT_PREFIX":"developerWorks community [{0}]","HEADER_FILES":"Files","ITEMNAME_TYPE_PLAIN":"\'\'{0}\'\'","email.member.removed.tgmc.description":"You still belong to the {0}. You can leave the competition community at any time. ","NEWSLETTER_TITLE_WEEKLY":"[developerWorks community] Weekly Newsletter from {0} to {1}","email.invited.to.join.tgmc.register":"Register now and join the team!","REPLYTO_ERROR_NOTEXIST":"Your email reply could not be processed because the original item no longer exists.","INDIVIDUAL_TITLE_WIKIS":"Wikis","INDIVIDUAL_TITLE_ACTIVITIES":"Activities","HEADER_MENTIONS":"Mentions","LOTUS_CONNECTIONS_ICON_ALT":"developerWorks community","dw.invite.external.disclaimer1":"This is a notification sent from \x3ca rel=\'nofollow\' href=\'{0}\' target=\'_blank\'\x3e developerWorks community \x3c/a\x3e.","email.body.tgmc.signature.good":"\x3cbr\x3eGood luck!\x3cbr\x3e","dw.invite.external.disclaimer2":"The information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","OPEN_PROFILES":"View this profile","COLON":":","DATE_TYPE_HTML":"\x3cspan class=\"date\"\x3e{0}\x3c/span\x3e","INDIVIDUAL_TITLE_FORUMS":"Forums","str.msgid.ignore":"true","email.owner.removed.tgmc.subject":"{0} has left Team {1}","MORE_STORIES":"(more than {0} updates)","TOTAL_NEW_STORIES_TOPICS":"({0} new updates)","TOTAL_NEW_STORIES_RESPONSES":"({0} new responses & notifications)","HEADLINE_WEEKLY":"Your weekly updates from {0} to {1}","FILESIZE_TYPE_HTML":"\x3cspan class=\"filesize\"\x3e{0}\x3c/span\x3e","SINGLE_QUOTES":"\'\'{0}\'\'","REPLYTO_ACTION_HELP_POST":"Replying to this notification will let you post your reply using email.","REPLYTO_ACTION_HELP_EOM":"You can add \"{0}\" to the end of your reply on a new line. Any content after that will be discarded and will not show in your response.","INDIVIDUAL_EMAIL":"This is a notification sent from developerWorks community.","USER_TYPE_PLAIN":"\'\'{0}\'\'","NOTIFICATION_FROM_WHERE_PERIOD":"This is a notification sent from {0}.","HEADER_PROFILES":"My network of people","HEADER_NOTIFICATION":"My Notifications","REPLYTO_ERROR_OTHER":"Your email reply could not be processed due to an error.","HEADER_FORUMS":"Forums","SIZE.KB":"{0} KB","INDIVIDUAL_TITLE_DOGEAR":"Bookmarks","FILESIZE_TYPE_PLAIN":"{0}","CATEGORY_ERROR":"Error occurred when retrieving entries for this category, please contact administrator","OPEN_WIKIS":"Open this wiki","NOTIFICATION_DISCLAIMER":"\x3cbr /\x3e\x3cbr /\x3eThe information contained in this e-mail message is intended only for the use of the named recipients and is subject to the \x3ca href=\"https://www.ibm.com/privacy/details/us/en/\"\x3eIBM Online Privacy Statement\x3c/a\x3e. If you have received this e-mail in error, please contact the sender to report the error and then delete this message from your system.","TOTAL_NEW_STORIES_MENTIONS":"({0} new mentions)","HEADER_WIKIS":"Wikis","TOTAL_NEW_STORIES_FILES":"({0} new updates)","INDIVIDUAL_TITLE_MODERATION":"Moderation","SUBJECT_DELIMITER":",","HEADER_COMMUNITIES":"Communities","INDIVIDUAL_TITLE_PROFILES":"Profiles","HTML_TYPE_PLAIN":"{0}","HEADLINE_WEEKLY_NO_DATE":"Your weekly updates","INDIVIDUAL_TITLE_COMMUNITIES":"Communities","email.member.added.tgmc.description.next":"\x3cb\x3eTGMC 2011 - Next steps:\x3c/b\x3e\x3cbr\x3e\x3cbr\x3e[Next Steps block appropiate to individual contest]","CUSTOM_URL":"http://www.ibm.com/developerworks/community/","email.member.removed.tgmc.header":"You have left Team {0} and are no longer participating with this team in the TGMC competition.","INDIVIDUAL_TITLE_BLOGS":"Blogs","LOTUS_CONNECTIONS":"developerWorks community","HEADER_TAGS":"Tags","FOOTER_TERM_OF_USE":"Terms of use","TOTAL_NEW_STORIES_PROFILES":"({0} new updates)","SEMICOLON":";","TOTAL_NEW_STORIES_NOTIFICATION":"({0} new notifications)","dw.invite.external.template":"\x3ch1\x3e{0}\x3c/h1\x3e\x3cdiv\x3e{1}\x3c/div\x3e\x3cdiv\x3e&nbsp;\x3c/div\x3e\x3ctable cellpadding=\'0\' cellspacing=\'0\'\x3e\x3ctbody\x3e\x3ctr\x3e\x3ctd\x3e\x3ca rel=\'nofollow\' href=\'{2}\' target=\'_blank\'\x3e{3}\x3c/a\x3e&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;\x3ca rel=\'nofollow\' href=\'{4}\' target=\'_blank\'\x3e{5}\x3c/a\x3e&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;\x3ca rel=\'nofollow\' href=\'{6}\' target=\'_blank\'\x3e{7}\x3c/a\x3e\x3c/td\x3e\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e\x3cdiv\x3e&nbsp;\x3c/div\x3e\x3cdiv\x3e{8}\x3c/div\x3e\x3cbr/\x3e\x3cdiv\x3e{9}\x3c/div\x3e\x3cbr/\x3e\x3cdiv\x3e{10}\x3c/div\x3e","REPLYTO_ERROR_DEFAULT_REASON":"An error occurred processing the email sent to developerWorks community.","SIZE.B":"{0} B","RELATED_COMMUNITY":"Community:","DATE_TYPE_PLAIN":"{0}","TOTAL_NEW_STORIES_FORUMS":"({0} new updates)","REPLYTO_ERROR_DATA_PROBLEM":"Your email reply could not be added because details about the original notification could not be found.","TIME_TYPE_HTML":"\x3cspan class=\"time\"\x3e{0}\x3c/span\x3e","email.member.added.tgmc.header":"Please bookmark the following two communities, as they will be needed to participate in this competition:","SIZE.MB":"{0} MB","DOUBLE_QUOTES":"\"{0}\"","REPLYTO_ERROR_TITLE":"We\'re sorry, but your reply could not be added","DATETIME_TYPE_PLAIN":"{0}","POSTING_DATE":"Posting Date:","HEADER_BOOKMARKS":"Bookmarks","NEWSLETTER_TITLE_DAILY":"[developerWorks community] Daily Newsletter for {0}","REPLYTO_ERROR_DISALLOWEDCONTENT":"Your email reply could not be added because it contains disallowed content.","ITEMNAME_TYPE_HTML":"\x3cspan class=\"itemname\"\x3e{0}\x3c/span\x3e","NOTIFICATION_FROM_WHERE_AND_UNSUBSCRIBE":"This is a notification sent from {0}. {1}.","email.invited.to.join.tgmc.body":"TGMC Competition {0} is {1}","OPEN_COMMUNITIES":"Open this community","email.owner.added.tgmc.description":"The Public community contains instructions and all materials related to this competition.\x3cbr\x3e\x3cbr\x3eThe Private \"{0}\" team community is only accessible to your team. You can use the community&#39s collaborative tools to help organize your project. If you wish to add more members to your team, you will be able to invite them from there.","REPLYTO_DEFAULT_SOURCE":"developerWorks community","COMMA":",","ANCHOR":"\x3ca href=\"{0}\"\x3e{1}\x3c/a\x3e","email.member.added.tgmc.subject":"You have joined team \"{0}\" that has been entered into the TGMC competition","TEXT_TYPE_PLAIN":"{0}","OPEN_TOPICS":"Open this topic","REPLYTO_ERROR_SUBJECT":"Email Subject: ","dw.invite.external.register":"Register with developerWorks","OPEN_BLOGS":"Open this blog","email.invited.to.join.tgmc.subject":"Join Team {0} for {1} Competition","TOTAL_NEW_STORIES_WIKIS":"({0} new updates)","email.member.tgmc.removed.info":"If you have questions, send email to \x3ca href=\"mailto:tgmc@us.ibm.com\"\x3etgmc@us.ibm.com\x3c/a\x3e.","TOTAL_NEW_STORIES_TAGS":"({0} new stories)","HEADER_BLOGS":"Blogs","PERIOD":".","TOTAL_NEW_STORIES_COMMUNITIES":"({0} new updates)","ICON_ALT":"Icon","NOTIFICATION_FROM_WHERE":"This is a notification sent from {0}","USER_TYPE_HTML_PLAIN":"\x3cb\x3e{0}\x3c/b\x3e","REPLYTO_ERROR_CORRUPTMESSAGE":"Your email reply could not be added because the message is corrupt.","REPLYTO_ERROR_EMPTYMESSAGE":"Your email reply could not be added because the message is empty.","DATETIME_TYPE_HTML":"\x3cspan class=\"datetime\"\x3e{0}\x3c/span\x3e","email.body.tgmc.signature":"Sincerely,\x3cbr\x3e\x3cbr\x3eThe Great Mind Challenge Team","HEADLINE_DAILY":"Your daily updates for {0}","dw.invite.external.view.com":"View the {0} community","MORE_20_UPDATES":"(More than 20 new updates)","email.member.removed.tgmc.subject":"You have left Team {0}","email.invited.to.join.tgmc.header":"{0} has invited you to join team \"{1}\" as part of the {2} Competition","HEADER_ACTIVITIES":"Activities","INDIVIDUAL_TITLE_NEWS":"developerWorks community","email.owner.added.tgmc.subject":"a new team member has been added to team {0}","VIEW_ALL":"View all...","OPEN_ITEM":"Open this item","SIZE.GB":"{0} GB","REPLYTO_ERROR_AUTHENTICATION":"Your email reply could not be processed due to an authorization problem.","email.invited.to.join.tgmc.footer":"Please respond to the invitation: {0}","INDIVIDUAL_TITLE_FILES":"Files","MORE_20_COMMENTS":"(More than 20 new comments and replies)","dw.invite.external.subject":"You have been invited to join developerWorks community","SUBJECT_PREFIX_CONTENTS":"source.name","MOBILE_LINK_TEXT":"Open in Mobile","TOTAL_NEW_STORIES_BOOKMARKS":"({0} new updates)","HEADLINE_DAILY_NO_DATE":"Your daily updates","HTML_TYPE_HTML":"\x3cspan class=\"html\"\x3e{0}\x3c/span\x3e","TEXT_TYPE_HTML":"\x3cspan class=\"text\"\x3e{0}\x3c/span\x3e"}};

;if(!dojo._hasResource["lconn.core.WidgetPlacement"]){
dojo._hasResource["lconn.core.WidgetPlacement"]=true;
dojo.provide("lconn.core.WidgetPlacement");
dojo.require("dojo.dnd.Manager");
dojo.require("lconn.core.utilities");
dojo.require("lconn.core.xpath");
dojo.require("lconn.core.errorhandling");
dojo.require("lconn.core.back");
dojo.require("lconn.core.aria.TabPanel");
dojo.requireLocalization("lconn.core","widgets");
dojo.requireLocalization("lconn.core.config","widgetbundles");
dojo.deprecated("lconn.core.WidgetPlacement","Will be replaced with OpenSocial container logic","3.5");
dojo.provide("lconn.core.WidgetPlacement.aria.TabPanel");
dojo.require("lconn.core.aria.TabPanel");
dojo.declare("lconn.core.WidgetPlacement.aria.TabPanel",lconn.core.aria.TabPanel,{selectedClassname:"lotusSelected",connectToFirstLink:false,selIdx:0,_prevIdx:0,constructor:function(){
this.inherited(arguments);
var ai=this.allItems;
si=this.selIdx;
dojo.forEach(ai,dojo.hitch(this,function(_1,_2){
dojo.style(_1,{cursor:"pointer"});
this._connects.push(dojo.connect(_1,"onclick",dojo.hitch(this,function(_3){
this.selIdx=_2;
this._setItemVisuals();
})));
if(this.connectToFirstLink){
try{
dojo.attr(dojo.query("a",_1)[0],"tabindex","-1");
}
catch(ee){
}
this._connects.push(dojo.connect(_1,"onclick",dojo.hitch(this,function(_4){
try{
var _5=dojo.query("a",_1)[0];
if(document.createEvent){
var _6=document.createEvent("HTMLEvents");
_6.initEvent("click",false,true);
_5.dispatchEvent(_6);
}else{
_5.fireEvent("onclick");
}
}
catch(e){
}
})));
}
}));
var _7=this.selIdx;
if(lconn.core.utilities.getURLParam("tabid",true)!=null){
var _8=lconn.core.utilities.getURLParam("tabid",true);
var _9=0;
dojo.forEach(ai,function(_a){
if(_a.id==_8+"_TabItem"){
_7=_9;
}
_9++;
});
}
this._selectItem(_7,true);
this._activate(ai[_7]);
if(ai.length>0&&dojo.isIE&&!dojo._isBodyLtr()){
dojo.addOnLoad(dojo.hitch(this,function(){
var _b=0;
dojo.query("a[class*='_iconHolder']",ai[0].parentNode).forEach(function(_c){
_b=Math.max(_b,dojo.coords(_c).w);
});
dojo.forEach(ai,dojo.hitch(this,function(_d){
var _e=0;
if(_b>0){
dojo.query("a[class*='_iconHolder']",_d).forEach(function(_f){
dojo.style(_f,"width",_b+"px");
});
dojo.query("a[class*='_linkHolder']",_d).forEach(function(_10){
dojo.style(_10,"width",(dojo.coords(_10).w)+"px");
});
_e=20;
}
dojo.style(_d,"width",(dojo.coords(_d).w+_e)+"px");
}));
}));
}
},_activate:function(_11,_12){
if(_12||!this.connectToFirstLink){
return this.inherited(arguments);
}else{
return this._activate((dojo.query("a",_11)[0]),true);
}
},_setItemVisuals:function(){
var ai=this.allItems;
var si=this._prevIdx;
if(this.selIdx!=this._prevIdx){
dijit.setWaiState(ai[this._prevIdx],"selected","false");
dojo.removeClass(ai[this._prevIdx],this.selectedClassname);
dojo.attr(ai[this._prevIdx],"tabindex","-1");
}
dijit.setWaiState(ai[this.selIdx],"selected","true");
dojo.addClass(ai[this.selIdx],this.selectedClassname);
dojo.attr(ai[this.selIdx],"tabindex","0");
this._prevIdx=this.selIdx;
},_selectItem:function(si,_13){
if(typeof _13=="undefined"){
_13=false;
}
this._prevIdx=si;
this._setItemVisuals();
this.inherited(arguments);
if(!_13){
this.allItems[this.selIdx].focus();
}
}});
dojo.provide("lconn.core.WidgetPlacement.aria.Toolbar");
dojo.require("lconn.core.aria.Toolbar");
dojo.declare("lconn.core.WidgetPlacement.aria.Toolbar",lconn.core.aria.Toolbar,{selectedClassname:"lotusSelected",connectToFirstLink:true,selIdx:0,_oldIdx:0,changeSelectOnClick:true,setItemIdx:function(_14,idx){
if(dojo.attr(_14,"role")=="button"){
dojo.attr(_14,"itemidx_",idx);
}else{
if(_14.parentNode){
return this.setItemIdx(_14.parentNode,idx);
}
}
},getItemIdx:function(_15){
ret=this.selIdx;
if(dojo.attr(_15,"itemidx_")!=null){
ret=dojo.attr(_15,"itemidx_");
}else{
if(_15.parentNode){
return this.getItemIdx(_15.parentNode);
}
}
return ret;
},constructor:function(){
this.inherited(arguments);
if(this.connectToFirstLink){
var ai=this.allItems;
si=this.selIdx;
dojo.forEach(ai,dojo.hitch(this,function(_16,idx){
this.setItemIdx(_16,idx);
if(dojo.hasClass(_16,this.selectedClassname)){
this.selIdx=idx;
}
this._pressItem(idx,false);
var _17=dojo.query("a",_16)[0];
dojo.attr(_17,"tabindex","-1");
dojo.removeAttr(_17,"aria-pressed");
dojo.removeClass(_17,this.selectedClassname);
if(this.changeSelectOnClick){
this._connects.push(dojo.connect(_17,"onclick",dojo.hitch(this,function(_18){
var _19=this.getItemIdx(_17);
this._pressItem(this._oldIdx,false);
this._pressItem(_19,true);
this._oldIdx=_19;
})));
}
this._connects.push(dojo.connect(_16,"onkeypress",function(_1a){
var _1b=null;
if(!_1a){
_1a=window.event;
}
if(_1a){
_1b=_1a.keyCode||_1a.charCode;
}
if(_1b===dojo.keys.SPACE||_1b===dojo.keys.ENTER){
try{
var _1c=dojo.query("a",_16)[0];
dojo.query("a",_16)[0].click();
dojo.stopEvent(_1a);
}
catch(ee){
}
}
}));
}));
this._pressItem(this.selIdx,true);
this._oldIdx=this.selIdx;
}
},_kickIn:function(_1d,i){
this.inherited(arguments);
if(this.connectToFirstLink){
dojo.attr(_1d,"tabindex","0");
}
},_pressItem:function(idx,yn){
if(idx>=0){
var el=this.allItems[idx];
if(el){
if(yn){
dojo.addClass(el,this.selectedClassname);
dojo.attr(el,{"aria-pressed":"true","tabindex":"0"});
if(typeof window._IC_bizCard_appLang=="undefined"){
el.focus();
}
}else{
dojo.removeClass(el,this.selectedClassname);
dojo.attr(el,{"aria-pressed":"false","tabindex":"-1"});
}
}
}
}});
(function(){
if(typeof (dojo.global.WidgetPlacementConfig)=="undefined"){
dojo.global.WidgetPlacementConfig={debug:false,appStartupDate:""};
}
var _1e=dojo.i18n.getLocalization("lconn.core","widgets");
var _1f=dojo.i18n.getLocalization("lconn.core.config","widgetbundles");
lconn.core.WidgetPlacement.debug=WidgetPlacementConfig.debug;
lconn.core.WidgetPlacement.uiLocations=new Object();
lconn.core.WidgetPlacement.dropZoneObjects=new Object();
var _20=function(){
var _21=null;
if(WidgetPlacementConfig.isProfilesEnv){
if(profilesData.displayedUser!=null){
if(profilesData.displayedUser.profileType==null||profilesData.displayedUser.profileType==""){
profilesData.displayedUser.profileType="default";
}
}
_21=profilesData.displayedUser;
}
return _21;
};
var _22=function(_23,_24,_25,_26){
if(_23==null){
_23=[];
}
var _27=_24.getAttribute("defId");
var _28="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_27+"']/tns:configData/tns:attr";
var _29=lconn.core.xpath.selectNodes(_28,_26);
for(var i=0;_29.length!=null&&i<_29.length;i++){
var _2a=_29[i].getAttribute("value");
_2a=lconn.core.i18nOverrider.replaceParams(_2a,WidgetPlacementConfig.params);
_23.push({entryName:_29[i].getAttribute("key"),entryValue:_2a});
}
_28="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_27+"']/tns:itemSet/tns:item";
_29=lconn.core.xpath.selectNodes(_28,_26);
for(var i=0;_29.length!=null&&i<_29.length;i++){
var _2a=_29[i].getAttribute("value");
_2a=lconn.core.i18nOverrider.replaceParams(_2a,WidgetPlacementConfig.params);
_23.push({entryName:_29[i].getAttribute("name"),entryValue:_2a});
}
if(_25!=null){
var _2b=_25.getAttribute("instanceId");
WidgetPlacementConfig.params["widgetInstanceId"]=_2b;
var _2c="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_2b+"']/tns:itemSet/tns:item";
_29=lconn.core.xpath.selectNodes(_2c,_26);
for(var i=0;_29.length!=null&&i<_29.length;i++){
var _2a=_29[i].getAttribute("value");
_2a=lconn.core.i18nOverrider.replaceParams(_2a,WidgetPlacementConfig.params);
_23.push({entryName:_29[i].getAttribute("name"),entryValue:_2a});
}
}
return _23;
};
lconn.core.WidgetPlacement.getWidgetDocAndRenderWidget=function(_2d,_2e,_2f,_30,_31,_32,_33,_34,_35){
var _36=function(_37,_38){
var _39=_37;
WidgetPlacementConfig.widgetConfigXMLDocument=_39;
var _3a=null;
if(_2d==null&&_2e!=null){
_2d=_2e.getAttribute("defId");
}
if(_2e==null){
var _3b="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_2d+"']";
_2e=lconn.core.xpath.selectSingleNode(_3b,_39);
if(_2e==null){
console.log("Unable to find widget definition for: "+_2d);
return;
}
_2d=_2e.getAttribute("defId");
}
if(_2f==null){
_2f=_2d;
}
if(_3a==null){
_3a=_39.createElement("widgetInstance");
_3a.setAttribute("uiLocation",_30);
_3a.setAttribute("defIdRef",_2d);
_3a.setAttribute("instanceId",_2f);
}
if(_32==null){
_32=_2e.getAttribute("skinType");
}
var _3c=null;
var _3d=null;
var _3e="widget-container-"+_30;
var _3f=dojo.byId(_30+"DropZone");
if(_3f==null){
if(lconn.dboard&&lconn.dboard.dnd){
var _40=_30+"DropZone";
var _3f=document.createElement("div");
_3f.setAttribute("id",_40);
var _41=dojo.byId(_3e);
if(_41){
_41.appendChild(_3f);
}else{
_3f=null;
}
}else{
_3f=dojo.byId(_3e);
}
}
_3d=_3f;
if(_31=="fullpage"){
var _42=null;
var url=_2e.getAttribute("url");
_35=_22(_35,_2e,_3a,_39);
_3d.innerHTML+=_52(_2f,url,_20(),_35,_31);
lconn.core.mumOverride.renderSingleWidget(_2f);
}else{
var _43=document.createElement("div");
var _44=_89(_2e,_3a,_20(),_39,true,_32,_31,_33,_35);
_43.innerHTML=_44;
if(_3d){
_3d.appendChild(_43.firstChild);
}
var _40=_30+"DropZone";
if(_34==null){
if(lconn.core.WidgetPlacement.dropZoneObjects[_40]==null){
lconn.core.utilities.processUntilElementIsFound(_40,_45,null,{uiLocation:_30,dropZoneDOMId:_40});
}else{
lconn.core.utilities.processUntilElementIsFound(_2f+"Section",_4a,null,{dropZoneDOMId:_40,widgetInstanceId:_2f});
}
}
lconn.core.mumOverride.renderSingleWidget(_2f);
lconn.core.utilities.processUntilElementIsFound(_2f+"Section",function(){
dojo.parser.parse(dojo.byId(_2f+"Section"));
});
}
};
if(WidgetPlacementConfig.widgetConfigXMLDocument!=null&&!dojo.global.staleXMLConfig){
_36(WidgetPlacementConfig.widgetConfigXMLDocument);
}else{
var url=WidgetPlacementConfig.layoutInfoUrl;
if(!dojo.global.staleXMLConfig){
url+="&lastMod="+WidgetPlacementConfig.lastMod;
}
dojo.xhrGet({url:url,error:lconn.core.errorhandling.DefaultXHRErrorHandler,handleAs:"xml",sync:true,load:_36});
dojo.global.staleXMLConfig=false;
}
};
var _45=function(_46,_47){
dojo.parser.parse(_46);
var _48=_49(_47.uiLocation,_46);
lconn.core.WidgetPlacement.dropZoneObjects[_47.dropZoneDOMId]=_48;
};
var _4a=function(_4b,_4c){
dojo.parser.parse(_4b);
var _4d=lconn.core.WidgetPlacement.dropZoneObjects[_4c.dropZoneDOMId];
_4d.setItem(_4b.id,{node:_4b,id:_4b.id,data:_4c.widgetInstanceId,type:"widget"});
};
var _49=function(_4e,_4f){
var _50={jsId:_4e,accept:"widget",withhandles:true,skipForm:true};
var _51=new lconn.dboard.dnd.Source(_4f,_50);
return _51;
};
var _52=function(_53,url,_54,_55,_56){
WidgetPlacementConfig.params["widgetInstanceId"]=_53;
url=lconn.core.i18nOverrider.replaceParams(url,WidgetPlacementConfig.params);
var _57="<div id='"+_53+"' class='mm_iWidget'><a class='mm_Definition' style='display: none;visibility:hidden;' href='"+url+"' ></a>";
if(_56!=null){
_57+="<div class=\"mm_ItemSet\" title=\"idescriptor\" style=\"display: none;\">"+"<a class=\"mm_Item\" href=\"#mode\" style=\"visibility:hidden\">"+_56+"</a>"+"</div>";
}
_57+="<div class='mm_ItemSet' title='attributes' style='display: none;'>";
if(WidgetPlacementConfig.isProfilesEnv){
if(_54.uid!=null){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#profileDisplayedUserUID'>"+_54.uid+"</a>";
}
if(_54.key!=null){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#profileDisplayedUserKey'>"+_54.key+"</a>";
}
}
if(WidgetPlacementConfig.resourceId!=null){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#resourceId'>"+WidgetPlacementConfig.resourceId+"</a>";
}
if(WidgetPlacementConfig.parentResourceId!=null){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#parentResourceId'>"+WidgetPlacementConfig.parentResourceId+"</a>";
}
if(WidgetPlacementConfig.resourceType!=null){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#resourceType'>"+WidgetPlacementConfig.resourceType+"</a>";
}
if(WidgetPlacementConfig.resourceName){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#resourceName'>"+WidgetPlacementConfig.resourceName+"</a>";
}
for(var i=0;_55!=null&&i<_55.length;i++){
_57+="<a class='mm_Item' type='string' style='display: none;' href='#"+_55[i].entryName+"'>"+_55[i].entryValue+"</a>";
}
_57+="</div>"+"</div>";
WidgetPlacementConfig.widgetInstanceId=_53;
return _57;
};
var _58=function(){
var _59=dojo.byId("lotusProfileNavBar");
if(_59==null){
_59=dojo.byId("lotusNavBar");
}
return _59;
};
window.registerCloseViewFunction=function(_5a){
lconn.core.WidgetPlacement.registerCloseViewFunction=_5a;
};
window.closeOtherViews=function(){
if(lconn.core.WidgetPlacement.registerCloseViewFunction!=null){
lconn.core.WidgetPlacement.registerCloseViewFunction();
lconn.core.WidgetPlacement.registerCloseViewFunction=null;
}
};
lconn.core.WidgetPlacement.closeFullPageWidgetIfOpen=function(){
if(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId!=null){
destroyWidget(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId,null,false,true);
lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId=null;
}
};
lconn.core.WidgetPlacement.closeSwitchView=function(){
if(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId!=null){
destroyWidget(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId,null,false);
}
lconn.core.utilities.hide("widget-container-fullpage",false,true);
destroyWidgetContainer("fullpage");
lconn.core.WidgetPlacement.isInWidgetFullpageMode=true;
};
window.switchView=function(_5b,_5c,_5d,_5e,_5f){
closeOtherViews();
registerCloseViewFunction(lconn.core.WidgetPlacement.closeSwitchView);
destroyWidget(_5c,null,false,true);
if(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId!=null){
destroyWidget(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId,null,false,true);
}
destroyWidgetContainer("fullpage");
for(uiLocation in lconn.core.WidgetPlacement.uiLocations){
lconn.core.utilities.hide("widget-container-"+uiLocation,false,true);
}
if(WidgetPlacementConfig.hideElements!=null){
for(var i=0;WidgetPlacementConfig.hideElements!=null&&i<WidgetPlacementConfig.hideElements.length;i++){
var _60=WidgetPlacementConfig.hideElements[i];
lconn.core.utilities.hide(_60,false,true);
}
}
var _61=_58();
if(_61!=null){
var _62=_61.getElementsByTagName("li");
for(var i=0;_62!=null&&i<_62.length;i++){
if(_62[i].className!=""){
dojo.removeClass(_62[i],"lotusSelected");
var _63=_62[i].childNodes[0];
}
}
var _64=dojo.byId(_5c+"_navItem");
if(_64!=null){
dojo.addClass(_64,"lotusSelected");
var _65=_64.childNodes[0];
}
}
lconn.core.utilities.show("widget-container-fullpage",false,false,true);
lconn.core.WidgetPlacement.getWidgetDocAndRenderWidget(null,_5b,_5c,"fullpage","fullpage","skinless",false);
lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId=_5c;
lconn.core.WidgetPlacement.isInWidgetFullpageMode=true;
};
window.getResourcedStringForItem=function(_66,_67){
var _68=_66.getAttribute("bundleRefId")||"lc_default";
var _69=_1f[_68];
if(!_69){
console.log("unable to find resource bundle for '"+_68+"'");
_69={};
}
var _6a=_66.getAttribute(_67);
var _6b=_69[_6a];
return (_6b===undefined)?_6a:_6b;
};
window.getResourcedStringById=function(_6c,_6d){
var _6e=_6c.getAttribute("bundleRefId")||"lc_default";
var _6f=_1f[_6e];
if(!_6f){
console.log("unable to find resource bundle for '"+_6e+"'");
_6f={};
}
var _70=_6f[_6d];
return (_70===undefined)?_6d:_70;
};
function _71(_72){
return window.getResourcedStringForItem(_72,"defId");
};
window.addToNavBar=function(_73,_74,_75,_76,_77,_78,_79){
var _7a=new Array();
var _7b=new Array();
var _7c=new Array();
var ii;
var _7d=_58();
if(_7d==null){
return;
}
var _7e=_73.getAttribute("showFullPageViewLinkInNavBar");
var _7f=_73.getAttribute("modes");
if((_7e!=null&&_7e=="true")||(_7f!=null&&_7f.indexOf("fullpage")!=-1)||(_77!=null&&_77!="")){
if(_79!=null&&_79!=""){
_7b=_79.split(",");
for(ii=0;ii<_7b.length;ii++){
_7a[ii]=window.getResourcedStringById(_73,_7b[ii]);
}
}else{
_7a[0]=_71(_73);
}
if(_77!=null&&_77!=""){
_7c=_77.split(",");
}
var _80=_73.getAttribute("defId");
var _81=_74.getAttribute("instanceId");
if(!_81){
_81=_80;
}
for(ii=0;ii<_7a.length;ii++){
var li=document.createElement("li");
li.setAttribute("role","button");
li.setAttribute("aria-pressed","false");
if(ii==0){
li.id=_81+"_navItem";
}else{
li.id=_81+"_navItem_"+ii;
}
var _82=document.createElement("a");
if(_77!=null&&_77!=""){
if(_7c[ii]==null){
_7c[ii]=_7c[0];
}
WidgetPlacementConfig.params["widgetInstanceId"]=_81;
var _83=lconn.core.i18nOverrider.replaceParams(_7c[ii],WidgetPlacementConfig.params);
_82.href=_83;
}else{
_82.href="javascript:void(0);";
var _84=function(){
changeHash("fullpageWidgetId="+_81);
return false;
};
dojo.connect(_82,"onclick",_84);
}
var _85=document.createTextNode(_7a[ii]);
_82.appendChild(_85);
li.appendChild(_82);
if(_80=="StatusUpdates"){
var _86=dojo.byId("RecentUpdates_navItem");
_7d.insertBefore(li,_86.nextSibling);
}else{
if(WidgetPlacementConfig.insertBeforeNavBarId){
_7d.insertBefore(li,dojo.byId(WidgetPlacementConfig.insertBeforeNavBarId));
}else{
_7d.appendChild(li);
}
}
if(_76==true){
var _87=WidgetPlacementConfig.NavBarSelectedMenuItem;
var _88=0;
var idx=_87.indexOf("_");
if(idx>0){
_88=_87.substring(idx+1);
}
if(ii==_88){
dojo.addClass(li,"lotusSelected");
}
}
}
}
};
var _89=function(_8a,_8b,_8c,_8d,_8e,_8f,_90,_91,_92){
if(typeof (_8a)=="undefined"){
return "";
}
var url=_8a.getAttribute("url");
var _93=_8a.getAttribute("modes");
var _94=_8b.getAttribute("instanceId");
var _95=_8a.getAttribute("defId");
var _96=_8a.getAttribute("navBarLinkText");
var _97=_8a.getAttribute("navBarLink");
var _98=_8a.getAttribute("helpLink");
var _99=_8a.getAttribute("fixedPosition");
var _9a=_8a.getAttribute("displayLoginRequired");
var _9b=null;
if(_98!=null&&_98!=""){
_9b=lconn.core.i18nOverrider.replaceParams(_98,WidgetPlacementConfig.params);
}
var _9c=false;
var _9d="";
var _9e=dojo.i18n.getLocalization("lconn.core","widgets");
if(_94!=null){
_9c=true;
}
if(_94==null){
_94=_95;
}
var _9f=_94;
if(_90=="edit"){
_9f+="edit";
}
if(_91==null||_91==true){
var _a0=false;
if(WidgetPlacementConfig.NavBarSelectedMenuItem!=null){
var _a1=WidgetPlacementConfig.NavBarSelectedMenuItem;
var idx=_a1.indexOf("_");
if(idx>0){
_a1=_a1.substring(0,idx);
}
if(_a1==_95){
_a0=true;
if(WidgetPlacementConfig.navBarOverViewElementId!=null){
var _a2=dojo.byId(WidgetPlacementConfig.navBarOverViewElementId);
if(_a2!=null){
dojo.removeClass(_a2,"lotusSelected");
}
}
}
}
addToNavBar(_8a,_8b,_8c,_a0,_97,true,_96);
}
var _a3=true;
if(!WidgetPlacementConfig.userLoggedIn&&_9a=="true"){
_a3=false;
}
var _a4;
if(_9c){
var _a5="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_94+"']/tns:itemSet/tns:item[@name = 'widgetTitle']/@value";
_a4=lconn.core.xpath.selectText(_a5,_8d);
}
_a4=_a4||_71(_8a);
var _a6=null;
var _a7=_95+"-isMinimized";
var _a8=dojo.cookie(_a7);
if(_8f==null||_8f==""){
_8f="use25OneUISkin";
}
if(_8f=="use25OneUISkin"){
var _a9="Open";
if(_a8!="true"){
_a9="Close";
}
var _aa="";
var _ab="";
if(_8e&&_9c){
_aa=" dojoDndItem\" dndType=\"widget\" skipForm=\"true\" dndData=\""+_94;
}else{
_ab="style=\"cursor: default\"";
}
_a6="<div id=\""+_9f+"Section\" class=\"lotusWidget2"+_aa+"\" widgetId=\""+_94+"\" role=\"region\" aria-labelledby=\""+_94+"Id\" >";
var _ac=_1e["actions_alt"]||"Actions for: ${0}";
_ac=dojo.string.substitute(_ac,[_a4]);
_a6+="<h2 class=\"ibmDndDragHandle\" "+_ab+">"+"<span class=\"lotusLeft\" style=\"cursor: default\" id=\""+_94+"Id\">"+_a4+"</span>"+"<a id=\"widgetActionsMenu"+_94+"\" class=\"lotusIcon lotusActionMenu\" href=\"javascript:void(0);\" onclick=\"lconn.core.WidgetPlacement.openMenu(event, '"+_94+"','widgetActionsMenu"+_94+"');\" title=\""+_ac+"\" role=\"button\" aria-haspopup=\"true\" aria-label=\""+_ac+"\">"+"<img src=\""+dijit._Widget.prototype._blankGif+"\" alt=\"\"/>"+"<span class=\"lotusAltText\">"+_ac+"</span>"+"</a>"+"</h2>";
_a6+="<div dojoType=\"dijit.Menu\" id=\""+_9f+"moreActions\" style=\"display: none;\">";
if(_a8!="true"){
_a6+="<div id=\""+_9f+"_toggleAction\" dojoType=\"dijit.MenuItem\" label=\""+_1e["widgets_Min"]+"\" onclick=\"lconn.core.WidgetPlacement.minimizeWidget(this,'"+_94+"', '"+_95+"');\"></div>";
}else{
_a6+="<div id=\""+_9f+"_toggleAction\" dojoType=\"dijit.MenuItem\" label=\""+_1e["widgets_Max"]+"\" onclick=\"lconn.core.WidgetPlacement.minimizeWidget(this,'"+_94+"', '"+_95+"');\"></div>";
}
if(_a3){
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["refresh"]+"\" onclick=\"lconn.core.WidgetPlacement.refresh('"+_94+"');\"></div>";
}else{
}
if(_93!=null&&_93.indexOf("edit")!=-1&&_8e){
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["edit"]+"\" onclick=\"lconn.core.utilities.hide('"+_94+"moreActions"+"', false, true);_"+_94+"_iContext.iEvents.fireEvent('onModeChanged','','{\\'newMode\\':\\'edit\\'}');\"></div>";
}
if(_9b!=null){
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["help"]+"\" onclick=\"lconn.core.utilities.hide('"+_94+"moreActions"+"', false, true);lconn.core.WidgetPlacement.openHelpWindow('"+_9b+"');\"></div>";
}
if(_9c&&_8e){
var _ad=_8b.getAttribute("uiLocation");
if(!_99){
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["widgets_MoveUp"]+"\" onclick=\"lconn.core.WidgetPlacement.moveUp('"+_94+"','"+_ad+"');\"></div>";
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["widgets_MoveDown"]+"\" onclick=\"lconn.core.WidgetPlacement.moveDown('"+_94+"','"+_ad+"');\"></div>";
}
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["hide"]+"\" onclick=\"lconn.core.WidgetPlacement.removeWidget('"+_94+"', false);\"></div>";
_a6+="<div dojoType=\"dijit.MenuItem\" label=\""+_1e["link.remove"]+"\" onclick=\"lconn.core.WidgetPlacement.removeWidget('"+_94+"', true);\"></div>";
}
_a6+="</div>";
if(_a8!="true"){
if(!WidgetPlacementConfig.userLoggedIn&&_9a=="true"){
_a6+="<div id='"+_9f+"SubArea' widgetloaded='false' widgetneedrefresh='false'>"+_9e["msg.loginRequired"];
}else{
_a6+="<div id='"+_9f+"SubArea' widgetloaded='true' widgetneedrefresh='false'>";
_92=_22(_92,_8a,_8b,_8d);
_a6+=_52(_94,url,_8c,_92,_90);
}
}else{
_a6+="<div id='"+_9f+"SubArea' style='display: none;' widgetloaded='false'";
if(!WidgetPlacementConfig.userLoggedIn&&_9a=="true"){
_a6+=" widgetneedrefresh='false' >"+_9e["msg.loginRequired"];
}else{
_a6+=" widgetneedrefresh='true' >";
}
}
_a6+="</div>";
_a6+="</div>";
}else{
if(_8f=="skinless"){
_a6="<div id='"+_9f+"Section'>";
if(!WidgetPlacementConfig.userLoggedIn&&_9a=="true"){
_a6+="<div id='"+_9f+"SubArea' widgetloaded='false' >";
_a6+=_9e["msg.loginRequired"];
}else{
_a6+="<div id='"+_9f+"SubArea' widgetloaded='true' >";
_92=_22(_92,_8a,_8b,_8d);
_a6+=_52(_94,url,_8c,_92,_90);
}
_a6+="</div>";
_a6+="</div>";
}
}
return _a6;
};
lconn.core.WidgetPlacement.openHelpWindow=function(url){
var h=window.screen.height/4;
if(h<800){
h=800;
}
var w=window.screen.width/4;
if(w<800){
w=800;
}
var _ae="height="+h+",width="+w+",status=yes,toolbar=yes,menubar=no,location=yes,scrollbars=yes,resizable=yes";
var _af=window.open(url,"helpWindow",_ae);
_af.focus();
};
lconn.core.WidgetPlacement.openMenu=function(_b0,_b1,id){
var _b2=_b1+"moreActions";
var _b3=dijit.byId(_b2);
if(_b3==null){
if(WidgetPlacementConfig.debug){
console.log("lconn.core.WidgetPlacement.openMenu: dojoWidgetId '"+_b2+"' don't have a dojoWidget instance, creating one");
}
dojo.parser.parse(dojo.byId(_b2));
_b3=dijit.byId(_b2);
}
if(_b3!=null){
if(id!=null){
var _b4=document.getElementById(id);
if(_b4!=null){
dojo.attr(_b4,"aria-owns",id+"_dropdown");
var _b5=dojo.connect(_b3,"onClose",function(){
dojo.removeAttr(_b4,"aria-owns");
dojo.disconnect(_b5);
});
}
}
menuUtility.openMenu(_b0,_b2);
}else{
if(WidgetPlacementConfig.debug){
console.log("lconn.core.WidgetPlacement.openMenu: skipping open menu, can not find widget with id "+_b2);
}
}
};
var _b6=function(_b7,_b8,_b9){
var _ba=function(_bb,_bc){
var _bd=_bb;
WidgetPlacementConfig.widgetConfigXMLDocument=_bd;
var _be=null;
_be="/tns:widgets/tns:layout/tns:page[@pageId='"+WidgetPlacementConfig.defaultPageId+"']/tns:widgetInstance";
var _bf=lconn.core.xpath.selectNodes(_be,_bd);
if(typeof (_bf)!="undefined"&&typeof (_bf.length)!="undefined"){
for(var i=0;_bf.length!=null&&i<_bf.length;i++){
var _c0=_bf[i];
var _c1=_c0.getAttribute("enabled");
if(_c1==null||_c1!="false"){
var _c2=_c0.getAttribute("defIdRef");
var _c3="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_c2+"']";
var _c4=lconn.core.xpath.selectSingleNode(_c3,_bd);
if(canAddWidget(_c4,WidgetPlacementConfig,_b8,_c0)){
var _c5=_c4.getAttribute("navBarLinkText");
var _c6=_c4.getAttribute("navBarLink");
var _c7=false;
if(WidgetPlacementConfig.NavBarSelectedMenuItem!=null&&WidgetPlacementConfig.NavBarSelectedMenuItem==_c2){
_c7=true;
}
addToNavBar(_c4,_c0,_b9,_c7,_c6,false,_c5);
}
}
}
}
};
var _c8=_58();
if(_c8!=null){
try{
new lconn.core.WidgetPlacement.aria.Toolbar(_c8.id);
}
catch(ee){
new lconn.core.aria.Toolbar(_c8.id);
}
}
if(WidgetPlacementConfig.widgetConfigXMLDocument==null){
dojo.xhrGet({url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod,error:lconn.core.errorhandling.DefaultXHRErrorHandler,handleAs:"xml",sync:true,load:_ba});
}else{
_ba(WidgetPlacementConfig.widgetConfigXMLDocument);
}
};
window.canAddWidget=function(_c9,_ca,_cb,_cc,_cd){
if(_c9==null){
return false;
}
var _ce=_c9.getAttribute("loginRequired");
if(_ce=="true"&&!_ca.userLoggedIn){
return false;
}
var _cf=_c9.getAttribute("resourceOwnerWidget");
if(_cf=="true"&&!_cb){
return false;
}
var _d0=_c9.getAttribute("hideWidgetForMyProfile");
var _d1=getUserProfileOverrideProperty("key");
if(_d0=="true"&&_ca.userLoggedIn&&_ca.params.resourceId==_d1){
return false;
}
if(_cc!=null&&lconn.core.WidgetPlacement.onlyFullPageWidgetLoaded!=true&&!_cd){
var _d2=_cc.getAttribute("enabled");
if(_d2=="false"){
return false;
}
}
var _d3=_c9.getAttribute("prerequisite");
if(_d3!=null&&_d3!=""&&_ca.availableServices!=null){
var _d4=_d3.split(" ");
for(var x=0;_d4.length!=null&&x<_d4.length;x++){
if(_ca.availableServices[_d4[x]]==null||_ca.availableServices[_d4[x]]==false){
return false;
}
}
}
var _d5=_c9.getAttribute("requiredFeatures");
if(_d5!=null&&_d5!=""&&typeof (_ca.enabledFeatures)!="undefined"&&_ca.enabledFeatures!=null&&_ca.enabledFeatures!=""){
if(_ca.debug){
console.info(" enabledFeatures = "+_ca.enabledFeatures);
}
var _d6=_ca.enabledFeatures.split(new RegExp("[, \u3000]{1}","g"));
var i=0,len=_d6.length;
var _d7=false;
for(i=0;i<len;i++){
if(_d6[i]==_d5){
_d7=true;
break;
}
}
if(!_d7){
if(_ca.debug){
console.info("The user doesn't have the required feature, returning false");
}
return false;
}
}
var _d8=_c9.getAttribute("defId");
if(_ca.disabledWidgets&&_ca.disabledWidgets[_d8]){
if(_ca.debug){
console.info("Widget "+_d8+" is disabled in this context.");
}
return false;
}
return true;
};
lconn.core.WidgetPlacement.placeWidgetMetadata=function(_d9){
lconn.core.WidgetPlacement.initialLoad=true;
if(dojo.dnd!=null&&lconn.dboard&&lconn.dboard.dnd){
lconn.dboard.dnd.Source.prototype.onSelectStart=function(){
};
}
var _da=function(_db,_dc,_dd,_de,_df){
var _e0=null;
var _e1=new Object();
try{
var exp=null;
var _e2=null;
var _e3=null;
var _e4=null;
if(WidgetPlacementConfig.isProfilesEnv){
var _e5=(_dc&&typeof (_dc.profileType)=="string"&&dojo.trim(_dc.profileType).length>0?_dc.profileType:"default");
_e2="/tns:widgets/tns:layout[@resourceSubType='"+_e5+"']/tns:page[@pageId='"+_db+"']/tns:widgetInstance";
_e3="/tns:widgets/tns:layout[@resourceSubType='default']/tns:page[@pageId='"+_db+"']/tns:widgetInstance";
_e4=lconn.core.xpath.selectNodes(_e2,_dd);
if(_e4==null||!_e4.length){
_e4=lconn.core.xpath.selectNodes(_e3,_dd);
if(WidgetPlacementConfig.debug){
console.log("\nNo widget layout for profile type ["+_e5+"] defined.  Falling back to default layout.");
}
}
}else{
_e2="/tns:widgets/tns:layout/tns:page[@pageId='"+_db+"']/tns:widgetInstance";
_e4=lconn.core.xpath.selectNodes(_e2,_dd);
}
var _e6="";
if(typeof (_e4)!="undefined"&&typeof (_e4.length)!="undefined"){
for(var i=0;_e4.length!=null&&i<_e4.length;i++){
var _e7=_e4[i];
var _e8=_e7.getAttribute("defIdRef");
var _e9="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_e8+"']";
var _ea=lconn.core.xpath.selectSingleNode(_e9,_dd);
if(canAddWidget(_ea,WidgetPlacementConfig,_de,_e7)){
var _eb=_ea.getAttribute("skinType");
var _ec=_e7.getAttribute("uiLocation");
if(_e1[_ec]==null){
_e1[_ec]="";
}
var _ed=_e7.getAttribute("instanceId");
if(_ed!=null&&_e1[_ec+"dnd"]==null&&_de){
_e1[_ec]+="<div style=\"display: inline\" id=\""+_ec+"DropZone\" class=\"target\">";
_e1[_ec+"dnd"]=true;
}
if(_ed==null){
_ed=_e8;
}
if(lconn.core.WidgetPlacement.loadOrder==null){
lconn.core.WidgetPlacement.loadOrder=new Array();
}
lconn.core.WidgetPlacement.loadOrder[lconn.core.WidgetPlacement.loadOrder.length]={instanceId:_ed,uiLocation:_ec};
_e1[_ec]+=_89(_ea,_e7,_dc,_dd,_de,_eb,null,_df);
lconn.core.WidgetPlacement.uiLocations[_ec]=true;
}
}
}
for(_ec in _e1){
var _ee=dojo.byId("widget-container-"+_ec);
if(_ee!=null){
var _ef=(_e1[_ec+"dnd"]==true?"</div>":"");
_ee.innerHTML=_e1[_ec]+_ef;
}
}
if(typeof (_e4)!="undefined"&&typeof (_e4.length)!="undefined"){
for(var i=0;_e4.length!=null&&i<_e4.length;i++){
var _f0="widgetActionsMenu"+_e4[i].getAttribute("instanceId");
var _f1=dojo.byId(_f0);
if(_f1!=null){
var _f2=_e4[i].getAttribute("defIdRef")+"-isMinimized";
var _f3=dojo.cookie(_f2);
if(_f3=="true"){
dojo.attr(_f1,"aria-expanded","false");
}else{
dojo.attr(_f1,"aria-expanded","true");
}
}
}
}
}
catch(exception){
lconn.core.errorhandling.DefaultErrorHandler("lconn.core.WidgetPlacement.addAllWidgets",exception);
}
};
var _f4=function(_f5,_f6){
var _f7=_f5;
WidgetPlacementConfig.widgetConfigXMLDocument=_f7;
if(WidgetPlacementConfig.pageId=="fullPageWidgetView"){
try{
var _f8=_f6.args.displayedUserInfo;
var _f9=dojo.byId("widgetContainer");
if(_f9==null){
_f9=dojo.byId("widget-container-fullpage");
}
var _fa=common_getParam("widgetId");
var _fb=lconn.core.xpath.selectSingleNode("/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_fa+"']",_f7);
var url=_fb.getAttribute("url");
addToNavBar(_fb,null,_f8,null,null,true,null);
var _fc=[{entryName:"state",entryValue:"maximize"}];
_fc=_22(_fc,_fb,null,_f7);
_f9.innerHTML=_52(_fa,url,_f8,_fc,"fullpage");
if(lconn.core.WidgetPlacement.loadOrder==null){
lconn.core.WidgetPlacement.loadOrder=new Array();
}
lconn.core.WidgetPlacement.loadOrder[lconn.core.WidgetPlacement.loadOrder.length]={instanceId:_fa,uiLocation:"fullpage"};
}
catch(exception){
lconn.core.errorhandling.DefaultErrorHandler("WidgetMgmt.loadWidgets",exception,"widgetContainer");
}
}else{
var _f8=_f6.args.displayedUserInfo;
_da(WidgetPlacementConfig.pageId,_f8,_f7,_fd,_f6.args.addToNavBarBoolean);
}
};
var _fe=null;
var _fd=null;
if(WidgetPlacementConfig.pageId==null){
if(_d9!=false){
if(_fd==null){
_fd=getUserProfileOverrideProperty("canPersonalize")=="true";
}
if(_fe==null){
_fe=_20();
}
_b6(_d9,_fd,_fe);
}
return;
}
if(_fd==null){
_fd=getUserProfileOverrideProperty("canPersonalize")=="true";
}
if(_fe==null){
_fe=_20();
}
if(WidgetPlacementConfig.debug){
console.info("Using URL:"+WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod);
}
if(WidgetPlacementConfig.widgetConfigXMLDocument==null){
dojo.xhrGet({addToNavBarBoolean:_d9,displayedUserInfo:_fe,url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod,error:lconn.core.errorhandling.DefaultXHRErrorHandler,handleAs:"xml",sync:true,load:_f4});
}else{
_f4(WidgetPlacementConfig.widgetConfigXMLDocument,{args:{addToNavBarBoolean:_d9,displayedUserInfo:_fe}});
}
if(dojo.dnd!=null){
var _ff=dojo.dnd.manager();
_ff.makeAvatar=function(){
return new lconn.dboard.dnd.avatar(this);
};
dojo.subscribe("/dnd/drop",lconn.core.WidgetPlacement.onDropHandler);
dojo.subscribe("/dnd/start",function(_100,_101,_102){
for(var i=0;i<_101.length;i++){
lconn.core.utilities.hide(_101[i],false,true);
lconn.core.WidgetPlacement.currentNode=_101[i];
}
});
dojo.subscribe("/dnd/cancel",function(){
if(lconn.core.WidgetPlacement.currentNode!=null){
lconn.core.utilities.show(lconn.core.WidgetPlacement.currentNode,false,false,true);
lconn.core.WidgetPlacement.currentNode=null;
}
});
}
var _103=function(){
var _104=dojo.byId("lotusFrame");
if(_104==null){
var _105=dojo.query(".lotusFrame");
if(_105!=null&&_105.length>0){
_104=_105[0];
}else{
_104=document.body;
}
}
dojo.parser.parse(_104);
};
setTimeout(_103,2000);
if(dojo.dnd!=null){
var _106=function(){
for(uiLocation in lconn.core.WidgetPlacement.uiLocations){
var _107=uiLocation+"DropZone";
var _108=dojo.byId(_107);
if(_108!=null){
var _109=_49(uiLocation,_108);
lconn.core.WidgetPlacement.dropZoneObjects[_107]=_109;
}
}
};
setTimeout(_106,2000);
}
lconn.core.WidgetPlacement.initialLoad=false;
};
lconn.core.WidgetPlacement.onDropHandler=function(_10a,_10b,_10c){
var _10d=dojo.dnd.manager().target;
var _10e=null;
for(var i=0;i<_10b.length;i++){
_10e=_10b[i];
lconn.core.utilities.show(_10e,false,false,true);
break;
}
if(lconn.core.WidgetPlacement.currentNode!=null){
lconn.core.utilities.show(lconn.core.WidgetPlacement.currentNode,false,false,true);
lconn.core.WidgetPlacement.currentNode=null;
}
var _10f=function(){
var _110=_10d.getAllNodes();
for(var i=0;i<_110.length;i++){
var _111=_10e.getAttribute("widgetId");
if(_110[i].getAttribute("widgetId")==_111){
var _112=null;
if(i==0){
_112=null;
}else{
_112=_110[i-1].getAttribute("widgetId");
}
_113(_111,_10d.jsId,_112,_10d,_10a);
break;
}
}
};
setTimeout(_10f,300);
};
var _113=function(_114,_115,_116,_117,_118){
var _119=WidgetPlacementConfig.applicationContext+"/moveWidget.do?resourceId="+WidgetPlacementConfig.resourceId+"&widgetInstanceId="+_114+"&newUiLocation="+_115;
if(_116!=null){
_119+="&afterWidgetInstanceId="+_116;
}
dojo.xhrPost({url:_119,handleAs:"xml",load:function(resp,_11a){
var _11b=new Date().getTime();
WidgetPlacementConfig.lastMod=_11b;
if(_117!=null&&_118!=null&&_117!=_118){
lconn.core.WidgetPlacement.refresh(_114);
}
},error:lconn.core.errorhandling.DefaultXHRErrorHandler});
};
lconn.core.WidgetPlacement.renderWidgets=function(){
if(lconn.core.WidgetPlacement.loadOrder!=null){
for(var i=0;i<lconn.core.WidgetPlacement.loadOrder.length;i++){
var _11c=lconn.core.WidgetPlacement.loadOrder[i];
if(_11c!=null){
lconn.core.mumOverride.renderSingleWidget(_11c.instanceId);
if(_11c.uiLocation=="col3"&&dojo.byId("profilePaneRight")!=null&&dojo.hasClass("profilePaneRight","lotusHidden")){
dojo.removeClass("profilePaneRight","lotusHidden");
}else{
if(_11c.uiLocation=="col1"&&dojo.byId("profilePaneLeft")!=null&&dojo.hasClass("profilePaneLeft","lotusHidden")){
dojo.removeClass("profilePaneLeft","lotusHidden");
}
}
}
}
}
};
window.destroyWidgetContainer=function(_11d){
for(var i=0;lconn.core.WidgetPlacement.loadOrder!=null&&i<lconn.core.WidgetPlacement.loadOrder.length;i++){
var _11e=lconn.core.WidgetPlacement.loadOrder[i];
if(_11e!=null&&_11e.uiLocation==_11d){
destroyWidget(_11e.instanceId,_11e.uiLocation,false);
}
}
var _11f=dojo.byId("widget-container-"+_11d);
if(_11f&&_11f.innerHTML){
_11f.innerHTML="";
}
};
window.destroyWidget=function(_120,_121,_122,_123){
var _124=dijit.byId(_120+"moreActions");
if(_124!=null&&(_122==true)){
_124.destroy();
}
var _125=dijit.byId(_120+"_toggleAction");
if(_125!=null&&(_122==true)){
_125.destroy();
}
lconn.core.mumOverride.destroyWidget(_120);
var _126=null;
if(_123!=null||_123==true){
_126=document.getElementById(_120+"SubArea");
}
if(_126!=null){
_126.innerHTML="";
}
};
lconn.core.WidgetPlacement.loadWidgetFullPage=function(_127,_128){
lconn.core.WidgetPlacement.loadFullpageView(_127,_128,true,true);
};
lconn.core.WidgetPlacement.loadFullpageView=function(_129,_12a,_12b,_12c,_12d){
var exp4="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_129+"']";
var _12e=lconn.core.xpath.selectSingleNode(exp4,WidgetPlacementConfig.widgetConfigXMLDocument);
var _12f=null;
if(_12e!=null){
_12f=_12e.getAttribute("defIdRef");
}else{
_12f=_129;
}
var exp3="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_12f+"']";
var _130=lconn.core.xpath.selectSingleNode(exp3,WidgetPlacementConfig.widgetConfigXMLDocument);
if(_12a==null){
_12a=[{name:"resourceId",value:WidgetPlacementConfig.resourceId}];
}else{
_12a[_12a.length]={name:"resourceId",value:WidgetPlacementConfig.resourceId};
}
switchView(_130,_129,_12a,_12c,_12b);
};
lconn.core.WidgetPlacement.reloadOverviewPage=function(){
closeOtherViews();
if(WidgetPlacementConfig.debug){
console.log("lconn.core.WidgetPlacement.reloadOverviewPage called");
}
if(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId!=null){
destroyWidget(lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId,null,false,true);
lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId=null;
}
if(lconn.core.WidgetPlacement.onlyFullPageWidgetLoaded){
lconn.core.WidgetPlacement.placeWidgetMetadata(false);
lconn.core.WidgetPlacement.renderWidgets();
lconn.core.WidgetPlacement.onlyFullPageWidgetLoaded=false;
}
if(WidgetPlacementConfig.hideElements!=null){
for(var i=0;WidgetPlacementConfig.hideElements!=null&&i<WidgetPlacementConfig.hideElements.length;i++){
lconn.core.utilities.show(WidgetPlacementConfig.hideElements[i],false,false,true);
try{
dijit.byId(WidgetPlacementConfig.hideElements[i]).show();
}
catch(exception1){
}
}
}
destroyWidgetContainer("fullpage");
for(uiLocation in lconn.core.WidgetPlacement.uiLocations){
lconn.core.utilities.show("widget-container-"+uiLocation,false,false,true);
}
highlightOverviewLink();
for(var i=0;lconn.core.WidgetPlacement.loadOrder!=null&&i<lconn.core.WidgetPlacement.loadOrder.length;i++){
var _131=lconn.core.WidgetPlacement.loadOrder[i];
if(_131!=null){
lconn.core.WidgetPlacement.refresh(_131.instanceId);
}
}
return false;
};
window.highlightOverviewLink=function(){
var _132=_58();
if(_132!=null){
var _133=_132.getElementsByTagName("li");
for(var i=0;_133!=null&&i<_133.length;i++){
dojo.removeClass(_133[i],"lotusSelected");
}
}
if(WidgetPlacementConfig.navBarOverViewElementId!=null){
var _134=dojo.byId(WidgetPlacementConfig.navBarOverViewElementId);
if(_134!=null){
dojo.addClass(_134,"lotusSelected");
}
}
};
lconn.core.WidgetPlacement.refresh=function(_135,_136){
lconn.core.utilities.hide(_135+"moreActions",false,true);
destroyWidget(_135,null,false);
var _137=null;
if(_136==null){
_137=WidgetPlacementConfig.widgetConfigXMLDocument;
}else{
_137=_136;
}
var exp4="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_135+"']";
var _138=lconn.core.xpath.selectSingleNode(exp4,_137);
var _139=null;
if(_138!=null){
_139=_138.getAttribute("defIdRef");
}else{
_139=_135;
}
var exp3="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_139+"']";
var _13a=lconn.core.xpath.selectSingleNode(exp3,WidgetPlacementConfig.widgetConfigXMLDocument);
var _13b=_22(null,_13a,_138,_137);
var _13c=dojo.byId(_135+"SubArea");
if(_13c!=null){
_13c.innerHTML=_52(_135,_13a.getAttribute("url"),_20(),_13b,"view");
_13c.setAttribute("widgetloaded","true");
}
if(window.refreshInfoHolder==null){
window.refreshInfoHolder={};
}
window.refreshInfoHolder[_135]=true;
lconn.core.mumOverride.renderSingleWidget(_135);
setTimeout(function(){
window.refreshInfoHolder[_135]=null;
},2000);
window.setTimeout("lconn.core.WidgetPlacement.setFocus('"+_135+"', 'widgetActionsMenu"+_135+"');",1000);
};
lconn.core.WidgetPlacement.moveDown=function(_13d,_13e){
var _13f=dojo.byId(_13e+"DropZone");
var _140=_13f.childNodes;
for(var _141=0;_141<_140.length;_141++){
var _142=_140[_141].getAttribute("widgetid");
if(_142==_13d){
var _143=_141+1;
if(_143>_140.length){
_143=_140.length-1;
}
if(_143==_140.length){
break;
}
var _144=_140[_143].getAttribute("widgetid");
_113(_13d,_13e,_144);
try{
_13f.insertBefore(_140[_141],_140[_143+1]);
}
catch(exception){
_13f.appendChild(_140[_141]);
}
break;
}
}
lconn.core.utilities.hide(_13d+"moreActions",false,true);
var _145=dojo.byId("widgetActionsMenu"+_13d);
if(_145!=null){
_145.focus();
}
};
lconn.core.WidgetPlacement.moveUp=function(_146,_147){
var _148=dojo.byId(_147+"DropZone");
var _149=_148.childNodes;
for(var _14a=0;_14a<_149.length;_14a++){
var _14b=_149[_14a].getAttribute("widgetid");
if(_14b==_146){
if(_14a==0){
break;
}
var _14c=_14a-1;
var _14d=null;
if(_14c!=0&&_14c!=1){
_14d=_149[_14c-1].getAttribute("widgetid");
}
_113(_146,_147,_14d);
_148.insertBefore(_149[_14a],_149[_14c]);
break;
}
}
lconn.core.utilities.hide(_146+"moreActions",false,true);
var _14e=dojo.byId("widgetActionsMenu"+_146);
if(_14e!=null){
_14e.focus();
}
};
var _14f=function(){
if(window.dialog1==null){
var _150=document.getElementById("dialog1Container");
if(_150==null){
_150=document.createElement("div");
_150.id="dialog1Container";
dojo.byId("lotusContent").appendChild(_150);
}
window.dialog1=new dijit.Dialog({id:"dialog1",style:"width: 500px"},_150);
}
return window.dialog1;
};
lconn.core.WidgetPlacement.displayDialog=function(_151){
var _152=_14f();
_152.setContent(_151);
try{
_152.titleBar.style.display="none";
}
catch(error1){
console.log(error1);
}
_152.show();
var _153=dojo.byId("dialog1.button");
if(_153!=null){
_153.focus();
}
};
lconn.core.WidgetPlacement.removeWidget=function(_154,_155,_156){
if(WidgetPlacementConfig.debug){
console.log("lconn.core.WidgetPlacement.removeWidget: widgetInstanceId="+_154+", removeWidgetData="+_155+", prompt="+_156);
}
var exp1="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@instanceId = '"+_154+"']";
var _157=lconn.core.xpath.selectSingleNode(exp1,WidgetPlacementConfig.widgetConfigXMLDocument);
if(_157!=null){
if(_155==true){
var _158=_157.getAttribute("defIdRef");
if(_158=="Files"){
var exp2="/tns:widgets/tns:layout/tns:page/tns:widgetInstance[@defIdRef = 'MediaGallery']";
var _159=lconn.core.xpath.selectSingleNode(exp2,WidgetPlacementConfig.widgetConfigXMLDocument);
if(_159!=null){
console.log("lconn.core.WidgetPlacement.removeWidget: Skipping removal of Files widget since MediaGallery widget is present.");
return;
}
}
}
}else{
console.log("lconn.core.WidgetPlacement.removeWidget: Unable to find widget instance for instanceId = "+_154);
}
if(_156==null){
var _15a=null;
if(_155==true){
_15a="<div class=\"lotusDialogBorder\"><form class=\"lotusDialog lotusForm\" onSubmit=\"return false;\" role=\"dialog\" aria-labelledby=\"removeTitle\">"+"<div class=\"lotusDialogHeader\">"+"  <h1 id=\"removeTitle\" class=\"lotusHeading\">"+_1e["deleteWidget"]+"</h1>"+"  <a title=\""+_1e["cancel"]+"\" role=\"button\" class=\"lotusRight lotusDialogClose\" href=\"javascript:;\" onclick=\"dijit.byId('dialog1').hide();\">"+"    <img src=\""+dijit._Widget.prototype._blankGif+"\" role=\"presentation\" alt=\""+_1e["cancel"]+"\" />"+"    <span class=\"lotusAltText\">X</span>"+"  </a>"+"</div>"+"<div class=\"lotusDialogContent\">"+_1e["deleteWidgetMsg"]+"</div><!--end lotusDialogContent-->"+"<div class=\"lotusDialogFooter\">"+"  <input id=\"dialog1.button\" value=\""+_1e["link.remove"]+"\" class=\"lotusFormButton\" type=\"button\" onclick=\"dijit.byId('dialog1').hide();lconn.core.WidgetPlacement.removeWidget('"+_154+"', "+_155+", false)\" />"+"  <input value=\""+_1e["cancel"]+"\" class=\"lotusFormButton\" type=\"button\" onclick=\"dijit.byId('dialog1').hide();\" />"+"</div>"+"</form></div>";
}else{
_15a="<div class=\"lotusDialogBorder\"><form class=\"lotusDialog lotusForm\" onSubmit=\"return false;\" role=\"dialog\" aria-labelledby=\"hideTitle\">"+"<div class=\"lotusDialogHeader\">"+"  <h1 id=\"hideTitle\" class=\"lotusHeading\">"+_1e["hideWidget"]+"</h1>"+"  <a title=\""+_1e["cancel"]+"\" role=\"button\" class=\"lotusRight lotusDialogClose\" href=\"javascript:;\" onclick=\"dijit.byId('dialog1').hide();\">"+"    <img src=\""+dijit._Widget.prototype._blankGif+"\" role=\"presentation\" alt=\""+_1e["cancel"]+"\" />"+"    <span class=\"lotusAltText\">X</span>"+"  </a>"+"</div>"+"<div class=\"lotusDialogContent\">"+_1e["hideWidgetMsg"]+"</div><!--end lotusDialogContent-->"+"<div class=\"lotusDialogFooter\">"+"  <input id=\"dialog1.button\" value=\""+_1e["hide"]+"\" class=\"lotusFormButton\" type=\"button\" onclick=\"dijit.byId('dialog1').hide();lconn.core.WidgetPlacement.removeWidget('"+_154+"', "+_155+", false)\" />"+"  <input value=\""+_1e["cancel"]+"\" class=\"lotusFormButton\" type=\"button\" onclick=\"dijit.byId('dialog1').hide();\" />"+"</div>"+"</form></div>";
}
lconn.core.WidgetPlacement.displayDialog(_15a);
lconn.core.WidgetPlacement.removeWidgetInProgress=false;
}else{
if(lconn.core.WidgetPlacement.removeWidgetInProgress==false){
if(_155==true){
_15b();
}
lconn.core.WidgetPlacement.removeWidgetInProgress=true;
var _15c=WidgetPlacementConfig.applicationContext+"/removeWidget.do?resourceId="+WidgetPlacementConfig.resourceId+"&widgetInstanceId="+_154+"&removeWidgetData="+_155;
dojo.xhrPost({url:_15c,handleAs:"xml",load:function(resp,_15d){
lconn.core.WidgetPlacement.removeWidgetInProgress=false;
for(var i=0;lconn.core.WidgetPlacement.loadOrder!=null&&i<lconn.core.WidgetPlacement.loadOrder.length;i++){
var _15e=lconn.core.WidgetPlacement.loadOrder[i];
if(_15e!=null&&_15e.instanceId==_154){
delete lconn.core.WidgetPlacement.loadOrder[i];
}
}
var _15f=_154+"Section";
var _160=function(){
var _161=dojo.byId(_15f);
_161.parentNode.removeChild(_161);
var _162=new Date().getTime();
WidgetPlacementConfig.lastMod=_162;
var _163=function(resp,_164){
WidgetPlacementConfig.widgetConfigXMLDocument=resp;
if(lconn.core.applicationPalette.palette!=null){
lconn.core.applicationPalette.palette.setJsonData(lconn.core.applicationPalette.getjsonData());
lconn.core.applicationPalette.palette.populatePalette(false);
}
_165();
};
dojo.xhrGet({url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+_162,handleAs:"xml",error:lconn.core.errorhandling.DefaultXHRErrorHandler,load:_163});
};
var _166=dojo.fx.wipeOut({node:_15f,duration:300,onEnd:_160});
_166.play();
try{
eval("if(_"+_154+"_iContext.iScope().onRemoveWidgetUIContent != null) _"+_154+"_iContext.iScope().onRemoveWidgetUIContent();");
_167(_154);
destroyWidget(_154,null,true);
var _168=_157.getAttribute("defIdRef");
if(_168=="StatusUpdates"){
window.location.href=WidgetPlacementConfig.applicationContext+"/service/html/communityview?communityUuid="+WidgetPlacementConfig.resourceId;
}
}
catch(e){
console.log(e);
}
},error:lconn.core.WidgetPlacement.customAddWidgetErrorHandler});
}
}
};
var _167=function(_169){
var _16a=dojo.byId(_169+"_navItem");
if(_16a!=null){
_16a.parentNode.removeChild(_16a);
}
};
var _16b=function(){
var _16c="<div class=\"lotusDialogBorder\"><form class=\"lotusDialog lotusForm\">"+"<h1><img src=\""+WidgetPlacementConfig.applicationContext+"/nav/common/styles/images/loading.gif\" title=\""+_1e["widget_AddingWidget"]+"\"> "+_1e["widget_AddingWidget"]+"</h1>"+"</form></div>";
lconn.core.WidgetPlacement.displayDialog(_16c);
};
var _15b=function(){
var _16d="<div class=\"lotusDialogBorder\"><form class=\"lotusDialog lotusForm\">"+"<h1><img src=\""+WidgetPlacementConfig.applicationContext+"/nav/common/styles/images/loading.gif\"> "+_1e["widget_RemovingWidget"]+"</h1>"+"</form></div>";
lconn.core.WidgetPlacement.displayDialog(_16d);
};
var _165=function(){
var temp=dijit.byId("dialog1");
if(temp!=null){
temp.hide();
}
};
lconn.core.WidgetPlacement.addWidgetToServerAndRender=function(_16e,_16f,_170,_171){
if(_16e=="StatusUpdates"){
_16f="col2statusposts";
}
if(_170==false||_170=="false"){
_16b();
}
var _172=WidgetPlacementConfig.applicationContext+"/addWidget.do?resourceId="+WidgetPlacementConfig.resourceId+"&widgetDefId="+_16e+"&uiLocation="+_16f;
if(_170!=null){
_172+="&unhide="+_170;
if(_171){
_172+="&instanceId="+_171;
}
}
dojo.xhrPost({url:_172,handleAs:"xml",load:function(resp,_173){
lconn.core.WidgetPlacement.addWidgetInProgress=false;
var _174=resp.documentElement.getAttribute("widgetInstanceId");
lconn.core.WidgetPlacement.loadOrder[lconn.core.WidgetPlacement.loadOrder.length]={instanceId:_174,uiLocation:_16f};
dojo.global.staleXMLConfig=true;
lconn.core.WidgetPlacement.getWidgetDocAndRenderWidget(_16e,null,_174,_16f);
_165();
if(lconn.core.applicationPalette.palette!=null){
dojo.publish(lconn.core.paletteOneUI.Palette.prototype.RECHECK_CAN_ADD_WIDGET_HANDLER_EVENT);
lconn.core.applicationPalette.palette.incCounter();
}
dojo.byId("closePalette").focus();
},error:lconn.core.WidgetPlacement.customAddWidgetErrorHandler});
};
lconn.core.WidgetPlacement.customAddWidgetErrorHandler=function(_175){
_165();
lconn.core.WidgetPlacement.removeWidgetInProgress=false;
lconn.core.WidgetPlacement.addWidgetInProgress=false;
var _176="";
if(_175!=null&&_175.responseText!=null){
_176=_175.responseText;
}else{
_176=_175;
}
_176=dojox.html.entities.encode(_176);
var _177=new Date().getTime();
var _178="<div class=\"lotusFormError lotusMessage\" >"+"<img class=\"lotusIcon iconsMessages16 iconsMessages16-msgError16\" src=\""+dojo.config.blankGif+"\" alt=\""+_1e["error.title.generic"]+"\" title=\""+_1e["error.title.generic"]+"\"/>"+"<span>"+_1e["error.title.generic"]+"  <a id=\"error_"+_177+"\" href=\"javascript:void(0);\" onclick=\"lconn.core.utilities.show('errorTextContainer');lconn.core.utilities.hide('error_"+_177+"');\" title=\""+_1e["info.feed.general.moreinfo"]+"\">"+_1e["info.feed.general.moreinfo"]+"</a><div id=\"errorTextContainer\" style=\"display:none\">"+_176+"</div></span>"+"</div>";
var temp=dojo.byId("headline");
temp.innerHTML=_178+temp.innerHTML;
};
lconn.core.WidgetPlacement.minimizeWidget=function(_179,_17a,_17b){
lconn.core.utilities.hide(_17a+"moreActions",false,true);
var _17c=dojo.byId(_17a+"SubArea");
var _17d=dijit.byId(_17a+"_toggleAction");
if(dojo.style(_17c,"display")=="none"){
dojo.cookie(_17b+"-isMinimized","false");
var _17e=dojo.byId("widgetActionsMenu"+_17a);
dojo.attr(_17e,"aria-expanded","true");
var _17f=_17c.getAttribute("widgetloaded");
var _180=_17c.getAttribute("widgetneedrefresh");
if(_180==null){
_180="true";
}
if(_17f=="false"&&_180=="true"){
var temp=function(_181,_182){
var _183=_181;
lconn.core.WidgetPlacement.refresh(_17a,_183);
dojo.style(_17c,"display","");
_17d.setLabel(_1e["widgets_Min"]);
};
if(WidgetPlacementConfig.widgetConfigXMLDocument!=null){
temp(WidgetPlacementConfig.widgetConfigXMLDocument);
}else{
dojo.xhrGet({url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod,error:lconn.core.errorhandling.DefaultXHRErrorHandler,handleAs:"xml",sync:true,load:temp,error:lconn.core.errorhandling.DefaultXHRErrorHandler});
}
}else{
dojo.style(_17c,"display","");
_17d.setLabel(_1e["widgets_Min"]);
}
}else{
dojo.cookie(_17b+"-isMinimized","true");
var _17e=dojo.byId("widgetActionsMenu"+_17a);
dojo.attr(_17e,"aria-expanded","false");
dojo.style(_17c,"display","none");
_17d.setLabel(_1e["widgets_Max"]);
}
window.setTimeout("lconn.core.WidgetPlacement.setFocus('"+_17a+"', 'widgetActionsMenu"+_17a+"');",1000);
};
lconn.core.WidgetPlacement.addEditTabsWithOnclickCalls=function(_184,_185,_186,_187,_188){
return lconn.core.WidgetPlacement.addTabsWithOnclickCalls(_184,_185,_186,_187,_188,"edit");
};
lconn.core.WidgetPlacement.showFirstTab=function(_189,_18a,_18b){
if(WidgetPlacementConfig.TabContainerDomId!=null){
var _18c=document.getElementById(WidgetPlacementConfig.TabContainerDomId);
if(_18c!=null){
dojo.query("li[id$='_TabItem']",_18c).forEach(function(node){
dojo.removeClass(node,"lotusSelected");
dojo.attr(node,{"tabindex":"-1","aria-selected":"false","role":"tab"});
});
}
}
if(WidgetPlacementConfig.TempWidgetContainerDomId!=null){
destroyWidgetContainer(WidgetPlacementConfig.TempWidgetContainerDomId);
}
if(_189!=null){
lconn.core.utilities.show(_189);
}
if(_18a!=null){
dojo.query("#"+_18a).forEach(function(_18d){
dojo.attr(_18d,{"tabindex":"0","aria-selected":"true"});
dojo.addClass(_18d,"lotusSelected");
});
}
var hash=window.location.hash;
if(hash!=null){
var _18e=hash.indexOf("&tab=");
if(_18e>0){
changeHash(hash.substr(0,_18e));
}
}
if(_18b!=null){
_18b();
}
return false;
};
window.activateTabbedWidget=function(_18f,_190,_191,_192,_193,_194,_195){
var _196=_18f.getAttribute("defId");
var _197=_190.getAttribute("instanceId");
_197=(_197==null?_196:_197);
if(_194){
destroyWidgetContainer(WidgetPlacementConfig.TempWidgetContainerDomId,false);
}
destroyWidget(_197,null,false,true);
lconn.core.WidgetPlacement.getWidgetDocAndRenderWidget(_196,_18f,_197,WidgetPlacementConfig.TempWidgetContainerDomId,_191,"skinless",false,false,_195);
if(_192!=null){
lconn.core.utilities.hide(_192,false,true);
}
if(typeof _195=="undefined"||_195==null){
_195=[];
}
if(dojo.isObject(_195)&&!dojo.isArray(_195)){
_195=[_195];
}
var _198="tab";
dojo.forEach(_195,function(attr){
try{
if(attr&&attr["role"]){
_198=attr["role"];
}
}
catch(ee){
}
});
var _199=document.getElementById(_193).getElementsByTagName("li");
for(var i=0;_199!=null&&i<_199.length;i++){
if(_199[i].className!=""){
dojo.removeClass(_199[i],"lotusSelected");
}
dijit.setWaiState(_199[i],"selected","false");
dojo.removeClass(_199[i],"dijitTabContainerBottom-container");
dojo.attr(_199[i],{tabindex:"-1","role":_198});
var _19a=_199[i].id.substring(0,_199[i].id.indexOf("_TabItem"));
var _19b=dojo.byId(_19a+"_menuiconHolder");
var _19c=dojo.byId(_19a+"_selectedLinkHolder");
var _19d=dojo.byId(_19a+"_menuicon");
if(_19b!=null){
dojo.style(_19b,"width","7000px");
dojo.style(_19b,"display","block");
}
if(_19c!=null){
dojo.style(_19c,"width","1px");
dojo.style(_19c,"visibility","hidden");
dojo.style(_19c,"overflow","hidden");
}
if(_19d!=null){
dojo.attr(_19d,"tabIndex","-1");
}
dojo.query("a",_199[i]).forEach(function(node){
dojo.attr(node,"tabIndex","-1");
});
var _19e=dojo.byId(_19a+"_multiWidget");
var _19f=dojo.byId(_19a+"_linkHolder");
if(_19f!=null){
_19f.insertBefore(_19e,_19f.firstChild);
}
}
var _1a0=dojo.byId(_197+"_TabItem");
if(_1a0!=null){
dojo.addClass(_1a0,"lotusSelected");
dijit.setWaiState(_1a0,"selected","true");
dojo.attr(_1a0,{tabindex:"0"});
dojo.addClass(_1a0,"dijitTabContainerBottom-container");
}
var _19b=dojo.byId(_197+"_menuiconHolder");
var _19c=dojo.byId(_197+"_selectedLinkHolder");
var _19d=dojo.byId(_197+"_menuicon");
if(_19b!=null){
dojo.style(_19b,"width","");
dojo.style(_19b,"display","");
}
if(_19c!=null){
dojo.style(_19c,"width","");
dojo.style(_19c,"visibility","");
dojo.style(_19c,"overflow","");
}
if(_19d!=null){
dojo.removeAttr(_19d,"tabIndex");
}
var _19e=dojo.byId(_197+"_multiWidget");
var _19f=dojo.byId(_197+"_selectedLinkHolder");
if(_19f!=null){
_19f.insertBefore(_19e,_19f.firstChild);
}
};
lconn.core.WidgetPlacement.addTabsWithOnclickCalls=function(_1a1,_1a2,_1a3,_1a4,_1a5,_1a6,_1a7){
var _1a8=null;
dojo.forEach(lconn.core.WidgetPlacement.uiLocations,function(loc){
lconn.core.utilities.show("widget-container-"+loc,false,true);
});
dojo.forEach((WidgetPlacementConfig.hideElements||[]),function(elem){
lconn.core.utilities.hide(elem,false,true);
});
if(_1a4!=null){
WidgetPlacementConfig.cancelCallBack=_1a4;
}
var _1a9=null;
var _1aa=false;
if(_1a7&&_1a7.length>0){
var _1ab=_1a7[0].component;
if(_1ab&&_1ab=="communities:content"){
_1aa=true;
}
_1a9=_1a7[0].selectTab;
var key=_1a7[0].entryValue;
if(key){
if(_1a7[0].entryName=="searchKeywords"){
var hash="query="+dojox.html.entities.decode(key);
}else{
if(_1a7[0].entryName=="tagCloudItemValue"){
var hash="tag="+key;
}
}
if(hash){
if(_1a9){
hash+="&tab="+_1a9;
}
changeHash(hash);
}
}
}
var _1ac=_20();
var _1ad=(_1ac&&typeof (_1ac.profileType)=="string"&&dojo.trim(_1ac.profileType).length>0?_1ac.profileType:"default");
var exp1="/tns:widgets/tns:layout[@resourceSubType='"+_1ad+"']/tns:page[@pageId='"+WidgetPlacementConfig.defaultPageId+"']/tns:widgetInstance";
var exp2="/tns:widgets/tns:layout[@resourceSubType='default']/tns:page[@pageId='"+WidgetPlacementConfig.defaultPageId+"']/tns:widgetInstance";
var data=WidgetPlacementConfig.widgetConfigXMLDocument;
var _1ae=lconn.core.xpath.selectNodes(exp1,data);
if(_1ae==null||!_1ae.length){
_1ae=lconn.core.xpath.selectNodes(exp2,data);
}
var _1af=getUserProfileOverrideProperty("canPersonalize")=="true";
var _1b0=function(node,opts){
dojo.query("._iconHolder",node.parentNode).forEach(function(_1b1){
dojo.style(_1b1,"display","none");
});
dojo.query("._iconHolder",node).forEach(function(_1b2){
dojo.style(_1b2,"display","inline");
});
var _1b3=opts.defNode.getAttribute("defId");
var _1b4=opts.instNode.getAttribute("instanceId");
_1b4=(_1b4==null?_1b3:_1b4);
if(opts.destroyContainer){
destroyWidgetContainer(WidgetPlacementConfig.TempWidgetContainerDomId,false);
}
destroyWidget(_1b4,null,false,true);
lconn.core.WidgetPlacement.getWidgetDocAndRenderWidget(_1b3,opts.defNode,_1b4,WidgetPlacementConfig.TempWidgetContainerDomId,opts.widgetMode,"skinless",false,false,opts.attributesMap);
if(opts.initDispId!=null){
lconn.core.utilities.hide(opts.initDispId,false,true);
}
if(opts.attributesMap&&opts.attributesMap.length>0){
var key=opts.attributesMap[0].entryValue;
if(key){
if(_1a7[0].entryName=="searchKeywords"){
var hash="query=";
key=dojox.html.entities.decode(key);
}else{
if(_1a7[0].entryName=="tagCloudItemValue"){
var hash="tag=";
}
}
if(hash){
hash+=key;
if(_1b3){
hash+="&tab="+_1b3;
}
changeHash(hash);
}
}
}
};
var _1b5=function(opts){
var _1b6=opts.defNode.getAttribute("defId");
var _1b7=getResourcedStringForItem(opts.defNode,"defId");
var li=dojo.byId(opts.instId+"_TabItem");
if(li==null){
li=dojo.create("li",{id:opts.instId+"_TabItem",role:"tab"});
dojo.place(li,_1a1,"last");
}
dojo.attr(li,{itemidx:opts.itemIdx,innerHTML:"<a class=\"_linkHolder lotusLeft\">"+_1b7+"</a>"+"<a class=\"_iconHolder lotusIcon lotusLeft\" style=\"padding: 0; display: none;\"></a>"+"<div class=\"_menuHolder\" style=\"display: none;\"><div>"});
dojo.connect(li,"onclick",function(evt){
_1b0(li,opts);
dojo.stopEvent(evt);
return false;
});
if(!opts.showMenu){
dojo.query("._iconHolder",li).forEach(dojo.destroy);
dojo.query("div._menuHolder",li).forEach(dojo.destroy);
}else{
var _1b8=dojo.i18n.getLocalization("lconn.core","widgets");
var _1b9=dojo.query("div._menuHolder",li)[0];
dojo.attr(_1b9,{id:opts.instId+"moreActions",dojoType:"dijit.Menu"});
var _1ba=dojo.create("div",{dojoType:"dijit.MenuItem",label:_1b8["refresh"],"onclick":"lconn.core.WidgetPlacement.refresh('"+opts.instId+"');"});
dojo.place(_1ba,_1b9,"last");
var _1bb=opts.defNode.getAttribute("helpLink");
if(_1bb&&_1bb.length!=0){
_1bb=lconn.core.i18nOverrider.replaceParams(_1bb,WidgetPlacementConfig.params);
var _1bc=dojo.create("div",{dojoType:"dijit.MenuItem",label:_1b8["help"],title:_1b8["link.window.openNewWindow"],"onclick":"lconn.core.utilities.hide('"+_1b9.id+"', false, true);"+"lconn.core.WidgetPlacement.openHelpWindow('"+_1bb+"');"});
dojo.place(_1bc,_1b9,"last");
}
var _1bd=_1b8["actions_alt"]||"Actions for: ${0}";
_1bd=dojo.string.substitute(_1bd,[_1b7]);
var _1be=dojo.query("._iconHolder",li)[0];
dojo.attr(_1be,{id:opts.instId+"_MenuIcon",role:"button","aria-haspopup":"true",href:"javascript:void(0);",innerHTML:"<img class=\"lotusArrow\" alt=\""+_1bd+"\" title=\""+_1bd+"\" src=\""+dijit._Widget.prototype._blankGif+"\"/>"});
dojo.addClass(_1be,"lotusIcon");
dojo.connect(_1be,"onclick",function(evt){
lconn.core.WidgetPlacement.openMenu(evt,opts.instId);
dojo.stopEvent(evt);
});
}
dojo.place(li,_1a1);
dojo.parser.parse(li);
return (li);
};
_1ae=_1ae||[];
dojo.forEach(_1ae,dojo.hitch(this,function(_1bf,idx){
var _1c0=_1bf.getAttribute("defIdRef");
if(_1a9==null){
_1a9=_1c0;
}
var exp3="/tns:widgets/tns:definitions/tns:widgetDef[@defId = '"+_1c0+"']";
var _1c1=lconn.core.xpath.selectSingleNode(exp3,data);
if(_1c1==null){
return;
}
var _1c2=_1bf.getAttribute("uiLocation");
var _1c3=_1c1.getAttribute("modes");
var _1c4=_1bf.getAttribute("instanceId");
if(_1c4==null){
_1c4=_1c0;
}
if(_1c4==_1a2){
return;
}
if(!canAddWidget(_1c1,WidgetPlacementConfig,_1af,_1bf,_1aa)){
return;
}
var _1c5={containerId:_1a1,defNode:_1c1,instNode:_1bf,instId:_1c4,initDispId:_1a3,cancelCallBack:_1a4,widgetMode:_1a6,attributesMap:_1a7,itemIdx:idx,showMenu:false,destroyContainer:true};
var _1c6=null;
if(_1c3!=null&&_1c3.indexOf(_1a6)!=-1){
_1c6=_1b5(_1c5);
}else{
if(_1c2==_1a2){
_1c5.showMenu=true;
_1c6=_1b5(_1c5);
}
}
if(_1c0==_1a9){
_1a8=_1c6;
}
}));
WidgetPlacementConfig.isTabbedFullPageWidgetRendering=true;
WidgetPlacementConfig.TempWidgetContainerDomId=_1a2;
WidgetPlacementConfig.TabContainerDomId=_1a1;
if(lconn.core.WidgetPlacement.aria&&typeof (lconn.core.WidgetPlacement.aria.TabPanel)=="function"){
new lconn.core.WidgetPlacement.aria.TabPanel(_1a1);
if(_1a8!=null){
_1a8.click();
}
}
dojo.query("a._iconHolder",dojo.byId(_1a1)).forEach(function(_1c7){
var _1c8=dojo.query("img.lotusArrow",_1c7);
if(_1c8.length>0){
var _1c9=dojo.query("._linkHolder",_1c7.parentNode);
if(_1c9.length>0){
var h=dojo.coords(_1c9[0]).h-dojo.style(_1c9[0],"borderBottomWidth");
if(!dojo.isIE){
h-=dojo.style(_1c9[0],"borderTopWidth");
}
dojo.style(_1c8[0],"height",h+"px");
}
}
});
};
window.changeHash=function(_1ca){
window.location.hash=_1ca;
};
lconn.core.WidgetPlacement.URLChange=function(URL){
if(WidgetPlacementConfig.debug){
console.log("lconn.core.WidgetPlacement.URLChange: value: "+URL);
}
var _1cb=URL.indexOf("#");
if(_1cb==-1||URL.substring(_1cb).length==1){
lconn.core.WidgetPlacement.reloadOverviewPage();
return;
}
var _1cc=lconn.core.utilities.getURLParam("fullpageWidgetId",true);
if(_1cc&&_1cc!=lconn.core.WidgetPlacement.currentFullpageWidgetInstanceId){
lconn.core.WidgetPlacement.loadFullpageView(_1cc,null,false,true,true);
return;
}
};
lconn.core.WidgetPlacement.init=function(){
if(lconn.core.WidgetPlacement.URLChangeCallBack==null){
lconn.core.WidgetPlacement.URLChangeCallBack=[lconn.core.WidgetPlacement.URLChange];
registerBackButtonSupport();
}
var _1cd=lconn.core.utilities.getURLParam("fullpageWidgetId",true);
if(_1cd==null||_1cd==""){
lconn.core.WidgetPlacement.placeWidgetMetadata();
lconn.core.WidgetPlacement.renderWidgets();
if(WidgetPlacementConfig.hideElements!=null){
for(var i=0;WidgetPlacementConfig.hideElements!=null&&i<WidgetPlacementConfig.hideElements.length;i++){
lconn.core.utilities.show(WidgetPlacementConfig.hideElements[i],false,false,true);
}
}
}else{
lconn.core.WidgetPlacement.onlyFullPageWidgetLoaded=true;
var temp=function(_1ce,_1cf){
var _1d0=_1ce;
WidgetPlacementConfig.widgetConfigXMLDocument=_1d0;
_b6(true,(getUserProfileOverrideProperty("canPersonalize")=="true"),_20());
var _1d1=false;
var _1d2="initial";
lconn.core.WidgetPlacement.loadFullpageView(_1cd,null,_1d2,_1d1);
};
dojo.xhrGet({url:WidgetPlacementConfig.layoutInfoUrl+"&lastMod="+WidgetPlacementConfig.lastMod,error:lconn.core.errorhandling.DefaultXHRErrorHandler,handleAs:"xml",sync:true,load:temp});
}
};
lconn.core.WidgetPlacement.setFocus=function(_1d3,_1d4){
var _1d5=document.getElementById(_1d3+"Section");
if(_1d5){
var _1d6=dojo.query("#"+_1d4,_1d5);
if(_1d6&&_1d6.length>0){
try{
if(_1d6[0].focus){
_1d6[0].focus();
}
}
catch(e){
console.log(e.message);
}
}
}
};
})();
}


;if(!dojo._hasResource["lconn.communities.bizCard.bizCard"]){
dojo._hasResource["lconn.communities.bizCard.bizCard"]=true;
dojo.provide("lconn.communities.bizCard.bizCard");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.communities.bizCard.bizCardUI");
dojo.require("lconn.core.config.services");
dojo.require("com.ibm.oneui.util.Url");
dojo.require("lconn.core.config");
dojo.require("lconn.core.WidgetPlacement");
ic_comm_communityUuid="";
ic_comm_communityName="";
ic_comm_communityType="";
ic_comm_communitiesSvcRef="";
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 LCSemTagUtil.crossDomainRequest();
this.initited=true;
}
},updateGlobalVars:function(_1){
ic_comm_communityUuid=_1.uuid;
ic_comm_communityName=_1.name;
ic_comm_communityType=_1.communityType;
ic_comm_communitiesSvcRef=lconn.core.bizCard.bizCardUtils.getBaseURL("hgroup");
},getIdMethod:function(_2){
return _2.uuid?_2.uuid:null;
},convMethod:function(_3){
return _3;
},customTrim:function(_4){
return _4.replace(/^\s+/,"").replace(/\s+$/,"");
},processTag:function(_5){
try{
if(!this.initited){
lconn.core.bizCard.bizCardUtils.init();
LCSemTagMenu.init();
this.init();
}
this.processHcard(_5);
}
catch(e){
console.log(e);
}
},processHcard:function(_6){
var _7=this.getNameElement(_6);
if(!_7){
return;
}
if(this.isInline(_6)){
var _8={"target":_7};
this.getTagFromServer(_8);
}else{
lconn.core.bizCard.bizCardUtils.addHover(_7,lconn.communities.bizCard.bizCard.showHover,lconn.communities.bizCard.bizCard.showMenu);
}
},isInline:function(_9){
return this.getHcardAttributeValue("X-community-display-inline",_9);
},loadHcardCommunity:function(_a){
var _b=new Object();
var _c=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_a);
var _d=_c.getElementsByTagName("*");
for(i=0;i<_d.length;i++){
var _e=_d[i];
if(_e.className){
var _f=_e.className.split(" ");
for(j=0;j<_f.length;j++){
var c=_f[j];
var _10=this.getHcardAttributeValue(c,_c);
if(_10){
_b[c]=_10;
}
}
}
}
return _b;
},getHcardAttributeValue:function(_11,_12){
switch(_11){
case ("name"):
return this.getHcardTypedAttribute(_12,_11,"name");
case ("uuid"):
return this.getHcardTypedAttribute(_12,_11,"uuid");
case ("selectedWidgetId"):
return this.getHcardTypedAttribute(_12,_11,"selectedWidgetId");
}
var _13=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_12);
var _14=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_11,_13,1);
if(_14.length>0&&_14[0].tagName.match(/^abbr$/i)){
return _14[0].getAttribute("title");
}
switch(_11){
case ("uuid"):
var _15=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_14[0]);
if(_15){
return _15;
}else{
return this.getHcardAttributeValue("name",_12);
}
break;
case ("name"):
var _16=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_14[0]);
if(_16){
return _16;
}
break;
case ("selectedWidgetId"):
var _17=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_14[0]);
if(_17){
return _17;
}
break;
case ("X-community-display-inline"):
if(_14.length>0){
return true;
}else{
return false;
}
default:
return lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_14[0]);
break;
}
},getHcardTypedAttribute:function(_18,_19,_1a){
var _1b=new Object();
var _1c=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_18);
var _1d=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_19,_1c);
for(i=0;i<_1d.length;i++){
var _1e=_1d[i];
_1b=lconn.core.bizCard.bizCardUtils.getTypedValue(_1e,_1a);
}
return _1b;
},showHover:function(_1f){
try{
lconn.core.bizCard.bizCardUtils.showHover(_1f,lconn.communities.bizCard.bizCard.showMenu);
this.focus();
}
catch(e){
console.log("Error in lconn.communities.bizCard.bizCard.showHover");
console.log(e);
}
},showMenu:function(_20){
LCSemTagMenu.waitCursor();
lconn.communities.bizCard.bizCard.getTagFromServer(_20);
},getTagFromServer:function(_21){
var _22=null;
var _23=null;
if(_21!=null&&_21.target!=null&&_21.target.className=="name"){
_22=_21.target;
_23=_21;
LCSemTagMenu.currentElem=_22;
}else{
_22=LCSemTagMenu.currentElem;
_23={target:_22,original:_21};
if(_22==null&&_21!=null){
_23=_21;
_22=_21.target;
}
}
var _24=this.customTrim(this.getElementUuid(_22));
var _25={"UUID":_24};
var _26="lconn.communities.bizCard.bizCard.dispatch";
var _27=_24;
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.getTagFromServer sending request for: "+_24+")";
}
lconn.core.bizCard.bizCardUtils.getBizCardData(this.servletUrl+"&preventCache="+new Date().getTime(),_25,_26,this.requestor,this.requestReturn,_23,_27);
},requestReturn:function(_28,_29,_2a){
if(_28==false){
console.log("lconn.communities.bizCard.bizCard.requestReturn: Error occurring while rendering the community bizcard");
console.log("lconn.communities.bizCard.bizCard.requestReturn: Error Details: "+_29);
}else{
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.requestReturn: success="+_28;
}
var _2b=_28?lconn.communities.bizCard.bizCard.convMethod(_29):{};
var _2c=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_2a);
lconn.communities.bizCard.bizCard.fillCommunityJsonMoreFromDom(_2b,_2c);
lconn.communities.bizCard.bizCard.update(_2b,_2c,_2a);
}
},fillCommunityJsonMoreFromDom:function(_2d,_2e){
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.fillCommunityJsonMoreFromDom";
}
if(!_2d.name){
var _2f=lconn.core.bizCard.bizCardUtils.findNameElementInHcard(_2e);
if(_2f){
_2d.name=lconn.core.bizCard.bizCardUtils.getTextValue(_2f);
}
}
if(!_2d.uuid){
var _30=this.getElementUuid(_2e);
_2d.uuid=_30;
}
},update:function(_31,_32,_33){
if(lconn.core.bizCard.bizCardUtils.isDebug){
window.status="Community.update";
}
this.currentCommunity=_31;
var _34=null;
dojo.query(".vcomm").forEach(function(_35){
_34=_35;
});
if(_34&&this.isInline(_34)){
var out=new lconn.core.bizCard.bizCardUtils.out();
var _36=this.getHcardAttributeValue("selectedWidgetId",_34).selectedWidgetId;
lconn.communities.bizCard.bizCardUI.getInlineMarkup(_31,"ltr",out,_36);
var _37=lconn.core.bizCard.bizCardUtils.getElementsByClassName("personinlinemenu",_34,1);
if(_37.length>0){
_37[0].innerHTML=out.buffer;
}else{
var _38=document.createElement("span");
_38.className="personinlinemenu";
_38.innerHTML=out.buffer;
try{
_34.appendChild(_38);
}
catch(e){
console.log("Error: attempt place inline bizcard menu under vcomm classed element failed.  parentVcomm=["+_34+"]");
console.log(e);
}
}
new lconn.core.WidgetPlacement.aria.Toolbar("bizCardNav");
lconn.communities.bizCard.bizCardUI.addCommunityActionsMenu(_31);
}else{
var _39=new Array();
var _3a="personMenuActions";
var _3b=new lconn.core.bizCard.bizCardUtils.out();
var _3c=new lconn.core.bizCard.bizCardUtils.out();
lconn.communities.bizCard.bizCardUI.getMenuData(_31,"ltr",_39,_3a,_3b,_3c);
lconn.core.bizCard.bizCardUtils.setMenuData(_33,_39,_3a,lconn.core.bizCard.bizCardUtils.getMenuHeaderJson(_3b.buffer,-100));
}
this.updateGlobalVars(_31);
},dispatch:function(_3d){
var _3e=this.getIdMethod(_3d);
this.requestor.dispatch(_3e,_3d);
},getElementUuid:function(_3f){
var _40;
var _41=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_3f);
if(_41!=null){
_40=this.getHcardAttributeValue("uuid",_41);
_40=_40.uuid;
}
return _40;
},getNameElement:function(_42){
if(_42.className!="vcomm"){
_42=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcomm",_42);
}
var _43=lconn.core.bizCard.bizCardUtils.getElementsByClassName("name",_42,1)[0];
return _43;
}};
(function(){
var _44=lconn.core.config.services;
var _45=_44.communities;
if(!_45){
return;
}
var _46=com.ibm.oneui.util.Url.secure;
var _47=_46?_45.secureUrl:_45.url;
window.SemTagSvcConfig.baseUrl=_47;
window.livetextCfg.push({"id":"hgroup","match":".vcomm","tagHandler":lconn.communities.bizCard.bizCard,"loaded":true,"baseURL":_47});
})();
}

dojo.provide("lconn.profiles.bizCard.nls.ui")._built=true;
dojo.provide("lconn.profiles.bizCard.nls.ui.en");
lconn.profiles.bizCard.nls.ui.en={"friendsActionsFor":"Actions for Network","label.personcard.homepagelink.title":"Click here to see this person\'s home page","personCardCall":"Call","friendsInviteReceiveUpdates":"(receive updates)","friendsInvitedEmailMsg1":"has invited you to become a network contact with the following message included in the invitation:","friendsEmail":"E-mail:","friendsInvitedEmailMsg2":"Open your Network Invitation page","friendsPersonAlreadyInYourNetwork":"Invitation to your network is not possible because the {0} is already in your network.","friendsInvitedEmailMsg3":"I\'d like to add you to my network.","friendsInvitedEmailMsg4":"{0} has invited you to become a network contact:","label.bizcard.applinks.less":"Show less","friendsInvitedEmailMsg5":"{0} has invited you to become a network contact with the following message included in the invitation:","friendsRemoved":"Network contact(s) removed.","friendsNewInvs":"{0} new invitations","friendsInCommonMulti":"You have {0} network contacts in common","personCardFollow":"Follow","label.personcard.activitieslink":"Activities","friendsInitialMsgForInv":"I\'d like to add you to my developerWorks community network.","friendsNewInvitationsCount":"You have {0} new invitation(s)","friendsRecentlyAdded":"People you have recently added to your network.","friendsInvitations":"Invitations","friendsNewInv":"{0} new invitation","label.personcard.newslink.title":"Click here to see this person\'s news","label.personcard.noprofilemsg":"A profile does not exist for this person","friendsAltEmail":"Alternate E-mail:","friendsInviteMessage":"I\'d like to add you to my Connections network.","friendsViewAllFriends":"View All ({0})","label.personcard.wikislink":"Wikis","friendsInviteFollowHelp":"For more information, see {0}Following people{1}.","friendsNetworkFor":"Network for {0}","friendsSelectFriendForRemoval":"Select the contacts you want to remove first.","friendsRemoveSelected":"Remove Selected","friendsIncludeMsgForInv":"Include a message with your invitation:","friendsInvitedEmailSubject":"[Profiles] You are invited to join my network","label.personcard.quickrlink.title":"Click here to see this person\'s quickr shares","label.semtag.hover.altA11Y":"Click here or press control-enter to view the business card","friendsAddToMyNetwork":"I\'d like to add you to my Connections network.","label.personcard.newslink":"News","personCardAddAsMyColleagues":"Invite to My Network","friendsCollapseWidget":"Click to collapse the network section","noStatuAvailable":"No Sametime status available","friendsSendInvAction":"Send invitation","label.personcard.fileslink.title":"Click here to see this person\'s shared files","personCardProxyStatusAvailable":"I am available","friendsMenuTitleAllContacts":"All Network Contacts","personCardMoreActionsAltText":"Click for action menu","friendsSendFriendRequest":"Send request","label.personcard.homepagelink":"Home","friendsShowAllCommonFriends":"Show all...","label.personcard.communitieslink.title":"Click here to see this person\'s communities","friendsIsYourColleague":"{0} is your network contact","friendsMenuTitleMyContacts":"My Network Contacts","label.personcard.blogslink.title":"Click here to see this person\'s blog","friendsNetworkInCommon":"You have {0} network connections in common.","label.personcard.dogearlink.title":"Click here to see this person\'s bookmarks","friendsInviteUpdatesDescription":"Receive updates about people you are following on the Home page and in an email summary.","label.personcard.mobilelink.title":"Click here to see this person\'s mobile page","label.personcard.forumlink.title":"Click here to see this person\'s forum posts","label.personcard.blogslink":"Blogs","friendsNoFriends":"No network contacts are associated with this profile","label.personcard.activitieslink.title":"Click here to see shared activities","friendsColleaguesInvite":"Invite {0} to be your network contact","friendsSortByDisplayName":"Display Name","personCardSendMail":"Send E-mail","friendsSortByRecent":"Recent","label.personcard.cardreqexpired":"The request to get the business card expired","label.inactive.user.msg":"This person is no longer an active user","errorDefaultMsg2":"An error has occurred, contact your system administrator","friendsLoadingInv":"Loading Invitations...","label.personcard.forumlink":"Forums","personCardSendEMail":"Send E-mail","friendsYouExceedTextLimit":"Your invite message is too long. It can be a maximum of {1} characters. There are {0} characters in this field.","friendsAcceptAction":"Accept","friends":"Network","label.personcard.wikislink.title":"Click here to see this person\'s wikis","personCardMoreActions":"More Actions","friendsFullPageTitle":"Network","label.semtag.hover":"Click here to view business card","friendsCannotAddYourself":"You cannot add yourself as a network contact.","label.personcard.cardnomarkup":"The business card could not be retrieved","friendsInviteTagError":"An error occurred while attempting to tag {0}","friendsInviteAddTagsFor":"Add tags for {0}:","personCardUnfollow":"Stop Following","friendsExpandWidget":"Click to expand the network section","friendsMenuTitleInCommon":"People in Common","friendsIsInYourNetwork":"{0} is in your network.","label.personcard.profilelink.title":"Click here to see this person\'s profile","label.personcard.dogearlink":"Bookmarks","label.bizcard.applinks.more":"Show more","friendsRemovedSelected":"Remove from My Network","friendsRemoveSelectedTip":"Click to remove the selected people from your network.","label.message.information":"Information:","label.personcard.mobilelink":"Mobile","friendsInCommonSingle":"You have {0} network contact in common","friendsMyNetwork":"Network","label.personcard.quickrlink":"Quickr","friendsInvSent":"No invitation sent because an invitation is already pending.","label.personcard.profilelink":"Profile","friendsCancelInvAction":"Cancel","friendsNetwork":"Network","friendsInviteFailed":"Due to a server error, an e-mail notification was not sent to the invitee. However the invitee will still be able to accept your invitation through the Profiles web application.","friendsNoInv":"No invitations","friendsIgnoreAction":"Ignore","label.personcard.fileslink":"Files","label.semtag.hover.alt":"Click to view business card for {0}","friendsDate":"Date","friendsLoading":"Loading Network...","friendsPleaseLogIn":"Please log in to invite people to your network","friendsInviteLegalNote":"By sending this invitation, you agree to allow {0} to comment on your profile board.","loadingSTStatus":"Loading Sametime status...","friendsTelephone":"Telephone:","friendsColleaguesFor":"Network Contacts for {0}","personCardAddAsColleagues":"Invite to My Network","label.personcard.communitieslink":"Communities","friendsInvitePerson":"Invite {0} to your network","friendsInviteAlsoFollow":"Also Follow","personCardDownloadVCard":"Download vCard","friendsInviteFollowError":"An error occurred while attempting to follow {0}","personCardChat":"Chat","friendsInvite":"Invite to My Network"};
dojo.registerModulePath("lconn.profiles.invite", "../lconn.profiles.invite");

;dojo.cache("lconn.profiles.invite", "templates/Invite.html", "<div class=\"lotusDialogBorder\" style=\"width:450px;\"> <form id=\"${id}_networkInviteForm\" class=\"lotusDialog lotusForm\" dojoAttachEvent=\"onsubmit:formSubmitted\"> <div class=\"lotusDialogHeader\"> <h1 class=\"lotusHeading\">${friendsInviteTitle}</h1> <a title=\"${friendsCancelInvActionMessage}\" role=\"button\" class=\"lotusRight lotusDialogClose\" href=\"javascript:;\" dojoAttachEvent=\"onclick:friendsCancelInvAction\"> <img role=\"presentation\" src=\"${blankGif}\" alt=\"${friendsCancelInvActionMessage}\" /> <span class=\"lotusAltText\">X</span> </a> </div> <div class=\"lotusDialogContent\" style=\"max-height:400px;\"> <fieldset> <legend class=\"lotusHidden\">${friendsInviteTitle}</legend> <table class=\"lotusFormTable\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" role=\"presentation\"> <tbody> <tr class=\"lotusFormFieldRow\"> <td> <div class=\"profilePhoto\"> <img src=\"${profilePhotoSrc}\" alt=\"${displayName}\" height=\"96\" width=\"96\" style=\"top:5px; position: relative;\" />&nbsp; </div> </td> <td style=\"width:3px;\"> </td> <td> <div> <big dojoAttachPoint=\"friendsColleaguesInviteMessageControl\">${friendsColleaguesInviteMessage}</big> </div> <div style=\"margin-top:5px;\"> <label for=\"${id}_invitation_text\">${invitationMessageLabel}</label> <br /> <textarea id=\"${id}_invitation_text\" dojoAttachPoint=\"invitationMessageControl\" dojoAttachEvent=\"focus:_invitationMessageControlFocus, blur:_invitationMessageControlBlur\" style=\"width:275px;\" cols=\"40\" rows=\"4\" name=\"invitation_text\">${invitationMessage}</textarea> </div> <div style=\"margin-top:5px;\" dojoAttachPoint=\"invitationTagsControlDiv\"> <label for=\"${id}_invitation_tags\" dojoAttachPoint=\"invitationTagsLabelControl\">${invitationTagsLabel}</label> <br /> <input id=\"${id}_invitation_tags\" dojoType=\"lconn.core.CommonTags.CommonTagsTypeAhead\" dojoAttachPoint=\"invitationTagsControl\" multipleValues=\"true\" token=\" \" minChars=\"2\" style=\"width:275px;\" /> </div> <div dojoAttachPoint=\"invitationFollowControlDiv\"> <table class=\"lotusTable\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" role=\"presentation\" style=\"margin-top:15px;\"> <tr> <td> <input type=\"checkbox\" id=\"${id}_invitation_follow\" name=\"invitation_follow\" value=\"true\" checked=\"checked\" dojoAttachPoint=\"invitationFollowControl\"> </td> <td> <label for=\"${id}_invitation_follow\">${invitationFollowLabel}</label> <br /> <div style=\"margin-top:3px;\">${invitationFollowDescription}</div> <div style=\"margin-top:3px;\">${invitationFollowHelp}</div> </td> </tr> </table> </div> </td> </tr> </tbody> </table> </fieldset> </div> <div class=\"lotusDialogFooter\"> <div class=\"lotusBtnContainer\"> <input type=\"button\" role=\"button\" value=\"${friendsSendInvActionMessage}\" class=\"lotusBtn lotusBtnSpecial\" dojoAttachEvent=\"onclick:friendsSendInvAction\" /> <span style=\"padding-left: 5px;\"> <input type=\"button\" role=\"button\" value=\"${friendsCancelInvActionMessage}\" class=\"lotusBtn\" dojoAttachEvent=\"onclick:friendsCancelInvAction\" /> </span> </div> </div> </form></div>");

;if(!dojo._hasResource["lconn.profiles.invite.Invite"]){
dojo._hasResource["lconn.profiles.invite.Invite"]=true;
dojo.provide("lconn.profiles.invite.Invite");
dojo.require("dijit.dijit");
dojo.require("dijit.Dialog");
dojo.require("dijit.form.CheckBox");
dojo.require("dojo.parser");
dojo.require("lconn.core.xpath");
dojo.require("lconn.core.CommonTags.CommonTagsTypeAhead");
dojo.require("lconn.core.TypeAheadDataStore");
dojo.require("lconn.core.i18nOverrider");
dojo.require("lconn.core.url");
dojo.require("lconn.core.config.services");
dojo.requireLocalization("lconn.profiles.bizCard","ui");
lconn.profiles.invite.Invite={_isDebug:false,_status:{general:-1,invite:-1,follow:-1,tag:-1},messages:dojo.i18n.getLocalization("lconn.profiles.bizCard","ui"),LONG_PARAM_NAMES:{sourceKey:"sourceKey",targetKey:"targetKey",sourceUserid:"sourceUserid",targetUserid:"targetUserid"},SHORT_PARAM_NAMES:{sourceKey:"",targetKey:"key",sourceUserid:"",targetUserid:"userid"},_getUrlParamsProto:function(_1,_2){
var _3={};
if(_1.byKey){
_3.sourceParam=_2.sourceKey;
_3.sourceValue=_1.loggedInUserKey;
_3.targetParam=_2.targetKey;
_3.targetValue=_1.targetKey;
}else{
_3.sourceParam=_2.sourceUserid;
_3.sourceValue=_1.loggedInUserid;
_3.targetParam=_2.targetUserid;
_3.targetValue=_1.targetUserid;
}
return _3;
},_getHaveConnectionUrl:function(_4){
var _5="${applicationContext}/atom/connection.do?connectionType=colleague&${sourceParam}=${sourceValue}&${targetParam}=${targetValue}&returnNoContent=true";
return dojo.string.substitute(_5,dojo.mixin(this._getUrlParamsProto(_4,this.LONG_PARAM_NAMES),_4));
},_getAccessCheckUrl:function(_6){
var _7="${applicationContext}/ajax/invitationAccess.do?${targetParam}=${targetValue}";
return dojo.string.substitute(_7,dojo.mixin(this._getUrlParamsProto(_6,this.SHORT_PARAM_NAMES),_6));
},_getFriendRequestUrl:function(_8){
var _9="${applicationContext}/atom2/forms/friendrequest?${targetParam}=${targetValue}&lastMod=${lastMod}";
return dojo.string.substitute(_9,dojo.mixin(this._getUrlParamsProto(_8,this.LONG_PARAM_NAMES),_8));
},_getFollowRequestUrl:function(_a){
if(_a&&!_a.action){
_a.action="follow";
}
var _b="${applicationContext}/html/following.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&action=${action}&lastMod=${lastMod}";
return dojo.string.substitute(_b,dojo.mixin(this._getUrlParamsProto(_a,this.LONG_PARAM_NAMES),_a));
},_getProfileTagsGetterUrl:function(_c){
var _d="${applicationContext}/atom/forms/profileTags.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&format=full&lastMod=${lastMod}";
return dojo.string.substitute(_d,dojo.mixin(this._getUrlParamsProto(_c,this.LONG_PARAM_NAMES),_c));
},_getProfileTagsSetterUrl:function(_e){
var _f="${applicationContext}/atom/forms/profileTags.do?${targetParam}=${targetValue}&${sourceParam}=${sourceValue}&lastMod=${lastMod}";
return dojo.string.substitute(_f,dojo.mixin(this._getUrlParamsProto(_e,this.LONG_PARAM_NAMES),_e));
},_getPanelTypeaheadUrl:function(_10){
var url="${applicationContext}/html/tagTypeahead.do?useJson=true";
return dojo.string.substitute(url,dojo.mixin({},_10));
},_getPanelPhotoUrl:function(_11){
var url="${applicationContext}/photo.do?${targetParam}=${targetValue}";
return dojo.string.substitute(url,dojo.mixin(this._getUrlParamsProto(_11,this.SHORT_PARAM_NAMES),_11));
},inviteDialog:null,inviteDialogLinked:false,invitePanelIsReady:false,inviteDialogIsReady:false,_destroyOldPanel:function(){
if(this._isDebug){
console.debug("in Invite._destroyOldPanel");
}
if(this.inviteDialog&&this.inviteDialog.containerNode&&this.inviteDialog.containerNode.firstChild){
var _12=dijit.byNode(this.inviteDialog.containerNode.firstChild);
if(_12){
_12.destroyRecursive();
}
}
},_createPanel:function(_13){
if(this._isDebug){
console.debug("in Invite._createPanel");
}
if(this.inviteDialog&&!this.inviteDialogIsReady){
var _14=new lconn.profiles.invite.InvitePanel(this._prepareArgs(_13));
this.inviteDialog.titleNode.innerHTML=_14.friendsInviteTitle;
dojo.addClass(this.inviteDialog.titleNode,"lotusAltText");
if(!this.inviteDialogIsLinked){
dojo.body().appendChild(this.inviteDialog.domNode);
this.inviteDialogIsLinked=true;
}
if(this.inviteDialog.containerNode){
this.inviteDialog.containerNode.appendChild(_14.domNode);
}
this.inviteDialog.startup();
this.invitePanelIsReady=true;
this.inviteDialogIsReady=true;
}
},_getString:function(key){
var _15=null;
_15=this.messages[key];
return _15;
},_initializeData:function(_16){
if(this._isDebug){
console.debug("in Invite._initializeData");
}
this._status.general=this._status.invite=this._status.follow=this._status.tag=-1;
_16=_16||{};
_16.lastMod=_16.lastMod||((new Date().getTime())+"");
_16.xhrErrorHandlerCallback=_16.xhrErrorHandlerCallback||function(){
};
_16.errorHandlerCallback=_16.errorHandlerCallback||function(){
};
_16.xhrDoneCallback=_16.xhrDoneCallback||function(){
};
if(!_16.loggedInUserKey&&!_16.loggedInUserid){
alert(lconn.profiles.invite.Invite._getString("friendsPleaseLogIn"));
this._status.general=0;
}else{
if((_16.loggedInUserKey&&_16.loggedInUserKey==_16.targetKey)||(_16.loggedInUserUserid&&_16.loggedInUserUserid==_16.targetUserid)){
alert(lconn.profiles.invite.Invite._getString("friendsCannotAddYourself"));
this._status.invite=0;
}else{
this._sendCanFriendRequest(_16,dojo.hitch(this,function(){
if(_16.canTag===null||_16.canTag===undefined||_16.canFollow===null||_16.canFollow===undefined){
this._sendAccessCheckRequest(_16,dojo.hitch(this,function(_17){
_16.canTag=_17.canTag;
_16.canFollow=_17.canFollow;
_16.isFollowed=_17.isFollowed;
_16.canFriend=_17.canFriend;
this._createPanel(_16);
}));
}else{
this._createPanel(_16);
}
}));
}
}
},_initializePanel:function(_18){
if(this.inviteDialog&&this.inviteDialog.containerNode){
this._destroyOldPanel();
this._initializeData(_18);
}
},_initializeDialog:function(_19){
if(!this.inviteDialog){
this.inviteDialog=new dijit.Dialog({content:"",style:""});
this._initializePanel(_19);
}
},_prepareArgs:function(_1a){
_1a=_1a||{};
_1a.sendInviteCallback=_1a.sendInviteCallback||function(){
};
_1a._xhrDoneCallback=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite._xhrDoneCallback");
}
this.hide();
_1a.xhrDoneCallback();
});
var _1b={onClose:dojo.hitch(this,function(){
this.hide();
})};
_1b.cancelInviteCallback=_1a.cancelInviteCallback||function(){
};
_1b.displayName=_1a.displayName||"";
_1b.canFriend=_1a.canFriend;
_1b.canTag=_1a.canTag;
_1b.canFollow=_1a.canFollow;
_1b.isFollowed=_1a.isFollowed;
_1b.tagTypeaheadUrl=this._getPanelTypeaheadUrl(_1a);
_1b.profilePhotoSrc=this._getPanelPhotoUrl(_1a);
_1b.sendInviteCallback=dojo.hitch(this,function(msg,_1c,_1d){
if(this._isDebug){
console.debug("in Invite.sendInviteCallback");
}
this._status.general=this._status.invite=this._status.follow=this._status.tag=-1;
if((_1a.loggedInUserKey&&_1a.loggedInUserKey==_1a.targetKey)||(_1a.loggedInUserUserid&&_1a.loggedInUserUserid==_1a.targetUserid)){
alert(lconn.profiles.invite.Invite._getString("friendsCannotAddYourself"));
this._status.invite=0;
}else{
var _1e=dojo.hitch(this,function(_1f,_20,_21){
if(this._isDebug){
console.debug("in Invite.getTagsDoneCallback");
}
var _22=false;
dojo.forEach(_1d,function(tag){
if(dojo.indexOf(_21,tag)<0){
_22=true;
_21.push(tag);
}
});
if(_22){
this._sendTagsReplaceRequest(_21,_1a,_1a._xhrDoneCallback);
}else{
_1a._xhrDoneCallback();
}
});
var _23=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite.followDoneCallback");
}
if(_1d&&_1d.length>0){
this._sendGetTagsRequest(_1a,_1e);
}else{
_1a._xhrDoneCallback();
}
});
var _24=dojo.hitch(this,function(){
if(this._isDebug){
console.debug("in Invite.friendingDoneCallback");
}
if(_1c){
this._sendFollowRequest(_1a,_23);
}else{
_23();
}
});
this._sendFriendRequest(msg,_1a,_24);
}
_1a.sendInviteCallback();
});
return _1b;
},showDialog:function(_25,_26,_27,_28,_29,_2a,_2b,_2c,_2d,_2e,_2f,_30){
if(this._isDebug){
console.debug("in Invite.showDialog");
}
if(this.inviteDialogIsReady){
return;
}
var _31={byKey:_26,displayName:_27,canFriend:null,canTag:null,canFollow:_30,isFollowed:null,applicationContext:_25,errorNodeId:_2a,xhrErrorHandlerCallback:_2b,errorHandlerCallback:_2c,xhrDoneCallback:_2d,sendInviteCallback:_2e,cancelInviteCallback:_2f};
if(_26){
_31.targetKey=_28;
_31.loggedInUserKey=_29;
}else{
_31.targetUserid=_28;
_31.loggedInUserid=_29;
}
this.show(_31);
},_delayedDialog:function(){
if(this._isDebug){
console.debug("in Invite._delayedDialog");
}
if(this.inviteDialog){
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
if(this.invitePanelIsReady){
this.inviteDialog.show();
}else{
this._delayedDialogTimeout=setTimeout(dojo.hitch(this,this._delayedDialog),1000);
}
}
},show:function(_32){
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
if(!this.inviteDialog){
this._initializeDialog(_32);
}else{
if(_32!=null){
this._initializePanel(_32);
}
}
this._delayedDialog();
},hide:function(){
if(this._isDebug){
console.debug("in Invite.hide");
}
if(this._delayedDialogTimeout){
clearTimeout(this._delayedDialogTimeout);
this._delayedDialogTimeout=null;
}
this.invitePanelIsReady=false;
this.inviteDialogIsReady=false;
if(this.inviteDialog){
this.inviteDialog.hide();
}
},_sendAccessCheckRequest:function(_33,_34){
if(this._isDebug){
console.debug("in Invite.Invite._sendAccessCheckRequest");
}
_34=_34||function(_35){
};
var url=this._getAccessCheckUrl(_33);
this._sendRequestArgs("GET","json",url,_33,dojo.hitch(this,function(_36){
if(this._isDebug){
console.debug("in Invite.Invite._sendAccessCheckRequest's callback");
}
if(_36){
_34(_36);
}else{
alert(lconn.profiles.invite.Invite._getString("errorDefaultMsg2"));
this._status.invite=0;
_33.xhrErrorHandlerCallback(_36,ioArgs);
}
}));
},_sendCanFriendRequest:function(_37,_38){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest");
}
_38=_38||function(_39){
};
var url=this._getHaveConnectionUrl(_37);
this._sendRequestArgs("GET","xml",url,_37,dojo.hitch(this,function(_3a,_3b){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest's callback");
}
if(this._isDebug){
console.debug("_sendCanFriendRequest: xhr.status = "+_3b.xhr.status);
}
if(_3b&&_3b.xhr&&(_3b.xhr.status==204||(dojo.isIE&&_3b.xhr.status==1223))){
_38();
}else{
var str=lconn.profiles.invite.Invite._getString("friendsPersonAlreadyInYourNetwork");
if(_3b&&_3b.xhr&&_3b.xhr.getResponseHeader("X-Profiles-Connection-Status")!="accepted"){
str=lconn.profiles.invite.Invite._getString("friendsInvSent");
}
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_37.displayName]);
}
alert(str);
this._status.invite=0;
}
}),{error:dojo.hitch(this,function(_3c,_3d,ex){
if(this._isDebug){
console.debug("in Invite._sendCanFriendRequest's error handler");
}
if(_3c.status+""=="404"){
_38();
}else{
this._status.invite=0;
_37.xhrErrorHandlerCallback.apply(null,arguments);
}
})});
},_sendGetTagsRequest:function(_3e,_3f){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest");
}
var url=this._getProfileTagsGetterUrl(_3e);
this._sendRequestArgs("GET","xml",url,_3e,function(_40,_41){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest callback");
}
var _42=[];
dojo.forEach(lconn.core.xpath.selectNodes("//atom:category",_40),function(_43){
var tag=_43.getAttribute("term");
if(tag){
_42.push(tag);
}
});
_3f(_40,_41,_42);
},{error:dojo.hitch(this,function(_44,_45){
if(this._isDebug){
console.debug("in Invite._sendGetTagsRequest's error handler");
}
this._status.tag=0;
var str=lconn.profiles.invite.Invite._getString("friendsInviteTagError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_3e.displayName]);
}
alert(str);
this._status.tag=0;
_3e.xhrErrorHandlerCallback(_44,_45);
})});
},_sendTagsReplaceRequest:function(_46,_47,_48){
if(this._isDebug){
console.debug("in Invite._sendTagsReplaceRequest");
}
this._status.tag=1;
var _49="<app:categories xmlns:atom='http://www.w3.org/2005/Atom'";
_49+=" xmlns:app='http://www.w3.org/2007/app'";
_49+=" xmlns:snx='http://www.ibm.com/xmlns/prod/sn'>";
for(var i=0;i<_46.length;++i){
if(_46[i]!=null&&_46[i]!=""){
_49+="<atom:category term=\""+_46[i]+"\"/>";
}
}
_49+="</app:categories>";
var url=this._getProfileTagsSetterUrl(_47);
this._sendRequestArgs("PUT","text",url,_47,_48,{putData:_49,checkAuthHeader:true,error:dojo.hitch(this,function(_4a,_4b){
if(this._isDebug){
console.debug("in Invite._sendTagsReplaceRequest's error handler");
}
this._status.tag=0;
var str=lconn.profiles.invite.Invite._getString("friendsInviteTagError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_47.displayName]);
}
alert(str);
this._status.tag=0;
_47.xhrErrorHandlerCallback(_4a,_4b);
})});
},followUser:function(_4c,_4d,_4e,ele){
if(this._isDebug){
console.debug("in Invite.followUser");
}
var _4f=lconn.profiles.bizCard.bizCard.currentPerson;
_4d=_4d||_4f.key;
_4e=_4e||_4f.X_loggedInUserKey;
if(_4f.X_loggedInUserKey&&_4e==_4f.X_loggedInUserKey){
var _50={byKey:true,targetValue:_4d,sourceValue:_4e,applicationContext:_4c,lastMod:((new Date().getTime())+""),action:_4f.X_isFollowed!="false"?"unfollow":"follow"};
var _51=this.messages;
var _52=dojo.hitch(this,function(){
var nls=_51;
var _53=lconn.profiles.bizCard.bizCard.currentPerson;
_53.X_isFollowed=_53.X_isFollowed!="false"?"false":"true";
var _54=_53.X_isFollowed!="false"?nls.personCardUnfollow:nls.personCardFollow;
ele.innerHTML=_54;
});
this._sendFollowRequest(_50,_52);
}else{
}
},_sendFollowRequest:function(_55,_56){
if(this._isDebug){
console.debug("in Invite._sendFollowRequest");
}
this._status.follow=1;
var _57=this._getFollowRequestUrl(_55);
this._sendRequestArgs("POST","text",_57,_55,_56,{error:dojo.hitch(this,function(_58,_59){
if(this._isDebug){
console.debug("in Invite._sendFollowRequest's error handler");
}
var str=lconn.profiles.invite.Invite._getString("friendsInviteFollowError");
if(str){
str=lconn.core.i18nOverrider.replaceParams(str,[_55.displayName]);
}
alert(str);
this._status.follow=0;
_55.xhrErrorHandlerCallback(_58,_59);
})});
},_sendFriendRequest:function(msg,_5a,_5b){
if(this._isDebug){
console.debug("in Invite._sendFriendRequest");
}
this._status.invite=1;
var url=this._getFriendRequestUrl(_5a);
if(msg!=null&&msg!=""){
if(msg.length>500){
var _5c=lconn.profiles.invite.Invite._getString("friendsYouExceedTextLimit");
if(_5c){
_5c=_5c.replace(/\'\'/g,"'");
_5c=lconn.core.i18nOverrider.replaceParams(_5c,[msg.length,"500"]);
}
alert(_5c);
this._status.invite=0;
return false;
}
msg=msg.replace(new RegExp("\\n","g"),"<br/>");
}
this._sendRequestArgs("PUT","xml",url,_5a,dojo.hitch(this,function(_5d,_5e){
if(this._isDebug){
console.debug("in Invite._sendFriendRequest's callback");
}
if(_5d.documentElement.nodeName=="error"&&_5d.documentElement.getAttribute("code")=="connection-exist"){
this._status.invite=0;
alert(lconn.profiles.invite.Invite._getString("friendsInvSent"));
}else{
if(_5d.documentElement.nodeName=="error"&&_5d.documentElement.getAttribute("code")=="notification-error"){
this._status.invite=0;
alert(lconn.profiles.invite.Invite._getString("errorDefaultMsg2"));
}else{
if(_5d.documentElement.nodeName=="error"||_5d.documentElement.nodeName=="parsererror"){
this._status.invite=0;
_5a.xhrErrorHandlerCallback(_5d,_5e);
}else{
this._status.invite=1;
_5b(_5d,_5e);
}
}
}
}),{putData:msg});
},_sendRequestArgs:function(_5f,_60,url,_61,_62,_63){
this._sendRequest(_5f,_60,url,_61.errorNodeId,_62,_61.xhrErrorHandlerCallback,_61.errorHandlerCallback,_63);
},_sendRequest:function(_64,_65,url,_66,_67,_68,_69,_6a){
_6a=_6a||{};
if((url.indexOf("http:")==0||url.indexOf("https:")==0)&&window.SemTagSvcConfig!=null&&SemTagSvcConfig.proxyURL!=null){
var ph=new lconn.core.url.ProxyUrlHelper(SemTagSvcConfig.proxyURL);
url=ph.getProxifiedURL(url);
}
var _6b={url:url,handleAs:_65,htmlContainerElemId:_66,error:_68,load:dojo.hitch(this,function(_6c,_6d){
try{
_67(_6c,_6d);
}
catch(exception){
this._status.general=0;
console.warn("Invite->_sendRequest",exception);
_69("lconn.profiles.invite.Invite._sendRequest",exception,{htmlContainerElemId:_66});
}
})};
dojo.mixin(_6b,_6a);
var _6e=true;
if(_64=="GET"||_64=="DELETE"){
_6e=false;
}
dojo.xhr(_64,_6b,_6e);
},openHelpWindow:function(url,_6f,_70,_71,_72){
if(typeof (url)=="undefined"){
return;
}
svcHrefHelp=lconn.core.url.getServiceUrl(lconn.core.config.services.help).toString();
_6f=(_6f?_6f:Math.max(window.screen.width/2,950));
_70=(_70?_70:Math.max(window.screen.height/2,650));
var _73=(window.screen.width-_6f)/2;
var top=(window.screen.height-_70)/2;
var _74="height="+_70+",width="+_6f+",left="+_73+",top="+top+",status=yes,toolbar=yes,menubar=no,location=yes,scrollbars=yes,resizable=yes";
if(typeof (_71)!="undefined"&&_71!=true&&typeof (_75)!="undefined"){
_75.close();
}
var _75=window.open(svcHrefHelp+url,(typeof (_72)!="undefined")?_72:"help",_74);
if(_75&&window.focus){
_75.focus();
}
}};
dojo.declare("lconn.profiles.invite.InvitePanel",[dijit._Widget,dijit._Templated,dijit._Container],{widgetsInTemplate:true,templatePath:dojo.moduleUrl("lconn.profiles.invite","templates/Invite.html"),blankGif:djConfig.blankGif,defaultInvitationMessageColor:"#AAAAAA",appLang:null,profilePhotoSrc:"/PROFILE_PHOTO_URL",tagTypeaheadUrl:"/TAG_TYPEAHEAD_URL",displayName:null,canFollow:true,closeOnXhrDone:true,friendsInviteTitle:"friendsInvite",friendsColleaguesInviteMessage:"friendsColleaguesInvite",invitationMessageLabel:"friendsIncludeMsgForInv",invitationMessage:"friendsInitialMsgForInv",friendsSendInvActionMessage:"friendsSendInvAction",friendsCancelInvActionMessage:"friendsCancelInvAction",invitationTagsLabel:"invitationTagsLabel",invitationFollowLabel:"invitationFollowLabel",invitationFollowExtLabel:"invitationFollowExtLabel",invitationFollowDescription:"invitationFollowDescription",invitationFollowHelp:"invitationFollowHelp",_langPatch:function(_76){
var _77="&rlm;";
var _78="&lrm;";
var _79=_76&&_76.substr(0,2).toUpperCase();
var _7a=(_79&&(_79=="AR"||_79=="HE"||_79=="IW"));
var _7b=(_7a?_77:_78);
return _7b;
},postMixInProperties:function(){
this.appLang=this.appLang||dojo.getObject("appLang");
this.friendsInviteTitle=lconn.profiles.invite.Invite._getString("friendsInvite");
this.friendsColleaguesInviteMessage=lconn.profiles.invite.Invite._getString("friendsColleaguesInvite");
if(this.friendsColleaguesInviteMessage){
this.friendsColleaguesInviteMessage=lconn.core.i18nOverrider.replaceParams(this.friendsColleaguesInviteMessage,[this.displayName]);
}
this.invitationMessageLabel=lconn.profiles.invite.Invite._getString("friendsIncludeMsgForInv");
this.invitationMessage=lconn.profiles.invite.Invite._getString("friendsInitialMsgForInv");
this.friendsSendInvActionMessage=lconn.profiles.invite.Invite._getString("friendsSendInvAction");
this.friendsCancelInvActionMessage=lconn.profiles.invite.Invite._getString("friendsCancelInvAction");
this.invitationTagsLabel=lconn.profiles.invite.Invite._getString("friendsInviteAddTagsFor");
if(this.invitationTagsLabel){
this.invitationTagsLabel=lconn.core.i18nOverrider.replaceParams(this.invitationTagsLabel,[this.displayName]);
}
this.invitationFollowLabel=lconn.profiles.invite.Invite._getString("friendsInviteAlsoFollow");
var _7c=this._langPatch(this.appLang);
this.invitationFollowExtLabel=_7c+lconn.profiles.invite.Invite._getString("friendsInviteReceiveUpdates");
this.invitationFollowDescription=lconn.profiles.invite.Invite._getString("friendsInviteUpdatesDescription");
this.invitationFollowHelp=lconn.profiles.invite.Invite._getString("friendsInviteFollowHelp");
if(this.invitationFollowHelp){
this.invitationFollowHelp=lconn.core.i18nOverrider.replaceParams(this.invitationFollowHelp,["<a href=javascript:lconn.profiles.invite.Invite.openHelpWindow('/topic/com.ibm.lotus.connections.profiles.help/t_pers_follow.html');>","</a>"]);
}
},postCreate:function(){
if(this.displayName==null||this.displayName==""){
dojo.style(this.friendsColleaguesInviteMessageControl,"display","none");
dojo.style(this.invitationTagsLabelControl,"display","none");
}
if(this.invitationFollowControl){
this.invitationFollowControl.disabled=(!this.canFollow||this.isFollowed);
this.invitationFollowControl.checked=(this.isFollowed||this.canFollow);
}
this._invitationTagsDataStore=new lconn.core.TypeAheadDataStore({queryParam:"tag",url:this.tagTypeaheadUrl});
if(this.invitationTagsControl){
this.invitationTagsControl.store=this._invitationTagsDataStore;
if(!this.canTag&&this.invitationTagsControlDiv){
dojo.style(this.invitationTagsControlDiv,"display","none");
}
}
if(this.invitationMessageControl){
dojo.style(this.invitationMessageControl,"color",this.defaultInvitationMessageColor);
}
},_invitationMessageControlFocus:function(){
dojo.style(this.invitationMessageControl,"color","");
},_invitationMessageControlBlur:function(){
if(this.invitationMessageControl.value==this.invitationMessage||this.invitationMessageControl.value==""){
dojo.style(this.invitationMessageControl,"color",this.defaultInvitationMessageColor);
this.invitationMessageControl.value=this.invitationMessage;
}
},onClose:function(){
},sendInviteCallback:function(){
},cancelInviteCallback:function(){
},_getTagsArray:function(str){
var arr=[];
if(str){
arr=str.match(/[^\s,]+/g);
arr=arr||[];
}
for(var i=0;i<arr.length;++i){
var _7d=arr[i];
_7d=_7d.replace(/&/g,"&amp;");
_7d=_7d.replace(/"/g,"&quot;");
_7d=_7d.replace(/'/g,"&apos;");
_7d=_7d.replace(/</g,"&lt;");
_7d=_7d.replace(/>/g,"&gt;");
arr[i]=_7d;
}
return arr;
},_getTagsString:function(){
if(this.invitationTagsControl&&this.invitationTagsControl.focusNode&&this.invitationTagsControl.focusNode.hasInput){
return this.invitationTagsControl.getValue();
}
return "";
},friendsSendInvAction:function(){
var _7e=this._getTagsArray(this._getTagsString());
if(this.invitationMessageControl&&this.invitationFollowControl){
this.sendInviteCallback(this.invitationMessageControl.value,(this.invitationFollowControl.checked&&!this.invitationFollowControl.disabled),_7e);
}
if(!this.closeOnXhrDone){
this.onClose();
}
return false;
},friendsCancelInvAction:function(){
this.cancelInviteCallback();
this.onClose();
return false;
},formSubmitted:function(evt){
this.friendsSendInvAction();
dojo.stopEvent(evt);
return false;
}});
}

dojo.registerModulePath("lconn.profiles.bizCard", "../lconn.profiles.bizCard");

;if(!dojo._hasResource["lconn.profiles.bizCard.bizCardUI"]){
dojo._hasResource["lconn.profiles.bizCard.bizCardUI"]=true;
dojo._hasResource["lconn.profiles.bizCard.bizCardUI"]=true;
(function(){
dojo.provide("lconn.profiles.bizCard.bizCardUI");
dojo.require("lconn.core.i18nOverrider");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("dojo.cookie");
dojo.require("lconn.profiles.invite.Invite");
var _1=dojo;
lconn.profiles.bizCard.bizCardUI={messages:{},isDebug:false,isSlim:false,isExpandable:true,isEmailEnabled:true,wndh_vCard:null,initited:false,init:function(){
if(this.initited==false){
_1=lconn.core.bizCard.bizCardUtils.getDojoObject();
_1.requireLocalization("lconn.profiles.bizCard","ui");
this.messages=_1.i18n.getLocalization("lconn.profiles.bizCard","ui");
window.SemTagPerson=window.SemTagPerson||{};
SemTagPerson.services=SemTagPerson.services||[];
}
},followUser:function(_2,_3,_4){
lconn.profiles.invite.Invite.followUser(lconn.core.bizCard.bizCardUtils.getBaseURL("hcard"),_2,_3,dojo.byId("bizFollowBtn"));
},getMenuData:function(_5,_6,_7,_8,_9,_a,_b,_c){
try{
var _d=dojo.cookie("card.popup.slim");
if(typeof (_b)!="undefined"&&_b!=null){
this.isSlim=_b;
}else{
if(_d!=null){
this.isSlim=(_d==1);
}
}
if(typeof (_c)!="undefined"){
this.isExpandable=_c;
}
if(_5!=null){
this.isEmailEnabled=(_5.email!=null&&_5.email.internet!=null);
}else{
this.isEmailEnabled=false;
}
if(this.isDebug){
console.log("slim? "+this.isSlim);
console.log("expandable? "+this.isExpandable);
console.log("email? "+this.isEmailEnabled);
}
var _e=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
if(lconn.core.header==null){
if(dojo.isIE==6){
_9.write("<div id=\"bc_document_node\" role=\"document\" class=\"lotusui30 lotusui30_ie lotusui30_ie6\">");
}else{
if(dojo.isIE==7){
_9.write("<div id=\"bc_document_node\" role=\"document\" class=\"lotusui30 lotusui30_ie lotusui30_ie7\">");
}else{
if(dojo.isIE){
_9.write("<div id=\"bc_document_node\" role=\"document\" class=\"lotusui30 lotusui30_ie\">");
}else{
_9.write("<div id=\"bc_document_node\" role=\"document\" class=\"lotusui30\">");
}
}
}
}else{
_9.write("<div id=\"bc_document_node\" role=\"document\" class=\"lotusui30\">");
}
_9.write("<div id=\"cardDiv\" class=\"lotusVCard\" style=\"margin: 10px; position: static; opacity: 1;\">");
_9.write("<div id=\"A11Yblank\" style=\"line-height:0px; max-height: 0px; font-size:0px; outline:0;\" tabindex=\"0\" aria-label=\"Business card dialog. Press escape key to dismiss.\">&nbsp;</div>");
_9.write("<table id=\"cardTable\" class=\"lotusContainer\" cellspacing=\"0\">");
_9.write("<tbody>");
if(_5!=null&&_5.X_inDirectory!=null&&_5.X_inDirectory=="true"){
_9.write("<tr id=\"cardHeader\" "+((this.isSlim)?"style=\"display:none\"":"")+">"+"<td>"+"<table role=\"list\" aria-label=\"application links\" cellspacing=\"0\" width=\"100%\">");
this.writeHeaderUIContent(_9,_5,false);
_9.write("</table>"+"</td></tr>");
}
_9.write("<tr id=\"cardBody\"><td class=\"lotusDetails\" "+((_5!=null&&_5.X_inDirectory!=null&&_5.X_inDirectory=="true")?"":" style=\"padding-bottom: 0px;\"")+"colSpan=\"6\">");
this.writeBodyUIContent(_5,_6,_7,_8,_9,_a,_e);
_9.write("</td></tr>");
if(_5!=null&&_5.X_inDirectory!=null&&_5.X_inDirectory=="true"&&_5.X_isActiveUser&&_5.X_isActiveUser=="true"){
this.writeFooterUIContent(_5,_6,_7,_8,_9,_a,_e);
}
_9.write("</tbody></table>");
_9.write("<div id=\"A11YLast\" style=\"line-height:0px; max-height: 0px; font-size:0px; outline:0;\" tabindex=\"0\" aria-label=\"press escape key to dismiss this business card\">&nbsp;</div>");
_9.write("</div></div>");
this.isSlim=false;
}
catch(ex){
alert(ex.message);
}
},writeHeaderUIContent:function(_f,_10,_11){
this.writeLinks(_f,_10,_11);
},writeBodyUIContent:function(_12,_13,_14,_15,_16,_17,_18){
this.getSubUIContent(_12,_13,_14,_15,_16,_17,_18);
},writeFooterUIContent:function(_19,_1a,_1b,_1c,_1d,_1e,_1f){
var _20=this.messages;
_1d.write("<tr id=\"cardFooter\""+((this.isSlim)?"style=\"display:none\"":"")+">");
_1d.write("<td colSpan=\"6\">");
if(_19.X_inDirectory){
_1d.write("<div class=\"lotusPersonActions\">");
_1d.write("<ul class=\"lotusInlinelist\">");
var _21=(typeof (SemTagSvcConfig)!="undefined"&&SemTagSvcConfig.isBidiRTL);
if(_19.X_bizCardActions.length>0){
_1d.write("<li class=\"lotusFirst\">"+this.getActionLink(_19,0,true)+"</li>");
if(_21){
_1d.write("<li class=\"lotusFirst\"></li>");
}
}
var _22=(_19.X_bizCardSTInputType=="uid"?_19.uid:_19.email.internet);
var _23=(_19.X_loggedInUserKey!=null&&_19.X_loggedInUserKey!="");
if(_19.X_bizCardSTAwareness||_19.X_bizCardSecureSTAwareness||(window.sametimeAwarenessEnabled&&_23)){
if(_19.X_STChatAction){
_1d.write("<li id=\""+_22+"ChatAction\" "+(_21?"class=\"lotusFirst\"":"")+" style=\"display:none;\">"+"<a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('chat', '"+_22+"');return false;\">"+_20.personCardChat+"</a>"+"</li>");
}
if(typeof (SemTagSvcConfig)!="undefined"&&SemTagSvcConfig.isBidiRTL){
_1d.write("<li class=\"lotusFirst\"></li>");
}
}
if(_19.X_bizCardActions.length>1){
_1d.write("<li "+(_22==""||_21?"class=\"lotusFirst\"":"")+">"+"<a role=\"button\" href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCardUI.displayMore('"+_19.key+"MoreActionMenu',this.parentNode.parentNode);event.cancelBubble=true;return false;\">"+_20.personCardMoreActions+"<img class=\"otherFramework16 otherFramework16-TriangleMediumGrayDown12\" src=\""+dojo.config.blankGif+"\" title=\""+_20.personCardMoreActionsAltText+"\">"+"</a>"+"</li>");
}
_1d.write("</ul>"+"</div>");
if(_19.X_bizCardActions.length>1||(_22!=""&&(_19.X_bizCardSTAwareness||_19.X_bizCardSecureSTAwareness))){
this.writeMoreActionsMenu(_1d,_19,_1f,false);
}
}
_1d.write("</td></tr>");
},getActionLink:function(_24,_25,_26){
var _27=_24.X_bizCardActions[_25];
var _28="";
if(_26&&typeof (_27.icon)!="undefined"){
_28="<img src=\""+_27.icon.href+"\"/> ";
}
var id="";
if(_27.urlPattern.indexOf("followUser")!=-1){
_27.label=this.getFollowActionLabel(_24,_27);
id=" id=\"bizFollowBtn\"";
}
if(_27.label){
return "<a class=\"email\" "+id+" href=\""+_27.urlPattern+"\">"+_28+_27.label+"</a>";
}else{
return "";
}
},getFollowActionLabel:function(_29,_2a){
var _2b=window.X_loggedInUserKey;
if(_2b&&_2b!=_29.key&&_29.X_isFollowedEnabled){
var nls=this.messages;
return _29.X_isFollowed!="false"?nls.personCardUnfollow:nls.personCardFollow;
}
return null;
},getSubUIContent:function(_2c,_2d,_2e,_2f,_30,_31,_32){
var _33=this.messages;
if(_2c!=null&&_2c.X_lconn_userid){
if(_2c.X_isActiveUser!="false"){
if(this.isExpandable&&_2c.X_inDirectory=="true"){
this.writeExpandoUIContent(_30,_32);
}
if(_2c.X_bizCardShowPhoto){
if(_2c.X_inDirectory=="true"){
_30.write("<div class=\"lotusPhoto photo\"><img src=\""+_2c.photo+"\" title=\""+_2c.fn+"\" height=\"59\" width=\"59\"></div>");
}else{
_30.write("<div class=\"lotusPhoto photo\"><img class=\"otherPeople64 otherPeople64-NoPhotoPerson64\" src=\""+dojo.config.blankGif+"\" title=\""+_2c.fn+"\" height=\"59\" width=\"59\"></div>");
}
}
_30.write("<div class=\"lotusPersonInfo\">");
if(_2c.X_inDirectory!=null&&_2c.X_inDirectory=="true"){
_30.write(_2c.X_bizCardMainHtml);
}else{
if(_2c.X_bizCardMainHtml!=""){
_30.write(_2c.X_bizCardMainHtml);
}else{
_30.write("<h3 id='noProfileMsg'>"+_33["label.personcard.cardnomarkup"]+"</h3>");
}
}
_30.write("</div>");
var _34=(_2c.X_bizCardSTInputType=="uid"?_2c.uid:_2c.email.internet);
var out="<div id=\""+_34+"vcardCommentElem\" class=\"lotusComment\" style=\"display: none;\">"+"<div class=\"lotusCommentHeader\">&nbsp;</div>"+"<div class=\"lotusCommentBody\">"+(_34!=""&&_2c.X_bizCardSTStatusMsg?"<span id=\""+_34+"vcardStStatusElem\"></span>":"")+"</div>"+"</div>";
_30.write(out);
}else{
if(_2c.X_isActiveUser=="false"){
var _35=_33["label.inactive.user.msg"];
var _36=_33["label.message.information"];
if(_2c.X_inDirectory=="true"){
_30.write("<div class=\"lotusPhoto photo\"><img src=\""+_2c.photo+"\" title=\""+_2c.fn+"\" height=\"59\" width=\"59\" style=\"opacity: 0.5\"></div>");
}else{
_30.write("<div class=\"lotusPhoto photo\"><img \"otherPeople64 otherPeople64-NoPhotoPerson64\" src=\""+dojo.config.blankGif+"\" title=\""+_2c.fn+"\" height=\"59\" width=\"59\" style=\"opacity: 0.5></div>");
}
_30.write("<div class=\"lotusPersonInfo\">"+"<h2>"+"<span class=\"fn\">"+_2c.fn+"</span></h2>"+"<p class=\"title\">"+_2c.title+"</p>"+"<div class=\"lotusMessage lotusInfo\" role=\"status\"><img alt=\""+_36+"\" src=\""+dojo.config.blankGif+"\" class=\"lconnSprite lconnSprite-iconAttention16\">"+"<span class=\"lotusAltText\">"+_36+"</span>"+"<span>"+_35+"</span>"+"</div><!--end lotusMessage-->"+"</div><!--end lotusInfo-->");
}else{
_30.write("<h3 id='noProfileMsg'>"+_33["label.personcard.cardnomarkup"]+"</h3>");
}
}
}else{
var _37=_33["label.personcard.noprofilemsg"];
_30.write("<h3 id='noProfileMsg'>"+_37+"</h3>");
}
},writeExpandoUIContent:function(_38,_39){
var lbl=this.messages["label.bizcard.applinks."+((this.isSlim)?"more":"less")];
_38.write("<div id=\"slimTwistyDiv\" class=\"lotusRight\">");
_38.write("<a role=\"button\" onclick=\"lconn.profiles.bizCard.bizCardUI.toggleSlimCard(this,'"+_39+"');"+"event.cancelBubble=true;return false;\""+"href=\"javascript:void(0);\">");
if(this.isSlim){
_38.write(" <img id=\"slimTwisty\" class=\"otherFramework16 otherFramework16-ShowMore12\" src=\""+dojo.config.blankGif+"\" alt=\""+lbl+"\" title=\""+lbl+"\"/>");
}else{
_38.write(" <img id=\"slimTwisty\" class=\"otherFramework16 otherFramework16-HideMore12\" src=\""+dojo.config.blankGif+"\" alt=\""+lbl+"\" title=\""+lbl+"\"/>");
}
_38.write("<span class=\"lotusAltText\">"+lbl+"</span>");
_38.write("</a>");
_38.write("</div>");
},getInlineMarkup:function(_3a,_3b,_3c){
var _3d=this.messages;
var _3e=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
var _3f=_3c;
if(_3a!=null){
var _40=(_3a.X_bizCardSTInputType=="uid"?_3a.uid:_3a.email.internet);
_3f.write("<div class=\"lotusui lotusui30dojo lotusui30_body lotusui30_fonts lotusui30 lotusSpritesOn\">");
_3f.write("<div id=\""+_3a.key+"\" class=\"vcard lotusVCard lotusInlineVCard\" style=\"position:static;margin:10px\">");
_3f.write("  <div class=\"lotusContainer\">");
_3f.write("    <div id=\""+_3a.key+"_Pivot\" class=\"lotusPivotNav\">");
_3f.write("      <div class=\"lotusPivotNavToggle\">");
_3f.write("        <a role=\"button\" title=\"\" href=\"javascript:void lconn.core.bizCard.bizCardUtils.toggleInlineCard('"+_3a.key+"');\">"+"&nbsp;"+"</a>");
_3f.write("      </div>");
if(_3a.X_bizCardShowPhoto){
_3f.write("      <div class=\"lotusPhoto photo\">");
if(_3a.X_isActiveUser&&_3a.X_isActiveUser!="true"){
_3f.write("        <img id=\"photo\" class=\"otherPeople32 otherPeople32-NoPhotoPerson32\" src=\""+dojo.config.blankGif+"\" alt=\""+_3a.fn+"\" title=\""+_3a.fn+"\" height=\"35\" width=\"35\" />");
}else{
_3f.write("        <img id=\"photo\" src=\""+_3a.photo+"\" alt=\""+_3a.fn+"\" title=\""+_3a.fn+"\" height=\"35\" width=\"35\" />");
}
_3f.write("      </div>");
}
_3f.write("      <div class=\"lotusPersonInfo\">");
_3f.write("      <h2>");
var _41=(_3a.X_loggedInUserKey!=null&&_3a.X_loggedInUserKey!="");
if(window.sametimeAwarenessEnabled&&_41){
_3f.write("<span class=\"IMAwarenessDisplayedUser\">");
_3f.write("<span style=\"display: none;\" class=\"renderType\">Icon</span>");
_3f.write("<span style=\"display: none;\" class=\"dn\">"+_3a.dn+"</span>");
_3f.write("<span style=\"display: none;\" class=\"uid\">"+_3a.uid+"</span>");
_3f.write("<span id=\"IMcontent\" class=\"IMContent\"><img alt=\""+_3d["loadingSTStatus"]+"\" src=\""+_3e+"/nav/common/styles/images/loading.gif\">&nbsp;</span>");
_3f.write("</span>");
}
_3f.write("<span class=\"fn\" id=\""+_40+"vcardNameElem\" class=\"fn\"  userid=\""+_40+"\">"+_3a.fn+"</span>");
_3f.write("       </h2>");
if(_3a.X_isActiveUser&&_3a.X_isActiveUser!="true"){
var _42=_3d["label.inactive.user.msg"];
var _43=_3d["label.message.information"];
_3f.write("<div class=\"lotusMessage lotusInfo\" role=\"status\"><img alt=\""+_43+"\" src=\""+dojo.config.blankGif+"\" class=\"lconnSprite lconnSprite-iconAttention16\">");
_3f.write("<span class=\"lotusAltText\">"+_43+"</span>");
_3f.write("<span>"+_42+"</span>");
_3f.write("</div><!--end lotusMessage-->");
}
_3f.write("      </div>");
_3f.write("    </div>");
_3f.write("    <div id=\""+_3a.key+"_Details\" class=\"lotusInlineVCardDetails\">");
if(_3a.X_bizCardActions.length>0){
_3f.write("<div class=\"lotusEmail\">");
_3f.write(this.getActionLink(_3a,0,true));
_3f.write("</div>");
}
this.writeLinks(_3f,_3a,true);
if(_3a.X_bizCardActions.length>1){
_3f.write("<div class=\"lotusPersonActions\">");
_3f.write("  <ul class=\"lotusInlinelist\">");
_3f.write("    <li class=\"lotusFirst\">");
_3f.write("      <a role=\"button\" id=\""+_3a.key+"_MoreActions\"");
_3f.write("        href=\"javascript: void lconn.profiles.bizCard.bizCardUI.displayMore('"+_3a.key+"InlineMoreActionMenu',dojo.byId('"+_3a.key+"_MoreActions').parentNode.parentNode);\">");
_3f.write(_3d.personCardMoreActions);
_3f.write("        <img class=\"otherFramework16 otherFramework16-TriangleMediumGrayDown12\" src=\""+dojo.config.blankGif+"\" alt=\""+_3d.personCardMoreActionsAltText+"\"");
_3f.write("          title=\""+_3d.personCardMoreActionsAltText+"\" />");
_3f.write("      </a>");
_3f.write("    </li>");
_3f.write("  </ul>");
_3f.write("</div>");
this.writeMoreActionsMenu(_3f,_3a,_3e,true);
}
_3f.write("    </div>");
_3f.write("  </div>");
_3f.write("</div>");
_3f.write("</div>");
}else{
_3f.write("<div class=\"lotusui30\">");
_3f.write("<div class=\"vcard lotusVCard lotusInlineVCard\" style=\"position:static;margin:10px\">");
_3f.write("  <div class=\"lotusContainer\">");
_3f.write("    </div>");
_3f.write("    </div>");
_3f.write("    </div>");
}
},writeLinks:function(_44,_45,_46){
if(_45.X_loggedInUserKey!=null){
window.X_loggedInUserKey=_45.X_loggedInUserKey;
}
try{
var _47=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
if(!_45.X_bizCardServiceLinks){
_45.X_bizCardServiceLinks=[];
}
if(!_45.X_concatSemPersonSvc&&dojo.exists("SemTagPerson.services")&&SemTagPerson.services.length>0){
_45.X_bizCardServiceLinks=_45.X_bizCardServiceLinks.concat(SemTagPerson.services);
_45.X_concatSemPersonSvc=true;
}
if(_45.X_bizCardServiceLinks&&_45.X_bizCardServiceLinks.length>0){
var _48=4;
if(_46){
_44.write("<ul id=\"appLinks1\" class=\"lotusAppLinks\" role=\"list\" aria-label=\"application links\">");
}
var _49=new Array();
for(var i=0;i<_48;i++){
_49[i]=_45.X_bizCardServiceLinks[i];
}
var _4a=new Array();
for(var i=_48;i<_45.X_bizCardServiceLinks.length;i++){
var j=i-_48;
_4a[j]=_45.X_bizCardServiceLinks[i];
}
this.writeSubLinksMenu(_44,_49,_46,true,_48,_45);
this.writeSubLinksMenu(_44,_4a,_46,false,_48,_45);
if(_46){
_44.write("</ul>");
}
}
}
catch(exception2){
alert(exception2.message);
}
},writeSubLinksMenu:function(_4b,_4c,_4d,_4e,_4f,_50){
var _51=this.messages;
var _52=true;
var _53=0;
var _54=100/_4f-1;
for(var k=0;k<_4c.length;k++){
var _55=_4c[k];
if(_55==null||_55.name==null||_55.name==""){
continue;
}
var _56="";
var _57=false;
if(typeof (_55.href)!="undefined"&&_55.href!=null){
_56=_55.href;
}else{
if(typeof (_55.url_pattern)!="undefined"&&_55.url_pattern!=null&&_55.url_pattern!=""){
_56=_55.url_pattern;
if(_56.indexOf("{email}")!=-1&&(_50.email!=null&&_50.email.internet!=null)){
_56=_56.replace(/{email}/g,_50.email.internet);
}
if(_56.indexOf("{uid}")!=-1&&(_50.uid!=null)){
_56=_56.replace(/{uid}/g,_50.uid);
}
if(_56.indexOf("{key}")!=-1&&(_50.key!=null)){
_56=_56.replace(/{key}/g,_50.key);
}
if(_56.indexOf("{fn}")!=-1&&(_50.fn!=null)){
_56=_56.replace(/{fn}/g,_50.fn);
}
if(_56.indexOf("{displayName}")!=-1&&(_50.fn!=null)){
_56=_56.replace(/{displayName}/g,_50.fn);
}
if(_56.indexOf("{workPhoneNumber}")!=-1&&(_50.adr!=null&&_50.adr.work!=null)){
_56=_56.replace(/{workPhoneNumber}/g,_50.adr.work);
}
if(_56.indexOf("{userid}")!=-1&&(_50.X_lconn_userid!=null)){
_56=_56.replace(/{userid}/g,_50.X_lconn_userid);
}
if(typeof (_55.location)!="undefined"&&_55.location!=null){
_56=_55.location+_56;
}
}else{
continue;
}
}
if(!_4d&&_52==true){
_4b.write("<tr class=\"lotusAppLinks"+(!_4e?" appLinksNext":"")+"\">");
}
_4b.write((_4d)?"<li ":"<td ");
_4b.write(" role=\"listitem\" ");
_53++;
if(!_4d&&_52==true){
_4b.write("class=\"lotusFirst\"");
}
_52=false;
var _58="";
if(typeof (_55.js_eval)!="undefined"&&_55.js_eval!=null&&_55.js_eval.indexOf("generalrs.")==0){
var key=_55.js_eval.substr("generalrs.".length);
if(typeof (_51[key])=="undefined"){
key=key.replace(/\_/g,".");
}
_58=_51[key];
}else{
if(_55.js_eval){
try{
if(_50.X_allowEvalLabel){
_58=dojo.eval(_55.js_eval);
}else{
_58=new String(_55.js_eval);
}
}
catch(exception2){
_58="!error.eval!";
}
}else{
if(_55.label){
_58=new String(_55.label);
}else{
_58="???";
}
}
}
if(_55.name=="blogs"&&_50.X_blogUrl!=null&&_50.X_blogUrl!=""){
_4b.write("><a class=\"url\" href=\""+_50.X_blogUrl+"\"><nobr>"+_58+"</nobr></a>");
}else{
_4b.write("><a class=\"url\" href=\""+_56+"\"><nobr>"+_58+"</nobr></a>");
}
_4b.write((_4d)?"</li>":"</td>");
if(!_4d&&_4e&&(k==(_4c.length-1))){
var _59=" width='173' ";
if(dojo.locale=="zh"){
_59=" width='200' ";
}
if(dojo.locale=="ja"){
_59=" width='126' ";
}
if(dojo.locale=="ru"){
_59=" width='146' ";
}
_4b.write("<style>"+".lotusui30 .lotusVCard .lotusMore{background-position: 10px -2420px; width: 10px;}"+".lotusui30 .lotusVCard .lotusMoreExpanded{background-position: 10px -2471px;}"+"</style>"+"<td class=\"lotusFirst\" "+_59+">"+"<a role=\"button\" onclick=\"lconn.profiles.bizCard.bizCardUI.toggleMoreApps('appLinksNext',this); event.cancelBubble=true;return false;\""+" role=\"button\" aria-label=\""+_51["label.bizcard.applinks.less"]+"\" "+" href=\"javascript:void(0);\" "+" class=\"lotusMore lotusMoreExpanded\" title=\""+_51["label.bizcard.applinks.less"]+"\">&nbsp;"+" <span class=\"lotusAltText\">"+_51["label.bizcard.applinks.less"]+"</span>"+"</a>"+"</td>");
_4b.write("</tr>");
_52=true;
_53=0;
}else{
if(!_4d&&(((k+1)%_4f)==0)){
_4b.write("<td>&nbsp;</td></tr>");
_52=true;
_53=0;
}else{
if(!_4d&&((k+1)==_4c.length)){
_4b.write("<td colSpan=\""+(_4f-_53)+"\">&nbsp;</td>");
_4b.write("<td>&nbsp;</td></tr>");
_52=true;
_53=0;
}
}
}
}
},writeMoreActionsMenu:function(_5a,_5b,_5c,_5d){
var _5e=this.messages;
try{
_5a.write("<ul class=\"lotusActionMenu lotusPlain\" id=\""+_5b.key);
if(_5d){
_5a.write("Inline");
}
_5a.write("MoreActionMenu\">");
if(_5b.X_bizCardActions.length>0&&!_5d){
_5a.write("<li class=\""+_5b.X_bizCardActions[0].liClass+"\">"+this.getActionLink(_5b,0,false)+"</li>");
}
var _5f=(_5b.X_bizCardSTInputType=="uid"?_5b.uid:_5b.email.internet);
var _60=(_5b.X_loggedInUserKey!=null&&_5b.X_loggedInUserKey!="");
if(_5b.X_bizCardSTAwareness||_5b.X_bizCardSecureSTAwareness||(window.sametimeAwarenessEnabled&&_60)){
if(_5b.X_STChatAction){
_5a.write("<li id=\""+_5f+"ChatActionMore\" class=\"lotusMenuSeparator\" style=\"display:none;\">"+"<a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('chat', '"+_5f+"');return false;\"> "+_5e.personCardChat+" </a>"+"</li>");
}
if(_5b.X_STCallAction){
_5a.write("<li id=\""+_5f+"CallActionMore\" class=\"lotusMenuSeparator\" style=\"display:none;\">"+"<a href=\"javascript:void(0);\" onclick=\"lconn.profiles.bizCard.bizCard.sametimeStart('call', '"+_5f+"');return false;\"> "+_5e.personCardCall+" </a>"+"</li>");
}
}
if(_5b.X_bizCardActions.length>1){
for(var i=1;i<_5b.X_bizCardActions.length;i++){
_5a.write("<li class=\""+_5b.X_bizCardActions[i].liClass+"\">"+this.getActionLink(_5b,i,false)+"</li>");
}
}
_5a.write("</ul>");
}
catch(exception2){
alert(exception2.message);
}
},displayMore:function(_61,_62){
_62.style.display="none";
dojo.doc.getElementById(_61).style.display="block";
},convertQuickrEmail:function(_63){
_63=_63.replace(/@/g,"_at_");
_63=_63.replace(/\./g,"_");
return _63;
},toggleMoreApps:function(_64,_65){
var _66=this.messages;
var _67="lotusMoreExpanded";
var _68=dojo.hasClass(_65,_67);
var msg;
var _69;
if(_68){
dojo.removeClass(_65,_67);
msg=_66["label.bizcard.applinks.more"];
_69="none";
}else{
dojo.addClass(_65,_67);
msg=_66["label.bizcard.applinks.less"];
_69="";
}
dijit.setWaiState(_65,"label",msg);
_65.title=msg;
dojo.query("."+_64).forEach(function(_6a){
dojo.style(_6a,"display",_69);
});
try{
dojo.query(".lotusAltText",_65).forEach(function(_6b){
_6b.innerHTML=_65.title;
});
}
catch(AltSetExc){
}
},toggleSlimCard:function(_6c,_6d){
var _6e=document.getElementById("slimTwisty");
if(_6e.className.indexOf("HideMore")!=-1){
if(this.slimCard(_6d)){
dojo.cookie("card.popup.slim",1);
}
}else{
if(this.expandCard(_6d)){
dojo.cookie("card.popup.slim",0);
}
}
},slimCard:function(_6f){
var _70=dojo.byId("slimTwisty");
if(_70){
var lbl=this.messages["label.bizcard.applinks.more"];
_70.className="otherFramework16 otherFramework16-ShowMore12";
_70.src=dojo.config.blankGif;
_70.alt=_70.title=lbl;
try{
dojo.query(".lotusAltText",dojo.byId("slimTwistyDiv")).forEach(function(_71){
_71.innerHTML=lbl;
});
}
catch(AltSetExc){
}
var _72=dojo.byId("cardHeader");
if(_72){
_72.style.display="none";
}
var _73=dojo.byId("cardFooter");
if(_73){
_73.style.display="none";
}
return true;
}
return false;
},expandCard:function(_74){
var _75=dojo.byId("slimTwisty");
if(_75){
var lbl=this.messages["label.bizcard.applinks.less"];
_75.className="otherFramework16 otherFramework16-HideMore12";
_75.src=dojo.config.blankGif;
_75.alt=_75.title=lbl;
try{
dojo.query(".lotusAltText",dojo.byId("slimTwistyDiv")).forEach(function(_76){
_76.innerHTML=lbl;
});
}
catch(AltSetExc){
}
var _77=dojo.byId("cardHeader");
if(_77){
_77.style.display="";
}
var _78=dojo.byId("cardFooter");
if(_78){
_78.style.display="";
}
return true;
}
return false;
},resizeObj:function(obj,_79,_7a){
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=(_79)?obj.style.height=_7a+"%":obj.style.height;
obj.style.width=(_79)?obj.style.width=_7a+"%":obj.style.width;
},openVCardDialog:function(key,_7b){
this._createVCardDialog(key,_7b);
},_createVCardDialog:function(key,_7c){
this.wndh_vCard=window.open(this._getVCardDownloadUrl(key,_7c),"vcarddl","status=0,toolbar=0,scrollbars=0,resizable=0,height=350,width=550");
},_getVCardDownloadUrl:function(key,_7d){
var _7e=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
var _7f=lconn.core.bizCard.bizCardUtils.getLangParam();
return _7e+"/html/exportVCardDialog.do?key="+key+"&lastMod="+_7d+"&lang="+_7f;
},networkInviteDefaultErrorHandler:function(){
dojo["require"]("dijit.Dialog");
var msg=this.messages;
function _80(key){
return msg[key];
};
var i=lconn.profiles.invite.Invite;
var _81=i.inviteDialog;
if(_81){
_81.hide();
}
if(i.errorDialog){
i.errorDialog.hide();
}
i.errorDialog=new dijit.Dialog({content:"",style:""});
dojo.addClass(i.errorDialog.domNode,"lotusDialogBorder lotusDialog");
i.errorDialog.titleBar.innerHTML="<h1>{title}</h1>".replace("{title}",_80("friendsInvite"));
var _82=dijit._Widget.prototype._blankGif;
i.errorDialog.containerNode.innerHTML="<div class=\"lotusMessage lotusError\" role=\"alert\"><img title=\"\" alt=\"\" class=\"lconnSprite lconnSprite-iconError16\" src=\"{blankGif}\">{errorMsg}</div><div class=\"lotusDialogFooter\"><input type=\"submit\" onclick=\"lconn.profiles.invite.Invite.errorDialog.hide(); return true;\" class=\"lotusFormButton\" value=\"Close\"></div>".replace("{blankGif}",_82).replace("{errorMsg}",_80("errorDefaultMsg2"));
i.errorDialog.show();
},openNetworkInviteDialog:function(key,_83,_84){
var _85=errorHandler=lconn.profiles.bizCard.bizCardUI.networkInviteDefaultErrorHandler;
if(lconn.core.header==null){
var _86=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
var _87=lconn.core.bizCard.bizCardUtils.getLangParam();
var url=_86+"/html/profileView.do?key="+key+"&lang="+_87+"&invite=true";
window.open(url);
return;
}
var _88=null;
var _89=null;
if(lconn.profiles.bizCard.bizCard.currentPerson){
if(lconn.profiles.bizCard.bizCard.currentPerson.fn){
_88=lconn.profiles.bizCard.bizCard.currentPerson.fn;
}
if(lconn.profiles.bizCard.bizCard.currentPerson.X_isFollowed&&lconn.profiles.bizCard.bizCard.currentPerson.X_isFollowedEnabled){
_89=dojo.fromJson(lconn.profiles.bizCard.bizCard.currentPerson.X_isFollowedEnabled);
if(_89){
_89=!dojo.fromJson(lconn.profiles.bizCard.bizCard.currentPerson.X_isFollowed);
}
}
}
LCSemTagMenu.hide(LCSemTagMenu.id);
lconn.profiles.invite.Invite.showDialog(lconn.core.bizCard.bizCardUtils.getBaseURL("hcard"),true,_88,key,_83,_84,_85,errorHandler,null,null,null,_89);
}};
setTimeout(function(){
lconn.profiles.bizCard.bizCardUI.init();
},1);
})();
}

dojo.provide("lconn.profiles.sametime.nls.awareness")._built=true;
dojo.provide("lconn.profiles.sametime.nls.awareness.en");
lconn.profiles.sametime.nls.awareness.en={"stViewClient":"Show Sametime Client","stWebClient":"Lotus Sametime ","stStatusMeeting":"In a Meeting","stStatusAvailable":"I am Available","stViewBd":"Show Sametime Buddy List","stStatusAway":"I am Away","stLConnLogIn":"Sign in to developerWorks community to view Sametime status","stActionBar":"Sametime Action Bar","stStatusBusy":"I am Busy","stLogin":"Log in to Sametime","stUserOffline":"I am offline","stLogout":"Log out from Sametime","stDisconnect":"Disconnect from Sametime","stViewSTActions":"Click to view Sametime actions","stError":"An error has occurred. Sametime service is not available.","stUnableToConnect":"Connection to Sametime is not available. ","stConnect":"Connect to Sametime","stNoStatuAvailable":"No Sametime status available","stStatusdnt":"Do Not Disturb","stLoadingSTStatus":"Loading Sametime status..."};
dojo.registerModulePath("lconn.profiles.sametime", "../lconn.profiles.sametime");

;if(!dojo._hasResource["lconn.profiles.sametime.sametimeProxyAwareness"]){
dojo._hasResource["lconn.profiles.sametime.sametimeProxyAwareness"]=true;
dojo.provide("lconn.profiles.sametime.sametimeProxyAwareness");
dojo.require("lconn.core.utilities");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.core.config.services");
dojo.require("com.ibm.oneui.util.Url");
dojo.require("dijit._Widget");
dojo.require("com.ibm.lconn.gadget.container.iContainer2");
dojo.requireLocalization("lconn.profiles.sametime","awareness");
(function(){
var _1;
var _2=lconn.core.config.services.sametimeProxy;
var _3=lconn.core.config.services.webresources;
if(!_2){
return;
}
var _4=_2.isConnectClient;
if(dojo.config.isDebug){
console.debug("Initialize sametime proxy");
}
var _5="lconn.profiles.sametime.currentStatus";
var _6="lconn.profiles.sametime.userloggedOut";
var _7=dijit._Widget.prototype._blankGif;
var _8="";
var _9="2000";
var _a,_b,_c;
var _d=dojo.i18n.getLocalization("lconn.profiles.sametime","awareness");
var _e=(typeof window.stproxy==="object");
var _f,_10;
stproxyConfig=window.stproxyConfig||{};
stproxyConfig.tokenLogin=true;
stproxyConfig.isConnectClient=_4;
function _11(){
if(_e){
return;
}
_e=true;
var _12=lconn.core.auth.isAuthenticated();
if(_12){
lconn.core.auth.addLogoutHandler(lconn.profiles.sametime.onLogout);
var _13=window.location.hostname;
var _14=_13.indexOf(".");
stproxyConfig.domain=_14!=-1?(_13.substring(_14+1)):"";
_8=stproxyConfig.server=com.ibm.oneui.util.Url.secure?_2.secureUrl:_2.url;
var _15=stproxyConfig.tunnelURI=com.ibm.oneui.util.Url.secure?_3.secureUrl+"/web/lconn/core/sametime/tunnel.html":_3.url+"/web/lconn/core/sametime/tunnel.html";
if(_8){
_8=_16(_8);
}
if(dojo.config.isDebug){
console.debug("Connecting to Sametime proxy server: "+_8);
}
lconn.core.bizCard.bizCardUtils.loadCss(_8+"stwebclient/dojo.blue/sametime/themes/WebClientAll.css");
if(dojo.config.proxy){
com.ibm.lconn.gadget.container.iContainer2.getCommonContainer().then(function(_17){
_17.setupNonGadgetRpcEndpoint();
var _18=OpenAjax.hub.IframeContainer;
var _19={};
for(var _1a in OpenAjax.hub.IframeContainer){
if(OpenAjax.hub.IframeContainer.hasOwnProperty(_1a)){
_19[_1a]=OpenAjax.hub.IframeContainer[_1a];
}
}
OpenAjax.hub.IframeContainer=function(hub,_1b,_1c){
if(_1b=="stiframeproxy"){
_1c.nonGadget="true";
}
_18.apply(this,[hub,_1b,_1c]);
};
for(var _1a in _19){
if(_19.hasOwnProperty(_1a)){
OpenAjax.hub.IframeContainer[_1a]=_19[_1a];
}
}
if(dojo.config.isDebug){
console.log("Initialize ST proxy loading");
}
lconn.core.utilities.loadScript(_8+"stbaseapi/baseComps.js?noHub=true");
});
}else{
lconn.core.utilities.loadScript(_8+"stbaseapi/baseComps.js");
}
lconn.core.utilities.processUntilAvailable(_1d,"window.stproxy != null && stproxy.awareness != null",null,false);
}else{
lconn.core.auth.addLoginHandler(lconn.profiles.sametime.onLogin);
}
};
function _1d(){
if(_1){
return;
}
_1=true;
lconn.core.utilities.loadScript(_8+"stwebclient/livenameLight.js");
lconn.core.utilities.loadScript(_8+"stwebclient/apps/connections.js");
window.sametimeAwarenessEnabled=true;
if(dojo.config.isDebug){
console.debug("Sametime library available");
}
if(dojo.isIE){
stproxy.addUnloadHandler(function(){
});
dojo.addOnWindowUnload(stproxy.login.logout);
}
var _1e=stproxy.uiControl.iconPaths;
_c=_1e;
_a=stproxy.awareness;
_a.DISCONNECT="-1";
_b={};
_b[_a.AVAILABLE]=[_1e.iconAvailable,_d.stStatusAvailable];
_b[_a.AWAY]=[_1e.iconAway,_d.stStatusAway];
_b[_a.DND]=[_1e.iconDnd,_d.stStatusdnt];
_b[_a.IN_MEETING]=[_1e.iconInMeeting,_d.stStatusMeeting];
_b[_a.OFFLINE]=[_7,_d.stUserOffline];
_b[_a.DISCONNECT]=[_7,_d.stUserOffline];
var _1f=dojo.cookie(_5);
var _20=_21();
_22(_a.OFFLINE);
if(_20==_a.DISCONNECT){
if(dojo.config.isDebug){
console.log("lc.st.onScriptload Existing page refresh with disconnect");
}
return;
}else{
if(dojo.config.isDebug){
console.log("lc.st.onScriptload Full Login");
}
_23();
}
};
function _22(_24){
if(window.lconnAwaressHideActionBar){
return;
}
var _25=document.body;
var _26="";
var _27=document.createElement("span");
var _28=_b[_24][1];
var _29=_b[_24][0];
_26="<div id=\"lconnSTActionBarContainer\" class=\"lconnSTActionBarContainer\" style=\"z-index: 1\">"+"<div class=\"lconnSTActionBar\" role=\"region\" aria-label=\"Sametime Action Bar\">"+"<button id=\"stStatusArea\" class=\"lconnSTBtn\" onclick=\"lconn.profiles.sametime.sametimeProxyAwareness.openMenu(event);\" aria-label=\""+_28+"\" aria-describedby=\"STDescriptionID\">"+"<img alt=\"\" src=\""+_29+"\" class=\"lotusStatus\"/>&nbsp;"+_28+"&nbsp;<img alt=\"\" src=\""+_7+"\" class=\"lotusArrow lotusDropDownSprite\" />"+"<span class=\"lotusAltText\">&#9660;</span>"+"<span class=\"lotusAccess\" id=\"STDescriptionID\">"+_d.stViewSTActions+"</span>"+"</button>"+"<button class=\"lconnSTBtn\" onclick=\"lconn.profiles.sametime.sametimeProxyAwareness.viewbuddylist();\" aria-label=\""+_d.stViewClient+"\" aria-describedby=\"STchatDescriptionID\">"+"<img aria-label=\""+_d.stViewClient+"\" alt=\"\" src=\""+dojo.moduleUrl("com.ibm.lconn.core.styles","images/footerChat.gif")+"\" />"+"<span class=\"lotusAltText\">"+_d.stViewClient+"</span>"+"<span class=\"lotusAccess\" id=\"STchatDescriptionID\">Sametime Web client will be opened in a new window.</span>"+"</button>"+"</div>"+"</div>";
_27.innerHTML=_26;
_25.appendChild(_27.firstChild);
setTimeout(function(){
var _2a=dojo.byId("lotusFooter");
if(_2a!=null){
_2a.appendChild(document.createElement("br"));
_2a.appendChild(document.createElement("br"));
}
},dojo.byId("lotusFooter")?1000:1);
if(dojo.config.isDebug){
console.debug("lc.st.sametimeProxyInit logged in user menu link added");
}
};
function _2b(){
var _2c=dojo.cookie(_6)=="true";
if(dojo.config.isDebug){
console.log("lc.st.isLoggedOut set to "+_2c);
}
return _2c;
};
function _2d(){
dojo.cookie(_6,"true",{expires:2,domain:stproxyConfig.domain,path:"/"});
if(dojo.config.isDebug){
console.log("lc.st.saveLogoutCookie saved logout cookie");
}
};
function _2e(){
dojo.cookie(_6,null,{expires:-1,domain:stproxyConfig.domain,path:"/"});
if(dojo.config.isDebug){
console.log("lc.st.removeLogoutCookie removed user.logggedOut cookie");
}
};
function _2f(_30){
dojo.cookie(_5,_30,{expires:2,domain:stproxyConfig.domain,path:"/"});
if(dojo.config.isDebug){
console.log("lc.st.saveStatusCookie saved: "+_30+" in currentStatus cookie");
}
};
function _31(){
dojo.cookie(_5,null,{expires:-1,domain:stproxyConfig.domain,path:"/"});
if(dojo.config.isDebug){
console.log("lc.st.removeStatusCookie removed current status cookie");
}
};
function _21(){
var _32=parseInt(dojo.cookie(_5));
if(!(_32 in _b)){
_32=_a.AVAILABLE;
}
return _32;
};
function _23(){
if(dojo.config.isDebug){
console.log("lc.st.login called");
}
if(!stproxy.login){
console.error("login called before login method available");
setTimeout(_23,1000);
return;
}
_2e();
if(!stproxy.isLoggedIn){
var _33=_21();
if(dojo.config.isDebug){
console.log("lc.st.loginSametimeUser logging in lc user to st with st status: "+_33);
}
if(_33==_a.OFFLINE||_33==_a.DISCONNECT){
return;
}
stproxy.login.loginByToken(null,_33,_b[_33][1],_34,_35);
}
};
function _35(_36){
if(dojo.config.isDebug){
console.log("lc.st.loginUserError: An error has occured. Sametime error code: "+_36);
}
};
function _34(_37){
if(dojo.config.isDebug){
console.log("lc.st.loginUserSuccess lc user logged into st");
}
var _38=_37.id;
var _39=stproxy.getLiveNameModel(_38);
dojo.connect(_39,"onUpdate",_3a);
var _3b=dijit.byId("ST_LOGIN");
if(_3b==null){
_3b=dijit.byId("ST_LOGOUT");
}
if(_3b!=null){
dojo.attr(_3b,"label",_d.stDisconnect);
}
if(!_10){
lconn.profiles.sametime.sametimeProxyAwareness.scanPage();
}
};
function _3c(){
if(dojo.config.isDebug){
console.log("lc.st.buildActionsMenu called");
}
try{
var _3d=dijit.byId("STLoggedUserMenu");
if(_3d!=null){
_3d.destroyRecursive();
}
}
catch(exception1){
console.log(exception1);
}
var _3e=new dijit.Menu({id:"STLoggedUserMenu"});
if(stproxy.isLoggedIn){
_3e.addChild(_3f(_d.stDisconnect,"LOGOUT"));
}else{
_3e.addChild(_3f(_d.stConnect,"LOGIN"));
}
_3e.addChild(new dijit.MenuSeparator());
_3e.addChild(_3f(_d.stStatusAvailable,"stStatusAvailable","stproxy_statusIconAvailable"));
_3e.addChild(_3f(_d.stStatusAway,"stStatusAway","stproxy_statusIconAway"));
_3e.addChild(_3f(_d.stStatusMeeting,"stStatusMeeting","stproxy_statusIconMeeting"));
_3e.addChild(_3f(_d.stStatusdnt,"stStatusdnt","stproxy_statusIconDisturb"));
if(dojo.config.isDebug){
console.log("lc.st.buildActionsMenu menu options added");
}
var _40=function(_41){
if(_41!=null){
if(dojo.config.isDebug){
console.log("lc.st.buildActionsMenu menu action invoke: "+_41.action);
}
lconn.core.utilities.hide("STLoggedUserMenu",false,true);
if(_41.action=="LOGOUT"){
_2f(_a.DISCONNECT);
return _42();
}else{
if(_41.action=="LOGIN"){
_2f(_a.AVAILABLE);
return _23();
}else{
if(_41.action=="stStatusAvailable"){
_2f(_a.AVAILABLE);
if(stproxy.isLoggedIn){
stproxy.status.set(_a.AVAILABLE,_d.stStatusAvailable);
}else{
_23();
}
}else{
if(_41.action=="stStatusAway"){
_2f(_a.AWAY);
if(stproxy.isLoggedIn){
stproxy.status.set(_a.AWAY,_d.stStatusAway);
}else{
_23();
}
}else{
if(_41.action=="stStatusMeeting"){
_2f(_a.IN_MEETING);
if(stproxy.isLoggedIn){
stproxy.status.set(_a.IN_MEETING,_d.stStatusMeeting);
}else{
_23();
}
}else{
if(_41.action=="stStatusdnt"){
_2f(_a.DND);
if(stproxy.isLoggedIn){
stproxy.status.set(_a.DND,_d.stStatusdnt);
}else{
_23();
}
}
}
}
}
}
}
dojo.byId("stStatusArea").focus();
}
return;
};
dojo.connect(_3e,"onItemClick",_40);
dojo.attr(_3e,{href:"javascript:;"});
return _3e;
};
function _3f(_43,_44,_45){
var _46="ST_"+_44;
var _47={label:_43,id:_46};
if(_45!=null){
_47.iconClass=_45;
}
var _48=new dijit.MenuItem(_47);
_48.action=_44;
dojo.addClass(_48.domNode,"lconnStMenuItem");
return _48;
};
lconn.profiles.sametime.sametimeProxyAwareness.scanPage=function(){
if(window.stproxy==null){
console.error("lc.st.sametimeProxyAddLiveName called but st library not load. waiting 1 sec");
setTimeout(lconn.profiles.sametime.sametimeProxyAwareness.scanPage,1000);
return;
}
var _49=dojo.query(".IMAwarenessDisplayedUser");
for(var i=0;i<_49.length;i++){
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName looking for IMAwarenessDisplayedUser");
}
var _4a=_49[i];
if(!dojo.hasClass(_4a,"hasSTStatus")){
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName found an IMAwarenessDisplayedUser without st awareness set");
}
if(!stproxy.isLoggedIn){
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName lc/st user not logged in. removing any loading msg");
}
var _4b=dojo.query(".renderType",_4a)[0].innerHTML;
if(_4b=="Icon"){
var _4c=dojo.query(".IMContent",_4a)[0];
_4c.innerHTML="";
}
}else{
var _4d=dojo.query(".dn",_4a)[0].innerHTML;
var _4b=dojo.query(".renderType",_4a)[0].innerHTML;
var _4c=dojo.query(".IMContent",_4a)[0];
var _4e=null;
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName dn: "+_4d);
console.log("lc.st.sametimeProxyAddLiveName renderType: "+_4b);
}
if(_4b=="StatusMsg"){
_4e=new sametime.LiveName({"userId":_4d});
_4e.disableHoverBizCard=true;
}else{
if(_4b=="Icon"){
var _4f=dojo.query(".uid",_4a)[0].innerHTML;
_4e=new sametime.LiveName({"userId":_4d,"uid":_4f});
_4e.disableHoverBizCard=true;
}else{
if(_4b=="Name"){
var _50=dojo.query(".fn",_4a)[0].innerHTML;
var _4f=dojo.query(".uid",_4a)[0].innerHTML;
_4e=new sametime.LiveName({"userId":_4d,"displayName":_50,"uid":_4f});
_4e.disableClicks=true;
_4e.disableHoverBizCard=true;
}
}
}
dojo.connect(_4e.model,"onUpdate",_4e,function(){
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName st onUpdate called for: "+_4d);
}
if(_4b=="StatusMsg"){
_51(_4e,_4d,_4c);
}
if(_4b=="Icon"){
_52(_4e,_4d,_4c);
}else{
if(_4b=="Name"){
if(_4e.domNode||_4e.domNode!=""){
_4c.innerHTML="";
_4c.appendChild(_4e.domNode);
}
}
}
});
if(_4e.model!=null){
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName setting initial st awanareness for: "+_4d);
}
if(_4b=="StatusMsg"){
_51(_4e,_4d,_4c);
}else{
if(_4b=="Icon"){
_52(_4e,_4d,_4c);
}
}
_53(_4e,_4a,_4d);
}
dojo.addClass(_4a,"hasSTStatus");
_10=true;
}
}
}
if(dojo.config.isDebug){
console.log("lc.st.sametimeProxyAddLiveName ended");
}
};
function _53(_54,_55,_56){
if(dojo.config.isDebug){
console.log("lc.st.bizcardSpecial setting initial st awanareness for: "+_56);
}
var _57=dojo.query(".uid",_55)[0].innerHTML;
if(dojo.config.isDebug){
console.log("lc.st.bizcardSpecial uid: "+_57);
}
var _58=dojo.byId(_57+"vcardStStatusElem");
dojo.connect(_54.model,"onUpdate",_54,function(){
if(dojo.config.isDebug){
console.log("lc.st.bizcardSpecial st onUpdate called for: "+_59);
}
this.disableHoverBizCard=true;
this.disableClicks=true;
var _59=this.params.uid;
if(_58&&this.model.statusMessage!=null&&this.model.statusMessage!=""){
_58.innerHTML="&nbsp;"+this.model.statusMessage;
dojo.byId(_59+"vcardCommentElem").style.display="block";
}
if(_54.model.status!=0){
_5a(_54,_59,"ChatAction",_56);
_5a(_54,_59,"ChatActionMore",_56);
}
});
if(_58!=null&&_54.model!=null&&_54.model.statusMessage!=null&&_54.model.statusMessage!=""){
_58.innerHTML="&nbsp;"+_54.model.statusMessage;
dojo.byId(_57+"vcardCommentElem").style.display="block";
}
if(_54.model!=null&&_54.model.status!=0){
_5a(_54,_57,"ChatAction",_56);
_5a(_54,_57,"ChatActionMore",_56);
}
};
function _3a(_5b){
if(dojo.config.isDebug){
console.log("lc.st.updateLoggedUserArea called");
}
var _5c=lconn.core.auth.isAuthenticated();
if(_5c&&_5b!=null&&_5b.status!=null){
if(_5b.status!=_a.OFFLINE){
_2f(_5b.status);
}
if(dojo.config.isDebug){
console.log("lc.st.updateLoggedUserArea setting up the logged in user header");
}
try{
var _5d=dojo.byId("stStatusArea");
var _5e="";
var _5f="";
var _60=stproxyConfig.server;
var _61=_c.iconAvailable;
var _62=_5b.status;
if(dojo.config.isDebug){
console.log("lc.st.updateLoggedUserArea current status : "+_62);
}
if(_62==_a.AVAILABLE){
_5f=_d.stStatusAvailable;
}else{
if(_62==_a.AWAY){
_5f=_d.stStatusAway;
_61=_c.iconAway;
}else{
if(_62==_a.IN_MEETING){
_5f=_d.stStatusMeeting;
_61=_c.iconInMeeting;
}else{
if(_62==_a.DND){
_5f=_d.stStatusdnt;
_61=_c.iconDnd;
}else{
if(_62==_a.OFFLINE){
_61=_7;
_5f=_d.stUserOffline;
}
}
}
}
}
_5e="<img aria-label=\""+_5f+"\" alt=\"\" src=\""+_61+"\" "+(dojo.isChrome?"style=\"padding-bottom:3px\"":"")+"/> "+_5f+"<img aria-label=\""+_d.stViewSTActions+"\" alt=\"\" src=\""+_7+"\" class=\"lotusArrow lotusDropDownSprite\" /><span class=\"lotusAltText\">&#9660;</span>"+"<span class=\"lotusAccess\" id=\"STDescriptionID\">"+_d.stViewSTActions+"</span>";
_5d.innerHTML=_5e;
_5d.setAttribute("aria-label",_5f);
}
catch(exception1){
console.error("lc.st.updateLoggedUserArea error: "+exception1);
}
if(dojo.config.isDebug){
console.log("lc.st.updateLoggedUserArea setting up the logged in user header complete");
}
}
};
function _51(_63,_64,_65){
if(dojo.config.isDebug){
console.log("lc.st.createSTStatusMsgLinkAction called");
}
var _66=stproxy.uiControl.status[_63.model.status].iconClass;
if(_63.model.status==_a.OFFLINE){
if(dojo.config.isDebug){
console.log("lc.st.createSTStatusMsgLinkAction displayed user not logged in. removing the loading msg");
}
var _67=document.createElement("span");
_67.innerHTML="&nbsp;"+_d.stNoStatuAvailable;
dojo.addClass(_67,_66);
_65.innerHTML="";
_65.appendChild(_67);
}else{
if(dojo.config.isDebug){
console.log("lc.st.createSTStatusMsgLinkAction setting up the status link for"+_64);
}
var a=document.createElement("a");
dojo.attr(a,{href:"javascript:;",title:_63.model.statusMessage,"aria-label":_63.model.statusMessage,"aria-describedby":"STIConDescriptionID",innerHTML:_68(_63,true)});
var _69=function(evt){
if(dojo.config.isDebug){
console.log("lc.st.createSTStatusMsgLinkAction openChat called for"+_63.model.id);
}
stproxy.openChat(_63.model.id);
dojo.stopEvent(evt);
return false;
};
dojo.connect(a,"onclick",_69);
_65.innerHTML="";
_65.appendChild(a);
}
};
function _52(_6a,_6b,_6c){
if(_6a.model.status==_a.OFFLINE){
if(dojo.config.isDebug){
console.log("lc.st.createSTIconLinkAction displayed user not logged in. removing the loading msg");
}
_6c.innerHTML="";
}else{
if(dojo.config.isDebug){
console.log("lc.st.createSTIconLinkAction setting up the status link for"+_6b);
}
var a=document.createElement("a");
dojo.attr(a,{href:"javascript:;",title:_6a.model.statusMessage,"aria-label":_6a.model.statusMessage,style:"text-decoration: none !important; float: left","aria-describedby":"STIConDescriptionID",innerHTML:_68(_6a,false)});
var _6d=function(evt){
if(dojo.config.isDebug){
console.log("lc.st.createSTIconLinkAction openChat called for"+_6b);
}
stproxy.openChat(_6b);
dojo.stopEvent(evt);
return false;
};
dojo.connect(a,"onclick",_6d);
_6c.innerHTML="";
_6c.appendChild(a);
}
};
function _68(_6e,_6f){
var _70=_6e.model.status;
var _71="";
if(_70==_a.AVAILABLE){
_71=_c.iconAvailable;
}else{
if(_70==_a.AWAY||_70==_a.NOT_USING){
_71=_c.iconAway;
}else{
if(_70==_a.IN_MEETING){
_71=_c.iconInMeeting;
}else{
if(_70==_a.DND){
_71=_c.iconDnd;
}else{
if(_70==_a.AVAILABLE_MOBILE){
_71=_c.iconAvailableMobile;
}else{
if(_70==_a.AWAY_MOBILE){
_71=_c.iconAwayMobile;
}else{
if(_70==_a.IN_MEETING_MOBILE){
_71=_c.iconInMeetingMobile;
}
}
}
}
}
}
}
var _72="";
if(_71!=""){
_72="<img src=\""+_71+"\" alt=\"\"  aria-label=\""+_6e.model.statusMessage+"\">"+"<span class=\"lotusAltText\">"+_6e.model.statusMessage+"</span>"+"<span class=\"lotusAccess\" id=\"STIConDescriptionID\">Click here to start a chat</span>";
}
if(_6f){
if(!dojo.isIE){
_72="&nbsp;"+_72;
}
_72+="&nbsp;"+_6e.model.statusMessage;
}else{
_72+="&nbsp;";
}
return _72;
};
function _5a(_73,_74,_75,_76){
var _77=dojo.byId(_74+_75);
if(_77){
var _78=_77.childNodes[0];
_78.onclick=function(){
stproxy.openChat(_73.model.id);
};
_77.style.display="";
}
};
function _42(){
if(dojo.config.isDebug){
console.log("lc.st.disconnect called");
}
stproxy.login.logout(true,_79,_7a);
};
function _7a(){
console.log("lc.st.disconnectErrorHandler: An Error has occured. Sametime error code: "+errorMsg);
};
function _79(){
if(dojo.config.isDebug){
console.log("lc.st.disconnectCallBack called");
}
var _7b=dijit.byId("ST_LOGOUT");
if(_7b==null){
_7b=dijit.byId("ST_LOGIN");
}
if(_7b!=null){
dojo.attr(_7b,"label",_d.stConnect);
}
};
lconn.profiles.sametime.onLogout=function(){
var dfd=new dojo.Deferred();
if(window.stproxy&&window.stproxy.isLoggedIn){
lconn.profiles.sametime.logout(true);
}
setTimeout(function(){
dfd.callback();
},1000);
return dfd;
};
lconn.profiles.sametime.onLogin=function(){
_31();
_2d();
};
lconn.profiles.sametime.logout=function(_7c){
if(dojo.config.isDebug){
console.log("lc.st.logout called");
}
stproxy.login.logout(_7c,lconn.profiles.sametime.logoutCallBack,lconn.profiles.sametime.logoutErrorHandler);
};
lconn.profiles.sametime.logoutErrorHandler=function(_7d){
console.log("lc.st.logoutErrorHandler: An Error has occured. Sametime error code: "+_7d);
};
lconn.profiles.sametime.logoutCallBack=function(){
if(dojo.config.isDebug){
console.log("lc.st.logoutCallBack called");
}
_31();
_2d();
var _7e=dijit.byId("ST_LOGOUT");
if(_7e==null){
_7e=dijit.byId("ST_LOGIN");
}
if(_7e!=null){
dojo.attr(_7e,"label",_d.stConnect);
}
};
function _16(s){
var _7f=s.length-1;
if(s.charAt(_7f)=="/"){
return s;
}
return s+"/";
};
lconn.profiles.sametime.sametimeProxyAwareness.viewbuddylist=function(){
if(dojo.config.isDebug){
console.log("lc.st.viewbuddylist called");
}
var _80=window.open(_16(stproxyConfig.server)+"stwebclient/popup.jsp#{%27disableXDomain%27:true}","stChatWindow","status=0,toolbar=0,location=0, menubar=0,width=350,height=550");
_80.focus();
return false;
};
lconn.profiles.sametime.sametimeProxyAwareness.openMenu=function(evt){
if(dojo.config.isDebug){
console.log("lc.st.openMenu called");
}
try{
var _81=_3c();
menuUtility.openMenu(evt,_81.id);
dojo.stopEvent(evt);
}
catch(e){
console.log(e);
}
};
dojo.addOnLoad(_11);
})();
}


;if(!dojo._hasResource["lconn.profiles.sametime.sametimeAwareness"]){
dojo._hasResource["lconn.profiles.sametime.sametimeAwareness"]=true;
dojo.provide("lconn.profiles.sametime.sametimeAwareness");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.requireLocalization("lconn.profiles.bizCard","ui");
lconn.profiles.sametime.sametimeAwareness={messages:dojo.i18n.getLocalization("lconn.profiles.bizCard","ui"),elementId:null,sametimeServiceRootURL:"http://localhost:59449/stwebapi/",hcardServiceRootURL:null,isInited:false,profileSametimeAwarenessSet:false,bizCardSametimeAwarenessSet:false,inputType:"email",debug:false,initIMService:function(_1){
if(_1.secureUse&&_1.secureURL&&_1.secureURL!=""){
this.sametimeServiceRootURL=_1.secureURL;
}else{
if(_1.unsecureUse&&_1.unsecureUrl&&_1.unsecureUrl!=""){
this.sametimeServiceRootURL=_1.unsecureUrl;
}
}
if(_1.inputType!=null){
this.inputType=_1.inputType;
}
this.isInited=true;
if(typeof (Status)=="undefined"){
lconn.core.bizCard.bizCardUtils.loadScript(this.sametimeServiceRootURL+"getStatusNonDojo.js");
lconn.core.bizCard.bizCardUtils.loadCss(this.sametimeServiceRootURL+"main.css");
if(typeof (profiles_isBidiRTL)!="undefined"&&profiles_isBidiRTL){
if(!this.hcardServiceRootURL){
this.hcardServiceRootURL=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
}
if(this.hcardServiceRootURL&&this.hcardServiceRootURL!="undefined"){
lconn.core.bizCard.bizCardUtils.loadCss(this.hcardServiceRootURL+"/css/sametime/main_rtl.css");
}
}
}
},initBizCardIMService:function(_2){
if(_2.X_bizCardSecureSTAwareness&&_2.X_bizCardLocation&&_2.X_bizCardLocation.secure&&_2.X_bizCardLocation.secure!=""){
this.sametimeServiceRootURL=_2.X_bizCardLocation.secure;
}else{
if(_2.X_bizCardSTAwareness&&_2.X_bizCardLocation&&_2.X_bizCardLocation.unsecure&&_2.X_bizCardLocation.unsecure!=""){
this.sametimeServiceRootURL=_2.X_bizCardLocation.unsecure;
}
}
if(_2.X_bizCardSTInputType!=null){
this.inputType=_2.X_bizCardSTInputType;
}
this.isInited=true;
if(typeof (Status)=="undefined"){
lconn.core.bizCard.bizCardUtils.loadScript(this.sametimeServiceRootURL+"getStatusNonDojo.js");
lconn.core.bizCard.bizCardUtils.loadCss(this.sametimeServiceRootURL+"main.css");
if(typeof (profiles_isBidiRTL)!="undefined"&&profiles_isBidiRTL){
if(!this.hcardServiceRootURL){
this.hcardServiceRootURL=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
}
if(this.hcardServiceRootURL&&this.hcardServiceRootURL!="undefined"){
lconn.core.bizCard.bizCardUtils.loadCss(this.hcardServiceRootURL+"/css/sametime/main_rtl.css");
}
}
}
},loadProfilesIMStatus:function(_3,_4){
var _5=this.messages;
this.elementId=_4.loadAwarenessInto;
var _6="";
if(lconn.profiles.sametime.sametimeAwareness.inputType=="uid"){
_6=_4.uid;
}else{
_6=_4.email;
}
if(this.debug){
console.log("loadProfilesIMStatus: starting using "+lconn.profiles.sametime.sametimeAwareness.inputType);
}
var _7=lconn.profiles.sametime.sametimeAwareness.sametimeServiceRootURL+"getstatus/";
_7+=_6+"?jsonp=lconn.profiles.sametime.sametimeAwareness.setSametimeStatus&time="+new Date().getTime();
var _8=function(){
lconn.core.bizCard.bizCardUtils.loadScript(_7);
lconn.profiles.sametime.sametimeAwareness.pollSametimeStatus(_7,"window.lconn.profiles.sametime.sametimeAwareness.profileSametimeAwarenessSet == true");
};
var _9=function(){
var _a=document.getElementById(lconn.profiles.sametime.sametimeAwareness.elementId);
if(typeof (Status)=="undefined"||_a.innerHTML.indexOf(_5.loadingSTStatus)!=-1){
if(this.debug){
console.log("checkIfStatusLoaded: asking st for status expired");
}
_a.innerHTML=_5.noStatuAvailable;
_a.className="awareness offline";
if(typeof (getStatusImgUrl)!="undefined"){
_a.style.backgroundImage="url("+getStatusImgUrl("offline")+")";
}
}
};
setTimeout(_9,10000);
setTimeout(_8,2000);
},pollSametimeStatus:function(_b,_c){
var _d="";
var _e=0;
_d=window.setInterval(function(){
_e++;
if(eval(_c)){
if(this.debug){
console.log("pollSametimeStatus: cleaning up the timer");
}
window.clearInterval(_d);
}else{
if(_e==6){
if(this.debug){
console.log("pollSametimeStatus: cleaning up the timer");
}
window.clearInterval(_d);
}else{
var _f=new Date().getTime();
if(window.Status==null||Status.getStyleForStatus==null){
lconn.core.bizCard.bizCardUtils.loadScript(this.sametimeServiceRootURL+"getStatusNonDojo.js?time="+_f);
}
if(_b){
if(this.debug){
console.log("pollSametimeStatus: new url: "+_b+"&tempDate="+_f);
}
lconn.core.bizCard.bizCardUtils.loadScript(_b+"&tempDate="+_f);
}
}
}
},1000);
},invokeSametimeAwareness:function(_10){
if(this.isInited!=true){
this.initBizCardIMService(_10);
}
lconn.core.utilities.processUntilAvailable(dojo.hitch(this,this.invokeSametimeAwarenessForPerson),"window.Status != null",_10,false);
},invokeSametimeAwarenessForPerson:function(_11){
var _12="";
if(this.inputType=="uid"){
_12=_11.uid;
}else{
_12=_11.email.internet;
}
var url=this.sametimeServiceRootURL+"getstatus/";
url+=_12+"?jsonp=lconn.profiles.sametime.sametimeAwareness.loadBizCardStatus&time="+new Date().getTime();
lconn.core.bizCard.bizCardUtils.loadScript(url);
this.pollSametimeStatus(url,"window.lconn.profiles.sametime.sametimeAwareness.bizCardSametimeAwarenessSet == true");
},setSametimeStatus:function(_13){
if(this.tried==null){
this.tried=0;
}
if(_13.status==0&&this.tried<5){
this.tried++;
return;
}
this.tried=0;
var _14=this.messages;
var _15=document.getElementById(this.elementId);
if(_13.error!=null||_13.statusMessage==null||_13.statusMessage==""){
if(this.debug){
console.log("setSametimeStatus: no status");
}
_15.innerHTML=_14.noStatuAvailable;
_15.className="awareness offline";
if(typeof (getStatusImgUrl)!="undefined"){
_15.style.backgroundImage="url("+getStatusImgUrl("offline")+")";
}
}else{
this.profileSametimeAwarenessSet=true;
if(this.debug){
console.log("setSametimeStatus: profileSametimeAwarenessSet set to true");
}
if(window.Status==null){
if(this.debug){
console.log("setSametimeStatus: st code has not been loaded");
}
}
if(_15.getAttribute("className")!=null){
try{
if(typeof (getStatusImgUrl)!="undefined"){
_15.style.backgroundImage="url("+getStatusImgUrl(_13.status)+")";
}
_15.className="awareness "+Status.getStyleForStatus(_13.status);
_15.onclick=function(){
sametime_invoke("chat",_13.username);
};
if(_13.statusMessage!=null&&_13.statusMessage!=""){
_15.title=_13.statusMessage;
_15.innerHTML="&nbsp;"+_13.statusMessage;
}else{
if(_13.status!=null&&_13.status>0){
_15.title="";
_15.innerHTML="&nbsp;";
}else{
_15.title=_14.noStatuAvailable;
_15.innerHTML=_14.noStatuAvailable;
}
}
}
catch(exception1){
if(this.debug){
console.log("setSametimeStatus: an error has occurred in st code loading.");
}
}
}else{
if(typeof (getStatusImgUrl)!="undefined"){
_15.style.backgroundImage="url("+getStatusImgUrl(_13.status)+")";
}
_15.setAttribute("class","awareness "+Status.getStyleForStatus(_13.status));
_15.setAttribute("onclick","sametime_invoke('chat', '"+_13.username+"');");
if(_13.statusMessage!=null&&_13.statusMessage!=""){
_15.innerHTML="&nbsp;"+_13.statusMessage;
_15.setAttribute("title",_13.statusMessage);
}else{
if(_13.status!=null&&_13.status>0){
_15.innerHTML="&nbsp;";
_15.setAttribute("title","");
}else{
_15.innerHTML=_14.noStatuAvailable;
_15.setAttribute("title",_14.noStatuAvailable);
}
}
}
}
},loadBizCardStatus:function(_16){
if(this.tried==null){
this.tried=0;
}
if(_16.status==0&&this.tried<5){
this.tried++;
return;
}
this.tried=0;
if(_16.error!=null||_16.statusMessage==null||_16.statusMessage==""){
}else{
var _17=document.getElementById(_16.username+"vcardNameElem");
this.bizCardSametimeAwarenessSet=true;
if(_17!=null){
_17.className=" awareness "+Status.getStyleForStatus(_16.status);
_17.setAttribute("userId",_16.username);
if(typeof (getStatusImgUrl)!="undefined"){
_17.style.backgroundImage="url("+getStatusImgUrl(_16.status)+")";
}
_17.onclick=function(){
var _18=this.getAttribute("userId");
sametime_invoke("chat",_18);
};
}
var _19=dojo.byId(_16.username+"vcardCommentElem");
var _1a=dojo.byId(_16.username+"ChatAction");
var _1b=dojo.byId(_16.username+"ChatActionMore");
if(_19!=null){
_19.style.display="block";
dojo.byId(_16.username+"vcardStStatusElem").innerHTML="&nbsp;"+_16.statusMessage;
}
if(_1a!=null){
_1a.style.display="";
}
if(_1b!=null){
_1b.style.display="";
}
}
}};
}


;if(!dojo._hasResource["lconn.core.uiextensions"]){
dojo._hasResource["lconn.core.uiextensions"]=true;
dojo.provide("lconn.core.uiextensions");
dojo.require("lconn.core.utilities");
if(!window.lc_ui_extensionsContainer){
window.lc_ui_extensionsContainer={};
}
lconn.core.uiextensions={invokeExtesions:function(_1){
return lconn.core.uiextensions.invokeExtensions(_1);
},get:function(_2){
if(window.lc_ui_extensionsContainer==null){
console.log("lconn.core.uiextensions.invokeExtensions: lc_ui_extensionsContainer is not defined. plugin taglib must be missing.");
return [];
}
return window.lc_ui_extensionsContainer[_2];
},when:function(_3,_4){
var c=window.lc_ui_extensionsWhen;
if(!c){
c=window.lc_ui_extensionsWhen={};
}
var _5=c[_3];
if(!_5){
_5=c[_3]=new dojo.Deferred();
}
if(_5.fired==-1&&typeof _4!="undefined"){
try{
_5.callback(_4);
}
catch(e){
console.error(e);
}
}
return _5;
},add:function(_6,_7){
var c=window.lc_ui_extensionsContainer;
if(!c){
c=window.lc_ui_extensionsContainer={};
}
var _8=c[_6];
if(!_8){
_8=c[_6]=[];
}
_8.push(_7);
},invokeExtensions:function(_9){
if(window.lc_ui_extensionsContainer==null){
console.log("lconn.core.uiextensions.invokeExtensions: lc_ui_extensionsContainer is not defined. plugin taglib must be missing.");
return;
}
var _a=window.lc_ui_extensionsContainer[_9];
for(var i=0;_a!=null&&i<_a.length;i++){
var _b=_a[i].script;
var _c=_a[i].callbackText;
if(_c==null||_c==""){
continue;
}
var _d=function(){
if(_b!=null){
lconn.core.utilities.loadScript(_b);
}
var _e=function(){
eval(_c+"();");
};
lconn.core.utilities.processUntilAvailable(_e,"lconn.core.utilities.isDefined('"+_c+"')");
};
var _f=_a[i].invokeDelay;
if(_f!=null&&_f!=""){
setTimeout(_d,_f);
}else{
_d();
}
}
},areExtensionsEnabled:function(_10){
if(window.lc_ui_extensionsContainer==null){
console.log("lconn.core.uiextensions.areExtensionsEnabled: lc_ui_extensionsContainer is not defined. plugin taglib must be missing.");
return;
}
var _11=false;
if(typeof (window.lc_ui_extensionsContainer)!="undefined"&&window.lc_ui_extensionsContainer!=null){
var _12=window.lc_ui_extensionsContainer[_10];
for(var i=0;_12!=null&&i<_12.length;i++){
var _13=_12[i].callbackText;
if(_13!=null&&_13!=""&&typeof (_13)!="undefined"){
_11=true;
}
}
}
return _11;
},getParameters:function(_14,_15){
if(window.lc_ui_extensionsContainer==null){
console.log("lconn.core.uiextensions.getParameters: lc_ui_extensionsContainer is not defined. plugin taglib must be missing.");
return;
}
var _16=window.lc_ui_extensionsContainer[_14];
for(var i=0;_16!=null&&i<_16.length;i++){
if(_16[i]!=null&&_16[i].id==_15){
return _16[i].params;
}
}
return null;
}};
}


;if(!dojo._hasResource["lconn.profiles.bizCard.bizCard"]){
dojo._hasResource["lconn.profiles.bizCard.bizCard"]=true;
(function(){
dojo.provide("lconn.profiles.bizCard.bizCard");
dojo.require("lconn.core.utilities");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.profiles.bizCard.bizCardUI");
dojo.require("lconn.profiles.sametime.sametimeProxyAwareness");
dojo.require("lconn.profiles.sametime.sametimeAwareness");
dojo.require("lconn.core.uiextensions");
dojo.require("dojo.cookie");
var _1=dojo;
lconn.profiles.bizCard.bizCard={messages:{},applicationContext:null,servletUrlByUserId:null,servletUrlByEmail:null,servletUrlByDn:null,requestor:null,services:[],initited:false,init:function(){
if(this.initited==false){
_1=lconn.core.bizCard.bizCardUtils.getDojoObject();
_1.requireLocalization("lconn.profiles.bizCard","ui");
this.messages=_1.i18n.getLocalization("lconn.profiles.bizCard","ui");
this.applicationContext=lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
this.servletUrlByUserId2=this.applicationContext+"/json/profile.do?userid=@@@USERID@@@&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.servletUrlByEmail2=this.applicationContext+"/json/profile.do?email=@@@EMAIL@@@&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.servletUrlByDn2=this.applicationContext+"/json/profile.do?distinguishedName=@@@DN@@@&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.servletUrlByUserId=this.applicationContext+"/json/profile.do?userid=@@@USERID@@@&callback=lconn.profiles.bizCard.bizCard.dispatchByUserId&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.servletUrlByEmail=this.applicationContext+"/json/profile.do?email=@@@EMAIL@@@&callback=lconn.profiles.bizCard.bizCard.dispatchByEmail&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.servletUrlByDn=this.applicationContext+"/json/profile.do?distinguishedName=@@@DN@@@&callback=lconn.profiles.bizCard.bizCard.dispatchByEmail&lang=@@@LANG@@@&auth=@@@AUTH@@@";
this.requestor=new LCSemTagUtil.crossDomainRequest();
if(dojo.byId(LCSemTagMenu.id)==null){
LCSemTagMenu.createMenuTag(null);
}
this.initited=true;
}
},getIdMethod:function(_2){
return (_2.email&&_2.email.internet)?_2.email.internet:null;
},convMethod:function(_3){
return _3;
},dispatchByEmail:function(_4){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByEmail: data: "+_4);
}
var _5=(_4.email&&_4.email.internet)?_4.email.internet:null;
this.dispatch(_5,_4);
},dispatchByUserId:function(_6){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByUserId: data: "+_6);
}
var _7=_6.X_lconn_userid?_6.X_lconn_userid:null;
this.dispatch(_7,_6);
},dispatchByDn:function(_8){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByDn: data: "+_8);
}
var _9=_8.dn?_8.dn:null;
this.dispatch(_9,_8);
},dispatchByConfig:function(_a){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatchByConfig: data: "+_a);
}
this.dispatch("configDataId",_a);
},dispatch:function(id,_b){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("lconn.profiles.bizCard.bizCard.dispatch: id:"+id+"  data: "+_b);
}
this.requestor.dispatch(id,_b);
},processTag:function(_c){
try{
if(!this.initited){
lconn.core.bizCard.bizCardUtils.init();
LCSemTagMenu.init();
this.init();
}
if(typeof _c=="object"&&_c.length){
for(var ii=0;ii<_c.length;ii++){
this.processHcard(_c[ii]);
}
}else{
this.processHcard(_c);
}
}
catch(e){
console.log(e);
}
},processHcard:function(_d){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Processing at lconn.profiles.bizCard.bizCard.processHcard for "+(dojo.isIE?_d.innerText:_d.textContent));
}
var _e=this.getNameElement(_d);
if(!_e){
return;
}
if(this.isInline(_d)){
var _f={"target":_e};
this.getTagFromServer(_f);
}else{
lconn.core.bizCard.bizCardUtils.addHover(_e,this.showHover,this.showMenu,this.keystrokeHandler);
}
_e.setAttribute("aria-describedby",LCSemTagMenu.id);
},isInline:function(_10){
return this.getHcardAttributeValue("X-person-display-inline",_10);
},loadHcardPerson:function(_11){
var _12=new Object();
var _13=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_11);
var _14=_13.getElementsByTagName("*");
for(var i=0;i<_14.length;i++){
var _15=_14[i];
if(_15.className){
var _16=_15.className.split(" ");
for(var j=0;j<_16.length;j++){
var c=_16[j];
var _17=this.getHcardAttributeValue(c,_13);
if(_17){
_12[c]=_17;
}
}
}
}
return _12;
},getHcardAttributeValue:function(_18,_19){
switch(_18){
case ("email"):
return this.getHcardTypedAttribute(_19,_18,"internet");
case ("tel"):
return this.getHcardTypedAttribute(_19,_18,"voice");
case ("adr"):
return this.getHcardTypedAttribute(_19,_18,"intl");
}
var _1a=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_19);
var _1b=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_18,_1a,1);
if(_1b.length>0&&_1b[0].tagName.match(/^abbr$/i)){
return _1b[0].getAttribute("title");
}
switch(_18){
case ("fn"):
var fn=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_1b[0]);
if(fn){
return fn;
}else{
return this.getHcardAttributeValue("n",_19);
}
break;
case ("n"):
if(_1b.length>0){
var _1c=_1b[0];
var _1d="";
var _1e=["honorific-prefix","given-name","additional-name","family-name","honorific-suffix"];
for(var i=0;i<5;i++){
var n=lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(lconn.core.bizCard.bizCardUtils.getElementsByClassName(_1e[i],_1c,1)[0]);
if(n){
_1d+=n+" ";
}
}
return _1d;
}
return "";
break;
case ("photo"):
var _1f=_1b[0];
if(_1f){
return _1f.getAttribute("src");
}else{
return;
}
break;
case ("X-sametime-status"):
var _20=_1b[0];
if(!_20){
return "";
}
var _21=_20.getAttribute("value");
if(_21){
return _21;
}else{
return lconn.core.bizCard.bizCardUtils.getSinglePropertyValue(_20);
}
break;
case ("X-person-display-inline"):
if(_1b.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(_1b[0]);
break;
}
},getHcardTypedAttribute:function(_22,_23,_24){
var _25=new Object();
var _26=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_22);
var _27=lconn.core.bizCard.bizCardUtils.getElementsByClassName(_23,_26);
for(var i=0;i<_27.length;i++){
var _28=_27[i];
if(_23=="email"&&_28.nodeName.toLowerCase()=="a"&&_28.href.match(/^mailto:/)){
var _29=_28.href.indexOf("?");
if(_29>-1){
_25[_24]=_28.href.slice(7,_29);
}else{
_25[_24]=_28.href.slice(7);
}
continue;
}
_25=lconn.core.bizCard.bizCardUtils.getTypedValue(_28,_24);
}
return _25;
},showHover:function(_2a){
try{
lconn.core.bizCard.bizCardUtils.showHover(_2a,lconn.profiles.bizCard.bizCard.showMenu);
this.focus();
}
catch(e){
console.log("Error in lconn.profiles.bizCard.bizCard.showHover");
console.log(e);
}
},showMenu:function(_2b){
LCSemTagMenu.waitCursor();
lconn.profiles.bizCard.bizCard.getTagFromServer(_2b);
},keystrokeHandler:function(_2c){
if(_2c.ctrlKey&&(_2c.keyCode==13)){
if(_2c.preventDefault){
_2c.preventDefault();
}
try{
_2c.isAccessibleOpen=true;
}
catch(e){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("ERROR setting isAccessibleOpen event flag: "+e);
}
}
lconn.profiles.bizCard.bizCard.showMenu(_2c);
if(!LCSemTagMenu.getCurrentElement()){
var _2d=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_2c);
LCSemTagMenu.setCurrentElement(_2d);
}
}
},getSearchType:function(_2e){
indexOf.lconn.core.bizCard.bizCardUtils.getBaseURL("hcard");
},getTagFromServer:function(_2f){
var _30=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_2f);
var _31=lconn.core.bizCard.bizCardUtils.getLangParam();
var _32={"LANG":_31};
var _33=false;
if(window.lconnAwarenessLoggedInUser){
_33=true;
}
_32["AUTH"]=true;
var url=null;
var _34=null;
var _35=null;
var _36=this.getElementUserId(_30);
var _37=this.getElementEmail(_30);
var dn=this.getElementDn(_30);
if(dn){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sending request for dn: "+dn);
}
_32["DN"]=dn;
_34=dn;
url=this.servletUrlByDn2;
_35="lconn.profiles.bizCard.bizCard.dispatchByDn";
}else{
if(_37){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sending request for email: "+_37);
}
_32["EMAIL"]=_37;
_34=_37;
url=this.servletUrlByEmail2;
_35="lconn.profiles.bizCard.bizCard.dispatchByEmail";
}else{
if(_36){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sending request for user id: "+_36);
}
_32["USERID"]=_36;
_34=_36;
url=this.servletUrlByUserId2;
_35="lconn.profiles.bizCard.bizCard.dispatchByUserId";
}
}
}
if(_34!=null){
lconn.core.bizCard.bizCardUtils.getBizCardData(url,_32,_35,this.requestor,this.requestReturn,_2f,_34);
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.getTagFromServer sent");
}
}else{
this.noInformationProvided(_30,_2f);
}
},noInformationProvided:function(_38,_39){
lconn.profiles.bizCard.bizCard.update(null,_38,_39);
},requestReturn:function(_3a,_3b,_3c){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.requestReturn: success="+_3a);
}
var _3d=lconn.core.bizCard.bizCardUtils.getLiveElementFromEvent(_3c);
var _3b=_3a?lconn.profiles.bizCard.bizCard.convMethod.call(null,_3b):{};
lconn.profiles.bizCard.bizCard.fillPersonJsonMoreFromDom(_3b,_3d);
lconn.profiles.bizCard.bizCard.update(_3b,_3d,_3c);
},fillPersonJsonMoreFromDom:function(_3e,_3f){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.fillPersonJsonMoreFromDom");
}
if(!_3e.photo){
_3e.photo=lconn.core.url.getServiceUrl(lconn.core.config.services.webresources)+"/web/com.ibm.oneui3.styles/imageLibrary/OtherImages/People/NoPhotoPerson128.png";
}
if(!_3e.fn){
var _40=lconn.core.bizCard.bizCardUtils.findNameElementInHcard(_3f);
if(_40){
_3e.fn=lconn.core.bizCard.bizCardUtils.getTextValue(_40);
}
}
if(!_3e.email||!_3e.email.internet){
var _41=this.getElementEmail(_3f);
_3e.email={"internet":_41};
}
if(!_3e.tel||!_3e.tel.voice){
var _42=lconn.core.bizCard.bizCardUtils.findElementByNameInHcard(_3f,"tel");
if(_42){
var _43=lconn.core.bizCard.bizCardUtils.getTypedValue(_42,"voice");
_3e.tel={"voice":_43["voice"]};
}
}
var _44=lconn.core.bizCard.bizCardUtils.findElementByNameInHcard(_3f,"adr");
var _45={};
if(_44){
_45=SemTagAddr.getAddressJson(_44);
_3e.adr=_45;
}
},update:function(_46,_47,_48){
if(lconn.core.bizCard.bizCardUtils.isDebug){
console.log("Person.update");
}
var _49=this.messages;
this.currentPerson=_46;
var _4a=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_47);
if(_4a&&this.isInline(_4a)){
var out=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getInlineMarkup(_46,"ltr",out);
var _4b=document.createElement("span");
_4b.innerHTML=out.buffer;
_4a.appendChild(_4b);
var _4c=(dojo.cookie("card.inline.expanded")?false:true);
}else{
var _4d=new Array();
var _4e="personMenuActions";
var _4f=new lconn.core.bizCard.bizCardUtils.out();
var _50=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getMenuData(_46,"ltr",_4d,_4e,_4f,_50);
lconn.core.bizCard.bizCardUtils.setMenuData(_48,_4d,_4e,lconn.core.bizCard.bizCardUtils.getMenuHeaderJson(_4f.buffer,-100));
}
if(_46!=null&&_46.X_isActiveUser&&_46.X_isActiveUser=="true"){
if(_46.X_stLinks!=null&&_46.X_stLinks!=""){
this.invokeSTLinks(_46);
}else{
if(typeof lconn.core.config.services.sametimeProxy!="undefined"){
var _51=(_46.X_loggedInUserKey!=null&&_46.X_loggedInUserKey!="");
if(_51){
if(_4a&&this.isInline(_4a)){
lconn.profiles.sametime.sametimeProxyAwareness.scanPage();
}else{
var _52=dojo.byId(_46.fn+"vcardNameElem");
if(_52==null){
_52=dojo.byId(_46.uid+"vcardNameElem");
}
if(_52==null){
_52=dojo.byId(_46.email.internet+"vcardNameElem");
}
if(_52==null){
_52=dojo.byId(_46.X_lconn_userid+"vcardNameElem");
}
if(_52!=null){
var _53="";
_53+="<span class=\"IMAwarenessDisplayedUser\">";
_53+="<span style=\"display: none;\" class=\"renderType\">Icon</span>";
_53+="<span style=\"display: none;\" class=\"dn\">"+_46.dn+"</span>";
_53+="<span style=\"display: none;\" class=\"uid\">"+_46.uid+"</span>";
_53+="<span id=\"IMcontent\" class=\"IMContent\"><img alt=\""+_49["loadingSTStatus"]+"\" src=\""+this.applicationContext+"/nav/common/styles/images/loading.gif\">&nbsp;</span>";
_53+="</span> ";
var _54=document.createElement("span");
_54.innerHTML=_53;
var _55=_52.parentNode;
_55.insertBefore(_54.firstChild,_52);
lconn.profiles.sametime.sametimeProxyAwareness.scanPage();
}
}
}
}else{
if(_46.X_bizCardSTAwareness||_46.X_bizCardSecureSTAwareness){
this.invokeSametimeAwareness(_46);
}
}
}
}
},invokeSTLinks:function(_56){
if(document.cookie.match(/LtpaToken=\w*/g)!=null&&window.writeSTLinksApplet!=null){
var _57=document.getElementById(_56.email.internet+"vcardNameElem");
if(_57==null){
_57=document.getElementById(_56.X_lconn_userid+"vcardNameElem");
}
_57.innerHTML=prepareSametimeLink(_56.dn,_56.fn,true,"icon:yes");
}
},invokeSametimeAwareness:function(_58){
var _59=dojo.getObject("lconn.profiles.sametime.sametimeAwareness");
if(_59){
_59.invokeSametimeAwareness(_58);
}
},sametimeStart:function(_5a,_5b){
sametime_invoke(_5a,_5b);
},getElementEmail:function(_5c){
var _5d;
var _5e=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_5c);
if(_5e){
_5d=this.getHcardAttributeValue("email",_5e);
_5d=_5d.internet;
}else{
if(_5c.nodeName.toLowerCase()=="a"&&_5c.href.match(/^mailto:/)){
_5d=_5c.href.replace(/^mailto:/,"");
}
}
return _5d;
},getElementUserId:function(_5f){
var _60="";
var _61=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_5f);
if(_61){
_60=this.getHcardAttributeValue("x-lconn-userid",_61);
}
return _60;
},getElementDn:function(_62){
var dn="";
var _63=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_62);
if(_63){
dn=this.getHcardAttributeValue("dn",_63);
if(!dn){
dn=this.getHcardAttributeValue("uid",_63);
}
}
return dn;
},getNameElement:function(_64){
if(_64.className!="vcard"){
_64=lconn.core.bizCard.bizCardUtils.getParentByClassName("vcard",_64);
}
var _65=lconn.core.bizCard.bizCardUtils.getElementsByClassName("fn",_64,1)[0];
if(!_65){
_65=lconn.core.bizCard.bizCardUtils.getElementsByClassName("n",_64,1)[0];
}
return _65;
},requestReturnMiniBizCard:function(_66,_67,_68,_69){
var _67=_66?lconn.profiles.bizCard.bizCard.convMethod.call(null,_67):{};
var _6a=new lconn.core.bizCard.bizCardUtils.out();
lconn.profiles.bizCard.bizCardUI.getMenuData(_67,null,null,null,_6a,null,true,(_69?true:false));
if(_68.target!=null&&typeof (_68.target)=="object"){
_68.target.innerHTML=_6a.buffer;
}else{
if(_68.callbackfn!=null){
_68.callbackfn(_6a.buffer);
}
}
},renderMiniBizCard:function(_6b,_6c,_6d){
this.init();
var _6e={"target":_6d,"callbackfn":_6c};
var src=this.servletUrlByUserId.replace(/@@@USERID@@@/,_6b);
this.requestor.request(src,10000,this.requestReturnMiniBizCard,_6e,_6b);
}};
})();
}

dojo.registerModulePath("com.ibm.lconn.personcard", "../com.ibm.lconn.personcard");

;if(!dojo._hasResource["lconn.core.people"]){
dojo._hasResource["lconn.core.people"]=true;
dojo.provide("lconn.core.people");
}

dojo.registerModulePath("com.ibm.lconn.layout", "../com.ibm.lconn.layout");

;if(!dojo._hasResource["com.ibm.lconn.layout.track"]){
dojo._hasResource["com.ibm.lconn.layout.track"]=true;
(function com_ibm_lconn_layout_track(){
var _1=dojo.provide("com.ibm.lconn.layout.track");
dojo.require("dijit._base.wai");
dojo.require("lconn.core.config.services");
dojo.require("com.ibm.oneui.util.Url");
dojo.require("lconn.core.url");
var _2={className:"lconnTrackingBeacon",style:{cssText:"height: 1px; width: 1px; position: absolute; left: -9999px; top: 0px;"},alt:""};
var _3=0;
function _4(){
var _5=this.parentNode;
if(_5){
_5.removeChild(this);
}
};
var _6=lconn.core.config.services.metrics;
if(_6){
_1._addTracker=function(_7,_8,_9){
if(!_7){
return;
}
var _a;
var _b=lconn.core.url.getServiceUrl(_6);
var _c=dojo.mixin(_b.getQuery(),_7);
if(typeof _8=="object"){
dojo.mixin(_c,_8);
}else{
if(typeof _8=="string"){
_c.data=_8;
}
}
var _d=dojo.config.proxy;
_b.path+="/service/eventTracker";
var _e=_b.toString();
if(_d){
var _f=new lconn.core.url.ProxyUrlHelper(_d);
_e=_f.getProxifiedURL(_e);
}
var _10=function(_11){
};
var _12=function(_13){
};
_a=dojo.xhrPost({url:_e,sync:_9||false,timeout:10000,load:_10,error:_12,headers:{"X-Update-Nonce":"true"}});
return _a;
};
}else{
_1._addTracker=function(){
};
}
_1.read=function(id,_14,opt){
opt=opt||{};
if(dojo.config.isDebug){
console.log("Send read event with itemType = "+_14+", contentId = "+id);
console.log("Options="+dojo.toJson(opt,true));
}
return _1._addTracker({context:opt.context,contentId:id,itemType:_14,source:opt.source||null,community:opt.communityId||opt.community||null,i:_3++||null},opt.extra,opt.sync);
};
})();
}


;if(!dojo._hasResource["com.ibm.lconn.socialmail.gadget.NavigationHandler"]){
dojo._hasResource["com.ibm.lconn.socialmail.gadget.NavigationHandler"]=true;
(function(){
dojo.provide("com.ibm.lconn.socialmail.gadget.NavigationHandler");
dojo.require("com.ibm.lconn.gadget.container.iContainer2");
dojo.require("lconn.core.config.services");
dojo.require("lconn.core.url");
dojo.require("lconn.core.header");
dojo.require("dojox.uuid");
dojo.require("dojox.uuid.generateRandomUuid");
var _1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c,_d,_e,_f={badge:false,inbox:false,calendar:false,document:false},_10={badge:[],inbox:[],calendar:[],document:[]},_11=1344334280125;
window.navHandlerVer=_11;
var _12=400;
var _13=dojox.uuid.generateRandomUuid();
var _14={badge:"os-site-mail-notify"+_13,inbox:"os-site-mail-hover"+_13,calendar:"os-site-calendar-hover"+_13,message:"os-site-mail-hover-preview-messages"+_13,messageEE:"os-site-mail-hover-preview-messages-ee"+_13};
function _15(cc,_16){
return cc.getSiteById(_14[_16]);
};
function _17(_18,_19){
_10[_18].push(_19);
_1a(_18);
};
function _1a(_1b){
if(!_f[_1b]){
return;
}
for(var _1c=null;_1c=_10[_1b].shift();){
_1c();
}
};
function _1d(cc,_1e){
if(_1e.dataObject=="inbox"||_1e.dataObject=="calendar"){
var _1f=_15(cc,_1e.dataObject);
_17("badge",function(){
_1f.rpcCall("com.ibm.socpim.rpc.bootstrap","","badge");
});
}
};
function _20(cc,_21){
_f[_21.dataObject]=true;
_1a(_21.dataObject);
};
function _22(_23,_24,_25,_26){
if(!_23||!_d||!_d[_25]){
return;
}
_23._currentHeight=_24;
var _27=dojo.byId(_d[_25]),_28=dojo.byId(_23.bindto);
if(!_27||!_28){
return;
}
_27.style.height=_28.style.height=_24+"px";
_23.domNode.style.height=(typeof _26!="undefined"?Math.max(_24,_26):_24)+"px";
};
function _29(cc,_2a,_2b,_2c,_2d){
if(!_2a||!_b||!_b[_2b]||typeof _2a._offsetTop=="undefined"){
return;
}
cc.getSiteById(_2c).rpcCall("com.ibm.socpim.rpc","",{type:_2d,dataObject:{top:_2a._offsetTop}});
};
function _2e(cc,_2f,_30,_31,_32){
if(!_2f||!_b||!_b[_30]||typeof _2f._borderWidth=="undefined"){
return;
}
cc.getSiteById(_31).rpcCall("com.ibm.socpim.rpc","",{type:_32,dataObject:{b:_2f._borderWidth}});
};
var _33=function(rel,_34,_35,_36,_37){
var _38=this;
if(_35=="container/mail/preview/ee"&&_37.getId()==_14.message){
var _39=dojo.byId(_37.getId()),_3a=_39.parentElement,_3b=dojo.byId(_14.messageEE);
var _3c=_38.getSiteById(_14.messageEE);
if(_3c){
_38.closeGadget(_3c);
}
dojo.query(".cm-preview-site-container").addClass("ee-showing");
var _3d=dojo.coords(_39)["h"];
_3b.style.paddingTop=_3d+"px";
if(dojo.hasClass(dojo.body().parentNode,"dj_ie7")){
var h=Math.abs(dojo.style(_3a,"height")-_3d)+"px";
dojo.style(_3b,"height",h);
}
return _3b;
}
};
var _3e=function(_3f){
var _40=this,id=_3f.getId(),_41=dojo.byId(_14.messageEE);
if(id==_14.message){
var _42=_40.getSiteById(_14.messageEE);
if(_42){
_40.closeGadget(_42);
}
}else{
if(id==_14.messageEE){
dojo.query(".cm-preview-site-container").removeClass("ee-showing");
}
}
_40.closeGadget(_3f);
};
var _43=function(_44){
var _45=_44.domNode.getElementsByTagName("iframe")[0];
var _46=_45.contentWindow.document.getElementById("warningMsgDropdown");
if(_46){
dojo.removeAttr(_46,"role");
var _47=_46.innerHTML;
dojo.empty(_46);
dojo.html.set(_46,_47);
dojo.attr(_46,"role","alert");
}
};
var _48=function(_49){
if(_49&&_49[0]==="mouseover"){
_e=dijit.getFocus().node;
}
};
var _4a=function(){
if(_e){
dijit.focus(_e);
}
_e=undefined;
};
var _4b=function(){
dojo.attr(dojo.byId("lotusBannerMail"),"external-content",_14.inbox);
dojo.attr(dojo.byId("lotusBannerCalendar"),"external-content",_14.calendar);
dojo.attr(dojo.query(".os-site-mail-notify")[0],"id",_14.badge);
};
dojo.declare("com.ibm.lconn.socialmail.gadget.NavigationHandler",null,{constructor:function(){
if(!_2){
if(dojo.config.isDebug){
console.log("Initializing container");
}
_4b();
_8=com.ibm.lconn.gadget.container.iContainer2;
_8.init();
_2=_8.getCommonContainer();
lconn.core.auth.addLoginHandler(this.clearCache);
lconn.core.auth.addLogoutHandler(this.clearCache);
_8.views.registerCreateElementForEEHandler("container/mail/preview/ee",_33,_3e);
var _4c=null,_4d=null,_4e=this;
_b={inbox:false,calendar:false,badgeNotified:false};
_c=(location.search.match(/[&\?]debugRpc=([^&]*)/i)||[])[1] in {"true":1,1:1};
_d={inbox:null,calendar:null};
if(lconn.core.config.services.connectionsmail){
_4c=lconn.core.config.services.connectionsmail;
_4d=lconn.core.url.getServiceUrl(_4c);
if(_4d){
_4d=_4d.toString();
}
if(_4d.search(/inbox\.xml/)==-1){
_4d=_4d+"/gadgets/inbox.xml";
}
_1=_4d;
}
_2.then(function(cc){
osapi.container.GadgetHolder.prototype.createIframeAttributeMap=function(url,_4f){
if(this.el_.id==_14.messageEE){
_4f=_4f||{};
_4f["scrolling"]="auto";
}
return osapi.container.SiteHolder.prototype.createIframeAttributeMap.call(this,url,_4f);
};
cc.preloadGadget(_1,function(){
if(_8&&_8.ICactions){
_8.ICactions.registerNavigateGadgetHandler(dojo.hitch(_4e,_4e.navigateGadgetHandler,_1));
}else{
cc.actions.registerNavigateGadgetHandler(dojo.hitch(_4e,_4e.navigateGadgetHandler,_1));
}
var _50={};
var _51=osapi.container.RenderParam;
_50[_51.WIDTH]="15px";
_50[_51.HEIGHT]=dojo.hasClass(dojo.body().parentNode,"dj_ie")?"0px":"15px";
var _52={gadgetId:_14.badge,dynamicSiteIdSuffix:_13};
if(!_9){
_9=cc.newGadgetSite(dojo.byId(_14.badge));
}
cc.navigateGadget(_9,_1,_52,_50);
var _53=dojo.doc.createElement("div");
dojo.attr(_53,"id","os-site-mail-preload");
dojo.place(_53,dojo.body());
_4=_8.loadWidget({definitionUrl:_1,placement:_53,componentType:"gadget"});
dojo.destroy(_53);
var _54=_9&&_9.el_.firstChild;
if(_54){
_54.setAttribute("title","Unread messages");
_54.setAttribute("tabindex","-1");
_54.setAttribute("role","presentation");
}
});
cc.actions.addListener(dojo.hitch(_4e,_4e.onMessageOpen),"com.ibm.socpim.openDocument");
cc.actions.addListener(dojo.hitch(_4e,_4e.onMessageCompose),"com.ibm.socpim.mail.messageCompose");
cc.actions.addListener(dojo.hitch(_4e,_4e.onMessageClose),"com.ibm.socpim.closeDocument.sm");
cc.rpcRegister("com.ibm.socpim.rpc",function(_55,_56){
_c&&window.console&&console.log("com.ibm.socpim.rpc received: "+_56.type+": "+(typeof _56.dataObject=="object"&&(window.JSON||{}).stringify?JSON.stringify(_56.dataObject):_56.dataObject));
var _57={"com.ibm.socpim.bootstrap.beingloaded":_1d,"com.ibm.socpim.bootstrap.loaded":_20}[_56.type];
if(_57){
_57(cc,_56);
}
if(_56.type=="com.ibm.socpim.bootstrap.loaded"){
var _58={inbox:_3,calendar:_5,document:_6,badge:_9}[_56.dataObject];
var _59=dojo.byId(_58.progressId);
if(_59){
dojo.addClass(_59,"dijitDisplayNone");
}
var _5a=_58&&_58.containerNode&&_58.containerNode.getElementsByTagName("iframe")[0];
if(_5a){
_5a.style.visibility="";
}
if(_56.dataObject=="inbox"){
_b.inbox=true;
}else{
if(_56.dataObject=="calendar"){
_b.calendar=true;
}
}
var win=dojo.doc.parentWindow||dojo.doc.defaultView;
_2.then(function(cc){
if(_56.dataObject=="inbox"||_56.dataObject=="calendar"){
var _5b=(_56.dataObject=="inbox")?_14.inbox:_14.calendar;
cc.getSiteById(_5b).rpcCall("com.ibm.socpim.rpc","",{type:"com.ibm.socpim.windowgeom",dataObject:{w:dojo.doc.documentElement.clientWidth||dojo.body().clientWidth||win.innerWidth,h:dojo.doc.documentElement.clientHeight||dojo.body().clientHeight||win.innerHeight}});
dojo.connect(win,"onresize",dojo.hitch(this,function(){
cc.getSiteById(_5b).rpcCall("com.ibm.socpim.rpc","",{type:"com.ibm.socpim.windowgeom",dataObject:{w:dojo.doc.documentElement.clientWidth||dojo.body().clientWidth||win.innerWidth,h:dojo.doc.documentElement.clientHeight||dojo.body().clientHeight||win.innerHeight}});
}));
}
});
if(_3){
_29(cc,_3,"inbox",_14.inbox,"com.ibm.socpim.mailoffsetpos");
_2e(cc,_3,"inbox",_14.inbox,"com.ibm.socpim.mailborderextents");
}
if(_5){
_29(cc,_5,"calendar",_14.calendar,"com.ibm.socpim.calendaroffsetpos");
_2e(cc,_5,"calendar",_14.calendar,"com.ibm.socpim.calendarborderextents");
}
}else{
if(_56.type=="com.ibm.socpim.calendar.datepicker.visibility"){
_5._datepick=_56.dataObject=="visible";
if(_5._currentHeight){
_5.domNode.style.height=Math.max(_56.dataObject=="visible"?_12:0,_5._currentHeight)+"px";
}
}else{
if(_56.type=="com.ibm.socpim.calendarview.height"){
_22(_5,_56.dataObject,"calendar",_5._datepick?_12:0);
}else{
if(_56.type=="com.ibm.socpim.messagelist.height"){
if(_c){
console.log("_lconn_menuid: "+_d.inbox);
}
_22(_3,_56.dataObject,"inbox");
}else{
if(_56.type=="com.ibm.socpim.MailDropDown"){
if(_56.dataObject=="hidden"&&_b.inbox){
_3.onClose(true);
}
}else{
if(_56.type=="com.ibm.socpim.CalendarDropDown"){
if(_56.dataObject=="hidden"&&_b.calendar){
_5.onClose(true);
}
}else{
if(_56.type=="com.ibm.socpim.a11y.dialog"){
if(!!_56.dataObject){
if(_56.dataObject["name"]=="pageTitle"){
var _5c=_56.dataObject["value"];
dojo.attr(_a.domNode,"title",_5c);
dojo.attr(_a.domNode,"aria-label",_5c);
dojo.attr(_6.domNode,"title",_5c);
dojo.attr(_6.domNode,"aria-label",_5c);
var _5a=_a.containerNode.getElementsByTagName("iframe")[0];
dojo.attr(_5a,"title",_5c);
}
}
}
}
}
}
}
}
}
});
});
if(!!dijit._frames&&!!dijit._frames.pop){
var _5d=dijit._frames.pop;
var _5e=function(){
var _5f=_5d();
if(!dojo.hasAttr(_5f,"role")){
dojo.attr(_5f,"role","presentation");
}
return _5f;
};
dijit._frames.pop=_5e;
}
}
},clearCache:function(){
var _60=new dojo.Deferred();
var _61=dojo.hitch(_60,"callback");
var _62=5000;
_2.then(dojo.hitch(this,function(cc){
var _63=[];
var _64="com.ibm.socpim.rpc.cleanup";
var _65=["badge","inbox","calendar","message"];
dojo.forEach(_65,function(_66,_67){
if(_67==0&&_9||_67==1&&_3||_67==2&&_5||_67==3&&_6){
var _68=new lconn.core.util.LCDeferred();
_63.push(_68);
var _69=_15(cc,_66);
_c&&console.log("calling "+_64+": "+_66);
_69.rpcCall(_64,dojo.hitch(_68,"resolve"),_69);
}
});
new lconn.core.util.LCDeferredList(_63).then(_61,_61);
}),_61);
setTimeout(_61,_62);
return _60;
},onMessageOpen:function(id,_6a){
if(_7=="mail"){
_3.onClose();
}else{
_5.onClose();
}
_a.closeConfirmed=false;
_a.show();
},onMessageClose:function(id,_6b){
_a.closeConfirmed=true;
_a.hide();
},onMessageCompose:function(id,_6c){
_3.onClose();
_a.closeConfirmed=false;
_a.show();
},navigateGadgetHandler:function(_6d,_6e,_6f){
if(_6d===_6e){
if(!dojo.hasClass(dojo.body(),"lotusui30dojo")){
dojo.addClass(dojo.body(),"lotusui30dojo");
}
var _70=osapi.container.actions.OptParam;
var _71=_6f[_70.VIEW];
var _72=_6f[_70.VIEW_TARGET];
if(_72=="container/mail/preview"){
if(_7=="mail"){
_3.onClose();
}else{
_5.onClose();
}
this.navigateOpenMessage(_6e,_71);
}
}
},navigateInbox:function(_73,eve){
if(!_9){
return;
}
if(!_3){
_d.inbox=dojo.attr(_73,"_lconn_menuid");
_2.then(dojo.hitch(this,function(cc){
_3=new dijit.layout.ContentPane({id:_14.inbox,bindto:"os-site-mail-hover-loading","class":"os-site-mail-hover",hide:function(){
dojo.style(this.domNode,{visibility:"hidden",zIndex:-1});
var _74={type:"com.ibm.socpim.MailDropDown",dataObject:"hidden"};
if(_c){
console.log("com.ibm.socpim.rpc sending "+_74.type+":"+_74.dataObject+" to os-site-mail-notify");
}
cc.getSiteById(_14.badge).rpcCall("com.ibm.socpim.rpc","",_74);
var _75=function(){
if(!_b.inbox){
setTimeout(_75,10);
}else{
if(_c){
console.log("com.ibm.socpim.rpc sending "+_74.type+":"+_74.dataObject+" to os-site-mail-hover");
}
cc.getSiteById(_14.inbox).rpcCall("com.ibm.socpim.rpc","",_74);
}
};
_75();
_4a();
},show:function(){
_48(arguments[0]);
dojo.style(this.domNode,{visibility:"visible",zIndex:2000});
if(typeof _3._currentHeight!="undefined"){
_22(_3,_3._currentHeight,"inbox");
}
if(typeof _3._offsetTop=="undefined"){
_3._offsetTop=_3.domNode.offsetTop;
_29(cc,_3,"inbox",_14.inbox,"com.ibm.socpim.mailoffsetpos");
}
if(typeof _3._borderWidth=="undefined"){
var _76=dojo.byId(_d.inbox);
if(_76){
_3._borderWidth=(dojo.marginBox(_76).h-dojo.contentBox(_76).h)/2;
_2e(cc,_3,"inbox",_14.inbox,"com.ibm.socpim.mailborderextents");
}
}
var _77={type:"com.ibm.socpim.MailDropDown",dataObject:"visible"};
if(_c){
console.log("com.ibm.socpim.rpc sending "+_77.type+":"+_77.dataObject+" to os-site-mail-notify");
}
cc.getSiteById(_14.badge).rpcCall("com.ibm.socpim.rpc","",_77);
var _78=function(){
if(!_b.inbox){
setTimeout(_78,10);
}else{
if(_c){
console.log("com.ibm.socpim.rpc sending "+_77.type+":"+_77.dataObject+" to os-site-mail-hover");
}
cc.getSiteById(_14.inbox).rpcCall("com.ibm.socpim.rpc","",_77);
if(!_b.badgeNotified){
if(_c){
console.log("com.ibm.socpim.rpc.bootstrap sending to os-site-mail-notify");
}
cc.getSiteById(_14.badge).rpcCall("com.ibm.socpim.rpc.bootstrap","",null);
_b.badgeNotified=true;
}
if(!_b.messagesNotified&&!!cc.getSiteById(_14.message)){
if(_c){
console.log("com.ibm.socpim.rpc.bootstrap sending to os-site-mail-hover-preview-messages");
}
cc.getSiteById(_14.message).rpcCall("com.ibm.socpim.rpc.bootstrap","",null);
_b.messagesNotified=true;
}
_43(_3);
}
};
_78();
}}).placeAt(dojo.body());
var _79={};
var _7a=osapi.container.RenderParam;
_79[_7a.WIDTH]="100%";
_79[_7a.HEIGHT]="100%";
_79[_7a.VIEW]="HoverView";
var _7b={gadgetId:_14.inbox,dynamicSiteIdSuffix:_13};
_3.site=cc.newGadgetSite(_3.domNode);
cc.navigateGadget(_3.site,_1,_7b,_79,function(){
});
var _7c=_3&&_3.containerNode.getElementsByTagName("iframe")[0];
if(_7c){
_7c.style.visibility="hidden";
}
})).then(dojo.hitch(this,function(){
if(eve=="onmouseover"){
lconn.core.header.menuMouseover(_73);
}else{
if(eve=="onclick"){
lconn.core.header.menuClick(_73);
}else{
if(eve=="onfocus"){
lconn.core.header.menuFocus(_73);
}
}
}
}));
}
_7="mail";
},navigateCalendar:function(_7d,eve){
if(!_9){
return;
}
if(!_5){
_d.calendar=dojo.attr(_7d,"_lconn_menuid");
_2.then(dojo.hitch(this,function(cc){
_5=new dijit.layout.ContentPane({id:_14.calendar,bindto:"os-site-calendar-hover-loading","class":"os-site-calendar-hover",hide:function(){
dojo.style(this.domNode,{visibility:"hidden",zIndex:-1});
var _7e={type:"com.ibm.socpim.CalendarDropDown",dataObject:"hidden"};
var _7f=function(){
if(!_b.calendar){
setTimeout(_7f,10);
}else{
if(_c){
console.log("com.ibm.socpim.rpc sending "+_7e.type+":"+_7e.dataObject+" to os-site-calendar-hover");
}
cc.getSiteById(_14.calendar).rpcCall("com.ibm.socpim.rpc","",_7e);
}
};
_7f();
var _80=window.frames[this.domNode.firstChild.id];
if(_80&&_80.document.getElementsByTagName("table")[0]){
_80.document.getElementsByTagName("table")[0].style.display="none";
}
_4a();
},show:function(){
_48(arguments[0]);
dojo.style(this.domNode,{visibility:"visible",zIndex:2000});
if(typeof _5._currentHeight!="undefined"){
_22(_5,_5._currentHeight,"calendar",_5._datepick?_12:0);
}
if(typeof _5._offsetTop=="undefined"){
_5._offsetTop=_5.domNode.offsetTop;
_29(cc,_5,"calendar",_14.calendar,"com.ibm.socpim.calendaroffsetpos");
}
if(typeof _5._borderWidth=="undefined"){
var _81=dojo.byId(_d.calendar);
if(_81){
_5._borderWidth=(dojo.marginBox(_81).h-dojo.contentBox(_81).h)/2;
_2e(cc,_5,"calendar",_14.calendar,"com.ibm.socpim.calendarborderextents");
}
}
var _82={type:"com.ibm.socpim.CalendarDropDown",dataObject:"visible"};
var _83=function(){
if(!_b.calendar){
setTimeout(_83,10);
}else{
if(_c){
console.log("com.ibm.socpim.rpc sending "+_82.type+":"+_82.dataObject+" to os-site-calendar-hover");
}
cc.getSiteById(_14.calendar).rpcCall("com.ibm.socpim.rpc","",_82);
_43(_5);
}
};
_83();
var _84=window.frames[this.domNode.firstChild.id];
if(_84&&_84.document.getElementsByTagName("table")[0]){
_84.document.getElementsByTagName("table")[0].style.display="table";
}
}}).placeAt(dojo.body());
var _85={};
var _86=osapi.container.RenderParam;
_85[_86.WIDTH]="100%";
_85[_86.HEIGHT]="100%";
_85[_86.VIEW]="CalendarHoverView";
var _87={gadgetId:_14.calendar,dynamicSiteIdSuffix:_13};
_5.site=cc.newGadgetSite(_5.domNode);
cc.navigateGadget(_5.site,_1,_87,_85,function(){
});
var _88=_5&&_5.containerNode.getElementsByTagName("iframe")[0];
if(_88){
_88.style.visibility="hidden";
_88.allowTransparency="true";
}
})).then(dojo.hitch(this,function(){
if(eve=="onmouseover"){
lconn.core.header.menuMouseover(_7d);
}else{
if(eve=="onclick"){
lconn.core.header.menuClick(_7d);
}else{
if(eve=="onfocus"){
lconn.core.header.menuFocus(_7d);
}
}
}
}));
}
_7="calendar";
},navigateOpenMessage:function(_89,_8a){
if(!_a){
dojo.require("dijit.Dialog");
if(!_6){
_6=new dijit.layout.ContentPane({content:"<div class=\"cm-preview-site-container\">"+"<div id=\""+_14.messageEE+"\" class=\"os-site os-site-mail-hover-preview-messages-ee\"></div>"+"<div id=\""+_14.message+"\" class=\"os-site os-site-mail-hover-preview-messages\"></div>"+"</div>"});
}
_a=new dijit.Dialog({content:_6,draggable:false});
dojo.addClass(_a.domNode,"mailMessageDialog");
_a.closeButtonNode&&_a.closeButtonNode.setAttribute("role","button");
var _8b=_a.hide;
_a.hide=function(){
if(!this.closeConfirmed){
_2.then(dojo.hitch(this,function(cc){
cc.actions.runAction("com.ibm.socpim.closeDocument");
}));
return;
}
_8b.apply(this,arguments);
};
var _8c=520,_8d=740;
_a._singleChild=true;
_a._size=function(){
if(this._singleChild){
if(this._singleChildOriginalStyle){
this._singleChild.domNode.style.cssText=this._singleChildOriginalStyle;
}
delete this._singleChildOriginalStyle;
}else{
dojo.style(this.containerNode,{width:"auto",height:"auto"});
}
var bb=dojo.position(this.containerNode);
dojo.require("dijit.dijit");
var _8e=dijit.getViewport();
if(bb.w>=_8e.w||bb.h>=_8e.h){
var w=Math.min(bb.w,Math.floor(_8e.w*0.75)),h=Math.min(bb.h,Math.floor(_8e.h*0.75));
w=w<_8d?_8d:w;
h=h<_8c?_8c:h;
if(this._singleChild&&this._singleChild.resize){
this._singleChildOriginalStyle=this._singleChild.domNode.style.cssText;
this._singleChild.resize({w:w,h:h});
}else{
dojo.style(this.containerNode,{width:w+"px",height:h+"px",overflow:"auto",position:"relative"});
}
}else{
if(this._singleChild&&this._singleChild.resize){
this._singleChild.resize();
}
}
};
_a._position=function(){
if(!dojo.hasClass(dojo.body(),"dojoMove")){
var _8f=this.domNode;
dojo.require("dijit.dijit");
var _90=dijit.getViewport();
p=this._relativePosition,bb=p?null:dojo.position(_8f),l=Math.floor(_90.l+(p?p.x:(_90.w-bb.w)/2)),t=Math.floor(_90.t+(p?p.y:(_90.h-bb.h)/2));
l=l>0?l:5;
t=t>0?t:5;
if(t>_90.t){
dojo.style(_8f,{top:t+"px"});
}
if(l>_90.l){
dojo.style(_8f,{left:l+"px"});
}
}
};
_2.then(dojo.hitch(this,function(cc){
var _91={};
var _92=osapi.container.RenderParam;
_91[_92.WIDTH]="100%";
_91[_92.HEIGHT]="100%";
_91[_92.VIEW]=_8a;
var _93={gadgetId:_14.message,dynamicSiteIdSuffix:_13};
var _94=dojo.byId(_14.message);
_6.site=cc.newGadgetSite(_94);
cc.navigateGadget(_6.site,_89,_93,_91,function(){
});
var _95=_6&&_94&&_94.getElementsByTagName("iframe")[0];
if(_95){
_95.style.visibility="hidden";
if(!com.ibm.lconn.socialmail.gadget.NavigationHandler.loadingMessage||com.ibm.lconn.socialmail.gadget.NavigationHandler.loadingMessage==="undefined"){
com.ibm.lconn.socialmail.gadget.NavigationHandler.loadingMessage="";
}
dojo.place("<table id=\""+(_6.progressId="messageSiteProgress")+"\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tbody><tr><td>&nbsp;</td><td>"+com.ibm.lconn.socialmail.gadget.NavigationHandler.loadingMessage+"</td><td>&nbsp;</td></tr></tbody></table>",_95,"before");
}
}));
dojo.removeAttr(_a.domNode,"aria-labelledby");
dojo.attr(_6.domNode,"role","dialog");
if(dojo.hasClass(dojo.body().parentNode,"dj_ie")){
dojo.style(_a.containerNode,{overflowY:"auto"});
}
_a.show();
if(dijit._underlay&&dijit._underlay.bgIframe&&dijit._underlay.bgIframe.iframe){
var _96=dijit._underlay.bgIframe.iframe;
_96.setAttribute("role","presentation");
_96.setAttribute("title","Background");
_96.contentWindow.document.write("<html><head><title>Background</title></head><body></body></html>");
}
if(_a.titleNode){
dojo.addClass(_a.titleNode,"dijitHidden");
}
}
}});
})();
}


;if(!dojo._hasResource["com.ibm.lconn.personcard.legacy"]){
dojo._hasResource["com.ibm.lconn.personcard.legacy"]=true;
dojo.provide("com.ibm.lconn.personcard.legacy");
dojo.require("lconn.core.bizCard.bizCardUtils");
dojo.require("lconn.profiles.bizCard.bizCard");
dojo.require("lconn.communities.bizCard.bizCard");
dojo.require("lconn.profiles.sametime.sametimeProxyAwareness");
dojo.require("lconn.profiles.sametime.sametimeAwareness");
dojo.require("lconn.core.config.services");
dojo.require("com.ibm.oneui.util.Url");
(function(){
var _1=lconn.core.config.services;
var _2=_1.profiles;
if(!_2){
return;
}
var _3=com.ibm.oneui.util.Url.secure;
var _4=_3?_2.secureUrl:_2.url;
window.SemTagSvcConfig.baseUrl=_4;
window.livetextCfg.push({id:"hcard",match:".vcard",processEnclosedTags:false,tagHandler:lconn.profiles.bizCard.bizCard,loaded:true,baseURL:_4});
})();
}


;if(!dojo._hasResource["lconn.core.header.apps"]){
dojo._hasResource["lconn.core.header.apps"]=true;
dojo.provide("lconn.core.header.apps");
dojo.require("lconn.core.config.services");
dojo.require("lconn.core.url");
dojo.require("com.ibm.oneui.util.proxy");
lconn.core.header.apps={userRoleSvcUrl:com.ibm.oneui.util.proxy(lconn.core.url.getServiceUrl(lconn.core.config.services.webresources).toString())+"/web/user/roles?",appBanners:{"global-moderator":["lotusBannerModeration"],"metrics-report-run":["lotusBannerHeaderMetrics","lotusBannerFooterMetrics"],"admin":["lotusBannerHeaderMetrics","lotusBannerFooterMetrics"],"mail-user":["lotusBannerMail","lotusBannerCalendar"]},updateBannerByRoles:function(){
var _1=lconn.core.header.apps;
var _2=_1.appBanners;
var _3=[];
for(var _4 in _2){
if(!_1.updateBanner(_2[_4],dojo.cookie("ROLE_"+_4),_4)){
_3.push(_4);
}
}
if(_3.length>0){
dojo.xhrGet({url:_1.userRoleSvcUrl+dojo.objectToQuery({role:_3}),handleAs:"json",load:function(_5){
for(var _6 in _5){
_1.updateBanner(_2[_6],_5[_6],_6);
}
},timeout:10000});
}
},updateBanner:function(_7,_8,_9){
if((_8==false)||(_8=="false")){
return true;
}
if(!dojo.isArray(_7)){
_7=[_7];
}
var _a=dojo.map(_7,function(id){
return dojo.byId(id);
});
_a=dojo.filter(_a,function(_b){
return _b!=undefined;
});
if(_a.length>0&&_8==undefined){
return false;
}
if((_8==true)||(_8=="true")){
if(_9=="mail-user"&&lconn.core.config.services.connectionsmail){
dojo.require("com.ibm.lconn.socialmail.gadget.NavigationHandler");
new com.ibm.lconn.socialmail.gadget.NavigationHandler();
}
dojo.forEach(_a,function(_c){
_c.style.display="";
});
}
return true;
},updateUserNameMenu:function(){
var _d=dojo.byId("logoutLink");
var _e=dojo.byId("logoutContainer");
if(_d&&_e){
_e.appendChild(_d);
_d.style.display="block";
}
},onLogin:function(){
for(var _f in lconn.core.header.apps.appBanners){
dojo.cookie("ROLE_"+_f,null,{expires:-1,path:"/"});
}
},updateLoginRegion:function(){
dijit.setWaiRole(dojo.byId("logoutLabel"),"region");
dijit.removeWaiRole(dojo.byId("loginLabel"));
}};
dojo.addOnLoad(function(){
var _10=dojo.byId("headerUserName");
var _11=lconn.core.auth.isAuthenticated();
if(_10){
dojo.attr(_10,"onmenuloaded","lconn.core.header.apps.updateUserNameMenu");
}
if(!_11){
lconn.core.auth.addLoginHandler(lconn.core.header.apps.onLogin);
}
});
}


;if(!dojo._hasResource["lconn.core.bundle_common"]){
dojo._hasResource["lconn.core.bundle_common"]=true;
dojo.provide("lconn.core.bundle_common");
dojo.require("com.ibm.ajax.auth");
dojo.require("com.ibm.mm.livetext.serviceImpl");
dojo.require("com.ibm.oneui.util.openAround");
dojo.require("com.ibm.oneui.util.proxy");
dojo.require("dijit.CheckedMenuItem");
dojo.require("dijit.Dialog");
dojo.require("dijit.DialogUnderlay");
dojo.require("dijit.Menu");
dojo.require("dijit.MenuItem");
dojo.require("dijit.MenuSeparator");
dojo.require("dijit.PopupMenuItem");
dojo.require("dijit.Tooltip");
dojo.require("dijit.TooltipDialog");
dojo.require("dijit.form.Button");
dojo.require("dijit.form.CheckBox");
dojo.require("dijit.form.ComboBox");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.ValidationTextBox");
dojo.require("dijit.layout.ContentPane");
dojo.require("dojo.AdapterRegistry");
dojo.require("dojo.cache");
dojo.require("dojo.cldr.supplemental");
dojo.require("dojo.cookie");
dojo.require("dojo.data.util.filter");
dojo.require("dojo.data.util.simpleFetch");
dojo.require("dojo.data.util.sorter");
dojo.require("dojo.date");
dojo.require("dojo.date.locale");
dojo.require("dojo.date.stamp");
dojo.require("dojo.dnd.Moveable");
dojo.require("dojo.dnd.Mover");
dojo.require("dojo.dnd.TimedMoveable");
dojo.require("dojo.dnd.autoscroll");
dojo.require("dojo.dnd.common");
dojo.require("dojo.dnd.move");
dojo.require("dojo.fx");
dojo.require("dojo.fx.Toggler");
dojo.require("dojo.html");
dojo.require("dojo.i18n");
dojo.require("dojo.io.iframe");
dojo.require("dojo.parser");
dojo.require("dojo.regexp");
dojo.require("dojo.string");
dojo.require("lconn.core.util.dojoPatches");
dojo.require("lconn.core.a11y");
dojo.require("lconn.core.CommonTags.CommonTagsTypeAhead");
dojo.require("lconn.core.LanguageSelector");
dojo.require("lconn.core.MenuUtility");
dojo.require("lconn.core.Res");
dojo.require("lconn.core.TypeAhead");
dojo.require("lconn.core.TypeAheadDataStore");
dojo.require("lconn.core.header");
dojo.require("lconn.core.header.apps");
dojo.require("lconn.core.i18nOverrider");
dojo.require("lconn.core.url");
dojo.require("lconn.core.utilities");
dojo.require("lconn.core.widget.MenuLauncher");
dojo.require("lconn.core.xpath");
dojo.require("lconn.core.auth");
dojo.require("dojo.number");
dojo.require("net.jazz.ajax.xdloader");
dojo.require("lconn.core.CommonTags.AjaxCall");
dojo.require("lconn.core.CommonTags.FeedConverter");
dojo.require("lconn.core.CommonTags.TagWidget");
dojo.require("lconn.core.HTMLUtil");
dojo.require("lconn.core.HelpLauncher");
dojo.require("lconn.core.aria.Toolbar");
dojo.require("com.ibm.oneui.ckeditor.editor.dojoconfig");
dojo.require("lconn.core.DateUtil");
dojo.require("lconn.core.NameUtil");
dojo.require("lconn.core.PeopleDataStore");
dojo.require("lconn.core.PeopleTypeAhead");
dojo.require("lconn.core.SearchBar");
dojo.require("lconn.core.TextBox");
dojo.require("lconn.core.aria.TabPanel");
dojo.require("lconn.core.ckeditor");
dojo.require("lconn.communities.bizCard.bizCard");
dojo.require("lconn.core.people");
dojo.require("lconn.profiles.sametime.sametimeAwareness");
dojo.require("lconn.profiles.sametime.sametimeProxyAwareness");
dojo.require("com.ibm.lconn.layout.track");
}



window['_js_modules']=(window['_js_modules']||[]).concat(['lconn.core.bundle_common.js']);
