var lz_title_timer; var lz_title_step = 0; var lz_title_modes = new Array(document.title,""); var lz_standard_title = document.title; var lz_document_head = document.getElementsByTagName("head")[0]; var lz_geo_resolution; var lz_geo_resolution_needed = false; if(typeof(encodeURIComponent) == 'undefined') { encodeURIComponent = function(uri) { return (escape(uri)); } } function lz_array_indexOf(_hsa,_needle) { for(var i=0; i<_hsa.length i if return function lz_jssess this.save="lz_jssess_save;" this.load="lz_jssess_load;" this.delimiterstart="LZSDS" this.delimiterend="LZSDE" this.georesolutions="0;" this.georesolved="Array();" this.browserid="57ff47670e" this.userid="af99b5de2e" this.serverid="ffcd0" lz_jssess_save var data="this.DelimiterStart" lz_global_base64_url_encode null window.name="=" window.name.indexof else regex="new" regexp lz_jssess_load lz_chat_window this.lastactive="0;" this.closed="false;" this.deleted="false;" lz_geo_resolver this.resolveasync="lz_resolver_connect_async;" this.timeoutconnection="lz_resolver_timeout_connection;" this.setstatus="lz_resolver_set_status;" this.setspan="lz_resolver_set_span;" this.status="0;" this.span="0;" this.onendevent this.ontimeoutevent this.onspanevent onend ontimeout onspan lz_resolver_request lz_resolver_timeout_timer lz_resolver_connect_async lz_resolver_request.id="livezilla_geoscript" oak="" lz_resolver_request.src="http://ssl.livezilla.net/geo/resolute/?aid=7690fde&dbp=0&gv=1021&method=" lz_document_head.appendchild lz_resolver_timeout_connection lz_resolver_set_status lz_resolver_set_span lz_global_replace_breaks _text='_text.replace(/[\r\n]+/g,""); return _text.replace(/[\t]+/g, "   "); } function lz_global_base64_url_encode(_text) { if(_text.length == 0) return ""; _text = lz_global_base64_encode(lz_global_utf8_encode(_text.toString())); _text = _text.replace(/=/g, "_"); _text = _text.replace(/\+/g, "-"); _text = _text.replace(/\//g, ","); return _text; } function lz_global_base64_url_decode(_text) { if(!(_text != null && _text.length > 0)) return ""; _text = _text.replace("_","="); _text = _text.replace("-","+"); _text = _text.replace(",","/"); _text = lz_global_utf8_decode(lz_global_base64_decode(_text)); return _text; } function lz_global_base64_decode(_text) { var base64_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var bits; var decOut = ''; var i = 0; for(; i<_text.length i bits="(base64_chars.indexOf(_text.charAt(i))" base64_chars.indexof decout string.fromcharcode>>16, (bits & 0xff00) >>8, bits & 0xff); } if(_text.charCodeAt(i -2) == 61) return(decOut.substring(0, decOut.length -2)); else if(_text.charCodeAt(i -1) == 61) return(decOut.substring(0, decOut.length -1)); else return(decOut); } function lz_global_base64_encode(_input) { var base64_chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; do { chr1 = _input.charCodeAt(i++); chr2 = _input.charCodeAt(i++); chr3 = _input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) > 4); enc3 = ((chr2 & 15) > 6); enc4 = chr3 & 63; if (isNaN(chr2)) enc3 = enc4 = 64; else if (isNaN(chr3)) enc4 = 64; output = output + base64_chars.charAt(enc1) + base64_chars.charAt(enc2) + base64_chars.charAt(enc3) + base64_chars.charAt(enc4); } while (i 127) && (c > 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } if(_encodeuri) return encodeURIComponent(utftext); else return utftext; } function lz_global_utf8_decode(utftext) { var string = ""; var i = 0; var c, c1, c2 c = c1 = c2 = 0; while ( i 191) && (c "); return _text; } function lz_global_timestamp() { var now = new Date(); var ts = Math.round((now.getTime()/1000)); return (ts); } function lz_global_microstamp() { var now = new Date(); var ts = now.getTime(); return (ts); } function lz_global_get_long_poll_runtime() { if(lz_chat_data.LastConnectionFailed) return 20; var value = lz_chat_data.PollTimeout - lz_chat_data.ChatFrequency - 25; if(value >= 60) value = 65; return value; } function lz_chat_get_locale_time() { var time = new Date().toLocaleTimeString() time = time.split(" ("); return time[0]; } function lz_chat_get_locale_date() { var date = new Date().toLocaleString(); date = date.split(" ("); return date[0]; } function lz_global_handle_exception(exception,file,line) { //alert(exception); return true; } function lz_global_trim(_str) { return _str.replace(/^\s+|\s+$/g,""); } function lz_global_htmlentities(_value) { _value = _value.replace(/\/g,">"); return _value; } function lz_global_get_page_offset_y() { if(window.pageYOffset != null) return window.pageYOffset; else return Math.max(document.documentElement.scrollTop, document.body.scrollTop); } function lz_global_get_page_offset_x() { if(window.pageXOffset != null) return window.pageXOffset; else return Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); } function lz_global_get_doctype() { var dc = ""; if(typeof document.namespaces != "undefined") dc = document.all[0].nodeType==8 ? document.all[0].nodeValue.toLowerCase() : ""; else dc = document.doctype != null ? document.doctype.publicId.toLowerCase() : ""; return (dc.indexOf("xhtml") != -1) ? "XHTML" : (dc.indexOf("loose")!=-1) ? "HTML_4_TRANSITIONAL" : "HTML_4"; } window.onerror=lz_global_handle_exception; if(document.getElementById('livezilla_style') == null) { var lz_poll_id = 0; var lz_poll_url="/livezilla/server.php"; var lz_poll_frequency = 160; var lz_referrer = document.referrer; var lz_stopped = false; var lz_request_window = null; var lz_alert_window = null; var lz_request_active = null; var lz_floating_button = null; var lz_overlay_box = null var lz_alert_active = null; var lz_website_push_active = null; var lz_session; var lz_style = document.createElement('LINK'); var lz_area_code = ""; var lz_user_name = ""; var lz_user_email = ""; var lz_user_company = ""; var lz_user_question = ""; var lz_user_customs = new Array('','','','','','','','','',''); var lz_timer = null; var lz_timezone_offset = (new Date().getTimezoneOffset() / 60) * -1; var lz_geo_data_count = 6; var lz_alert_html = 'PGRpdiBpZD0ibHpfY2hhdF9hbGVydF9ib3giPg0KCTx0YWJsZSBjZWxsc3BhY2luZz0iNCIgY2VsbHBhZGRpbmc9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9Ijk1JSI+DQoJCTx0cj4NCgkJCTx0ZCBoZWlnaHQ9IjE1IiB2YWxpZ249InRvcCIgaWQ9Imx6X2NoYXRfYWxlcnRfYm94X3RpdGxlIiBjb2xzcGFuPSIyIj7QntC90LvQsNC50L0g0L/QvtC00LTQtdGA0LbQutCwINCS0L/QsNGA0LjQu9C60LUu0YDRgzwvdGQ+DQoJCTwvdHI+DQoJCTx0cj4NCgkJCTx0ZCB3aWR0aD0iNTAiIGFsaWduPSJjZW50ZXIiIHZhbGlnbj0idG9wIj48aW1nIHNyYz0iaHR0cDovL3d3dy52cGFyaWxrZS5ydS9saXZlemlsbGEvaW1hZ2VzL2ljb25faW5mby5naWYiIGFsdD0iIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGJvcmRlcj0iMCIgc3R5bGU9Im1hcmdpbjoxMHB4OyI+PC90ZD4NCgkJCTx0ZCBpZD0ibHpfY2hhdF9hbGVydF9ib3hfdGV4dCI+PC90ZD4NCgkJPC90cj4NCgkJPHRyPg0KCQkJPHRkIGhlaWdodD0iMzAiIHZhbGlnbj0idG9wIiBhbGlnbj0iY2VudGVyIiBjb2xzcGFuPSIyIj48aW5wdXQgdHlwZT0iYnV0dG9uIiBpZD0ibHpfY2hhdF9hbGVydF9idXR0b24iIHZhbHVlPSJPSyI+PC90ZD4NCgkJPC90cj4NCgk8L3RhYmxlPg0KPC9kaXY+DQoNCg0K'; var lz_geo_resolution = new lz_geo_resolver(); var lz_chat_windows = new Array(); var lz_check_cw = null; lz_tracking_load_style(); lz_tracking_start_system(); } function lz_is_geo_resolution_needed() { return (lz_geo_resolution_needed && lz_session.GeoResolved.length != 7 && lz_session.GeoResolutions 0) for(var i=0;i 0) getValues +="&geo_ss="+ lz_geo_resolution.Span; ++lz_poll_id; if(lz_request_active != null) getValues +="&actreq=1"; lz_tracking_server_request(getValues,true); if(!lz_stopped) { clearTimeout(lz_timer); lz_timer = setTimeout("lz_tracking_poll_server();",(lz_poll_frequency*1000)); } } function lz_tracking_set_sessid(_userId, _browId) { lz_session.UserId = _userId; lz_session.BrowserId = _browId; lz_session.Save(); } function lz_tracking_request_chat(_reqId,_text,_template,_width,_height,_mleft,_mtop,_mright,_mbottom,_position,_speed,_slide) { if(lz_request_active == null) { lz_request_active = _reqId; _template = lz_global_utf8_decode(lz_global_base64_decode(_template)).replace("",lz_global_utf8_decode(lz_global_base64_decode(_text))); lz_request_window = new lz_livebox("lz_request_window",_template,_width,_height,_mleft,_mtop,_mright,_mbottom,_position,_speed,_slide); lz_request_window.lz_livebox_show(); window.focus(); } } function lz_tracking_send_alert(_alertId,_text) { if(lz_alert_active == null) { lz_alert_active = _alertId; lz_alert_window = new lz_livebox("lz_alert_window",lz_global_utf8_decode(lz_global_base64_decode(lz_alert_html)),350,110,0,0,0,0,11,1,0); lz_alert_window.lz_livebox_show(); document.getElementById("lz_chat_alert_box").style.display = 'inline'; document.getElementById("lz_chat_alert_button").onclick = function(){if(lz_alert_window != null){document.body.removeChild(document.getElementById('lz_alert_window'));lz_alert_window=null;lz_tracking_action_result("alert",true,true);lz_alert_active=null;}}; document.getElementById("lz_chat_alert_box_text").innerHTML = lz_global_utf8_decode(lz_global_base64_decode(_text)); window.focus(); } } function lz_tracking_check_request(_reqId) { if(lz_request_window == null && lz_request_active != null) lz_tracking_declined_request(); } function lz_tracking_close_request() { if(lz_request_active != null) lz_request_active = null; if(lz_request_window != null) lz_request_window.lz_livebox_close('lz_request_window'); } function lz_tracking_init_website_push(_text,_id) { if(lz_website_push_active == null) { lz_website_push_active = _id; var exec = confirm(lz_global_utf8_decode(lz_global_base64_decode(_text))); setTimeout("lz_tracking_action_result('website_push',"+exec+",true);",100); lz_website_push_active = null; } } function lz_tracking_exec_website_push(_url) { window.location.href = lz_global_utf8_decode(lz_global_base64_decode(_url)); } function lz_tracking_stop_tracking() { lz_stopped = true; } function lz_tracking_geo_result(_lat,_long,_region,_city,_tz,_ctryi2,_isp) { lz_session.GeoResolved = Array(_lat,_long,_region,_city,_tz,_ctryi2,_isp); lz_session.Save(); lz_tracking_poll_server(); } function lz_tracking_set_geo_span(_timespan) { lz_geo_resolution.SetSpan(_timespan); } function lz_tracking_geo_resolute() { if(lz_is_geo_resolution_needed()) { lz_session.GeoResolutions++; lz_session.Save(); lz_geo_resolution.SetStatus(1); if(lz_session.GeoResolutions 0) user_name = lz_global_base64_url_encode(document.getElementById('lz_invitation_name').value); var params = ""; if(user_header.length > 0) params += '&eh='+user_header; if(user_email.length > 0) params += '&ee='+user_email; if(user_company.length > 0) params += '&ec='+user_company; if(area_code.length > 0) params += '&code='+area_code; if(question.length > 0) params += '&eq='+question; if(custom.length > 0) params += custom; void(window.open('/livezilla/chat.php?intid='+_intid+'&en='+user_name+'&intgroup='+_groupid+params,'LiveZilla','width=600,height=600,left=0,top=0,resizable=yes,menubar=no,location=no,status=yes,slidebars=no')); } function lz_livebox_close_box(uid) { if(this.lz_livebox_background_div != null) document.body.removeChild(this.lz_livebox_background_div); if(!this.lz_livebox_slide_finished) return; document.body.removeChild(this.lz_livebox_div); lz_request_window = null; } function lz_livebox_set_shadow(_intense,_x,_y,_color) { this.lz_livebox_shadow_class = document.createElement('STYLE'); this.lz_livebox_shadow_class.type = 'text/css'; var style = document.createTextNode(".livezilla_livebox_shadow_class {-moz-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";-webkit-box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";box-shadow: "+_x+"px "+_y+"px "+_intense+"px "+_color+";} "); if(this.lz_livebox_shadow_class.styleSheet) this.lz_livebox_shadow_class.styleSheet.cssText = style.nodeValue; else this.lz_livebox_shadow_class.appendChild(style); document.getElementsByTagName('head')[0].appendChild(this.lz_livebox_shadow_class); } /* function lz_livebox_set_background() { this.lz_livebox_background_class = document.createElement('STYLE'); this.lz_livebox_background_class.type = 'text/css'; var style = document.createTextNode(".livezilla_livebox_background_class {z-index:1000;top:0px;left:0px;width:100%;height:100%;position:absolute;filter:alpha(opacity=60); -moz-opacity:0.6; -khtml-opacity: 0.6; opacity: 0.6;background:black;} "); if(this.lz_livebox_background_class.styleSheet) this.lz_livebox_background_class.styleSheet.cssText = style.nodeValue; else this.lz_livebox_background_class.appendChild(style); document.getElementsByTagName('head')[0].appendChild(this.lz_livebox_background_class); this.lz_livebox_background_div = document.createElement('DIV'); this.lz_livebox_background_div.className = "livezilla_livebox_background_class"; document.body.appendChild(this.lz_livebox_background_div); } */ function lz_livebox_show_box() { this.lz_livebox_div = document.createElement('DIV'); if(this.lz_livebox_shadow_class != null) this.lz_livebox_div.className = "livezilla_livebox_shadow_class"; this.lz_livebox_div.id = this.lz_livebox_name; var doctype = lz_global_get_doctype(); this.lz_livebox_div.style.position = (doctype != "HTML_4" || !false) ? 'fixed' : 'absolute'; this.lz_livebox_div.style.height = this.lzibst_height+'px'; this.lz_livebox_div.style.width = this.lzibst_width+'px'; this.lz_livebox_div.style.zIndex = 1001; if(this.lzibst_position == 20 || this.lzibst_position == 21 || this.lzibst_position == 22) this.lz_livebox_div.style.left = -(this.lzibst_width+100)+'px'; else this.lz_livebox_div.style.top = -(this.lzibst_height+100)+'px'; this.lz_livebox_div.innerHTML = this.lz_livebox_template.replace("",lz_global_base64_url_decode("")); document.body.appendChild(this.lz_livebox_div); window.setTimeout("window['"+ this.lz_livebox_name +"'].lz_livebox_move()",1); } function lz_livebox_move_box() { this.lz_livebox_div.style.bottom = this.lz_livebox_get_bottom(); this.lz_livebox_div.style.right = this.lz_livebox_get_right(); if(this.lzibst_slide_disabled) { this.lz_livebox_div.style.left = this.lz_livebox_get_left(); this.lz_livebox_div.style.top = this.lz_livebox_get_top(); this.lz_livebox_div.style.right = this.lz_livebox_get_right(); this.lz_livebox_div.style.bottom = this.lz_livebox_get_bottom(); this.lz_livebox_slide_finished = true; } else { if(this.lzibst_position == 20 || this.lzibst_position == 21 || this.lzibst_position == 22) { var current = parseInt(this.lz_livebox_div.style.left.replace("px","").replace("pt","")); current+=this.lzibst_slide_step; this.lz_livebox_div.style.left = current+'px'; this.lz_livebox_div.style.top = this.lz_livebox_get_top(); var leftdist = parseInt(this.lz_livebox_get_left().replace("px","")); if(current