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="";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.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.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]}}}}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=1021&method="+f+"&spanm="+i+"&oak="+lz_oak+"&ip="+lz_mip;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_get_page_offset_y(){if(window.pageYOffset!=null){return window.pageYOffset}else{return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function lz_global_get_page_offset_x(){if(window.pageXOffset!=null){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){console.log(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=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){this.Option.style.color="#787878";this.Option.style.background="#f7f7f7"}else{this.Option.style.color="#000";this.Option.style.background="#FFF"}this.Option.label=" "+this.Description;this.Option.text=" "+this.Description}catch(t){console.log(t)}}function j(u,v,t,w){if(this.Id!=u||this.Amount!=v||this.Description!=((t.length>0)?t:u)||this.Email!=w){this.Id=u;this.Amount=v;this.Description=(t.length>0)?t:u;this.Email=w;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,_cf){var existing=false;var currentGroup;var lastGroup;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]),eval(lz_global_base64_decode(contents[14])))}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.color="#000000";this.ForceSelectOption.style.background="#FFFFFF";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(q.indexOf("?")!=-1){q+="×tamp="+lz_global_timestamp()}else{q+="?timestamp="+lz_global_timestamp()}var p=document.createElement("script");p.id="livezilla_vscript"+this.Index.toString();p.src=q;document.getElementsByTagName("head")[0].appendChild(p)}function b(q,p){if(q!=null){if(lz_chat_get_frame_object("").getElementsByName("form_"+this.Index).length==1){lz_chat_get_frame_object("").getElementsByName("form_"+this.Index)[0].disabled=!p}}}function m(s,p){try{for(var r=0;r-1){return true}else{if(!p&&lz_array_indexOf(s[r].TicketInputsHidden,this.Index)>-1){return true}}}}catch(q){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){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")};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",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",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",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:"M1181 913q0 208-87 370.5t-248 254-369 91.5q-149 0-285-58t-234-156-156-234-58-285 58-285 156-234 234-156 285-58q286 0 491 192l-199 191q-117-113-292-113-123 0-227.5 62t-165.5 168.5-61 232.5 61 232.5 165.5 168.5 227.5 62q83 0 152.5-23t114.5-57.5 78.5-78.5 49-83 21.5-74h-416v-252h692q12 63 12 122zm867-122v210h-209v209h-210v-209h-209v-210h209v-209h210v209h209z"},{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",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",v:"-7 -8 48 48",t:"scale(.018)",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"}];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=lz_global_base64_url_encode(document.getElementById("lz_invitation_name").value)}lz_tracking_init_external_window(fullname,_intid,_groupid,"",true)}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}}}}};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){this.m_IsMobile=a;if(a){this.m_FrameElement.style.position="absolute"}if(this.m_UpdateInterval==null){var b=this;window.addEventListener("resize",function(){b.UpdateUI(false)});window.addEventListener("scroll",function(){b.UpdateUI(false)});this.InitUpdateInterval()}};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()};function LiveZillaTracking(){}LiveZillaTracking.LastButtonUpdate=lz_global_timestamp();LiveZillaTracking.UpdateImageButtons=function(){if(LiveZillaTracking.LastButtonUpdate<(lz_global_timestamp()-lz_poll_frequency)){LiveZillaTracking.LastButtonUpdate=lz_global_timestamp();var a=document.getElementsByTagName("a");var c=0;for(var b=0;b0){a+="&el="+LiveZillaData.Language}else{if(lz_d(lz_data.language)){e="&el="+lz_global_base64_url_encode(lz_data.language);if(a.indexOf(e)==-1){a+=e}}}if(LiveZillaData.AreaCode.length>0){a+="&code="+LiveZillaData.AreaCode}else{if(lz_d(lz_data.website)){e="&code="+lz_global_base64_url_encode(lz_data.website);if(a.indexOf(e)==-1){a+=e}}}return a};LiveZillaTracking.AddPassThruParameter=function(a,b){var d="";if(lz_d(LiveZillaData["F"+b])&&LiveZillaData["F"+b]!=""){d=LiveZillaData["F"+b]}else{if(lz_d(lz_data[b])){d=lz_global_base64_url_encode(lz_data[b])}}if(lz_chat_get_input_value(b)==""&&d!=""){var c="&f"+b+"="+d;if(a.indexOf(c)==-1){return c}}return""};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_request_active=null;var lz_request_last=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_eye_catcher=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_website_push_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_remove_att=null;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={}}lz_init_tracking()}function lz_init_tracking(){if(typeof LiveZillaData=="undefined"||!lz_resources[0]||!lz_resources[1]||!lz_resources[2]||(lz_overlay_chat_available&&(!lz_resources[4]))){setTimeout(lz_init_tracking,100);return}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.Load();if(location.search.indexOf("lzcobrowse")!=-1){lz_session.Save();lz_tracking_poll_server();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()){lz_tracking_poll_server()}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)}}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=true}}function lz_tracking_poll_server(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=LiveZillaTracking.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(lz_request_active!=null){a+="&actreq=1"}if(LiveZillaData.PassThruParameters.length>0){a+="&"+LiveZillaData.PassThruParameters}if(lz_overlay_chat_available){a+=lz_chat_poll_parameters()}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(lz_remove_att!=null){a+="&tra="+lz_remove_att;lz_remove_att=null;lz_load_inputs=true}if(lz_load_inputs!=null){a+="&ri=MQ_";lz_load_inputs=null}}catch(b){console.log(b);a+="&exception="+lz_global_base64_url_encode(b.message)}if(!lz_stopped){lz_tracking_server_request(a,"livezilla_pollscript");clearTimeout(lz_timer);lz_timer=setTimeout("lz_tracking_poll_server();",(lz_poll_frequency*1000))}}function lz_tracking_callback(a){if(lz_poll_frequency!=a){lz_poll_frequency=a;clearTimeout(lz_timer);lz_timer=setTimeout("lz_tracking_poll_server();",(lz_poll_frequency*1000))}if(lz_timer_connection_error!=null){clearTimeout(lz_timer_connection_error)}if(!lz_stopped){lz_timer_connection_error=setTimeout("lz_tracking_callback("+a+");",30*1000)}lz_tracking_remove_script("livezilla_pollscript");LiveZillaTracking.UpdateImageButtons();if(lz_poll_required){lz_poll_required=false;lz_tracking_poll_server(1123)}}function lz_tracking_remove_script(a){var b=document.getElementById(a);if(b!=null){lz_document_head.removeChild(b)}}function lz_tracking_set_sessid(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)}function lz_tracking_close_request(a){if(lz_request_active!=null){lz_request_last=lz_request_active;lz_request_active=null}if(lz_request_window!=null){lz_request_window.lz_livebox_close("lz_request_window");lz_request_window=null}if(lz_overlay_chat!=null){if(typeof lz_chat_decline_request!="undefined"){lz_chat_decline_request(a,true,false)}}}function lz_tracking_stop_tracking(a){lz_stopped=true;lz_tracking_remove_overlay_chat();lz_tracking_remove_script("livezilla_pollscript");if(a==1242){window.name="";location.reload()}if(document.getElementById("warning-filter")!=null){document.getElementById("warning-filter").style.display="table-row"}}function lz_tracking_geo_result(g,e,a,f,c,b,d){lz_session.GeoResolved=Array(g,e,a,f,c,b,d);lz_session.Save();lz_tracking_poll_server(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_action_result(b,d,a,c){if(c==null){c=""}c="&b="+lz_global_base64_url_encode(lz_session.BrowserId)+"&ue="+lz_global_base64_url_encode(lz_global_base64_url_encode(window.location.href))+c;c+=(lz_session.UserId!=null)?"&i="+lz_global_base64_url_encode(lz_session.UserId):"";if(b=="alert"){c+="&confalert="+lz_alert_active}else{if(b=="overlay_box"){c+="&confol="+lz_overlay_active;lz_overlay_last=lz_overlay_box=null}else{if(b=="chat_request"){c+=((!d)?"&decreq="+lz_request_active:"&accreq="+lz_request_active)}else{if(b=="website_push"){if(d){c+="&accwp="+lz_website_push_active}else{c+="&decwp="+lz_website_push_active}setTimeout("lz_website_push_active = null;",10000)}}}}if(a){c+="&clreq=1";lz_tracking_close_request()}if(lz_overlay_chat_available){c+=lz_chat_poll_parameters()}if(!lz_stopped){lz_tracking_server_request(c+"&"+LiveZillaData.PassThruParameters,Math.random().toString())}}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;lz_tracking_poll_server(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",(lz_global_base64_decode(b)));lz_request_active=d;lz_request_window=new lz_livebox("lz_request_window",a,g,t,i,e,f,m,c,h,p);if(l){lz_request_window.lz_livebox_shadow(j,q,o,"#"+k)}if(r){lz_request_window.lz_livebox_background("#"+s,n)}if(lz_request_last!=d){lz_request_window.lz_livebox_create();lz_request_window.lz_livebox_show(lz_overlay_zindex+4);window.focus()}}}function lz_tracking_add_overlay_chat_v2(o,j,e,f,a,k,l,g,h,i){if(typeof lz_ovlel_classic!="undefined"){OverlayChatWidgetV2.__ModeClassic=!lz_ovlel_fsm&&!lz_is_mobile}if(typeof lz_ovlel_api!="undefined"){OverlayChatWidgetV2.__ModeAPI=true}if(lz_ovlel.length==1&&!OverlayChatWidgetV2.__ModeAPI){return}lz_header_text=lz_global_base64_decode(j);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(f<720){f=720}}}var d=20;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){d=80}if(lz_global_get_window_width()>0){f=Math.min(f,lz_global_get_window_height()-(g+d));e=Math.min(e,lz_global_get_window_width())}lz_overlay_chat_height=f;lz_overlay_chat_width=e;o=(lz_global_base64_decode(o)).replace("",lz_header_text);o=o.replace("",lz_get_icon("lz_chat_switch_so","toggle-off",""," lz_chat_overlay_toggle_icon"));o=o.replace("",lz_get_icon("lz_chat_switch_tr","toggle-off",""," lz_chat_overlay_toggle_icon"));o=o.replace("",lz_get_icon("lz_chat_switch_et","toggle-off",""," lz_chat_overlay_toggle_icon"));o=o.replace("",lz_get_icon("lz_chat_feedback_init","thumbs-o-up","OverlayChatWidgetV2.ToggleFeedback(true);",""));o=o.replace("",lz_get_icon("lz_chat_options_button","ellipsis-h","lz_chat_switch_options_table();lz_stop_propagation(evt);",""));o=o.replace("",lz_get_icon("lz_chat_overlay_minimize","times-circle","OverlayChatWidgetV2.SetMode(null,true);",""));o=o.replace("",lz_get_icon("lz_chat_kb_match_close","times-circle","lz_chat_kb_deactivate(true,false);",""));o=o.replace("",lz_get_icon("lz_chat_overlay_options_close","times-circle","lz_chat_switch_options(lz_chat_option_function,false);",""));o=o.replace(//g,lz_get_icon("","info-circle","",""));o=o.replace(//g,lz_get_icon("","plus-square",""," lz_chat_fill"));o=o.replace("",lz_get_icon("lz_chat_apo_icon","expand","OverlayChatWidgetV2.Pop();",""));o=o.replace(//g,i);o=o.replace(//g,(OverlayChatWidgetV2.__ModeClassic&&g==0)?0:i);var c=l+2;var m=g+6;if(OverlayChatWidgetV2.__ModeClassic){c=l;m=g}else{if(OverlayChatWidgetV2.__ModeAPI){c+=0}else{if(!OverlayChatWidgetV2.__ModeSingle){c+=OverlayChatWidgetV2.__Size+15}else{m+=OverlayChatWidgetV2.__Size+Math.floor(17*OverlayChatWidgetV2.__Ratio)}}}var n=(lz_ovlel_fsm)?((OverlayChatWidgetV2.__ModeSingle)?0:50):0;lz_overlay_chat=new lz_livebox_v2("lz_overlay_chat",o,lz_overlay_chat_width,f,a,n,c,m,h,(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";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=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";document.body.style.position="static"}}function lz_tracking_add_welcome_manager(c,b,d,e,a){if(OverlayChatWidgetV2.__ModeClassic){return}if(lz_is_mobile){a=Math.max(40,a);e=Math.max(40,e)}c=lz_global_base64_decode(c);c=c.replace("",OverlayChatWidgetV2.__Scale);c=c.replace("",OverlayChatWidgetV2.__BorderWidth);c=c.replace(//g,OverlayChatWidgetV2.__Size);c=c.replace("",-12*OverlayChatWidgetV2.__Ratio);c=c.replace("",-11*OverlayChatWidgetV2.__Ratio);lz_chat_add_wm_elems(c,b,d,e,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_add_eye_catcher_v2(c,b){if(!OverlayChatWidgetV2.__ModeAPI&&lz_ovlec!=null&&!lz_ovlel_fsm&&lz_eye_catcher==null&&lz_overlay_chat!=null&&lz_session.ECH!="1"){var d=90;if(b==""||!lz_d(lz_ovlec.ec_p)){d=0}if(lz_is_mobile&&!lz_d(lz_ovlec.ec_som)){return}if(OverlayChatWidgetV2.IsChatAvailable()&&lz_d(lz_ovlec.ec_dson)){return}if(!OverlayChatWidgetV2.IsChatAvailable()&&lz_d(lz_ovlec.ec_dsof)){return}OverlayChatWidgetV2.EyeCatcherWidth=lz_ovlec.ec_w;if(OverlayChatWidgetV2.__ModeClassic){if(!(lz_overlay_chat!=null&&lz_overlay_chat.IsVisible())){return}if(lz_session.OVLWMState=="1"){OverlayChatWidgetV2.Maximize()}else{OverlayChatWidgetV2.Minimize()}}c=lz_global_base64_decode(c);c=c.replace(//g,lz_ovlec.ec_w);c=c.replace(//g,lz_ovlec.ec_h);c=c.replace(//g,lz_ovlec.ec_ht_c);c=c.replace(//g,lz_ovlec.ec_st_c);c=c.replace(//g,lz_ovlec.ec_a_bc);c=c.replace(//g,lz_ovlec.ec_a_bw);c=c.replace(//g,((d>0)?d:15)+20);c=c.replace(//g,"");c=c.replace(//g,"");c=c.replace(//g,lz_global_base64_decode(b));c=c.replace("",lz_get_icon("lz_overlay_eyecatcher_close","times-circle","lz_tracking_remove_eye_catcher();lz_stop_propagation(evt);",""));var a=Math.floor(lz_ovlec.ec_h*0.11);if(lz_ovlec.ec_h<140){c=c.replace(//g,"white-space:nowrap;text-overflow:ellipsis;")}else{a=Math.floor(lz_ovlec.ec_h*0.3)}c=c.replace(//g,Math.floor((lz_ovlec.ec_h-a-100)/2));c=c.replace(//g,Math.floor((lz_ovlec.ec_h-a-54)/2));c=c.replace(//g,Math.floor((lz_ovlec.ec_h-a)/2));lz_eye_catcher=new lz_livebox_v2("lz_eye_catcher",c,lz_ovlec.ec_w,lz_ovlec.ec_h,0,0,lz_ovlec.ec_m[1],lz_ovlec.ec_m[2],"22");lz_eye_catcher.m_FrameElement.style.zIndex=lz_overlay_zindex+10;document.getElementById("lz_overlay_eyecatcher_close").style.fill=lz_ovlec.ec_ht_c;lz_tracking_cbubble(document.getElementById("lz_overlay_eyecatcher_bubble").getContext("2d"),d);if(lz_session.OVLWMState=="0"){lz_eye_catcher.m_FrameElement.style.opacity=0;lz_eye_catcher.SetVisible(true);setTimeout(lz_fade_in_eye_catcher,lz_d(lz_ovlec.ec_fi)?lz_ovlec.ec_fi*1000:10)}else{lz_eye_catcher.m_FrameElement.style.opacity=1}if(lz_d(lz_ovlec.ec_fo)){setTimeout("lz_tracking_remove_eye_catcher();",lz_ovlec.ec_fo*1000)}document.getElementById("lz_overlay_eyecatcher_avatar").style.left=(12+lz_ovlec.ec_bw)+"px";OverlayChatWidgetV2.UpdateEyeCatcherContent()}}function lz_fade_in_eye_catcher(){if(lz_session.OVLWMState=="0"){lz_fade_in(document.getElementById("lz_eye_catcher"),55)}setTimeout(function(){if(lz_session.OVLWMState!="0"){lz_eye_catcher.SetVisible(false)}},lz_d(lz_ovlec.ec_fi)?lz_ovlec.ec_fi*1000:800)}function lz_tracking_add_eye_catcher_image(f,a,e,d,h,g,b){try{if(!lz_ovlel_fsm&&!lz_is_mobile&&lz_eye_catcher==null&&lz_overlay_chat!=null&&lz_session.ECH!="1"){f=lz_global_base64_decode(f);OverlayChatWidgetV2.EyeCatcherWidth=a;lz_eye_catcher=new lz_livebox_v2("lz_eye_catcher",f,a,e,0,0,g,b,"22");if(lz_session.OVLWMState=="0"){lz_eye_catcher.m_FrameElement.style.opacity=0;lz_eye_catcher.SetVisible(false);if(d>0){setTimeout("if(lz_session.OVLWMState == '0'){lz_eye_catcher.SetVisible(true);lz_fade_in(document.getElementById('lz_eye_catcher'),55);}",d*1000)}else{setTimeout("if(lz_session.OVLWMState == '0'){lz_eye_catcher.SetVisible(true);lz_fade_in(document.getElementById('lz_eye_catcher'),55);}",10)}if(h>0){setTimeout("lz_tracking_remove_eye_catcher();",h*1000)}}else{lz_eye_catcher.m_FrameElement.style.opacity=1;lz_eye_catcher.SetVisible(false)}}}catch(c){console.log(c)}}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_eye_catcher(){if(lz_session!=null&&document.getElementById("lz_overlay_eyecatcher")!=null){lz_session.ECH=1;lz_session.Save();lz_fade_out(document.getElementById("lz_eye_catcher"),25)}}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()}}}lz_tracking_remove_eye_catcher()}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();lz_tracking_poll_server(1002)}function lz_tracking_init_external_window(a,c,e,b,d){if(b.indexOf("&en=")==-1&&a!=""){b+="&en="+a}if(b.indexOf("&intid=")==-1&&c!=""){b+="&intid="+c}if(b.indexOf("&intgroup=")==-1&&e!=""){b+="&hg=Pw__&intgroup="+e}if(b.indexOf("&dl=")==-1&&d){b+="&dl=MQ__"}b+="&"+LiveZillaData.ChatParameters+"&nct=MQ__&hfk=MQ__";b=LiveZillaTracking.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;lz_tracking_poll_server(1214);alert(a)}function lz_tracking_set_widget_visibility(a){if(lz_session.OVLCState!="0"&&!a){return}if(lz_eye_catcher!=null&&lz_overlay_chat!=null){if(a&&!lz_eye_catcher.lz_livebox_shown){lz_eye_catcher.lz_livebox_show(lz_overlay_zindex)}document.getElementById("lz_eye_catcher").style.display=(a&&lz_session.ECH!=1)?"block":"none"}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;n0&&OverlayChatWidgetV2.__ModeBot){OverlayChatWidgetV2.InputState(true)}var g=(lz_session.TransInto!=""&&lz_session.TransInto!=null)?lz_session.TransInto:"";if(lz_tr_api_key!=""&&g!=""&&lz_session.TransFrom!=null&&lz_session.TransFrom!=""&&lz_session.TransFrom.toUpperCase()!=g.toUpperCase()&&d==null){var i=document.createElement("script");i.type="text/javascript";window.doneTranslateCallback=function b(l){if(l.data!=null){lz_chat_message(c,l.data.translations[0].translatedText);window.doneTranslateCallback=null}else{alert("Sorry, there was an error while trying to translate:\r\n"+JSON.stringify(l));lz_chat_message(c,null)}};var k=(lz_session.TransFrom!="AUTO")?"&source="+lz_session.TransFrom:"";i.src="https://www.googleapis.com/language/translate/v2?key="+lz_global_base64_decode(lz_tr_api_key)+"&format=html"+k+"&target="+g+"&callback=doneTranslateCallback&q="+c;document.getElementsByTagName("head")[0].appendChild(i);document.getElementById("lz_chat_text").value="";return false}if(c.length>0){if(document.getElementById("lz_chat_invite_id")!=null&&lz_chat_status==0){lz_chat_decline_request(lz_request_active=document.getElementById("lz_chat_invite_id").value,true,false,true);if(c.length>document.getElementsByName("form_114")[0].value.length){document.getElementsByName("form_114")[0].value=c}lz_chat_start();return false}var f="";var j=new lz_chat_post();if(a!=null){j.MessageTranslationText=a;f=lz_global_htmlentities(j.MessageTranslationText)+"
"+lz_global_htmlentities(c)+"
"}else{f=lz_global_htmlentities(c)}j.MessageText=c;j.MessageId=lz_global_microstamp();j.MessageTime=lz_global_timestamp();lz_external.MessagesSent[lz_external.MessagesSent.length]=j;document.getElementById("lz_chat_text").value="";if(OverlayChatWidgetV2.__CurrentOperator==null&&!OverlayChatWidgetV2.__PublicGroupChat.length){lz_chat_set_connecting(true,null,null)}var h=(lz_chat_last_poster!=lz_external.Id)?lz_global_base64_decode(lz_post_html):lz_global_base64_decode(lz_add_html);var e=(lz_chat_get_input_value(111).length==0)?lz_guest_name:lz_chat_get_input_value(111);h=h.replace("",f);h=h.replace("",lz_poll_server);h=h.replace("",lz_global_base64_url_encode(e));h=h.replace("","");h=h.replace("",lz_global_htmlentities(e));h=h.replace(//g,1);h=h.replace("",lz_global_base64_url_encode(lz_color_primary));lz_chat_switch_extern_typing(false);lz_chat_add_html_element(lz_global_base64_encode(h),false,null,null,lz_global_base64_encode(lz_external.Id),null);lz_tracking_poll_server(1114,true);lz_chat_set_focus(6)}return false}function lz_chat_print(){var a=lz_poll_server+"print.php?c="+lz_global_base64_url_encode(OverlayChatWidgetV2.__LastChatId)+"&b="+lz_global_base64_url_encode(lz_session.UserId+"_OVL")+"&i="+lz_global_base64_url_encode(lz_session.UserId)+"&r="+Math.random().toString();OverlayChatWidgetV2.OpenWindow(a,false)}function lz_chat_set_typing(d,a){if(lz_overlay_chat!=null){if(OverlayChatWidgetV2.__ModeBot){d=null}if(OverlayChatWidgetV2.__Connecting){if(!a&&lz_timer_connecting!=null){return}if(document.getElementById("lz_chat_overlay_info").innerHTML.length==0){document.getElementById("lz_chat_overlay_info").innerHTML=lz_text_connecting_info}else{document.getElementById("lz_chat_overlay_info").innerHTML=""}lz_timer_connecting=setTimeout("lz_chat_set_typing('',true);",700)}else{if(lz_timer_connecting!=null){clearTimeout(lz_timer_connecting)}lz_timer_connecting=null;if(OverlayChatWidgetV2.__CurrentOperator!=null&&d!=null&&!lz_operator_typing){var b=document.createElement("div");b.id="lz_chat_overlay_typing_post";var c=((lz_chat_last_poster!=OverlayChatWidgetV2.__CurrentOperator.Id)?lz_global_base64_decode(lz_post_html):lz_global_base64_decode(lz_add_html));c=c.replace("",'
');c=c.replace("",lz_poll_server);c=c.replace("name=&ebg=","intid="+lz_global_base64_url_encode(OverlayChatWidgetV2.__CurrentOperator.Id));c=c.replace("","");c=c.replace("lz_overlay_chat_message_change","");c=c.replace("",lz_global_htmlentities(OverlayChatWidgetV2.__CurrentOperator.Fullname));b.innerHTML=c;lz_operator_typing=true;document.getElementById("lz_chat_content_inlay").appendChild(b);lz_chat_scoll_down()}else{if(d==null&&lz_operator_typing){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")}}}}}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("lz_chat_switch_extern_typing(false);",5000)}lz_external.Typing=b;if(a&&OverlayChatWidgetV2.__CurrentOperator!=null){lz_tracking_poll_server(1115)}}function lz_chat_show_waiting_message(a){if(lz_chat_status<2){lz_chat_add_html_element(a,false,null,null,"sys",null)}}function lz_chat_set_connecting(c,b,a,d){if(b!=null){lz_external.Id=b}if(c&&LiveZillaData.TimerWaiting==null&&a!=null){LiveZillaData.TimerWaiting=setTimeout("lz_chat_show_waiting_message('"+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)}document.getElementById("lz_chat_members_box").style.bottom=document.getElementById("lz_chat_content_box").style.bottom=(OverlayChatWidgetV2.__Connecting)?"110px":"80px";document.getElementById("lz_chat_overlay_info").style.display=(OverlayChatWidgetV2.__Connecting)?"block":"none"}function lz_chat_message_return(){OverlayChatWidgetV2.UpdateUI();lz_chat_set_focus(66)}function lz_kb_set_url(a){document.getElementById("lz_overlay_module_knowledgebase").style.display="block";var b=lz_poll_server+"knowledgebase.php?tops=MQ__&no-logo=MQ__&etc="+lz_global_base64_url_encode(lz_color_secondary)+"&el="+LiveZillaData.Language+"&ckf="+lz_kb_root;if(a!=""){b+="&search-for="+a}document.getElementById("lz_overlay_module_knowledgebase").getElementsByTagName("iframe")[0].src=b}function lz_chat_set_members(a,e,b){document.getElementById("lz_chat_members_box").style.display=e?"block":"none";document.getElementById("lz_chat_content_box").style.left=!e?"0":"201px";if(e){if(lz_session.OVLWMState=="1"){document.getElementById("lz_overlay_chat").style.width="600px"}lz_overlay_chat_width=600}var h,f="",i="";for(var c in b){var g=(!b[c].op)?"name="+b[c].name:"intid="+lz_global_base64_url_encode(b[c].id);h="
"+lz_substr(lz_global_base64_url_decode(b[c].name),18,true)+"
";if(b[c].op){i+=h}else{f+=h}}if(lz_chat_status==2){OverlayChatWidgetV2.__PublicGroupChat=a}var d=(i.length)?i+"
"+f:f;if(document.getElementById("lz_chat_members_box").innerHTML!=d){document.getElementById("lz_chat_members_box").innerHTML=d}lz_chat_set_element_width()}function lz_chat_data_form_result(){OverlayChatWidgetV2.__FormConfirmRequired=false;if(OverlayChatWidgetV2.__ModeTicketReceived){lz_load_inputs=true;lz_tracking_poll_server(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"){lz_chat_start()}else{if(lz_session.OVLWMSElem=="ticket"){lz_chat_send_ticket()}else{if(lz_session.OVLWMSElem=="phone"){lz_chat_send_ticket(true)}}}}}}function lz_chat_start(){if(lz_chat_status>0||(lz_chat_status==0&&lz_check_missing_inputs(true,"lz_chat_start"))){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;lz_chat_message(null,null);document.getElementById("lz_chat_text").value=""}else{OverlayChatWidgetV2.InitChat()}}OverlayChatWidgetV2.__ChatStarted=true;OverlayChatWidgetV2.SetGroupInfo();OverlayChatWidgetV2.UpdateUI()}else{OverlayChatWidgetV2.UpdateUI();lz_chat_set_focus(8)}lz_tracking_poll_server(1153,true)}function lz_chat_poll_parameters(){var c="",a;if(OverlayChatWidgetV2.__CurrentOperator!=null){c+="&op="+lz_global_base64_url_encode(OverlayChatWidgetV2.__CurrentOperator.Id)}if(lz_external.Typing){c+="&typ=1"}if(lz_chat_full_load&&!lz_chat_declined){c+="&full=1"}if(lz_closed||lz_leave_chat){c+="&clch=MQ__"}if(lz_chat_init_feedback){lz_chat_init_feedback=false;c+="&ovlif=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.__InitChat||OverlayChatWidgetV2.__NoBotChat){c+="&tth=MQ__"}if(OverlayChatWidgetV2.__InitChat){c+="&ic=MQ__"}}if(OverlayChatWidgetV2.__TargetOperatorId!=null){c+="&intid="+OverlayChatWidgetV2.__TargetOperatorId}if(OverlayChatWidgetV2.__TargetGroupId!=null){c+="&eg="+OverlayChatWidgetV2.__TargetGroupId}else{if(OverlayChatWidgetV2.__CurrentGroup!=null){c+="&eg="+lz_global_base64_url_encode(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;a-1&&lz_session.OVLCWM!=a){lz_session.OVLCWM=a;lz_session.Save()}if(!lz_chats_external){if(lz_overlay_wm!=null&&lz_chat_get_wm_element("chat")!=null){document.getElementById("livezilla_wm_c_chat").style.display=(a>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=(a>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"}}}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;lz_tracking_poll_server(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){lz_chat_play_sound("message");lz_chat_kb_sound_played=true}lz_kb_set_url(document.getElementsByName("form_114")[0].value);lz_chat_update_kb_counter(b)}function lz_global_replace_smilies(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}function lz_chat_add_html_element(e,d,g,c,h,f,a){OverlayChatWidgetV2.__PostsNoticed=lz_is_mobile;if(a!=null){lz_chat_update_waiting_posts((a==-1)?0:(lz_session.OVLCWM+parseInt(a)))}if(e!=null){if(lz_chat_full_load&&d){lz_chat_full_load=false}if(f!=null&&lz_global_base64_decode(f)!=lz_chat_last_poster&&lz_chat_last_poster!=null){lz_tracking_poll_server(1117,true);return}if(g!=null&&OverlayChatWidgetV2.__LastPostReceived!=lz_global_base64_decode(g)){OverlayChatWidgetV2.__LastPostReceived=lz_global_base64_decode(g);OverlayChatWidgetV2.__IsPostStatusUpdate=true}if(c!=null&&lz_chat_last_message_received!=lz_global_base64_decode(c)){lz_chat_last_message_received=lz_global_base64_decode(c)}if(h!=null&&e!=null&&lz_chat_last_poster!=lz_global_base64_decode(h)){lz_chat_last_poster=lz_global_base64_decode(h)}if(lz_chat_last_poster==lz_external.Id&&lz_mode_show_options){lz_chat_switch_options(lz_chat_option_function,false)}var b=document.createElement("div");document.getElementById("lz_chat_content_inlay").appendChild(b);b.innerHTML=lz_global_replace_smilies(lz_global_base64_decode(e),true);lz_update_chat_area();lz_chat_replace_time();lz_chat_replace_icon();if(lz_operator_typing){document.getElementById("lz_chat_content_inlay").appendChild(document.getElementById("lz_chat_overlay_typing_post"))}}OverlayChatWidgetV2.DisableBotButtons()}function lz_update_chat_area(){lz_chat_set_element_width();lz_chat_scoll_down();OverlayChatWidgetV2.DisableBotButtons()}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_detect_sound(){}function lz_chat_decline_request(c,a,e,b){if(b==null){b=false}var d=document.getElementById(c);if(d!=null&&d.style.display!="none"){if(!a){lz_request_active=c;lz_tracking_action_result("chat_request",b,false,lz_chat_poll_parameters())}d.parentNode.removeChild(d);lz_chat_set_element_width();if(!b){lz_chat_hide()}}}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("lz_tracking_poll_server(1116,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")?document.getElementsByName("form_"+o)[0].checked: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=(o==114&&l=="lz_chat_send_ticket");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;bdocument.getElementById("lz_chat_content_box").clientHeight)?(b-16+"px"):(b-1+"px")}}}function lz_chat_pre_change_group(a){LiveZillaData.ForceSelectInit=true}function lz_chat_change_group(d){if(LiveZillaData.ForceGroupSelect&&!LiveZillaData.ForceSelectMade&&d.selectedIndex==d.childNodes.length-1){return}if(LiveZillaData.ForceGroupSelect&&LiveZillaData.ForceSelectInit&&!LiveZillaData.ForceSelectMade){LiveZillaData.ForceSelectMade=true;d.removeChild(LiveZillaData.Groups.ForceSelectOption);OverlayChatWidgetV2.UpdateFormUI()}var c=(OverlayChatWidgetV2.__CurrentGroup!=null)?OverlayChatWidgetV2.__CurrentGroup.Id+OverlayChatWidgetV2.__CurrentGroup.Amount:"";OverlayChatWidgetV2.__CurrentGroup=LiveZillaData.Groups.GetGroupById(d.value);if(OverlayChatWidgetV2.__CurrentGroup==null){var a=d.selectedIndex;var b=false;while(OverlayChatWidgetV2.__CurrentGroup==null){a++;if(a==d.childNodes.length){if(!b){a=0;b=true}else{break}}OverlayChatWidgetV2.__CurrentGroup=LiveZillaData.Groups.GetGroupById(d.childNodes[a].value)}}var e=(OverlayChatWidgetV2.__CurrentGroup!=null)?OverlayChatWidgetV2.__CurrentGroup.Id+OverlayChatWidgetV2.__CurrentGroup.Amount:"";if(OverlayChatWidgetV2.__CurrentGroup!=null){if(d.length>a){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 c=document.getElementById("lz_form_info_"+b);c.style.display=(a&&c.style.display!="block")?"block":"none";c.style.right="30px"}function lz_chat_switch_options(c,h,d,f){var g=["fu"];if(!h){lz_chat_unset_focus();var b=document.getElementById("lz_chat_overlay_options_box").style.display=="none";for(var e=0;e","-1");d=d.replace("","-1");lz_chat_add_html_element(lz_global_base64_encode(d),false,null,null,null,null);LiveZillaData.QueueMessageAppended=true;lz_chat_last_poster=null}if(document.getElementById("lz_chat_queue_position")){var f=parseInt(document.getElementById("lz_chat_queue_position").innerHTML);var e=parseInt(document.getElementById("lz_chat_queue_waiting_time").innerHTML);if(f==-1||(a>0&&a<=f)){document.getElementById("lz_chat_queue_position").innerHTML=a}if(e==-1||(c>0&&c<=e)){document.getElementById("lz_chat_queue_waiting_time").innerHTML=c}}}function lz_chat_kb_deactivate(b,a){lz_chat_search_result(0);if(b){lz_session.KBS=0;lz_session.Save()}if(a){if(lz_chat_get_wm_element("knowledgebase")!=null){OverlayChatWidgetV2.SetMode("knowledgebase",true)}else{OverlayChatWidgetV2.Pop("knowledgebase","&eq="+lz_global_base64_encode(document.getElementsByName("form_114")[0].value))}}}function lz_chat_open(a){OverlayChatWidgetV2.Open(a)}function lz_chat_show(a){lz_chat_open(a)}function lz_chat_hide(){lz_session.OVLWMState="0";OverlayChatWidgetV2.SetMode(OverlayChatWidgetV2.GetAutoMode());if(OverlayChatWidgetV2.__ModeClassic){lz_overlay_chat.SetVisible(false)}}function lz_chat_overlay_set_mode(b,a){OverlayChatWidgetV2.SetMode(b,a)}function lz_chat_is_visible(){return lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="wm"}function lz_chat_set_zoom(a,b){if(!lz_fixed_mode_possible()){return}if(b){lz_chat_restore_meta();lz_overlay_chat.SetVisible(false);lz_overlay_chat.SetFixedMode(true);lz_default_overflow=document.body.style.overflow;document.body.style.position="fixed";document.body.style.overflow="hidden";document.body.style.right=0;document.body.style.left=0;lz_chat_set_meta();setTimeout(function(){lz_chat_set_slide(a);lz_chat_update_css();lz_chat_set_element_width();lz_chat_scoll_down()},500)}else{lz_overlay_chat.SetVisible(false);lz_chat_restore_meta();document.body.style.position="";document.body.style.overflow=lz_default_overflow;lz_overlay_chat.SetFixedMode(false);lz_chat_set_slide(false)}}function lz_chat_set_slide(a){if(a){lz_overlay_chat.m_FrameElement.style.transform="translateY(+100%)";lz_overlay_chat.m_FrameElement.style["-webkit-transform"]="translateY(+100%)";lz_overlay_chat.SetVisible(true);lz_overlay_chat.m_FrameElement.className="lz_anim_slide_in"}else{lz_overlay_chat.m_FrameElement.style.transform="";lz_overlay_chat.m_FrameElement.style["-webkit-transform"]="";lz_overlay_chat.m_FrameElement.className=""}}function lz_overlay_chat_impose_max_length(b,a){if(b.value.length>a){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_add_wm_elems(b,g,d,f,k){var t=Math.floor(10*OverlayChatWidgetV2.__Ratio);if(lz_ovlel.length==1){return}if(lz_overlay_wm==null&&!OverlayChatWidgetV2.__ModeCombi){var n=(lz_ovlel_fsm)?"auto":OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border;var m=(lz_ovlel_fsm)?"50":(OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)+OverlayChatWidgetV2.__Space;var a=(lz_ovlel_fsm)?"00":"22";lz_overlay_wm=new lz_livebox_v2("lz_overlay_wm",b,n,m+"px",g,0,f,k,a,(lz_ovlel_fsm)?document.getElementById("lz_chat_fs_body"):document.body);lz_overlay_wm.m_MaxHeight=(lz_ovlel_fsm)?m+"px":((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)+OverlayChatWidgetV2.__Space)*lz_ovlel.length;lz_overlay_wm.SetMobile(lz_is_mobile);lz_chat_overlay_pointer=document.getElementById("lz_chat_overlay_pointer_"+((OverlayChatWidgetV2.__ModeSingle)?"v":"h"));if(lz_ovlel_fsm){lz_overlay_wm.m_FrameElement.style.whiteSpace="nowrap";lz_overlay_wm.m_FrameElement.style.overflow="hidden";lz_overlay_wm.m_FrameElement.style.background="#f7f8f9";lz_overlay_wm.m_FrameElement.style.position="absolute"}var o,l,e,q,s,c=document.getElementById("livezilla_wm"),p=document.getElementById("livezilla_wm_d"),r=document.getElementById("livezilla_wm_c");c.style.height=c.style.width=OverlayChatWidgetV2.__Size+"px";var j=lz_overlay_zindex+100;if(lz_is_mobile&&!lz_ovlel_fsm){j-=1000}for(var h=lz_ovlel.length-1;h>=0;h--){o=(lz_ovlel_fsm)?((lz_ovlel.length-1)-h):h;if(lz_ovlel[o]==null){continue}l=(((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)*o)+(OverlayChatWidgetV2.__Space*o));q=null;if(lz_ovlel[o].type!="wm"){e=c.cloneNode(true);e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_ovlel[o].icon));e.id+="_"+lz_ovlel[o].type;e.style.zIndex=j-o;lz_overlay_wm.m_FrameElement.appendChild(e);q=p.cloneNode(true);q.id+="_"+lz_ovlel[o].type;if(lz_ovlel[o].type!="phone"){q.innerHTML=lz_text_wm[lz_ovlel[o].type]}else{q.innerHTML="";if(lz_ovlel[o].inbound!=false){q.innerHTML+=lz_text_wm.phone_in}if(lz_ovlel[o].inbound!=false&&lz_ovlel[o].outbound!=false){q.innerHTML+=" / "}if(lz_ovlel[o].outbound!=false){q.innerHTML+=lz_text_wm.phone_out}}q.style.marginTop="-"+((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)-t)+"px";if(!lz_ovlel_fsm){q.style.right=(OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)+t+"px"}q.style.borderRadius=lz_border_radius+"px";if(lz_is_mobile&&!lz_ovlel_fsm){q.style.transform="translateY("+l+"px)"}if(typeof lz_ovlel[o].color!="undefined"){q.style.backgroundColor=lz_ovlel[o].color}q.style.zIndex=e.style.zIndex;e.setAttribute("data-did",q.id);e.setAttribute("data-type",lz_ovlel[o].type);if(!lz_ovlel_fsm){e.appendChild(q)}else{lz_overlay_wm.m_FrameElement.appendChild(q)}if(typeof lz_ovlel[o].counter!="undefined"){s=r.cloneNode(true);s.id+="_"+lz_ovlel[o].type;s.style.zIndex=e.style.zIndex+2;e.appendChild(s);if(lz_ovlel_fsm){s.style.top="-45px";s.style.left="55px"}}if(!lz_ovlel_fsm){e.style.top=(OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)*-1+"px"}else{e.style.top=parseInt((m-(OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border))/2)+"px";if(typeof lz_ovlel[o].href=="undefined"){e.style.left=((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border+t)*(o))-(OverlayChatWidgetV2.__Size/1.3)+"px"}else{e.style.right="-1000px"}}if(!lz_ovlel_fsm&&typeof lz_ovlel[o].margin!="undefined"){e.style.marginBottom=lz_ovlel[o].margin[2]+OverlayChatWidgetV2.__Space+"px";lz_overlay_wm.m_MaxHeight+=lz_ovlel[o].margin[2]}else{e.style.marginBottom=OverlayChatWidgetV2.__Space+"px"}if(lz_ovlel[o].type=="phone"){lz_mode_phone_outbound=lz_ovlel[o].outbound!=false;lz_mode_phone_inbound=lz_ovlel[o].inbound!=false;if(lz_mode_phone_inbound){document.getElementById("lz_chat_data_phone_header_number").innerHTML=lz_global_base64_url_decode(lz_ovlel[o].inbound.number);document.getElementById("lz_chat_data_phone_header_text").innerHTML=lz_global_base64_url_decode(lz_ovlel[o].inbound.text)}}if(!lz_ovlel_fsm&&typeof lz_ovlel[o].color!="undefined"){e.style.backgroundColor=lz_ovlel[o].color}else{if(!lz_ovlel_fsm){e.style.borderColor=lz_color_primary_dark}}}else{e=c;e.style.zIndex=j+100;if(!lz_ovlel_fsm){e.style.borderColor=lz_color_primary_dark}}e.setAttribute("data-tid",lz_ovlel[o].type);if(!lz_ovlel_fsm){e.style.transform="translateY("+l+"px)";e.style.borderRadius=Math.min(50,lz_border_radius*t)+"%";e.style.right=0}else{e.style.boxShadow="none";e.style.width="100px";e.style.textAlign="center"}e.style.position=(lz_ovlel_fsm)?"static":"relative";e.style.display=(lz_ovlel_fsm)?"inline-block":"block"}if(lz_ovlel.length){c.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_ovlel[0].icon))}if(!lz_ovlel_fsm){lz_chat_overlay_pointer.style.right=((!OverlayChatWidgetV2.__ModeSingle)?(parseInt(lz_overlay_chat.m_FrameElement.style.marginRight.replace("px",""))-12):(f+(((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)/2)-12)))+"px"}lz_chat_overlay_pointer.style.zIndex=j+1200;lz_overlay_wm.m_FrameElement.style.zIndex=lz_overlay_zindex}}function lz_chat_get_wm_element(a){for(var b in lz_ovlel){if(lz_ovlel[b].type==a){return lz_ovlel[b]}}return null}OverlayChatWidgetV2.SetHost=function(d,e,i,b,f,h,g,c,a){if(lz_overlay_chat!=null){lz_chat_id=lz_global_base64_decode(i);if(lz_chat_id.length&&lz_chat_id>0){OverlayChatWidgetV2.__LastChatId=lz_chat_id}OverlayChatWidgetV2.__ModeBot=e;if(g!=null&&lz_session.TransInto==""){lz_session.TransInto=lz_global_base64_decode(g);lz_session.Save()}if(d!=null){OverlayChatWidgetV2.__CurrentOperator=new lz_chat_operator();OverlayChatWidgetV2.__CurrentOperator.Id=lz_global_base64_decode(d);OverlayChatWidgetV2.__CurrentOperator.Group=lz_global_base64_decode(b);OverlayChatWidgetV2.__CurrentOperator.Fullname=lz_global_base64_decode(a)}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&&l==114){b=true}if(h&&OverlayChatWidgetV2.__ModeChangeDetails&&l==114){b=true}if(h&&LiveZillaData.InputFieldValues[g].Type=="File"){b=true}if(lz_session.OVLWMSElem=="phone"&&l==116){b=false}if(l==115){b=true}document.getElementById("lz_form_"+l).className=(l==116&&lz_session.OVLWMSElem=="phone")?"lz_input lz_input_com":document.getElementById("lz_form_"+l).className;document.getElementById("lz_form_"+l).style.display=(b)?"none":"";document.getElementById("lz_form_"+l).style.display=(l==116&&lz_session.OVLWMSElem=="phone")?"":document.getElementById("lz_form_"+l).style.display;if(document.getElementById("lz_form_info_"+l).innerHTML.length>0&&!OverlayChatWidgetV2.__ModeChangeDetails){if(document.getElementById("lz_form_mandatory_"+l).className.indexOf("lz_required")==-1){document.getElementById("lz_form_mandatory_"+l).className="lz_input_icon lz_info"}document.getElementById("lz_form_mandatory_"+l).style.cursor="pointer";document.getElementById("lz_form_mandatory_"+l).style.display="";document.getElementById("lz_form_mandatory_"+l).onmouseover=new Function("lz_chat_show_info_box('"+l.toString()+"',true);");document.getElementById("lz_form_mandatory_"+l).onmouseout=new Function("lz_chat_show_info_box('"+l.toString()+"',false);");document.getElementById("lz_form_mandatory_"+l).onclick=new Function("lz_chat_show_info_box('"+l.toString()+"',true);");document.getElementById("lz_form_info_"+l).onclick=new Function("lz_chat_show_info_box('"+l.toString()+"',false);")}else{if(OverlayChatWidgetV2.__ModeChangeDetails){document.getElementById("lz_form_mandatory_"+l).style.display="none"}}document.getElementsByName("form_"+l)[0].disabled=OverlayChatWidgetV2.__ModeChangeDetails&&LiveZillaData.InputFieldValues[g].Validation}else{document.getElementById("lz_form_"+l).style.display="none"}if(LiveZillaData.InputFieldValues[g].Active){if(lz_array_indexOf(d,l)!=-1||(LiveZillaData.InputFieldValues[g].Validation&&lz_array_indexOf(f,l)==-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_"+l)[0].value==""){document.getElementsByName("form_"+l)[0].value=document.getElementById("lz_form_ph_"+l).value;document.getElementsByName("form_"+l)[0].style.color="#BBB"}document.getElementsByName("form_"+l)[0].onfocus=new Function("if (this.value == '"+document.getElementById("lz_form_ph_"+l).value+"') {this.value = ''; this.style.color='#333'}");document.getElementsByName("form_"+l)[0].onblur=new Function("if (this.value == '') {this.value = '"+document.getElementById("lz_form_ph_"+l).value+"'; this.style.color='#BBB'}")}if(LiveZillaData.InputFieldValues[g].Type=="File"){document.getElementById("files_"+l).style.display="none";document.getElementById("files_"+l).innerHTML="";if(LiveZillaData.InputFieldFiles[g].length){document.getElementById("files_"+l).style.display="block";for(var k in LiveZillaData.InputFieldFiles[g]){document.getElementById("files_"+l).innerHTML+='
'+lz_global_htmlentities(lz_global_base64_decode(LiveZillaData.InputFieldFiles[g][k][1]).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.TOSTicket}if(c.length){OverlayChatWidgetV2.AcceptTOS=true;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=OverlayChatWidgetV2.AcceptTOS&&!OverlayChatWidgetV2.__ModeChangeDetails?"table":"none";var a=((lz_session.OVLWMSElem=="chat"&&(OverlayChatWidgetV2.__ModeChangeDetails||lz_hide_group_chat))||((lz_session.OVLWMSElem=="ticket"||lz_session.OVLWMSElem=="phone")&&lz_hide_group_ticket));document.getElementById("lz_group_selection_box").style.display=a?"none":""}else{if(lz_first_call){lz_chat_loading(true)}}if(!lz_mode_chat_login&&lz_force_group_select){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("lz_chat_set_focus(11);",200)}};OverlayChatWidgetV2.UpdateWMUI=function(){if(lz_overlay_wm==null){return}var f,e,d,g=document.getElementById("livezilla_wm");lz_overlay_wm.m_FrameElement.style.height=((lz_session.OVLWMState=="0")?(OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border):lz_overlay_wm.m_MaxHeight)+"px";for(var c=lz_ovlel.length-1;c>=0;c--){if(lz_ovlel[c].type!="wm"){e=document.getElementById("livezilla_wm_"+lz_ovlel[c].type);e.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.__Size+OverlayChatWidgetV2.__Border)*(c))+13)+(c*10))-(OverlayChatWidgetV2.__Size/1.3)+"px";e.style.background=lz_color_primary;e.getElementsByTagName("svg")[0].style.fill="#fff"}else{if(!OverlayChatWidgetV2.__ModeSingle){var b=(((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)*c)+(OverlayChatWidgetV2.__Space*c))+OverlayChatWidgetV2.__Space+(13*OverlayChatWidgetV2.__Ratio);lz_chat_overlay_pointer.style.bottom=b+lz_overlay_wm.m_Margins[2]+"px"}}}else{if(lz_overlay_chat.m_FullScreenMode){e.style.background="#f7f8f9";e.style.borderRight="1px solid #ddd";e.getElementsByTagName("svg")[0].style.fill="#999"}}f="livezilla_wm_d_"+lz_ovlel[c].type;d=document.getElementById(f);if(!lz_is_mobile&&!lz_overlay_chat.m_FullScreenMode){e.onmouseover=function(){if(this.getAttribute("data-tid")==lz_session.OVLWMSElem){lz_chat_overlay_pointer.style.visibility="hidden"}document.getElementById(this.getAttribute("data-did")).style.display="block";var h=this;if(lz_is_mobile){setTimeout(function(){document.getElementById(h.getAttribute("data-did")).style.display="none"},2000)}};e.onmouseout=function(){lz_chat_overlay_pointer.style.visibility="visible";document.getElementById(this.getAttribute("data-did")).style.display="none"}}else{if(!lz_overlay_chat.m_FullScreenMode){d.style.display=(lz_is_mobile&&lz_session.OVLWMState=="0")?"none":"block";lz_add_class(d,"lz_anim_slide_in")}}lz_add_class(d,"lz_overlay_wm_sh_act")}else{e=g;e.style.top=(lz_session.OVLWMState!="0")?lz_overlay_wm.m_MaxHeight-((OverlayChatWidgetV2.__Size+OverlayChatWidgetV2.__Border)+OverlayChatWidgetV2.__Space)+"px":0;e.style.visibility=(!lz_overlay_chat.m_FullScreenMode)?"visible":"hidden";e.style.display=(!lz_overlay_chat.m_FullScreenMode)?"block":"none";if(OverlayChatWidgetV2.__ModeSingle){if(lz_session.OVLWMSElem=="chat"&&lz_chat_get_wm_element("chat")!=null){e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_chat_get_wm_element("chat").icon))}else{if(lz_session.OVLWMSElem=="ticket"&&lz_chat_get_wm_element("ticket")!=null){e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_chat_get_wm_element("ticket").icon))}else{if(lz_ovlel.length>1){e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_ovlel[1].icon))}else{if(lz_ovlel.length==1){e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path(lz_ovlel[0].icon))}}}}}else{if(lz_chat_get_wm_element("chat")==null){e.getElementsByTagName("path")[0].setAttribute("d",lz_get_icon_path("question"));e.getElementsByTagName("svg")[0].setAttribute("viewBox",lz_get_icon_v("question"));e.getElementsByTagName("path")[0].setAttribute("transform",lz_get_icon_t("question"))}}}lz_add_class(e,"lz_overlay_wm_button");if(typeof lz_ovlel[c].href!="undefined"){e.onclick=function(h){return function(){OverlayChatWidgetV2.OpenWindow(h,true)}}(lz_global_base64_decode(lz_ovlel[c].href))}else{if(lz_ovlel[c].type=="knowledgebase"&&lz_kb_external){e.onclick=function(){OverlayChatWidgetV2.Pop("knowledgebase")}}else{if(lz_ovlel[c].type=="knowledgebase"&&lz_kb_embed){e.onclick=function(){window.location.href=lz_kb_embed_url}}else{if(lz_ovlel[c].type=="wm"&&lz_chats_external){e.onclick=function(){OverlayChatWidgetV2.Pop("chat")}}else{e.onclick=function(){OverlayChatWidgetV2.SetMode(this.getAttribute("data-tid"),true)}}}}}if(lz_ovlel[c].type=="chat"){var a=e.getElementsByTagName("svg")[0];if(!OverlayChatWidgetV2.IsChatAvailable()){lz_add_class(a,"lz_chat_unavailable")}else{lz_remove_class(a,"lz_chat_unavailable")}}if(lz_ovlel[c].type=="ticket"){if(!lz_ticket_when_online&&OverlayChatWidgetV2.IsChatAvailable()){lz_add_class(e,"lz_chat_disabled")}else{lz_remove_class(e,"lz_chat_disabled")}}lz_add_class(e,"lz_overlay_wm_sh_act");lz_add_class(e,"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"))}}if(lz_session.OVLWMSElem=="chat"&&lz_session.OVLWMState=="1"){lz_chat_update_waiting_posts(0)}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";OverlayChatWidgetV2.UpdateEyeCatcherUI()};OverlayChatWidgetV2.DisableBotButtons=function(){try{var d=document.getElementById("lz_chat_content_inlay").childNodes;for(var c=0;c=1&&lz_session.OVLWMState=="0")}};OverlayChatWidgetV2.UpdateChatFunctions=function(){if(OverlayChatWidgetV2.__CurrentGroup==null){return}var b=OverlayChatWidgetV2.__CurrentGroup.ChatFunctions;if(b!=null){var a=lz_chat_id.length&&lz_chat_status==2&&!OverlayChatWidgetV2.__PublicGroupChat.length;document.getElementById("lz_cf_so").style.display=(b!=null&&b[1]=="0")?"none":"block";document.getElementById("lz_cf_pr").style.display=!(b!=null&&b[2]=="0")&&a?"block":"none";if(document.getElementById("lz_chat_feedback_init").style.display!="block"){document.getElementById("lz_chat_feedback_init").style.display=!(b!=null&&b[3]=="0")&&a?"block":"none"}document.getElementById("lz_cf_fu").style.display=!(b!=null&&b[5]=="0")&&a?"block":"none"}};OverlayChatWidgetV2.UpdateEyeCatcherContent=function(){if(lz_ovlec!=null&&!lz_d(lz_ovlec.ec_p)&&document.getElementById("lz_overlay_eyecatcher_avatar")!=null){document.getElementById("lz_overlay_eyecatcher_avatar").style.display="none"}if(document.getElementById("lz_ec_image")!=null){if(OverlayChatWidgetV2.IsChatAvailable()&&lz_ec_image==""){lz_fade_out(document.getElementById("lz_eye_catcher"),25)}else{if(!OverlayChatWidgetV2.IsChatAvailable()&&lz_ec_o_image==""){lz_fade_out(document.getElementById("lz_eye_catcher"),25)}else{document.getElementById("lz_ec_image").src=lz_global_base64_url_decode(((OverlayChatWidgetV2.IsChatAvailable())?lz_ec_image:lz_ec_o_image))}}}else{if(document.getElementById("lz_ec_header_text")!=null){if(lz_d(lz_ovlec.ec_ht_on)){lz_ec_header=lz_ovlec.ec_ht_on;lz_ec_o_header=lz_ovlec.ec_ht_off}if(lz_d(lz_ovlec.ec_st_on)){lz_ec_sub_header=lz_ovlec.ec_st_on;lz_ec_o_sub_header=lz_ovlec.ec_st_off;if(typeof lz_ec_sub_header_p!="undefined"){delete lz_ec_sub_header_p}}document.getElementById("lz_ec_header_text").innerHTML=((OverlayChatWidgetV2.IsChatAvailable()&&lz_chat_get_wm_element("chat")!=null)?lz_ec_header:lz_ec_o_header);document.getElementById("lz_ec_sub_header_text").innerHTML=((OverlayChatWidgetV2.IsChatAvailable()&&lz_chat_get_wm_element("chat")!=null)?((lz_d(lz_ovlec.ec_p)&&typeof lz_ec_sub_header_p!="undefined")?lz_global_base64_decode(lz_ec_sub_header_p):lz_ec_sub_header):lz_ec_o_sub_header)}}};OverlayChatWidgetV2.ForwardTicket=function(a){if(OverlayChatWidgetV2.OfflineMessageMode==1){if(lz_overlay_chat.m_FullScreenMode||a){window.location.href=OverlayChatWidgetV2.OfflineMessageHTTP;lz_chat_loading(true)}return true}return false};OverlayChatWidgetV2.GetAutoMode=function(){var a="NA";if(!lz_hide_widget_by_conf){if(lz_chat_get_wm_element("phone")!=null){a="phone"}if(lz_chat_get_wm_element("knowledgebase")!=null){a="knowledgebase"}if(OverlayChatWidgetV2.OfflineMessageMode!=1){if(lz_chat_get_wm_element("ticket")!=null){a="ticket"}}if(lz_chat_get_wm_element("chat")!=null&&(OverlayChatWidgetV2.IsChatAvailable()||OverlayChatWidgetV2.__ModeBot||a=="NA")&&!lz_chat_declined&&!OverlayChatWidgetV2.__TicketRequired){a="chat"}}return a};OverlayChatWidgetV2.IsChatAvailable=function(){return lz_chat_get_wm_element("chat")!=null&&((OverlayChatWidgetV2.__CurrentGroup!=null&&OverlayChatWidgetV2.__CurrentGroup.Amount>0)||lz_chat_status>0)&&!lz_chat_declined};OverlayChatWidgetV2.ValidateMode=function(){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(!b){lz_tracking_add_eye_catcher_v2=function(){}}}if(a=="NA"){lz_overlay_chat.SetVisible(false);if(lz_overlay_chat.m_FullScreenMode){OverlayChatWidgetV2.ForwardTicket(true)}}if(lz_session.OVLWMSElem==""||OverlayChatWidgetV2.__ModeSingle){if(lz_session.OVLWMSElem!=a){if(lz_session.OVLWMSElem=="phone"){return}if(lz_session.OVLWMSElem=="knowledgebase"){return}if(lz_session.OVLWMSElem=="feedback"){return}if(lz_session.OVLWMSElem=="ticket"){if(lz_chat_get_input_value(114)!=""){return}}if(!lz_is_mobile||lz_overlay_chat.m_FixedMode||lz_overlay_chat.m_FullScreenMode){OverlayChatWidgetV2.SetMode(a,false)}}}};OverlayChatWidgetV2.SetMode=function(b,a){var c;if(a&&OverlayChatWidgetV2.__ModeTicketReceived){lz_chat_data_form_result()}if(a&&OverlayChatWidgetV2.__ModeTOS){OverlayChatWidgetV2.ToggleTOS(false);return}if(a&&OverlayChatWidgetV2.__ModeFeedback){OverlayChatWidgetV2.ToggleFeedback(false,false);return}if(OverlayChatWidgetV2.__ModeChangeDetails&&a&&b!="chat"){OverlayChatWidgetV2.__ModeChangeDetails=false}if(b=="chat"&&OverlayChatWidgetV2.__TicketRequired&&a){OverlayChatWidgetV2.__TicketRequired=false}if(b=="ticket"&&OverlayChatWidgetV2.ForwardTicket(a)){lz_session.OVLWMSElem="wm";lz_session.OVLWMState="0"}else{lz_chat_switch_options_table(true);if(b==null){b="";if(a&&document.getElementById("lz_chat_invite_id")!=null&&lz_chat_status==0){lz_chat_decline_request(lz_request_active=document.getElementById("lz_chat_invite_id").value,false,false);return}}if(OverlayChatWidgetV2.__ModeSingle){if(b!="wm"&&b!=""){lz_session.OVLWMSElem=b}else{if(b=="wm"&&!OverlayChatWidgetV2.IsChatAvailable()&&lz_session.OVLWMSElem=="NA"){OverlayChatWidgetV2.ForwardTicket(a)}else{if(b=="wm"&&OverlayChatWidgetV2.__ModeSingle&&lz_session.OVLWMSElem==""){lz_session.OVLWMSElem=(OverlayChatWidgetV2.IsChatAvailable())?"chat":"ticket"}}}if(a){lz_session.OVLWMState=(lz_session.OVLWMState=="0")?"1":"0"}c=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA")}else{if(b==""){lz_session.OVLWMState="0"}else{if(b=="wm"){lz_session.OVLWMState=(lz_session.OVLWMState=="0")?"1":"0"}}if(b!="wm"){lz_session.OVLWMSElem=b}if(lz_overlay_chat.m_FullScreenMode){lz_session.OVLWMState="1"}if(lz_is_mobile){c=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA"&&b!="wm")}else{c=(lz_session.OVLWMState=="1"&&lz_session.OVLWMSElem!=""&&lz_session.OVLWMSElem!="NA")}}if(a&&!OverlayChatWidgetV2.__ModeSingle){if(b==lz_session.OVLWMSElem&&!lz_overlay_chat.m_FullScreenMode){if(lz_chat_overlay_pointer!=null&&lz_session.OVLWMState!="0"){lz_chat_overlay_pointer.style.visibility="hidden"}}if(b=="knowledgebase"&&document.getElementById("lz_chat_kb_match_info").style.display!="none"){lz_chat_kb_deactivate(false,false)}}}lz_session.Save();OverlayChatWidgetV2.UpdateChatUI(c);OverlayChatWidgetV2.UpdateButtonUI();OverlayChatWidgetV2.UpdateWMUI();OverlayChatWidgetV2.UpdateUI();if(lz_session.OVLWMSElem=="chat"){if(document.getElementById("lz_chat_content_inlay").innerHTML==""&&OverlayChatWidgetV2.IsChatAvailable()){lz_tracking_poll_server(1328)}lz_chat_scoll_down()}};OverlayChatWidgetV2.APIButtonClick=function(a){document.getElementById("lz_chat_text").value=lz_global_base64_decode(a);lz_chat_message(null,null)};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.__CurrentGroup==null){return}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;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_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")?"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("")}}OverlayChatWidgetV2.__FormVisible=true;var b=(OverlayChatWidgetV2.__ChatStarted||OverlayChatWidgetV2.__InitChat||lz_chat_status>0);if(b){OverlayChatWidgetV2.__FormConfirmRequired=false}if(!OverlayChatWidgetV2.__ModeChangeDetails){if(lz_session.OVLWMSElem=="chat"&&document.getElementById("lz_chat_invite_id")!=null){OverlayChatWidgetV2.__FormVisible=false}else{if(lz_session.OVLWMSElem=="chat"&&(OverlayChatWidgetV2.__ModeBot||OverlayChatWidgetV2.__ChatStarted||OverlayChatWidgetV2.__InitChat||OverlayChatWidgetV2.__Connecting)){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=="chat"&&!OverlayChatWidgetV2.__FormConfirmRequired){if(lz_chat_status>0||b){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&&!b&&lz_session.OVLWMSElem=="chat"&&LiveZillaData.InputFieldIndices!=null&&lz_session.OVLWMState=="1"){OverlayChatWidgetV2.__FormConfirmRequired=true}try{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=""}else{if(lz_chat_status==0&&!OverlayChatWidgetV2.__ChatStarted&&!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){}document.getElementById("lz_chat_data_form").style.display=OverlayChatWidgetV2.__FormVisible?"block":"none";document.getElementById("lz_chat_ticket_received").style.display=(OverlayChatWidgetV2.__ModeTicketReceived&&!lz_flood)?"":"none";document.getElementById("lz_chat_text").disabled=(document.getElementById("lz_chat_data_form").style.display!="none")};OverlayChatWidgetV2.UpdateButtonUI=function(){if(lz_session.OVLWMSElem=="chat"&&!OverlayChatWidgetV2.IsChatAvailable()){lz_add_class(document.getElementById("lz_chat_overlay_data_form_ok_button"),"lz_chat_disabled")}else{lz_remove_class(document.getElementById("lz_chat_overlay_data_form_ok_button"),"lz_chat_disabled")}};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(OverlayChatWidgetV2.EyeCatcherWidth,40);OverlayChatWidgetV2.UpdateEyeCatcherUI()};OverlayChatWidgetV2.Maximize=function(){if(!lz_chats_external){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.UpdateEyeCatcherUI();OverlayChatWidgetV2.UpdateUI();lz_chat_update_waiting_posts(0);lz_chat_set_element_width();lz_chat_scoll_down()}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"};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("chat",false);if(a){lz_chat_play_sound("wind")}}else{OverlayChatWidgetV2.SetMode(OverlayChatWidgetV2.GetAutoMode(),true)}}}};OverlayChatWidgetV2.ExitBotChat=function(a,b,c){if(OverlayChatWidgetV2.__ModeBot){OverlayChatWidgetV2.__ModeBot=false;OverlayChatWidgetV2.__NoBotChat=a;if(b&&a){OverlayChatWidgetV2.ExitChat()}}};OverlayChatWidgetV2.ExitChat=function(){OverlayChatWidgetV2.__InitChat=false;OverlayChatWidgetV2.__ChatStarted=false;lz_leave_chat=true;lz_tracking_poll_server(1120)};OverlayChatWidgetV2.InitChat=function(b,a){OverlayChatWidgetV2.__InitChat=true;OverlayChatWidgetV2.__ChatStarted=true;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)}lz_tracking_poll_server(1311,true)};OverlayChatWidgetV2.LeaveMessage=function(b,a){a=(lz_d(a))?a:null;OverlayChatWidgetV2.__TargetGroupId=a;if(b){OverlayChatWidgetV2.__TicketRequired=true}lz_hide_group_ticket=true;OverlayChatWidgetV2.SetMode("ticket",false)};OverlayChatWidgetV2.SetGroups=function(a,b){LiveZillaData.ForceGroupSelect=lz_force_group_select;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&&!lz_is_mobile){OverlayChatWidgetV2.FeedbackOnMouseMove=true}else{if(lz_chat_status==1){return}if(c){var a="cid="+lz_global_base64_url_encode(OverlayChatWidgetV2.__LastChatId)+"&wt=ovlv2&etc="+lz_global_base64_url_encode(lz_color_primary)+"&el="+LiveZillaData.Language;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"}}};OverlayChatWidgetV2.MouseMove=function(){if(typeof lz_session!="undefined"&&lz_session.OVLWMState=="1"){OverlayChatWidgetV2.__PostsNoticed=true}if(OverlayChatWidgetV2.FeedbackOnMouseMove){OverlayChatWidgetV2.FeedbackOnMouseMove=false;setTimeout(function(){OverlayChatWidgetV2.ToggleFeedback(true,false)},3000)}};OverlayChatWidgetV2.SetStatus=function(h,c,b,f,g,a,e){if(lz_overlay_chat!=null){var d=(lz_session.OVLWMSElem=="chat");lz_hide_widget_by_conf=h;if(a==0&&lz_chat_status!=a){OverlayChatWidgetV2.__ChatStarted=false}lz_chat_status=a;lz_chat_declined=false;lz_chat_human_available=f;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.UpdateEyeCatcherContent()}};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);b+="&el="+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(){lz_chat_show()};OverlayChatWidgetV2.Hide=function(){lz_chat_hide()};