/* BO Wed Feb 15 15:44:24 CET 2012 */
(function(){function j(a){return document.getElementById(a)}function z(){if("undefined"!==typeof __lc_reloaded)return!0;__lc_reloaded=!0;var a;a=document.createElement("form");a.id="sessionform";a.action=o;a.target="livechat-full-view";a.method="post";k.appendToBody(a,function(){document.getElementById("sessionform").submit()})}function A(a){this.is_main_window=this.embedded_chat_hidden_by_api=this.embedded_chat_inited=!1;this.EMBEDDED_ENABLED=1;this.EMBEDDED_AVATAR_DISABLED=2;this.EMBEDDED_DISABLE_WHEN_OFFLINE=
8;this.EMBEDDED_LOGO_ENABLED=16;this.EMBEDDED_LOADED=0;this.httpp=-1!=window.location.protocol.indexOf("https")?"https://":"http://";this.location=encodeURIComponent(document.location);this.INVITATION_NONE=0;this.INVITATION_STANDARD=1;this.INVITATION_AUTO=2;this.INVITATION_PERSONAL=3;this.current_invitation=this.INVITATION_NONE;this.$overlay=this.$invitation_image=this.$invitation_layer=!1;this.conf=a;this.invitation_layer_id="lc_invite_layer";this.private_invite_script_id="LC_Private_Invite";this.auto_invite_script_id=
"LC_Auto_Invite";this.invite_layer="lc_invite_layer";this.quirks_mode_interval=!1;this.lc_timerID;this.lc_timerID_wait;this.is_popped_out=!1;this.msie=/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent);this.msie_version=!this.msie?!1:function(){var a=navigator.userAgent,b=a.indexOf("MSIE ");return-1==b?0:parseFloat(a.substring(b+5,a.indexOf(";",b)))}();this.ie6=!1;var a=window.navigator.userAgent,d=a.indexOf("MSIE ");this.ie6=0<d?6>=parseInt(a.substring(d+5,a.indexOf(".",d))):
0;this.embeddedWindowSupported=!0;window.postMessage||(this.embeddedWindowSupported=!1);this.supportsPositionFixed=null;this.lc_MC=0;this.lc_Z=1;this.lc_I=this.lc_W=0;this.lc_R=5E3;this.pingStopped=!1;this.lc_maximumTimeOnPage=18E5;this.force_reload=!1;this.conf.overlay.id="lc_overlay_layer";this.standard_invite_html='<div style="position:relative">';this.standard_invite_html+='<a style="display:block;position:absolute;top:0;right:0;width:70px;height:25px;cursor:pointer;background:url('+this.httpp+
this.conf.serv+'/server/images/pixel.gif)" href="javascript:void(0)" onclick="LC_Invite.lc_popup_close()"></a>';this.standard_invite_html+='<a href="javascript:void(0)" onclick="LC_Invite.lc_open_chat()" style="display:block;cursor:pointer;"><img src="'+this.httpp+this.conf.serv+this.conf.invite_img_name+'" id="lc_standard_invitation_img" border="0" alt="" style="display:block"></a>';this.standard_invite_html+="</div>";this.text_buttons_queue=[];this.init_location_change_observer=function(){var a=
this;setInterval(function(){var b=encodeURIComponent(document.location);b!==a.location&&(a.update_page_address(),a.location=b)},2E3)};this.update_page_address=function(){this.set_force_reload(!0);this.ping()};this.check_if_supports_position_fixed=function(){if(navigator.userAgent.match(/OS (5|6|7)[\d_]* like Mac OS X/i))return this.supportsPositionFixed=!0;var a=null;if(document.createElement){var b=document.createElement("div");if(b&&b.style){b.style.position="fixed";b.style.top="10px";var d=document.body;
d&&d.appendChild&&d.removeChild&&(d.appendChild(b),a=10===b.offsetTop,d.removeChild(b))}}this.supportsPositionFixed=a};this.init=function(){this.lookup_custom_variables();this.init_location_change_observer();l.init();this.check_if_supports_position_fixed();this.display_chat_buttons();this.prepare_elements();this.setMaximumTimeOnPage();this.ping();this.load_embedded_window()};this.setMaximumTimeOnPage=function(){var a=this;setTimeout(function(){a.pingStopped=!0},this.lc_maximumTimeOnPage)};this.prepare_elements=
function(){document.getElementsByTagName("body");var a;a=document.createElement("div");a.setAttribute("id",this.invitation_layer_id);a.style.textAlign="left";this.$invitation_layer=a;a=this.$invitation_layer.style;a.display="none";a.zIndex=16777262;k.appendToBody(this.$invitation_layer);a=document.createElement("div");a.setAttribute("id",this.conf.overlay.id);this.$overlay=a;a=this.$overlay.style;a.backgroundColor=this.conf.overlay.color;a.position="fixed";a.left=0;a.top=0;a.zIndex=16777261;a.display=
"none";a.width="100%";a.height="100%";k.appendToBody(this.$overlay)};this.lookup_custom_variables=function(){if("string"!=typeof __lc_params||0==__lc_params.length)return!0;this.set_custom_variables(__lc_params)};this.get_embedded_chat_option=function(a){return Boolean(i.embedded_window_enabled&a)};this.display_chat_buttons=function(){if("undefined"===typeof __lc_buttons){var a=this,b=0,d=function(){b++;if(20<b)return!0;if("undefined"!==typeof __lc_buttons)return a.display_chat_buttons(),!0;setTimeout(function(){d()},
500)};d()}var c,f,m,g,i,q,h,k;if("object"!=typeof __lc_buttons||"number"!=typeof __lc_buttons.length||0==__lc_buttons.length)return!0;for(c in __lc_buttons)if(f=__lc_buttons[c],"string"==typeof f.elementId){if("undefined"==typeof f.language||!1==/^[a-z]+$/.test(f.language))f.language="en";if("undefined"==typeof f.skill||!1==/^[0-9]+$/.test(f.skill))f.skill="0";"undefined"==typeof f.window&&(f.window={});"undefined"==typeof f.window.width&&(f.window.width=530);"undefined"==typeof f.window.height&&
(f.window.height=520);g=j(f.elementId);if(null==g)return!0;"undefined"!=typeof f.link&&!1==f.link&&(g.innerHTML="");"undefined"==typeof f.type&&(f.type="graphical");q="";"undefined"!=typeof f.params&&(q="&params="+escape(unescape(f.params)));h="";"undefined"!=typeof f.name&&(h="&name="+escape(unescape(f.name)));k="";"undefined"!=typeof f.autologin&&!0==f.autologin&&(k="&autologin=1");q="https://"+this.conf.serv+"/licence/"+this.conf.lic+"/open_chat.cgi?lang="+f.language+"&groups="+f.skill+q+h+k+"#"+
encodeURIComponent(document.location);i="if (LC_API.embedded_chat_supported() && LC_API.embedded_chat_enabled()) { LC_API.show_full_view({lang:'"+f.language+"',skill:"+f.skill+"}); } else { window.open('"+q+"','Chat_"+this.conf.lic+"','width="+f.window.width+",height="+f.window.height+",resizable=yes,scrollbars=no'); }";switch(f.type){case "text":this.text_buttons_queue.push({button:f,container:g,lc_onclick:i+";return false"});break;default:g.innerHTML='<div id="'+f.elementId+'_button"></div>'+g.innerHTML,
g=j(f.elementId+"_button"),h=j(f.elementId).childNodes,"undefined"!=typeof h[1]&&"A"==h[1].nodeName&&(h[1].style.fontFamily="Tahoma,sans-serif",h[1].style.fontSize="11px",h[1].style.lineHeight="16px",h[1].style.textDecoration="none",h[1].setAttribute("target","_blank")),"undefined"!=typeof h[2]&&"SPAN"==h[2].nodeName&&(h[2].style.fontFamily="Tahoma,sans-serif",h[2].style.fontSize="11px",h[2].style.lineHeight="16px",h[2].style.color="#333"),m=document.createElement("a"),m.setAttribute("id",f.elementId+
"_btn"),m.setAttribute("href","http://"+this.conf.serv+"/licence/"+this.conf.lic+"/open_chat.cgi?lang="+f.language+"&groups="+f.skill),m.setAttribute("target","chat_"+this.conf.lic+"_"+this.conf.serv),function(a,s){var b,d,f,c=i;d=a.language;f=a.skill;b=function(){LC_API.embedded_chat_supported()&&LC_API.embedded_chat_enabled()?LC_API.show_full_view({lang:d,skill:f}):window.open(s,"Chat_"+LC_Invite.conf.lic,"width="+a.window.width+",height="+a.window.height+",resizable=yes,scrollbars=no")};this.msie&&
8>this.msie_version?m.setAttribute("onclick",function(){eval(c);return!1}):(!1===this.msie&&m.setAttribute("onclick",c+";return false;"),m.onclick=function(){b();return!1})}(f,q),g.appendChild(m),g=new Image,g.src=("https:"==document.location.protocol?"https://":"http://")+this.conf.serv+"/licence/"+this.conf.lic+"/button.cgi?lang="+f.language+decodeURIComponent("%26")+"groups="+f.skill+decodeURIComponent("%26")+"d="+(new Date).getTime(),g.style.border="0",m=j(f.elementId+"_btn"),m.appendChild(g)}}this.runTextButtonsQueue()};
this.runTextButtonsQueue=function(){if(0==this.text_buttons_queue.length)return!0;var a=LC_Invite;a.lc_text_link=null;var b=function(){if(null===a.lc_text_link||null===a.lc_text_link.interval){if(0==a.text_buttons_queue.length)return clearInterval(a.process_button_interval),a.process_button_interval=null,!0;var b=a.text_buttons_queue.shift();LC_Status="wait"}if("undefined"==typeof b)return!0;script=document.createElement("script");script.type="text/javascript";script.async=!0;script.src=a.httpp+a.conf.serv+
"/licence/"+a.conf.lic+"/buttontype.cgi?lang="+b.button.language+"&groups="+b.button.skill;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(script,e);a.lc_text_link=new function(){this.display=function(){var a;if("undefined"==typeof LC_Status||"wait"===LC_Status)return!1;clearInterval(this.interval);this.interval=null;"undefined"==typeof this.button.labels&&(this.button.labels={});"undefined"==typeof this.button.labels.online&&(this.button.labels.online=escape("LiveChat online"));
"undefined"==typeof this.button.labels.offline&&(this.button.labels.offline=escape("Leave a message"));"undefined"==typeof this.button.labels.callback&&(this.button.labels.callback=escape("Leave a message. We'll call you back."));"undefined"==typeof this.button.labels.voice&&(this.button.labels.voice=escape("Callback available"));"online"==LC_Status?a=this.button.labels.online:"offline"==LC_Status?a=this.button.labels.offline:"callback"==LC_Status?a=this.button.labels.callback:"voice"==LC_Status&&
(a=this.button.labels.voice);a=unescape(a);this.container.innerHTML='<a href="#" onclick="'+this.lc_onclick+'">'+a+"</a>"}};a.lc_text_link.button=b.button;a.lc_text_link.container=b.container;a.lc_text_link.lc_onclick=b.lc_onclick;a.lc_text_link.interval=setInterval(function(){a.lc_text_link.display()},30)};a.process_button_interval=setInterval(function(){b()},100)};this.get_force_reload=function(){return this.force_reload};this.set_force_reload=function(a){this.force_reload=a};this.setEmbeddedLoaded=
function(){this.EMBEDDED_LOADED=1};this.getEmbeddedLoaded=function(){return this.EMBEDDED_LOADED};this.set_custom_variables=function(a){a=x.parse(a);if(!1===a)return!1;this.conf.lc.params=a;this.set_force_reload(!0);this.ping()};this.ping=function(){var a=t.strip;if(!0===this.pingStopped||this.conf.client_limit_exceeded)return!1;this.lc_timerID&&clearTimeout(this.lc_timerID);this.lc_timerID_wait&&clearTimeout(this.lc_timerID_wait);this.lc_controlImage=new Image;pageDate=new Date;currTime=pageDate.getTime();
u=this.httpp+this.conf.serv+"/licence/"+this.conf.lic+"/control.cgi";u=u+"?"+currTime;u=u+"&"+this.conf.lc.session;if(0==this.lc_MC||!0==this.get_force_reload())this.set_force_reload(!1),u=u+"&"+this.conf.hostname,u=u+"&"+encodeURIComponent(document.location),u=""==document.referrer?u+"&$":u+"&"+encodeURIComponent(a(document.referrer)),u+="&"+this.conf.lc.last_visit,u+="&"+this.conf.lic,u+="&"+encodeURIComponent(a(this.conf.nick)),u+="&"+this.conf.lc.page_view,u+="&"+this.conf.lc.visit_number,u+=
"&"+this.conf.lc.chat_number,u+="&"+this.conf.lc.all_invitation,u+="&"+this.conf.lc.ok_invitation,u+="&"+encodeURIComponent(this.conf.lc.last_operator_id),u+="&"+this.conf.lc.client_version,u+="&"+this.conf.lc.params,u=""==document.title?u+"&$":u+"&"+encodeURIComponent(a(document.title)),u=u+"&"+this.conf.lc.groups;this.lc_MC++;this.lc_controlImage.src=u;this.lc_timerID=setTimeout("LC_Invite.ping()",this.lc_R);this.lc_timerID_wait=setTimeout("LC_Invite.lc_after_send()",500)};this.lc_after_send=function(){this.lc_timerID_wait&&
clearTimeout(this.lc_timerID_wait);if(!0==this.lc_controlImage.complete){var a=this.lc_controlImage.width;24==a||33==a||34==a||36==a?0==this.lc_I&&1==this.lc_Z?34==a?this.load_personal_invitation():36==a?this.load_auto_invitation():this.load_standard_invitation():0==this.lc_I&&0==this.lc_W&&(this.lc_Z=1):35==a?this.lc_MC=0:128<=a&&255>a?this.lc_R=1E3*(a-127):255==a?(this.lc_timerID&&clearTimeout(this.lc_timerID),this.lc_timerID_wait&&clearTimeout(this.lc_timerID_wait)):(this.lc_W=0,this.lc_Z=1);0<
this.lc_I&&this.lc_I--}else this.lc_timerID_wait=setTimeout("LC_Invite.lc_after_send()",500)};this.check_if_invitation_allowed=function(a){return!0===LC_API.chat_window_maximized()?!1:a>this.current_invitation||a==this.current_invitation&&a!=this.INVITATION_STANDARD?!0:!1};this.load_standard_invitation=function(){if(!1==this.check_if_invitation_allowed(this.INVITATION_STANDARD))return!1;this.current_invitation=this.INVITATION_STANDARD;v.trackPageView("/LiveChat/Invitation/Standard/");this.display_invitation(this.standard_invite_html,
this.conf.position)};this.load_personal_invitation=function(){if(!1==this.check_if_invitation_allowed(this.INVITATION_PERSONAL))return!1;this.current_invitation=this.INVITATION_PERSONAL;v.trackPageView("/LiveChat/Invitation/Personal/");var a=this.httpp,b=document.getElementsByTagName("head")[0];script=document.createElement("script");script.id=this.private_invite_script_id;script.type="text/javascript";script.src=a+this.conf.serv+"/invite.cgi?status="+this.conf.status+"&licence="+this.conf.lic+"&lang="+
this.conf.lang+"&skill="+this.conf.lc.groups+"&sess="+this.conf.lc.session+"&base_url="+a+this.conf.serv+"&redirect="+encodeURIComponent(a+this.conf.redirect_url)+"&rand="+Math.floor(1E3*Math.random());b.appendChild(script)};this.load_auto_invitation=function(){if(!1==this.check_if_invitation_allowed(this.INVITATION_AUTO))return!1;this.current_invitation=this.INVITATION_AUTO;v.trackPageView("/LiveChat/Invitation/Auto/");var a=this.httpp,b=document.getElementsByTagName("head")[0];script=document.createElement("script");
script.id=this.auto_invite_script_id;script.type="text/javascript";script.src=a+this.conf.serv+"/invite_auto.cgi?sess="+this.conf.lc.session+"&rand="+Math.floor(1E3*Math.random());b.appendChild(script)};this.show_overlay_layer=function(){this.$overlay.style.display="block";this.overlay_fade_in()};this.hide_overlay_layer=function(){this.$overlay.style.display="none"};this.show_invitation_layer=function(a,b){if(!1==this.$invitation_image.complete)return setTimeout(function(){LC_Invite.show_invitation_layer(a,
b)},50),!1;"left"==b.option&&(b.option="centered",b.arg1=0,b.arg2=0);this.conf.overlay.enabled=Boolean("centered"==b.option);this.$invitation_layer.style.display="block";this.$invitation_layer.style.width=parseInt(this.$invitation_image.width)+"px";this.conf.overlay.enabled?(this.$invitation_layer.style.marginLeft="-"+parseInt(this.$invitation_image.width/2)+"px",this.$invitation_layer.style.marginTop="-"+parseInt(this.$invitation_image.height/2)+"px"):(this.$invitation_layer.style.marginLeft="0",
this.$invitation_layer.style.marginTop="0");this.conf.overlay.enabled?(this.show_overlay_layer(),this.$invitation_layer.style.position="fixed",this.$invitation_layer.style.top="50%",this.$invitation_layer.style.left="50%"):(this.hide_overlay_layer(),this.$invitation_layer.style.position="absolute",this.$invitation_layer.style.left="",this.$invitation_layer.style.top="");this.$invitation_layer.style.bottom="";this.conf.overlay.enabled&&!1===this.supportsPositionFixed?(this.$invitation_layer.style.position=
"absolute",this.$overlay.style.position="absolute",this.$overlay.style.height=this.getClientHeight(),this.$overlay.style.width=this.getClientWidth(),!1==this.quirks_mode_interval&&(this.quirks_mode_interval=setInterval(function(){LC_Invite.$overlay.style.top=LC_Invite.getScrollTop();LC_Invite.$invitation_layer.style.marginTop=0;LC_Invite.$invitation_layer.style.top=LC_Invite.getScrollTop()+LC_Invite.getClientHeight()/2-LC_Invite.$invitation_image.height/2},10))):!1!==this.quirks_mode_interval&&(clearInterval(this.quirks_mode_interval),
this.quirks_mode_interval=null);this.ie6&&(this.$invitation_image.parentNode.style.display="inline-block",this.$invitation_image.parentNode.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+this.$invitation_image.src+"')",this.$invitation_image.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)",this.$invitation_layer.style.width=this.$invitation_image.width+"px",this.$invitation_layer.style.height=this.$invitation_image.height+"px",this.$invitation_layer.style.background=
"url("+this.httpp+this.conf.serv+"/server/images/pixel.gif)");this.$invitation_image.style.backgroundColor="transparent";if(this.conf.overlay.enabled)return!1;var d=document,c=d.getElementById?d.getElementById(a):d.all?d.all[a]:d.layers[a],f=document.layers?"":"px";window[a+"_obj"]=c;d.layers&&(c.style=c);var g=this;c.cx=c.sx=b.arg2;c.cy=c.sy=b.arg1;c.sP=function(a,d){var s=-2*b.arg1+LC_Invite.getClientHeight()-g.$invitation_image.height;"topLeft"==b.option?(this.style.left=a+f,this.style.top=d+f):
"topRight"==b.option?(this.style.left=g.getClientWidth()-g.$invitation_image.width-a+f,this.style.top=d+f):"topCenter"==b.option?(this.style.top=d+f,this.style.left="50%",this.style.marginLeft=-parseInt(g.$invitation_image.width/2)+"px"):"bottomRight"==b.option?(this.style.left=g.getClientWidth()-g.$invitation_image.width-a+f,this.style.top=d+s+f):"bottomLeft"==b.option?(this.style.top=d+s+f,this.style.left=a+f):"bottomCenter"==b.option&&(this.style.top=d+s+f,this.style.left="50%",this.style.marginLeft=
-parseInt(g.$invitation_image.width/2)+"px")};c.floatIt=function(){var a,b;a=0<=this.sx?0:LC_Invite.getClientWidth();b=LC_Invite.getScrollTop();0>this.sy&&(b+=LC_Invite.getClientHeight());this.cx+=parseInt((a+this.sx-this.cx)/8);this.cy+=parseInt((b+this.sy-this.cy)/8);this.sP(this.cx,this.cy);g.floatItTimeout=setTimeout(this.id+"_obj.floatIt()",20)};c.floatIt()};this.lc_popup_hide=function(){this.current_invitation==this.INVITATION_PERSONAL?this.remove_js(this.private_invite_script_id):this.current_invitation==
this.INVITATION_AUTO&&this.remove_js(this.auto_invite_script_id);this.$invitation_layer.style.display="none";this.$overlay.style.display="none";clearTimeout(this.floatItTimeout)};this.lc_popup_close=function(){this.lc_popup_hide();l.send("source_no_invitation");this.current_invitation=this.INVITATION_NONE;(new Image).src=this.httpp+this.conf.serv+"/licence/"+this.conf.lic+"/tunnel.cgi?IWCS0014C^inviterefused^"+this.conf.lc.session+"^$^&rand="+Math.floor(1E3*Math.random())};this.lc_open_chat=function(a,
b){var d;this.lc_popup_hide();"undefined"===typeof a?(l.send("source_invitation"),a=""):l.send("source_invitation;"+encodeURIComponent(a));"undefined"===typeof b&&(b=this.conf.lc.groups);LC_API.embedded_chat_supported()&&LC_API.embedded_chat_enabled()?LC_API.show_full_view():(d="https://"+this.conf.serv+"/licence/"+this.conf.lic+"/open_chat.cgi?lang="+this.conf.lang+"&groups="+b+"&trigger="+encodeURIComponent(a)+"#"+encodeURIComponent(document.location),window.open(d,"Chat_"+this.conf.lic,"width=530,height=520,resizable=yes,scrollbars=no"))};
this.getWindowDimensions=function(){return"CSS1Compat"===document.compatMode||!document.body.clientHeight?[document.documentElement.clientWidth,document.documentElement.clientHeight]:[document.body.clientWidth,document.body.clientHeight]};this.getClientWidth=function(){return this.getWindowDimensions()[0]};this.getClientHeight=function(){return this.getWindowDimensions()[1]};this.getScrollTop=function(){var a;self.pageYOffset?a=self.pageYOffset:document.documentElement&&document.documentElement.scrollTop?
a=document.documentElement.scrollTop:document.body&&(a=document.body.scrollTop);return a};this.display_invitation=function(a,b){if("undefined"!==typeof LC_AutoInvite&&!0===LC_API.embedded_chat_enabled()){var d,c,f;d=a.match(/lc_open_chat\('(.*?)', (.*?)\)/);c=d[1];d=d[2];"function"===typeof LC_AutoInvite.get_invitation_content?f=LC_AutoInvite.get_invitation_content():"function"===typeof LC_AutoInvite.construct_invite?(f=LC_AutoInvite.construct_invite(),f=f.match(/div_greeting-message">(.*?)<\/div>/)[1]?
f.match(/div_greeting-message">(.*?)<\/div>/)[1]:""):f="";LC_API.display_embedded_invitation(f,c,d);return!0}this.lc_popup_hide();this.conf.overlay.enabled=Boolean("centered"==b.option);this.$invitation_layer.innerHTML=a;this.current_invitation==this.INVITATION_STANDARD?c="lc_standard_invitation_img":this.current_invitation==this.INVITATION_PERSONAL?c="lc_personal_invitation_img":this.current_invitation==this.INVITATION_AUTO&&(c="lc_auto_invitation_img");this.$invitation_image=j(c);this.show_invitation_layer(this.invitation_layer_id,
b)};this.remove_js=function(a){for(var b=document.getElementsByTagName("script"),d=b.length;0<=d;d--)b[d]&&null!=b[d].getAttribute("id")&&-1!=b[d].getAttribute("id").indexOf(a)&&b[d].parentNode.removeChild(b[d])};this.overlay_fade_in=function(){var a=function(a){var b=LC_Invite.$overlay.style;b.opacity=b.MozOpacity=b.KhtmlOpacity=a/100;b.filter="alpha(opacity="+a+")"};a(0);var b=parseInt(100*this.conf.overlay.opacity),d=Math.abs((b-0)/5),c=function(f){f>d?a(b):(a(Math.ceil(0+(b-0)*(f/d))),++f,setTimeout(function(){c(f)},
40))};c(1)};this.iframe_full_view_loaded=function(){};this.load_embedded_window=function(){var a,b,d,g;if(!1===LC_API.embedded_chat_supported()||!1===LC_API.embedded_chat_enabled())return LC_API.on_load(),!1;document.getElementsByTagName("body");d=document.createElement("div");d.setAttribute("id","livechat-full");a=d.style;a.position="fixed";a.bottom="0";a.right=this.conf.embedded.dimensions.margin+"px";a.width=this.conf.embedded.dimensions.width+"px";a.height=this.conf.embedded.dimensions.height+
"px";a.overflow="hidden";a.visibility="hidden";a.zIndex="2147483639";a.background="transparent";a.border="0";iframe='<iframe src="'+o+'" id="livechat-full-view" onload="LC_Invite.iframe_full_view_loaded()" name="livechat-full-view" scrolling="no" frameborder="0" allowtransparency="true" style="position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;border:0;padding:0;margin:0;float:none;background:none;"></iframe>';d.innerHTML=iframe;g=document.createElement("div");g.setAttribute("id",
"livechat-compact-container");b=g.style;b.position="fixed";b.bottom="0";b.right=this.conf.embedded.dimensions.margin+"px";b.width=this.conf.embedded.dimensions.width_minimized+"px";b.height="53px";b.overflow="hidden";b.visibility="hidden";b.zIndex="2147483639";b.background="transparent";b.border="0";!0===h.is_mobile&&(a.left=a.right,a.right="auto",b.left=b.right,b.right="auto");g.innerHTML='<iframe src="javascript:false" id="livechat-compact-view" style="position: relative;top: 20px;left: 0;width: 100%;border: 0;padding: 0;margin: 0;float: none;background: none" scrolling="no" frameBorder="0" allowtransparency="true"><!DOCTYPE html></iframe><a id="livechat-badge" href="#" onclick="LC_API.show_full_view();return false" style="position: absolute;display: block;visibility: hidden;top: 12px;left: 20px;height: 16px;padding: 0 4px;line-height: 16px;background: #f00;color: #fff;font-size: 10px;text-decoration: none;font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', Arial, Verdana, sans-serif;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;box-shadow: 0 -1px 0px #f00, -1px 0 0px #f00, 1px 0 0px #f00, 0 1px 0px #f00, 0 0 2px #000;border-top: 1px solid #f99"></div>';
var f=function(a){(function(a){var b=j(a).style;b.position="absolute";b.bottom="auto";setInterval(function(){var a=LC_Invite.getScrollTop()+LC_Invite.getClientHeight();b.height&&(b.top=a-parseInt(b.height,10)+"px")},10)})(a)};!0!==this.supportsPositionFixed?(k.appendToBody(d,function(){f("livechat-full")}),k.appendToBody(g,function(){f("livechat-compact-view")})):(k.appendToBody(d),k.appendToBody(g));B.init();c.init();var i,l;l=function(){var a;if(document.frames)try{if(document.frames["livechat-compact-view"].document.body.style)return!0}catch(b){return!1}else{a=
j("livechat-compact-view");a=a.contentWindow||a.contentDocument;a.document&&(a=a.document);try{if(a.body.style)return!0}catch(d){return!1}}};var n=this;i=setInterval(function(){if(!1===l())return!1;clearInterval(i);i=null;var a;document.frames&&document.frames["livechat-compact-view"]?a=document.frames["livechat-compact-view"].document:(a=j("livechat-compact-view"),a=a.contentWindow||a.contentDocument,a.document&&(a=a.document));a.body.style.margin="0";a.body.style.padding="0";c.render();n.embedded_chat_inited=
!0;if(!1===LC_Invite.supportsPositionFixed){var b=j("livechat-full"),d=j("livechat-compact-container");b.style.position="absolute";b.style.bottom="auto";d.style.position="absolute";d.style.bottom="auto";setInterval(function(){if(!d.offsetHeight)return!1;b.style.top=LC_Invite.getScrollTop()+LC_Invite.getClientHeight()-b.offsetHeight+"px";d.style.top=LC_Invite.getScrollTop()+LC_Invite.getClientHeight()-d.offsetHeight+"px"},10)}},100)}}if("undefined"!==typeof window.__lc_inited)return!0;window.__lc_inited=
1;var k={appendToBody:function(a,d){var c,b;c=function(){try{return document.body.appendChild(a),!0}catch(b){}return!1};b=setInterval(function(){if(c())return"function"===typeof d&&d(),clearInterval(b),b=null,!0},100)},isReady:!1,ready:function(a){/(msie) ([\w.]+)/.exec(navigator.userAgent.toLowerCase())?this.waitForDOMReady(a):a()},waitForDOMReady:function(a){k.readyFn=a;document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&k.itsReady()});window.attachEvent("onload",
k.itsReady);a=!1;try{a=null==window.frameElement}catch(d){}document.documentElement.doScroll&&a&&k.doScrollCheck()},doScrollCheck:function(){if(!k.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(k.doScrollCheck,1);return}k.itsReady()}},itsReady:function(){if(!k.isReady){if(!document.body)return setTimeout(k.itsReady,1);k.isReady=!0;"function"===typeof k.readyFn&&k.readyFn()}}},v={enabled:null,setEnabled:function(a){this.enabled=a},trackPageView:function(a){if(!0!==this.enabled||
!0!==LC_Invite.is_main_window)return!1;"/"!==a[0]&&(a="/"+a);"object"===typeof pageTracker&&"function"===typeof pageTracker._trackPageview?pageTracker._trackPageview(a):"function"===typeof urchinTracker?urchinTracker(a):"object"===typeof _gaq&&_gaq.push(["_trackPageview",a])}},y=function(){var a,d,c=1,b,g=this;return{postMessage:function(a,b,d){b&&(d=d||parent,g.postMessage?d.postMessage(a,b.replace(/([^:]+:\/\/[^\/]+).*/,"$1")):b&&(d.location=b.replace(/#.*$/,"")+"#"+ +new Date+c++ +"&"+a))},receiveMessage:function(c,
f){if(g.postMessage)if(c&&(b=function(a){if("string"===typeof f&&a.origin!==f||"[object Function]"===Object.prototype.toString.call(f)&&!1===f(a.origin))return!1;c(a)}),g.addEventListener)g[c?"addEventListener":"removeEventListener"]("message",b,!1);else g[c?"attachEvent":"detachEvent"]("onmessage",b);else a&&clearInterval(a),a=null,c&&(a=setInterval(function(){var a=document.location.hash,b=/^#?\d+&/;a!==d&&b.test(a)&&(d=a,c({data:a.replace(b,"")}))},100))}}}(),l={chat_reloaded:!1,init:function(){this.bindReceive()},
send:function(a){if(!1===LC_API.embedded_chat_supported())return!1;y.postMessage(encodeURIComponent(a),o,frames["livechat-full-view"]);return!1},bindReceive:function(){var a=this;y.receiveMessage(function(d){a.receive(d)},"https://"+i.serv);y.receiveMessage(function(d){a.receive(d)},"http://"+i.serv)},receive:function(a){if(!1===LC_Invite.embedded_chat_inited&&!window.postMessage)return!1;a=a.data;a=decodeURIComponent(a);if("set_cookie"==a)z();else if(/^new_messages;/.test(a))a=parseInt(a.split(";")[1],
10),c.newMessageNotification(a);else if(/^custom_css;/.test(a))a=decodeURIComponent(a.split(";")[1]),c.setCustomCSS(a);else if("minimize"==a)LC_API.minimize_chat_window();else if("invitation_refused"==a||"invitation_operators_offline"==a)"invitation_refused"==a&&((new Image).src=LC_Invite.httpp+LC_Invite.conf.serv+"/licence/"+LC_Invite.conf.lic+"/tunnel.cgi?IWCS0014C^inviterefused^"+LC_Invite.conf.lc.session+"^$^&rand="+Math.floor(1E3*Math.random())),LC_API.minimize_chat_window();else if("chat_reload"==
a)j("livechat-full").style.visibility="hidden",this.chat_reloaded=!0;else if("main_window"==a)LC_Invite.is_main_window=!0;else if(/^operator;/.test(a))a=decodeURIComponent(a.split(";")[1]),c.setOperatorDisplayName(a);else if(/^state;/.test(a))a=a.split(";"),c.setState(a[1]),c.updateText(),!0===LC_Invite.get_embedded_chat_option(LC_Invite.EMBEDDED_DISABLE_WHEN_OFFLINE)&&(c.getState()===c.STATE_OFFLINE?LC_API.hide_chat_window():c.getPreviousState()===c.STATE_OFFLINE&&LC_API.minimize_chat_window());
else if(/^pushpage;/.test(a))a=a.split(";"),window.location.href=a[1];else if(/^message_read$/.test(a))c.disableNewMessageNotification();else if(/^ga_enabled;/.test(a))a="1"===a.split(";")[1],v.setEnabled(a);else if(/^ga;/.test(a))a=decodeURIComponent(a.split(";")[1]),v.trackPageView(a);else if(/^init;/.test(a)){var d,g,b,a=a.split(";");LC_Invite.setEmbeddedLoaded();n.Embedded_leave_message=decodeURIComponent(a[9]);n.Embedded_chat_now=decodeURIComponent(a[10]);n.Embedded_waiting_for_operator=decodeURIComponent(a[11]);
n.Embedded_chat_with=decodeURIComponent(a[12]);n.Embedded_chat_ended=decodeURIComponent(a[13]);n.Embedded_new_message=decodeURIComponent(a[14]);c.setBackground(a[1]);c.setBorder(a[5]);c.setTextColor(a[2]);c.setTextShadow(a[3]);c.setTitleButton(a[4]);c.setOperatorsOnline(a[6]);c.render();""!==a[7]&&(c.setState(a[7]),c.updateText());d=a[7]==c.STATE_CHATTING;g=a[7]==c.STATE_QUEUE;b=LC_Invite.get_embedded_chat_option(LC_Invite.EMBEDDED_DISABLE_WHEN_OFFLINE);""!==a[8]&&c.setOperatorDisplayName(decodeURIComponent(a[8]));
"$"!==i.nick&&l.send("nick;"+encodeURIComponent(i.nick));LC_API.on_load();if(c.getState()===c.STATE_OFFLINE&&!0===b)return LC_API.hide_chat_window(),!0;if(!0===LC_Invite.embedded_chat_hidden_by_api)return!0;!0===d||!0===g||!0===this.chat_reloaded?(a=r.get("lc_window_state"),"full"===a?LC_API.open_chat_window():LC_API.minimize_chat_window()):LC_API.minimize_chat_window()}}},x={parse:function(a){return"string"===typeof a?this._parseString(a):"object"===typeof a?this._parseObject(a):!1},_parseString:function(a){var d=
decodeURIComponent,c=encodeURIComponent;if("$"===a)return"";a=t.strip(a);return a===d(a)?c(c(a)):d(a)===d(d(a))?c(a):d(d(a))===d(d(d(a)))?a:d(d(d(a)))===d(d(d(d(a))))?d(a):""},_parseObject:function(a){var d,c,b,g;g=t.strip;d=[];for(c in a)b=a[c],"object"!==typeof b||"undefined"===typeof b.name||"undefined"===typeof b.value||(b.name=""+b.name,b.value=""+b.value,d.push(encodeURIComponent(g(b.name))+"="+encodeURIComponent(g(b.value))));return encodeURIComponent(d.join("&"))}},C={parse:function(a){if("object"!==
typeof a||a.constructor!==Object)return!1;"undefined"!==typeof a.name&&(a.name=""+a.name,i.nick=t.strip(a.name))}},t={strip:function(a){return"string"!==typeof a?a:a.replace(/[\x01-\x08\x0B\x0C\x0E-\x1F\x7F]/g,"")}},n={},p=function(a,d){var c;if("undefined"===typeof n[a])return"";c=n[a];if(d)for(var b in d)c=c.replace("%"+b+"%",d[b]),c=c.replace("%"+b,d[b]);return c},c={STATE_OFFLINE:0,STATE_PRE_CHAT:1,STATE_QUEUE:2,STATE_CHATTING:3,STATE_POST_CHAT:4,STATE_CHAT_ENDED:5,STATE_INVITATION:6,previous_state:null,
state:null,operator_display_name:null,cache_interval:null,$iframe:null,text_label:"Chat now",open_icon:"",layout:{text_color:"",text_shadow:"",border_color:"",background_color:"",title_button_background:""},custom_css:"",titleNotification:"",originalTitle:"",TITLE_NOTIFICATION_HIDDEN:!0,TITLE_NOTIFICATION_APPENDED:!1,titleNotificationInterval:null,titleNotificationAnimateSpeed:1E3,titleNotificationFlag:!0,tabActive:!0,init:function(){this.$iframe=j("livechat-compact-view");this.originalTitle=document.title;
this.checkIfTabActive()},checkIfTabActive:function(){fnFocus=function(){c.tabActive=!0;l.send("tab_active")};fnBlur=function(){c.tabActive=!1;l.send("tab_inactive")};window.onfocus=fnFocus;window.onblur=fnBlur},getIFrameBody:function(){var a;document.frames&&document.frames["livechat-compact-view"]?a=document.frames["livechat-compact-view"].document:(a=j("livechat-compact-view"),a=a.contentWindow||a.contentDocument,a.document&&(a=a.document));return a},render:function(){var a;this.$iframeBody=c.getIFrameBody();
a="<style>"+this.custom_css+"</style>";a+='<div id="extra" style="display:block;position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:5;background:'+this.layout.border_color+';-moz-border-radius:15px;-moz-border-radius-bottomleft:0;-moz-border-radius-bottomright:0;-webkit-border-radius:15px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;border-radius:15px;border-bottom-left-radius:0;border-bottom-right-radius:0;"></div>\t\t               <div id="content-container" style="position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;z-index:6;line-height:22px"><div id="content" style="margin: 7px 7px 0;padding: 2px 8px;background:'+
this.layout.background_color+';-moz-border-radius:10px;-moz-border-radius-bottomleft:0;-moz-border-radius-bottomright:0;-webkit-border-radius:10px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0;border-radius:10px;border-bottom-left-radius:0;border-bottom-right-radius:0">\t\t               <a href="javascript:void(null)" onclick="parent.LC_API.open_chat_window()" id="full-view-button" style="display:block;position:relative;padding:0;cursor:pointer;outline:0;font-size:14px;font-family:\'Lucida Grande\',\'Lucida Sans Unicode\',Arial,Verdana,sans-serif;color:'+
this.layout.text_color+";text-shadow:"+this.layout.text_shadow+';text-decoration:none;font-weight:bold;">'+this.open_icon+'<span style="display:block;width:196px;height:100%;overflow:hidden;white-space:nowrap;">'+this.text_label+"</span></a>\t\t               </div></div>";if("undefined"===typeof this.$iframeBody.body||null===this.$iframeBody.body)return setTimeout(function(){c.render()},200),!1;this.$iframeBody.body.innerHTML=a;this.$iframeBody.body.style.margin="0px";this.$iframeBody.body.style.padding=
"0px";null===this.cache_interval&&(this.cache_interval=setInterval(function(){"false"==c.$iframeBody.body.innerHTML&&(c.render(),c.cache_interval=null)},2E3))},setState:function(a){this.previous_state=this.state;this.state=parseInt(a,10)},getState:function(){return this.state},getPreviousState:function(){return this.previous_state},setOperatorDisplayName:function(a){this.operator_display_name=a;this.state!==c.STATE_CHATTING&&this.setState(c.STATE_CHATTING);this.updateText();this.titleNotification=
p("Embedded_new_message",{operator:this.operator_display_name})},setOperatorsOnline:function(a){0<a?this.setState(c.STATE_PRE_CHAT):this.setState(c.STATE_OFFLINE);this.updateText()},updateText:function(){switch(c.state){case c.STATE_OFFLINE:this._setText(p("Embedded_leave_message"));break;case c.STATE_PRE_CHAT:case c.STATE_INVITATION:this._setText(p("Embedded_chat_now"));break;case c.STATE_QUEUE:this._setText(p("Embedded_waiting_for_operator"));break;case c.STATE_CHATTING:this._setText(p("Embedded_chat_with",
{operator:this.operator_display_name}));break;case c.STATE_POST_CHAT:this._setText(p("Embedded_chat_ended"));break;case c.STATE_CHAT_ENDED:this._setText(p("Embedded_chat_ended"))}},_setText:function(a){this.text_label=a;this.render()},setTextColor:function(a){this.layout.text_color=a},setTextShadow:function(a){this.layout.text_shadow=a},setTitleButton:function(a){this.layout.title_button_background=a;this._updateOpenIcon()},setBorder:function(a){this.layout.border_color=a},setBackground:function(a){this.layout.background_color=
a;this._updateOpenIcon()},setCustomCSS:function(a){this.custom_css=a;this.render()},_updateOpenIcon:function(){this.open_icon='<span style="position:relative;display:block;float:right;width:19px;height:19px;margin-top:2px;background: '+this.layout.title_button_background+" url("+(-1!=window.location.protocol.indexOf("https")?"https://":"http://")+"cdn.livechatinc.com/img/sprite.20111206.png) no-repeat -16px -153px;-moz-box-shadow:-8px 0 6px "+this.layout.background_color+";-webkit-box-shadow:-8px 0 6px "+
this.layout.background_color+";box-shadow:-8px 0 6px "+this.layout.background_color+';cursor:pointer"></span>'},newMessageNotification:function(a){var d;if(!0===this.tabActive&&!0===LC_API.chat_window_maximized())return!0;!0===LC_API.chat_window_minimized()&&this._setText(p("Embedded_new_message",{operator:this.operator_display_name}));null===this.titleNotificationInterval&&(this.titleNotificationInterval=setInterval(function(){c.animateTitleTag()},this.titleNotificationAnimateSpeed));!0===LC_API.chat_window_minimized()&&
(d=j("livechat-badge"),d.innerHTML=a,d.style.visibility="visible")},disableNewMessageNotification:function(){j("livechat-badge").style.visibility="hidden";this.animateTitleTag({force_hide:!0});this.updateText()},animateTitleTag:function(a){a={force_hide:a&&a.force_hide||!1};if(this.titleNotificationFlag===c.TITLE_NOTIFICATION_HIDDEN){if(!0!==a.force_hide&&(!1===c.tabActive||!0===LC_API.chat_window_minimized()))document.title=this.titleNotification,this.titleNotificationFlag=c.TITLE_NOTIFICATION_APPENDED}else document.title=
this.originalTitle,this.titleNotificationFlag=c.TITLE_NOTIFICATION_HIDDEN;!0===a.force_hide&&(clearInterval(this.titleNotificationInterval),this.titleNotificationInterval=null)}},B={$container:null,init:function(){this.$container=j("livechat-full")}},r={set:function(a,d,c){if(c){var b=new Date;b.setTime(b.getTime()+864E5*c);c="; expires="+b.toGMTString()}else c="";document.cookie=a+"="+d+c+"; path=/"},get:function(a){for(var a=a+"=",d=document.cookie.split(";"),c=0;c<d.length;c++){for(var b=d[c];" "==
b.charAt(0);)b=b.substring(1,b.length);if(0==b.indexOf(a))return b.substring(a.length,b.length)}return null},erase:function(a){r.set(a,"",-1)}};LC_API={on_load:"object"===typeof LC_API&&"function"===typeof LC_API.on_load?LC_API.on_load:function(){},on_chat_window_opened:"object"===typeof LC_API&&"function"===typeof LC_API.on_chat_window_opened?LC_API.on_chat_window_opened:function(){},on_chat_window_minimized:"object"===typeof LC_API&&"function"===typeof LC_API.on_chat_window_minimized?LC_API.on_chat_window_minimized:
function(){},on_chat_window_hidden:"object"===typeof LC_API&&"function"===typeof LC_API.on_chat_window_hidden?LC_API.on_chat_window_hidden:function(){},get_window_type:function(){return!0===this.embedded_chat_enabled()?"embedded":"popup"},chat_window_maximized:function(){var a=j("livechat-full");return a&&"visible"===a.style.visibility&&a.offsetWidth&&a.offsetHeight?!0:!1},chat_window_minimized:function(){var a=j("livechat-compact-container");return a&&"visible"===a.style.visibility&&a.offsetWidth&&
a.offsetHeight?!0:!1},chat_window_hidden:function(){return!1===this.chat_window_maximized()&&!1===this.chat_window_minimized()},chat_running:function(){return c.getState()===c.STATE_CHATTING},operators_are_offline:function(){return c.getState()===c.STATE_OFFLINE},operators_are_available:function(){return!this.operators_are_offline()},show_full_view:function(a){var d;d=!1;"undefined"===typeof a&&(d=!0);a=a||{};"undefined"===typeof a.lang&&(a.lang=i.lang);"undefined"===typeof a.skill&&(a.skill=i.lc.groups);
a.skill=parseInt(a.skill,10);if(null===j("livechat-compact-container"))return!1;r.set("lc_window_state","full");c.newMessagesCounter=0;j("livechat-badge").style.visibility="hidden";!1===d&&(a.lang!==__lc_iframe_current_lang||a.skill!==__lc_iframe_current_skill)?(a.skill=parseInt(a.skill,10),__lc_iframe_current_lang=a.lang,__lc_iframe_current_skill=a.skill,w=h.protocol+i.serv+"/licence/"+i.lic+"/open_chat.cgi?lang="+__lc_iframe_current_lang+"&groups="+__lc_iframe_current_skill+"&embedded="+i.embedded_window_enabled,
o=w+"#"+document.location.toString(),a=j("livechat-full-view"),d=function(){c.updateText();l.send("maximize");j("livechat-compact-container").style.visibility="hidden";j("livechat-full").style.visibility="visible"},LC_Invite.msie?LC_Invite.iframe_full_view_loaded=d:a.onload=d,a.src?a.src=o:null!==a.contentWindow&&null!==a.contentWindow.location?a.contentWindow.location=o:a.setAttribute("src",o)):(c.updateText(),l.send("maximize"),j("livechat-compact-container").style.visibility="hidden",j("livechat-full").style.visibility=
"visible")},minimize_chat_window:function(){if(null===j("livechat-compact-container"))return!1;r.set("lc_window_state","minimized");j("livechat-compact-container").style.visibility="visible";j("livechat-full").style.visibility="hidden";LC_API.on_chat_window_minimized()},hide_chat_window:function(){LC_Invite.embedded_chat_hidden_by_api=!0;if(null===j("livechat-compact-container"))return!1;j("livechat-compact-container").style.visibility="hidden";j("livechat-full").style.visibility="hidden";j("livechat-badge").style.visibility=
"hidden";LC_API.on_chat_window_hidden()},set_custom_variables:function(a){LC_Invite.set_custom_variables(a)},open_chat_window:function(){"embedded"===this.get_window_type()?this.show_full_view():LC_Invite.lc_open_chat();LC_API.on_chat_window_opened()},get_visitor_id:function(){return i.lc.session},get_last_visit_timestamp:function(){return parseInt(i.lc.last_visit)},get_chats_number:function(){return parseInt(i.lc.chat_number)},get_page_views_number:function(){return parseInt(i.lc.page_view)},get_visits_number:function(){return parseInt(i.lc.visit_number)},
get_invitations_number:function(){return parseInt(i.lc.all_invitation)},get_accepted_invitations_number:function(){return parseInt(i.lc.ok_invitation)},get_last_operator_login:function(){return i.lc.last_operator_id.replace(/^\$$/,"")},embedded_chat_supported:function(){return"undefined"!==typeof LC_Invite&&!1===LC_Invite.embeddedWindowSupported?!1:!0},embedded_chat_enabled:function(){return"undefined"!==typeof LC_Invite&&!0===LC_Invite.get_embedded_chat_option(LC_Invite.EMBEDDED_ENABLED)?!0:!1},
display_embedded_invitation:function(a,d,c){var b,g=this;if(!1===this.embedded_chat_enabled()&&"undefined"!==typeof LC_AutoInvite)return b="function"===typeof LC_AutoInvite.get_layer_html?LC_AutoInvite.get_layer_html():"function"===typeof LC_AutoInvite.construct_invite?LC_AutoInvite.construct_invite():"",LC_Invite.display_invitation(b,LC_AutoInvite.config.position),!0;if(!LC_Invite.getEmbeddedLoaded())return setTimeout(function(){g.display_embedded_invitation(a,d,c)},500),!1;if(!1===this.embedded_chat_supported())return!1;
if(!0===this.chat_window_maximized()||!0===this.chat_running())return!0;"undefined"===typeof d&&(d="");c="undefined"===typeof c?"":parseInt(c,10);l.send("invitation;"+encodeURIComponent(d)+";"+c+";"+encodeURIComponent(a));this.show_full_view()},load_standard_invitation:function(){LC_Invite.load_standard_invitation()}};var i={},w="",o="",g=window.__lc||{};g.license=g.license||0;g.lang=g.lang||"en";g.skill=g.skill||0;g.params=g.params||"";g.visitor=g.visitor||{};g.gis=0;"$LC_LICENCE"!==decodeURIComponent("%24")+
"LC_LICENCE"&&(g.license="$LC_LICENCE",g.lang="$LANG",g.skill="$LC_GROUPS",g.params="$LC_PARAMS");var h={protocol:-1!=window.location.protocol.indexOf("https")?"https://":"http://",totalGisServers:5,usedGisServers:0,totalUsedGisServers:0,usedGisServersObj:{},is_mobile:!1,init:function(){h.askGIS()},getCachedServer:function(){var a;a=r.get("__lc."+g.license);return!a?!1:a},cacheServer:function(a){r.set("__lc."+g.license,a)},askGIS:function(){var a,d;a=h.getCachedServer();if(!1!==a)return h.setServer(a),
h.loadData(),!0;__lc_gis=function(a){if(0!==g.gis)return!0;g.gis=1;if("undefined"===typeof a.server)return!1;h.setServer(a.server);h.cacheServer(a.server);h.loadData()};h.totalUsedGisServers++;if(h.totalUsedGisServers>2*h.totalGisServers)return!1;h.usedGisServers>=h.totalGisServers&&(h.usedGisServers=0,h.usedGisServersObj={});do a=Math.ceil(Math.random()*h.totalGisServers);while("undefined"!==typeof h.usedGisServersObj[a]);h.usedGisServersObj[a]=1;h.usedGisServers++;d=document.createElement("script");
d.src=h.protocol+"gis"+a+".livechatinc.com/gis.cgi?serverType=control&licenseID="+g.license+"&jsonp=__lc_gis";k.appendToBody(d);setTimeout(function(){0===g.gis&&h.askGIS()},1E3)},setServer:function(a){g.hostname=a},loadData:function(){var a,d=this;__lc_data=function(a){var c;if("undefined"!==typeof a.error)return!1;c=d.calculateWindowDimensions(15);i={position:{option:a.invitation.align,arg1:parseInt(a.invitation.y,10),arg2:parseInt(a.invitation.x,10)},overlay:{enabled:!0,opacity:0.8,color:"#000"},
embedded:{dimensions:{margin:15,width:c.w,height:c.h,width_minimized:c.w_minimized}},lc:{last_visit:a.visitor.last_visit,session:a.visitor.session,page_view:a.visitor.page_view,visit_number:a.visitor.visit_number,chat_number:a.visitor.chat_number,all_invitation:a.visitor.all_invitation,ok_invitation:a.visitor.ok_invitation,last_operator_id:a.visitor.last_operator_id,client_version:a.visitor.client_version,params:x.parse(g.params),groups:parseInt(g.skill,10)},lic:g.license,serv:a.serv,analytics_id:a.analytics_id,
nick:a.visitor.nick,hostname:a.visitor.hostname,status:a.status,invite_img_name:a.invitation.image,redirect_url:a.redirect_url,lang:g.lang,embedded_window_enabled:a.embedded_chat.enabled,client_limit_exceeded:parseInt("undefined"!==typeof a.client_limit_exceeded?a.client_limit_exceeded:0,10)};C.parse(g.visitor);w=h.protocol+i.serv+"/licence/"+i.lic+"/open_chat.cgi?lang="+i.lang+"&groups="+i.lc.groups+"&embedded="+i.embedded_window_enabled;o=w+"#"+document.location.toString();__lc_iframe_current_lang=
i.lang;__lc_iframe_current_skill=i.lc.groups;LC_Invite=new A(i);LC_Invite.init()};var c;c="lang="+g.lang;c+="&groups="+g.skill;c+="&t="+ +new Date;c+="&referrer="+encodeURIComponent(t.strip(document.referrer));c+="&url="+encodeURIComponent(document.location);c+="&params="+x.parse(g.params);c+="&jsonp=__lc_data";a=document.createElement("script");a.src=h.protocol+g.hostname+"/licence/"+g.license+"/script_data.js?"+c;k.appendToBody(a)},calculateWindowDimensions:function(a){var c=400;window.screen&&
window.screen.availWidth?c=window.screen.availWidth:window.innerWidth?c=window.innerWidth:document.body&&document.body.clientWidth&&(c=document.body.clientWidth);c=parseInt(c,10);return 400>c?(h.is_mobile=!0,a=c-2*a,{w:a,w_minimized:a,h:350}):{w:400,h:450,w_minimized:250}}};k.ready(h.init)})();
/*OK*/

