"undefined"==typeof lc5Class&&(lc5Class=function(){});var lc5=new lc5Class;lc5.doneLoadingInline=!1;lc5.popup={};lc5.contextPath="";lc5.domain="lentis.livecom.net";lc5.sidVar="sID";lc5.cidVar="cID";lc5.lastURLVar="lastURL";lc5.elements=[];lc5.lcElements=[];lc5.winHeight=[];lc5.winWidth=[];lc5.chat_scheme=[];lc5.resizable=[];lc5.bgColor=[];lc5.CHAT_INLINE_POSITION={};lc5.CHAT_INLINE_BADGE={};lc5.CHAT_INLINE_BTNBACKGROUND={};lc5.CHAT_INLINE_BTNTEXT={};lc5.CHAT_INLINE_TITLE={};lc5.CHAT_INLINE_HEADER_HTML={};
lc5.TITLE_COLOR={};lc5.AGENT_MESSAGE_BUBBLE_COLOR={};lc5.VISITOR_MESSAGE_BUBBLE_COLOR={};lc5.SYSTEM_MESSAGE_BUBBLE_COLOR={};lc5.SUBHEADER_MESSAGE_COLOR={};lc5.SUBHEADER_BACKGROUND_COLOR={};lc5.VISITOR_STOP_CHAT_ENABLED={};lc5.LC5INLINE={};lc5.TITLE_FONT={};lc5.TITLE_FONT_SIZE={};lc5.SUBHEADER_FONT={};lc5.SUBHEADER_FONT_SIZE={};lc5.AGENT_FONT={};lc5.AGENT_FONT_SIZE={};lc5.VISITOR_FONT={};lc5.VISITOR_FONT_SIZE={};lc5.SYSTEM_FONT={};lc5.SYSTEM_FONT_SIZE={};lc5.CHAT_COOKIE_ENABLED="0";
lc5.CHAT_RESUMED_ACTIVE=!1;lc5.CHAT_ACTIVE_ID="";lc5.EDGES_STYLE={};lc5.DBNAME="";lc5.dg=function(a){return document.getElementById(a)};lc5.dgt=function(a){return document.getElementsByTagName(a)};lc5.dce=function(a){return document.createElement(a)};lc5.firstload=!0;lc5.modQuery="";lc5.counter=0;lc5.refreshRate=8E3;lc5.buttonRate=2;lc5.ltrRate=NaN;lc5.loaderTimer;lc5.ID=null;lc5.isCookieEn=null;lc5.elFilter={parseButton:!0};lc5.disableWindowName=!1;
lc5.log=function(a){window.console&&window.console.log&&window.console.log(a)};lc5.winNameRegex=function(){return/\r\n{.*}\r\n/gm};lc5.gec=function(a,b,c){a="*"==b&&a.all?a.all:a.getElementsByTagName(b);b=[];for(var d,e=0;e<a.length;e++)d=a[e],-1!=d.className.indexOf(c)&&b.push(d);return b};lc5.re=function(a){a.parentNode.removeChild(a)};lc5.attachEvent=function(a,b,c){a&&(a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener?a.addEventListener(b,c,!1):a.setAttribute("on"+b,c))};
lc5.start=function(){try{lc5.validateDomain()&&(lc5.ensureInlineWidget(),lc5.executeBootStrap(),lc5.isCookieEn=lc5.checkCookieAvailabiilty(),lc5.ID=lc5.getFixedRand(4),lc5.parseElements(),lc5.validate(),lc5.composeMod(),lc5.update(),lc5.loadData(!0))}catch(a){lc5.log(a)}};lc5.findAttrByLcGroup=function(a){for(var b=0;b<lc5.lcElements.length;++b){var c=lc5.lcElements[b].attr,d=c.lcType.nodeValue;if(("button"==d||"link"==d)&&c.lcGroup.nodeValue==a)return lc5.lcElements[b].attr}return[]};
lc5.loadNewInline=function(a){var b=lc5.CHAT_INLINE_BTNBACKGROUND[a];3>b.length&&(b="000");var c=lc5.TITLE_COLOR[a];3>c.length&&(c="f00");var d=lc5.winGet("ActiveChatID"),e=lc5.winGet("ActiveChatState"),f=lc5.findAttrByLcGroup(a);lc5.LC5INLINE[a]={argsOK:{ctype:"inline"},groupID:a,savedURL:lc5.composeClickUrl(f,!1,!1,null,null,d,e),currentAnchorId:"currentAnchorId",VIPopened:!1,agentFirstStatus:"DONE",agentStatus:{state:"",isChatActive:lc5.CHAT_RESUMED_ACTIVE,isChatStopped:!1},chat_config:{onlineWidgetSize:"2",
onlineColor:"#"+b,onlineWidgetPosition:lc5.CHAT_INLINE_POSITION[a],onlineChatButton:"//"+lc5.domain+lc5.contextPath+"/inline/img/click2chat.png",onlineWidgetOnOff:lc5.CHAT_INLINE_BADGE[a],onlineMinimizedButtonBackground:"#"+b,onlineMinimizedButtontext:lc5.CHAT_INLINE_BTNTEXT[a],onlineTitle:lc5.CHAT_INLINE_TITLE[a],onlineEdgesStyle:lc5.EDGES_STYLE[a],onlineTitleColor:"#"+c,onlineHTMLheader:lc5.CHAT_INLINE_HEADER_HTML[a],onlineStopButton:lc5.VISITOR_STOP_CHAT_ENABLED[a],onlineAgentMessageBubbleColor:lc5.AGENT_MESSAGE_BUBBLE_COLOR[a],
onlineVisitorMessageBubbleColor:lc5.VISITOR_MESSAGE_BUBBLE_COLOR[a],onlineSystemMessageBubbleColor:lc5.SYSTEM_MESSAGE_BUBBLE_COLOR[a],onlineSubHeaderMessageColor:lc5.SUBHEADER_MESSAGE_COLOR[a],onlineSubHeaderBackgroundColor:lc5.SUBHEADER_BACKGROUND_COLOR[a],onlineTitleFont:lc5.TITLE_FONT[a],onlineTitleFontSize:lc5.TITLE_FONT_SIZE[a],onlineSubHeaderFont:lc5.SUBHEADER_FONT[a],onlineSubHeaderFontSize:lc5.SUBHEADER_FONT_SIZE[a],onlineAgentFont:lc5.AGENT_FONT[a],onlineAgentFontSize:lc5.AGENT_FONT_SIZE[a],
onlineVisitorFont:lc5.VISITOR_FONT[a],onlineVisitorFontSize:lc5.VISITOR_FONT_SIZE[a],onlineSystemFont:lc5.SYSTEM_FONT[a],onlineSystemFontSize:lc5.SYSTEM_FONT_SIZE[a],onlineDefaultHeight:lc5.winHeight[a],onlineOriginalHeight:lc5.winHeight[a],onlineDefaultWidth:lc5.winWidth[a],dbName:lc5.DBNAME}}};lc5.initializeFromCookie=function(){var a=lc5.readCookie(LC5inline_INLINE_SETTINGS);null!=a&&(a=JSON.parse(decodeURIComponent(a)),lc5.initializeInlineWidgetFromConfig(a))};
lc5.initializeInlineWidget=function(a,b){var c=lc5.LC5INLINE[a];c&&(c.currentAnchorId=b?b:"",lc5.initializeInlineWidgetFromConfig(c),lc5.CHAT_COOKIE_ENABLED&&"1"===lc5.CHAT_COOKIE_ENABLED&&(document.cookie=LC5inline_INLINE_SETTINGS+"\x3d"+encodeURIComponent(JSON.stringify(c))))};
lc5.initializeInlineWidgetFromConfig=function(a){window.LC5inline.argsOK=a.argsOK;window.LC5inline.savedURL=a.savedURL;window.LC5inline.VIPopened=a.VIPopened;window.LC5inline.agentFirstStatus=a.agentFirstStatus;window.LC5inline.agentStatus=a.agentStatus;window.LC5inline.chat_config=a.chat_config;window.LC5inline.groupID=a.groupID;window.LC5inline.initialized=!0;window.LC5inline.currentAnchorId=a.currentAnchorId};
lc5.validateDomain=function(){return lc5.domainRestriction?lc5.domainRestriction.test(document.location.href):!0};lc5.executeBootStrap=function(){if(lc5.onStartup)lc5.onStartup()};lc5.checkCookieAvailabiilty=function(){var a=navigator.cookieEnabled?!0:!1;"undefined"!=typeof navigator.cookieEnabled||a||(document.cookie="lc_testcookie",a=-1!=document.cookie.indexOf("lc_testcookie")?!0:!1);return a};
lc5.parseElements=function(){var a=lc5.dgt("lcElement");lc5.mod=[];lc5.mod.mod=[];if(0==a.length){lc5.lcEl=[];for(var a=lc5.gec(document,"span","lc5element"),b=0;b<a.length;b++){var c=a[b].innerHTML.replace(/\s*?\x3c!--/,"\x3cspan "),c=c.replace("--\x3e","/\x3e"),d=document.createElement("div");d.innerHTML=c;c=d.firstChild.attributes.lcType.nodeValue;if("button"!=c&&"link"!=c||lc5.elFilter.parseButton){lc5.lcEl[b]=d.firstChild;lc5.lcElements[b]=[];lc5.lcElements[b].baseparent=a[b];lc5.lcElements[b].attr=
[];lc5.lcElements[b].attr=lc5.lcEl[b].attributes;try{lc5.processElement(b)}catch(e){}}}}else for(b=0;b<a.length;b++){lc5.lcElements[b]=[];lc5.lcElements[b].baseparent=a.item(b).parentNode;lc5.lcElements[b].attr=[];lc5.lcElements[b].attr=a.item(b).attributes;try{lc5.processElement(b)}catch(f){}}};lc5Class.prototype.evalAsFunction=function(a){if("undefined"!=typeof a){var b;try{if(a.match(/\s*function\s*\(.*\)\s*{.*}\s*/))eval("lc5.F\x3d"+a),b=lc5.F();else return a}catch(c){b=a}return b}return null};
lc5.processElement=function(a){var b=lc5.lcElements[a].attr.lcType.nodeValue;a=lc5.lcElements[a].attr;"page"==b&&(lc5.aid=a.lcAccount.nodeValue,lc5.rawTag="undefined"==typeof a.lcTag?"":a.lcTag.nodeValue,lc5.cat="undefined"==typeof a.lcCat?"":a.lcCat.nodeValue,lc5.tag=lc5.evalAsFunction(lc5.rawTag),lc5.cat=lc5.evalAsFunction(lc5.cat));if("button"==b||"link"==b)lc5.mod.chat=!0,"undefined"!=typeof a.lcChatInline&&"true"==a.lcChatInline.nodeValue&&("undefined"!=typeof a.lcInlinePos&&a.lcInlinePos.nodeValue&&
(lc5.inlineChatPos=a.lcInlinePos.nodeValue),lc5.inlineLoaded||(lc5.loadAPI("chat","1.0","lc5.chat.loadInlineChat"),lc5.inlineLoaded=!0));else if("mod"==b){var c="undefined"==typeof a.lcKey?"":a.lcKey.nodeValue;lc5.mod[b].push(c);switch(c){case "LTR":lc5.LTRGroup="undefined"==typeof a.lcGroup?"":a.lcGroup.nodeValue;break;case "WSS":lc5.WSSGroup="undefined"==typeof a.lcGroup?"":a.lcGroup.nodeValue;lc5.WSSLanguage="undefined"==typeof a.lcLanguage?null:a.lcLanguage.nodeValue;lc5.WSSChannel="undefined"==
typeof a.lcChannel?null:a.lcChannel.nodeValue;lc5.WSSRole="undefined"==typeof a.lcRole?null:a.lcRole.nodeValue;lc5.WSSUser="undefined"==typeof a.lcUser?null:a.lcUser.nodeValue;lc5.WSSPass="undefined"==typeof a.lcPass?null:a.lcPass.nodeValue;b="undefined"==typeof a.lcCallback?null:a.lcCallback.nodeValue;lc5.loadAPI("kb","1.0",b);break;case "BOT":b="undefined"==typeof a.lcCallback?null:a.lcCallback.nodeValue,lc5.loadAPI("bot","1.0",b)}}};
lc5.validate=function(){var a=[],b=function(){return{valid:!0}},c=!1,d=!0,e=!1,f=!1,h=!1,g=b(),l=b(),p=b(),q=b(),n=b(),s=b(),t=b(),b=b(),r=lc5.lcElements;0<r.length&&(c=!0);for(var m=0;m<r.length;m++){var k=r[m],u=null;k.attr.lcType&&(u=k.attr.lcType.nodeValue);u||(d=!1);k.attr.lcIframeProxy&&(lc5.iframeProxy="//"+(window.location.host||window.location.hostname)+k.attr.lcIframeProxy.nodeValue);switch(u){case "page":e=!0;k.attr.lcAccount&&(f=!0);k.attr.lcTag&&(h=!0);break;case "button":k.attr.lcGroup||
(g.valid=!1);k.attr.lcOnval||(l.valid=!1);k.attr.lcOffval||(p.valid=!1);break;case "link":k.attr.lcGroup||(q.valid=!1);k.attr.lcOnval||(n.valid=!1);k.attr.lcOffval||(s.valid=!1);break;case "mod":k.attr.lcKey||(t.valid=!1);k.attr.lcGroup||(b.valid=!1);break;default:d=!1}}c?d?e?(f||a.push(-201),h||a.push(-202),g.valid||a.push(-301),l.valid||a.push(-302),p.valid||a.push(-303),q.valid||a.push(-401),n.valid||a.push(-402),s.valid||a.push(-403),t.valid||a.push(-501),b.valid||a.push(-502)):a.push(-200):a.push(-101):
a.push(-100);if(0<a.length)throw lc5.DOMPoll(function(b){lc5.appendScript("lc5ErrorScript",null,"//"+lc5.domain+"/5g/ws/?error\x3d"+encodeURIComponent(a[0]))},window.document.body,100,0,600),a;};lc5.DOMPoll=function(a,b,c,d,e,f){f||(f=0);setTimeout(function(){b?a(b):e>f?lc5.DOMPoll(a,b,c,d,e,++f):d&&d()},f?c:0)};
lc5.composeMod=function(){lc5.mod.mod.sort();for(var a=0;a<lc5.mod.mod.length;a++)lc5.modQuery+=lc5.mod.mod[a]+";";lc5.modQuery=encodeURIComponent(lc5.modQuery);lc5.modQuery="\x26mod\x3d"+lc5.modQuery};
lc5.loadData=function(a,b){var c=lc5.composeQueryString(),c=null!=c&&""!=c?"\x26"+c:"",d=lc5.dgt("head").item(0);if(!d){var d=lc5.dce("head"),e=lc5.dgt("html").item(0);e.hasChildNodes()?e.insertBefore(e.firstChild,d):e.appendChild(d);e=null}a?(e=lc5.dce("script"),e.type="text/javascript",e.id="lcloadscript"):((e=lc5.dg("lcscript"))&&e.parentNode.removeChild(e),e=lc5.dce("script"),e.type="text/javascript",e.id="lcscript");var f="";document.location.href==lc5.winGet(lc5.lastURLVar+lc5.ID,"lastURL")&&
lc5.getSIDCID().match(/&sID.+?&cID.+/g)?lc5.winPut(lc5.lastURLVar+lc5.ID,document.location.href,20,lc5.lastURLVar):(lc5.winPut(lc5.lastURLVar+lc5.ID,document.location.href,20,lc5.lastURLVar),f="\x26ctp\x3d"+encodeURIComponent(document.location.href),f+="\x26r\x3d"+lc5.getRandString(4));f+="\x26tag\x3d"+encodeURIComponent(lc5.evalAsFunction(lc5.rawTag));lcgroup="undefined"!=typeof lc5.LTRGroup?"\x26lcgroup\x3d"+encodeURIComponent(lc5.LTRGroup):"";for(var h="false",g=lc5.lcElements,l=0;l<g.length&&
(h=lc5.lcElements[l].attr,h="undefined"==typeof h.lcCookieDisabled?"false":h.lcCookieDisabled.nodeValue,"true"!=h);l++);a?e.src="//"+lc5.domain+lc5.contextPath+"/5g/hdl/?loadcode\x3d"+a+"\x26aid\x3d"+encodeURIComponent(lc5.aid)+lc5.getSIDCID()+lcgroup+lc5.modQuery+"\x26s\x3d"+lc5.lcElements.length+c+"\x26ref\x3d"+encodeURIComponent(document.referrer)+f+"\x26disableCookie\x3d"+h:0==lc5.counter%lc5.buttonRate?e.src="//"+lc5.domain+lc5.contextPath+"/5g/hdl/"+lc5.getRandString(8)+"/?loadcode\x3d"+a+"\x26aid\x3d"+
encodeURIComponent(lc5.aid)+lc5.getSIDCID()+lcgroup+lc5.modQuery+"\x26s\x3d"+lc5.lcElements.length+c+f:0==lc5.counter%lc5.ltrRate&&(e.src="//"+lc5.domain+lc5.contextPath+"/5g/hdl/"+lc5.getRandString(8)+"/?loadcode\x3d"+a+"\x26aid\x3d"+encodeURIComponent(lc5.aid)+lc5.getSIDCID()+lcgroup+lc5.modQuery+f);d.appendChild(e);e=d=null;lc5.counter++;lc5.loaderTimer=setTimeout(function(){lc5.loadData(!1)},lc5.refreshRate)};
lc5.update=function(){for(var a=lc5.composeQueryString(),b=0;b<lc5.lcElements.length;b++){var c=lc5.lcElements[b].attr,d=c.lcEmbed&&"true"==c.lcEmbed.nodeValue;"button"==c.lcType.nodeValue?(parentObj=lc5.createAnchor(b,lc5.lcElements[b].baseparent,"link",d),lc5.createButtonImage(b,parentObj),a+="g"+b+"\x3d"+c.lcGroup.nodeValue+"\x26"):"link"==c.lcType.nodeValue&&(lc5.createAnchor(b,null,null,d),a+="g"+b+"\x3d"+c.lcGroup.nodeValue+"\x26")}return lc5.loadurl=""!=a?a.substr(0,a.length-1):""};
lc5.createButtonImage=function(a,b){var c=lc5.lcElements[a].attr;if(null==lc5.dg("lc5_"+a)){var d=lc5.dce("img");d.id="lc5_"+a;d.border="0";"undefined"!=typeof c.lcAlt&&(d.alt=d.title=c.lcAlt.nodeValue);"undefined"!=typeof c.lcStatic&&(d.src=c.lcOnval.nodeValue);b.appendChild(d)}};
lc5.createAnchor=function(a,b,c,d){var e=lc5.lcElements[a].attr;c=c||"";if(null==lc5.dg("lc5_"+a)){b=lc5.dce("a");b.id="lc5_"+a+c;b.href="javascript:void(0);";"undefined"!=typeof e.lcClass&&(b.className=e.lcClass.nodeValue);"link"==e.lcType.nodeValue&&("undefined"!=typeof e.lcAlt&&(b.title=e.lcAlt.nodeValue),"undefined"!=typeof e.lcStatic&&(b.innerHTML=e.lcOnval.nodeValue));var f=e.lcGroup.nodeValue,h=lc5.winGet("ActiveChatID"),g=lc5.winGet("ActiveChatState");b.onclick=d?function(){if(!lc5.inlineScript){lc5.param=
lc5.composeClickUrl(e,!0,!1,null,null,h,g);var a=document.getElementsByTagName("head")[0],b=document.createElement("script");lc5.inlineScript=b;b.type="text/javascript";b.charset="iso-8859-1";b.src="//"+lc5.domain+lc5.contextPath+"/inline/js/inlinescript.js";a.appendChild(b)}}:function(){if(lc5.win&&!lc5.win.closed)return!1;var a;a=lc5.winGet("ActiveChatID");var b=lc5.winGet("ActiveChatState");a="undefined"!==typeof e.lcCollaboration&&"true"===e.lcCollaboration.nodeValue?lc5.composeClickUrl(e,!1,
!0):lc5.composeClickUrl(e,!1,!1,null,null,a,b);var c=lc5.winHeight[f],d=lc5.winWidth[f],b=lc5.chat_scheme[f],g=(screen.width-d)/2,r=(screen.height-c)/2,m=lc5.aid.replace(/\//gi,"SL"),m=m.replace(/\+/gi,"PL"),m=m.replace(/=/gi,"EL"),m="webbased_aws_"+m,g="height\x3d"+c+",width\x3d"+d+",top\x3d"+r+",left\x3d"+g+",scrollbars\x3dno,resizable\x3d"+lc5.resizable[f]+",status\x3dno,toolbar\x3dno,directories\x3dno",c=!1,d="";if(lc5.popup[f])lc5.win=window.open(b+a,m,g);else if(window.LC5inline&&"undefined"!==
typeof window.LC5inline.currentAnchorId&&window.LC5inline.currentAnchorId!==this.id&&(c=!0,d=window.LC5inline.currentAnchorId),!window.LC5inline||"undefined"!==typeof window.LC5inline.groupID&&window.LC5inline.groupID===f&&"undefined"!==typeof window.LC5inline.initialized&&!0!==window.LC5inline.initialized||("button"===e.lcType.nodeValue?lc5.initializeInlineWidget(f,this.id):lc5.initializeInlineWidget(f,"")),"undefined"!==typeof window.LC5inline.VIPopened&&window.LC5inline.VIPopened?(window.LC5inline.showInlineChat(),
window.LC5inline.forceInBox(),window.LC5inline.closeInlineStatus()):(window.LC5inline.openVIPWindow(a),window.LC5inline.hideChatBadge()),this.id&&((a=document.getElementById(this.id))&&"button"===e.lcType.nodeValue&&(a.style.display="none"),c&&(a=document.getElementById(d))))a.style.display="";window.lccb&&(lc5.refreshRate=4E3);return!1};var l=lc5.lcElements[a].baseparent.appendChild(b);b=null}return l};
lc5.composeFieldsUrl=function(a){if("undefined"!=typeof a.lcFields){a=a.lcFields.nodeValue.split(";");for(var b="",c=0;c<a.length;c++)b+=encodeURIComponent(a[c])+":"+encodeURIComponent(lc5.dg(a[c]).value)+";";return b}return""};
lc5.composeClickUrl=function(a,b,c,d,e,f,h){if(0===a)if(e)for(var g=0;g<lc5.lcElements.length&&(a=lc5.lcElements[g].attr,a.lcGroup.nodeValue!==e);g++);else a=lc5.lcElements[0].attr;e=a.lcGroup.nodeValue;g=lc5.getSIDCID(!0);g={aid:lc5.aid,gid:e,agent:"undefined"!==typeof a.agent?a.agent.nodeValue:0,skill:lc5.skill,tag:lc5.evalAsFunction(lc5.rawTag),cat:lc5.cat,chan:a.lcChan.nodeValue,fields:lc5.composeFieldsUrl(a),url:document.URL,ref:document.referrer,sID:g.sID,cID:g.cID,cCID:f?f:"",state:h?h:""};
a.lcCustomattributes&&(g.customattr=a.lcCustomattributes.nodeValue);a.lcId&&(g.lcId=lc5.evalAsFunction(a.lcId.nodeValue));if(b)return g;a="//"+lc5.domain+lc5.contextPath;c?(a=a+"/sitescript/collaboration/index.jsp?"+("h\x3d"+lc5.winHeight[e]),a+="\x26w\x3d"+lc5.winWidth[e],a+="\x26u\x3dv",a+="\x26aid\x3d"+encodeURIComponent(g.aid),a+="\x26gid\x3d"+g.gid,a+="\x26conid\x3d"+encodeURIComponent(g.cID),a+="\x26vid\x3d"+encodeURIComponent(g.sID),a+="\x26tag\x3d"+encodeURIComponent(g.tag),g.lcId&&(a+="\x26lcid\x3d"+
encodeURIComponent(g.lcId)),a+="\x26fields\x3d"+encodeURIComponent(g.fields),g.customattr&&(a+="\x26customattr\x3d"+encodeURIComponent(g.customattr))):(a+="/5g/ch/",a+="?___________________________________________________________\x3d",a+="\x26aid\x3d"+encodeURIComponent(g.aid),a+="\x26gid\x3d"+g.gid,a+="\x26agent\x3d"+g.agent,a+="\x26skill\x3d"+lc5.skill,a+="\x26tag\x3d"+encodeURIComponent(g.tag),a+="\x26cat\x3d"+encodeURIComponent(g.cat),a+="\x26chan\x3d"+g.chan,a+="\x26fields\x3d"+encodeURIComponent(g.fields),
g.customattr&&(a+="\x26customattr\x3d"+encodeURIComponent(g.customattr)),a+=lc5.getSIDCID(),g.lcId&&(a+="\x26lcId\x3d"+encodeURIComponent(g.lcId)));a+="\x26url\x3d"+encodeURIComponent(g.url);a+="\x26ref\x3d"+encodeURIComponent(g.ref);f&&(a+="\x26cCID\x3d"+encodeURIComponent(f));h&&(a+="\x26state\x3d"+encodeURIComponent(h));d&&(a+="\x26inv\x3d1\x26invState\x3d1");return a};
lc5.composeQueryString=function(){for(var a="",b=0;b<lc5.lcElements.length;b++){var c=lc5.lcElements[b].attr,d=c.lcType.nodeValue;"button"!=d&&"link"!=d||"undefined"!=typeof c.lcStatic||(a+="g"+b+"\x3d"+c.lcGroup.nodeValue+"\x26","undefined"!=typeof c.lcId&&(a+="lcId"+b+"\x3d"+encodeURIComponent(lc5.evalAsFunction(c.lcId.nodeValue))+"\x26"))}return lc5.loadurl=""!=a?a.substr(0,a.length-1):""};
lc5.refresh=function(a){a=a.split(",");for(var b=0;b<a.length;b++){var c=lc5.lcElements[b].attr,d;if("button"==c.lcType.nodeValue){if(d=lc5.dg("lc5_"+b),a[b]!=lc5.lcElements[b].prev_state&&"undefined"===typeof c.lcStatic)if("undefined"!==typeof c.onchange&&eval(c.onchange.nodeValue+"('"+("1"==a[b]?"on":"off")+"', '"+a[b]+"')"),0<a[b])d.style.display="",d.style.visibility="",d.src=c.lcOnval.nodeValue;else{var e="";switch(a[b]){case "-3":e="error";break;case "-2":e=c.lcClosingHour?c.lcClosingHour.nodeValue:
"";break;case "-1":e=c.lcOccupied?c.lcOccupied.nodeValue:""}""==e&&(e=c.lcOffval.nodeValue);""==e||"error"==e?(d.style.display="none",d.style.visibility="hidden"):d.src=e}}else if("link"==c.lcType.nodeValue&&a[b]!=lc5.lcElements[b].prev_state&&"undefined"===typeof c.lcStatic)if("undefined"!==typeof c.onchange&&eval(c.onchange.nodeValue+"('"+("1"==a[b]?"on":"off")+"', '"+a[b]+"')"),d=lc5.dg("lc5_"+b),0<a[b])d.innerHTML=c.lcOnval.nodeValue;else{e="";switch(a[b]){case "-2":e=c.lcClosingHour?c.lcClosingHour.nodeValue:
"";break;case "-1":e=c.lcOccupied?c.lcOccupied.nodeValue:""}""===e&&(e=c.lcOffval.nodeValue);d.innerHTML=e}lc5.lcElements[b].prev_state=a[b]}};
lc5.setWinParam=function(a,b,c,d,e,f,h,g,l,p,q,n,s,t,r,m,k,u,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K){var v="0";switch(l){case "left":v="1";break;case "right":v="2";break;default:v="0"}lc5.CHAT_INLINE_POSITION[a]=v;lc5.CHAT_RESUMED_ACTIVE=b;lc5.winHeight[a]=c;lc5.winWidth[a]=d;lc5.chat_scheme[a]=g;lc5.resizable[a]="true"==e?"yes":"no";lc5.bgColor[a]=f;lc5.popup[a]="inline-chat"==h?!1:!0;lc5.CHAT_INLINE_BADGE[a]="image"==p?"1":"2";lc5.CHAT_INLINE_BTNBACKGROUND[a]=q;lc5.CHAT_INLINE_TITLE[a]=n;lc5.CHAT_INLINE_BTNTEXT[a]=
s;lc5.TITLE_COLOR[a]=t;lc5.CHAT_INLINE_HEADER_HTML[a]=r;lc5.VISITOR_STOP_CHAT_ENABLED[a]="1"==y?"true":"false";lc5.AGENT_MESSAGE_BUBBLE_COLOR[a]=m;lc5.VISITOR_MESSAGE_BUBBLE_COLOR[a]=k;lc5.SYSTEM_MESSAGE_BUBBLE_COLOR[a]=u;lc5.SUBHEADER_MESSAGE_COLOR[a]=w;lc5.SUBHEADER_BACKGROUND_COLOR[a]=x;lc5.TITLE_FONT[a]=z;lc5.TITLE_FONT_SIZE[a]=A;lc5.SUBHEADER_FONT[a]=B;lc5.SUBHEADER_FONT_SIZE[a]=C;lc5.AGENT_FONT[a]=D;lc5.AGENT_FONT_SIZE[a]=E;lc5.VISITOR_FONT[a]=F;lc5.VISITOR_FONT_SIZE[a]=G;lc5.SYSTEM_FONT[a]=
H;lc5.SYSTEM_FONT_SIZE[a]=I;lc5.EDGES_STYLE[a]=J;lc5.DBNAME=K;"inline-chat"===h&&lc5.loadNewInline(a)};lc5.ensureInlineWidget=function(){if(!lc5.doneLoadingInline){lc5.ensureLcFunction();var a=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript";b.charset="iso-8859-1";b.src="//"+lc5.domain+lc5.contextPath+"/inline/js/inline-widget.js";a.appendChild(b);lc5.doneLoadingInline=!0}};
lc5.ensureLcFunction=function(){var a=document.getElementsByTagName("head")[0],b=document.createElement("script");b.type="text/javascript";b.charset="iso-8859-1";b.src="//"+lc5.domain+lc5.contextPath+"/sitescript/chat/template/inline-chat/js/lc_function.js";a.appendChild(b)};
lc5.createCookie=function(a,b,c){if(c)if(0==c)c=";expires\x3d0";else{var d=new Date;d.setTime(d.getTime()+1E3*c);c=";expires\x3d"+d.toGMTString()}else c="";var d=";path\x3d/",e=document.domain;e&&(d=-1<e.indexOf("localhost")?d+(";domain\x3d"+e):d+(";domain\x3d."+e));document.cookie=a+"\x3d"+b+c+d+";SameSite\x3dNone;Secure"};
lc5.readCookie=function(a){a+="\x3d";for(var b=document.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};lc5.eraseCookie=function(a){lc5.createCookie(a,"",-1)};
lc5.appendScript=function(a,b,c,d){var e=lc5.dgt("head").item(0);if(!e){var e=lc5.dce("head"),f=lc5.dgt("html").item(0);f.hasChildNodes()?f.insertBefore(f.firstChild,e):f.appendChild(e)}(f=lc5.dg(a))&&f.parentNode.removeChild(f);f=lc5.dce("script");f.type="text/javascript";f.language="JavaScript";f.id=a;d&&(f.charset=d);c?f.src=c:f.text=b;e.appendChild(f)};
lc5.getJSON=function(){var a,b;if(a=lc5.winNameRegex().exec(window.name))try{lc5.getObjectJson(),b=JSON.decode(a[0])}finally{if("undefined"!==typeof b)return b}lc5.disableWindowName||(window.name+="\r\n{}\r\n");return{}};lc5.putJSON=function(a){a=JSON.encode(a);lc5.disableWindowName||(window.name=window.name.replace(lc5.winNameRegex(),""),window.name+="\r\n"+a+"\r\n")};lc5.timedVar=[];lc5.timedVar[lc5.sidVar]=20;lc5.timedVar[lc5.lastURLVar]=10;lc5.timedVar.ActiveChatID=3E3;
lc5.timedVar.ActiveChatState=3E3;lc5.isTimed=function(a){return null!=lc5.timedVar[a]};lc5.winPut=function(a,b){var c=lc5.getJSON();c[a]=b;lc5.isTimed(a)&&(c[a+"tStamp"]=1*new Date+1E3*lc5.timedVar[a]);lc5.putJSON(c)};lc5.winRemove=function(a){var b=lc5.getJSON();delete b[a];lc5.putJSON(b)};
lc5.winGet=function(a){var b=lc5.getJSON()[a],c;if(-1==a.indexOf("tStamp")){if(null==(c=lc5.winGet(a+"tStamp")))return"undefined"!=typeof b?b:null;if(1*new Date>c)return lc5.winRemove(a),lc5.winRemove(a+"tStamp"),null;lc5.winPut(a,b)}return"undefined"!=typeof b?b:null};lc5.put=function(a,b,c,d){d||(d=a);lc5.winPut(d,b);lc5.isCookieEn&&lc5.createCookie(encodeURIComponent(a),encodeURIComponent(b),c)};
lc5.get=function(a,b){b||(b=a);var c=lc5.readCookie(encodeURIComponent(a));return c=c?decodeURIComponent(c):lc5.winGet(b)};lc5.radix="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~".split("");lc5.getRandString=function(){for(var a="",b=new Date,c=lc5.radix.length;b>=c;)var d=b%c,b=Math.floor(b/c),a=a+lc5.radix[d];a+=lc5.radix[b];return a+=lc5.radix[Math.floor(Math.random()*c)]};lc5.getFixedRand=function(a){for(var b="",c=0;c<a;c++)b+=lc5.radix[Math.floor(62*Math.random())];return b};
lc5.getSIDCID=function(a){var b=lc5.readCookie(lc5.sidVar+lc5.encodeCookie(lc5.aid)),c=lc5.readCookie(lc5.cidVar+lc5.encodeCookie(lc5.aid));b||(b=lc5.get(lc5.sidVar))&&(b=encodeURIComponent(b));c||(c=lc5.get(lc5.cidVar))&&(c=encodeURIComponent(c));if(a)return{sID:decodeURIComponent(b),cID:decodeURIComponent(c)};a="";b&&"null"!=b&&(a="\x26sID\x3d"+b);c&&"null"!=c&&(a+="\x26cID\x3d"+c);return a};lc5.encodeCookie=function(a){return encodeURIComponent(a).replace(/%2F/gi,"/")};
lc5.JSON=new function(){this.decode=function(){var a,b,d,f;if(s("toString")){switch(arguments.length){case 2:d=arguments[0];a=arguments[1];break;case 1:n[typeof arguments[0]](arguments[0])===Function?(d=this,a=arguments[0]):d=arguments[0];break;default:d=this}if(e.test(d))try{if(b=c("(".concat(d,")")),a&&null!==b&&(f=n[typeof b](b))&&(f===Array||f===Object))for(d in b)b[d]=n[typeof result](result)!==Function&&(b.hasOwnProperty?b.hasOwnProperty(d):b.constructor.prototype[d]!==b[d])?a(d,b[d]):b[d]}catch(g){}else throw new JSONError("bad data");
}return b};this.encode=function(){var a=arguments.length?arguments[0]:this,c,d;if(null===a)c="null";else if(void 0!==a&&(d=n[typeof a](a)))switch(d){case Array:c=[];for(var e=0,f=0,g=a.length;f<g;f++)void 0!==a[f]&&(d=JSON.encode(a[f]))&&(c[e++]=d);c="[".concat(c.join(","),"]");break;case Boolean:c=String(a);break;case Date:c='"'.concat(a.getFullYear(),"-",b(a.getMonth()+1),"-",b(a.getDate()),"T",b(a.getHours()),":",b(a.getMinutes()),":",b(a.getSeconds()),'"');break;case Function:break;case Number:c=
isFinite(a)?String(a):"null";break;case String:c='"'.concat(a.replace(h,p).replace(l,q),'"');break;default:e=0;c=[];for(f in a)void 0!==a[f]&&(d=JSON.encode(a[f]))&&(c[e++]='"'.concat(f.replace(h,p).replace(l,q),'":',d));c="{".concat(c.join(","),"}")}return c};this.toDate=function(){var a=arguments.length?arguments[0]:this,b;f.test(a)?(b=new Date,b.setHours(1*a.substr(11,2)),b.setMinutes(1*a.substr(14,2)),b.setSeconds(1*a.substr(17,2)),b.setMonth(1*a.substr(5,2)-1),b.setDate(1*a.substr(8,2)),b.setFullYear(1*
a.substr(0,4))):g.test(a)&&(b=new Date(1E3*a));return b};var a={"\b":"b","\t":"t","\n":"n","\f":"f","\r":"r",'"':'"',"\\":"\\","/":"/"},b=function(a){return 10>a?"0".concat(a):a},c=function(a,b,c){return b=eval(""+a)},d=["","000","00","0",""],e=null,f=/^[0-9]{4}\-[0-9]{2}\-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}$/,h=/(\x5c|\x2F|\x22|[\x0c-\x0d]|[\x08-\x0a])/g,g=/^([0-9]+|[0-9]+[,\.][0-9]{1,3})$/,l=/([\x00-\x07]|\x0b|[\x0e-\x1f])/g,p=function(b,c){return"\\".concat(a[c])},q=function(a,b){var c=b.charCodeAt(0).toString(16);
return"\\u".concat(d[c.length],c)},n={"boolean":function(){return Boolean},"function":function(){return Function},number:function(){return Number},object:function(a){return a instanceof a.constructor?a.constructor:null},string:function(){return String},undefined:function(){return null}},s=function(a){function b(d,e){e=d[a];delete d[a];try{c(d)}catch(f){return d[a]=e,1}}return b(Array)&&b(Object)};try{e=/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/}catch(t){e=/^(true|false|null|\[.*\]|\{.*\}|".*"|\d+|\d+\.\d+)$/}};
window.JSON||(JSON={});
lc5.getObjectJson=function(){switch(typeof JSON){case "object":JSON.encode="function"===typeof JSON.stringify?JSON.stringify:lc5.JSON.encode;JSON.decode="function"===typeof JSON.parse?JSON.parse:lc5.JSON.decode;"function"!==typeof JSON.toDate&&(JSON.toDate=lc5.JSON.toDate);break;case "function":JSON.prototype.encode="function"===typeof JSON.stringify?JSON.stringify:lc5.JSON.encode,JSON.prototype.decode="function"===typeof JSON.parse?JSON.parse:lc5.JSON.decode,"function"!==typeof JSON.toDate&&(JSON.prototype.toDate=
lc5.JSON.toDate)}};
switch(typeof JSON){case "object":JSON.encode="function"===typeof JSON.stringify?JSON.stringify:lc5.JSON.encode;JSON.decode="function"===typeof JSON.parse?JSON.parse:lc5.JSON.decode;"function"!==typeof JSON.toDate&&(JSON.toDate=lc5.JSON.toDate);break;case "function":JSON.prototype.encode="function"===typeof JSON.stringify?JSON.stringify:lc5.JSON.encode,JSON.prototype.decode="function"===typeof JSON.parse?JSON.parse:lc5.JSON.decode,"function"!==typeof JSON.toDate&&(JSON.prototype.toDate=lc5.JSON.toDate)}
lc5.customData=[];lc5.addCustomData=function(a,b){try{if(2!=arguments.length)throw"e1";if(!a&&0!==a||!b&&0!==b)throw"e2";if(""===a)throw"e3";var c=lc5.customData;c[c.length]=a;c[c.length]=b;return lc5}catch(d){try{switch(d){case "e1":lc5.log("Syntax Error: lc5.addCustomData(key, value) requires 2 arguments");break;case "e2":lc5.log("Arguments error: lc5.addCustomData(key, value) - key or value undefined");break;case "e3":lc5.log("Arguments error: lc5.addCustomData(key, value) - key cannot be empty")}}catch(e){}}};
lc5.sendData=function(){lc5.transfer("customData",lc5.customData);lc5.customData.length=0};lc5.triggerInvitation=function(a,b,c,d){try{var e=!1;try{window.lccb&&window.lccb.lccbLoaded&&(e=!0)}catch(f){}if(!e){var h=lc5.winGet("invExp"+a),g=1*new Date;if(null==h||h&&h<=g)a=a?parseInt(a):0,e={},e.invitationId=a,null!=c&&(e.customData=c),"number"===typeof d&&(e.destGroupId=d),lc5.transfer("triggerInvitation",e),b||(b=0),lc5.winPut("invCD"+a,b)}}catch(l){lc5.log("Error triggering invite: "+l)}};
lc5.transfer=function(a,b){var c=0;switch(a){case "customData":c=1;break;case "triggerInvitation":c=2}var d=encodeURIComponent(JSON.encode(b)),d="//"+lc5.domain+lc5.contextPath+"/sitescript/gate.jsp?\x26aid\x3d"+encodeURIComponent(lc5.aid)+lc5.getSIDCID()+"\x26act\x3d"+c+"\x26json\x3d"+d;0!==c&&lc5.appendScript("customData",null,d)};lc5.getContactId=function(){return lc5.getSIDCID(!0).cID};lc5.getSessionId=function(){return lc5.getSIDCID(!0).sID};
lc5.groupAvailability=function(a,b){a&&b?lc5.appendScript("group_availability","","//"+lc5.domain+lc5.contextPath+"/sitescript/chat/groupAvailabilityCallBack.jsp?aid\x3d"+encodeURIComponent(lc5.aid)+"\x26cmd\x3dgroupAvailability\x26gid\x3d"+a+"\x26callback\x3d"+encodeURIComponent(b)):b&&"function"==typeof eval(b)&&eval(b+"(-1)")};
lc5.loadAPI=function(a,b,c){if(lc5.common)lc5[a]&&-1===navigator.userAgent.indexOf("MSIE 9")||(lc5["on"+a.substring(0,1).toUpperCase()+a.substring(1,a.length)+"Load"]=function(){"function"===typeof c?c(!0):"string"===typeof c&&eval(c+"(true);")},lc5.appendScript("lc_api_"+a,null,"//"+lc5.domain+lc5.contextPath+"/api/script/"+a+"/"+b));else{var d=lc5.onCommonLoad;lc5.onCommonLoad=function(){d&&d();lc5.loadAPI(a,b,c)};lc5.commonLoadRxed||lc5.appendScript("lc_api_common",null,"//"+lc5.domain+lc5.contextPath+
"/api/script/common/"+b);lc5.commonLoadRxed=!0}};lc5.ce={};lc5.ce.sendCustomEvent=function(a,b,c){b=lc5.ce.keyValsToURL(b);0<b.length&&(b="\x26"+b);c&&(b="lcCallback\x3d"+encodeURIComponent(c)+b);lc5.appendScript("ce_request",null,"//"+lc5.domain+lc5.contextPath+"/form/?"+a+"\x26"+b)};
lc5.ce.keyValsToURL=function(a){var b=[];if(a instanceof Array)for(var c=0;c<a.length;c++){var d=a[c],e=d.key,d=d.values;if(d instanceof Array)for(var f=0;f<d.length;f++){var h=d[f],e=encodeURIComponent(e),h=encodeURIComponent(h);b.push(e+"\x3d"+h)}}return b.join("\x26")};lc5.getDomain=function(a,b){b=b||!1;a=a.replace(/(https?:\/\/)?(www.)?/i,"");b||(a=a.split("."),a=a.slice(a.length-2).join("."));return-1!==a.indexOf("/")?a.split("/")[0]:a};
;lc5.start();