if(!console){console={};console.log=function(){}}if(typeof(encodeURIComponent)=="undefined"){encodeURIComponent=function(a){return(escape(a))}}function lz_array_indexOf(b,a){if(b!=null){for(var c=0;c0){b+=g+"."}if(a>=10){b+=a+":"}else{if(a<10){b+="0"+a+":"}}if(d>=10){b+=d+":"}else{if(d<10){b+="0"+d+":"}}if(f>=10){b+=f.toString()}else{if(f<10){b+="0"+f.toString()}}if(c){return"-"+b}return b}function lz_jssess(){this.Save=a;this.Load=b;this.DelimiterStart="LZSDS";this.DelimiterEnd="LZSDE";this.GeoResolutions=0;this.GeoResolved=[];this.UserId=lz_user_id;this.BrowserId=lz_browser_id;this.ServerId=lz_server_id;this.OVLCPos="";this.OVLCState="0";this.OVLCSound=1;this.Transcript=1;this.OVLCWM=0;this.ECH=0;this.TransFrom="";this.TransInto="";this.TransSID="";this.KBS=1;this.BDA=0;this.OVLWMState="0";this.OVLWMSElem="";this.CookiePrefix="lz_";function a(){var d=this.DelimiterStart+lz_global_base64_url_encode(this.BrowserId+";"+this.UserId+";"+this.GeoResolved+";"+this.GeoResolutions+";"+this.ServerId+";"+this.OVLCPos+";"+this.OVLCState+";"+this.OVLCSound+";"+this.OVLCWM+";"+this.ECH+";"+this.TransFrom+";"+this.TransInto+";"+this.TransSID+";"+this.Transcript+";"+this.KBS+";"+this.BDA+";"+this.OVLWMState+";"+this.OVLWMSElem+";"+this.CookiePrefix+";")+this.DelimiterEnd;if(window.name==null||window.name=="undefinded"||window.name==""||(window.name==null&&window.name.indexOf(this.DelimiterStart)==-1)){if(window.name==null||window.name=="undefinded"||window.name==""){window.name=d}else{window.name+=d}}else{var c=new RegExp(/\LZSDS.*?LZSDE/g);window.name=window.name.replace(c,"");window.name+=d}}function b(){var c=window.name;if(c.indexOf(this.DelimiterStart)!=-1){c=lz_global_base64_url_decode(c.split(this.DelimiterStart)[1].split(this.DelimiterEnd)[0]).split(";");if(this.ServerId==c[4]&&this.CookiePrefix==c[18]){this.BrowserId=c[0];this.UserId=c[1];this.GeoResolved=c[2].split(",");this.GeoResolutions=c[3];this.OVLCPos=c[5];this.OVLCState=c[6];this.OVLCSound=c[7];this.OVLCWM=parseInt(c[8]);this.ECH=parseInt(c[9]);this.TransFrom=c[10];this.TransInto=c[11];this.TransSID=c[12];this.Transcript=c[13];this.KBS=c[14];this.BDA=c[15];this.OVLWMState=c[16];this.OVLWMSElem=c[17];this.CookiePrefix=c[18]}else{console.log("Cant load, cookie prefix mismatch: "+this.CookiePrefix)}}}}if(typeof String.prototype.endsWith!=="function"){String.prototype.endsWith=function(a){return this.indexOf(a,this.length-a.length)!==-1}}function lz_chat_window(){this.BrowserId="";this.LastActive=0;this.Closed=false;this.Deleted=false}function lz_geo_resolver(){this.ResolveAsync=b;this.TimeoutConnection=g;this.SetStatus=a;this.SetSpan=j;this.Status=0;this.Span=0;this.OnEndEvent;this.OnTimeoutEvent;this.OnSpanEvent;var f;var d;var i;var c;var h;function b(){f=this.OnEndEvent;d=this.OnTimeoutEvent;i=this.OnSpanEvent;h=setTimeout(this.TimeoutConnection,10000);c=document.createElement("script");c.id="livezilla_geoscript";c.async=true;c.src=lz_global_base64_decode(lz_geo_url)+"&gv=1023&method="+f+"&spanm="+i+"&oak="+lz_oak;lz_document_head.appendChild(c)}function g(){if(d!=null){d()}}function a(k){this.Status=k}function j(k){this.Span=k}}function lz_global_get_window_zoom(){return(window.innerWidth/document.documentElement.clientWidth)}function lz_global_get_window_height(){return(lz_is_ie)?document.documentElement.offsetHeight:window.innerHeight}function lz_global_get_window_width(b){if(!b){var a=document.documentElement.offsetHeight?document.documentElement:document.body;return a.clientWidth}else{return((lz_is_ie)?document.documentElement.offsetWidth:window.innerWidth)}}function lz_global_replace_breaks(a){a=a.replace(/[\r\n]+/g,"
");return a.replace(/[\t]+/g,"   ")}function lz_global_base64_url_encode(a){if(a.length==0){return""}a=lz_global_base64_encode(a.toString());a=a.replace(/=/g,"_");a=a.replace(/\+/g,"-");a=a.replace(/\//g,",");return a}function lz_global_base64_url_decode(a){if(!(a!=null&&a.length>0)){return""}a=a.replace(/_/g,"=");a=a.replace(/-/g,"+");a=a.replace(/,/g,"/");a=lz_global_base64_decode(a);return a}function lz_global_base64_decode(d){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var a="";var m,k,h;var l,j,g,f;var b=0;if(typeof d=="undefined"){return""}d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b>4);k=((j&15)<<4)|(g>>2);h=((g&3)<<6)|f;a=a+String.fromCharCode(m);if(g!=64){a=a+String.fromCharCode(k)}if(f!=64){a=a+String.fromCharCode(h)}}a=lz_global_utf8_decode(a);return a}function lz_global_base64_encode(j){var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var a="";var m,k,g,l,h,f,d;var b=0;j=lz_global_utf8_encode(j);while(b>2;h=((m&3)<<4)|(k>>4);f=((k&15)<<2)|(g>>6);d=g&63;if(isNaN(k)){f=d=64}else{if(isNaN(g)){d=64}}a=a+c.charAt(l)+c.charAt(h)+c.charAt(f)+c.charAt(d)}return a}function lz_global_utf8_encode(b){b=b.replace(/\r\n/g,"\n");var a="";for(var f=0;f127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}function lz_global_utf8_decode(d){try{var g="";var b=0;var f=c1=c2=0;while(b191)&&(f<224)){c2=d.charCodeAt(b+1);g+=String.fromCharCode(((f&31)<<6)|(c2&63));b+=2}else{c2=d.charCodeAt(b+1);c3=d.charCodeAt(b+2);g+=String.fromCharCode(((f&15)<<12)|((c2&63)<<6)|(c3&63));b+=3}}}return g}catch(a){}return""}function lz_set_title_mode(){window.title=document.title=lz_title_modes[lz_title_step++%2]}function lz_switch_title_mode(a){if(a){if(lz_title_timer==null){lz_title_timer=setInterval("lz_set_title_mode()",1000)}}else{if(lz_title_timer!=null){clearInterval(lz_title_timer);lz_title_timer=null;document.title=lz_title_modes[0];lz_title_step=0}}}function lz_global_timestamp(){var a=new Date();var b=Math.round((a.getTime()/1000));return(b)}function lz_global_microstamp(){var a=new Date();var b=a.getTime();return(b)}function lz_chat_get_locale_date(a){var b=new Date();if(typeof a!="undefined"){b=new Date(parseInt(a)*1000)}b=b.toLocaleString();b=b.split(" (");return b[0]}function lz_global_handle_exception(a){console.log(a);throw a;return true}function lz_global_trim(b){try{return b.replace(/^\s+|\s+$/g,"")}catch(a){return b}}function lz_global_htmlentities(a){a=a.replace(/\/g,">");return a}function lz_global_html_decode(a){var b=document.createElement("div");a=a.replace(/]*>([\S\s]*?)<\/script>/gmi,"");a=a.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,"");b.innerHTML=a;a=b.textContent;b.textContent="";return a}function lz_global_get_page_offset_y(){if(window.pageYOffset!=null&&window.pageYOffset>0){return window.pageYOffset}else{return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function lz_global_get_page_offset_x(){if(window.pageXOffset!=null&&window.pageXOffset>0){return window.pageXOffset}else{return Math.max(document.documentElement.scrollLeft,document.body.scrollLeft)}}function lz_global_is_scroll_bar(a){if(a==null){return false}return a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth}function lz_global_impose_max_length(b,a){if(b.value.length>a){b.value=b.value.substring(0,a)}}function lz_chat_save_input_value(b,a,d){try{if(lz_array_indexOf(LiveZillaData.InputFieldIndices,b)>-1){LiveZillaData.InputFieldValues[lz_array_indexOf(LiveZillaData.InputFieldIndices,b)].Value=a.toString()}if(b==114&&lz_shared_kb_auto_search){if(a.length>10){if(lz_shared_kb_last_search_time<(lz_global_timestamp()-2)){if(typeof lz_chat_get_frame_object=="function"){lz_chat_get_frame_object("lz_chat_kb_input").value=a}lz_chat_init_search_kb(true,true)}}}}catch(c){}return true}function lz_chat_get_input_value(a){try{if(typeof LiveZillaData=="undefined"){return""}if(LiveZillaData.InputFieldValues==null){return""}return LiveZillaData.InputFieldValues[lz_array_indexOf(LiveZillaData.InputFieldIndices,a)].Value}catch(b){return""}}function lz_chat_get_input(c){for(var b=0;b0)?d:g;this.ChatInformation=q;this.ChatInformationOffline=n;this.TicketInformation=i;this.CallMeBackInformation=o;this.Email=h;this.Option=null;this.ActiveDocument=r;this.UpdateOption=m;this.Update=j;this.Changed=false;this.UpdateOption();this.ChatInputsHidden=c;this.ChatInputsMandatory=f;this.TicketInputsHidden=a;this.TicketInputsMandatory=k;this.StatusIcon=true;this.ChatFunctions=b;this.TOSChat=l;this.TOSTicket=t;this.TOSCallback=s;function m(){try{if(this.Option==null){this.Option=this.ActiveDocument.createElement("option")}this.Option.value=this.Id;this.Option.name=this.Email;this.Option.group=this;if(this.Amount==0){}else{}this.Option.label=" "+this.Description;this.Option.text=" "+this.Description}catch(u){console.log(u)}}function j(v,w,u,x){if(this.Id!=v||this.Amount!=w||this.Description!=((u.length>0)?u:v)||this.Email!=x){this.Id=v;this.Amount=w;this.Description=(u.length>0)?u:v;this.Email=x;this.Changed=true}else{this.Changed=false}}}function lz_group_list(_document,_selectBox){this.HeaderOnline=null;this.HeaderOffline=null;this.ForceSelectOption=null;this.ForceSelectMade=false;this.Groups=[];this.SelectBox=_selectBox;this.ActiveDocument=_document;this.GroupOnline=false;this.GroupOffline=null;this.StatusIcon=true;this.Add=lz_group_list_add;this.Update=lz_group_list_update;this.CreateHeader=lz_group_list_create_header;this.PlaceGroup=lz_group_list_place_group;this.GetGroupById=lz_group_list_get_group_by_id;this.SelectGroupById=lz_group_list_select_group_by_id;function lz_group_list_add(_id,_amount,_description,_email,_cihidden,_cimandatory,_tihidden,_timandatory,_cinf,_coffinf,_cmbinf,_tinf,_tosc,_tost,_toscb,_cf){var existing=false;var currentGroup;for(var i=0;i0);this.GroupOffline=(this.GroupOffline||lz_global_base64_decode(contents[1])==0);this.Add((lz_global_base64_decode(contents[0])),(lz_global_base64_decode(contents[1])),(lz_global_base64_decode(contents[2])),lz_global_base64_decode(contents[3]),eval(lz_global_base64_decode(contents[4])),eval(lz_global_base64_decode(contents[5])),eval(lz_global_base64_decode(contents[6])),eval(lz_global_base64_decode(contents[7])),lz_global_base64_decode(contents[8]),lz_global_base64_decode(contents[9]),lz_global_base64_decode(contents[10]),lz_global_base64_decode(contents[11]),lz_global_base64_decode(contents[12]),lz_global_base64_decode(contents[13]),lz_global_base64_decode(contents[14]),eval(lz_global_base64_decode(contents[15])))}if(this.HeaderOnline!=null){if(!this.GroupOnline&&this.HeaderOnline.parentNode==this.SelectBox){this.SelectBox.removeChild(this.HeaderOnline)}else{if(this.GroupOnline&&(this.HeaderOnline.parentNode==null||(this.HeaderOnline.parentNode!=null&&this.HeaderOnline.parentNode!=this.SelectBox))){this.SelectBox.insertBefore(this.HeaderOnline,this.SelectBox.childNodes[0])}}}if(!this.GroupOffline&&this.HeaderOffline!=null&&this.HeaderOffline.parentNode==this.SelectBox){this.SelectBox.removeChild(this.HeaderOffline)}if(this.Groups.length>addedGroups.length){var existing;for(var i=0;i0){this.SelectBox.insertBefore(_group.Option,this.HeaderOffline)}else{this.SelectBox.appendChild(_group.Option)}}_group.UpdateOption()}function lz_group_list_create_header(_pleaseSelectTitle){if(this.SelectBox.childNodes.length==0){this.ForceSelectOption=this.ActiveDocument.createElement("option");this.ForceSelectOption.text=_pleaseSelectTitle;this.ForceSelectOption.style.backgroundImage="none"}}function lz_group_list_get_group_by_id(_id){for(var i=0;i",this.Index.toString()).replace("",this.Value);if(r.indexOf("?")!=-1){r+="×tamp="+lz_global_timestamp()}else{r+="?timestamp="+lz_global_timestamp()}var q=document.createElement("script");q.id="livezilla_vscript"+this.Index.toString();q.src=r;document.getElementsByTagName("head")[0].appendChild(q)}function c(r,q){if(r!=null){if(lz_chat_get_frame_object("").getElementsByName("form_"+this.Index).length==1){lz_chat_get_frame_object("").getElementsByName("form_"+this.Index)[0].disabled=!q}}}function n(t,q){try{for(var s=0;s-1){return true}else{if(!q&&lz_array_indexOf(t[s].TicketInputsHidden,this.Index)>-1){return true}}}}catch(r){console.log(e)}return false}}function lz_chat_execute(_js){try{eval(lz_global_base64_decode(_js))}catch(ex){console.log(e)}}function lz_fade_in(a,b){var d=0;var c=setInterval(function(){if(d>=1){clearInterval(c)}if(d>=0.1){a.style.display=""}a.style.opacity=d;d+=0.1},b)}function lz_fade_out(a,b){var d=1;var c=setInterval(function(){if(d<=0.1){clearInterval(c);a.style.display="none"}a.style.opacity=d;d-=0.1},b)}function lz_is_placeholder_support(){var a=document.createElement("input");return("placeholder" in a)}function lz_has_class(b,a){if(b.classList){return b.classList.contains(a)}else{if(b!=null&&b.length){return b.className.match(new RegExp("(\\s|^)"+a+"(\\s|$)"))}else{return false}}}function lz_add_class(b,a){if(b.classList){b.classList.add(a)}else{if(!lz_has_class(b,a)){b.className+=" "+a}}}function lz_remove_class(c,b){if(c.classList){c.classList.remove(b)}else{if(lz_has_class(c,b)){var a=new RegExp("(\\s|^)"+b+"(\\s|$)");c.className=c.className.replace(a," ")}}}function lz_get_icon_path(a){if(lz_get_icon_data(a)==null){return""}return lz_get_icon_data(a).path}function lz_get_icon_t(a){return lz_get_icon_data(a).t}function lz_get_icon_v(a){return lz_get_icon_data(a).v}function lz_get_icon_data(a){for(var b in lz_icons){if(lz_icons[b].name==a){return lz_icons[b]}}return null}function lz_get_icon(d,a,b,c){return''}function lz_stop_propagation(a){if(a&&a.stopPropagation){a.stopPropagation()}else{if(window.event){window.event.cancelBubble=true}else{if(a){a.returnValue=false}}}}function lz_d(a){return(typeof(a)!="undefined"&&a!="undefined")}function lz_post(b,d,c){var a;if(window.XMLHttpRequest){a=new XMLHttpRequest()}a.open("POST",b,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");if(lz_d(c)){a.addEventListener("load",c)}a.send(d);return a}function lz_ie(){var c=window.navigator.userAgent;var b=c.indexOf("MSIE ");if(b>0){return parseInt(c.substring(b+5,c.indexOf(".",b)),10)}var a=c.indexOf("Trident/");if(a>0){var f=c.indexOf("rv:");return parseInt(c.substring(f+3,c.indexOf(".",f)),10)}var d=c.indexOf("Edge/");if(d>0){return parseInt(c.substring(d+5,c.indexOf(".",d)),10)}return false};var lz_icons=[{name:"commenting",path:"M640 896q0-53-37.5-90.5t-90.5-37.5-90.5 37.5-37.5 90.5 37.5 90.5 90.5 37.5 90.5-37.5 37.5-90.5zm384 0q0-53-37.5-90.5t-90.5-37.5-90.5 37.5-37.5 90.5 37.5 90.5 90.5 37.5 90.5-37.5 37.5-90.5zm384 0q0-53-37.5-90.5t-90.5-37.5-90.5 37.5-37.5 90.5 37.5 90.5 90.5 37.5 90.5-37.5 37.5-90.5zm384 0q0 174-120 321.5t-326 233-450 85.5q-110 0-211-18-173 173-435 229-52 10-86 13-12 1-22-6t-13-18q-4-15 20-37 5-5 23.5-21.5t25.5-23.5 23.5-25.5 24-31.5 20.5-37 20-48 14.5-57.5 12.5-72.5q-146-90-229.5-216.5t-83.5-269.5q0-174 120-321.5t326-233 450-85.5 450 85.5 326 233 120 321.5z"},{name:"comments",path:"M1408 768q0 139-94 257t-256.5 186.5-353.5 68.5q-86 0-176-16-124 88-278 128-36 9-86 16h-3q-11 0-20.5-8t-11.5-21q-1-3-1-6.5t.5-6.5 2-6l2.5-5 3.5-5.5 4-5 4.5-5 4-4.5q5-6 23-25t26-29.5 22.5-29 25-38.5 20.5-44q-124-72-195-177t-71-224q0-139 94-257t256.5-186.5 353.5-68.5 353.5 68.5 256.5 186.5 94 257zm384 256q0 120-71 224.5t-195 176.5q10 24 20.5 44t25 38.5 22.5 29 26 29.5 23 25q1 1 4 4.5t4.5 5 4 5 3.5 5.5l2.5 5 2 6 .5 6.5-1 6.5q-3 14-13 22t-22 7q-50-7-86-16-154-40-278-128-90 16-176 16-271 0-472-132 58 4 88 4 161 0 309-45t264-129q125-92 192-212t67-254q0-77-23-152 129 71 204 178t75 230z"},{name:"ellipsis-h",vy:-12,path:"M576 736v192q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h192q40 0 68 28t28 68zm512 0v192q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h192q40 0 68 28t28 68zm512 0v192q0 40-28 68t-68 28h-192q-40 0-68-28t-28-68v-192q0-40 28-68t68-28h192q40 0 68 28t28 68z"},{name:"envelope",vx:-12.5,vy:-11.5,t:13,path:"M1792 710v794q0 66-47 113t-113 47h-1472q-66 0-113-47t-47-113v-794q44 49 101 87 362 246 497 345 57 42 92.5 65.5t94.5 48 110 24.5h2q51 0 110-24.5t94.5-48 92.5-65.5q170-123 498-345 57-39 100-87zm0-294q0 79-49 151t-122 123q-376 261-468 325-10 7-42.5 30.5t-54 38-52 32.5-57.5 27-50 9h-2q-23 0-50-9t-57.5-27-52-32.5-54-38-42.5-30.5q-91-64-262-182.5t-205-142.5q-62-42-117-115.5t-55-136.5q0-78 41.5-130t118.5-52h1472q65 0 112.5 47t47.5 113z"},{name:"expand",path:"M883 1056q0 13-10 23l-332 332 144 144q19 19 19 45t-19 45-45 19h-448q-26 0-45-19t-19-45v-448q0-26 19-45t45-19 45 19l144 144 332-332q10-10 23-10t23 10l114 114q10 10 10 23zm781-864v448q0 26-19 45t-45 19-45-19l-144-144-332 332q-10 10-23 10t-23-10l-114-114q-10-10-10-23t10-23l332-332-144-144q-19-19-19-45t19-45 45-19h448q26 0 45 19t19 45z"},{name:"facebook",vx:-11,vy:-12,path:"M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759h-306v-759h-255v-296h255v-218q0-186 104-288.5t277-102.5q147 0 228 12z"},{name:"google-plus-official",path:"M896 786h725q12 67 12 128 0 217-91 387.5t-259.5 266.5-386.5 96q-157 0-299-60.5t-245-163.5-163.5-245-60.5-299 60.5-299 163.5-245 245-163.5 299-60.5q300 0 515 201l-209 201q-123-119-306-119-129 0-238.5 65t-173.5 176.5-64 243.5 64 243.5 173.5 176.5 238.5 65q87 0 160-24t120-60 82-82 51.5-87 22.5-78h-436v-264z"},{name:"info-circle",path:"M1152 1376v-160q0-14-9-23t-23-9h-96v-512q0-14-9-23t-23-9h-320q-14 0-23 9t-9 23v160q0 14 9 23t23 9h96v320h-96q-14 0-23 9t-9 23v160q0 14 9 23t23 9h448q14 0 23-9t9-23zm-128-896v-160q0-14-9-23t-23-9h-192q-14 0-23 9t-9 23v160q0 14 9 23t23 9h192q14 0 23-9t9-23zm640 416q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"},{name:"lightbulb-o",path:"M1120 576q0 13-9.5 22.5t-22.5 9.5-22.5-9.5-9.5-22.5q0-46-54-71t-106-25q-13 0-22.5-9.5t-9.5-22.5 9.5-22.5 22.5-9.5q50 0 99.5 16t87 54 37.5 90zm160 0q0-72-34.5-134t-90-101.5-123-62-136.5-22.5-136.5 22.5-123 62-90 101.5-34.5 134q0 101 68 180 10 11 30.5 33t30.5 33q128 153 141 298h228q13-145 141-298 10-11 30.5-33t30.5-33q68-79 68-180zm128 0q0 155-103 268-45 49-74.5 87t-59.5 95.5-34 107.5q47 28 47 82 0 37-25 64 25 27 25 64 0 52-45 81 13 23 13 47 0 46-31.5 71t-77.5 25q-20 44-60 70t-87 26-87-26-60-70q-46 0-77.5-25t-31.5-71q0-24 13-47-45-29-45-81 0-37 25-64-25-27-25-64 0-54 47-82-4-50-34-107.5t-59.5-95.5-74.5-87q-103-113-103-268 0-99 44.5-184.5t117-142 164-89 186.5-32.5 186.5 32.5 164 89 117 142 44.5 184.5z"},{name:"pencil",path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z"},{name:"pencil-square",path:"M532 1108l152 152-52 52h-56v-96h-96v-56zm414-390q14 13-3 30l-291 291q-17 17-30 3-14-13 3-30l291-291q17-17 30-3zm-274 690l544-544-288-288-544 544v288h288zm608-608l92-92q28-28 28-68t-28-68l-152-152q-28-28-68-28t-68 28l-92 92zm384-384v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"},{name:"phone",path:"M1600 1240q0 27-10 70.5t-21 68.5q-21 50-122 106-94 51-186 51-27 0-52.5-3.5t-57.5-12.5-47.5-14.5-55.5-20.5-49-18q-98-35-175-83-128-79-264.5-215.5t-215.5-264.5q-48-77-83-175-3-9-18-49t-20.5-55.5-14.5-47.5-12.5-57.5-3.5-52.5q0-92 51-186 56-101 106-122 25-11 68.5-21t70.5-10q14 0 21 3 18 6 53 76 11 19 30 54t35 63.5 31 53.5q3 4 17.5 25t21.5 35.5 7 28.5q0 20-28.5 50t-62 55-62 53-28.5 46q0 9 5 22.5t8.5 20.5 14 24 11.5 19q76 137 174 235t235 174q2 1 19 11.5t24 14 20.5 8.5 22.5 5q18 0 46-28.5t53-62 55-62 50-28.5q14 0 28.5 7t35.5 21.5 25 17.5q25 15 53.5 31t63.5 35 54 30q70 35 76 53 3 7 3 21z"},{name:"plus-square",path:"M1408 960v-128q0-26-19-45t-45-19h-320v-320q0-26-19-45t-45-19h-128q-26 0-45 19t-19 45v320h-320q-26 0-45 19t-19 45v128q0 26 19 45t45 19h320v320q0 26 19 45t45 19h128q26 0 45-19t19-45v-320h320q26 0 45-19t19-45zm256-544v960q0 119-84.5 203.5t-203.5 84.5h-960q-119 0-203.5-84.5t-84.5-203.5v-960q0-119 84.5-203.5t203.5-84.5h960q119 0 203.5 84.5t84.5 203.5z"},{name:"thumbs-o-up",path:"M384 1344q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm1152-576q0-51-39-89.5t-89-38.5h-352q0-58 48-159.5t48-160.5q0-98-32-145t-128-47q-26 26-38 85t-30.5 125.5-59.5 109.5q-22 23-77 91-4 5-23 30t-31.5 41-34.5 42.5-40 44-38.5 35.5-40 27-35.5 9h-32v640h32q13 0 31.5 3t33 6.5 38 11 35 11.5 35.5 12.5 29 10.5q211 73 342 73h121q192 0 192-167 0-26-5-56 30-16 47.5-52.5t17.5-73.5-18-69q53-50 53-119 0-25-10-55.5t-25-47.5q32-1 53.5-47t21.5-81zm128-1q0 89-49 163 9 33 9 69 0 77-38 144 3 21 3 43 0 101-60 178 1 139-85 219.5t-227 80.5h-129q-96 0-189.5-22.5t-216.5-65.5q-116-40-138-40h-288q-53 0-90.5-37.5t-37.5-90.5v-640q0-53 37.5-90.5t90.5-37.5h274q36-24 137-155 58-75 107-128 24-25 35.5-85.5t30.5-126.5 62-108q39-37 90-37 84 0 151 32.5t102 101.5 35 186q0 93-48 192h176q104 0 180 76t76 179z"},{name:"thumbs-o-down",path:"M384 448q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm1152 576q0-35-21.5-81t-53.5-47q15-17 25-47.5t10-55.5q0-69-53-119 18-32 18-69t-17.5-73.5-47.5-52.5q5-30 5-56 0-85-49-126t-136-41h-128q-131 0-342 73-5 2-29 10.5t-35.5 12.5-35 11.5-38 11-33 6.5-31.5 3h-32v640h32q16 0 35.5 9t40 27 38.5 35.5 40 44 34.5 42.5 31.5 41 23 30q55 68 77 91 41 43 59.5 109.5t30.5 125.5 38 85q96 0 128-47t32-145q0-59-48-160.5t-48-159.5h352q50 0 89-38.5t39-89.5zm128 1q0 103-76 179t-180 76h-176q48 99 48 192 0 118-35 186-35 69-102 101.5t-151 32.5q-51 0-90-37-34-33-54-82t-25.5-90.5-17.5-84.5-31-64q-48-50-107-127-101-131-137-155h-274q-53 0-90.5-37.5t-37.5-90.5v-640q0-53 37.5-90.5t90.5-37.5h288q22 0 138-40 128-44 223-66t200-22h112q140 0 226.5 79t85.5 216v5q60 77 60 178 0 22-3 43 38 67 38 144 0 36-9 69 49 74 49 163z"},{name:"times-circle",path:"M1277 1122q0-26-19-45l-181-181 181-181q19-19 19-45 0-27-19-46l-90-90q-19-19-46-19-26 0-45 19l-181 181-181-181q-19-19-45-19-27 0-46 19l-90 90q-19 19-19 46 0 26 19 45l181 181-181 181q-19 19-19 45 0 27 19 46l90 90q19 19 46 19 26 0 45-19l181-181 181 181q19 19 45 19 27 0 46-19l90-90q19-19 19-46zm387-226q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"},{name:"toggle-off",path:"M1024 896q0-104-40.5-198.5t-109.5-163.5-163.5-109.5-198.5-40.5-198.5 40.5-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5 198.5-40.5 163.5-109.5 109.5-163.5 40.5-198.5zm768 0q0-104-40.5-198.5t-109.5-163.5-163.5-109.5-198.5-40.5h-386q119 90 188.5 224t69.5 288-69.5 288-188.5 224h386q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5zm128 0q0 130-51 248.5t-136.5 204-204 136.5-248.5 51h-768q-130 0-248.5-51t-204-136.5-136.5-204-51-248.5 51-248.5 136.5-204 204-136.5 248.5-51h768q130 0 248.5 51t204 136.5 136.5 204 51 248.5z"},{name:"toggle-on",path:"M-128 896q0-130 51-248.5t136.5-204 204-136.5 248.5-51h768q130 0 248.5 51t204 136.5 136.5 204 51 248.5-51 248.5-136.5 204-204 136.5-248.5 51h-768q-130 0-248.5-51t-204-136.5-136.5-204-51-248.5zm1408 512q104 0 198.5-40.5t163.5-109.5 109.5-163.5 40.5-198.5-40.5-198.5-109.5-163.5-163.5-109.5-198.5-40.5-198.5 40.5-163.5 109.5-109.5 163.5-40.5 198.5 40.5 198.5 109.5 163.5 163.5 109.5 198.5 40.5z"},{name:"twitter",vy:-12,path:"M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5t-115.5 248.5-184.5 210.5-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5t-114-159.5q33 5 61 5 43 0 85-11-112-23-185.5-111.5t-73.5-205.5v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5t371.5 99.5q-8-38-8-74 0-134 94.5-228.5t228.5-94.5q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"},{name:"youtube",path:"M1099 1244v211q0 67-39 67-23 0-45-22v-301q22-22 45-22 39 0 39 67zm338 1v46h-90v-46q0-68 45-68t45 68zm-966-218h107v-94h-312v94h105v569h100v-569zm288 569h89v-494h-89v378q-30 42-57 42-18 0-21-21-1-3-1-35v-364h-89v391q0 49 8 73 12 37 58 37 48 0 102-61v54zm429-148v-197q0-73-9-99-17-56-71-56-50 0-93 54v-217h-89v663h89v-48q45 55 93 55 54 0 71-55 9-27 9-100zm338-10v-13h-91q0 51-2 61-7 36-40 36-46 0-46-69v-87h179v-103q0-79-27-116-39-51-106-51-68 0-107 51-28 37-28 116v173q0 79 29 116 39 51 108 51 72 0 108-53 18-27 21-54 2-9 2-58zm-608-913v-210q0-69-43-69t-43 69v210q0 70 43 70t43-70zm719 751q0 234-26 350-14 59-58 99t-102 46q-184 21-555 21t-555-21q-58-6-102.5-46t-57.5-99q-26-112-26-350 0-234 26-350 14-59 58-99t103-47q183-20 554-20t555 20q58 7 102.5 47t57.5 99q26 112 26 350zm-998-1276h102l-121 399v271h-100v-271q-14-74-61-212-37-103-65-187h106l71 263zm370 333v175q0 81-28 118-37 51-106 51-67 0-105-51-28-38-28-118v-175q0-80 28-117 38-51 105-51 69 0 106 51 28 37 28 117zm335-162v499h-91v-55q-53 62-103 62-46 0-59-37-8-24-8-75v-394h91v367q0 33 1 35 3 22 21 22 27 0 57-43v-381h91z"},{name:"question",vx:-7,vy:-8,t:18,path:"M1088 1256v240q0 16-12 28t-28 12h-240q-16 0-28-12t-12-28v-240q0-16 12-28t28-12h240q16 0 28 12t12 28zm316-600q0 54-15.5 101t-35 76.5-55 59.5-57.5 43.5-61 35.5q-41 23-68.5 65t-27.5 67q0 17-12 32.5t-28 15.5h-240q-15 0-25.5-18.5t-10.5-37.5v-45q0-83 65-156.5t143-108.5q59-27 84-56t25-76q0-42-46.5-74t-107.5-32q-65 0-108 29-35 25-107 115-13 16-31 16-12 0-25-8l-164-125q-13-10-15.5-25t5.5-28q160-266 464-266 80 0 161 31t146 83 106 127.5 41 158.5z"},{name:"close",path:"M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"},{name:"send",path:"M1764 11q33 24 27 64l-256 1536q-5 29-32 45-14 8-31 8-11 0-24-5l-453-185-242 295q-18 23-49 23-13 0-22-4-19-7-30.5-23.5t-11.5-36.5v-349l864-1059-1069 925-395-162q-37-14-40-55-2-40 32-59l1664-960q15-9 32-9 20 0 36 11z"},{name:"clip",path:"M1596 1385q0 117-79 196t-196 79q-135 0-235-100l-777-776q-113-115-113-271 0-159 110-270t269-111q158 0 273 113l605 606q10 10 10 22 0 16-30.5 46.5t-46.5 30.5q-13 0-23-10l-606-607q-79-77-181-77-106 0-179 75t-73 181q0 105 76 181l776 777q63 63 145 63 64 0 106-42t42-106q0-82-63-145l-581-581q-26-24-60-24-29 0-48 19t-19 48q0 32 25 59l410 410q10 10 10 22 0 16-31 47t-47 31q-12 0-22-10l-410-410q-63-61-63-149 0-82 57-139t139-57q88 0 149 63l581 581q100 98 100 235z"},{name:"whatsapp",path:"M1113 974q13 0 97.5 44t89.5 53q2 5 2 15 0 33-17 76-16 39-71 65.5t-102 26.5q-57 0-190-62-98-45-170-118t-148-185q-72-107-71-194v-8q3-91 74-158 24-22 52-22 6 0 18 1.5t19 1.5q19 0 26.5 6.5t15.5 27.5q8 20 33 88t25 75q0 21-34.5 57.5t-34.5 46.5q0 7 5 15 34 73 102 137 56 53 151 101 12 7 22 7 15 0 54-48.5t52-48.5zm-203 530q127 0 243.5-50t200.5-134 134-200.5 50-243.5-50-243.5-134-200.5-200.5-134-243.5-50-243.5 50-200.5 134-134 200.5-50 243.5q0 203 120 368l-79 233 242-77q158 104 345 104zm0-1382q153 0 292.5 60t240.5 161 161 240.5 60 292.5-60 292.5-161 240.5-240.5 161-292.5 60q-195 0-365-94l-417 134 136-405q-108-178-108-389 0-153 60-292.5t161-240.5 240.5-161 292.5-60z"},{name:"telegram",vx:-13,vy:-14,t:11,path:"M1764 11q33 24 27 64l-256 1536q-5 29-32 45-14 8-31 8-11 0-24-5l-453-185-242 295q-18 23-49 23-13 0-22-4-19-7-30.5-23.5t-11.5-36.5v-349l864-1059-1069 925-395-162q-37-14-40-55-2-40 32-59l1664-960q15-9 32-9 20 0 36 11z"},{name:"instagram",path:"M1152 896q0-106-75-181t-181-75-181 75-75 181 75 181 181 75 181-75 75-181zm138 0q0 164-115 279t-279 115-279-115-115-279 115-279 279-115 279 115 115 279zm108-410q0 38-27 65t-65 27-65-27-27-65 27-65 65-27 65 27 27 65zm-502-220q-7 0-76.5-.5t-105.5 0-96.5 3-103 10-71.5 18.5q-50 20-88 58t-58 88q-11 29-18.5 71.5t-10 103-3 96.5 0 105.5.5 76.5-.5 76.5 0 105.5 3 96.5 10 103 18.5 71.5q20 50 58 88t88 58q29 11 71.5 18.5t103 10 96.5 3 105.5 0 76.5-.5 76.5.5 105.5 0 96.5-3 103-10 71.5-18.5q50-20 88-58t58-88q11-29 18.5-71.5t10-103 3-96.5 0-105.5-.5-76.5.5-76.5 0-105.5-3-96.5-10-103-18.5-71.5q-20-50-58-88t-88-58q-29-11-71.5-18.5t-103-10-96.5-3-105.5 0-76.5.5zm768 630q0 229-5 317-10 208-124 322t-322 124q-88 5-317 5t-317-5q-208-10-322-124t-124-322q-5-88-5-317t5-317q10-208 124-322t322-124q88-5 317-5t317 5q208 10 322 124t124 322q5 88 5 317z"},{name:"linkedin",path:"M477 625v991h-330v-991h330zm21-306q1 73-50.5 122t-135.5 49h-2q-82 0-132-49t-50-122q0-74 51.5-122.5t134.5-48.5 133 48.5 51 122.5zm1166 729v568h-329v-530q0-105-40.5-164.5t-126.5-59.5q-63 0-105.5 34.5t-63.5 85.5q-11 30-11 81v553h-329q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5 114.5-15.5q171 0 275 113.5t104 332.5z"},{name:"camera",vx:-7,path:"M1024 672q119 0 203.5 84.5t84.5 203.5-84.5 203.5-203.5 84.5-203.5-84.5-84.5-203.5 84.5-203.5 203.5-84.5zm704-416q106 0 181 75t75 181v896q0 106-75 181t-181 75h-1408q-106 0-181-75t-75-181v-896q0-106 75-181t181-75h224l51-136q19-49 69.5-84.5t103.5-35.5h512q53 0 103.5 35.5t69.5 84.5l51 136h224zm-704 1152q185 0 316.5-131.5t131.5-316.5-131.5-316.5-316.5-131.5-316.5 131.5-131.5 316.5 131.5 316.5 316.5 131.5z"}];var lz_move_active=false;var lz_move_x,lz_move_y,lz_move_tx,lz_move_ty;var lz_move_object;var lz_move_margins;var lz_zoom_factor=1;var lz_center_timeout=null;function lz_livebox(_name,_template,_width,_height,_mleft,_mtop,_mright,_mbottom,_position,_speed,_effect){this.Version="1";this.lz_livebox_slide_finished=false;this.lz_livebox_template=_template;this.lz_livebox_name=_name;this.lz_livebox_move=lz_livebox_move_box;this.lz_livebox_show=lz_livebox_show_box;this.lz_livebox_hide=lz_livebox_hide_box;this.lz_livebox_create=lz_livebox_create_box;this.lz_livebox_unload=lz_livebox_unload_box;this.lz_livebox_shadow=lz_livebox_set_shadow;this.lz_livebox_background=lz_livebox_set_background;this.lz_livebox_close=lz_livebox_close_box;this.lz_livebox_chat=lz_livebox_direct_chat;this.lz_livebox_get_left=lz_livebox_center_get_left;this.lz_livebox_get_right=lz_livebox_center_get_right;this.lz_livebox_get_top=lz_livebox_center_get_top;this.lz_livebox_get_bottom=lz_livebox_center_get_bottom;this.lz_livebox_div=null;this.lz_livebox_shadow_class=null;this.lz_livebox_background_class=null;this.lz_livebox_background_div=null;this.lz_livebox_preset_top=null;this.lz_livebox_preset_left=null;this.lz_livebox_preset_right=null;this.lz_livebox_preset_bottom=null;this.lz_livebox_shown=false;this.lz_livebox_on_move=null;this.lz_livebox_fixed_mode=false;this.lz_livebox_moveable=true;this.lzibst_width=_width;this.lzibst_height=_height;this.lzibst_margin=lz_move_margins=[_mleft,_mtop,_mright,_mbottom];this.lzibst_position=_position.toString();if(this.lzibst_position.length==1){this.lzibst_position="0"+this.lzibst_position}this.lzibst_hposition=this.lzibst_position.substring(1,2).replace(0,"left").replace(1,"center").replace(2,"right");this.lzibst_vposition=this.lzibst_position.substring(0,1).replace(0,"top").replace(1,"center").replace(2,"bottom");this.lzibst_slide_speed=10;this.lzibst_effect=_effect;this.lzibst_slide_step=Math.max(_speed,2);function lz_livebox_direct_chat(_intid,_groupid){var fullname="";if(document.getElementById("lz_invitation_name")!=null&&document.getElementById("lz_invitation_name").value.length>0){fullname=document.getElementById("lz_invitation_name").value}lz_tracking_init_external_window(fullname,lz_global_base64_url_decode(_intid),lz_global_base64_url_decode(_groupid))}function lz_livebox_close_box(uid){if(this.lz_livebox_background_div!=null){document.body.removeChild(this.lz_livebox_background_div);this.lz_livebox_background_div=null}if(!this.lz_livebox_slide_finished){return}document.body.removeChild(this.lz_livebox_div)}function lz_livebox_set_shadow(_intense,_x,_y,_color){this.lz_livebox_shadow_class=document.createElement("STYLE");this.lz_livebox_shadow_class.type="text/css";var style=document.createTextNode(".livezilla_livebox_shadow_class"+this.lz_livebox_name+"{-moz-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";-webkit-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";} ");if(this.lz_livebox_shadow_class.styleSheet){this.lz_livebox_shadow_class.styleSheet.cssText=style.nodeValue}else{this.lz_livebox_shadow_class.appendChild(style)}document.getElementsByTagName("head")[0].appendChild(this.lz_livebox_shadow_class)}function lz_livebox_set_background(_bgcolor,_bgop){if(this.lz_livebox_background_class==null){this.lz_livebox_background_class=document.createElement("STYLE");this.lz_livebox_background_class.type="text/css";var style=document.createTextNode(".livezilla_livebox_background_class"+this.lz_livebox_name+"{z-index:99990;top:0;left:0;right:0;bottom:0;position:absolute;filter:alpha(opacity="+(_bgop*100)+"); -moz-opacity:"+_bgop+"; -khtml-opacity: "+_bgop+"; opacity:"+_bgop+";background:"+_bgcolor+";} ");if(this.lz_livebox_background_class.styleSheet){this.lz_livebox_background_class.styleSheet.cssText=style.nodeValue}else{this.lz_livebox_background_class.appendChild(style)}document.getElementsByTagName("head")[0].appendChild(this.lz_livebox_background_class);this.lz_livebox_background_div=document.createElement("DIV");this.lz_livebox_background_div.style.position="fixed";this.lz_livebox_background_div.className="livezilla_livebox_background_class"+this.lz_livebox_name;document.body.appendChild(this.lz_livebox_background_div)}}function lz_livebox_create_box(){this.lz_livebox_div=document.createElement("DIV");if(this.lz_livebox_shadow_class!=null){this.lz_livebox_div.className="livezilla_livebox_shadow_class"+this.lz_livebox_name}this.lz_livebox_div.id=this.lz_livebox_name;this.lz_livebox_div.style.position="fixed";if(this.lzibst_effect==6&&!("opacity" in document.body.style)){this.lzibst_effect=0}if(this.lzibst_effect!=5){this.lz_livebox_div.style.height=this.lzibst_height+"px";this.lz_livebox_div.style.width=this.lzibst_width+"px"}else{this.lz_livebox_div.style.height="0px";this.lz_livebox_div.style.width="0px"}this.lz_livebox_div.style.overflow="hidden";this.lz_livebox_div.style.zIndex=lz_overlay_zindex;this.lz_livebox_div.style.margin="0px";if(this.lzibst_effect==6){this.lz_livebox_div.style.opacity="0.0"}this.lz_livebox_div.innerHTML=this.lz_livebox_template.replace("",lz_global_base64_url_decode(LiveZillaData.F111));if(this.lzibst_effect==0){this.lz_livebox_div.style.display="none"}else{if(this.lzibst_effect==1){this.lz_livebox_div.style.top=-(this.lzibst_height+100)+"px"}else{if(this.lzibst_effect==2){this.lz_livebox_div.style.left=lz_global_get_window_width(false)+(this.lzibst_width+100)+"px"}else{if(this.lzibst_effect==3){this.lz_livebox_div.style.top=lz_global_get_window_height()+(this.lzibst_height+100)+"px"}else{if(this.lzibst_effect==4){this.lz_livebox_div.style.left=-(this.lzibst_width+100)+"px"}}}}}if(this.lzibst_effect==6&&this.lzibst_position=="22"){this.lz_livebox_div.style.left=-(this.lzibst_width+100)+"px"}document.body.appendChild(this.lz_livebox_div)}function lz_livebox_show_box(_zIndex){this.lz_livebox_visible=true;if(this.lz_livebox_shown){this.lz_livebox_div.style.display="";this.lz_livebox_div.style.visibility="visible";this.lz_livebox_div.style.zIndex=_zIndex;return}this.lz_livebox_shown=true;window.setTimeout("if(window['"+this.lz_livebox_name+"']!=null)window['"+this.lz_livebox_name+"'].lz_livebox_move()",1);if(!lz_is_mobile&&this.lz_livebox_moveable){document.onmousedown=lz_livebox_init_move;document.onmouseup=new Function("lz_move_active=false;lz_livebox_save_pos();")}}function lz_livebox_hide_box(){this.lz_livebox_visible=false;if(this.lz_livebox_shown){this.lz_livebox_div.style.display="none";this.lz_livebox_div.style.visibility="hidden"}}function lz_livebox_unload_box(){var currentopacity=parseFloat(this.lz_livebox_div.style.opacity);currentopacity-=0.06;this.lz_livebox_div.style.opacity=currentopacity;if(currentopacity>0){window.setTimeout("window['"+this.lz_livebox_name+"'].lz_livebox_unload()",2)}}function lz_livebox_init_move(e){try{var fobj=(!lz_is_ie)?e.target:event.srcElement;if(fobj.tagName.toLowerCase()=="input"||fobj.tagName.toLowerCase()=="textarea"||fobj.tagName.toLowerCase()=="iframe"||fobj.tagName.toLowerCase()=="a"){return}var count=0;while(fobj!=null&&fobj.style.zIndex!=99999&&count++<20){fobj=(!lz_is_ie)?fobj.parentNode:fobj.parentElement;if(!(fobj!=null&&fobj.className!="lz_chat_unmovable")){return true}}if(fobj!=null&&fobj.tagName!="undefined"&&fobj.style.zIndex==99999){lz_move_active=true;lz_move_object=fobj;lz_move_tx=parseInt(lz_move_object.style.left+0);lz_move_x=!lz_is_ie?e.clientX:event.clientX;if(lz_move_object.style.top!=""){lz_move_y=!lz_is_ie?e.clientY:event.clientY;lz_move_ty=parseInt(lz_move_object.style.top+0)}else{lz_move_y=!lz_is_ie?e.clientY:event.clientY;lz_move_ty=lz_global_get_window_height()-(parseInt(lz_move_object.style.bottom+0)+parseInt(lz_move_object.style.height))}if(lz_move_object.style.left!=""){lz_move_tx=parseInt(lz_move_object.style.left+0);lz_move_x=!lz_is_ie?e.clientX:event.clientX}else{lz_move_x=!lz_is_ie?e.clientX:event.clientX;lz_move_tx=lz_global_get_window_width(false)-(parseInt(lz_move_object.style.right+0)+parseInt(lz_move_object.style.width))}document.onmousemove=lz_livebox_process_move;return false}}catch(e){}}function lz_livebox_process_move(e){if(lz_move_active){var top=((!lz_is_ie)?lz_move_ty+e.clientY-lz_move_y:lz_move_ty+event.clientY-lz_move_y);lz_move_object.style.bottom="";lz_move_object.style.top=top+"px";var left=((!lz_is_ie)?lz_move_tx+e.clientX-lz_move_x:lz_move_tx+event.clientX-lz_move_x);lz_move_object.style.right="";lz_move_object.style.left=left+"px";if(window[lz_move_object.id].lz_livebox_on_move!=null){eval(window[lz_move_object.id].lz_livebox_on_move)}return false}}function lz_livebox_extended_pos(_obj,_ext){document.getElementById(_obj).style.top=(parseInt(document.getElementById(_obj).style.top.replace("px",""))+_ext)+"px"}function lz_livebox_move_box(){try{this.lz_livebox_div.style.bottom=this.lz_livebox_get_bottom(false);this.lz_livebox_div.style.right=this.lz_livebox_get_right(false);if(this.lzibst_effect==0){this.lz_livebox_div.style.left=this.lz_livebox_get_left(false);this.lz_livebox_div.style.top=this.lz_livebox_get_top(false);this.lz_livebox_div.style.right=this.lz_livebox_get_right(false);this.lz_livebox_div.style.bottom=this.lz_livebox_get_bottom(false);this.lz_livebox_div.style.display="";this.lz_livebox_slide_finished=true}else{if(this.lzibst_effect==1||this.lzibst_effect==3){var current=parseInt(this.lz_livebox_div.style.top.replace("px","").replace("pt",""));if(this.lzibst_effect==1){current+=this.lzibst_slide_step}else{current-=this.lzibst_slide_step}this.lz_livebox_div.style.top=current+"px";this.lz_livebox_div.style.left=this.lz_livebox_get_left(false);var topdist=parseInt(this.lz_livebox_get_top(false).replace("px",""));if((this.lzibst_effect==1&¤t<(topdist-this.lzibst_slide_step))||(this.lzibst_effect==3&¤t>(topdist-this.lzibst_slide_step))){window.setTimeout("if(window['"+this.lz_livebox_name+"']!=null)window['"+this.lz_livebox_name+"'].lz_livebox_move()",this.lzibst_slide_speed)}else{this.lz_livebox_div.style.top=topdist+"px";this.lz_livebox_slide_finished=true}}else{if(this.lzibst_effect==2||this.lzibst_effect==4){var current=parseInt(this.lz_livebox_div.style.left.replace("px","").replace("pt",""));if(this.lzibst_effect==2){current-=this.lzibst_slide_step}else{current+=this.lzibst_slide_step}this.lz_livebox_div.style.left=current+"px";this.lz_livebox_div.style.top=this.lz_livebox_get_top(false);var leftdist=parseInt(this.lz_livebox_get_left(false).replace("px",""));if((this.lzibst_effect==2&¤t>(leftdist-this.lzibst_slide_step))||(this.lzibst_effect==4&¤t<(leftdist-this.lzibst_slide_step))){window.setTimeout("if(window['"+this.lz_livebox_name+"']!=null)window['"+this.lz_livebox_name+"'].lz_livebox_move()",this.lzibst_slide_speed)}else{this.lz_livebox_div.style.left=leftdist+"px";this.lz_livebox_slide_finished=true}}else{if(this.lzibst_effect==5){var currentheight=parseInt(this.lz_livebox_div.style.height.replace("px","").replace("pt",""));var currentwidth=parseInt(this.lz_livebox_div.style.width.replace("px","").replace("pt",""));var wstep=this.lzibst_slide_step;var hstep=parseInt(this.lzibst_slide_step*(this.lzibst_height/this.lzibst_width));if(currentheight<(this.lzibst_height-hstep)){currentheight+=hstep}if(currentwidth<(this.lzibst_width-wstep)){currentwidth+=wstep}this.lz_livebox_div.style.height=currentheight+"px";this.lz_livebox_div.style.width=currentwidth+"px";this.lz_livebox_div.style.left=parseInt(this.lz_livebox_get_left(false).replace("px","").replace("pt",""))+((this.lzibst_width-currentwidth)/2)+"px";this.lz_livebox_div.style.top=parseInt(this.lz_livebox_get_top(false).replace("px","").replace("pt",""))+((this.lzibst_height-currentheight)/2)+"px";if((currentheight<(this.lzibst_height-hstep))||(currentwidth<(this.lzibst_width-wstep))){window.setTimeout("window['"+this.lz_livebox_name+"'].lz_livebox_move()",this.lzibst_slide_speed)}else{this.lz_livebox_div.style.height=this.lzibst_height+"px";this.lz_livebox_div.style.width=this.lzibst_width+"px";this.lz_livebox_slide_finished=true}}else{if(this.lzibst_effect==6){this.lz_livebox_div.style.left=this.lz_livebox_get_left(false);this.lz_livebox_div.style.top=this.lz_livebox_get_top(false);lz_fade_in(this.lz_livebox_div,40);this.lz_livebox_slide_finished=true}}}}}if(this.lz_livebox_slide_finished&&window.onresize==null){window.onresize=lz_livebox_init_center_boxes_hide}}catch(e){}}function lz_livebox_center_get_left(_abs){if(this.lz_livebox_fixed_mode){return"0px"}else{if(lz_is_mobile&&this.lzibst_hposition=="right"){return"auto"}else{if(this.lz_livebox_preset_left!=null){return this.lz_livebox_preset_left}else{if(this.lz_livebox_preset_right!=null){return"auto"}}}}var left=0;if(this.lzibst_hposition=="center"){left=parseInt((lz_global_get_window_width(true)*50/100));left-=parseInt(this.lzibst_width/2);if(this.lzibst_margin[0]!=0){left+=this.lzibst_margin[0]}if(this.lzibst_margin[2]!=0){left-=this.lzibst_margin[2]}if(_abs){left+=lz_global_get_page_offset_x()}return left+"px"}else{if(this.lzibst_hposition=="left"){if(this.lzibst_margin[0]!=0){left+=this.lzibst_margin[0]}if(this.lzibst_margin[2]!=0){left-=this.lzibst_margin[2]}if(_abs){left+=lz_global_get_page_offset_x()}return left+"px"}else{if(this.lzibst_hposition=="right"){left=lz_global_get_window_width(false);left-=parseInt(this.lzibst_width);if(this.lzibst_margin[0]!=0){left+=this.lzibst_margin[0]}if(this.lzibst_margin[2]!=0){left-=this.lzibst_margin[2]}return left+"px"}}}}function lz_livebox_center_get_top(_abs){if(this.lz_livebox_fixed_mode){return"0px"}else{if(lz_is_mobile&&this.lzibst_vposition=="bottom"){return"auto"}else{if(this.lz_livebox_preset_top!=null){return this.lz_livebox_preset_top}else{if(this.lz_livebox_preset_bottom!=null){return"auto"}}}}var top=0;if(this.lzibst_vposition=="center"){top=parseInt((lz_global_get_window_height()*50/100));if(_abs){top+=lz_global_get_page_offset_y()}top-=parseInt(this.lzibst_height/2);if(this.lzibst_margin[1]!=0){top+=this.lzibst_margin[1]}if(this.lzibst_margin[3]!=0){top-=this.lzibst_margin[3]}return parseInt(top)+"px"}else{if(this.lzibst_vposition=="top"){if(this.lzibst_margin[1]!=0){top+=this.lzibst_margin[1]}if(this.lzibst_margin[3]!=0){top-=this.lzibst_margin[3]}if(_abs){top+=lz_global_get_page_offset_y()}return parseInt(top)+"px"}else{if(this.lzibst_vposition=="bottom"){top=lz_global_get_window_height();top-=parseInt(this.lzibst_height);if(this.lzibst_margin[1]!=0){top+=this.lzibst_margin[1]}if(this.lzibst_margin[3]!=0){top-=this.lzibst_margin[3]}return parseInt(top)+"px"}}}}function lz_livebox_center_get_bottom(_abs){if(this.lz_livebox_fixed_mode){return"0px"}else{if(lz_is_mobile&&this.lzibst_vposition=="bottom"&&_abs){return(Math.floor(lz_zoom_factor*this.lzibst_margin[3])+document.documentElement.clientHeight-(lz_global_get_window_height()+lz_global_get_page_offset_y()))+"px"}else{if(lz_is_mobile&&this.lzibst_vposition=="bottom"){return Math.floor(lz_zoom_factor*this.lzibst_margin[3])+"px"}else{if(this.lz_livebox_preset_bottom!=null){return this.lz_livebox_preset_bottom}else{return"auto"}}}}}function lz_livebox_center_get_right(_abs){if(this.lz_livebox_fixed_mode){return"0px"}else{if(lz_is_mobile&&this.lzibst_hposition=="right"&&_abs){return(Math.floor(lz_zoom_factor*this.lzibst_margin[2])+document.documentElement.clientWidth-(lz_global_get_window_width(true)+lz_global_get_page_offset_x()))+"px"}else{if(lz_is_mobile&&this.lzibst_hposition=="right"){return Math.floor(lz_zoom_factor*this.lzibst_margin[2])+"px"}else{return"auto"}}}}function lz_livebox_center_set_preset(_preset,_vertical){if(_preset==null){return}var parts=_preset.split(",");if(_vertical&&parts[0]!=null){var presett=parseInt(parts[0].replace("px",""));if(presett<0){this.lz_livebox_preset_top=0+"px"}else{if(presett+this.lzibst_height>lz_global_get_window_height()){this.lz_livebox_preset_top=(lz_global_get_window_height()-this.lzibst_height)+"px"}else{if(!isNaN(presett)){this.lz_livebox_preset_top=parts[0]}}}}else{this.lz_livebox_preset_bottom=this.lzibst_margin[3]+"px"}if(parts[1]!=null){var presetl=parseInt(parts[1].replace("px",""));if(presetl<0){this.lz_livebox_preset_left=0+"px"}else{if(presetl+this.lzibst_width>lz_global_get_window_width(false)){this.lz_livebox_preset_left=(lz_global_get_window_width(false)-(this.lzibst_width+15))+"px"}else{this.lz_livebox_preset_left=parts[1]}}}}}function lz_livebox_scale_boxes(){var a=lz_global_get_window_zoom();if(lz_zoom_factor!=a){if(a<0.9){a+=0.1}if(a>1.5){a=1.5}lz_livebox_scale_box("lz_overlay_chat",a);lz_livebox_scale_box("lz_eye_catcher",a);lz_livebox_scale_box("lz_floating_button",a);lz_zoom_factor=a}}function lz_livebox_scale_box(c,b,d){try{if(document.getElementById(c)!=null){if(c=="lz_overlay_chat"||c=="lz_eye_catcher"){if(lz_chat_state_expanded&&!d){return}}document.getElementById(c).style["-webkit-transform"]="scale("+b+","+b+")";document.getElementById(c).style["-webkit-transform-origin"]=window[c].lzibst_hposition+" "+window[c].lzibst_vposition}}catch(a){}}function lz_livebox_is_visible(c){try{var b=c.getBoundingClientRect();return(b.top>=0&&b.left>=0&&b.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&b.right<=(window.innerWidth||document.documentElement.clientWidth))}catch(a){return true}}function lz_livebox_init_center_boxes_hide(){lz_livebox_init_center_boxes()}function lz_livebox_init_center_boxes(){if(lz_center_timeout!=null){clearTimeout(lz_center_timeout)}lz_center_timeout=setTimeout("lz_livebox_center_boxes();",100)}function lz_livebox_center_boxes(){if(lz_is_mobile){lz_livebox_scale_boxes()}else{if(document.getElementById("lz_overlay_chat")!=null&&lz_chat_state_expanded){lz_chat_change_state(true,true)}}lz_livebox_center_box("lz_request_window",true);lz_livebox_center_box("lz_alert_window",true);lz_livebox_center_box("lz_floating_button",true);lz_livebox_center_box("lz_overlay_box",true);lz_livebox_center_box("lz_floating_button_selector",true);if(lz_is_mobile&&lz_chat_state_expanded&&!lz_chat_fixed_mode){return}lz_livebox_center_box("lz_overlay_chat",true);lz_livebox_center_box("lz_eye_catcher",true)}function lz_livebox_center_box(c,b){if(document.getElementById(c)!=null&&window[c].Version=="1"){var a=false;if(window[c].lz_livebox_fixed_mode){a=false}else{if(!lz_chat_state_expanded){a=false}else{if(document.getElementById(c).style.position=="fixed"&&!lz_livebox_is_visible(document.getElementById(c))){a=true}else{if(document.getElementById(c).style.position=="absolute"){a=true}}}}if(b){document.getElementById(c).style.top=window[c].lz_livebox_get_top(a);document.getElementById(c).style.bottom=window[c].lz_livebox_get_bottom(a)}document.getElementById(c).style.left=window[c].lz_livebox_get_left(a);document.getElementById(c).style.right=window[c].lz_livebox_get_right(a);document.getElementById(c).style.position=(a)?"absolute":"fixed";if(!lz_chat_state_expanded&&c=="lz_eye_catcher"){if(window.innerWidth<(1.4*window[c].lzibst_width)){window[c].lz_livebox_hide()}else{window[c].lz_livebox_show()}}}}function lz_livebox_hide_box(a){if(document.getElementById(a)!=null){window[a].lz_livebox_hide()}}function lz_livebox_show_box(a){if(document.getElementById(a)!=null){window[a].lz_livebox_show()}}function lz_livebox_save_pos(){if(lz_session!=null&&document.getElementById("lz_overlay_chat")!=null){if(!lz_is_mobile){lz_session.OVLCPos=document.getElementById("lz_overlay_chat").style.top+","+document.getElementById("lz_overlay_chat").style.left}lz_session.Save()}};function lz_livebox_v2(h,c,e,f,j,a,i,b,g,d){this.Version="2";this.m_Id=h;this.m_HTML=c;this.m_Width=e;this.m_Height=f;this.m_Margins=[a,i,b,j];this.m_Unit="px";this.m_UpdateInterval=null;this.m_IsMobile=false;this.m_ScaleFactor=null;this.m_MaxHeight=0;this.m_Parent=(typeof d=="undefined")?document.body:d;this.m_AutoScaleMode=true;this.m_Position=g;this.m_FullScreenMode=false;this.m_FixedMode=false;this.m_ScrollHidden=false;this.m_FrameElement=document.createElement("DIV");this.m_FrameElement.id=this.m_Id;this.m_FrameElement.style.display="none";this.m_FrameElement.innerHTML=this.m_HTML;this.m_Parent.appendChild(this.m_FrameElement);this.SetFixedMode(false);this.UpdateUI()}lz_livebox_v2.prototype.UpdateUI=function(a){if(this.m_IsMobile){if(!a){this.InitUpdateInterval()}if(this.IsVisible()&&!a){this.m_ScrollHidden=true;this.SetVisible(false)}else{if(!this.IsVisible()&&this.m_ScrollHidden&&a){this.m_ScrollHidden=false;this.SetVisible(true)}}}this.ApplyPosition();this.ApplyScale();this.SetMargin()};lz_livebox_v2.prototype.ApplyPosition=function(){var a=window.innerWidth-document.documentElement.clientWidth;var b=window.innerHeight-document.documentElement.clientHeight;if(this.m_FixedMode||this.m_FullScreenMode){this.m_FrameElement.style.left=0;this.m_FrameElement.style.top=0;this.m_FrameElement.style.right=0;this.m_FrameElement.style.bottom=0}else{if(this.m_Position=="10"){this.m_FrameElement.style.right="auto";this.m_FrameElement.style.top="auto";if(!this.m_IsMobile){this.m_FrameElement.style.left=0;this.m_FrameElement.style.bottom=0}else{this.m_FrameElement.style.right="auto";this.m_FrameElement.style.top="auto";this.m_FrameElement.style.left=(((window.pageXOffset*-1))-a)+this.m_Unit;this.m_FrameElement.style.bottom=(((window.pageYOffset*-1))-b)+this.m_Unit}}else{if(this.m_Position=="22"){this.m_FrameElement.style.left="auto";this.m_FrameElement.style.top="auto";if(!this.m_IsMobile){this.m_FrameElement.style.right=0;this.m_FrameElement.style.bottom=0}else{this.m_FrameElement.style.left="auto";this.m_FrameElement.style.top="auto";this.m_FrameElement.style.right=(((window.pageXOffset*-1))-a)+this.m_Unit;this.m_FrameElement.style.bottom=(((window.pageYOffset*-1))-b)+this.m_Unit}}else{if(this.m_Position=="00"){this.m_FrameElement.style.right=0;this.m_FrameElement.style.left=0;this.m_FrameElement.style.top=0;this.m_FrameElement.style.bottom="auto";this.m_FrameElement.style.height=this.m_Height+this.m_Unit}}}}};lz_livebox_v2.prototype.CalculateScale=function(){if(this.m_AutoScaleMode){var f=Math.max(300,this.m_MaxHeight);var c=Math.max(300,this.m_MaxHeight);f+=window.innerHeight*0.3;c+=window.innerWidth*0.3;var e=window.innerHeight/f;var a=window.innerWidth/c;var d=Math.min(e,a);var b=this.m_IsMobile?1:-1;this.m_ScaleFactor=(this.m_IsMobile)?d/b:null}return this.m_ScaleFactor};lz_livebox_v2.prototype.ApplyScale=function(){this.CalculateScale();if(this.m_ScaleFactor!=null){this.m_FrameElement.style.transform="scale("+this.m_ScaleFactor+","+this.m_ScaleFactor+")";this.m_FrameElement.style.transformOrigin="100% 100%";this.m_FrameElement.style["-webkit-transform"]="scale("+this.m_ScaleFactor+","+this.m_ScaleFactor+")";this.m_FrameElement.style["-webkit-transform-origin"]="100% 100%"}};lz_livebox_v2.prototype.ApplyScaleTo=function(a){if(this.m_ScaleFactor==null){this.CalculateScale()}if(a>0&&this.m_ScaleFactor!=null){return(a*this.m_ScaleFactor)/a}return a};lz_livebox_v2.prototype.SetVisible=function(a){this.m_FrameElement.style.display=(a)?"block":"none"};lz_livebox_v2.prototype.IsVisible=function(){return this.m_FrameElement.style.display=="block"};lz_livebox_v2.prototype.SetMobile=function(a){};lz_livebox_v2.prototype.InitUpdateInterval=function(){var a=this;if(this.m_UpdateInterval!=null){clearInterval(this.m_UpdateInterval)}this.m_UpdateInterval=window.setInterval(function(){a.UpdateUI(true)},500)};lz_livebox_v2.prototype.SetMargin=function(){var d=(this.m_ScaleFactor!=null)?this.m_ScaleFactor:1;var b=(!this.m_FullScreenMode)?this.m_Margins[2]:0;var a=this.m_Margins[0];var c=(!this.m_FullScreenMode&&this.m_Position!="00")?this.m_Margins[1]:0;this.m_FrameElement.style.margin=(this.m_FixedMode)?0:(a+"px "+Math.abs(c*d)+"px "+Math.abs(b*d)+"px 0")};lz_livebox_v2.prototype.SetFixedMode=function(a){this.m_FixedMode=a;this.m_FrameElement.style.position=(a||!this.m_IsMobile)?"fixed":"absolute";this.m_FrameElement.style.width=(a)?"auto":this.m_Width+this.m_Unit;this.m_FrameElement.style.height=(a)?"auto":this.m_Height+this.m_Unit;this.SetMargin();this.ApplyPosition()};lz_livebox_v2.prototype.SetFullscreenMode=function(a){this.m_FullScreenMode=a;this.m_FrameElement.style.position="absolute";this.m_FrameElement.style.width="auto";this.m_FrameElement.style.height="auto";this.SetMargin();this.ApplyPosition()};LiveZilla=function(){};LiveZilla.OptInCookie=false;LiveZilla.OptOutCookie=false;LiveZilla.OptOutTrack=false;LiveZilla.CaptureStreamCurrentURL=null;LiveZilla.CaptureStreamCurrentBL=0;LiveZilla.OptInCookies=function(){LiveZilla.OptInCookie=true;LiveZilla.Engine.Poll(5371)};LiveZilla.OptOutCookies=function(){LiveZilla.OptOutCookie=true;LiveZilla.Engine.Poll(5372)};LiveZilla.OptOutTracking=function(){LiveZilla.OptOutTrack=true;LiveZilla.Engine.Poll(5373)};LiveZilla.ExecuteEvent=function(a){lz_event_fire(a)};LiveZilla.SetData=function(a){lz_data=a;LiveZilla.Engine.Poll(5374)};LiveZilla.Engine=function(){};LiveZilla.Engine.UpdateTextLinks=function(c){var a=document.getElementsByTagName("a");for(var b=0;b0){a+="&ptl="+LiveZillaData.Language}else{if(lz_d(lz_data.language)){f="&ptl="+encodeURIComponent(lz_data.language);if(a.indexOf(f)==-1){a+=f}}}if(LiveZillaData.AreaCode.length>0){a+="&ptw="+encodeURIComponent(lz_global_base64_decode(LiveZillaData.AreaCode))}else{if(lz_d(lz_data.website)){f="&ptw="+encodeURIComponent(lz_data.website);if(a.indexOf(f)==-1){a+=f}}}if(lz_d(lz_data.textlink)){a+="&ctl=1"}if(lz_d(lz_data.group)){f="&group="+encodeURIComponent(lz_data.group);if(a.indexOf(f)==-1){a+=f}}return a};LiveZilla.Engine.AddPassThruParameter=function(a,b){var f="",e=false;var d=lz_d(lz_data.overwrite)&&lz_data.overwrite;if(lz_d(LiveZillaData["F"+b])&&LiveZillaData["F"+b]!=""){f=LiveZillaData["F"+b];e=true}if(lz_d(lz_data[b])&&(!e||(lz_d(lz_data.overwrite)&&lz_data.overwrite))){f=lz_global_base64_url_encode(lz_data[b])}if((lz_chat_get_input_value(b)==""||d)&&f!=""){var c="&f"+b+"="+encodeURIComponent(f);if(a.indexOf(c)==-1){return c}}return""};LiveZilla.Engine.Callback=function(a){if(lz_poll_frequency!=a){lz_poll_frequency=a;clearTimeout(lz_timer);lz_timer=setTimeout(function(){LiveZilla.Engine.Poll(8846)},(lz_poll_frequency*1000))}if(lz_timer_connection_error!=null){clearTimeout(lz_timer_connection_error)}if(!lz_stopped){lz_timer_connection_error=setTimeout(function(){LiveZilla.Engine.Callback(a)},30*1000)}lz_tracking_remove_script("livezilla_pollscript");if(lz_poll_required){lz_tracking_server_request(lz_poll_required,"livezilla_pollscript");lz_poll_required=false}LiveZilla.Engine.UpdateButtons()};LiveZilla.Engine.ApplyScreenCapture=function(a,j,e,c,h,f,b,d){if(LiveZilla.CaptureStreamCurrentURL==null){LiveZilla.CaptureStreamCurrentURL=b}else{if(LiveZilla.CaptureStreamCurrentURL!=b){window.location.href=b;return}}function i(q){var k=";base64,";var p=q.split(k);var r=p[0].split(":")[1];var l=window.atob(p[1]);var o=l.length;var n=new Uint8Array(o);for(var m=0;m-1){if(d){document.body.appendChild(q);setTimeout(function(){q.style.top=(parseInt(f)+parseInt(c))+"px";q.style.left=(parseInt(h)+parseInt(e))+"px"},50);window.scroll({top:c,left:e,behavior:"smooth"})}else{window.scrollTo(e,c)}}};g.readAsText(i(a))};LiveZilla.Engine.Stop=function(a){lz_stopped=true;lz_tracking_remove_overlay_chat();lz_tracking_remove_script("livezilla_pollscript");if(a==1242){window.name="";location.reload()}};LiveZilla.Engine.SetID=function(c,a,b){lz_session.UserId=lz_global_base64_decode(c);lz_session.BrowserId=lz_global_base64_decode(a);lz_session.Save();lz_data_id=lz_global_base64_decode(b)};LiveZilla.Engine.AddChatWidget=function(m,i,d,e,a,j,k,f,g,h){if(typeof lz_ovlel_classic!="undefined"){OverlayChatWidgetV2.__ModeClassic=!lz_ovlel_fsm&&!lz_is_mobile;if(!OverlayChatWidgetV2.__ModeClassic){f=30}}if(typeof lz_ovlel_api!="undefined"){OverlayChatWidgetV2.__ModeAPI=true}if(lz_ovlel.length==1&&!OverlayChatWidgetV2.__ModeAPI){return}lz_header_text=lz_global_base64_decode(i);if(lz_overlay_chat==null&&lz_overlays_possible){if(lz_chat_get_wm_element("phone")!=null){if(lz_chat_get_wm_element("phone").inbound!=false&&lz_chat_get_wm_element("phone").outbound!=false){if(e<720){e=720}}}var c=20;OverlayChatWidgetV2.ButtonTexts=lz_text_wm_s;OverlayChatWidgetV2.__ModeSingle=OverlayChatWidgetV2.__ModeClassic||(lz_ovlel.length==2)||(lz_ovlel.length==3&&lz_chat_get_wm_element("chat")!=null&&lz_chat_get_wm_element("ticket")!=null&&!lz_ticket_when_online);if(OverlayChatWidgetV2.__ModeSingle){c=80}if(lz_global_get_window_width()>0){e=Math.min(e,lz_global_get_window_height()-(f+c));d=Math.min(d,lz_global_get_window_width())}lz_overlay_chat_height=e;lz_overlay_chat_width=d;m=(lz_global_base64_decode(m)).replace("",lz_header_text);m=m.replace("",lz_get_icon("lz_chat_switch_so","toggle-off",""," lz_chat_overlay_toggle_icon"));m=m.replace("",lz_get_icon("lz_chat_switch_tr","toggle-off",""," lz_chat_overlay_toggle_icon"));m=m.replace("",lz_get_icon("lz_chat_switch_et","toggle-off",""," lz_chat_overlay_toggle_icon"));m=m.replace("",lz_get_icon("lz_chat_feedback_init","thumbs-o-up","OverlayChatWidgetV2.ToggleFeedback(true);",""));m=m.replace("",lz_get_icon("lz_chat_options_button","ellipsis-h","lz_chat_switch_options_table();lz_stop_propagation(evt);",""));m=m.replace("",lz_get_icon("lz_chat_overlay_minimize","times-circle","OverlayChatWidgetV2.SetMode('',true);",""));m=m.replace("",lz_get_icon("lz_chat_kb_match_close","times-circle","lz_chat_kb_deactivate(true,false);",""));m=m.replace("",lz_get_icon("lz_chat_overlay_options_close","times-circle","lz_chat_switch_options(lz_chat_option_function,false);",""));m=m.replace(//g,lz_get_icon("","info-circle","",""));m=m.replace(//g,lz_get_icon("","plus-square",""," lz_chat_fill"));m=m.replace(//g,lz_get_icon("","camera",""," lz_chat_fill"));m=m.replace("",lz_get_icon("lz_chat_apo_icon","expand","OverlayChatWidgetV2.Pop();",""));m=m.replace(//g,h);m=m.replace(//g,(OverlayChatWidgetV2.__ModeClassic&&f==0)?0:h);m=m.replace("",lz_get_icon("lz_chat_text_send","send","OverlayChatWidgetV2.InputKeyUp({keyCode:13,ctrlKey:false});lz_chat_set_focus();lz_stop_propagation(evt);",""));m=m.replace("",lz_get_icon("lz_chat_text_file","clip","OverlayChatWidgetV2.InitFileUpload();",""));m=m.replace("",lz_get_icon("lz_chat_text_sc","camera","OverlayChatWidgetV2.CaptureScreen();lz_stop_propagation(evt);",""));OverlayChatWidgetV2.Margin[1]=(k+2);OverlayChatWidgetV2.Margin[2]=(f+6);if(OverlayChatWidgetV2.__ModeClassic){OverlayChatWidgetV2.Margin[1]=k;OverlayChatWidgetV2.Margin[2]=f}else{if(OverlayChatWidgetV2.__ModeAPI){OverlayChatWidgetV2.Margin[1]+=0}else{if(OverlayChatWidgetV2.__ModeTextInline&&!OverlayChatWidgetV2.__ModeSingle){OverlayChatWidgetV2.Margin[1]+=OverlayChatWidgetV2.GetWMWidth()+15}else{if(!OverlayChatWidgetV2.__ModeSingle){OverlayChatWidgetV2.Margin[1]+=OverlayChatWidgetV2.__SizeWidth+15}else{OverlayChatWidgetV2.Margin[2]+=OverlayChatWidgetV2.__SizeHeight+Math.floor(17*OverlayChatWidgetV2.__Ratio)}}}}var l=(lz_ovlel_fsm)?((OverlayChatWidgetV2.__ModeSingle)?0:Math.floor(48*OverlayChatWidgetV2.__Ratio)):0;lz_overlay_chat=new lz_livebox_v2("lz_overlay_chat",m,lz_overlay_chat_width,e,a,l,OverlayChatWidgetV2.Margin[1],OverlayChatWidgetV2.Margin[2],g,(lz_ovlel_fsm)?document.getElementById("lz_chat_fs_body"):document.body);lz_overlay_chat.m_AutoScaleMode=false;if(lz_ovlel_fsm){document.getElementById("lz_chat_apo").style.display="none";document.getElementById("lz_chat_overlay_main").style.border=0;document.getElementById("lz_chat_overlay_main").style.boxShadow="none";document.getElementById("lz_chat_feedback_init").style.right="10px";document.getElementById("lz_chat_feedback_init").style.left="auto";if(lz_d(lz_data)&&lz_d(lz_data.header)){document.getElementById("lz_chat_fs_logo_left").firstChild.src=lz_data.header}else{document.getElementById("lz_chat_fs_logo_left").firstChild.src=lz_comp_logo}lz_overlay_chat.SetFullscreenMode(true);lz_session.OVLWMState="1"}else{if(lz_is_mobile){lz_session.OVLWMState="0";lz_session.OVLWMSElem=""}else{if(OverlayChatWidgetV2.__ModeClassic){var b=document.createElement("div");b.id="livezilla_c_chat";b.className="lz_overlay_c";b.style.display="none";document.getElementById("lz_chat_overlay_main").appendChild(b)}}}if(!lz_is_mobile||lz_overlay_chat.m_FullScreenMode){if(lz_overlay_chat.m_FullScreenMode||(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!="wm"&&lz_session.OVLWMSElem.length)){lz_overlay_chat.SetVisible(true)}else{if(OverlayChatWidgetV2.__ModeClassic&&!OverlayChatWidgetV2.__ModeAPI){lz_overlay_chat.SetVisible(true);OverlayChatWidgetV2.Minimize()}}}lz_overlay_chat.m_FrameElement.style.zIndex=(OverlayChatWidgetV2.__ModeSingle)?lz_overlay_zindex+1:lz_overlay_zindex;document.getElementById("lz_chat_data_form").style.zIndex="+1000";document.getElementById("lz_chat_overlay_options_box_bg").style.zIndex="+2000";document.getElementById("lz_chat_options_table").style.zIndex="+3000";document.getElementById("lz_chat_overlay_options_frame").style.zIndex="+4000";document.getElementById("lz_chat_overlay_options_close").getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path("times-circle"));document.getElementById("lz_chat_overlay_minimize").getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path("times-circle"));lz_overlay_chat.m_FrameElement.style.overflow="visible"}};LiveZilla.Engine.Poll=function(d,e){try{var a="&tv=2.3.1.3&b="+lz_global_base64_url_encode(lz_session.BrowserId)+"&pc="+lz_global_base64_url_encode(++lz_poll_id);a+=(lz_session.UserId!=null)?"&i="+lz_global_base64_url_encode(lz_session.UserId):"";if(lz_referrer.length>0){a+="&rf="+lz_global_base64_url_encode(lz_referrer)}a=LiveZilla.Engine.AddPassThruParameters(a);if(lz_data_id!=null){a+="&di="+lz_data_id}if(lz_poll_id<=3||e){a+="&cd="+lz_global_base64_url_encode(window.screen.colorDepth)+"&rh="+lz_global_base64_url_encode(screen.height)+"&rw="+lz_global_base64_url_encode(screen.width)+"&tzo="+lz_global_base64_url_encode(lz_timezone_offset);if(lz_geo_resolution_needed&&lz_session.GeoResolved.length==7){a+="&geo_lat="+lz_session.GeoResolved[0]+"&geo_long="+lz_session.GeoResolved[1]+"&geo_region="+lz_session.GeoResolved[2]+"&geo_city="+lz_session.GeoResolved[3]+"&geo_tz="+lz_session.GeoResolved[4]+"&geo_ctryiso="+lz_session.GeoResolved[5]+"&geo_isp="+lz_session.GeoResolved[6]}if(lz_geo_resolution!=null&&lz_geo_resolution.Span>0){a+="&geo_ss="+lz_geo_resolution.Span}}var c=document.title;if(c.length>60){c=c.substring(0,60)+"..."}a+="&dc="+lz_global_base64_url_encode(c);a+="&ue="+lz_global_base64_url_encode(lz_global_base64_url_encode(window.location.href));if(LiveZilla.OptInCookie){a+="&oica=1"}if(LiveZilla.OptOutCookie){a+="&ooca=1"}if(LiveZilla.OptOutTrack){a+="&ntca=1"}if(LiveZillaData.PassThruParameters.length>0){a+="&"+lz_global_base64_decode(LiveZillaData.PassThruParameters)}if(typeof OverlayChatWidgetV2!="undefined"&&lz_overlay_chat_available){a+=OverlayChatWidgetV2.AddParameters()}if(lz_deactivate!=null){a+="&deactr="+lz_global_base64_url_encode(lz_deactivate)}if(lz_init_floating_selector!=null){lz_stopped=false;a+="&ifs=1";if(lz_init_floating_selector[0]){a+="&ifs_oc=MQ_"}if(lz_init_floating_selector[1]){a+="&ifs_opi=MQ_"}if(lz_init_floating_selector[1]){a+="&ifs_pin="+lz_init_floating_selector[2]}if(lz_init_floating_selector[1]){a+="&ifs_pii="+lz_init_floating_selector[3]}if(lz_init_floating_selector[4]){a+="&ifs_opo=MQ_"}if(lz_init_floating_selector[5]){a+="&ifs_ot=MQ_"}if(lz_init_floating_selector[6]){a+="&ifs_okb=MQ_"}a+="&ifs_osf="+lz_init_floating_selector[7];a+="&ifs_ost="+lz_init_floating_selector[8];a+="&ifs_osg="+lz_init_floating_selector[9];if(lz_init_floating_selector[10]){a+="&ifs_cl1="+lz_init_floating_selector[10]}if(lz_init_floating_selector[11]){a+="&ifs_cl2="+lz_init_floating_selector[11]}if(lz_init_floating_selector[12]){a+="&ifs_cl3="+lz_init_floating_selector[12]}a+="&ifs_cht="+lz_init_floating_selector[13];a+="&ifs_add="+lz_global_base64_url_encode(lz_init_floating_selector[14])}if(lz_event_fire_id!=null){a+="&fe="+lz_global_base64_url_encode(lz_event_fire_id);lz_event_fire_id=null;lz_stopped=false}if(typeof OverlayChatWidgetV2!="undefined"&&OverlayChatWidgetV2.RemoveAttachmentId!=null){a+="&tra="+OverlayChatWidgetV2.RemoveAttachmentId;OverlayChatWidgetV2.RemoveAttachmentId=null;lz_load_inputs=true}if(lz_load_inputs!=null){a+="&ri=MQ_";lz_load_inputs=null}}catch(b){console.log(b)}if(!lz_stopped){lz_tracking_server_request(a,"livezilla_pollscript");clearTimeout(lz_timer);lz_timer=setTimeout(function(){LiveZilla.Engine.Poll(42274)},(lz_poll_frequency*1000))}};LiveZilla.Engine.Init=function(){if(typeof LiveZillaData=="undefined"||!lz_resources[0]||!lz_resources[1]||!lz_resources[2]||(lz_overlay_chat_available&&(!lz_resources[4]))){setTimeout(function(){LiveZilla.Engine.Init()},100);return}if(location.hash.indexOf("#lzscrcap_")!=-1){var d=location.hash.split("#lzscrcap_")[1];var c=document.createElement("script");c.src=lz_poll_server+"getfile.php?file=screenshot.lzsc&id="+d+"&lzscrcap=1";document.body.appendChild(c);return}else{if(location.hash.indexOf("#lzscrcapstr_")!=-1){var b=function(){if(document.getElementById("strupsc")!=null){document.body.removeChild(document.getElementById("strupsc"))}var f=location.hash.split("#lzscrcapstr_")[1];f=f.split("_");var e=document.createElement("script");e.id="strupsc";e.src=lz_poll_server+"getfile.php?userid="+f[0]+"&lzscrcapstr=1&browserid="+f[1]+"&token="+f[2];document.body.appendChild(e)};b();setInterval(b,4000);return}}if(typeof lz_data.language!="undefined"){LiveZillaData.Language=encodeURIComponent(lz_data.language)}lz_server_time_diff=(parseInt(lz_server_time)-parseInt(lz_global_timestamp()));lz_geo_resolution=new lz_geo_resolver();lz_session=new lz_jssess();lz_session.CookiePrefix=LiveZillaData.CookiePrefix;lz_session.Load();if(location.search.indexOf("lzcobrowse")!=-1){lz_session.Save();LiveZilla.Engine.Poll(3251);return}try{if(window.opener!=null&&typeof(window.opener.lz_get_session)!="undefined"){lz_session.UserId=window.opener.lz_get_session().UserId;lz_session.GeoResolved=window.opener.lz_get_session().GeoResolved}}catch(a){}lz_session.Save();if(!lz_tracking_geo_resolute()){LiveZilla.Engine.Poll(11121)}if(lz_is_mobile&&!lz_ovlel_fsm){window.addEventListener("resize",lz_livebox_init_center_boxes_hide);window.addEventListener("scroll",lz_livebox_init_center_boxes_hide);window.setInterval("lz_livebox_init_center_boxes(false)",1000)}};if(typeof lz_referrer=="undefined"){var lz_referrer=document.referrer;var lz_stopped=false;var lz_request_window=null;var lz_alert_window=null;var lz_overlay_box=null;var lz_overlay_chat=null;var lz_overlay_chat_height=0;var lz_overlay_chat_width=0;var lz_overlay_wm=null;var lz_floating_button=null;var lz_floating_button_selector=null;var lz_overlay_active=null;var lz_overlay_last=null;var lz_alert_active=null;var lz_chat_state_expanded=false;var lz_event_fire_id=null;var lz_session;var lz_poll_id=0;var lz_timer=null;var lz_timezone_offset=(new Date().getTimezoneOffset()/60)*-1;var lz_chat_windows=[];var lz_cb_url=[];var lz_document_head=document.getElementsByTagName("head")[0];var lz_poll_required=false;var lz_timer_connection_error=null;var lz_deactivate=null;var lz_force_monitoring=false;var lz_init_floating_selector=null;var lz_chat_fixed_mode=false;var lz_data_id=null;var lz_overlay_zindex=20000000;var lz_load_inputs=true;var lz_server_time_diff=0;if(typeof lz_ovlel_fsm=="undefined"){var lz_ovlel_fsm=false}if(typeof lz_ovlec=="undefined"){var lz_ovlec=null}if(typeof lz_ovlel_tm=="undefined"){var lz_ovlel_tm=0}if(typeof lz_code_id=="undefined"){var lz_code_id=""}if(typeof lz_data=="undefined"){var lz_data={}}LiveZilla.Engine.Init()}function lz_is_geo_resolution_needed(){return(lz_geo_resolution_needed&&lz_session.GeoResolved.length!=7&&lz_session.GeoResolutions<3&&lz_geo_url.length)}function lz_get_session(){return lz_session}function lz_tracking_server_request(d,a){if(lz_stopped){return}var e=document.getElementById(a);if(e==null){for(var c in lz_chat_windows){if(!lz_chat_windows[c].Deleted&&lz_chat_windows[c].Closed){lz_chat_windows[c].Deleted=true;d+="&clch="+lz_global_base64_encode(lz_chat_windows[c].BrowserId)}}d="?rqst=track"+d;var b=document.createElement("script");b.id=a;b.src=lz_poll_url+d;b.async=true;lz_document_head.appendChild(b)}else{lz_poll_required=d}}function lz_tracking_remove_script(a){var b=document.getElementById(a);if(b!=null){lz_document_head.removeChild(b)}}function lz_tracking_geo_result(g,e,a,f,c,b,d){lz_session.GeoResolved=[g,e,a,f,c,b,d];lz_session.Save();LiveZilla.Engine.Poll(1001)}function lz_tracking_set_geo_span(a){lz_geo_resolution.SetSpan(a)}function lz_tracking_geo_resolute(){if(lz_is_geo_resolution_needed()){lz_session.GeoResolutions++;lz_session.Save();lz_geo_resolution.SetStatus(1);if(lz_session.GeoResolutions<2){lz_geo_resolution.OnEndEvent="lz_tracking_geo_result";lz_geo_resolution.OnSpanEvent="lz_tracking_set_geo_span";lz_geo_resolution.OnTimeoutEvent=lz_tracking_geo_resolute;lz_geo_resolution.ResolveAsync()}else{lz_tracking_geo_failure()}return true}else{lz_geo_resolution.SetStatus(7);return false}}function lz_tracking_add_floating_button(m,b,l,k,j,h,a,g,i,e,c,d){if(lz_floating_button!=null||lz_ovlel_fsm){return}var f=document.getElementById("chat_button_image");lz_floating_button=new lz_livebox("lz_floating_button",f.parentNode.parentNode.innerHTML,c,d,a,g,i,e,m,0,6);if(b){lz_floating_button.lz_livebox_shadow(l,k,j,h)}lz_floating_button.lz_livebox_create();lz_floating_button.lz_livebox_show(lz_overlay_zindex+1)}function lz_tracking_remove_floating_button(){if(lz_floating_button==null){return}document.getElementById("lz_floating_button").parentNode.removeChild(document.getElementById("lz_floating_button"));lz_floating_button=null}function lz_tracking_init_floating_button_selector(a){if(lz_floating_button_selector==null&&a!=null){lz_floating_button.lz_livebox_div.className=(lz_floating_button.lz_livebox_div.className+" cwait").replace(/ cdef/g,"");lz_init_floating_selector=a;LiveZilla.Engine.Poll(1129)}else{lz_floating_button_selector.lz_livebox_close("lz_floating_button_selector");lz_init_floating_selector=lz_floating_button_selector=null}}function lz_tracking_add_overlay_box(q,a,h,e,o,k,g,p,n,i,f,b,c,l,d,t,r,s,m,j){if(!lz_ovlel_fsm&&lz_request_window==null&&lz_overlay_box==null&&lz_overlays_possible&&lz_overlay_last!=q){lz_overlay_last=lz_overlay_active=q;lz_overlay_box=new lz_livebox("lz_overlay_box",lz_global_base64_decode(a),d,t,f,b,c+20,l,h,e,o);if(k){lz_overlay_box.lz_livebox_shadow(g,p,n,"#"+i)}if(r){lz_overlay_box.lz_livebox_background("#"+s,m)}lz_overlay_box.lz_livebox_create();lz_overlay_box.lz_livebox_show(lz_overlay_zindex+3);lz_overlay_box.lz_livebox_div.style.borderRadius=j+"px";if(k){lz_overlay_box.lz_livebox_div.style.background="#FFFFFF"}if(lz_fixed_mode_possible()&&(d>lz_global_get_window_width(true)||t>lz_global_get_window_height()||lz_chat_fixed_mode)){lz_overlay_box.lz_livebox_fixed_mode=true;lz_overlay_box.lz_livebox_div.style.height="auto";lz_overlay_box.lz_livebox_div.style.width="auto";lz_overlay_box.lz_livebox_div.style.borderRadius="0";lz_overlay_box.lz_livebox_div.style.position="fixed";lz_overlay_box.lz_livebox_div.getElementsByTagName("div")[0].style.borderRadius="0";lz_overlay_box.lz_livebox_div.getElementsByTagName("div")[0].style.height="100%";lz_overlay_box.lz_livebox_div.getElementsByTagName("div")[0].style.width="100%";lz_overlay_box.lz_livebox_div.getElementsByTagName("div")[0].style.overflow="scroll"}window.focus()}}function lz_tracking_send_alert(b,a){if(lz_alert_active==null&&lz_overlays_possible){alert(lz_global_base64_decode(a));lz_alert_active=null;window.focus()}}function lz_tracking_remove_buttons(){for(var a=0;a/g,OverlayChatWidgetV2.__Scale);d=d.replace("",OverlayChatWidgetV2.__BorderWidth);d=d.replace(//g,OverlayChatWidgetV2.__SizeHeight);d=d.replace("",-12*OverlayChatWidgetV2.__Ratio);d=d.replace("",-11*OverlayChatWidgetV2.__Ratio);OverlayChatWidgetV2.AddWMElements(d,c,e,f,b,a);if(lz_overlay_wm!=null){OverlayChatWidgetV2.UpdateWMUI();lz_overlay_wm.UpdateUI();lz_chat_update_css()}if(OverlayChatWidgetV2.__ModeAPI){lz_overlay_wm.SetVisible(false)}}function lz_tracking_cbubble(u,a){try{var r=1,q=5,l=lz_d(lz_ovlec.ec_shx)?lz_ovlec.ec_shx:0,s=(lz_ovlec.ec_w-l-3),d=lz_ovlec.ec_h-25,v=lz_ovlec.ec_br,c=lz_d(lz_ovlec.ec_shb)?lz_ovlec.ec_shb:0,k=lz_d(lz_ovlec.ec_shy)?lz_ovlec.ec_shy:0,b=lz_d(lz_ovlec.ec_shc)?lz_ovlec.ec_shc:"#000",i=lz_d(lz_ovlec.ec_bcs)?lz_ovlec.ec_bcs:0,p=lz_d(lz_ovlec.ec_bce)?lz_ovlec.ec_bce:0,w=lz_d(lz_ovlec.ec_bw)?lz_ovlec.ec_bw:0,f=lz_d(lz_ovlec.ec_bgcs)?lz_ovlec.ec_bgcs:0,j=lz_d(lz_ovlec.ec_bgce)?lz_ovlec.ec_bgce:0,e=lz_d(lz_ovlec.ec_a_bgc)?lz_ovlec.ec_a_bgc:0;function n(){u.beginPath();u.moveTo(r+v,q);u.lineTo(r+s-v,q);u.quadraticCurveTo(r+s,q,r+s,q+v);u.lineTo(r+s,q+d-v);u.quadraticCurveTo(r+s,q+d,r+s-v,q+d);u.lineTo(o+r+60+10,q+d);u.lineTo(o+r+45+10,q+d+10);u.lineTo(o+r+30+10,q+d);u.lineTo(r+v,q+d);u.quadraticCurveTo(r,q+d,r,q+d-v);u.lineTo(r,q+v);u.quadraticCurveTo(r,q,r+v,q);u.closePath();u.save()}function x(){var B=a;var z=d;var y=r;var m=q;var A=v-1;u.beginPath();u.moveTo(y+A,m);u.lineTo(y+B,m);u.lineTo(y+B,m+z);u.lineTo(y+A,m+z);u.quadraticCurveTo(y,m+z,y,m+z-A);u.lineTo(y,m+A);u.quadraticCurveTo(y,m,y+A,m);u.closePath();u.save()}r+=w;s-=w;var o=s-90;n();var g=u.createLinearGradient(r,q,0,d);g.addColorStop(0,f);g.addColorStop(1,j);u.fillStyle=g;if(b!=""){u.shadowColor=b;u.shadowBlur=c;u.shadowOffsetX=l;u.shadowOffsetY=k}u.fill();u.shadowBlur=0;u.shadowOffsetX=0;u.shadowOffsetY=0;if(a>0){x();u.fillStyle=e;u.fill()}if(w>0){n();var h=u.createLinearGradient(r,q,0,d);h.addColorStop(0,i);h.addColorStop(1,p);u.strokeStyle=h;u.lineWidth=w;u.stroke()}}catch(t){console.log(t)}}function lz_tracking_remove_overlay_chat(){if(lz_overlay_chat!=null){clearTimeout(lz_chat_invite_timer);clearTimeout(lz_chat_waiting_posts_timer);lz_overlay_chat=null;var b=["lz_overlay_wm","livezilla_wm","lz_overlay_chat","lz_chat_fs_header","lz_chat_fs_body"];for(var a in b){if(document.getElementById(b[a])!=null){document.getElementById(b[a]).remove()}}}}function lz_tracking_geo_failure(){lz_tracking_set_geo_span(lz_geo_error_span);lz_geo_resolution.SetStatus(4);lz_session.GeoResolved=["LTUyMg==","LTUyMg==","","","","",""];lz_session.Save();LiveZilla.Engine.Poll(1002)}function lz_tracking_init_external_window(a,c,d){var b="";if(b.indexOf("&ptn=")==-1&&a!=""){b+="&ptn="+encodeURIComponent(a)}if(b.indexOf("&operator=")==-1&&c!=""){b+="&operator="+encodeURIComponent(c)}if(b.indexOf("&group=")==-1&&d!=""){b+="&hg=Pw__&group="+encodeURIComponent(d)}b+="&nct=MQ__&hfk=MQ__";b=LiveZilla.Engine.AddPassThruParameters(b);void (window.open(lz_poll_server+lz_poll_file_chat+"?a=MQ__"+b.replace("&&","&"),"LiveZilla","width="+lz_window_width+",height="+lz_window_height+",left=50,top=50,resizable=yes,menubar=no,location=no,status=yes,slidebars=no"))}function lz_tracking_deactivate(a,b){lz_deactivate=b;LiveZilla.Engine.Poll(1214);alert(a)}function lz_tracking_set_widget_visibility(a){if(lz_session.OVLCState!="0"&&!a){return}if(lz_overlay_chat!=null){if(a&&!lz_overlay_chat.lz_livebox_shown){lz_overlay_chat.lz_livebox_show(lz_overlay_zindex);if(lz_session.OVLCState=="1"){lz_chat_change_state(false,true)}lz_chat_set_init();lz_chat_update_css()}document.getElementById("lz_overlay_chat").style.display=(a)?"":"none"}}function lz_tracking_add_tag(_html){var container=document.createElement("div");container.innerHTML=lz_global_base64_decode(_html);document.body.appendChild(container);var arr=container.getElementsByTagName("script");for(var n=0;n500){OverlayChatWidgetV2.__ModeTextInline=!lz_ovlel_fsm}else{lz_border_radius=6}}document.addEventListener("mousemove",function(a){OverlayChatWidgetV2.MouseMove(a)},false);function lz_chat_unset_focus(){try{if(LiveZillaData.InputFieldIndices!=null){if(document.getElementById("lz_chat_data_form").style.display!="none"){for(var c=0;c",'
');g=g.replace("",lz_poll_server);g=g.replace("name=&ebg=","operator="+encodeURIComponent(OverlayChatWidgetV2.CurrentOperator.Id));g=g.replace("","");g=g.replace("lz_overlay_chat_message_change","");g=g.replace("",lz_global_htmlentities(OverlayChatWidgetV2.CurrentOperator.Fullname));d.innerHTML=g;if(f){d.classList.add("lz_preview_message")}return d};lz_operator_typing=true;document.getElementById("lz_chat_content_inlay").appendChild(a("lz_chat_overlay_typing_post"));if(OverlayChatWidgetV2.PreviewTextControl){document.getElementById("lz_overlay_preview_messages").appendChild(a("lz_chat_overlay_typing_post_preview",true))}OverlayChatWidgetV2.ScrollDown(12834)}else{if(c==null&&lz_operator_typing&&document.getElementById("lz_chat_overlay_typing_post")!=null){lz_operator_typing=false;document.getElementById("lz_chat_content_inlay").removeChild(document.getElementById("lz_chat_overlay_typing_post"));delete document.getElementById("lz_chat_overlay_typing_post");if(document.getElementById("lz_chat_overlay_typing_post_preview")!=null){document.getElementById("lz_overlay_preview_messages").removeChild(document.getElementById("lz_chat_overlay_typing_post_preview"));delete document.getElementById("lz_chat_overlay_typing_post_preview")}}}}}}function lz_chat_switch_extern_typing(b){if(OverlayChatWidgetV2.__ModeBot){b=false}var a=(b!=lz_external.Typing);if(b){OverlayChatWidgetV2.__PostsNoticed=true;if(lz_timer_typing!=null){clearTimeout(lz_timer_typing)}lz_timer_typing=setTimeout(function(){lz_chat_switch_extern_typing(false)},5000)}lz_external.Typing=b;if(a&&OverlayChatWidgetV2.CurrentOperator!=null){LiveZilla.Engine.Poll(1115)}}function lz_kb_set_url(a){document.getElementById("lz_overlay_module_knowledgebase").style.display="block";var b=lz_poll_server+"knowledgebase.php?no-logo=MQ__&etc="+lz_global_base64_url_encode(lz_color_secondary)+"&ptl="+LiveZillaData.Language+"&ckf="+lz_kb_root;if(!lz_overlay_chat.m_FullScreenMode){b+="&tops=MQ__"}if(a!=""){b+="&search-for="+a}document.getElementById("lz_overlay_module_knowledgebase").getElementsByTagName("iframe")[0].src=b}function lz_chat_set_members(b,g,c){if(g&&lz_global_get_window_width(true)<600){g=false}document.getElementById("lz_chat_members_box").style.display=g?"block":"none";document.getElementById("lz_chat_content_box").style.left=!g?"0":"201px";if(g){if(lz_session.OVLWMState=="1"&&!lz_overlay_chat.m_FullScreenMode){document.getElementById("lz_overlay_chat").style.width="600px"}lz_overlay_chat_width=600}var m=false,o,h="",p="";for(var d=0;d"+lz_substr(a,18,true)+"";if(c[d].op){p+=o}else{h+=o}}}if(lz_chat_status==2&&b!=null){OverlayChatWidgetV2.__PublicGroupChat=b}var f=(p.length)?p+""+h:h;if(document.getElementById("lz_chat_members_box").innerHTML!=f){document.getElementById("lz_chat_members_box").innerHTML=f}for(e=0;e",lz_global_base64_url_decode(OverlayChatWidgetV2.RoomMembers[e].name)))}}for(var e=0;e",lz_global_base64_url_decode(c[e].name)))}else{OverlayChatWidgetV2.AddSystemMessage(lz_text_arrives.replace("",lz_global_base64_url_decode(c[e].name)))}}}OverlayChatWidgetV2.UpdateChatHistoryUI();OverlayChatWidgetV2.RoomMembers=c;if(m){OverlayChatWidgetV2.ScrollDown(24214)}}function lz_chat_data_form_result(){if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.IsChatAvailable()){OverlayChatWidgetV2.SetMode("ticket",false);return}OverlayChatWidgetV2.__FormConfirmRequired=false;if(OverlayChatWidgetV2.__ModeTicketReceived){lz_load_inputs=true;LiveZilla.Engine.Poll(1027);OverlayChatWidgetV2.__ModeTicketReceived=false;OverlayChatWidgetV2.UpdateUI();lz_chat_set_focus(7)}else{if(OverlayChatWidgetV2.__ModeChangeDetails){lz_chat_switch_details(false);if(lz_chat_et_attempt){lz_chat_et_attempt=false;lz_chat_switch_transcript(true)}}else{if(lz_session.OVLWMSElem=="chat"){OverlayChatWidgetV2.StartChat()}else{if(lz_session.OVLWMSElem=="ticket"){lz_chat_send_ticket()}else{if(lz_session.OVLWMSElem=="phone"){lz_chat_send_ticket(true)}}}}}}function lz_chat_update_kb_counter(a){if(document.getElementById("livezilla_wm_c_knowledgebase")!==null){document.getElementById("livezilla_wm_c_knowledgebase").style.display=(a>0)?"table-cell":"none";document.getElementById("livezilla_wm_c_knowledgebase").innerHTML=a}}function lz_chat_init_search_kb(){var a=lz_chat_get_input_value(114);if(lz_session.KBS!=1||a.length<12){return}if(a!=lz_chat_kb_last_search_phrase){lz_shared_kb_last_search_time=lz_global_timestamp();lz_chat_kb_last_search_phrase=lz_chat_kb_search_phrase=a;LiveZilla.Engine.Poll(1241)}}function lz_chat_search_result(a,b){lz_chat_kb_search_phrase="";document.getElementById("lz_chat_kb_match_info").style.display=(b>0)?"block":"none";if(b>0&&!lz_chat_kb_sound_played){OverlayChatWidgetV2.PlaySound(OverlayChatWidgetV2.NotificationSound);lz_chat_kb_sound_played=true}lz_kb_set_url(document.getElementsByName("form_114")[0].value);lz_chat_update_kb_counter(b)}function lz_chat_post(){this.MessageText="";this.MessageTranslationText="";this.MessageId="";this.Received=false}function lz_chat_operator(){this.Id="";this.Fullname="";this.Group="";this.Language="en"}function lz_chat_external_user(){this.Id="";this.Username="";this.Email="";this.Company="";this.Question="";this.Typing=false;this.MessagesSent=[]}function lz_chat_mail_callback(a){lz_chat_loading(false);OverlayChatWidgetV2.__ModeTicketReceived=true;document.getElementById("lz_chat_ticket_received").style.display=(a)?"":"none";document.getElementById("lz_chat_ticket_flood").style.display=(!a)?"":"none";if(a){document.getElementsByName("form_114")[0].value="";lz_ticket=null}else{lz_flood=true}OverlayChatWidgetV2.UpdateUI()}function lz_chat_send_ticket(){lz_chat_save_input_value(114,document.getElementsByName("form_114")[0].value);if(lz_check_missing_inputs(true,"lz_chat_send_ticket")){lz_chat_loading(true);lz_ticket=lz_global_timestamp();LiveZillaData.WriteToServer=true;setTimeout(function(){OverlayChatWidgetV2.AnswerChatRequest(true,true)},500)}}function lz_chat_loading(a){var b=(a!=(document.getElementById("lz_chat_overlay_loading").style.display=="block"));document.getElementById("lz_chat_overlay_loading").style.display=(a)?"block":"none";if(b){if(a){lz_chat_unset_focus()}else{lz_chat_set_focus(43)}}}function lz_check_missing_inputs(h,l){if(LiveZillaData.InputFieldIndices==null){return false}var j=false,p=false,c=false;var b=(lz_session.OVLWMSElem=="chat")?OverlayChatWidgetV2.__CurrentGroup.ChatInputsMandatory:OverlayChatWidgetV2.__CurrentGroup.TicketInputsMandatory;var e=(lz_session.OVLWMSElem=="chat")?OverlayChatWidgetV2.__CurrentGroup.ChatInputsHidden:OverlayChatWidgetV2.__CurrentGroup.TicketInputsHidden;var d=lz_is_placeholder_support();for(var f=0;f0||lz_session.OVLWMSElem=="chat"}else{j=(LiveZillaData.InputFieldValues[f].Type=="CheckBox")?true:lz_chat_get_input_value(o).length>0}if(!d&&j&&LiveZillaData.InputFieldValues[f].Type!="CheckBox"&&lz_global_trim(document.getElementsByName("form_"+o)[0].value)==document.getElementById("lz_form_ph_"+o).value){j=false}}catch(k){}var m=(lz_array_indexOf(e,o)==-1&&(lz_array_indexOf(b,o)!=-1||LiveZillaData.InputFieldValues[f].Validation));if(o==112&&LiveZillaData.InputFieldValues[f].Value.length){if(LiveZillaData.InputFieldValues[f].Value.indexOf("@")==-1||LiveZillaData.InputFieldValues[f].Value.indexOf(".")==-1||LiveZillaData.InputFieldValues[f].Value.length<5){j=false}}if(m&&document.getElementById("lz_form_"+o).style.display=="none"){m=false}var a=(o==116&&lz_session.OVLWMSElem=="phone");var g=false;if(LiveZillaData.InputFieldValues[f].Validation&&!LiveZillaData.InputFieldValues[f].Validated&&lz_array_indexOf(e,LiveZillaData.InputFieldIndices[f])==-1){c=true}if((m||a||g)&&(!j)){if(h){document.getElementById("lz_form_mandatory_"+o).className="lz_input_icon lz_required";document.getElementById("lz_form_mandatory_"+o).style.display="block"}p=true}else{if(h){if(document.getElementById("lz_form_info_"+o).innerHTML.length>0){document.getElementById("lz_form_mandatory_"+o).className="lz_input_icon lz_info";document.getElementById("lz_form_mandatory_"+o).style.display="block"}else{document.getElementById("lz_form_mandatory_"+o).style.display="none"}}}}}if(OverlayChatWidgetV2.AcceptTOS){if(h){document.getElementById("lz_form_mandatory_tos").style.display="none"}if(!document.getElementById("lz_ccb_tos").checked){if(h){document.getElementById("lz_form_mandatory_tos").style.display="block"}p=true}}var n=LiveZillaData.Groups.GetGroupById(document.getElementById("lz_form_groups").value);document.getElementById("lz_form_mandatory_group").className="lz_input_icon lz_required";if(h){document.getElementById("lz_form_mandatory_group").style.display=(n==null)?"block":"none"}if(n==null){p=true}if(p&&!c){return false}else{if(!p&&l!=null){return lz_validate_inputs(l,e)}else{return !c&&!p}}}function lz_validate_inputs(c,a){var b;LiveZillaData.ValidationRequired=false;for(b=0;b5){LiveZillaData.InputFieldValues[b].Validate(c);return false}}}}return true}function lz_validate_input_result(_result,_id){var failed=false;for(var i=0;ia){d.selectedIndex=a}if(c!=e){OverlayChatWidgetV2.UpdateUI()}d.style.color=d.childNodes[d.selectedIndex].style.color;d.style.background=d.childNodes[d.selectedIndex].style.background}OverlayChatWidgetV2.ValidateMode();OverlayChatWidgetV2.UpdateUI();OverlayChatWidgetV2.UpdateButtonUI();OverlayChatWidgetV2.UpdateWMUI();OverlayChatWidgetV2.SetGroupInfo()}function lz_chat_show_info_box(b,a){var d=b.id.replace("lz_form_mandatory_","");var c=document.getElementById("lz_form_info_"+d);c.style.display=(a&&c.style.display!="block")?"block":"none";if(lz_overlay_chat.m_FullScreenMode){c.style.marginLeft="34px"}else{c.style.right="30px"}}function lz_chat_switch_options(g,c,f,b){var d=[];if(!c){lz_chat_unset_focus();var h=document.getElementById("lz_chat_overlay_options_box").style.display=="none";for(var e=0;ea){b.value=b.value.substring(0,a)}}function lz_chat_set_meta(){var b,a=document.getElementsByTagName("meta");if(a.length>0){for(b in a){if(a[b].name=="viewport"&&a[b].id!="lzvpc"){if(a[b].content!=null&&a[b].content.toLowerCase().indexOf("width=device-width")!=-1){return}lz_default_meta=a[b];a[b].parentNode.removeChild(a[b])}}}var c=document.createElement("meta");c.name="viewport";c.id="lzvpc";c.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no";document.getElementsByTagName("head")[0].appendChild(c)}function lz_chat_restore_meta(){if(document.getElementById("lzvpc")!=null){document.getElementById("lzvpc").setAttribute("content","");document.getElementsByTagName("head")[0].removeChild(document.getElementById("lzvpc"))}if(lz_default_meta!=null){document.getElementsByTagName("head")[0].appendChild(lz_default_meta)}}function lz_chat_get_wm_element(a){for(var b=0;b0||(lz_chat_status==0&&lz_check_missing_inputs(true,"OverlayChatWidgetV2.StartChat"))){LiveZillaData.WriteToServer=true;lz_chat_loading(false);if(lz_chat_status==0){if(document.getElementsByName("form_114")[0].value.length){document.getElementById("lz_chat_text").value=document.getElementsByName("form_114")[0].value;OverlayChatWidgetV2.InputKeyUp({keyCode:13,ctrlKey:false})}else{if(!OverlayChatWidgetV2.__ModeBot){OverlayChatWidgetV2.InitChat()}}}OverlayChatWidgetV2.ChatStarted=true;OverlayChatWidgetV2.SetGroupInfo();OverlayChatWidgetV2.UpdateUI()}else{OverlayChatWidgetV2.UpdateUI();lz_chat_set_focus(8)}LiveZilla.Engine.Poll(1153,true)};OverlayChatWidgetV2.ReleasePost=function(b,c){for(var a=0;a0&&OverlayChatWidgetV2.QueuePosition<=d)){document.getElementById(j[h]).getElementsByClassName("lz_chat_queue_position")[0].innerHTML=OverlayChatWidgetV2.QueuePosition.toString()}if(c==-1||(OverlayChatWidgetV2.QueueTime>0&&OverlayChatWidgetV2.QueueTime<=c)){document.getElementById(j[h]).getElementsByClassName("lz_chat_queue_waiting_time")[0].innerHTML=OverlayChatWidgetV2.QueueTime.toString()}}}var g=(lz_overlay_chat.m_FixedMode||lz_overlay_chat.m_FullScreenMode)?lz_global_get_window_width(true):lz_overlay_chat_width;if(document.getElementById("lz_chat_members_box").style.display=="block"){g-=200}for(e=0;edocument.getElementById("lz_chat_content_box").clientHeight)?(g-16+"px"):(g-1+"px")}}};OverlayChatWidgetV2.UpdateWaitingPosts=function(d){if(lz_overlay_chat.m_FullScreenMode){if(!lz_chats_external){if(lz_overlay_wm!=null&&lz_chat_get_wm_element("chat")!=null){document.getElementById("livezilla_wm_c_chat").style.display=(lz_session.OVLCWM>0)?"table-cell":"none";document.getElementById("livezilla_wm_c_chat").innerHTML=lz_session.OVLCWM}else{if(document.getElementById("livezilla_c_chat")!=null){document.getElementById("livezilla_c_chat").style.display=(lz_session.OVLCWM>0&&lz_session.OVLWMState=="0")?"table-cell":"none";document.getElementById("livezilla_c_chat").innerHTML=lz_session.OVLCWM}}}else{if(document.getElementById("livezilla_c_chat")!=null){document.getElementById("livezilla_c_chat").style.display="none"}}}else{if(!lz_chats_external){if(OverlayChatWidgetV2.PostPreview==null){var e=lz_overlay_wm!=null?lz_overlay_wm.m_Margins:lz_overlay_chat.m_Margins;var a=lz_overlay_wm!=null?lz_overlay_wm.m_Height:45;var c=OverlayChatWidgetV2.__ModeClassic?260:lz_overlay_chat_width*0.7;OverlayChatWidgetV2.PostPreview=new lz_livebox_v2("lz_overlay_preview","",c,"auto",0,0,e[1],e[2]+a,"22");if(OverlayChatWidgetV2.Screenshot==null){OverlayChatWidgetV2.PostPreview.SetVisible(true)}OverlayChatWidgetV2.PostPreview.m_FrameElement.style.zIndex=lz_overlay_zindex;OverlayChatWidgetV2.PostPreview.m_FrameElement.onclick=function(){if(lz_overlay_wm!=null){OverlayChatWidgetV2.SetMode("wm",true)}if(!OverlayChatWidgetV2.__ModeSingle&&OverlayChatWidgetV2.IsChatAvailable()){OverlayChatWidgetV2.SetMode("chat",true)}if(OverlayChatWidgetV2.__ModeClassic){OverlayChatWidgetV2.Maximize()}};OverlayChatWidgetV2.ResetPreviewPosts()}var b=lz_session.OVLCWM>0||!OverlayChatWidgetV2.IsChatAvailable();if(lz_session.OVLWMState=="0"&&b&&d!=null&&d.length){if(OverlayChatWidgetV2.Screenshot==null){OverlayChatWidgetV2.PostPreview.SetVisible(true)}var f=document.createElement("div");f.innerHTML=d;document.getElementById("lz_overlay_preview_messages").appendChild(f);OverlayChatWidgetV2.EmbedTextControl(true)}else{if(lz_session.OVLCWM==0){OverlayChatWidgetV2.ResetPreviewPosts()}}}}};OverlayChatWidgetV2.EmbedTextControl=function(a){if(OverlayChatWidgetV2.PreviewTextControl!=a){var b=document.getElementById("lz_chat_overlay_bottom");if(a){document.getElementById("lz_overlay_preview_tctrl").appendChild(b)}else{document.getElementById("lz_overlay_module_chat").appendChild(b)}OverlayChatWidgetV2.PreviewTextControl=a}if(document.getElementById("lz_overlay_preview_tctrl")!=null){document.getElementById("lz_overlay_preview_tctrl").style.display=OverlayChatWidgetV2.IsChatAvailable()?"block":"none"}};OverlayChatWidgetV2.ResetPreviewPosts=function(a){if(a){lz_session.OVLCWM=0;lz_session.Save()}if(OverlayChatWidgetV2.PostPreview==null){return}if(!OverlayChatWidgetV2.PostPreview.m_FrameElement.innerHTML.length){OverlayChatWidgetV2.PostPreview.m_FrameElement.innerHTML=lz_get_icon("lz_wm_preview_close_icon","times-circle","OverlayChatWidgetV2.ResetPreviewPosts(true);OverlayChatWidgetV2.AnswerChatRequest(false,true);lz_stop_propagation(evt);","");OverlayChatWidgetV2.PostPreview.m_FrameElement.innerHTML+='
';OverlayChatWidgetV2.PostPreview.m_FrameElement.innerHTML+='
'}else{document.getElementById("lz_overlay_preview_messages").innerHTML=""}OverlayChatWidgetV2.PostPreview.SetVisible(false);OverlayChatWidgetV2.EmbedTextControl(false)};OverlayChatWidgetV2.ReplaceEmoticons=function(d){if(OverlayChatWidgetV2.__CurrentGroup!=null&&OverlayChatWidgetV2.__CurrentGroup.ChatFunctions!=null&&OverlayChatWidgetV2.__CurrentGroup.ChatFunctions[0]=="0"){return d}var b=[/:-\)/g,/::smile/g,/:\)/g,/:-\(/g,/::sad/g,/:\(/g,/:-]/g,/::lol/g,/;-\)/g,/::wink/g,/;\)/g,/:'-\(/g,/::cry/g,/:-O/g,/::shocked/g,/:-\\\\/g,/::sick/g,/:-p/g,/::tongue/g,/:-P/g,/:\?/g,/::question/g,/8-\)/g,/::cool/g,/zzZZ/g,/::sleep/g,/:-\|/g,/::neutral/g];var a=["smile","smile","smile","sad","sad","sad","lol","lol","wink","wink","wink","cry","cry","shocked","shocked","sick","sick","tongue","tongue","tongue","question","question","cool","cool","sleep","sleep","neutral","neutral"];for(var c=0;c ")}return d};OverlayChatWidgetV2.AddMessages=function(e,c,k,l,b){OverlayChatWidgetV2.__PostsNoticed=lz_is_mobile;if(!e.length){return}e=JSON.parse(lz_global_base64_decode(e));var f="",o="",h=["ONM01"];for(var d=0;d160){m++;a=lz_global_get_window_width()/m}}var g=false;if(!lz_chat_full_load&&lz_session.OVLWMState=="0"){g=true;lz_session.OVLCWM++}else{if(lz_chat_full_load&&lz_session.OVLWMState=="0"&&lz_session.OVLCWM===0&&e.length===2){g=true;lz_session.OVLCWM++}else{if(!lz_chat_full_load&&lz_overlay_chat.m_FullScreenMode&&lz_session.OVLWMSElem!="chat"){lz_session.OVLCWM++}else{if(lz_session.OVLCWM>0&&d>=e.length-lz_session.OVLCWM){g=true}else{if(!OverlayChatWidgetV2.IsChatAvailable()){g=true;lz_session.OVLCWM++}else{if(e[d][3]==1&&!OverlayChatWidgetV2.IsChatActive()){g=true}}}}}}e[d][0]=lz_global_base64_decode(e[d][0]);e[d][0]=e[d][0].replace("",1/m);e[d][0]=e[d][0].replace("",lz_global_get_window_width());e[d][0]=e[d][0].replace("",lz_global_get_window_height());e[d][0]=e[d][0].replace(//g,parseInt(lz_global_get_window_width()/m));e[d][0]=e[d][0].replace(//g,parseInt(lz_global_get_window_height()/m));f+=e[d][0];if(e[d][0].length&&g&&d>=e.length-lz_session.OVLCWM){if(h.indexOf(e[d][1])==-1){if(!(lz_d(e[d][2])&&e[d][2]==0)){if(e[d][3]==1){if(!OverlayChatWidgetV2.IsChatAvailable()&&e[d][4]==1){continue}if(OverlayChatWidgetV2.IsChatAvailable()&&e[d][4]==0){continue}}if(e[d][0].indexOf("'+OverlayChatWidgetV2.ReplaceEmoticons(e[d][0])+""}else{o+="
"+e[d][0]+"
"}}}}}lz_session.Save();OverlayChatWidgetV2.UpdateWaitingPosts(o);if(f!=null){if(lz_chat_full_load&&c){lz_chat_full_load=false}if(k!=null&&OverlayChatWidgetV2.__LastPostReceived!=lz_global_base64_decode(k)){OverlayChatWidgetV2.__LastPostReceived=lz_global_base64_decode(k);OverlayChatWidgetV2.__IsPostStatusUpdate=true}if(l!=null&&lz_chat_last_message_received!=lz_global_base64_decode(l)){lz_chat_last_message_received=lz_global_base64_decode(l)}if(b!=null&&f!=null&&lz_chat_last_poster!=lz_global_base64_decode(b)){lz_chat_last_poster=lz_global_base64_decode(b)}if(lz_chat_last_poster==lz_external.Id&&lz_mode_show_options){lz_chat_switch_options(lz_chat_option_function,false)}var n=document.createElement("div");document.getElementById("lz_chat_content_inlay").appendChild(n);n.innerHTML=OverlayChatWidgetV2.ReplaceEmoticons(f);OverlayChatWidgetV2.ScrollDown(37564);OverlayChatWidgetV2.UpdateChatHistoryUI();lz_chat_replace_icon();if(lz_operator_typing){document.getElementById("lz_chat_content_inlay").appendChild(document.getElementById("lz_chat_overlay_typing_post"))}}OverlayChatWidgetV2.UpdateChatHistoryUI(null,true)};OverlayChatWidgetV2.ShowQueueMessage=function(a,c,b){OverlayChatWidgetV2.QueueTime=c;OverlayChatWidgetV2.QueuePosition=a;if(!LiveZillaData.QueueMessageAppended){var d=lz_global_base64_decode(b).replace("","-1");d=d.replace("","-1");OverlayChatWidgetV2.AddMessages(lz_global_base64_encode(JSON.stringify([[lz_global_base64_encode(d),"MP",1]])),false,null,null,null);LiveZillaData.QueueMessageAppended=true;lz_chat_last_poster=null}OverlayChatWidgetV2.UpdateChatHistoryUI()};OverlayChatWidgetV2.AddWMElements=function(d,k,g,j,p,n){if(!OverlayChatWidgetV2.__ModeSingle&&!OverlayChatWidgetV2.__ModeClassic&&!n){for(var m=0;m=0;l--){t=(lz_ovlel_fsm)?((lz_ovlel.length-1)-l):l;if(lz_ovlel[t]==null){continue}q=(((OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border)*t)+(OverlayChatWidgetV2.__Space*t));v=null;if(lz_ovlel[t].type!="wm"){h=f.cloneNode(true);OverlayChatWidgetV2.ApplyIconToElement(h,lz_ovlel[t].icon);h.id+="_"+lz_ovlel[t].type;h.style.zIndex=o-t;lz_overlay_wm.m_FrameElement.appendChild(h);v=u.cloneNode(true);v.id+="_"+lz_ovlel[t].type;if(OverlayChatWidgetV2.__ModeTextInline){v.style.boxShadow="none"}v.innerHTML=OverlayChatWidgetV2.GetElementTitle(lz_ovlel[t]);var a=41;if(OverlayChatWidgetV2.__Ratio==0.8){a=38}if(!lz_ovlel_fsm&&!OverlayChatWidgetV2.__ModeTextInline){v.style.right=OverlayChatWidgetV2.__SizeWidth+"px";v.style.boxShadow="none"}if(OverlayChatWidgetV2.__ModeTextInline){u.style.marginLeft=v.style.marginLeft=(OverlayChatWidgetV2.__SizeHeight-(OverlayChatWidgetV2.__Ratio*5))+"px";u.style.cursor=v.style.cursor="pointer";u.style.display=v.style.display="block";u.style.background=v.style.background="none";u.style.width=v.style.width=(OverlayChatWidgetV2.__SizeWidth-(OverlayChatWidgetV2.__Ratio*68))+"px";u.style.textOverflow=v.style.textOverflow="ellipsis";u.style.overflow=v.style.overflow="hidden";u.innerHTML=OverlayChatWidgetV2.ButtonTexts[lz_ovlel[t].type];u.style.marginTop=v.style.marginTop="-"+OverlayChatWidgetV2.__SizeHeight+"px";u.style.fontSize=v.style.fontSize=OverlayChatWidgetV2.__Ratio*115+"%";u.style.lineHeight=v.style.lineHeight=OverlayChatWidgetV2.__SizeHeight+"px";v.style.borderRadius=lz_border_radius+"px";if(typeof lz_ovlel[t].color=="undefined"){h.style.background="linear-gradient(to right, "+lz_color_secondary+" 0%,"+lz_color_secondary+" "+e+"px,"+lz_color_secondary+" "+e+"px,"+lz_color_primary+" "+e+"px,"+lz_color_primary+" 100%)"}}else{u.style.marginTop=v.style.marginTop="-"+(OverlayChatWidgetV2.__SizeHeight)+"px";u.style.fontSize=v.style.fontSize=OverlayChatWidgetV2.__Ratio*100+"%";u.style.lineHeight=v.style.lineHeight=(OverlayChatWidgetV2.__SizeHeight)+"px";u.style.width=v.style.width=OverlayChatWidgetV2.GetWMWidth(lz_ovlel[t])+"px";v.style.borderRadius=lz_border_radius+"px 0 0 "+lz_border_radius+"px"}if(lz_is_mobile&&!lz_ovlel_fsm){v.style.opacity=0}v.style.zIndex=h.style.zIndex;h.setAttribute("data-did",v.id);h.setAttribute("data-type",lz_ovlel[t].type);if(!lz_ovlel_fsm){h.appendChild(v)}else{lz_overlay_wm.m_FrameElement.appendChild(v)}if(typeof lz_ovlel[t].counter!="undefined"){z=w.cloneNode(true);z.id+="_"+lz_ovlel[t].type;z.style.zIndex=h.style.zIndex+2;h.appendChild(z);if(lz_ovlel_fsm){z.style.top="-45px";z.style.left="55px"}}if(!lz_ovlel_fsm){h.style.top=(Math.max(46,OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border)*-1)+"px"}else{h.style.top=parseInt((r-(OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border))/2)+"px";if(typeof lz_ovlel[t].href=="undefined"){h.style.left=((OverlayChatWidgetV2.__SizeWidth+OverlayChatWidgetV2.__Border+A)*(t))-(OverlayChatWidgetV2.__SizeWidth/1.3)+"px"}else{h.style.right="-1000px"}}if(!lz_ovlel_fsm&&typeof lz_ovlel[t].margin!="undefined"){h.style.marginBottom=lz_ovlel[t].margin[2]+OverlayChatWidgetV2.__Space+"px";lz_overlay_wm.m_MaxHeight+=lz_ovlel[t].margin[2]}else{if(!lz_ovlel_fsm){h.style.marginBottom=OverlayChatWidgetV2.__Space+"px"}}if(lz_ovlel[t].type=="phone"){lz_mode_phone_outbound=lz_ovlel[t].outbound!=false;lz_mode_phone_inbound=lz_ovlel[t].inbound!=false;if(lz_mode_phone_inbound){var c=lz_global_base64_url_decode(lz_ovlel[t].inbound.number);document.getElementById("lz_chat_data_phone_header_number").innerHTML=c;document.getElementById("lz_chat_data_phone_header_number").href="tel:"+c;document.getElementById("lz_chat_data_phone_header_text").innerHTML=lz_global_base64_url_decode(lz_ovlel[t].inbound.text)}}if(!lz_ovlel_fsm&&typeof lz_ovlel[t].color!="undefined"){h.style.backgroundColor=lz_ovlel[t].color;if(!OverlayChatWidgetV2.__ModeTextInline){v.style.backgroundColor=lz_ovlel[t].color}}else{if(!lz_ovlel_fsm){h.style.borderColor=lz_color_primary_dark}}}else{h=f;h.style.zIndex=o+100;if(!lz_ovlel_fsm){h.style.borderColor=lz_color_primary_dark}if(OverlayChatWidgetV2.__ModeTextInline){h.style.background="linear-gradient(to right, "+lz_color_secondary+" 0%,"+lz_color_secondary+" "+e+"px,"+lz_color_secondary+" "+e+"px,"+lz_color_primary+" "+e+"px,"+lz_color_primary+" 100%)"}}h.setAttribute("data-tid",lz_ovlel[t].type);if(!lz_ovlel_fsm){h.style.transform="translateY("+q+"px)";h.style.right=0}else{h.style.boxShadow="none";h.style.width="100px";h.style.textAlign="center"}h.style.borderRadius=OverlayChatWidgetV2.GetWMElementBorderRadius(false);h.style.position=(lz_ovlel_fsm)?"static":"relative";h.style.display=(lz_ovlel_fsm)?"inline-block":"block"}if(OverlayChatWidgetV2.__ModeTextInline){f.appendChild(u)}if(lz_ovlel.length){OverlayChatWidgetV2.ApplyIconToElement(f,lz_ovlel[0].icon)}if(!lz_ovlel_fsm){lz_chat_overlay_pointer.style.right=((!OverlayChatWidgetV2.__ModeSingle)?(Math.ceil(lz_overlay_chat.m_FrameElement.style.marginRight.replace("px",""))-12):(j+(((OverlayChatWidgetV2.__SizeWidth+OverlayChatWidgetV2.__Border)/2)-12)))+"px"}lz_chat_overlay_pointer.style.zIndex=o+1200;lz_overlay_wm.m_FrameElement.style.zIndex=lz_overlay_zindex}};OverlayChatWidgetV2.GetWMElementBorderRadius=function(a){var d=Math.floor(10*OverlayChatWidgetV2.__Ratio);var b;if(!lz_ovlel_fsm){var c=Math.min(50,lz_border_radius*d);if(!OverlayChatWidgetV2.__ModeTextInline){if(!a){b=c+"%"}else{b="0 "+c+"% "+c+"% 0"}}else{b=lz_border_radius+"px"}}else{b=0}return b};OverlayChatWidgetV2.GetWMWidth=function(g){var e,j,c=0;if(g){c=OverlayChatWidgetV2.GetElementTitle(g).length}else{for(var h=lz_ovlel.length-1;h>=0;h--){e=(lz_ovlel_fsm)?((lz_ovlel.length-1)-h):h;j=OverlayChatWidgetV2.GetElementTitle(lz_ovlel[e]);c=Math.max(c,j.length)}if(typeof lz_ovlel_rt_onl!="undefined"){c=Math.max(c,lz_ovlel_rt_onl.length)}if(typeof lz_ovlel_rt_ofl!="undefined"){c=Math.max(c,lz_ovlel_rt_ofl.length)}}var a=(!lz_is_mobile)?200:150;if(!OverlayChatWidgetV2.__ModeTextInline){a=(!lz_is_mobile)?300:150}var b=((OverlayChatWidgetV2.__ModeTextInline)?77:1)*OverlayChatWidgetV2.__Ratio;var f=9*OverlayChatWidgetV2.__Ratio;var d=b+(c*f);return Math.max(Math.min(d,a),70)};OverlayChatWidgetV2.GetElementTitle=function(a){var b="";if(a.type!="phone"){if(lz_d(OverlayChatWidgetV2.ButtonTexts[a.type])){b=OverlayChatWidgetV2.ButtonTexts[a.type]}else{if(lz_d(a.title)){b=lz_global_base64_url_decode(a.title)}}}else{b="";if(a.inbound!=false&&a.outbound!=false){b=lz_text_phone}else{if(a.inbound!=false){b+=OverlayChatWidgetV2.ButtonTexts.phone_in}if(a.outbound!=false){b+=OverlayChatWidgetV2.ButtonTexts.phone_out}}}return b};OverlayChatWidgetV2.PlaySound=function(a){if(lz_session.OVLCSound==1){if(lz_sound_player==null){var b=a.toLowerCase().indexOf("http")===0?a:lz_poll_server+"sound/"+a+".mp3";lz_sound_player=new Audio(b)}lz_sound_player.play();if(OverlayChatWidgetV2.__ModeAPI){lz_chat_open()}}};OverlayChatWidgetV2.SendMessage=function(e,a,h,c){OverlayChatWidgetV2.UpdateChatHistoryUI(null,true);if(!LiveZillaData.WriteToServer&&lz_chat_status==0){LiveZillaData.WriteToServer=true}var d=(e==null)?lz_global_trim(document.getElementById("lz_chat_text").value):e;if(d.length>0&&OverlayChatWidgetV2.__ModeBot){OverlayChatWidgetV2.InputState(true)}var i=(lz_session.TransInto!=""&&lz_session.TransInto!=null)?lz_session.TransInto:"";if(lz_tr_api_key!=""&&i!=""&&lz_session.TransFrom!=null&&lz_session.TransFrom!=""&&lz_session.TransFrom.toUpperCase()!=i.toUpperCase()&&e==null){var k=document.createElement("script");k.type="text/javascript";OverlayChatWidgetV2.DoneTranslateCallback=function b(n){if(OverlayChatWidgetV2.TranslateErrorTimer!=null){clearTimeout(OverlayChatWidgetV2.TranslateErrorTimer)}if(n.data!=null){OverlayChatWidgetV2.SendMessage(d,n.data.translations[0].translatedText);OverlayChatWidgetV2.DoneTranslateCallback=null}else{console.log("Sorry, there was an error while trying to translate:\r\n"+JSON.stringify(n));OverlayChatWidgetV2.SendMessage(d,null)}};var m=(lz_session.TransFrom!="AUTO")?"&source="+lz_session.TransFrom:"";k.src="https://www.googleapis.com/language/translate/v2?key="+lz_global_base64_decode(lz_tr_api_key)+"&format=html"+m+"&target="+i+"&callback=OverlayChatWidgetV2.DoneTranslateCallback&q="+d;OverlayChatWidgetV2.TranslateErrorTimer=setTimeout(function(){OverlayChatWidgetV2.DoneTranslateCallback({date:null})},5000);document.getElementsByTagName("head")[0].appendChild(k);document.getElementById("lz_chat_text").value="";return false}if(d.length>0){if(document.getElementsByClassName("lz_overlay_chat_message_invite").length&&lz_chat_status==0){OverlayChatWidgetV2.AnswerChatRequest(true,true);if(d.length>document.getElementsByName("form_114")[0].value.length){document.getElementsByName("form_114")[0].value=d}}var g="";var l=new lz_chat_post();if(a!=null){l.MessageTranslationText=a;g=lz_global_htmlentities(l.MessageTranslationText)+"
"+lz_global_htmlentities(d)+"
"}else{if(!h){g=lz_global_htmlentities(d)}else{g=d}}l.MessageText=d;l.MessageId=lz_global_microstamp();l.MessageTime=lz_global_timestamp();if(!h){lz_external.MessagesSent[lz_external.MessagesSent.length]=l}document.getElementById("lz_chat_text").value="";if(OverlayChatWidgetV2.CurrentOperator==null&&!OverlayChatWidgetV2.__PublicGroupChat.length){OverlayChatWidgetV2.SetConnectionState(true,null,null)}var j=(lz_chat_last_poster!=lz_external.Id)?lz_global_base64_decode(lz_post_html):lz_global_base64_decode(lz_add_html);var f=(lz_chat_get_input_value(111).length==0)?lz_guest_name:lz_chat_get_input_value(111);j=j.replace("",g);j=j.replace("",lz_poll_server);j=j.replace("",lz_global_base64_url_encode(f));j=j.replace("","");j=j.replace("",lz_global_htmlentities(f));j=j.replace(//g,1);j=j.replace("",lz_global_base64_url_encode(lz_color_primary));lz_chat_switch_extern_typing(false);if(!c){OverlayChatWidgetV2.AddMessages(lz_global_base64_encode(JSON.stringify([[lz_global_base64_encode(j),"MP"]])),false,null,null,lz_global_base64_encode(lz_external.Id))}if(!h){LiveZilla.Engine.Poll(1114,true)}lz_chat_set_focus(6)}OverlayChatWidgetV2.InputKeyUp(null);return false};OverlayChatWidgetV2.SetChat=function(a){if(!lz_d(a)){return}OverlayChatWidgetV2.__CurrentChatId=a;if(OverlayChatWidgetV2.__CurrentChatId!=0){OverlayChatWidgetV2.__LastChatId=OverlayChatWidgetV2.__CurrentChatId}if(OverlayChatWidgetV2.ScreenCaptureToStartChat){OverlayChatWidgetV2.ScreenCaptureToStartChat=false;OverlayChatWidgetV2.CaptureScreen(false,0)}else{if(OverlayChatWidgetV2.FileUploadToStartChat!=false){OverlayChatWidgetV2.UploadFile(OverlayChatWidgetV2.FileUploadToStartChat)}}};OverlayChatWidgetV2.SetHost=function(c,a,b,h,f,g,e,d){if(lz_overlay_chat!=null){OverlayChatWidgetV2.__ModeBot=a;if(g!=null&&lz_session.TransInto==""){g=lz_global_base64_decode(g);if(g.indexOf(",")!==-1){g=g.split(",")[0]}lz_session.TransInto=g;lz_session.Save()}if(c!=null){OverlayChatWidgetV2.CurrentOperator=new lz_chat_operator();OverlayChatWidgetV2.CurrentOperator.Id=lz_global_base64_decode(c);OverlayChatWidgetV2.CurrentOperator.Group=lz_global_base64_decode(b);OverlayChatWidgetV2.CurrentOperator.Fullname=lz_global_base64_decode(d);document.getElementById("lz_ccb_tos").checked=true}else{OverlayChatWidgetV2.TargetOperatorId=null;lz_external.MessagesSent=[];OverlayChatWidgetV2.CurrentOperator=null}OverlayChatWidgetV2.UpdateChatFunctions()}};OverlayChatWidgetV2.UpdateFormUI=function(){try{if(LiveZillaData.InputFieldIndices!=null&&OverlayChatWidgetV2.__CurrentGroup!=null){if(lz_first_call){lz_chat_loading(false);lz_first_call=false}var b=false;var h=(lz_session.OVLWMSElem=="chat");var f=(h)?OverlayChatWidgetV2.__CurrentGroup.ChatInputsHidden:OverlayChatWidgetV2.__CurrentGroup.TicketInputsHidden;var d=(h)?OverlayChatWidgetV2.__CurrentGroup.ChatInputsMandatory:OverlayChatWidgetV2.__CurrentGroup.TicketInputsMandatory;var e=lz_is_placeholder_support();for(var g=0;g-1)||(LiveZillaData.ForceGroupSelect&&!LiveZillaData.ForceSelectMade&&LiveZillaData.InputFieldValues[g].IsHiddenGeneral(LiveZillaData.Groups.Groups,h)));if(OverlayChatWidgetV2.__PublicGroupChat.length&&m==114){b=true}if(h&&OverlayChatWidgetV2.__ModeChangeDetails&&m==114){b=true}if(h&&LiveZillaData.InputFieldValues[g].Type=="File"){b=true}if(lz_session.OVLWMSElem=="phone"&&m==116){b=false}if(m==115){b=true}if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.IsChatAvailable()){b=true}document.getElementById("lz_form_"+m).className=(m==116&&lz_session.OVLWMSElem=="phone")?"lz_input lz_input_com":document.getElementById("lz_form_"+m).className;document.getElementById("lz_form_"+m).style.display=(b)?"none":"";document.getElementById("lz_form_"+m).style.display=(m==116&&lz_session.OVLWMSElem=="phone")?"":document.getElementById("lz_form_"+m).style.display;if(document.getElementById("lz_form_info_"+m).innerHTML.length>0&&!OverlayChatWidgetV2.__ModeChangeDetails){if(document.getElementById("lz_form_mandatory_"+m).className.indexOf("lz_required")==-1){document.getElementById("lz_form_mandatory_"+m).className="lz_input_icon lz_info"}document.getElementById("lz_form_mandatory_"+m).style.cursor="pointer";document.getElementById("lz_form_mandatory_"+m).style.display="";document.getElementById("lz_form_mandatory_"+m).onmouseover=function(){lz_chat_show_info_box(this,true)};document.getElementById("lz_form_mandatory_"+m).onmouseout=function(){lz_chat_show_info_box(this,false)};document.getElementById("lz_form_mandatory_"+m).onclick=function(){lz_chat_show_info_box(this,true)};document.getElementById("lz_form_info_"+m).onclick=function(){lz_chat_show_info_box(this,false)}}else{if(OverlayChatWidgetV2.__ModeChangeDetails){document.getElementById("lz_form_mandatory_"+m).style.display="none"}}if(document.getElementsByName("form_"+m)[0]!=null){document.getElementsByName("form_"+m)[0].disabled=OverlayChatWidgetV2.__ModeChangeDetails&&LiveZillaData.InputFieldValues[g].Validation}}else{document.getElementById("lz_form_"+m).style.display="none"}if(LiveZillaData.InputFieldValues[g].Active){if(lz_array_indexOf(d,m)!=-1||(LiveZillaData.InputFieldValues[g].Validation&&lz_array_indexOf(f,m)==-1)){if(!lz_mode_chat_login){lz_mode_chat_login=lz_chat_human_available&&!OverlayChatWidgetV2.__ModeBot}}if(!e&&(LiveZillaData.InputFieldValues[g].Type=="Text"||LiveZillaData.InputFieldValues[g].Type=="TextArea")){if(document.getElementsByName("form_"+m)[0].value==""){document.getElementsByName("form_"+m)[0].value=document.getElementById("lz_form_ph_"+m).value;document.getElementsByName("form_"+m)[0].style.color="var(--lz-icon-color)"}document.getElementsByName("form_"+m)[0].onfocus=new Function("if (this.value == '"+document.getElementById("lz_form_ph_"+m).value+"') {this.value = ''; this.style.color='#333'}");document.getElementsByName("form_"+m)[0].onblur=new Function("if (this.value == '') {this.value = '"+document.getElementById("lz_form_ph_"+m).value+"'; this.style.color='var(--lz-icon-color)'}")}if(LiveZillaData.InputFieldValues[g].Type=="File"){document.getElementById("files_"+m).style.display="none";document.getElementById("files_"+m).innerHTML="";document.getElementsByName("form_sc_"+m)[0].style.display=LiveZillaData.InputFieldValues[g].ScreenCapture&&!lz_overlay_chat.m_FullScreenMode?"inline":"none";if(LiveZillaData.InputFieldFiles[g].length){document.getElementById("files_"+m).style.display="block";for(var l=0;l'+lz_global_htmlentities(k.substring(0,30))+"X
'}}}}}catch(j){console.log(j)}}OverlayChatWidgetV2.AcceptTOS=false;if(OverlayChatWidgetV2.__CurrentGroup!=null){var c="";if(lz_session.OVLWMSElem=="ticket"&&OverlayChatWidgetV2.__CurrentGroup.TOSTicket.length){c=OverlayChatWidgetV2.__CurrentGroup.TOSTicket}if(lz_session.OVLWMSElem=="chat"&&OverlayChatWidgetV2.__CurrentGroup.TOSChat.length){c=OverlayChatWidgetV2.__CurrentGroup.TOSChat}if(lz_session.OVLWMSElem=="phone"&&OverlayChatWidgetV2.__CurrentGroup.TOSCallback.length){c=OverlayChatWidgetV2.__CurrentGroup.TOSCallback}if(c.length){OverlayChatWidgetV2.AcceptTOS=true;if(c.toLowerCase().indexOf("http")===0){document.getElementById("lz_chat_tos_text").innerHTML=document.getElementById("lz_chat_tos_text").innerHTML.replace("",'').replace("","")}else{document.getElementById("lz_chat_tos_text_box").innerHTML=c;document.getElementById("lz_chat_tos_text").innerHTML=document.getElementById("lz_chat_tos_text").innerHTML.replace("",'').replace("","")}}}document.getElementById("lz_form_tos").style.display=(lz_session.OVLWMSElem!="chat"||OverlayChatWidgetV2.IsChatAvailable())&&OverlayChatWidgetV2.AcceptTOS&&!OverlayChatWidgetV2.__ModeChangeDetails?"table":"none";var a=!OverlayChatWidgetV2.ForceGroupSelect&&((lz_session.OVLWMSElem=="chat"&&(OverlayChatWidgetV2.__ModeChangeDetails||lz_hide_group_chat))||((lz_session.OVLWMSElem=="ticket"||lz_session.OVLWMSElem=="phone")&&lz_hide_group_ticket));if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.IsChatAvailable()){a=true}document.getElementById("lz_group_selection_box").style.display=a?"none":""}else{if(lz_first_call){lz_chat_loading(true)}}if(!lz_mode_chat_login&&OverlayChatWidgetV2.ForceGroupSelect){lz_mode_chat_login=true}}catch(j){console.log(j)}};OverlayChatWidgetV2.InputState=function(b,a){if(lz_d(a)){OverlayChatWidgetV2.InputBlocked=a}document.getElementById("lz_chat_text").style.display=(OverlayChatWidgetV2.InputBlocked||b)?"none":"block";document.getElementById("lz_chat_bot_reply_loading").style.display=(!b)?"none":"block";if(OverlayChatWidgetV2.__ModeBot&&!OverlayChatWidgetV2.InputBlocked&&!b){setTimeout(function(){lz_chat_set_focus(11)},200)}};OverlayChatWidgetV2.UpdateWMUI=function(){if(lz_overlay_wm==null){return}var j,b,a,h=document.getElementById("livezilla_wm");lz_overlay_wm.m_FrameElement.style.height=((lz_session.OVLWMState=="0")?(OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border):lz_overlay_wm.m_MaxHeight)+"px";for(var c=lz_ovlel.length-1;c>=0;c--){if(lz_ovlel[c]==null){continue}if(lz_ovlel[c].type!="wm"){b=document.getElementById("livezilla_wm_"+lz_ovlel[c].type);b.style.display=(lz_session.OVLWMState=="0"||OverlayChatWidgetV2.__ModeSingle)?"none":(!lz_overlay_chat.m_FullScreenMode)?"block":"inline-block";if(lz_session.OVLWMSElem==lz_ovlel[c].type){if(lz_overlay_chat.m_FullScreenMode){lz_chat_overlay_pointer.style.left=((((OverlayChatWidgetV2.__SizeWidth+OverlayChatWidgetV2.__Border)*(c))+13)+(c*10))-(OverlayChatWidgetV2.__SizeWidth/1.3)+"px";b.style.background=lz_color_primary;b.getElementsByTagName("svg")[0].style.fill="#fff"}else{if(!OverlayChatWidgetV2.__ModeSingle){var k=(((OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border)*c)+(OverlayChatWidgetV2.__Space*c))+OverlayChatWidgetV2.__Space+(14*OverlayChatWidgetV2.__Ratio);lz_chat_overlay_pointer.style.bottom=k+lz_overlay_wm.m_Margins[2]+"px";if(!OverlayChatWidgetV2.__ModeTextInline&&lz_ovlel[c].type.indexOf("custom")===-1){b.style.background="var(--sc-color)"}}}}else{if(lz_overlay_chat.m_FullScreenMode){b.style.background="#f7f8f9";b.style.borderRight="1px solid #ddd";b.getElementsByTagName("svg")[0].style.fill="#999"}else{if(!OverlayChatWidgetV2.__ModeTextInline&&lz_ovlel[c].type.indexOf("custom")===-1){b.style.background="var(--pc-color)"}}}j="livezilla_wm_d_"+lz_ovlel[c].type;a=document.getElementById(j);if(!lz_is_mobile&&!lz_overlay_chat.m_FullScreenMode){if(!lz_ie()){b.onmouseover=function(){if(this.getAttribute("data-tid")==lz_session.OVLWMSElem){if(!OverlayChatWidgetV2.__ModeTextInline){lz_chat_overlay_pointer.style.visibility="hidden"}}if(!OverlayChatWidgetV2.__ModeTextInline){if(this.getAttribute("data-did").indexOf("custom")===-1){this.style.background="var(--sc-color)";document.getElementById(this.getAttribute("data-did")).style.background="var(--sc-color)"}}document.getElementById(this.getAttribute("data-did")).style.display="block";var i=this;this.style.borderRadius=OverlayChatWidgetV2.GetWMElementBorderRadius(true);if(lz_is_mobile){setTimeout(function(){document.getElementById(i.getAttribute("data-did")).style.display="none"},2000)}}}b.onmouseout=function(){lz_chat_overlay_pointer.style.visibility="visible";if(!OverlayChatWidgetV2.__ModeTextInline){document.getElementById(this.getAttribute("data-did")).style.display="none";if(this.getAttribute("data-did").indexOf("custom")===-1){this.style.background=(this.getAttribute("data-tid")==lz_session.OVLWMSElem)?"var(--sc-color)":"var(--pc-color)"}}this.style.borderRadius=OverlayChatWidgetV2.GetWMElementBorderRadius(false)}}else{if(!lz_overlay_chat.m_FullScreenMode){a.style.display=(lz_is_mobile&&lz_session.OVLWMState=="0")?"none":"block";lz_add_class(a,"lz_anim_slide_in")}}lz_add_class(a,"lz_overlay_wm_sh_act")}else{b=h;b.style.top=(lz_session.OVLWMState!="0")?lz_overlay_wm.m_MaxHeight-((OverlayChatWidgetV2.__SizeHeight+OverlayChatWidgetV2.__Border)+OverlayChatWidgetV2.__Space)+"px":0;b.style.visibility=(!lz_overlay_chat.m_FullScreenMode)?"visible":"hidden";b.style.display=(!lz_overlay_chat.m_FullScreenMode)?"block":"none";OverlayChatWidgetV2.UpdateWMIcon(b)}lz_add_class(b,"lz_overlay_wm_button");if(typeof lz_ovlel[c].href!="undefined"){if(typeof lz_ovlel[c].type!="undefined"&&lz_ovlel[c].open=="internal"){b.onclick=function(){OverlayChatWidgetV2.SetMode(this.getAttribute("data-tid"),true)}}else{b.onclick=function(i){return function(){OverlayChatWidgetV2.OpenWindow(i,true)}}(lz_global_base64_url_decode(lz_ovlel[c].href))}}else{if(lz_ovlel[c].type=="knowledgebase"&&lz_kb_external){b.onclick=function(){OverlayChatWidgetV2.Pop("knowledgebase")}}else{if(lz_ovlel[c].type=="knowledgebase"&&lz_kb_embed){b.onclick=function(){OverlayChatWidgetV2.OpenWindow(lz_kb_embed_url,true)}}else{if(lz_ovlel[c].type=="wm"&&lz_chats_external){b.onclick=function(){OverlayChatWidgetV2.Pop("chat")}}else{b.onclick=function(){OverlayChatWidgetV2.SetMode(this.getAttribute("data-tid"),true)}}}}}if(lz_ovlel[c].type=="chat"){var f=b.getElementsByTagName("svg")[0];if(!OverlayChatWidgetV2.IsChatAvailable()){lz_add_class(f,"lz_chat_unavailable")}else{lz_remove_class(f,"lz_chat_unavailable")}if(OverlayChatWidgetV2.__ModeTextInline){var d=b.getElementsByTagName("div")[0];if(!OverlayChatWidgetV2.IsChatAvailable()){lz_add_class(d,"lz_chat_unavailable")}else{lz_remove_class(d,"lz_chat_unavailable")}}}if(lz_ovlel[c].type=="ticket"){if(!lz_ticket_when_online&&OverlayChatWidgetV2.IsChatAvailable()&&lz_chat_human_available){lz_add_class(b,"lz_chat_disabled")}else{lz_remove_class(b,"lz_chat_disabled")}}lz_add_class(b,"lz_overlay_wm_sh_act");lz_add_class(b,"lz_anim_slide_in")}if(OverlayChatWidgetV2.__ModeSingle){lz_chat_overlay_pointer.style.bottom=(parseInt(lz_overlay_chat.m_FrameElement.style.marginBottom.replace("px",""))-13)+"px"}if(lz_chat_get_wm_element("chat")!=null){if(OverlayChatWidgetV2.__ModeSingle||lz_session.OVLWMState=="0"){lz_overlay_wm.m_FrameElement.appendChild(document.getElementById("livezilla_wm_c_chat"))}else{document.getElementById("livezilla_wm_chat").appendChild(document.getElementById("livezilla_wm_c_chat"))}}lz_chat_overlay_pointer.style.display=OverlayChatWidgetV2.__ModeAPI||lz_session.OVLWMSElem==""||lz_session.OVLWMState=="0"||lz_is_mobile||lz_overlay_chat.m_FullScreenMode?"none":"block";if(OverlayChatWidgetV2.__ModeTextInline){var g=lz_session.OVLWMState=="1"&&!OverlayChatWidgetV2.__ModeSingle?"":(lz_d(OverlayChatWidgetV2.ButtonTexts[lz_session.OVLWMSElem])?lz_session.OVLWMSElem:OverlayChatWidgetV2.GetAutoMode());if(g=="phone"){g=!lz_ovlel[1].outbound?"phone_in":"phone_out"}document.getElementById("livezilla_wm_d").innerHTML=g!=""?OverlayChatWidgetV2.ButtonTexts[OverlayChatWidgetV2.GetAutoMode()]:"";if(g!=""&&typeof lz_ovlel_rt_onl!="undefined"){document.getElementById("livezilla_wm_d").innerHTML=lz_global_base64_decode(OverlayChatWidgetV2.IsChatAvailable()?lz_ovlel_rt_onl:lz_ovlel_rt_ofl)}}if(OverlayChatWidgetV2.__Connecting){if(OverlayChatWidgetV2.ChatLoadingElement==null){OverlayChatWidgetV2.ChatLoadingElement=document.createElement("div");OverlayChatWidgetV2.ChatLoadingElement.className="lz_chat_loading";OverlayChatWidgetV2.ChatLoadingElement.innerHTML='
';OverlayChatWidgetV2.ChatLoadingElement.style.maxWidth=document.getElementsByClassName("lz_overlay_wm_icon")[0].style.width;OverlayChatWidgetV2.ChatLoadingElement.style.zIndex=lz_overlay_zindex+100;if(!OverlayChatWidgetV2.__ModeTextInline||lz_overlay_chat.m_FullScreenMode){OverlayChatWidgetV2.ChatLoadingElement.style.margin="0 auto"}}var e;if(lz_session.OVLWMState=="0"||OverlayChatWidgetV2.__ModeSingle){e=document.getElementById("livezilla_wm")}else{if(OverlayChatWidgetV2.IsChatAvailable()){e=document.getElementById("livezilla_wm_chat")}}if(e&&OverlayChatWidgetV2.ChatLoadingElement.parentNode!=e){e.appendChild(OverlayChatWidgetV2.ChatLoadingElement)}}else{if(OverlayChatWidgetV2.ChatLoadingElement!=null){OverlayChatWidgetV2.ChatLoadingElement.parentNode.removeChild(OverlayChatWidgetV2.ChatLoadingElement);OverlayChatWidgetV2.ChatLoadingElement=null}}};OverlayChatWidgetV2.SetGroupInfo=function(){var a=lz_chat_get_wm_element("chat");if(a!=null){document.getElementById("lz_chat_operator_groupname").innerHTML=OverlayChatWidgetV2.ButtonTexts[a.type]}};OverlayChatWidgetV2.SetUIGroup=function(b,a){if(LiveZillaData.Groups!=null){if(LiveZillaData.ForceGroupSelect&&!LiveZillaData.ForceSelectMade){return}if(OverlayChatWidgetV2.__CurrentGroup!=null&&OverlayChatWidgetV2.__FormVisible&&!lz_d(a)){OverlayChatWidgetV2.SetGroupInfo();return}var c=LiveZillaData.Groups.GetGroupById(lz_global_base64_url_decode(b));if(c==null){c=LiveZillaData.Groups.GetGroupById(b)}if(c!=null){OverlayChatWidgetV2.__CurrentGroup=c;LiveZillaData.Groups.SelectGroupById(OverlayChatWidgetV2.__CurrentGroup.Id,document.getElementById("lz_form_groups"));OverlayChatWidgetV2.SetGroupInfo()}OverlayChatWidgetV2.UpdateChatFunctions()}};OverlayChatWidgetV2.UpdateChatFunctions=function(){if(OverlayChatWidgetV2.__CurrentGroup==null){return}var e=OverlayChatWidgetV2.__CurrentGroup.ChatFunctions;if(e!=null){var c=OverlayChatWidgetV2.__CurrentChatId!=0&&(lz_chat_status==2||(lz_chat_status==1&&OverlayChatWidgetV2.__ModeBot&&OverlayChatWidgetV2.BotFeedback))&&!(OverlayChatWidgetV2.__PublicGroupChat!=null&&OverlayChatWidgetV2.__PublicGroupChat.length);document.getElementById("lz_cf_so").style.display=(e!=null&&e[1]=="0")?"none":"block";document.getElementById("lz_cf_pr").style.display=!(e!=null&&e[2]=="0")&&c?"block":"none";if(document.getElementById("lz_chat_feedback_init").style.display!="block"){document.getElementById("lz_chat_feedback_init").style.display=!(e!=null&&e[3]=="0")&&c?"block":"none"}}var a=["lz_cf_tr","lz_cf_so","lz_cf_et","lz_cf_ed","lz_cf_pr","lz_cf_ec","lz_cf_ss"];var d=false;for(var b=0;b0)||lz_chat_status>0)&&!lz_chat_declined};OverlayChatWidgetV2.ValidateMode=function(){if(OverlayChatWidgetV2.Screenshot!=null){return}var a=OverlayChatWidgetV2.GetAutoMode();if(lz_overlay_wm!=null&&!OverlayChatWidgetV2.__ModeAPI){var b=(a!="NA"||lz_chat_get_wm_element("ticket")!=null)&&!lz_hide_widget_by_conf&&!lz_overlay_chat.m_FixedMode&&!(lz_overlay_chat.m_FullScreenMode&&OverlayChatWidgetV2.__ModeSingle);lz_overlay_wm.SetVisible(b)}if(a=="NA"){lz_overlay_chat.SetVisible(false);if(lz_overlay_chat.m_FullScreenMode){OverlayChatWidgetV2.ForwardTicket(true,false)}}if(lz_session.OVLWMSElem==""||OverlayChatWidgetV2.__ModeSingle||OverlayChatWidgetV2.__ModeClassic||lz_session.OVLWMState=="0"){if(lz_session.OVLWMSElem!=a){if(lz_session.OVLWMSElem=="phone"){return}if(lz_session.OVLWMSElem=="knowledgebase"){return}if(lz_session.OVLWMSElem.indexOf("custom")===0){return}if(lz_session.OVLWMSElem=="feedback"){return}if(!lz_is_mobile||lz_overlay_chat.m_FixedMode||lz_overlay_chat.m_FullScreenMode){OverlayChatWidgetV2.SetMode(a,false)}}}};OverlayChatWidgetV2.SetMode=function(c,b,a){var d;a=(lz_d(a))?a:null;if(a!=null){OverlayChatWidgetV2.TargetGroupId=a}if(b&&c=="wm"){lz_session.OVLWMSElem=OverlayChatWidgetV2.GetAutoMode();OverlayChatWidgetV2.FlipWM()}if(b&&OverlayChatWidgetV2.__ModeTicketReceived){lz_chat_data_form_result()}if(b&&OverlayChatWidgetV2.__ModeTOS){OverlayChatWidgetV2.ToggleTOS(false);return}if(b&&OverlayChatWidgetV2.__ModeFeedback){OverlayChatWidgetV2.ToggleFeedback(false,false);return}if(OverlayChatWidgetV2.__ModeChangeDetails&&b&&c!="chat"){OverlayChatWidgetV2.__ModeChangeDetails=false}if(c=="chat"&&OverlayChatWidgetV2.__TicketRequired&&b){OverlayChatWidgetV2.__TicketRequired=false}if(c=="ticket"&&OverlayChatWidgetV2.ForwardTicket(b,false)){lz_session.OVLWMSElem=OverlayChatWidgetV2.GetAutoMode();if(!lz_overlay_chat.m_FullScreenMode){lz_session.OVLWMState="0"}}else{if(c=="phone"&&OverlayChatWidgetV2.ForwardTicket(b,true)){lz_session.OVLWMSElem=OverlayChatWidgetV2.GetAutoMode();if(!lz_overlay_chat.m_FullScreenMode){lz_session.OVLWMState="0"}}else{if(c=="wm"&&OverlayChatWidgetV2.__ModeSingle&&!OverlayChatWidgetV2.IsChatAvailable()&&OverlayChatWidgetV2.ForwardTicket(b,false)){lz_session.OVLWMSElem="ticket";if(!lz_overlay_chat.m_FullScreenMode){lz_session.OVLWMState="0"}}else{lz_chat_switch_options_table(true,3);if(OverlayChatWidgetV2.__ModeSingle||OverlayChatWidgetV2.__ModeClassic){if(c!="wm"&&c!=""){lz_session.OVLWMSElem=c}else{if(c=="wm"&&!OverlayChatWidgetV2.IsChatAvailable()&&lz_session.OVLWMSElem=="NA"){OverlayChatWidgetV2.ForwardTicket(b,false)}else{if(c=="wm"&&OverlayChatWidgetV2.__ModeSingle&&lz_session.OVLWMSElem==""){lz_session.OVLWMSElem=(OverlayChatWidgetV2.IsChatAvailable())?"chat":"ticket"}}}if(b){lz_session.OVLWMState=(lz_session.OVLWMState=="0")?"1":"0"}d=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA")}else{if(c==""){lz_session.OVLWMState="0"}else{if(c=="wm"){lz_session.OVLWMState=(lz_session.OVLWMState=="0")?"1":"0"}}if(c!="wm"){lz_session.OVLWMSElem=c}if(lz_overlay_chat.m_FullScreenMode){lz_session.OVLWMState="1"}if(lz_is_mobile){d=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA"&&c!="wm")}else{d=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA")}}if(b&&!OverlayChatWidgetV2.__ModeSingle){if(c==lz_session.OVLWMSElem&&!lz_overlay_chat.m_FullScreenMode){if(lz_chat_overlay_pointer!=null&&lz_session.OVLWMState!="0"){if(!OverlayChatWidgetV2.__ModeTextInline){lz_chat_overlay_pointer.style.visibility="hidden"}}}if(c=="knowledgebase"&&document.getElementById("lz_chat_kb_match_info").style.display!="none"){lz_chat_kb_deactivate(false,false)}}}}}if(b&&lz_session.OVLWMState=="0"){OverlayChatWidgetV2.AnswerChatRequest()}else{if(lz_session.OVLWMState=="1"){OverlayChatWidgetV2.ResetPreviewPosts(true)}}lz_session.Save();OverlayChatWidgetV2.UpdateChatUI(d);OverlayChatWidgetV2.UpdateButtonUI();OverlayChatWidgetV2.UpdateWMUI();OverlayChatWidgetV2.UpdateUI();if(lz_session.OVLWMSElem=="chat"){OverlayChatWidgetV2.ScrollDown(63728)}};OverlayChatWidgetV2.APIButtonClick=function(a){document.getElementById("lz_chat_text").value=lz_global_base64_decode(a);OverlayChatWidgetV2.SendMessage(null,null)};OverlayChatWidgetV2.FlipWM=function(){document.getElementById("livezilla_wm").style.transform="rotateX(180deg)";lz_add_class(document.getElementById("livezilla_wm"),"lz_anim_flip");setTimeout(function(){document.getElementById("livezilla_wm").style.transform="";lz_remove_class(document.getElementById("livezilla_wm"),"lz_anim_flip")},500)};OverlayChatWidgetV2.UpdateChatUI=function(a){if(lz_overlay_chat.m_FullScreenMode||(a&&!lz_overlay_chat.IsVisible())){if(OverlayChatWidgetV2.__ModeClassic){OverlayChatWidgetV2.Maximize()}lz_overlay_chat.SetVisible(true);if(lz_is_mobile&&!lz_overlay_chat.m_FullScreenMode){lz_chat_set_zoom(true,true);OverlayChatWidgetV2.ValidateMode();lz_overlay_wm.SetVisible(false)}}if(!lz_overlay_chat.m_FullScreenMode&&(!a&&lz_overlay_chat.IsVisible())){if(lz_is_mobile&&!lz_overlay_chat.m_FullScreenMode){lz_chat_set_zoom(true,false);lz_overlay_wm.SetVisible(true)}if(!lz_is_mobile&&OverlayChatWidgetV2.__ModeClassic){OverlayChatWidgetV2.Minimize()}else{lz_overlay_chat.SetVisible(false)}}};OverlayChatWidgetV2.UpdateUI=function(){OverlayChatWidgetV2.UpdateFormUI();if(OverlayChatWidgetV2.__ModeTicketReceived&&OverlayChatWidgetV2.__ModeSingle&&OverlayChatWidgetV2.IsChatAvailable()){OverlayChatWidgetV2.__ModeTicketReceived=false}if(OverlayChatWidgetV2.__CurrentGroup==null){return}if(typeof lz_ovlel_rt_ofl!="undefined"){lz_header_off=lz_ovlel_rt_ofl}if(typeof lz_ovlel_rt_onl!="undefined"){lz_header_on=lz_ovlel_rt_onl}document.getElementById("lz_chat_data_header").innerHTML="

"+((lz_session.OVLWMSElem=="chat")?((!OverlayChatWidgetV2.__ModeChangeDetails)?lz_text_start_chat:lz_text_change_details):(lz_session.OVLWMSElem=="phone")?lz_req_callback:lz_text_leave_message)+"

";document.getElementById("lz_chat_overlay_text").innerHTML=lz_global_base64_decode(lz_header_off);if(lz_session.OVLWMSElem=="chat"){if(OverlayChatWidgetV2.__ModeChangeDetails){document.getElementById("lz_chat_data_header_text").innerHTML=""}else{if(OverlayChatWidgetV2.IsChatAvailable()&&OverlayChatWidgetV2.__CurrentGroup.ChatInformation.length){document.getElementById("lz_chat_data_header_text").innerHTML=OverlayChatWidgetV2.__CurrentGroup.ChatInformation}else{if(OverlayChatWidgetV2.IsChatAvailable()){document.getElementById("lz_chat_data_header_text").innerHTML=lz_text_chat_information}else{if(OverlayChatWidgetV2.__CurrentGroup.ChatInformationOffline.length){document.getElementById("lz_chat_data_header_text").innerHTML=OverlayChatWidgetV2.__CurrentGroup.ChatInformationOffline}else{document.getElementById("lz_chat_data_header_text").innerHTML=lz_text_chat_information_offline}}}}document.getElementById("lz_chat_overlay_text").innerHTML=lz_global_base64_decode(lz_header_on)}else{if(lz_session.OVLWMSElem=="phone"){if(OverlayChatWidgetV2.__CurrentGroup.CallMeBackInformation.length){document.getElementById("lz_chat_data_header_text").innerHTML=OverlayChatWidgetV2.__CurrentGroup.CallMeBackInformation}else{document.getElementById("lz_chat_data_header_text").innerHTML=lz_text_callback_information}}else{if(lz_session.OVLWMSElem=="ticket"){if(OverlayChatWidgetV2.__CurrentGroup.TicketInformation.length){document.getElementById("lz_chat_data_header_text").innerHTML=OverlayChatWidgetV2.__CurrentGroup.TicketInformation}else{document.getElementById("lz_chat_data_header_text").innerHTML=lz_text_ticket_information}}}}document.getElementById("lz_chat_overlay_ticket").style.display=(OverlayChatWidgetV2.__ModeTicketReceived)?"block":"none";document.getElementById("lz_overlay_module_knowledgebase").style.visibility=(lz_session.OVLWMSElem=="knowledgebase")?"visible":"hidden";document.getElementById("lz_overlay_module_custom").style.visibility=(lz_session.OVLWMSElem!=null&&lz_session.OVLWMSElem.indexOf("custom")===0)?"visible":"hidden";document.getElementById("lz_overlay_module_feedback").style.visibility=(OverlayChatWidgetV2.__ModeFeedback)?"visible":"hidden";document.getElementById("lz_overlay_module_feedback").style.display=(OverlayChatWidgetV2.__ModeFeedback)?"block":"none";document.getElementById("lz_overlay_module_tos").style.display=(OverlayChatWidgetV2.__ModeTOS)?"block":"none";document.getElementById("lz_chat_content_box").style.display=(lz_session.OVLWMSElem=="chat")?"block":"none";document.getElementById("lz_overlay_phone_inbound").style.display=(lz_mode_phone_inbound&&lz_session.OVLWMSElem=="phone"&&!OverlayChatWidgetV2.__ModeTOS&&!OverlayChatWidgetV2.__ModeTicketReceived)?"block":"none";if(lz_session.OVLWMSElem=="phone"&&lz_mode_phone_inbound){document.getElementById("lz_chat_data_form").style.top="180px";lz_add_class(document.getElementById("lz_chat_data_header"),"lz_chat_sub_header")}else{document.getElementById("lz_chat_data_form").style.top="0";lz_remove_class(document.getElementById("lz_chat_data_header"),"lz_chat_sub_header")}if(lz_session.OVLWMSElem=="knowledgebase"){if(document.getElementById("lz_overlay_module_knowledgebase").getElementsByTagName("iframe")[0].src==""){lz_kb_set_url("")}}if(lz_session.OVLWMSElem!=null&&lz_session.OVLWMSElem.indexOf("custom")===0){OverlayChatWidgetV2.SetCustomURL()}OverlayChatWidgetV2.__FormVisible=true;var a=OverlayChatWidgetV2.IsChatActive();if(a){OverlayChatWidgetV2.__FormConfirmRequired=false}if(!OverlayChatWidgetV2.__ModeChangeDetails){if(lz_session.OVLWMSElem=="chat"&&(OverlayChatWidgetV2.ChatStarted||OverlayChatWidgetV2.ChatEnded||OverlayChatWidgetV2.ChatInitiated||OverlayChatWidgetV2.__Connecting)){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem=="chat"&&OverlayChatWidgetV2.__ModeBot&&!OverlayChatWidgetV2.BotForm){OverlayChatWidgetV2.__FormVisible=false}else{if(OverlayChatWidgetV2.__ModeTicketReceived||OverlayChatWidgetV2.__ModeFeedback||OverlayChatWidgetV2.__ModeTOS){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem=="phone"&&!lz_mode_phone_outbound){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem=="knowledgebase"){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem.indexOf("custom")===0){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.__FormConfirmRequired){if(lz_chat_status>0||a){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_check_missing_inputs(false,null)&&!OverlayChatWidgetV2.__PublicGroupChat.length){if(OverlayChatWidgetV2.IsChatAvailable()){if(!(LiveZillaData.ForceGroupSelect&&!LiveZillaData.ForceSelectMade)){OverlayChatWidgetV2.__FormVisible=false}}}}}}}}}}}}document.getElementById("lz_overlay_module_chat").style.display=(!OverlayChatWidgetV2.__FormVisible&&lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.__ModeFeedback&&!OverlayChatWidgetV2.__ModeTOS&&!OverlayChatWidgetV2.__ModeChangeDetails)?"block":"none";if(OverlayChatWidgetV2.__FormVisible&&!a&&lz_session.OVLWMSElem=="chat"&&OverlayChatWidgetV2.IsChatAvailable()&&LiveZillaData.InputFieldIndices!=null&&lz_session.OVLWMState=="1"){OverlayChatWidgetV2.__FormConfirmRequired=true}OverlayChatWidgetV2.UpdateMessageInput();document.getElementById("lz_chat_data_form").style.display=OverlayChatWidgetV2.__FormVisible?"block":"none";document.getElementById("lz_chat_ticket_received").style.display=(OverlayChatWidgetV2.__ModeTicketReceived&&!lz_flood&&!(OverlayChatWidgetV2.__ModeSingle&&OverlayChatWidgetV2.IsChatAvailable()))?"":"none"};OverlayChatWidgetV2.UpdateMessageInput=function(){try{if(lz_session.OVLWMState=="1"){if(OverlayChatWidgetV2.__FormVisible&&document.getElementById("lz_chat_text").value.length&&!document.getElementsByName("form_114")[0].value.length){document.getElementsByName("form_114")[0].value=document.getElementById("lz_chat_text").value;document.getElementById("lz_chat_text").value="";lz_chat_save_input_value("114",document.getElementsByName("form_114")[0].value);lz_check_missing_inputs(true)}else{if(lz_chat_status==0&&!OverlayChatWidgetV2.__Connecting&&!OverlayChatWidgetV2.ChatStarted&&!OverlayChatWidgetV2.ChatInitiated&&!OverlayChatWidgetV2.__FormVisible&&!document.getElementById("lz_chat_text").value.length&&document.getElementsByName("form_114")[0].value.length){document.getElementById("lz_chat_text").value=document.getElementsByName("form_114")[0].value;document.getElementsByName("form_114")[0].value=""}}}}catch(a){console.log(a)}};OverlayChatWidgetV2.IsChatActive=function(){return(OverlayChatWidgetV2.ChatStarted||OverlayChatWidgetV2.ChatInitiated||lz_chat_status>0)};OverlayChatWidgetV2.UpdateButtonUI=function(){lz_remove_class(document.getElementById("lz_chat_overlay_data_form_ok_button"),"lz_chat_disabled");document.getElementById("lz_chat_overlay_data_form_ok_button").innerHTML=(lz_session.OVLWMSElem=="chat")?((OverlayChatWidgetV2.__ModeChangeDetails)?lz_text_save:(!OverlayChatWidgetV2.IsChatAvailable())?lz_text_not_available:lz_text_start_chat):(lz_session.OVLWMSElem=="phone")?lz_call_me:lz_text_leave_message;if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.IsChatAvailable()){if(lz_chat_get_wm_element("ticket")!=null){document.getElementById("lz_chat_overlay_data_form_ok_button").innerHTML=lz_text_leave_message}else{lz_add_class(document.getElementById("lz_chat_overlay_data_form_ok_button"),"lz_chat_disabled")}}};OverlayChatWidgetV2.UpdateWMIcon=function(a){if(lz_session.OVLWMState=="1"){OverlayChatWidgetV2.ApplyIconToElement(a,"close")}else{if(typeof lz_ovlel_ri!="undefined"){OverlayChatWidgetV2.ApplyIconToElement(a,lz_ovlel_ri)}else{OverlayChatWidgetV2.ApplyIconToElement(a,"comments");if(OverlayChatWidgetV2.__ModeSingle){if(lz_session.OVLWMSElem=="chat"&&lz_chat_get_wm_element("chat")!=null){OverlayChatWidgetV2.ApplyIconToElement(a,lz_chat_get_wm_element("chat").icon)}else{if(lz_session.OVLWMSElem=="ticket"&&lz_chat_get_wm_element("ticket")!=null){OverlayChatWidgetV2.ApplyIconToElement(a,lz_chat_get_wm_element("ticket").icon)}else{if(lz_session.OVLWMSElem==""&&!OverlayChatWidgetV2.IsChatAvailable()&&lz_chat_get_wm_element("ticket")!=null){OverlayChatWidgetV2.ApplyIconToElement(a,lz_chat_get_wm_element("ticket").icon)}else{if(lz_ovlel.length>1){OverlayChatWidgetV2.ApplyIconToElement(a,lz_ovlel[1].icon)}else{if(lz_ovlel.length==1){OverlayChatWidgetV2.ApplyIconToElement(a,lz_ovlel[0].icon)}}}}}}else{if(lz_chat_get_wm_element("chat")==null||!OverlayChatWidgetV2.IsChatAvailable()){if(lz_chat_get_wm_element("ticket")!=null){OverlayChatWidgetV2.ApplyIconToElement(a,"envelope")}else{OverlayChatWidgetV2.ApplyIconToElement(a,"question")}}}}}};OverlayChatWidgetV2.ApplyIconToElement=function(b,a){var h=-12*OverlayChatWidgetV2.__Ratio;var g=-11*OverlayChatWidgetV2.__Ratio;var c=OverlayChatWidgetV2.__SizeHeight;var f=14;var d=lz_get_icon_data(a);b.getElementsByTagName("path")[0].setAttribute("d",d.path);if(lz_d(d.vx)){h=d.vx*OverlayChatWidgetV2.__Ratio}if(lz_d(d.vy)){g=d.vy*OverlayChatWidgetV2.__Ratio}b.getElementsByTagName("svg")[0].setAttribute("viewBox",h+" "+g+" "+c+" "+c);if(lz_d(d.t)){f=d.t}var e="scale(.0"+Math.floor(f*OverlayChatWidgetV2.__Ratio).toString()+")";b.getElementsByTagName("path")[0].setAttribute("transform",e);b.getElementsByTagName("path")[0].style.transform=e};OverlayChatWidgetV2.Minimize=function(){lz_session.OVLWMState="0";lz_session.Save();document.getElementById("lz_chat_content").style.display="none";document.getElementById("lz_chat_overlay_text").style.display="block";document.getElementById("lz_chat_overlay_main").style.boxShadow="none";OverlayChatWidgetV2.SetSize(260,40)};OverlayChatWidgetV2.Maximize=function(){if(!lz_chats_external){if(OverlayChatWidgetV2.__ModeClassic&&!OverlayChatWidgetV2.IsChatAvailable()&&OverlayChatWidgetV2.ForwardTicket(true,false)){OverlayChatWidgetV2.Minimize();return}lz_session.OVLWMState="1";lz_session.Save();document.getElementById("lz_chat_content").style.display="block";document.getElementById("lz_chat_overlay_text").style.display="none";document.getElementById("lz_chat_overlay_main").style.boxShadow="0 0 10px #888";OverlayChatWidgetV2.SetSize(lz_overlay_chat_width,lz_overlay_chat_height);OverlayChatWidgetV2.UpdateUI();OverlayChatWidgetV2.UpdateWaitingPosts(0);OverlayChatWidgetV2.UpdateChatHistoryUI();OverlayChatWidgetV2.ScrollDown(77297);OverlayChatWidgetV2.ResetPreviewPosts()}else{OverlayChatWidgetV2.Open(false)}};OverlayChatWidgetV2.SetSize=function(a,b){lz_overlay_chat.m_FrameElement.style.width=a+"px";lz_overlay_chat.m_FrameElement.style.height=b+"px";if(OverlayChatWidgetV2.PostPreview!=null){OverlayChatWidgetV2.PostPreview.m_FrameElement.style.width=(lz_overlay_wm==null?260:(lz_overlay_chat_width*0.7))+"px"}};OverlayChatWidgetV2.Open=function(a){if(lz_chats_external){OverlayChatWidgetV2.Pop("chat")}else{if(OverlayChatWidgetV2.__ModeClassic){lz_overlay_chat.SetVisible(true);OverlayChatWidgetV2.Maximize()}else{if(lz_chat_get_wm_element("chat")!=null){lz_session.OVLWMState="1";OverlayChatWidgetV2.SetMode(OverlayChatWidgetV2.GetAutoMode(),false)}else{OverlayChatWidgetV2.SetMode(OverlayChatWidgetV2.GetAutoMode(),true)}}}if(a){OverlayChatWidgetV2.PlaySound(OverlayChatWidgetV2.NotificationSound)}};OverlayChatWidgetV2.ExitBotChat=function(b,c,d,a){a=lz_d(a)?a:false;if(OverlayChatWidgetV2.__ModeBot){OverlayChatWidgetV2.__ModeBot=false;OverlayChatWidgetV2.__NoBotChat=b;if(c&&b){OverlayChatWidgetV2.ExitChat()}}if(a){if(document.getElementById("BotWelcomeMessage")!=null){document.getElementById("BotWelcomeMessage").parentElement.removeChild(document.getElementById("BotWelcomeMessage"))}}};OverlayChatWidgetV2.ExitChat=function(a){a=lz_d(a)?a:true;OverlayChatWidgetV2.ChatInitiated=false;OverlayChatWidgetV2.ChatStarted=false;if(a){lz_leave_chat=true;LiveZilla.Engine.Poll(1120)}else{OverlayChatWidgetV2.ChatEnded=true}};OverlayChatWidgetV2.InitChat=function(b,a){OverlayChatWidgetV2.ChatInitiated=true;OverlayChatWidgetV2.ChatStarted=true;OverlayChatWidgetV2.ChatEnded=false;if(lz_d(b)&&b!=null){OverlayChatWidgetV2.TargetOperatorId=b}else{OverlayChatWidgetV2.TargetOperatorId=null}if(lz_d(a)&&a!=null){OverlayChatWidgetV2.TargetGroupId=a;OverlayChatWidgetV2.SetUIGroup(a)}LiveZilla.Engine.Poll(1311,true)};OverlayChatWidgetV2.SetGroups=function(a,b){LiveZillaData.ForceGroupSelect=OverlayChatWidgetV2.ForceGroupSelect;if(LiveZillaData.Groups==null){LiveZillaData.Groups=new lz_group_list(document,document.getElementById("lz_form_groups"))}LiveZillaData.Groups.StatusIcon=false;LiveZillaData.Groups.CreateHeader(lz_text_please_select);LiveZillaData.Groups.Update(a);if(lz_d(b)&&b.length){OverlayChatWidgetV2.SetUIGroup(b,true)}};OverlayChatWidgetV2.ToggleTOS=function(a){OverlayChatWidgetV2.__ModeTOS=a;OverlayChatWidgetV2.UpdateUI();if(lz_overlay_chat.m_FixedMode||lz_overlay_chat.m_FullScreenMode){document.getElementById("lz_chat_overlay_minimize").style.display=(a)?"block":"none"}};OverlayChatWidgetV2.ToggleFeedback=function(c,b){b=(lz_d(b))?b:false;if(b){OverlayChatWidgetV2.FeedbackOnMouseMove=true}else{if(lz_chat_status==1&&!(OverlayChatWidgetV2.BotFeedback&&OverlayChatWidgetV2.__ModeBot)){return}if(c){var a="wt=ovlv2&etc="+lz_global_base64_url_encode(lz_color_primary)+"&ptl="+LiveZillaData.Language;if(OverlayChatWidgetV2.__CurrentChatId!=0){a+="&cid="+lz_global_base64_url_encode(OverlayChatWidgetV2.__CurrentChatId)}else{if(OverlayChatWidgetV2.__LastChatId!=0){a+="&cid="+lz_global_base64_url_encode(OverlayChatWidgetV2.__LastChatId)}}var d=document.getElementById("lz_overlay_module_feedback_content").getElementsByTagName("iframe")[0];if(d.src!=lz_poll_server+"feedback.php?"+a){document.getElementById("lz_overlay_module_feedback").style.display="block";d.src=lz_poll_server+"feedback.php?"+a}}OverlayChatWidgetV2.__ModeFeedback=c;OverlayChatWidgetV2.UpdateUI();if(lz_overlay_chat.m_FullScreenMode){document.getElementById("lz_chat_overlay_minimize").style.display=(c)?"block":"none"}}if(b&&lz_is_mobile){OverlayChatWidgetV2.MouseMove(null)}};OverlayChatWidgetV2.MouseMove=function(a){OverlayChatWidgetV2.__PostsNoticed=true;OverlayChatWidgetV2.MouseMoveEvent=a;if(OverlayChatWidgetV2.FeedbackOnMouseMove){OverlayChatWidgetV2.FeedbackOnMouseMove=false;setTimeout(function(){if(!OverlayChatWidgetV2.__Connecting&&lz_chat_status==0&&!OverlayChatWidgetV2.ChatStarted){OverlayChatWidgetV2.ToggleFeedback(true,false)}},3000)}};OverlayChatWidgetV2.SetStatus=function(g,c,b,e,f,a){if(lz_overlay_chat!=null){var d=(lz_session.OVLWMSElem=="chat");lz_hide_widget_by_conf=g;if(a==0&&lz_chat_status!=a&&lz_chat_status!=-1){OverlayChatWidgetV2.ExitChat(false)}lz_chat_status=a;lz_chat_declined=false;lz_chat_human_available=e;if(OverlayChatWidgetV2.CurrentOperator!=null||OverlayChatWidgetV2.__Connecting){c=true}if(OverlayChatWidgetV2.__ModeChangeDetails&&c!=d){lz_chat_switch_details(true)}if(!c&&document.getElementById("lz_chat_text").value.length>0&&document.getElementsByName("form_114")[0].value.length==0){document.getElementsByName("form_114")[0].value=document.getElementById("lz_chat_text").value}if(!c&&document.getElementById("lz_chat_queued_posts")!=null){document.getElementById("lz_chat_content_box").removeChild(document.getElementById("lz_chat_queued_posts"))}OverlayChatWidgetV2.UpdateChatFunctions();OverlayChatWidgetV2.ValidateMode();OverlayChatWidgetV2.UpdateUI();OverlayChatWidgetV2.UpdateWMUI();OverlayChatWidgetV2.UpdateButtonUI()}};OverlayChatWidgetV2.Pop=function(c,a){c=(typeof c!="undefined")?c:lz_session.OVLWMSElem;var b=lz_poll_server;var d=false;if(c=="knowledgebase"){b+="knowledgebase.php";b+="?etc="+lz_global_base64_url_encode(lz_color_secondary);b+="&linkid="+lz_global_base64_url_encode(lz_code_id);if(LiveZillaData.Language.length){b+="&ptl="+LiveZillaData.Language}b+="&ckf="+lz_kb_root;d=true}else{b+="chat.php?v=2&linkid="+lz_global_base64_url_encode(lz_code_id);if(typeof OverlayChatWidgetV2!="undefined"&&OverlayChatWidgetV2.__PublicGroupChat.length){b+="&pgc="+OverlayChatWidgetV2.__PublicGroupChat}}if(typeof a!="undefined"){b+=a}OverlayChatWidgetV2.OpenWindow(b,d)};OverlayChatWidgetV2.OpenWindow=function(b,a){if(a){window.open(b,"LiveZilla")}else{var c=(typeof OverlayChatWidgetV2!="undefined"&&OverlayChatWidgetV2.__PublicGroupChat.length)?Math.max(lz_window_width,600):lz_window_width;window.open(b,"LiveZilla","width="+c+",height="+lz_window_height+",left=50,top=50,resizable=yes,menubar=no,location=no,status=yes,slidebars=no")}};OverlayChatWidgetV2.Show=function(a){OverlayChatWidgetV2.Open(a)};OverlayChatWidgetV2.Hide=function(){lz_chat_hide()};OverlayChatWidgetV2.InputKeyUp=function(a){if(a!=null&&a.keyCode==13){if(lz_session.OVLWMState=="0"&&!lz_check_missing_inputs(true)&&!OverlayChatWidgetV2.IsChatActive()){OverlayChatWidgetV2.Show(false)}else{if(!a.ctrlKey){if(!OverlayChatWidgetV2.IsChatActive()){OverlayChatWidgetV2.ChatInitiated=true}OverlayChatWidgetV2.SendMessage(null,null)}}}else{lz_chat_switch_extern_typing(true)}OverlayChatWidgetV2.UpdateChatInputUI()};OverlayChatWidgetV2.AddSystemMessage=function(b){var c=document.createElement("div");var a=document.createElement("div");a.className="lz_overlay_chat_status_inner";a.innerHTML=b;c.appendChild(a);document.getElementById("lz_chat_content_inlay").appendChild(c);lz_chat_last_poster="SYS"};OverlayChatWidgetV2.AddParameters=function(){var c="",a;if(OverlayChatWidgetV2.CurrentOperator!=null){c+="&op="+lz_global_base64_url_encode(OverlayChatWidgetV2.CurrentOperator.Id)}if(OverlayChatWidgetV2.MessageSneakPeek&&document.getElementById("lz_chat_text")!=null){c+="&typ="+lz_global_base64_url_encode(lz_global_trim(document.getElementById("lz_chat_text").value))}else{if(lz_external.Typing){c+="&typ=MQ__"}}if(lz_chat_full_load&&!lz_chat_declined){c+="&full=1"}if(lz_leave_chat){c+="&clch=MQ__"}if(lz_chat_init_feedback){lz_chat_init_feedback=false;c+="&ovlif=MQ__"}if(OverlayChatWidgetV2.AcceptCR){OverlayChatWidgetV2.AcceptCR=false;c+="&accreq=MQ__"}else{if(OverlayChatWidgetV2.DeclineCR){OverlayChatWidgetV2.DeclineCR=false;c+="&decreq=MQ__"}}if(lz_chat_kb_search_phrase!=""){c+="&skb="+lz_global_base64_url_encode(lz_chat_kb_search_phrase)}if(lz_chat_status_change){c+="&sc=1"}if(!lz_leave_chat){if(OverlayChatWidgetV2.__NoBotChat){c+="&tth=MQ__"}if(OverlayChatWidgetV2.ChatInitiated){c+="&ic=MQ__"}}if(lz_overlay_chat!=null&&lz_overlay_chat.m_FullScreenMode){c+="&hinv=MQ__"}if(OverlayChatWidgetV2.TargetOperatorId!=null){c+="&operator="+encodeURIComponent(OverlayChatWidgetV2.TargetOperatorId)}if(OverlayChatWidgetV2.TargetGroupId!=null){c+="&eg="+encodeURIComponent(OverlayChatWidgetV2.TargetGroupId)}else{if(OverlayChatWidgetV2.__CurrentGroup!=null){c+="&eg="+encodeURIComponent(OverlayChatWidgetV2.__CurrentGroup.Id)}}if(lz_force_monitoring){c+="&fm=MQ__"}if(OverlayChatWidgetV2.ChatStarted&&lz_chat_status==0){LiveZillaData.WriteToServer=true}if(LiveZillaData.WriteToServer&&LiveZillaData.InputFieldValues!=null){for(a=0;a0)?"block":"none";document.getElementById("lz_chat_text_file").style.right=OverlayChatWidgetV2.IsFunction("ss")?"40px":"10px";document.getElementById("lz_chat_text_send").style.right=(OverlayChatWidgetV2.IsFunction("ss")&&OverlayChatWidgetV2.IsFunction("fu")?"70px":(OverlayChatWidgetV2.IsFunction("ss")||OverlayChatWidgetV2.IsFunction("fu")?"40px":"10px"));document.getElementById("lz_chat_text_file").style.display=OverlayChatWidgetV2.IsFunction("fu")?"block":"none";document.getElementById("lz_chat_text_sc").style.display=OverlayChatWidgetV2.IsFunction("ss")?"block":"none";document.getElementById("lz_chat_overlay_info").style.bottom=(15+a+"px");document.getElementById("lz_chat_members_box").style.bottom=document.getElementById("lz_chat_content_box").style.bottom=(OverlayChatWidgetV2.__Connecting)?(56+a+"px"):(16+a+"px");document.getElementById("lz_chat_overlay_info").style.display=(OverlayChatWidgetV2.__Connecting)?"block":"none";if(document.getElementById("lz_overlay_preview_tctrl")!=null){document.getElementById("lz_overlay_preview_tctrl").style.height=10+a+"px"}document.getElementById("lz_chat_overlay_bottom").style.height=10+a+"px"};OverlayChatWidgetV2.ScrollDown=function(a){setTimeout(function(){if(document.getElementById("lz_chat_content_box")!=null){document.getElementById("lz_chat_content_box").scrollTop=document.getElementById("lz_chat_content_box").scrollHeight}},100)};OverlayChatWidgetV2.RemoveInvite=function(b){var a=document.getElementById(b);if(a!=null){if(lz_session.OVLWMState=="0"){a.parentNode.parentNode.removeChild(a.parentNode)}else{a.parentNode.removeChild(a)}}};OverlayChatWidgetV2.ShowWaitingMessage=function(a){if(lz_chat_status<2){OverlayChatWidgetV2.AddMessages(lz_global_base64_encode(JSON.stringify([[a,"WAIM"]])),false,null,null,"sys")}};OverlayChatWidgetV2.SetConnectionState=function(c,b,a,d){if(b!=null){lz_external.Id=b}if(c&&LiveZillaData.TimerWaiting==null&&a!=null){LiveZillaData.TimerWaiting=setTimeout(function(){OverlayChatWidgetV2.ShowWaitingMessage(a)},d*1000)}else{if(!c&&LiveZillaData.TimerWaiting!=null){clearTimeout(LiveZillaData.TimerWaiting);LiveZillaData.TimerWaiting=null}}OverlayChatWidgetV2.__Connecting=c;if(c){lz_chat_set_typing(null,false)}OverlayChatWidgetV2.UpdateChatInputUI()}};