function lpAddVars(a,b,c){lpMTagConfig.vars=lpMTagConfig.vars||[];lpMTagConfig.vars.push([a,b,c])}function lpSendData(a,b,c){if(arguments.length>0)lpMTagConfig.vars=lpMTagConfig.vars||[],lpMTagConfig.vars.push([a,b,c]);if(typeof lpMTag!="undefined"&&typeof lpMTagConfig.pluginCode!="undefined"&&typeof lpMTagConfig.pluginCode.simpleDeploy!="undefined"){var d=lpMTagConfig.pluginCode.simpleDeploy.processVars();lpMTag.lpSendData(d,!0)}}function lpAddMonitorTag(a){if(!lpMTagConfig.lpTagLoaded){if(typeof a=="undefined"||typeof a=="object")a=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:lpMTagConfig.lpTagSrv?lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpTagSrv+"/hcp/html/mTag.js":"/hcp/html/mTag.js";a.indexOf("http")!=0?a=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+a+"?site="+lpMTagConfig.lpNumber:a.indexOf("site=")<0&&(a+=a.indexOf("?")<0?"?":"&",a=a+"site="+lpMTagConfig.lpNumber);var b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("charset","iso-8859-1");b.setAttribute("src",a);document.getElementsByTagName("head").item(0).appendChild(b)}}var lpMTagConfig=lpMTagConfig||{};lpMTagConfig.vars=lpMTagConfig.vars||[];lpMTagConfig.dynButton=lpMTagConfig.dynButton||[];lpMTagConfig.lpProtocol=document.location.toString().indexOf("https:")==0?"https":"http";lpMTagConfig.pageStartTime=(new Date).getTime();if(!lpMTagConfig.pluginsLoaded)lpMTagConfig.pluginsLoaded=!1;lpMTagConfig.loadTag=function(){for(var a=document.cookie.split(";"),b={},c=0;c<a.length;c++){var d=a[c].substring(0,a[c].indexOf("="));b[d.replace(/^\s+|\s+$/g,"")]=a[c].substring(a[c].indexOf("=")+1)}a=b.HumanClickRedirectOrgSite;b=b.HumanClickRedirectDestSite;if(!lpMTagConfig.pluginsLoaded)lpMTagConfig.pageLoadTime=(new Date).getTime()-lpMTagConfig.pageStartTime,b="?site="+(a==lpMTagConfig.lpNumber?b:lpMTagConfig.lpNumber)+"&d_id="+lpMTagConfig.deploymentID+"&default=simpleDeploy",lpAddMonitorTag(lpMTagConfig.deploymentConfigPath!=null?lpMTagConfig.lpProtocol+"://"+lpMTagConfig.deploymentConfigPath+b:lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpTagSrv+"/visitor/addons/deploy2.asp"+b),lpMTagConfig.pluginsLoaded=!0};window.attachEvent?window.attachEvent("onload",lpMTagConfig.loadTag):window.addEventListener("load",lpMTagConfig.loadTag,!1);(function(){lpMTagConfig.containsUnit=!1;lpMTagConfig.containsLanguage=!1;for(var a=0;a<lpMTagConfig.vars.length;a++){var b=null;lpMTagConfig.vars[a].length==2?b=lpMTagConfig.vars[a][0]:lpMTagConfig.vars[a].length>2&&(b=lpMTagConfig.vars[a][1]);switch(b){case"unit":lpMTagConfig.containsUnit=!0;break;case"language":lpMTagConfig.containsLanguage=!0}}})();lpMTagConfig.lpTagSrv=lpMTagConfig.lpTagSrv||"sales.liveperson.net";lpMTagConfig.lpServer=lpMTagConfig.lpServer||"sales.liveperson.net";lpMTagConfig.lpNumber=lpMTagConfig.lpNumber||"3815120";lpMTagConfig.deploymentID=window.lpUnit||lpMTagConfig.deploymentID||"ibmUSNew";if(!lpMTagConfig.containsUnit){lpMTagConfig.vars.push(["page","unit",window.lpUnit||editskill.split("-")[0]])}if(!lpMTagConfig.containsLanguage){lpMTagConfig.vars.push(["session","language",window.lpLanguage||editskill.split("-")[1]])}var newLpButtonCon='<div id="lpbutton"><li class="ibm-access"></li></div>';lpMTagConfig.commonLib=ibmCommon&&ibmCommon.info?ibmCommon:ibmweb&&ibmweb.info?ibmweb:"none";lpMTagConfig.designVersion="";if(lpMTagConfig.commonLib!="none"){lpMTagConfig.commonLib.queue.push(function(){return typeof lpMTagConfig.commonLib.info.v16=="undefined"==false},function(){if(lpMTagConfig.commonLib.info.v17){lpMTagConfig.designVersion="-v17";lpMTagConfig.vars.push(["overlayShowing","false"]);ibmweb.queue.push(function(){return dojo.query("div.dijitDialog").length==1},function(){lpMTagConfig.vars.push(["overlayShowing","true"])});if(dojo.query("#lpbutton").length==1){dojo.place(newLpButtonCon,dojo.query("#lpbutton")[0],"replace")}else if(dojo.query("ul.ibm-live-assistance-list").length>0){dojo.place(newLpButtonCon,dojo.query("ul.ibm-live-assistance-list")[0],"first")}}if(lpMTagConfig.commonLib.info.v16){lpMTagConfig.designVersion="-v16";lpMTagConfig.vars.push(["overlayShowing","false"]);jQuery("div.ibm-common-overlay").focus(function(){lpMTagConfig.vars.push(["overlayShowing","true"])});if(jQuery("#lpbutton").length==1){jQuery("div#lpbutton").attr("id","oldLpButton");jQuery("div#oldLpButton").after(newLpButtonCon);jQuery("div#oldLpButton").remove()}else if(jQuery("ul.ibm-live-assistance-list").length>0){jQuery("ul.ibm-live-assistance-list").prepend(newLpButtonCon)}}if(lpMTagConfig.commonLib.info.v15){lpMTagConfig.designVersion="-v15"}if(lpMTagConfig.commonLib.info.v14){lpMTagConfig.designVersion="-v14"}lpMTagConfig.vars.push(["session","defaultStyle",lpMTagConfig.designVersion])})}else{lpMTagConfig.vars.push(["session","defaultStyle",lpMTagConfig.designVersion])}
