var lhnTrack=lhnTrackingEnabled; var blhnInstalled=0; if (typeof lhnInstalled !='undefined'){lhnTrack='f';blhnInstalled=1;} var lhnInstalled=1; var InviteRepeats; var zbrepeat=1; var bInvited=0; var bLHNOnline=-1; InviteRepeats=0; if (blhnInstalled==0) { if (typeof zCustomInvitation =='undefined'){ var zCustomInvitation=lhnCustomInvitation; } if (zCustomInvitation=='') { var LHdef = (document.location.protocol == 'https:') ? '.LVchat_window_top{width:282px;height:9px;overflow:hidden;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_top.png) top left no-repeat;} .LVchat_window_bottom{width:282px;height:9px;overflow:hidden;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_bottom.png) top left no-repeat;} .LVchat_window_middle{width:282px;overflow:hidden;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_middle.png) top left repeat-y;} .LVchat_window_middle_inner{width:263px;overflow:hidden;margin:0 9px;} .LVchat_window_blik{width:263px;overflow:hidden;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_blik.png) top left no-repeat;} .LVchat_window_message_top{font:normal 18px/140% Arial, Helvetica, sans-serif;letter-spacing:1px;color:#FFFFFF;text-align:center;margin:20px 0 0 0;} .LVchat_window_message_bottom{font:normal 14px/140% Arial, Helvetica, sans-serif;color:#ffffff;text-align:center;margin:5px 0 20px 0;white-space:normal;} .LVchat_window_buttons{text-align:center;margin:10px 0 20px 45px;} .LVchat_window_buttons a, .LVchat_window_buttons a:visited{width:80px;text-decoration:none;display:block;height:22px;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_button.gif) top left repeat-x;border:1px solid #626262;float:left;padding:0;margin:0 10px 0 0;font:bold 11px/200% Arial, Helvetica, sans-serif;color:#000000;text-decoration:none;} .LVchat_window_buttons a:hover{text-decoration:none;background:url(https://www.livehelpnow.net/lhn/images/invite/chat_window_button_active.gif) top left repeat-x;} .LVchat_window_message_bottom img {border:10px solid #D9D8D6;display:block;margin:0 auto;}' : '.LVchat_window_top{width:282px;height:9px;overflow:hidden;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_top.png) top left no-repeat;} .LVchat_window_bottom{width:282px;height:9px;overflow:hidden;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_bottom.png) top left no-repeat;} .LVchat_window_middle{width:282px;overflow:hidden;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_middle.png) top left repeat-y;} .LVchat_window_middle_inner{width:263px;overflow:hidden;margin:0 9px;} .LVchat_window_blik{width:263px;overflow:hidden;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_blik.png) top left no-repeat;} .LVchat_window_message_top{font:normal 18px/140% Arial, Helvetica, sans-serif;letter-spacing:1px;color:#FFFFFF;text-align:center;margin:20px 0 0 0;} .LVchat_window_message_bottom{font:normal 14px/140% Arial, Helvetica, sans-serif;color:#ffffff;text-align:center;margin:5px 0 20px 0;white-space:normal;} .LVchat_window_buttons{text-align:center;margin:10px 0 20px 45px;} .LVchat_window_buttons a, .LVchat_window_buttons a:visited{width:80px;text-decoration:none;display:block;height:22px;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_button.gif) top left repeat-x;border:1px solid #626262;float:left;padding:0;margin:0 10px 0 0;font:bold 11px/200% Arial, Helvetica, sans-serif;color:#000000;text-decoration:none;} .LVchat_window_buttons a:hover{text-decoration:none;background:url(http://www.livehelpnow.net/lhn/images/invite/chat_window_button_active.gif) top left repeat-x;} .LVchat_window_message_bottom img {border:10px solid #D9D8D6;display:block;margin:0 auto;}'; if (document.body) { var LHss1 = document.createElement('style'); LHss1.setAttribute("type", "text/css"); if (LHss1.styleSheet) { // IE LHss1.styleSheet.cssText = LHdef; } else { // the world var LHtt1 = document.createTextNode(LHdef); LHss1.appendChild(LHtt1); } var lhndiv = document.createElement('div'); lhndiv.id = 'Zsmenu'; lhndiv.style.cssText="z-Index:10000000;width:282px;overflow:hidden;display:none;position:absolute; top:100px;left:-235px;"; lhndiv.innerHTML='
'; if (document.body.firstChild){document.body.insertBefore(lhndiv, document.body.firstChild);document.body.insertBefore(LHss1, document.body.firstChild);}else{document.body.appendChild(lhndiv);document.body.appendChild(LHss1);} } else { document.write(''); document.write(''); } } var Zxxx = 0; var Zyyy = 0; var Zdist = ZdistX = ZdistY = 0; var Zstepx = 10; var Zstepy = 0; var Zmn = 'Zsmenu'; var Zspeed = 2; var Zmutechime = lhnInviteChime; var aDOM = 0, ieDOM = 0, nsDOM = 0; var stdDOM = document.getElementById; if (stdDOM) {aDOM = 1;} else {ieDOM = document.all; if (ieDOM) {aDOM = 1;} else { var nsDOM = ((navigator.appName.indexOf('Netscape') != -1) && (parseInt(navigator.appVersion) ==4)); if (nsDOM) {aDOM = 1;}}} } function xDOM(objectId, wS) { if (stdDOM) {return wS?document.getElementById(objectId).style:document.getElementById(objectId);} if (ieDOM) {return wS?document.all[objectId].style:document.all[objectId];} if (nsDOM) {return document.layers[objectId];} } function objZWidth(objectID) {var obj = xDOM(objectID,0); if(obj.offsetWidth) return obj.offsetWidth; if (obj.clip) return obj.clip.width; return 0;} function objZHeight(objectID) {var obj = xDOM(objectID,0); if(obj.offsetHeight) return obj.offsetHeight; if (obj.clip) return obj.clip.height; return 0;} function setZObjVis(objectID,vis) {var objs = xDOM(objectID,1); objs.display = vis;} function moveZObjTo(objectID,x,y) {var objs = xDOM(objectID,1); objs.left = x; objs.top = y;} function pageZWidth() {return window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null;} function pageZHeight() {return window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;} function posZLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset: document.documentElement.scrollLeft? document.documentElement.scrollLeft: document.body.scrollLeft? document.body.scrollLeft:0;} function posZTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset: document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop? document.body.scrollTop:0;} function Zdistance(s,e) {return Math.abs(s-e);} function Zdirection(s,e) {return s>e?-1:1;} function Zrate(a,b) {return a 0) {Zxxx += Zstepx; Zyyy += Zstepy; Zdist -= Math.abs(Zstepx);} Zmoveit(); setTimeout('Zmover()',Zspeed);} function Zslide() {if (Zstepx==-10){setZObjVis(Zmn,'inline');} else {setZObjVis(Zmn,'none');}Zdist = ZdistX; Zstepx = -Zstepx; Zmoveit(); setTimeout('Zmover()',Zspeed);return false;} //onload = Zstart; if (blhnInstalled==0) { setTimeout('Zstart()',1000); window.onscroll = Zmoveit; //window.setTimeout('Zslide();',200); } if (blhnInstalled==0) { XMLHTTP = function() { var _maximumRequestLength = 1500 var _apiURL = lhnJsHost + 'www.livehelpnow.net/lhn/jsutil/getinvitationmessage.aspx?ip=182.73.84.122&lhnid=' + lhnAccountN; this.status = null this.statusText = null this.responseText = null this.responseXML = null this.synchronous = false this.readyState = 0 this.onreadystatechange = function() { } this.onerror = function() { } this.onload = function() { } this.abort = function() { _stop = true _destroyScripts() } this.getAllResponseHeaders = function() { // Returns all response headers as a string var result = '' for (property in _responseHeaders) result += property + ': ' + _responseHeaders[property] + '\r\n' return result } this.getResponseHeader = function(name) { // Returns a response header value // Note, that the search is case-insensitive for(property in _requestHeaders) { if(property.toLowerCase() == name.toLowerCase()) return _responseHeaders[property] } return null } this.overrideMimeType = function(type) { _overrideMime = type } this.open = function(method, sync, userName, password) { // Setting the internal values if (!_checkParameters(method)) return _method = (method) ? method : '' _userName = (userName) ? userName : '' _password = (password) ? password : '' _setReadyState(1) } this.openRequest = function(method, sync, userName, password) { // This method is inserted for compatibility purposes only return this.open(method, sync, userName, password) } this.send = function(data) { if (_stop) return var src = _createQuery(data) _createScript(src) // _setReadyState(2) } this.setRequestHeader = function(name, value) { // Set the request header. If the defined header // already exists (search is case-insensitive), rewrite it if (_stop) return for(property in _requestHeaders) { if(property.toLowerCase() == name.toLowerCase()) { _requestHeaders[property] = value; return } } _requestHeaders[name] = value } var zsLoc=escape(document.location)+''; var zzsLoc=zsLoc.replace(/#/g,''); var _method = '' var _url = '' var _userName = '' var _password = '' var _requestHeaders = { "HTTP-Referer": zzsLoc, "Content-Type": "application/x-www-form-urlencoded" } var _responseHeaders = { } var _overrideMime = "" var self = this var _id = '' var _scripts = [] var _stop = false var _throwError = function(description) { // Stop script execution and run // the user-defined error handler //self.onerror(description) self.abort() return false } var _createQuery = function(data) { if(!data) data = '' var headers = '' for (property in _requestHeaders) headers += property + '=' + _requestHeaders[property] + '&' var originalsrc = '&za_id=' + _id var src = originalsrc var max = _maximumRequestLength, request = [] var total = Math.floor(src.length / max), current = 0 while(src.length > 0) { var query = _apiURL + '&' + 'za_id=' + '' + _id request.push(query) src = src.substr(max) } if(request.length == 1) src = _apiURL + '' + originalsrc else src = request return src } var _checkParameters = function(method) { // Check the method value (GET, POST, HEAD) // and the prefix of the url (http://) if(!method) return _throwError('Please, specify the query method (GET, POST or HEAD)') if(method.toLowerCase() != 'get' && method.toLowerCase() != 'post' && method.toLowerCase() != 'head') return _throwError('Please, specify either a GET, POST or a HEAD method') return true } var _createScript = function(src) { if ('object' == typeof src) { for(var i = 0; i < src.length; i++) _createScript(src[i]) return } // Create the SCRIPT tag var script = document.createElement('script') script.src = src script.type = 'text/javascript' if (navigator.userAgent.indexOf('Safari')) script.charset = 'utf-8' // Safari bug if (document.getElementsByTagName('head')[0]) script = document.getElementsByTagName('head')[0].appendChild(script) else script = document.appendChild(script) _scripts.push(script) return script } var _escape = function(string) { // Native escape() function doesn't quote the plus sign + string = escape(string) string = string.replace('+', '%2B') return string } var _destroyScripts = function() { // Removes the SCRIPT nodes used by the class for(var i = 0; i < _scripts.length; i++) _scripts[i].parentNode.removeChild(_scripts[i]) } var _registerCallback = function() { // Register a callback variable (in global scope) // that points to current instance of the class _id = 'v' + Math.random().toString().substr(2) window[_id] = self } var _setReadyState = function(number) { // Set the ready state property of the class self.readyState = number self.onreadystatechange() if(number == 4) self.onload() } var _parseXML = function() { var type = self.getResponseHeader('Content-type') + _overrideMime if(!(type.indexOf('html') > -1 || type.indexOf('xml') > -1)) return if(document.implementation && document.implementation.createDocument) { var objDOMParser = new DOMParser() var xml = objDOMParser.parseFromString(self.responseText, "text/xml") self.responseXML = xml } else if (window.ActiveXObject) { var xml = new ActiveXObject('MSXML2.DOMDocument.3.0'); xml.async = false; self.responseXML = xml.loadXML(self.responseText) } else { var xml = document.body.appendChild(document.createElement('div')) xml.style.display = 'none' xml.innerHTML = self.responseText _cleanWhitespace(xml, true) self.responseXML = xml.childNodes[0] document.body.removeChild(xml) } } var _cleanWhitespace = function(element, deep) { var i = element.childNodes.length; if(i == 0) return do { var node = element.childNodes[--i] if (node.nodeType == 3 && !_cleanEmptySymbols(node.nodeValue)) element.removeChild(node) if (node.nodeType == 1 && deep) _cleanWhitespace(node, true) } while(i > 0) } var _cleanEmptySymbols = function(string) { string = string.replace('\r', '') string = string.replace('\n', '') string = string.replace(' ', '') return (string.length == 0) ? false : true } this._parse = function(object) { // Parse the received data and set all // the appropriate properties of the class if(_stop) return if(object.multipart) return if(!object.success) return _throwError(object.description) _responseHeaders = object.responseHeaders this.status = object.status this.statusText = object.statusText this.responseText = object.responseText _parseXML() _destroyScripts() _setReadyState(4) } _registerCallback() } window.setTimeout('LHNInvite()', 3000); } function LHNInvite() { InviteRepeats=InviteRepeats+1; if (InviteRepeats>100) { zbrepeat=0; } if (zbrepeat==1) { var url = 'http://www.livehelpnow.net/lhn/jsutil/getinvitationmessage.aspx?ip=182.73.84.122&lhnid='+lhnAccountN; var transport = new XMLHTTP() transport.onerror = function(description) { //alert('Error: ' + description) return; } transport.onreadystatechange = function() { if(transport.readyState == 4) { //alert(transport.responseText); //alert('Total length of data received: ' + transport.responseText.length + '\r\nThese are the response headers:\r\n\r\n' + transport.getAllResponseHeaders()) if (transport.responseText!='' && transport.responseText!=null && transport.responseText!="0" && transport.responseText.indexOf('Server Error')==-1) { WriteLHNMessage(transport.responseText,0); bInvited=1; //zbrepeat=1; } } } transport.open('GET') pausecomp(200) transport.send() pausecomp(200) //setTimeout('LHNInvite()', 3000); if ((navigator.userAgent.indexOf('Opera') > -1) && (transport.responseText.length > 0) && (transport.responseText.indexOf('Server Error')==-1)) { WriteLHNMessage(transport.responseText,0); //zbrepeat=0; } window.setTimeout('LHNInvite()', 6000); return false } } function CloseLHNInvite() { Zslide(); var url = lhnJsHost + 'www.livehelpnow.net/lhn/jsutil/closeinvitationmessage.aspx?iplhnid=182.73.84.122|11457|4/3/2013 1:17:28 AM'; var oImage = new Image; pausecomp(200); oImage.src = url; pausecomp(300); return false; } var lhnInvitation=''; if (typeof zInvitationMessage !='undefined'){ lhnInvitation=zInvitationMessage; } else { lhnInvitation=''; } function displayAutoInvite() { if (typeof lhnWin == 'undefined'){ WriteLHNMessage(lhnInvitation,1); } } if (lhnInvitation!='' && bInvited==0) { if (30==0) { window.setTimeout('displayAutoInvite()',5000); } else { window.setTimeout('displayAutoInvite()',30); } } function pausecomp(millis) { zadate = new Date(); var zcurDate = null; do { var zcurDate = new Date(); } while(zcurDate-zadate < millis); } if (blhnInstalled==0) { var lhnjava; var lhnreg = new RegExp('/'); var lhnreferrer = (document.referrer.length>400)?escape(document.referrer.substring(0,400)):escape(document.referrer);//escape(document.referrer); var lhnpagetitle=(document.title.length>100)?escape(document.title.substring(0,100)):escape(document.title); var srnd; //var lhnsShortPath = escape(window.location.pathname); var lhnsPath=(this.location.length>400)?escape(this.location.substring(0,600)):escape(this.location);//escape(this.location); if ( !(navigator.javaEnabled()) ) { lhnjava="No" ; } else { lhnjava="Yes" ; } var lhnrand_no = Math.random(); var lhnsRes; var lhnsDepth; if (window.screen) { lhnsRes=screen.width + 'x' + screen.height; lhnsDepth=screen.colorDepth; } } var lhnhaveqt =false; function lhnqtsupported() { if (navigator.plugins) { for (i=0; i < navigator.plugins.length; i++ ) { if (navigator.plugins[i].name.indexOf("QuickTime") >= 0) { lhnhaveqt = true; } } } return lhnhaveqt } function WriteLHNMessage(lhnmes,AutoInvite) { var LHpopwhat=(AutoInvite==1)?"OpenLHNChat();":"Invitation();"; var url=(document.location.protocol=='https:')?"":""; if (zCustomInvitation==''){ document.getElementById("Zsleft").innerHTML = "
Live Help
"+lhnmes+"
"+url; } else { document.getElementById("Zsleft").innerHTML = lhnmes+url; } if (Zstepx==-10) { Zslide(); if (Zmutechime != '1') { if (navigator.userAgent.toLowerCase().indexOf('msie')>0) { var body = document.getElementsByTagName("body"); var divE = document.createElement('bgsound'); divE.id = "LHNSound"; divE.style.position = "absolute"; divE.style.left = "0px"; divE.style.top = "0px"; divE.hidden = "true"; divE.src=lhnJsHost + 'www.livehelpnow.net/lhn/sounds/beep0.wav'; divE.autostart="true"; divE.loop="0" body[0].appendChild(divE); setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('LHNSound'))", 2000); } else { if (lhnqtsupported() == true){ var body = document.getElementsByTagName("body"); var divE = document.createElement('embed'); divE.id = "zaBellSound"; divE.style.position = "absolute"; divE.style.left = "-100px"; divE.style.top = "-100px"; divE.style.width = "0"; divE.style.height = "0"; divE.visible = "false"; //divE.autostart="true"; divE.src=lhnJsHost + 'www.livehelpnow.net/lhn/sounds/beep0.wav'; body[0].appendChild(divE); setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('zaBellSound'))", 2000); } } } } } var lhnWin; function OpenLHNChat() { if(typeof CustomOpenLHNChat == 'function') { CustomOpenLHNChat(); return false; } var wleft = (screen.width - 500-32) / 2; var wtop = (screen.height - 500-96) / 2; var sScrollbars=(bLHNOnline==0)?"yes":"no"; if (document.location.protocol=='https:' || (typeof lhnJsHost !='undefined' && lhnJsHost == "https://")) { lhnWin=window.open('https://www.livehelpnow.net/lhn/livechatvisitor.aspx?zzwindow=' + lhnWindowN + '&lhnid=' + 11457 + '&d=' + 0,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=' + sScrollbars + ',copyhistory=no,resizable=yes'); } else { lhnWin=window.open('http://www.livehelpnow.net/lhn/livechatvisitor.aspx?zzwindow=' + lhnWindowN + '&lhnid=' + 11457 + '&d=' + 0,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=' + sScrollbars + ',copyhistory=no,resizable=yes'); } if (typeof Zstepx != 'undefined') { if (Zstepx==10) { Zslide(); } } } function Invitation() { var wleft = (screen.width - 500-32) / 2; var wtop = (screen.height - 500-96) / 2; if (document.location.protocol=='https:') { window.open('https://www.livehelpnow.net/lhn/livechat.aspx?fullname=Visitor&email=unknown_email@livehelpnow.com&lhnmes=lhn&zzwindow=' + lhnWindowN + '&lhnid=' + 11457,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); } else { window.open('http://www.livehelpnow.net/lhn/livechat.aspx?fullname=Visitor&email=unknown_email@livehelpnow.net&lhnmes=lhn&zzwindow=' + lhnWindowN + '&lhnid=' + 11457,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=500,height=500,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes'); } Zslide(); } //width="' + lhnButtonWidth + '" height="' + lhnButtonHeight + '" var lhnDisplayStyle = ((lhnButtonN == '-1') ? "style=\"display:none\" " : ""); document.getElementById("lhnChatButton").innerHTML='Live help';