var onWebChat_=onWebChat_||function(){function e(){clearTimeout(v),1==ae||27254==ae&&(v=setTimeout(t,3e3,"Бихте ли ни дали телефон за връзка, за да уточним детайли?"))}function t(e){if("undefined"!=typeof sessionStorage&&'1'!=l('hasTriggeredNoReply')&&1!=r('hasTriggeredNoReplyC')&&1!=r('inChatC')&&0!=$){at('onWebChat','Trigger (no reply) activated',''),d('hasTriggeredNoReply',1),c('hasTriggeredNoReplyC',1,.166),d('mustSendTriggerNoReplyText',!0),ut.emit('sendchat',"",e),i();var t="";1==Z&&(t=" agent-bubble ");var n="",o='',s="";'agent'!=K&&(t+=" agent-first ",1==V&&(o='')),1==V&&(s=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(n=' style="direction: rtl;text-align:right;" ');var m="";printChat('

'+o+''+it('max_agent',D).replace('{{operator}}',m)+' '+a(e).replace(/({{newline}})/gm,"
")+'

')}}function n(){l('chattext')&&l('chattext').endsWith(it('max_gone',D)+"

")&&(Q=!1,document.getElementById('onwbtxtarea').style.pointerEvents='none',document.getElementById("onwbtxtarea").disabled=!0,document.getElementById('wb-send-image').style.pointerEvents='none',document.getElementById('wb-smile-image').style.pointerEvents='none',document.getElementById("onwbtxtarea").style.opacity="0.42",document.getElementById("wb-send-image").style.opacity="0.42",document.getElementById("wb-smile-image").style.opacity="0.42",Ct('#onwbtxtarea').attr('placeholder',''),disableMenuItem("uploadfileid"))}function o(){Q=!0;try{document.getElementById('onwbtxtarea').style.pointerEvents='auto',document.getElementById("onwbtxtarea").disabled=!1,document.getElementById('wb-send-image').style.pointerEvents='auto',document.getElementById('wb-smile-image').style.pointerEvents='auto'}catch(e){}document.getElementById("onwbtxtarea").style.opacity="1",document.getElementById("wb-send-image").style.opacity="0.73",document.getElementById("wb-smile-image").style.opacity="0.78",Ct('#onwbtxtarea').attr('placeholder',it('max_placeholder',D)),enableMenuItem("uploadfileid")}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(){if(_t){var e=document.getElementById("onwebchataudio");try{e.play()}catch(t){}}}function c(e,t,n){var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var a="expires="+o.toGMTString();document.cookie=e+"="+t+"; "+a+";path=/"}function s(e){c(e,'',-1)}function r(e){for(var t=e+"=",n=document.cookie.split(';'),o=0;o0?-1!=e.indexOf('msie')?parseInt(e.split('msie')[1]):!1:n>0?!0:o>0}function g(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}window.console||(console={log:function(){}});var w,u,b=!1,f=0,_=0,y=!1,v=0,x=1,I={ min_offline: { l1: 'Siamo offline - mandaci un\'email', l2: 'We are offline - Send us an email' }, min_online: { l1: 'Siamo online - chatta con noi!', l2: 'We are online - chat with us!' }, max_title: { l1: 'Chatta con noi!', l2:'Chat with us!'}, max_msg: { l1: 'Siamo online - chatta con noi!', l2:'We are online - chat with us!'}, max_served: { l1: 'Sei servito da MAuro', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Scrivi qui il tuo messaggio ...', l2: 'Type your message here ...' }, max_closed: { l1: 'Mauro ha chiuso la chat', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Mandaci una email!', l2:'Email us!'}, off_msg:{l1: 'Spiacenti, al momento non siamo in linea. Lascia un messaggio e ti ricontattiamo', l2:'Sorry, we are not online at the moment. Leave a message and we will get back to you.'}, off_name: { l1:'Nome', l2: 'Name'}, off_email: { l1: 'Email', l2: 'Email'}, off_phone: { l1: 'phone', l2: 'phone'}, off_text: { l1: 'Messaggio', l2: 'Message'}, prechat_name: { l1:'name', l2: 'name'}, prechat_email: { l1: 'email', l2: 'email'}, prechat_phone: { l1: 'phone', l2: 'phone'}, prechat_text: { l1: 'how can we help you?', l2: 'how can we help you?'}, off_send: { l1:'Invia', l2: 'Send'}, off_thank: { l1: 'Grazie per averci contattato. Risponderemo al più presto possibile.', l2: 'Thank you for contacting us. We will reply to you as soon as possible.'}, prechat_msg: { l1: 'Please give us some info to serve you better.', l2: 'Please give us some info to serve you better.'}, prechat_btn: { l1: 'Start chat!', l2: 'Start chat!'} , max_gone: { l1: 'Gli operatori sono offline', l2: 'Operator has gone offline'} , consent_text: { l1: 'I agree that my personal data, provided via chat, to be processed for using live chat service', l2: 'I agree that my personal data, provided via chat, to be processed for using live chat service'} , menu_send_file: { l1: 'Send file', l2: 'Send file'} , menu_email: { l1: 'Email transcript', l2: 'Email transcript'} , menu_print: { l1: 'Print', l2: 'Print'} , menu_save: { l1: 'Save', l2: 'Save'} , menu_sound: { l1: 'Sound', l2: 'Sound'} , menu_end_chat: { l1: 'End chat', l2: 'End chat'} , end_chat_msg: { l1: 'Are you sure you want to close this chat?', l2: 'Are you sure you want to close this chat?'} , cancel: { l1: 'Cancel', l2: 'Cancel'} },k="",C="",E="",P="",W=function(){},B=function(){},T=function(){},S=function(){},M=function(){},O=function(){},z=function(){},F=function(){},N="",L="",j=0,U="3.226.241.176",D="l2",R="",A="";""!=l("servingOpImage")&&void 0!=l("servingOpImage")&&(A=l("servingOpImage"));var V="0";1==V&&""==A&&(A="0_support_man.png");var $=-1,X=0,q=-1,H=0,Z="1",J="1",Y="0";1==x&&(Z=1),1==Y&&0==J&&(Y=0);var G=0,K="";1==Y&&d('hideImage',0);var Q=!0,ee="";0!=l('hideImage')&&1!=l('hideImage')&&d('hideImage',0);var te,ne="0",oe="1",ae=11740,ie=".onwebchatbox div{padding:initial}.onwebchatbox #offline_form{display:none;position:initial;line-height:inherit}.onwebchatbox #prechat_form{display:none;position:initial}.onwebchatbox a{margin-bottom:0 !important;border-width:0 !important;border-style:none !important;display:inline}.onwebchatbox .onweb_uploadfile{margin-right:10px;margin-bottom:-3px}.onwebchatbox .onweb_uploadimage{background:url('https://www.onwebchat.com/chatimages/loading.gif');background-repeat:no-repeat;background-position:center}#onweb_chatimage_div{position:fixed;bottom:0;right:20px;width:#chat_widthpx;z-index:2147483600}#operatorImageSmall{width:32px !important;position:absolute !important;border-radius:20px !important;left:-39px !important;top:0 !important;box-shadow:0 0 7px 2px #bebebe !important;cursor:initial !important}.operatorImageSmallClass{zoom:1}#operatorImage{position:absolute;top:-1px !important;left:10px !important;z-index:100 !important;width:48px !important;height:48px !important;border-radius:30px;border-style:solid;border-width:1px;border-color:#ababab}#operatorImage__modern{top:8px !important;left:20px !important;width:50px !important;height:50px !important;border-width:0 !important}.onweb_chatimage{position:absolute !important;bottom:30px !important;left:78px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:114px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important;-webkit-filter:brightness(100%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onweb_chatimage_mobile{position:absolute !important;bottom:13px !important;left:205px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:60px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}img#onweb_chatimage:hover{opacity:1;-webkit-filter:brightness(112%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onwebchatbox .onweb_chatimage:-moz-loading{visibility:hidden}.onwebchatbox .onweb_chatimage_x{position:absolute;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer;border:0;opacity:.5}#agenttypingimage{position:relative !important;float:left !important;padding-left:18px !important;height:initial !important;clear:both !important}.onwebchatbox .wblogoimg{margin-right:10px;margin-top:7px}.onwebchatbox .wblogoimgdiv{text-align:right;width:100%}.onwebchatbox img{vertical-align:baseline;border:0;cursor:pointer;width:initial !important;margin:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwcimg{vertical-align:baseline;border:0;cursor:pointer;margin:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox{all:initial;*{all:unset}color:#555;box-shadow:0 0 5px 0 #777 !important;line-height:16px !important;display:none;text-align:left;position:fixed !important;bottom:0 !important;right:20px;width:#chat_widthpx !important;height:#onwebchatbox_header1_heightpx;font-family:Arial,Helvetica,sans-serif !important;background-color:#fcfcfc;font-size:12px !important;border-top-left-radius:6px !important;border-top-right-radius:6px !important;z-index:2147483610 !important;box-sizing:content-box !important;color:#545454 !important;transition:initial !important}#onwbchat_window{background-image:url(https://www.onwebchat.com/chatimages/backgrounds/back4.png)}#onwbchat_window__modern{border-radius:11px !important;border-top-left-radius:13px !important;border-top-right-radius:13px !important;box-shadow:rgba(0,0,0,0.43) 0 0 1.2em !important}.onwebchatbox .webchat_header{display:block !important;white-space:nowrap !important;background-color:#567ea6 !important;height:#onwebchatbox_header_height_+_4px !important;min-height:36px !important;line-height:#onwebchatbox_header1_heightpx !important;border-top-left-radius:5px !important;border-top-right-radius:5px !important;cursor:pointer;box-sizing:content-box !important;margin:0 !important;padding:0 !important;border:0 !important;outline:0 !important;float:left !important;padding-left:12px !important;padding-right:28px !important;vertical-align:baseline !important;font-size:13px !important;font-weight:bold !important;width:#chatheader_widthpx !important;position:relative}.onwebchatbox .webchat_header__modern{border-top-left-radius:11px !important;border-top-right-radius:11px !important;background-image:url(https://www.onwebchat.com/chatimages/backgrounds/trans-back4.png)}.onwebchatbox .webchat_header:hover{opacity:1}.onwebchatbox .webchat_header a{float:right;text-decoration:none;color:#fff;display:block;margin-right:0;padding-left:0;padding-right:0;line-height:13px}}.onwebchatbox .webchat_header a:hover{color:#000}.onwebchatbox .chat_area{float:left;clear:left;width:#chat_widthpx;height:#chat_area_heightpx;margin-top:0;margin-bottom:0;padding:16px 0 0 0;overflow:auto;color:#a4a4a4;box-shadow:inset 0 17px 17px -17px rgba(0,0,0,0.4);box-sizing:content-box;direction:ltr !important}.onwebchatbox .chat_area__modern{box-shadow:inset 0 11px 17px -17px rgba(0,0,0,0.4) !important}.onwebchatbox #chat_area_id{box-sizing:initial !important}#chat_area_id::-webkit-scrollbar{width:8px;height:8px;border:3px solid #eee}#chat_area_id::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment{display:block;height:10px;background:#eee}#chat_area_id::-webkit-scrollbar-track{background:#eee;-webkit-border-radius:10px;border-radius:10px;-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.2)}#chat_area_id::-webkit-scrollbar-thumb{height:50px;width:50px;background:#b2b2b2;-webkit-border-radius:8px;border-radius:8px;-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.1)}#chat_area_id::-webkit-scrollbar-thumb:hover{background:#a2a2a2}#onwbtxtarea::-webkit-scrollbar{width:0}.onwebchatbox .chat_area .me a{color:#visitor_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_area .agent a{color:#agent_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_info{width:100%;float:left;clear:left;height:10px;background-color:#fcfcfc;border-top:1px solid #ddd;box-sizing:border-box}.onwebchatbox .chat_info__modern{border-top:1px solid ##e2e2e2 !important;width:90% !important;float:none !important;margin:auto !important}.onwebchatbox .chat_message{position:initial;width:100%;height:55px;float:left;clear:left;padding-top:0;background-color:#fcfcfc;box-sizing:content-box}#onwc_chat_message_div{height:80px !important;position:absolute;bottom:0}#onwc_chat_message_div__modern{height:68px !important;border-bottom-left-radius:11px !important;border-bottom-right-radius:11px !important}.onwebchatbox #onwbtxtarea{float:none !important;padding:4px 25px 0 4px !important;font-weight:400 !important;text-align:initial !important;font-style:initial !important;box-sizing:initial !important;white-space:initial !important;position:absolute !important;bottom:18px !important;left:9px !important}.onwebchatbox #onwbtxtarea__modern{bottom:25px !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{color:#717171 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;line-height:inherit !important;font-family:inherit !important;padding:0 2px 0 2pxa}.onwebchatbox__modern input::-webkit-input-placeholder,.onwebchatbox__modern textarea::-webkit-input-placeholder{font-size:14px !important}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{color:#515151 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox__modern input::-moz-placeholder,.onwebchatbox__modern textarea::-moz-placeholder{font-size:14px !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{color:#717171 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox__modern input:-ms-input-placeholder,.onwebchatbox__modern textarea:-ms-input-placeholder{font-size:14px !important}.onwebchatbox .chat_message .onwebtextarea{border:1px solid #cfcfcf !important;width:#textarea_widthpx !important;height:48px !important;line-height:normal !important;min-height:initial !important;min-width:initial !important;max-height:initial !important;max-width:initial !important;font-size:13px !important;font-family:Arial,Helvetica,sans-serif !important;text-transform:initial !important;letter-spacing:initial !important;color:#545454 !important;display:block;margin-left:auto !important;margin-right:auto !important;margin-bottom:initial !important;padding:2px 2px 2px 2px !important;background-color:#fefefe !important;background-image:none !important;resize:none;outline:none !important;border-radius:5px !important;box-sizing:content-box;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important;transition:box-shadow .40s,border-color .40s ease-in-out}.onwebchatbox .chat_message .onwebtextarea__modern{border:none !important;box-shadow:none !important;font-size:14px !important;height:27px !important;background-color:transparent !important}.onwebchatbox .chat_message textarea:hover{border:1px solid #bababa !important}.onwebchatbox .chat_message__modern textarea:hover{border:none !important}.onwebchatbox .chat_message textarea:focus{border:1px solid #bababa !important}.onwebchatbox .chat_message__modern textarea:focus{border:none !important}.onwebchatbox a.minimize_onwebchatbox{display:none;color:#ddd;margin-top:6px;background-color:#85a6d7;width:18px;height:20px;margin-right:10px}.onwebchatbox #onweb-offline-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;padding-top:1px !important}.onwebchatbox #onweb-online-icon{margin:initial !important;border:none !important;box-sizing:content-box !important}.onwebchatbox #onweb_chaticon{display:inline !important;position:absolute !important;right:0 !important;float:right !important;margin-right:10px !important;margin-top:7px !important;line-height:24px !important}.onwebchatbox #onweb_chaticon__modern{margin-right:16px !important;margin-top:11px !important}.onwebchatbox .con:hover{opacity:.75}.onwebchatbox .onweb_minimize_btn_icon{border:solid;border-width:0 3px 3px 0;position:absolute;right:2px !important;top:#onweb_min_btn_marginpx;!important;padding:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer}.onwebchatbox .onweb_minimize_btn_icon__modern{right:6px !important;zoom:01.0}.onwebchatbox .onweb_minimize_btn_icon:hover{margin-top:1px}.onwebchatbox div.maximize_onwebchatbox{display:inline}.onwebchatbox .chat_area p{padding-left:12px;padding-right:12px;font-size:13px !important;font-family:Arial,Helvetica,sans-serif !important;line-height:22px;float:left;clear:left;word-wrap:break-word;max-width:60%;margin:0;color:#agent_css_text_color;box-sizing:content-box}.onwebchatbox__modern .chat_area p{font-size:14px !important}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color;margin-bottom:4px;line-height:15px;font-family:arial,verdana,sans-serif !important}.onwebchatbox__modern .chat_area .me{line-height:17px}.onwebchatbox .spanbold{font-weight:800;margin-left:initial;float:initial;font-size:12px !important}.onwebchatbox .chat_area .agent{color:#agent_css_text_color;margin-bottom:4px;line-height:15px;min-height:10px;font-family:arial,verdana,sans-serif !important}.onwebchatbox__modern .chat_area .agent{line-height:17px !important}.onwebchatbox .chat_area .system{font-style:italic;font-size:11px}.onwebchatbox #onwebchat-logo-span{position:absolute !important;bottom:0;right:15px;color:#a0a0a0;font-weight:bold;font-family:Arial,sans-serif !important;letter-spacing:0;font-size:11.7px;font-style:normal}.onwebchatbox #onwebchat-logo-span__modern{bottom:3px !important;direction:ltr !important}.onwebchatbox #off-form-onwebchat-logo{display:none;float:right !important;position:absolute !important;margin:0 !important;bottom:4px !important;right:9px !important;border:none !important;box-sizing:content-box !important;opacity:.91}.onwebchatbox #off-form-onwebchat-logo__modern{bottom:7px !important}.onwebchatbox #off-form-onwebchat-logo:hover{opacity:1}.onwebchatbox .widget-logo{float:right !important;position:absolute !important;margin:0 !important;bottom:0 !important;right:4px !important;border:none !important;padding:4px 6px !important;box-sizing:content-box;height:initial !important;width:initial !important;margin:initial !important;opacity:.80}.onwebchatbox .widget-logo:hover{opacity:1}.onwebchatbox #div_chat_min_title{display:block;position:initial;margin:auto 10px auto auto;width:97%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_min_title_span{color:#f1f1f1 !important;font-size:13px !important;font-family:arial,verdana,sans-serif !important;line-height:32px !important;font-weight:600 !important}.onwebchatbox #div_chat_min_title_span__modern{font-size:14px !important;line-height:42px !important}.onwebchatbox #div_chat_max_title{display:none;position:initial;margin:auto 10px auto auto;width:96%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_max_title_span{padding-left:10px !important;color:#f1f1f1 !important;font-size:13px !important;font-family:arial,verdana,sans-serif !important;line-height:#onwebchatbox_header1_heightpx !important;font-weight:600 !important}.onwebchatbox #div_chat_max_title_span__modern{font-size:15px !important}.onwebchatbox .server_messages{display:block;text-align:center;width:90%;max-width:90% !important;margin:auto;color:#db846c !important;padding:0 0 10px 15px;box-sizing:content-box}.onwebchatbox .onweboffline_msg{margin-top:26px;margin-bottom:32px;position:relative;top:15px;min-height:45px;padding:1px 30px;font-size:14px;font-weight:400;line-height:17px !important;font-family:arial,verdana,sans-serif !important;color:#545454 !important}.onwebchatbox .onweboffline_msg__modern{color:#393939 !important;padding:2% 10% 0 !important;margin-top:22% !important;margin-bottom:3px !important;top:initial !important;min-height:26px !important;line-height:20px !important}.ns{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwebchat_title2{display:block;text-align:center !important;width:54% !important;margin:auto !important;color:#737379 !important;background:#fff !important;box-shadow:0 0 5px 0 #b5b5b5 !important;font-size:14px !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;padding:12px 10px 12px 10px !important;margin-top:30px !important;border-radius:13px !important;box-sizing:initial;line-height:18px !important;position:relative;border:1px solid #cac7c7}.onwebchatbox .onwebchat_title2__modern{margin-top:13% !important;box-shadow:1px 1px 3px 0 #c9c9c9 !important;padding:14px 19px 14px 19px !important;max-width:160px !important;background:#ececec !important;border:none !important;font-size:15px !important}.onwebchatbox .onwebchat_title2::after{content:'';width:0;height:0;position:absolute;bottom:-14px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:14px solid #fff}.onwebchatbox .onwebchat_title2__modern::after{bottom:-16px;left:18%;border-left:0 solid transparent;border-right:22px solid transparent;border-top:17px solid #ececec}.onwebchatbox .onwebchat_title2::before{content:'';width:0;height:0;position:absolute;bottom:-15px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:14px solid #aaa}.onwebchatbox .onwebchat_title2__modern::before{border-top:0}.onwebchatbox .onwebchatform_div{display:block;position:initial;line-height:inherit;width:80%;margin:19px auto auto;color:#545454 !important}.onwebchatbox #onwebchatoffname,#onwebchatoffemail,#onwebchatofftel,#onwebchatemailtext,#onprechatname,#onprechatemail,#onprechattel,#onprechattext{float:initial !important;display:block;background-color:#fefefe !important;background-image:none !important;margin:16px auto 7px !important;padding:7px 11px !important;font-size:14px !important;font-weight:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:initial !important;text-transform:initial !important;text-indent:initial !important;text-align:initial !important;letter-spacing:.2px !important;color:#393939 !important;width:100% !important;max-width:initial !important;max-height:initial !important;min-width:initial !important;min-height:initial !important;resize:none !important;outline:none !important;border-radius:5px !important;height:29px !important;line-height:inherit !important;transition:box-shadow .40s,border-color .40s ease-in-out !important;box-sizing:border-box !important;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important}.onwebchatbox #onwebchatoffname__modern,#onwebchatoffemail__modern,#onwebchatofftel__modern,#onwebchatemailtext__modern,#onprechatname__modern,#onprechatemail__modern,#onprechattel__modern,#onprechattext__modern{height:36px !important;margin:12px auto 11px !important}.onwebchatbox .onwebchatform_div #onprechattext{height:68px !important;line-height:normal !important;text-align:initial !important;white-space:initial !important}.onwebchatbox .onwebchatform_div #onwebchatemailtext{height:82px !important;line-height:normal !important;text-align:initial !important;border:1px solid #ccc !important;white-space:initial !important}#prechat_btn{margin:30px auto 20px !important;color:#fff !important;background-image:inherit;background-color:#567ea6 !important}#prechat_btn__modern{width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}.onwebchatbox #onwebchatoffname:focus,#onwebchatoffemail:focus,#onwebchatemailtext:focus,#onwebchatofftel:focus,#onprechatname:focus,#onprechatemail:focus,#onprechattext:focus,#onprechattel:focus{background:inherit;box-shadow:0 0 1px !important}#offlineform_btn{background-color:#567ea6 !important}#offlineform_btn__modern{width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}#offlineform_ok_btn{background-color:#567ea6 !important;min-width:60px !important}#offlineform_ok_btn__modern{min-width:100% !important;height:37px !important}.onwebchatbox .onweb_mail_btn{display:block !important;margin:30px auto 20px !important;text-align:center !important;text-transform:initial !important;text-indent:initial !important;font-size:13px !important;font-family:Arial,Helvetica,sans-serif !important;font-style:normal !important;font-weight:400 !important;background-color:#567ea6 !important;cursor:pointer;padding:3px 14px !important;border-style:none !important;position:relative !important;left:3px !important;border-radius:5px !important;float:inherit !important;min-width:80px !important;width:initial;max-width:200px !important;outline:none !important;min-height:initial !important;height:28px !important;line-height:16px !important;box-sizing:border-box !important;text-shadow:inherit !important;box-shadow:none !important;letter-spacing:inherit !important}.onwebchatbox .onweb_mail_btn__modern{font-size:14px !important}.onwebchatbox .onweb_mail_btn:hover{background-color:#567ea6;opacity:.82;border-style:none;box-shadow:none !important}.onwebchatbox .me .spanbold,.agent .spanbold{display:block}.onwebchatbox .me-bubble{background-color:#efeded;border-radius:5px;max-width:74% !important;margin-right:5% !important;padding:8px;position:relative !important;float:right !important;text-align:left;border:1px solid #c7c5c5;clear:both !important}.onwebchatbox__modern .me-bubble__modern{border-radius:11px;border:0}.onwebchatbox .me-first{margin-top:8px !important}.onwebchatbox__modern .me-first__modern{border-top-right-radius:2px !important}.onwebchatbox .me-bubble::before{content:'';position:absolute;right:-6px;bottom:8px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #c7c5c5}.onwebchatbox__modern .me-bubble__modern::before{display:none}.onwebchatbox .me-bubble::after{content:'';position:absolute;right:-5px;bottom:8px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #efeded}.onwebchatbox__modern .me-bubble__modern::after{display:none}.onwebchatbox .me-bubble .spanbold{display:none}.onwebchatbox .agent-bubble{background-color:#d1d1d1;border-radius:5px;width:75% !important;margin-left:5% !important;padding:8px;position:relative;text-align:left;border:1px solid #a9a9a9;clear:both !important}.onwebchatbox .agent-bubble__modern{border-radius:11px;border:0}.onwebchatbox .big-margin-left{margin-left:13% !important}.onwebchatbox .agent-first{margin-top:8px !important}.onwebchatbox__modern .agent-first__modern{border-top-left-radius:2px !important}.onwebchatbox .agent-bubble::before{content:'';position:absolute;left:-7px;bottom:6px;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #a9a9a9}.onwebchatbox .agent-bubble__modern::before{display:none}.onwebchatbox .agent-bubble::after{content:'';position:absolute;left:-6px;bottom:6px;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #d1d1d1}.onwebchatbox .agent-bubble__modern::after{display:none}.onwebchatbox .agent-bubble .spanbold{display:none}.onwebchatbox .onwebchat-widget-settings-icon{opacity:.83 !important;position:absolute;bottom:3px !important;left:9px}.onwebchatbox .onwebchat-widget-settings-icon__modern{bottom:9px !important;left:12px}.onwebchatbox .onwebchat-widget-settings-icon:hover{opacity:1 !important}.onwebchatbox #onwebchat-emoticons-div{position:absolute;bottom:42px !important;right:8px !important;background-color:#fff !important;box-shadow:0 0 6px 0 #b5b5b5 !important;border:1px solid #d2d2d2 !important;border-radius:5px !important;display:none;margin:0 !important;padding:4px 6px !important;list-style-type:none !important;width:122px !important;box-sizing:content-box !important;line-height:initial !important}.onwebchatbox #onwebchat-emoticons-div__modern{width:147px !important;border-radius:8px !important}.onwebchatbox #onwebchat-emoticons-div img{padding:4px 5px !important;display:initial !important;margin-bottom:initial !important}.onwebchatbox #onwebchat-emoticons-div__modern img{padding:7px 8px !important}.onwebchatbox #onwebchat-emoticons-div img:hover{opacity:.8}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;bottom:15px !important;left:8px !important;background-color:#fffff9 !important;border:1px solid #d2d2d2 !important;border-radius:5px !important;display:none;margin:0 !important;padding:3px 5px !important;list-style-type:none !important;width:initial !important;box-shadow:rgba(0,0,0,0.23) 0 1px 10px}.onwebchatbox .onwebchat-widget-settings-submenu__modern{border-radius:8px !important}.onwebchatbox .onwebchat-widget-settings-submenu li{text-align:left !important;float:initial !important;list-style-type:none !important;list-style:none !important;cursor:pointer !important;margin:0 !important;padding:5px 12px 0 6px !important;line-height:22px !important;direction:ltr !important;background:none !important;display:block !important;font-size:10px !important}.onwebchatbox .onwebchat-widget-settings-submenu__modern li{padding:11px 13px 5px 10px !important}.onwebchatbox .onwebchat-widget-settings-submenu li:hover{background-color:#d4d4d4;color:black !important}.onwebchatbox .onwebchat-widget-settings-submenu li:before{content:initial !important}.onwebchatbox .onwebchat-widget-settings-submenu-text{margin-left:8px;margin-right:10px;color:#585858;position:relative;bottom:4px;font-weight:bold;vertical-align:middle;font-size:12px !important;font-family:arial,verdana,sans-serif !important}.onwebchatbox .onwebchat-widget-settings-submenu-text__modern{margin-left:11px !important;font-size:13px !important}.onwebchatbox .onwebchat-menu-icons{margin:0 !important}.onwebchatbox .onwebchat-menu-icons__modern{zoom:1.1}.onwebchatbox .onwebchat-emoticons{position:relative;top:4px;cursor:initial !important}.onwebchatbox img:-moz-loading{visibility:hidden}#operator-image{position:absolute;width:46px;left:15px;border-radius:100%;border:2px solid #bbb7b7;z-index:9999999;top:-5px}#iconsdiv{width:50px;height:80px;position:absolute;right:0;bottom:0}#wb-send-image{position:relative;float:right;right:10px;top:13px;opacity:.8;z-index:initial}#wb-send-image__modern{right:35px !important;top:28px !important}#wb-smile-image{position:relative;float:right;right:-14px;top:35px;opacity:.8;z-index:initial}#wb-smile-image__modern{top:26px !important}#wb-send-image:hover{opacity:1 !important}#wb-smile-image:hover{opacity:1 !important}#uploadfileid{opacity:.84}#uploadfileid:hover{opacity:1;background-color:#e5e5e5 !important}#onwebchat-volume-li-id{opacity:.84}#onwebchat-volume-li-id:hover{opacity:1;background-color:#e5e5e5 !important}#onwebchat-print-li{cursor:default !important;opacity:.5}#onwebchat-print-li:hover{background-color:#e5e5e5 !important}#onwebchat-savetofile-li{cursor:default !important;opacity:.5}#onwebchat-savetofile-li:hover{background-color:#e5e5e5 !important}#onwebchat-email-li{cursor:default !important;opacity:.5}#onwebchat-email-li:hover{background-color:#e5e5e5 !important}#onwebchat-endchat-li{cursor:default !important;opacity:.5}#onwebchat-endchat-li:hover{background-color:#e5e5e5 !important}.onwcmodal{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.69);opacity:0;visibility:hidden;transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;z-index:110;border-top-right-radius:5px;border-top-left-radius:5px}.onwebchatbox .onwcmodal-content{padding:9px !important;position:relative !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;background-color:white !important;width:60% !important;min-width:172px !important;border-radius:3px !important;font-size:13.4px !important;line-height:17px !important;min-height:22px !important}.onwebchatbox .onwcmodal-content__modern{font-size:14px !important;padding:13px 20px !important;border-radius:7px !important}.onwcmodalclose{font-size:16px;color:#7f7e7e;font-weight:800;margin-left:5px;float:right;width:18px;line-height:18px;text-align:center;cursor:pointer;border-radius:3px;background-color:lightgray;margin-top:-3px;margin-right:-3px}.onwcmodalclose:hover{background-color:darkgray}.show-onwcmodal{opacity:1;visibility:visible;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.onwcbutton{width:29% !important;cursor:pointer !important;border:1px solid rgba(0,0,0,0.20) !important;border-radius:3px !important;line-height:initial !important;min-width:fit-content !important;min-width:-moz-fit-content !important;min-height:initial !important;margin-left:auto !important;margin-right:auto !important;color:#484848 !important;background:#ddd !important;font-size:12px !important;font-family:Arial,Helvetica,sans-serif !important;padding:3px 7px !important}.onwcbutton:focus{outline-color:lightgray !important}.onwcbutton:hover{background:#c5c5c5 !important}.onwcbutton__modern{border:1px solid rgba(0,0,0,0.0) !important;padding:5px 12px !important;font-size:13px !important;border-radius:5px !important}.onwebchatbox .orange{background:#f5d28d !important}.onwebchatbox .orange:hover{background:#eac57b !important}.onwbchtlogo-in-widget-bw2,.onwbchtlogo-in-widget-icon,.onwbchtsmile-icon,.onwbchtsend-icon,.onwbchtonline-icon,.onwbchtoffline-icon,.onwbchtprint-icon,.onwbchtupload-icon-2,.onwbchtvolume-icon-2,.onwbchtvolume-icon-off,.onwbchtsave-icon,.onwbchtemail-icon,.onwbchtclose2,.onwbchtendchat-icon,.onwbchtsettings-icon-final2{display:inline-block;background:url('https://www.onwebchat.com/chatimages/live-chat-images-3.png?v=2') no-repeat;overflow:hidden;text-indent:-9999px;text-align:left}.onwbchtlogo-in-widget-bw2{background-position:-1px -0;width:71px;height:10px}.onwbchtsmile-icon{background-position:-1px -11px;width:25px;height:25px}.onwbchtsend-icon{background-position:-27px -11px;width:24px;height:27px}.onwbchtonline-icon{background-position:-1px -37px;width:23px;height:18px}.onwbchtoffline-icon{background-position:-52px -11px;width:17px;height:15px}.onwbchtprint-icon{background-position:-52px -27px;width:17px;height:15px}.onwbchtupload-icon-2{background-position:-25px -39px;width:17px;height:14px}.onwbchtvolume-icon-2{background-position:-43px -43px;width:17px;height:13px}.onwbchtvolume-icon-off{background-position:-25px -54px;width:17px;height:13px}.onwbchtsave-icon{background-position:-1px -56px;width:16px;height:14px}.onwbchtemail-icon{background-position:-43px -57px;width:16px;height:15px}.onwbchtclose2{background-position:-18px -68px;width:14px;height:14px}.onwbchtendchat-icon{background-position:-16px -68px;width:17px;height:14px}.onwbchtsettings-icon-final2{background-position:-59px -57px;width:12px;height:12px}.onwbchtsettings-icon-final2__modern{background-position:-59px -57px;width:16px;height:15px}.onwbchtlogo-in-widget-icon{background-position:0 -70px;width:17px;height:14px}#onwc_consent_l_offline{font-size:13px !important} ",ce="free",se="0",re="1",le="undefined",de=0,me="560",he="66",pe="340",ge="right",we="20",ue="#555555",be="#444444",fe="1",_e="0",ye="1",ve="1",xe="0",Ie="0",ke="1",Ce="0",Ee="1",Pe="1",We="0",Be="0",Te="0",Se="1",Me="0",Oe="us",ze=['gr','cy','gb','at','be','bg','hr','cz','dk','ee','fi','fr','de','hu','ie','it','lv','lt','lu','mt','nl','pl','pt','ro','sk','si','es','se'],Fe="1",Ne="1",Le="1",je="0",Ue="1",De="1",Re="1";1==Te&&1==Me&&-1===ze.indexOf(Oe)&&(Te=0);var Ae=r('onwbchtemailsSent');Ae=""==Ae?0:parseInt(Ae),"0"===oe&&(ie=ie.replace(/radius: 13px|radius: 11px|radius: 8px|radius: 5px|radius: 6px|radius: 2px|radius: 3px/g,"radius:0px"),ie=ie.replace(/radius:13px|radius:11px|radius:8px|radius:5px|radius:6px|radius:2px|radius:3px/g,"radius:0px")),ie=ie.replace("#onweb_min_btn_margin",.36*he-1.36),1==x?(ie=ie.replace(new RegExp('__modern','g'),""),ie=ie.replace(/#textarea_width/g,pe-71)):(ie=ie.replace(new RegExp('live-chat-images-3.png','g'),"live-chat-images.png"),ie=ie.replace(/#textarea_width/g,pe-48)),ie=ie.replace(/#chat_width/g,pe),ie=ie.replace(/#chatheader_width/g,pe-40),ie=ie.replace("#chat_area_height",me-98-he-4+14*x),ie=ie.replace("#onwebchatbox_header_height_+_4",he-0+4),ie=ie.replace(/#onwebchatbox_header1_height/g,he),0==Z&&(ue="#595959",be="#595959"),ie=ie.replace(/#visitor_css_text_color/g,ue),ie=ie.replace(/#agent_css_text_color/g,be),void 0!=le&&'undefined'!=le||(le=0);var Ve=document.title,$e=window.location.href;try{var Xe=function(e,t){if(1==le&&"undefined"!=typeof sessionStorage&&'1'!=l('hasTriggered')&&1!=r('hasTriggeredC')&&1!=r('inChatC')&&""==l('chattext'))if(1==l('maxChat')&&1==ne);else if(S(),0!=$){at('onWebChat','Trigger activated',''),d('hasTriggered',1),c('hasTriggeredC',1,.166),d('mustSendTriggerText',!0),y=!0,d('triggerText',e),i(),""!=it('max_served',D)&&""!=t&&"null"!=t&&null!=t&&(printChat('

'+it('max_served',D).replace('{{operator}}',t)+'

'),K="",d('hasWrSeByTr',!0));var n="";1==Z&&(n=" agent-bubble ");var o="",s='',m="";'agent'!=K&&(n+=" agent-first ",1==V&&(s='')),1==V&&(m=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" '),printChat('

'+s+''+it('max_agent',D).replace('{{operator}}',t)+' '+a(e).replace(/({{newline}})/gm,"
")+'

'),K="agent",1!=l('maxChat')&&MaximizeWindowInit(),mt&&ut.emit('setclientstatus','triggered')}}}catch(qe){console.log(qe)}var He='[]';He=He.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var Ze=JSON.parse(He),Je=0,Ye=!1;void 0===l('secOnSite')&&d('secOnSite',0);for(var Ge=Ze.length,Ke=0;Ge>Ke;Ke++)if(1==Ze[Ke].isFullSite&&0==Ze[Ke].whole)setTimeout(Xe,1e3*Ze[Ke].delay,Ze[Ke].text,Ze[Ke].agentName);else if(1==Ze[Ke].isFullSite&&1==Ze[Ke].whole){Ye=!0;try{var Qe=Ze[Ke].delay-l('secOnSite')}catch(qe){console.log(qe)}Qe>=0&&setTimeout(Xe,1e3*Qe,Ze[Ke].text,Ze[Ke].agentName)}else if(0==Ze[Ke].isFullSite){for(var et=Ze[Ke].urls,tt=!1,nt=et.length,ot=0;nt>ot;ot++)if(window.location.href.indexOf(et[ot])>-1){tt=!0;break}tt&&setTimeout(Xe,1e3*Ze[Ke].delay,Ze[Ke].text,Ze[Ke].agentName)}Ye&&setInterval(function(){void 0===l('secOnSite')&&d('secOnSite',0),Je++,d('secOnSite',parseInt(l('secOnSite'))+1)},1e3);var at=function(e,t,n){try{'function'==typeof gtag?gtag('event',t,{event_category:e,event_label:n}):ga('send','event',{eventCategory:e,eventAction:t,eventLabel:n})}catch(o){}},it=function(e,t){return I[e]&&I[e][t]?I[e][t]:'email_text'==e?"Send chat transcript to the following email:":'email_sent'==e?"Transcript sent!":'send'==e?"Send":void 0==I[e]?"":I[e].l1};try{for(var ot=0;otn.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t});var ct=void 0,st=document.location.protocol;'file:'==st&&(st="https:");var rt=document.location.port;rt=void 0==document.location.protocol||''==rt||'80'==rt||'443'==rt?'':':443',serverIP="www.onwebchat.com";var lt="1",dt=!1,mt=!1,ht=!1,pt=!0,gt=216e5;'free'==ce&&(gt=144e5);var wt,ut,bt={},ft="",_t=!0;_t=r('onwbchtSound'),''==_t||null==_t?(_t=!0,c("onwbchtSound",1,93)):0==_t&&(_t=!1),ft=r('onwbchtclientid'),''==ft||null==ft||1==J&&1==q&&(J=0);var yt="predefined/boy.png",vt="predefined/boy.png",xt="predefined/boy.png",It="predefined/boy.png",kt=r('onwbchtblocked');''!=kt&&null!=kt&&'null'!=kt&&'NaN'!=kt||(kt=0,c("onwbchtblocked",0,183));var Ct,Et=function(e,t){var n=document.createElement('script');n.src=e,n.async=!0,n.onreadystatechange=n.onload=function(){var e=n.readyState;t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t())};var o=document.getElementsByTagName('head')[0];o.insertBefore(n,o.firstChild)};return Et(st+'//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js',function(){function t(){try{return window.self!==window.top}catch(e){return!1}}function h(){ht=!0,ut.connect(),8!=p()&&(wt=setTimeout(function(){ut.io.disconnect(),minimizeChatWindow()},gt))}function S(){'chat'==ee&&1==V?Ct("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","50px","important"):Ct("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","10px","important")}function q(){var e;if(e='block'==Ct("#prechat_form").css('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),null!=e){var t=getComputedStyle(e);const n=t.backgroundColor;"rgb(255, 255, 255)"==n&&e.style.setProperty("background-color","#ababab","important"),e=e.getBoundingClientRect();var o=document.getElementById('onwbchat_window').getBoundingClientRect(),a=o.bottom-e.bottom,i=16,c=25,s=30,r=26,l=15;if(40>a&&''==document.getElementById("onwebchatform_div_id").style.margin||0>a){var d=(40-a)/9,m=s-3*d;0>m&&(m=0),document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("prechat_btn").style.setProperty("margin",m+"px auto 20px","important"),document.getElementById("offlineform_btn").style.setProperty("margin",m+"px auto 20px","important");var h=document.getElementsByClassName("onwebchatform_div"),p=c-2*d;4>p&&(p=4),h[0].style.setProperty("margin",p+"px auto auto","important"),h[1].style.setProperty("margin",p+"px auto auto","important"),document.getElementById("onweboffline_msg_id").style.setProperty("margin-bottom",r-2*d+"px","important"),document.getElementById("onweboffline_msg_id").style.setProperty("top",l-d+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("margin-bottom",r-2*d+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("top",l-d+"px","important"),e='block'==Ct("#prechat_form").css('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),e=e.getBoundingClientRect(),o=document.getElementById('onwbchat_window').getBoundingClientRect();var g=o.bottom-e.bottom;22>g&&(document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("height","29px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("height","29px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("height","29px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("height","60px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("height","29px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("height","29px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("height","29px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("height","60px","important"))}}}function oe(){ue(),setTimeout(function(){q()},5),dt||(null==l('chattext')&&d('chattext',''),1!=$&&1!=le&&1==de&&''===l('chattext')||0!=kt||0===$||showChatWindow());var e=0,t=navigator.userAgent;(t.indexOf("Googlebot")>-1||t.indexOf("Yahoo! Slurp")>-1||t.indexOf("Baiduspider")>-1||t.indexOf("BaiDuSpider")>-1||t.indexOf("bingbot")>-1||t.indexOf("msnbot")>-1)&&(e=1),0==e&&be()}function ue(){function t(e){'onwcFileModal'!==e.target.id&&'onwcEmailModal'!==e.target.id&&'onwcEmailOkModal'!==e.target.id||toggleModal(e.target.id,!1)}function i(e){return e=e.replace(//gi,''),e=e.replace(/

/gi,''),e=e.replace(/<\/p>/gi,'\n'),e=e.replace(//gi,"\n"),e=e.replace(/]+>/gi,'')}function s(e,t){var n=document.createElement('a');if(n.setAttribute('href','data:text/plain;charset=utf-8,'+encodeURIComponent(t)),n.setAttribute('download',e),document.createEvent){var o=document.createEvent('MouseEvents');o.initMouseEvent('click',!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}else n.click()}if(0==Ct(".onwebchatbox").length){1==le?div_chat_min_title=it('min_online',D):div_chat_min_title=it('min_offline',D);var m=' by onWebChat',w=m.replace("l=2&","");1==se&&(w="",m=""),qe?1==le?image_name=yt:image_name=vt:1==le?image_name=xt:image_name=It;var u='';1==V&&(u='');var b='

'+it('max_msg',D)+'
';''==it('max_msg',D)&&(b=''),tempSaveSt='',p()||(tempSaveSt='
  • '+it('menu_save',D)+'
  • ');var f="",y="",v="";if(1==Te){var I="",P="";1==Se&&(I='',P='padding-left: 0px;text-indent:-17px;'),f='',y=f.replace(/_offline/g,'_prechat'),v=f.replace(/_offline/g,'_inchat_modal')}1==qe&&1!=re||8!=p()&&Ct("body").append('
    "+div_chat_min_title+"
    "+it('off_msg',D)+"
    "+(0==fe?'':'')+(0==ye?'':'')+(0==xe?'':'')+''+f+''+w+"
    "+it('prechat_msg',D)+"
    "+(0==ke?'':'')+(0==Ee?'':'')+(0==We?'':'')+''+y+''+w+"
    "+u+b+"
    • "+it('menu_send_file',D)+"
    • "+it('menu_email',D)+"
    • "+it('menu_print',D)+'
    • '+tempSaveSt+'
    • '+it('menu_sound',D)+"
    • "+it('menu_end_chat',D)+"
    "+m+'
    ×File size > 5 Mb!
    "+it('email_text',D)+"

    ×"+it('email_sent',D)+"
    "+it('end_chat_msg',D)+'
    "+v+"
    "),consentTextClicked=function(){if(1==Se){var e=Ct("input#onwc_consent_checkbox_inchat_modal");e&&e.prop('checked',!e.prop('checked')),e=Ct("input#onwc_consent_checkbox_offline"),e&&e.prop('checked',!e.prop('checked')),e=Ct("input#onwc_consent_checkbox_prechat"),e&&e.prop('checked',!e.prop('checked'))}},toggleModal=function(e,t){document.getElementById(e).classList.toggle("show-onwcmodal",t)},document.getElementById('onwbchat_window').addEventListener("click",t),emailTranscript=function(){""!=l('chattext')&&6>Ae&&(Ct(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEmailModal"))},checkMobileChatHeight=function(){try{if(qe){var e=Ct("#onwbchat_window").height();Ct(".onwebchatbox .chat_area").css("height",e-98-he-4+14*x+"px"),Ct('#onwbchat_window .chat_area').animate({scrollTop:9999999},200)}}catch(t){}},clickConsentModalOk=function(){var e=Ct("input#onwc_consent_checkbox_inchat_modal").val();void 0==e&&(e=-1),1==Se&&0==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848"):1==Se&&1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?(c("consentvalue",2,93),toggleModal('onwcConsentModal',!1),ut.emit('setconsentsettings',ft,e,Te,Se)):1==Te&&1!=Se&&(c("consentvalue",1,93),toggleModal('onwcConsentModal',!1),ut.emit('setconsentsettings',ft,e,Te,Se))},Ct('input#onwc_consent_checkbox_inchat_modal').change(function(){1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked&&document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}),endChatClicked=function(){""!=l('chattext')&&(Ct(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEndChatModal",!0))},endChatFunction=function(){""!=l('chattext')&&(d('chattext',''),disableMenuItem("onwebchat-print-li"),disableMenuItem("onwebchat-savetofile-li"),disableMenuItem("onwebchat-email-li"),disableMenuItem('onwebchat-endchat-li'),Ct('#onwbchat_window .chat_area').empty(),Ct('#onwbchat_window .chat_area').append(b),showChatWindow(),ut.emit('close_dialog_visitor'),d("servingOpImage",""),A=""),toggleModal('onwcEndChatModal',!1)},sendEmailTranscript=function(){if(g(Ct("input#onwcemailtrans").val())){if(6>Ae){var e=(new Date).getTimezoneOffset()/60*-1;ut.emit('onwcemailtranscript',ft,ae,Ct("input#onwcemailtrans").val(),e),toggleModal("onwcEmailModal",!1);var t=r('onwbchtemailsSent');Ae++,""==t?c('onwbchtemailsSent',1,.0416):c('onwbchtemailsSent',parseInt(t)+1,.0416)}}else Ct("input#onwcemailtrans").focus(),document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important")},Ct('input#onwcemailtrans').keyup(function(){g(Ct("input#onwcemailtrans").val())&&document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}),1==le?o():n(),1==Y&&Ct('#onwbchat_window').css('display','none'),1==le?Ct('#onweb-offline-icon').hide():Ct('#onweb-online-icon').hide(),1==le&&""!=N?Ct('#webchat_header')[0].style.setProperty('background-color',N,'important'):""!=L&&(Ct('#webchat_header')[0].style.setProperty('background-color',L,'important'),Ct('#offlineform_btn')[0].style.setProperty('background-color',L,'important')),0==Fe&&Ct('#onwc-settings-icon-id').remove(),0==Le&&0==Ne&&0==je&&0==Ue&&0==De&&0==Re&&Ct('#onwebchat-widget-settings-submenu-ul').remove(),0==Le&&Ct('#onwebchat-email-li').remove(),0==Ne&&Ct('#uploadfileid').remove(),0==je&&Ct('#onwebchat-print-li').remove(),0==Ue&&Ct('#onwebchat-savetofile-li').remove(),0==De&&Ct('#onwebchat-volume-li-id').remove(),0==Re&&Ct('#onwebchat-endchat-li').remove(),setEmoticon=function(e){Ct('#onwbtxtarea').val(Ct('#onwbtxtarea').val()+" {"+e+"}"),Ct('#onwbtxtarea').focus(),checkText2ShowSendButton()},validateFileSize=function(e,t){if(1==t)var n=e.files[0].size/1024/1024;else var n=e.size/1024/1024;return n>5?(toggleModal('onwcFileModal'),Ct("#onwbchtFileinput").val(''),!1):(printChat('

    '+it('max_me',D)+" [loading...]

    "),1==t&&Ct("#onwbchtUploadForm").submit(),!0)},SaveToFile=function(e){try{if(""!=l('chattext')){Ct(".onwebchat-widget-settings-submenu").hide();var t=new Date,n=t.getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate(),o=t.getHours()+':'+t.getMinutes()+':'+t.getSeconds();strBy="\n## by www.onwebchat.com ",1==se&&(strBy=""),s('chat_'+n+'.txt','## Chat transcipt on '+n+' '+o+strBy+'\n\n'+i(Ct(e).html()))}}catch(a){console.log(a)}},PrintElem2Printer=function(e){try{""!=l('chattext')&&(Ct(".onwebchat-widget-settings-submenu").hide(),Popup2Print(Ct(e).html()))}catch(t){console.log(t)}},Popup2Print=function(e){var t=window.open('','onWebChat live chat - Print ','height=600,width=800');return t.document.write('onWebChat live chat '),t.document.write(''),t.document.write(''),t.document.write(e),t.document.write(''),t.document.close(),t.focus(),t.print(),t.close(),!0},okButtonClicked=function(){ut.emit('chatWindowMax',0),minimizeChatWindow()},uploadFilePressed=function(){Ct('#uploadfileid').css("opacity")>.9&&(Ct('#onwbchtFileinput').trigger('click'),0==mt&&0==ht&&h())},void 0!=l('chattext')&&""!=l('chattext')&&(enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>Ae&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'));var B=0,T=document.getElementById('onwbchat_window');if(T.addEventListener('dragenter',function(e){T.style.backgroundImage="url('')",B++,1==Q&&1==Ne&&'chat'==ee&&(T.style.filter="brightness(50%)"),e.preventDefault()},!1),T.addEventListener('dragleave',function(e){B--,0==B&&(T.style.filter="brightness(100%)"),e.preventDefault()},!1),T.addEventListener('dragover',function(e){e.preventDefault()},!1),T.addEventListener('drop',function(e){B=0;var t=e.dataTransfer,n=t.files;if(T.style.filter="brightness(100%)",e.preventDefault(),1==Q&&1==Ne&&'chat'==ee&&validateFileSize(n[0],0)){var o=new FormData;o.append('file',n[0]),o.append('siteid',ae),sendFileToServer(o)}},!1),Ct("#onwbchtUploadForm").submit(function(e){ var t=(Ct(this),new FormData(this));sendFileToServer(t),e.preventDefault()}),sendFileToServer=function(e){Ct.ajax({url:''+st+'//'+serverIP+'/chat_upload_file/url',type:'POST',data:e,mimeType:"multipart/form-data",contentType:!1,cache:!1,processData:!1,success:function(e,t,n){var o,a=Ct("#onwbchat_window img[src$='loading.gif']"),i=e.substring(e.indexOf(":")+1);if(i.toLowerCase().endsWith(".png")||i.toLowerCase().endsWith(".jpg")||i.toLowerCase().endsWith(".jpeg")||i.toLowerCase().endsWith(".svg")||i.toLowerCase().endsWith(".gif"))G++,o=a.attr("src").replace("chatimages/loading.gif","filesUpload/"+encodeURI(i)),a.css("max-width","150px"),a.css("max-height","70px"),d('chattext',l('chattext').replace('',"")),Ct('#onwbchat_window .chat_area').animate({scrollTop:999999999},200),setTimeout(function(){Ct('#onwbchat_window .chat_area').animate({scrollTop:999999999},200)},1e3),a.attr("src",o),a.wrap("");else{o=a.attr("src").replace("loading.gif","download-icon.png");var c=i.replace(/^.*[\\\/]/,'');a.attr("src",o),a.wrap(""),a.parent().append(""+c+""),d('chattext',l('chattext').replace('',""+c+""))}ut.emit('sendchat','{{fileuploaded:'+i+'}}'),z("{{fileuploaded:"+i+"}}","visitor")},error:function(e,t,n){console.log('Error: '+e.status+n)}})},Ct('.onwebchat-widget-settings-icon').click(function(e){e.stopPropagation(),Ct('.onwebchat-widget-settings-submenu').fadeToggle(240,"swing"),Ct('#onwebchat-emoticons-div').hide()}),Ct('#wb-smile-image').click(function(e){e.stopPropagation(),loadEmoticons(),Ct('#onwebchat-emoticons-div').fadeToggle(240,"swing"),Ct(".onwebchat-widget-settings-submenu").hide(),0==mt&&0==ht&&h()}),Ct(document).on("click",function(){'none'!=Ct(".onwebchat-widget-settings-submenu").css('display')&&Ct(".onwebchat-widget-settings-submenu").fadeToggle(240,"swing"),'none'!=Ct("#onwebchat-emoticons-div").css('display')&&Ct('#onwebchat-emoticons-div').fadeToggle(240,"swing")}),Ct("#onwebchat-volume-li-id").click(function(){1==_t?(Ct("#wb-volume-text-id").html(it('menu_sound',D)),_t=!1,c("onwbchtSound",0,93),Ct("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),Ct("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")):(Ct("#wb-volume-text-id").html(it('menu_sound',D)),_t=!0,c("onwbchtSound",1,93),Ct("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-off"),Ct("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-2"))}),0==_t&&(Ct("#wb-volume-text-id").html(it('menu_sound',D)),Ct("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),Ct("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")),Ct(".onwebchat-widget-settings-submenu").on("click",function(e){e.stopPropagation()}),Ct("#operatorImage").error(function(){Ct(this).hide()}),1==x&&(document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important")),1==J||qe){qe?imageClass="onweb_chatimage_mobile":imageClass="onweb_chatimage";var M=st+'//'+serverIP+'/chatWidgetImages/'+image_name;void 0!=Ct(".onwebchatbox")&&Ct(".onwebchatbox").after('
    '),0==le&&1==de&&Ct("#onweb_chatimage").css("display","none"),Ct("#onweb_chatimage").load(function(){Ct(".onwebchatbox").append('
    ');var e=parseInt(Ct("#onweb_chatimage").css("left"));e=e+parseInt(Ct("#onweb_chatimage").width())-4,Ct("#onweb_chatimage_x").css("left",e);var t=parseInt(Ct("#onweb_chatimage").css("bottom"))+parseInt(Ct("#onweb_chatimage").height())-4;Ct("#onweb_chatimage_x").css("bottom",t),Ct(".onwebchatbox").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),Ct(".onweb_chatimage_x").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'}),Ct(".webchat_header").mouseenter(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),Ct('#onweb_chatimage_x').click(function(){Ct("#onweb_chatimage").css("display","none"),Ct(".onweb_chatimage_x").css("display","none"),d('hideImage',1)})})}Ct('#offlineform_btn').click(function(){if(1==Te&&1==Se&&0==document.getElementById("onwc_consent_checkbox_offline").checked||1==ye&&1==ve&&!g(Ct("input#onwebchatoffemail").val())||1==xe&&1==Ie&&Ct("input#onwebchatofftel").val().length<4||1==fe&&1==_e&&Ct("input#onwebchatoffname").val().length<2||Ct("textarea#onwebchatemailtext").val().length<1)return 1==Te&&1==Se&&0==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline").style.setProperty("color","#D04848"),Ct("textarea#onwebchatemailtext").val().length<1&&(Ct("textarea#onwebchatemailtext").focus(),document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")),1==xe&&1==Ie&&Ct("input#onwebchatofftel").val().length<4&&(Ct("input#onwebchatofftel").focus(),setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0),q()),1!=ye||1!=ve||g(Ct("input#onwebchatoffemail").val())||(Ct("input#onwebchatoffemail").focus(),setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0),q()),1==fe&&1==_e&&Ct("input#onwebchatoffname").val().length<2&&(Ct("input#onwebchatoffname").focus(),setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0),q()),!1;var e=Ct("input#onwc_consent_checkbox_offline").val();return void 0==e&&(e=-1),Ct.ajax({type:"POST",url:st+"//"+serverIP+"/visitorSendEmail",data:'clientip='+U+'&clientid='+ft+'&sid='+ae+'&name='+Ct("input#onwebchatoffname").val()+'&email='+Ct("input#onwebchatoffemail").val()+'&text='+Ct("textarea#onwebchatemailtext").val()+'&phone='+Ct("input#onwebchatofftel").val()+'&conboxv='+e+'&conuse='+Te+'&conboxshow='+Se}),Ct(".onwebchatform_div").css("display","none"),Ct(".onweboffline_msg").html(it('off_thank',D)+''),at('onWebChat','Offline message sent',''),!1}),Ct('#prechat_btn').click(function(){if(k=Ct("input#onprechatname").val(),C=Ct("input#onprechatemail").val(),E=Ct("input#onprechattel").val(),void 0==k&&(k=""),void 0==C&&(C=""),void 0==E&&(E=""),k=k.trim(),C=C.trim(),E=E.trim(),1==Te&&1==Se&&0==document.getElementById("onwc_consent_checkbox_prechat").checked||1==Ee&&1==Pe&&!g(C)||1==We&&1==Be&&E.length<4||1==ke&&1==Ce&&k.length<2||Ct("textarea#onprechattext").val().trim().length<1)return 1==Te&&1==Se&&0==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat").style.setProperty("color","#D04848"),Ct("textarea#onprechattext").val().trim().length<1&&(Ct("textarea#onprechattext").focus(),document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")),1==We&&1==Be&&E.length<4&&(Ct("input#onprechattel").focus(),setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0),q()),1!=Ee||1!=Pe||g(Ct("input#onprechatemail").val())||(Ct("input#onprechatemail").focus(),setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0),q()),1==ke&&1==Ce&&k.length<2&&(Ct("input#onprechatname").focus(),setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0),q()),!1;var t=Ct("textarea#onprechattext").val();ut.emit('setclientdetails',ft,ae,k,C,E,"");var n=Ct("input#onwc_consent_checkbox_prechat").val();void 0==n&&(n=-1),1==n?c("consentvalue",2,93):1==Te&&c("consentvalue",1,93),ut.emit('setconsentsettings',ft,n,Te,Se),Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),Ct("#onwbchat_window").find("#prechat_form").css("display","none"),Ct("#onwbchat_window #div_chat_max_title_span").text(it('max_title',D));var o="";return 1==Z&&(o=" me-bubble"),printChat('

    '+it('max_me',D)+' '+a(t)+'

    '),K="me",setTimeout(function(){ut.emit('sendchat',t)},300),e(),ee="chat",S(),!1}),Ct('input#onwc_consent_checkbox_offline').change(function(){1==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline").style.setProperty("color","#545454")}),Ct('input#onwc_consent_checkbox_prechat').change(function(){1==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat").style.setProperty("color","#545454")}),Ct('input#onwebchatoffemail').keyup(function(){g(Ct("input#onwebchatoffemail").val())&&(document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('textarea#onwebchatemailtext').keyup(function(){Ct("textarea#onwebchatemailtext").val().length>=1&&(document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('input#onwebchatofftel').keyup(function(){Ct("input#onwebchatofftel").val().length>=4&&(document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('input#onwebchatoffname').keyup(function(){Ct("input#onwebchatoffname").val().length>=2&&(document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('input#onprechatemail').keyup(function(){g(Ct("input#onprechatemail").val())&&(document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('textarea#onprechattext').keyup(function(){Ct("textarea#onprechattext").val().length>=1&&(document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('input#onprechattel').keyup(function(){Ct("input#onprechattel").val().length>=4&&(document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important"),q())}),Ct('input#onprechatname').keyup(function(){Ct("input#onprechatname").val().length>=2&&(document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important"),q())}),loadEmoticons=function(){""==Ct('#onwebchat-emoticons-div').html()&&Ct('#onwebchat-emoticons-div').append('')},MaximizeWindowInit=function(){return ut||be(),0==mt&&0==ht&&h(),ut.emit('chatWindowMax',1),maximizeChatWindow(),Ct("#onwbchat_window #onwbtxtarea").focus(),!1},Ct("#onwbchat_window .webchat_header").on("click",function(){0==_?1!=l('maxChat')?(W(),MaximizeWindowInit(),at('onWebChat','Chat window opened','')):(W(),ut.emit('chatWindowMax',0),minimizeChatWindow()):_=0}),Ct("#onweb_chatimage_div #onweb_chatimage").on("click",function(){return MaximizeWindowInit(),W(),at('onWebChat','Chat window opened',''),!1}),text=l('chattext'),text&&(G=(text.match(/filesUpload/g)||[]).length),null!=text&&''!=text&&(Ct(".onwebchat_title2").css("display","none"),Ct("#triangle_down").css("display","none"),Ct('#onwbchat_window .chat_area').append(text),Ct('#onwbchat_window .chat_area').animate({scrollTop:999999999},200)),340>pe&&Ct(".operatorImageSmallClass").css("zoom","0.9"),qe&&(Ct("#onwbchat_window").css("height","95%"),Ct("#onwbchat_window")[0].style.setProperty("bottom","2px","important"),Ct("#onwbchat_window")[0].style.setProperty("width","99%","important"),"left"==ge?setTimeout(function(){Ct("#onwbchat_window")[0].style.setProperty("left","0px","important")},10):Ct("#onwbchat_window")[0].style.setProperty("right","0px","important"),Ct("#wb-send-image")[0].style.setProperty("zoom","1.2","important"),Ct("#wb-send-image")[0].style.setProperty("right","13px","important"),Ct("#wb-send-image")[0].style.setProperty("top","22px","important"),Ct("#wb-smile-image")[0].style.setProperty("display","none","important"),checkMobileChatHeight(),Ct(".onweb_minimize_btn_icon").css("zoom","1.2"),Ct("#onweb_chatimage_div")[0].style.setProperty("right","0"),Ct("#onweb_chatimage_div")[0].style.setProperty("left","initial"))}}function be(){function t(e){var t;return null==e?null:(t=e.indexOf("://")>-1?e.split('/')[2]:e.split('/')[0],t=t.split(':')[0])}function g(){var t=Ct('#onwbtxtarea').val();if(Ct('#onwbtxtarea').val(''),""!=t.trim()){var n="";1==Z&&(n=" me-bubble"),"me"!=K&&(n+=" me-first "),ee=t,z(t,"visitor");var o="";1==isRTLlanguage(t.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" '),printChat('

    '+it('max_me',D)+' '+a(t)+'

    '),K="me",e(),l('mustSendTriggerText')&&1==y?(ut.emit('sendchat',t,l('triggerText')),d('mustSendTriggerText',!1),y=!1,m('triggerText')):ut.emit('sendchat',t)}J=0}function I(){var e=Ct('#onwbtxtarea').val();""!=e.trim()&&ut.emit('sendchat',e,void 0,1)}function W(){isRTLlanguage(it('max_placeholder',D).trim().substring(0,2))?B("rtl","right"):B("","left")}function B(e,t){Ct('.chat_message textarea')[0].style.setProperty("direction",e,"important"),Ct('.chat_message textarea')[0].style.setProperty("text-align",t,"important")}function T(){window.removeEventListener('mousemove',R,!0)}function S(e){var t;e.target?t=e.target:e.srcElement&&(t=e.srcElement),"onweb_minimize_btn_icon_id"!=t.id&&1==l('maxChat')&&(ie=1,window.addEventListener('mousemove',R,!0),Ct("#webchat_header").css('cursor','move'))}function R(e){var t=Ct(window).height(),n=Ct(window).width(),o=parseInt(Ct("#onwbchat_window").css('height')),a=e.clientX,i=e.clientY;if(1==ie){var c=Ct(window).scrollTop(),s=Ct(window).scrollLeft();divTop=Ct("#webchat_header").offset().top-c,divLeft=Ct("#webchat_header").offset().left-s,ne=a-divLeft,oe=i-divTop}ie=0,_=1;var r=document.getElementById('onwbchat_window');r.style.position='absolute',u=i-oe,0>i-oe&&(u=0),i-oe>t-o&&(u=t-o),r.style.top=u+'px',w=a-ne,0>a-ne&&(w=0),a-ne>n-se&&(w=n-se),r.style.left=w+'px'}var q={query:{server:lt},reconnectionAttempts:40};ut=b?io.connect('http://'+serverIP+rt,q):io.connect('https://'+serverIP+rt,q),ut.on('disconnect',function(){mt=!1}),ut.on('error',function(e){}),ut.on('connect_error',function(e){}),ut.on('connect_timeout',function(){}),ut.on('reconnect',function(){}),ut.on('reconnecting',function(e){}),8!=p()&&(wt=setTimeout(function(){ut.io.disconnect(),minimizeChatWindow()},gt)),ut.on('connect',function(){H++,H>10&&(ut.io.disconnect(),ut.disconnect(),ut=null),mt=!0,ht=!1,sessionrandom=r('onwbchtsessionrandom'),'null'!=sessionrandom&&null!=sessionrandom&&''!=sessionrandom&&'undefined'!=sessionrandom||(sessionrandom=Math.floor(1e6*Math.random()+1),c("onwbchtsessionrandom",Math.floor(1e6*Math.random()+1),365));var e=document.referrer,t=0;if(!pt&&(null==l('chattext')||''==l('chattext')))var t=Math.floor(11e3*Math.random())+1e4;setTimeout(function(){ut.emit('userconnect',ft,k,C,E,P,Ve,$e,screen.width,sessionrandom,Oe,ze,He,ae,U,e,r('onwbchtlastvisit'),Xe,qe,kt,pt,le,Te,Se)},t),pt=!1}),ut.on('onwcemailtranscript_ok',function(){toggleModal('onwcEmailOkModal')}),ut.on('addvisited1',function(e){He++,c("onwbchttimesVisited",He,93),c("onwbchtlastvisit",e,93)}),ut.on('setCookie',function(e,t){"onwbchtclientid"==e&&(''!=r('onwbchtclientid')&&null!=r('onwbchtclientid')&&r('onwbchtclientid')!=t&&(deleteAllCookies(),d('chattext',''),Ct('#onwbchat_window .chat_area p').remove(),Ct("#onwbchat_window .onwebchat_title2").css("display","block")),ft=t),c(e,t,365)}),ut.on('chatWindowMax',function(e){1==e?maximizeChatWindow():0==e&&minimizeChatWindow()}),ut.on('updateagents',function(e){O(e)}),ut.on('newChatEvent',function(e){at('onWebChat','Chat started','by '+e)}),ut.on('setAgentOnlineHideOffline',function(e,t,a,i){if(1!=X){void 0==a&&(a=0),te=a;try{}catch(c){console.log(c)}if(1==e&&void 0!=i&&''!=i&&(A=i,Ct('#operatorImage').attr('src',st+'//'+serverIP+'/filesUpload/operatorImages/'+i)),void 0!=e&&null!=e&&(le!=e&&(qe?1==e?image_name=yt:image_name=vt:1==e?image_name=xt:image_name=It,1==e?(Ct("#div_chat_min_title_span").text(it('min_online',D)),Ct('#onweb-offline-icon').hide(),Ct('#onweb-online-icon').show(),""!=N&&Ct('#webchat_header')[0].style.setProperty('background-color',N,'important'),Ct('#onweb_chatimage').attr('src',st+'//'+serverIP+'/chatWidgetImages/'+image_name)):setTimeout(function(){Ct("#div_chat_min_title_span").text(it('min_offline',D)),Ct('#onweb-offline-icon').show(),Ct('#onweb-online-icon').hide(),""!=L&&Ct('#webchat_header')[0].style.setProperty('background-color',L,'important'),""!=L&&Ct('#offlineform_btn')[0].style.setProperty('background-color',L,'important'),Ct('#onweb_chatimage').attr('src',st+'//'+serverIP+'/chatWidgetImages/'+image_name)},300)),le=e,de=t,(1==le||1!=de||l('chattext').length>0)&&0==kt?0!=$&&showChatWindow():hideChatWindow(),l('chattext').endsWith(it('max_gone',D)+"

    ")&&1==le&&0!=te&&(Ct('p:last-child','#onwbchat_window .chat_area').remove(),d('chattext',l('chattext').substring(0,l('chattext').lastIndexOf('

    '+it('max_gone',D)+'

    '))),o()),1==le&&0!=te&&o(),1!=le&&0==te&&l('chattext').length>0&&!l('chattext').endsWith(it('max_gone',D)+"

    "))){var s=1e3;1==f&&(s=3e3),setTimeout(function(){1==le||0!=te||l('chattext').endsWith(it('max_gone',D)+"

    ")||printChat('

    '+it('max_gone',D)+'

    '),n()},s)}}}),ut.on('setIsBlocked',function(e){void 0==e&&(e=0),kt=e,c("onwbchtblocked",e,183),1==kt?hideChatWindow():0==kt&&(1!=le&&1==de||0!=$&&showChatWindow())}),ut.on('visitordeleted',function(){d('chattext',''),Ct('#onwbchat_window .chat_area p').remove(),setTimeout(function(){Ct("#onwbchat_window").fadeOut(700,'swing')},200),deleteAllCookies(),ut.disconnect()}),deleteAllCookies=function(){s("onwbchtclientid"),s("inChatC"),s("onwbchtSound"),s("onwbchtblocked"),s("onwbchtexpress.sid"),s("onwbchtlastvisit"),s("onwbchtsessionrandom"),s("onwbchttimesVisited")},ut.on('servercommand',function(e,t,n,o,a){null!=n&&""!=n||(n="operator"),'close_dialog'==e?(1==r('inChatC')&&""!=it('max_closed',D)&&printChat('

    '+it('max_closed',D).replace('{{operator}}',n)+'

    '),d("servingOpImage",""),A="",c('inChatC',0,.166),d('hasTriggeredNoReply',0),c('hasTriggeredNoReplyC',0,.166)):'serve_dialog'==e?(f="androidapp"==o?1:0,""!=it('max_served',D)&&(l('hasWrSeByTr')||printChat('

    '+it('max_served',D).replace('{{operator}}',n)+'

    ')),void 0!=a&&''!=a&&(A=a,d("servingOpImage",a),Ct('#operatorImage').attr('src',st+'//'+serverIP+'/filesUpload/operatorImages/'+a))):'no_agent'==e&&printChat('

    No agent is online now, but we will reply to you asap.

    ')}),ut.on('updatechat',function(e,t,n,s){if(null!=s&&""!=s||(s="operator"),'command:typing...'==n)Ct('#agenttypingimage').remove(),Ct('#onwbchat_window .chat_area').append(""),Ct('#onwbchat_window .chat_area').animate({scrollTop:9999999},200);else if('command:notyping...'==n)try{null!=document.getElementById('agenttypingimage')&&(document.getElementById('agenttypingimage').style.visibility='hidden')}catch(r){}else if(0==$);else{i(),clearTimeout(v),o(),Ct('#agenttypingimage').remove();var d="",m='',h="";1==Z&&(d=" agent-bubble "),'agent'!=K&&(d+=" agent-first ",1==V&&(m='')),1==V&&(h=" big-margin-left "),z(n,"operator"),c('inChatC',1,.166);var p="";1==isRTLlanguage(n.substr(0,1))&&(p=' style="direction: rtl;text-align:right;" '),printChat('

    '+m+''+it('max_agent',D).replace('{{operator}}',s)+' '+a(n)+'

    '),K="agent",""!=e&&1!=l('maxChat')&&MaximizeWindowInit(),1!=le&&(null!=l('chattext')&&''!=l('chattext'),showChatWindow()),'block'==Ct("#onwbchat_window").find("#prechat_form").css("display")&&showChatWindow()}}),printChat=function(e){Ct("#onwbchat_window .onwebchat_title2").css("display","none"),Ct("#onwbchat_window #triangle_down").css("display","none");var n=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,o=n.exec(e);if(null!=o){o=o[0];var a=t(o);e=a==t(window.location.href)?e.replace(n,"$1"):e.replace(n,"$1")}var n=/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,i=n.exec(e);if(null!=i){i=i[0];var a=t(i);e=a==t(window.location.href)?e.replace(n,"$1$2"):e.replace(n,"$1$2")}for(var c=!1;e.indexOf("{{fileuploaded:")>-1;){var s=(e.indexOf("{{fileuploaded:")+1,e.indexOf("{{fileuploaded:")+15),r=e.indexOf("}}",s),m=e.substring(s,r),h=m.replace(/^.*[\\\/]/,''),g="";h.toLowerCase().endsWith(".png")||h.toLowerCase().endsWith(".jpg")||h.toLowerCase().endsWith(".jpeg")||h.toLowerCase().endsWith(".svg")||h.toLowerCase().endsWith(".gif")?(c=!0,G++,g=''):g=''+h+'',e=e.replace("{{fileuploaded:"+m+"}}",g)}onerror="this.style.visibility='hidden'",e=e.replace(/{angry}/g,''),e=e.replace(/{cap}/g,''),e=e.replace(/{confused}/g,''),e=e.replace(/{crying}/g,''),e=e.replace(/{depression}/g,''),e=e.replace(/{dislike}/g,''),e=e.replace(/{geek}/g,''),e=e.replace(/{kiss}/g,''),e=e.replace(/{laughing}/g,''),e=e.replace(/{like}/g,''),e=e.replace(/{love}/g,''),e=e.replace(/{money}/g,''),e=e.replace(/{mustache}/g,''),e=e.replace(/{punk}/g,''),e=e.replace(/{security}/g,''),e=e.replace(/{sleepi}/g,''),e=e.replace(/{star}/g,''),e=e.replace(/{sunglass}/g,''),e=e.replace(/{surprise}/g,''),e=e.replace(/{wink}/g,''),e=e.replace('[loading...]',''),null!=document.getElementById('agenttypingimage')?Ct('#onwbchat_window .chat_area #agenttypingimage').before(e):Ct('#onwbchat_window .chat_area').append(e),Ct('#onwbchat_window .chat_area').animate({scrollTop:9999999},200),l('chattext')?d('chattext',l('chattext')+e):d('chattext',e),8!=p()&&(clearTimeout(wt),wt=setTimeout(function(){ut.io.disconnect(),minimizeChatWindow()},gt)),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>Ae&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'),340>pe&&Ct(".operatorImageSmallClass").css("zoom","0.9"),checkMobileChatHeight()},removeLoadingImage=function(e){Ct('#'+e).css('background','none')};var J=0,Y=0,Q=0,ee="";Ct('.chat_message textarea').on('paste',function(e){0==mt&&0==ht&&h()}),Ct('.chat_message textarea').on('keypress',function(e){13!=e.keyCode||e.shiftKey?(1!=j&&1!=l('hasStartedWriting')&&(M(),d('hasStartedWriting',1)),j=1,0==mt&&0==ht&&h(),0==J&&(ut.emit('sendchat','command:typing...'),J=1),'free'!=ce&&0==Q&&(Q=setTimeout(function(){I(),Q=0},500)),clearTimeout(Y),Y=setTimeout(function(){J=0,clearTimeout(Q),ut.emit('sendchat','command:notyping...')},1800)):(e.preventDefault(),g(),clearTimeout(Q),Q=0)}),Ct('#wb-send-image').on('click',function(e){g(),Ct("#onwbtxtarea").focus(),checkText2ShowSendButton()}),isRTLlanguage=function(e){var t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/;return result=t.test(e),result},W(),Ct('.chat_message textarea').on('keyup',function(e){38==e.keyCode&&''==Ct(this).val()&&Ct(this).val(ee),""!=Ct('#onwbtxtarea').val().trim().substring(0,2)?isRTLlanguage(Ct('#onwbtxtarea').val().trim().substring(0,2))?B("rtl","right"):B("","left"):""==Ct('#onwbtxtarea').val()&&W(),1==Te&&1!=r('consentvalue')&&2!=r('consentvalue')&&toggleModal("onwcConsentModal",!0),checkText2ShowSendButton()}),checkText2ShowSendButton=function(){""==Ct('#onwbtxtarea').val()&&1==x?document.getElementById("wb-send-image").style.visibility="hidden":document.getElementById("wb-send-image").style.visibility="visible"},checkText2ShowSendButton(),Ct('#onwebchatemailtext').on('keyup',function(e){isRTLlanguage(Ct('#onwebchatemailtext').val().substring(0,2))?(Ct('#onwebchatemailtext')[0].style.setProperty("direction","rtl","important"),Ct('#onwebchatemailtext')[0].style.setProperty("text-align","right","important")):(Ct('#onwebchatemailtext')[0].style.setProperty("direction","","important"),Ct('#onwebchatemailtext')[0].style.setProperty("text-align","left","important"))}),Ct('#onprechattext').on('keyup',function(e){isRTLlanguage(Ct('#onprechattext').val().substring(0,2))?(Ct('#onprechattext')[0].style.setProperty("direction","rtl","important"),Ct('#onprechattext')[0].style.setProperty("text-align","right","important")):(Ct('#onprechattext')[0].style.setProperty("direction","","important"),Ct('#onprechattext')[0].style.setProperty("text-align","left","important"))});var ne,oe,ie=0,se=parseInt(Ct("#onwbchat_window").css('width'));try{document.getElementById('webchat_header').addEventListener('mousedown',S,!1),document.getElementById('onweb_minimize_btn_icon_id').removeEventListener('mousedown',S),window.addEventListener('mouseup',T,!1)}catch(re){}F()}Ct=jQuery.noConflict(!0),'undefined'==typeof JSON&&(dt=!0);var Me=!1;10705==ae&&t()&&(Me=!0),'function'!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}),maximizeChatWindow=function(){if(Ct("#onwbchat_window").css("animation-iteration-count","0"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","rgba(0, 0, 0, 0.43) 0px 0em 1.2em","important"),(1==Y||qe)&&Ct("#onwbchat_window").fadeIn(100,'swing'),"none"==Ct("#onwbchat_window #div_chat_max_title").css("display")&&B(),Ct("#onweb_chatimage_div #onweb_chatimage").css("display","none"),Ct("#onwbchat_window .onweb_chatimage_x").css("display","none"),1==de||0!=le||null!=l('chattext')&&''!=l('chattext')?1==ne&&0===l('chattext').length?(ee="prechat",Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),Ct("#onwbchat_window").find("#offline_form").css("display","none"),Ct("#onwbchat_window").find("#prechat_form").css("display","block"),Ct("#onwbchat_window #div_chat_max_title_span").text(it('max_title',D))):(ee="chat",Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),Ct("#onwbchat_window").find("#offline_form").css("display","none"), Ct("#onwbchat_window").find("#prechat_form").css("display","none"),Ct("#onwbchat_window #div_chat_max_title_span").text(it('max_title',D))):(ee="offline",Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),Ct("#onwbchat_window").find("#offline_form").css("display","block"),Ct("#onwbchat_window #div_chat_max_title_span").text(it('off_title',D)),Ct("#onwbchat_window").find("#prechat_form").css("display","none")),qe){Ct("#onwbchat_window").css("height","95%");var e=Ct("#onwbchat_window").width();Ct("#onwbtxtarea")[0].style.setProperty("width",e-48-23*x+"px","important"),Ct("#chat_area_id").css("width",e-0+"px","important"),Ct("#webchat_header")[0].style.setProperty("width",e-40+"px","important")}else document.getElementById("onwbchat_window").style.setProperty("height",me+"px","important"),Ct("#onwbchat_window").css("top",u+"px"),Ct("#onwbchat_window").css("left",w+"px"),1==x&&document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important");return 1==x?(document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("webchat_header").style.setProperty("height",he+"px","important")):document.getElementById("webchat_header").style.setProperty("height",he-0+4+"px","important"),Ct("#onwbchat_window").find(".onweb_minimize_btn").css("display","inline"),Ct("#onwbchat_window").find(".onweb_minimize_btn").css("position","absolute"),Ct("#onwbchat_window").find(".onweb_minimize_btn").css("right","0px"),Ct("#onwbchat_window .webchat_header").css("cursor","move"),Ct("#onwbchat_window #div_chat_max_title").css("display","block"),Ct("#onwbchat_window #div_chat_min_title").css("display","none"),Ct("#onwbchat_window #off-form-onwebchat-logo").css("display","block"),Ct("#onwbchat_window #onwebchat-logo-span").css("display","block"),Ct("#onwbchat_window .webchat_header").hover(function(){Ct("#onwbchat_window .webchat_header").css("opacity","1")},function(){Ct("#onwbchat_window .webchat_header").css("opacity","1")}),d('maxChat',1),loadEmoticons(),q(),S(),!1},minimizeChatWindow=function(){return(1==Y||qe)&&Ct("#onwbchat_window").fadeOut(0),"block"==Ct("#onwbchat_window #div_chat_max_title").css("display")&&T(),d('maxChat',0),setTimeout(function(){Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide(),Ct(".onwebchatbox").css("height","66px"),Ct("#onwbchat_window .webchat_header").css("cursor","pointer"),0==l('hideImage')&&(Ct("#onweb_chatimage_div #onweb_chatimage").css("display","inline"),Ct("#onweb_chatimage_div #onweb_chatimage").css("cursor","pointer"),Ct("#onweb_chatimage").css("animation-iteration-count","0")),Ct("#onwbchat_window .onweb_chatimage_x").css("display","inline"),Ct("#onwbchat_window #div_chat_min_title").css("display","block"),Ct("#onwbchat_window #div_chat_max_title").css("display","none"),Ct("#onwbchat_window #off-form-onwebchat-logo").css("display","none"),Ct("#onwbchat_window #onwebchat-logo-span").css("display","none"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),Ct("#onwbchat_window").find(".onweb_maximize_btn").css("display","inline"),qe||(Ct("#onwbchat_window").css("top","initial"),Ct("#onwbchat_window").css("left","initial"),Ct("#onwbchat_window").css(ge,we+"px"),1==x?(document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important")):(document.getElementById("webchat_header").style.setProperty("height",he+"px","important"),document.getElementById("onwbchat_window").style.setProperty("height",he+"px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important")))},100),!1},hideChatWindow=function(){Ct("#onwbchat_window").fadeOut(300,'swing'),Ct("#onweb_chatimage_div #onweb_chatimage").fadeOut(300,'swing')},showChatWindow=function(){try{}catch(e){console.log(e)}0==Y&&0==qe&&Ct("#onwbchat_window").css("display","block"),1==l('hideImage')&&Ct("#onweb_chatimage_div #onweb_chatimage").css("display","none"),0==l('hideImage')&&Ct("#onweb_chatimage_div #onweb_chatimage").css("display","inline"),1==l('maxChat')?maximizeChatWindow():Ct("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide()};var Oe,ze,Xe,qe;Ct.ajaxSetup({cache:!0}),dt||Me||(""!=R?Ct.when(Ct.getScript(st+"//www.onwebchat.com/lib/socket.io-1.4.5.min.js",function(e,t,n){}).done(function(e,t){}).fail(function(){}),Ct.get(R,function(e){if(""!=e)try{Ct.extend(!0,I,JSON.parse(e))}catch(t){console.log("exception parsing lang text file : "+t),console.log("lang text file data: "+e.substring(0,100)+" ...")}}).fail(function(){console.log("Error: language file failed to load! filename: "+R),console.log("Ensure that language file url is correct and is not blocked as cross-origin request."),'l1'!=D&&'l2'!=D&&(D='l1')}),Ct('head').append("")).done(function(){oe()}):Ct.when(Ct.getScript(st+"//www.onwebchat.com/lib/socket.io-1.4.5.min.js",function(e,t,n){}).done(function(e,t){}).fail(function(){}),Ct('head').append("")).done(function(){oe()})),enableMenuItem=function(e){Ct("#"+e).css("opacity",.84),Ct("#"+e).hover(function(e){Ct(this).css("opacity","mouseenter"===e.type?1:.84)}),document.getElementById(e)&&document.getElementById(e).style.setProperty("cursor","pointer","important")},disableMenuItem=function(e){Ct("#"+e).css("opacity",.5),Ct("#"+e).hover(function(e){Ct(this).css("opacity",("mouseenter"===e.type,.5))}),document.getElementById(e)&&document.getElementById(e).style.setProperty("cursor","initial","important")},function(e){var t='-',n=navigator.appVersion,o=navigator.userAgent,a=navigator.appName,i=''+parseFloat(navigator.appVersion),c=parseInt(navigator.appVersion,10);Xe=n+" -- "+o+" -- "+a+" -- "+i+" -- "+c+" -- "+navigator.platform+" -- "+navigator.oscpu;var s,r,l;-1!=(r=o.indexOf('Opera'))?(a='Opera',i=o.substring(r+6),-1!=(r=o.indexOf('Version'))&&(i=o.substring(r+8))):-1!=(r=o.indexOf('MSIE'))?(a='Internet Explorer',i=o.substring(r+5)):-1!=(r=o.indexOf('Edge'))||-1!=(r=o.indexOf('Edg/'))?(a='Edge',i=''):-1!=(r=o.indexOf('Chrome'))?(a='Chrome',i=o.substring(r+7)):-1!=(r=o.indexOf('Safari'))?(a='Safari',i=o.substring(r+7),-1!=(r=o.indexOf('Version'))&&(i=o.substring(r+8))):-1!=(r=o.indexOf('Firefox'))?(a='Firefox',i=o.substring(r+8)):-1!=o.indexOf('Trident/')?(a='Internet Explorer',i=o.substring(o.indexOf('rv:')+3)):(s=o.lastIndexOf(' ')+1)<(r=o.lastIndexOf('/'))&&(a=o.substring(s,r),i=o.substring(r+1),a.toLowerCase()==a.toUpperCase()&&(a=navigator.appName)),-1!=(l=i.indexOf(';'))&&(i=i.substring(0,l)),-1!=(l=i.indexOf(' '))&&(i=i.substring(0,l)),-1!=(l=i.indexOf(')'))&&(i=i.substring(0,l));var d=i.indexOf('.');if(d>0){var m=i.indexOf('.',i.indexOf('.')+1);m>0&&(i=i.substring(0,m))}c=parseInt(''+i,10),isNaN(c)&&(i=''+parseFloat(navigator.appVersion),c=parseInt(navigator.appVersion,10)),'Edge'==a&&(i=''),qe=!1,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(qe=!0);var h=!!navigator.cookieEnabled;'undefined'!=typeof navigator.cookieEnabled||h||(document.cookie='testcookie',h=-1!=document.cookie.indexOf('testcookie'));var p='',g=[{s:'Windows 3.11',r:/Win16/},{s:'Windows 95',r:/(Windows 95|Win95|Windows_95)/},{s:'Windows ME',r:/(Win 9x 4.90|Windows ME)/},{s:'Windows 98',r:/(Windows 98|Win98)/},{s:'Windows CE',r:/Windows CE/},{s:'Windows 2000',r:/(Windows NT 5.0|Windows 2000)/},{s:'Windows XP',r:/(Windows NT 5.1|Windows XP)/},{s:'Windows Server 2003',r:/Windows NT 5.2/},{s:'Windows Vista',r:/Windows NT 6.0/},{s:'Windows 7',r:/(Windows 7|Windows NT 6.1)/},{s:'Windows 8.1',r:/(Windows 8.1|Windows NT 6.3)/},{s:'Windows 8',r:/(Windows 8|Windows NT 6.2)/},{s:'Windows 10',r:/(Windows 10|Windows NT 10.0)/},{s:'Windows NT 4.0',r:/(Windows NT 4.0|WinNT4.0)/},{s:'Windows',r:/(WinNT|Windows NT)/},{s:'Windows ME',r:/Windows ME/},{s:'Windows Phone',r:/Windows Phone/},{s:'Android',r:/Android/},{s:'Open BSD',r:/OpenBSD/},{s:'Sun OS',r:/SunOS/},{s:'Linux',r:/(Linux|X11)/},{s:'iOS',r:/(iPhone|iPad|iPod)/},{s:'Mac OS X',r:/Mac OS X/},{s:'Mac OS',r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:'QNX',r:/QNX/},{s:'UNIX',r:/UNIX/},{s:'BeOS',r:/BeOS/},{s:'OS/2',r:/OS\/2/},{s:'BlackBerry OS',r:/BlackBerry/},{s:'Search Bot',r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var w in g){var u=g[w];if(u.r.test(o)){p=u.s;break}}''==p&&(p=navigator.platform);var b=t;switch(/Windows/.test(p)&&(b=/Windows (.*)/.exec(p)[1],p='Windows'),p){case'Mac OS X':b=/Mac OS X (10[\.\_\d]+)/.exec(o)[1];break;case'Android':b=/Android ([\.\_\d]+)/.exec(o)[1];break;case'iOS':b=/OS (\d+)_(\d+)_?(\d+)?/.exec(n),b=b[1]+'.'+b[2]+'.'+(0|b[3])}var f='no check';if('undefined'!=typeof swfobject){var _=swfobject.getFlashPlayerVersion();f=_.major>0?_.major+'.'+_.minor+' r'+_.release:t}e.jscd={browser:a,browserVersion:i,mobile:qe,os:p,osVersion:b,cookies:h,flashVersion:f}}(this),ze=jscd.os+' '+jscd.osVersion,Oe=jscd.browser+' '+jscd.browserVersion;var He=r('onwbchttimesVisited');''!=He&&void 0!=He&&'NaN'!=He||(He=0,c("onwbchttimesVisited",1,93)),Ct.support.cors=!0}),{init:function(e){bt=e},set:function(e,t){if("name"==e){k=t;try{ut.emit('setclientdetails',ft,ae,k,"","","")}catch(n){}}else if("email"==e){C=t;try{ut.emit('setclientdetails',ft,ae,"",C,"","")}catch(n){}}else if("phone"==e){E=t;try{ut.emit('setclientdetails',ft,ae,"","",E,"")}catch(n){}}else if("notes"==e){P=t;try{ut.emit('setclientdetails',ft,ae,"","","",P)}catch(n){}}else if("pageUrl"==e)try{ut.emit('setclientpageurl',ft,ae,"",t)}catch(n){}else if("pageTitle"==e)try{ut.emit('setclientpageurl',ft,ae,t,"")}catch(n){}else"max"==e?1==t?(maximizeChatWindow(),Ct("#onwbtxtarea").focus()):0==t&&minimizeChatWindow():"show"==e?1==t?($=1,showChatWindow()):0==t&&($=0,hideChatWindow()):"online"==e?1==t?(le=1,showChatWindow()):0==t&&(le=0,showChatWindow()):"hideImage"==e||("language"==e?(D=t,'gr'!=D&&'el'!=D||(D='l1'),'en'==D&&(D='l2'),'l1'!=D&&'l2'!=D&&(D='l1')):"languageFile"==e?R="":"onClick"==e?W=t:"onMaximize"==e?B=t:"onMinimize"==e?T=t:"onTrigger"==e?S=t:"onStartWriting"==e?M=t:"onUpdateOperators"==e?O=t:"onNewMessage"==e?z=t:"onWebChatLoaded"==e?F=t:"onlineColor"==e?(N=t,1==le&&""!=N&&Ct('#webchat_header')[0].style.setProperty('background-color',N,'important')):"offlineColor"==e&&(L=t,1!=le&&""!=L&&(Ct('#webchat_header')[0].style.setProperty('background-color',L,'important'),Ct('#offlineform_btn')[0].style.setProperty('background-color',L,'important'))))},get:function(e){return"name"==e?k:"email"==e?C:"phone"==e?E:"notes"==e?P:"status"==e?1==le?"online":"offline":""}}}();