var lhnTrack=lhnTrackingEnabled;var blhnInstalled=0;if (typeof lhnInstalled !='undefined'){lhnTrack='f';blhnInstalled=1;}var lhnInstalled=1;var InviteRepeats;var zbrepeat=1;var bInvited=0;var bLHNAutoInvite=1;var bLHNOnline=0;InviteRepeats=0;var Zmutechime = lhnInviteChime;var lhnScriptTag;var lhnCustom1 = typeof (lhnCustom1) == 'undefined' ? '' : lhnCustom1;var lhnCustom2 = typeof (lhnCustom2) == 'undefined' ? '' : lhnCustom2;var lhnCustom3 = typeof (lhnCustom3) == 'undefined' ? '' : lhnCustom3;function pausecomp(millis){zadate = new Date();var zcurDate = null;do{var zcurDate = new Date();}while(zcurDate-zadate < millis);}if(blhnInstalled==0){var lhnjava;var lhnreg = new RegExp('/');var lhnreferrer = (document.referrer.length>400)?escape(document.referrer.substring(0,400)):escape(document.referrer);var lhnpagetitle=(document.title.length>100)?escape(document.title.substring(0,100)):escape(document.title);var srnd;var lhnsPath=(this.location.href.length>400)?escape(this.location.href.substring(0,400)):escape(this.location.href);if(!(navigator.javaEnabled())){lhnjava="No";}else{lhnjava="Yes";}var lhnrand_no = Math.random();var lhnsRes;var lhnsDepth;if(window.screen){lhnsRes=screen.width + 'x' + screen.height;lhnsDepth=screen.colorDepth;}}function WriteLHNMessage(lhnmes,AutoInvite){if (lhnmes.indexOf("[promo]")>-1){lhnmes=lhnmes.replace('[promo]','');var elems = document.getElementsByClassName('LHNInviteAcceptButton');for(var i = 0; i != elems.length; ++i){elems[i].style.display = "none";}}var lhnInviteWidth='278px';if (bLHNOnline==0) {return false;}if (window.innerWidth < 451) {document.getElementById("Zsmenu").style.width = "200px";lhnInviteWidth='200px;'}bLHNAutoInvite=AutoInvite;var url="";document.getElementById("Zsleft").innerHTML = lhnmes+url;var stopAt = 250;stopAt = ((stopAt+310) > window.innerWidth) ? window.innerWidth-320 : stopAt;var lhnInviteEl = document.getElementById('Zsmenu');var lhnInviteOptions = {duration: 'fast'=='slow' ? 250*7 : 250*2, initProps: { right : lhnInviteWidth , top: '150px' , display: 'block' , 'z-index': '10000000' , position: 'fixed'}, props: { right : stopAt , top: 150 }, units: 'px', refreshRate: 10, easing: LhnInvite.Animation.Easing.linear};LhnInvite.tweenTo(lhnInviteEl.style, lhnInviteOptions);if (Zmutechime != '1'){if (navigator.userAgent.toLowerCase().indexOf('msie')>0){var body = document.getElementsByTagName("body");var divE = document.createElement('bgsound');divE.id = "LHNSound";divE.style.position = "absolute";divE.style.left = "0px";divE.style.top = "0px";divE.hidden = "true";divE.src=lhnJsHost + 'www.livehelpnow.net/lhn/sounds/beep0.wav';divE.autostart="true";divE.loop="0";body[0].appendChild(divE);setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('LHNSound'))", 2000);}else{var body = document.getElementsByTagName("body");var divE = document.createElement('audio');divE.setAttribute("controls",'');divE.setAttribute("autoplay",'');divE.id = "zaBellSound";divE.style.position = "absolute";divE.style.left = "-300px";divE.style.top = "-300px";divE.style.width = "0";divE.style.height = "0";divE.visible = "false";var divESource = document.createElement('source');divESource.src=lhnJsHost + 'www.livehelpnow.net/lhn/sounds/beep0.wav';divESource.type="audio/wav";divE.appendChild(divESource);body[0].appendChild(divE);setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('zaBellSound'))", 2000);}}if(typeof(_gaq) != 'undefined' && _gaq){if (AutoInvite==1){_gaq.push(['_trackEvent', 'LiveHelpNow', 'Automatic chat invitation shown', '',0,1]);}else{_gaq.push(['_trackEvent', 'LiveHelpNow', 'Proactive chat invitation shown', '',0,1]);}}if(typeof(ga) != 'undefined' && ga){if (AutoInvite==1){ga('send', 'event', 'LiveHelpNow', 'Automatic chat invitation shown','',{nonInteraction: true});}else{ga('send', 'event', 'LiveHelpNow', 'Proactive chat invitation shown','',{nonInteraction: true});}}}var lhnWin=null;function OpenLHNChat(){if(typeof CustomOpenLHNChat=='function'){CustomOpenLHNChat();if (document.getElementById('Zsmenu') ){ document.getElementById('Zsmenu').style.display="none";}return false;}if (typeof lhnWin !== 'undefined' && lhnWin){if (!lhnWin.closed){lhnWin.blur();setTimeout(lhnWin.focus(), 10);return false;}}if (bLHNAutoInvite==0){Invitation();return false;}var wleft = (screen.width - 500-32) / 2;var wtop = (screen.height - 500-96) / 2;var sScrollbars=(bLHNOnline==0)?"yes":"no";var pcv='';var opid=0;if (typeof lhnPreChatValues !== 'undefined'){pcv=JSON.stringify(lhnPreChatValues);}if (typeof lhnOperatorN !== 'undefined'){opid=lhnOperatorN;}var LHN_WINDOW_NAME = "lhnChatWindow",LHN_WINDOW_URL=((document.location.protocol=='https:' || (typeof lhnJsHost !='undefined' && lhnJsHost == "https://"))?('https://www.livehelpnow.net/lhn/'):('http://www.livehelpnow.net/lhn/')) + 'livechatvisitor.aspx?zzwindow=' + lhnWindowN + '&lhnid=' + 22393 + '&d=' + 0+'&pcv=' + pcv + '&custom1=' + lhnCustom1 + '&custom2=' + lhnCustom2 + '&custom3=' + lhnCustom3 + '&opid=' + opid,LHN_WINDOW_ATTRS = 'left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=' + sScrollbars + ',copyhistory=no,resizable=yes';if (lhnWin) {if (lhnWin.closed) {lhnWin=window.open(LHN_WINDOW_URL,LHN_WINDOW_NAME,LHN_WINDOW_ATTRS);}} else {if ( !!navigator.userAgent.match(/Trident\/7\./)||window.navigator.userAgent.indexOf("Edge") > -1 ){lhnWin = window.open(LHN_WINDOW_URL, "", LHN_WINDOW_ATTRS);}else{lhnWin = window.open("", LHN_WINDOW_NAME,LHN_WINDOW_ATTRS);}try {if (lhnWin.location.href.indexOf("about:blank") > -1) {lhnWin=window.open(LHN_WINDOW_URL,LHN_WINDOW_NAME,LHN_WINDOW_ATTRS);} else {lhnWin.focus();}}catch(err) {}}if (document.getElementById('Zsmenu') ){ document.getElementById('Zsmenu').style.display="none";}if(typeof(_gaq) != 'undefined' && _gaq){_gaq.push(['_trackEvent', 'LiveHelpNow', 'Chat button clicked', '']);}if(typeof(ga) != 'undefined' && ga){ga('send', 'event', 'LiveHelpNow', 'Chat button clicked');}}function Invitation(){var wleft = (screen.width - 500-32) / 2;var wtop = (screen.height - 500-96) / 2;if (document.location.protocol=='https:'){window.open('https://www.livehelpnow.net/lhn/livechat.aspx?fullname=Visitor&email=unknown_email@livehelpnow.com&lhnmes=lhn&zzwindow=' + lhnWindowN + '&lhnid=' + 22393,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');}else{window.open('http://www.livehelpnow.net/lhn/livechat.aspx?fullname=Visitor&email=unknown_email@livehelpnow.net&lhnmes=lhn&zzwindow=' + lhnWindowN + '&lhnid=' + 22393,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');}if (document.getElementById('Zsmenu') ){ document.getElementById('Zsmenu').style.display="none";}}var lhnDisplayStyle = ((lhnButtonN == '-1') ? "style=\"display:none\" " : ""); var LHNimg = new Image();LHNimg.onload = function() {document.getElementById("lhnChatButton").innerHTML='';document.getElementById("aLHNBTN").appendChild(LHNimg);if (typeof window.LHN_button_onLoad == "function") {window.LHN_button_onLoad();}};LHNimg.id = "lhnchatimg";LHNimg.border = "0";LHNimg.alt="Live help";LHNimg.src = lhnJsHost + 'www.livehelpnow.net/lhn/functions/imageserver.ashx?lhnid=' + lhnAccountN + '&java=' + lhnjava + '&zimg=' + lhnButtonN + '&sres=' + lhnsRes + '&sdepth=' + lhnsDepth + '&custom1=' + lhnCustom1 + '&custom2=' + lhnCustom2 + '&custom3=' + lhnCustom3 + '&t=' + lhnTrack + '&d=' + lhnDepartmentN +'&rnd=' + lhnrand_no + '&ck=' + navigator.cookieEnabled +'&referrer=' + lhnreferrer + '&pagetitle=' + lhnpagetitle + '&pageurl=' + lhnsPath;
if (typeof lhnJsSdk=='undefined'){var lhnJsSdk = {};lhnJsSdk.track_conversion = function(id,value,vis){var src = 'https://www.livehelpnow.net/lhn/handler/c.ashx?c=' + lhnAccountN + '&id=' + id + '&v=' + value.toString().replace(/[^0-9.]/g, "") + '&vis=' + vis;var img = new Image(1, 1); img.onload = function () { img.src = src; }; img.src = 'https://www.livehelpnow.net/lhn/images/spacer.gif'; }}var lhnConversion={};if (lhnConversion!='{}'){for (var iLHNConv = 0; iLHNConv < lhnConversion.length; iLHNConv++) {if (lhnConversion[iLHNConv].Type==0) {lhnJsSdk.track_conversion(lhnConversion[iLHNConv].ConversionID,0,'');} else if (lhnConversion[iLHNConv].Type==1) {if (typeof lhnConversion[iLHNConv].FieldSelector !=='undefined'){lhnJsSdk.track_conversion(lhnConversion[iLHNConv].ConversionID,window[lhnConversion[iLHNConv].FieldSelector],'');}} else if (lhnConversion[iLHNConv].Type==2) {if (document.getElementById(lhnConversion[iLHNConv].FieldSelector)!=null){lhnJsSdk.track_conversion(lhnConversion[iLHNConv].ConversionID,document.getElementById(lhnConversion[iLHNConv].FieldSelector).innerText,'');} else if (document.getElementsByClassName(lhnConversion[iLHNConv].FieldSelector)!=null && document.getElementsByClassName(lhnConversion[iLHNConv].FieldSelector)[0]!=null){lhnJsSdk.track_conversion(lhnConversion[iLHNConv].ConversionID,document.getElementsByClassName(lhnConversion[iLHNConv].FieldSelector)[0].innerText,'');}} else if (lhnConversion[iLHNConv].Type==3) {var oLHNreg = new RegExp(JSON.parse(lhnConversion[iLHNConv].FieldSelector).RegexMatch,JSON.parse(lhnConversion[iLHNConv].FieldSelector).RegexOptions);if (oLHNreg.exec(document.body.innerHTML)!==null){lhnJsSdk.track_conversion(lhnConversion[iLHNConv].ConversionID,oLHNreg.exec(document.body.innerHTML)[1],'');}}}}