
var lhnTrack='';
if (typeof lhnInstalled !='undefined'){lhnTrack='f'}
var lhnInstalled=1;
var InviteRepeats;
var zbrepeat=1;
var bInvited=0;
InviteRepeats=0;

function pausecomp(millis) 
{
zadate = new Date();
var zcurDate = null;

do { var zcurDate = new Date(); } 
while(zcurDate-zadate < millis);
} 
	
var lhnjava;
var lhnreg = new RegExp('/');
var lhnreferrer = escape(document.referrer);
var lhnwindow='0';

var lhnpagetitle=escape(document.title);
var srnd;
var lhnsShortPath = escape(window.location.pathname);

var lhnsPath=escape(this.location);

if (lhnsShortPath=='/')
{
	var lhnsPage = escape(window.location.href);
}
else
{
	var lhnsPage = escape(lhnsShortPath.substring(lhnsShortPath.lastIndexOf('/') + 1));
}
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 lhnflashversion = 0;
var lhndetect = navigator.userAgent.toLowerCase();
var lhnOS,lhnbrowser,lhnversion,lhnthestring;

if (lhncheckIt('konqueror'))
{
	lhnbrowser = "Konqueror";
	lhnOS = "Linux";
}
else if (lhncheckIt('msie')) lhnbrowser = "Internet Explorer"
else if (lhncheckIt('firefox')) lhnbrowser = "Firefox"
else if (lhncheckIt('chrome')) lhnbrowser = "Google Chrome"
else if (lhncheckIt('safari')) lhnbrowser = "Safari"
else if (lhncheckIt('omniweb')) lhnbrowser = "OmniWeb"
else if (lhncheckIt('opera')) lhnbrowser = "Opera"
else if (lhncheckIt('webtv')) lhnbrowser = "WebTV";
else if (lhncheckIt('icab')) lhnbrowser = "iCab"
else if (!lhncheckIt('compatible'))
{
	lhnbrowser = "Netscape Navigator"
	lhnversion = lhndetect.charAt(8);
}
else lhnbrowser = "Unknown";

if (!lhnversion) lhnversion = lhndetect.charAt(lhnplace + lhnthestring.length);


function lhncheckIt(string)
{
	lhnplace = lhndetect.indexOf(string) + 1;
	lhnthestring = string;
	return lhnplace;
}

function WriteLHNMessage(lhnmes,AutoInvite)
{
	var LHpopwhat=(AutoInvite==1)?"OpenLHNChat();":"Invitation();";
	var url=(document.location.protocol=='https:')?"<img style='position:absolute;top:-5000px;left:-5000px;' width='1' height='1' src='https://www.livehelpnow.net/lhn/jsutil/showninvitationmessage.aspx?iplhnid=38.107.191.101|1441|9/7/2010 12:50:15 PM' />":"<img style='position:absolute;top:-5000px;left:-5000px;' width='1' height='1' src='http://www.livehelpnow.net/lhn/jsutil/showninvitationmessage.aspx?iplhnid=38.107.191.101|1441|9/7/2010 12:50:15 PM' />";

	if (zCustomInvitation==''){
		document.getElementById("Zsleft").innerHTML = "<div class=\"LVchat_window_top\"></div><div class=\"LVchat_window_middle\"><div class=\"LVchat_window_middle_inner\" style=\"background:;\"><div class=\"LVchat_window_blik\"><div class=\"LVchat_window_message_top\"></div><div class=\"LVchat_window_message_bottom\">"+lhnmes+"</div><div class=\"LVchat_window_buttons\"><a onclick=\"CloseLHNInvite();return false;\" href=\"#\"></a><a onclick=\"" + LHpopwhat + "return false;\" href=\"#\"></a><div style=\"clear:both;width:1px;height:1px;overflow:hidden;\"></div></div></div></div></div><div class=\"LVchat_window_bottom\"></div>"+url;
		}
	else
		{
		document.getElementById("Zsleft").innerHTML = lhnmes+url;
		}
	

	if (Zstepx==-10)
		{
		Zslide();
		if (Zmutechime != '1')
		{
			if (lhncheckIt('msie'))
			{
			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";
			if (document.location.protocol=='https:')
			{
				divE.src="https://www.livehelpnow.net/lhn/sounds/bell.wav";
			}
			else
			{
				divE.src="http://www.livehelpnow.net/lhn/sounds/bell.wav";
			}
			divE.autostart="true";
			divE.loop="0"
			body[0].appendChild(divE);
			setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('LHNSound'))", 3000);
			}
			else
			{
			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";
			if (document.location.protocol=='https:')
			{
				divE.src="https://www.livehelpnow.net/lhn/sounds/bell.wav";
			}
			else
			{
				divE.src="http://www.livehelpnow.net/lhn/sounds/bell.wav";
			}
			body[0].appendChild(divE);
			setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('zaBellSound'))", 3000);
			}
		}
		}
   

}



function OpenLHNChat()
{
if(typeof CustomOpenLHNChat == 'function') { 
CustomOpenLHNChat();
return false;
}
var wleft = (screen.width - 580-32) / 2;
var wtop = (screen.height - 420-96) / 2;
<!--HTTPS OR NOT: RELEASENOTE-->
	if (document.location.protocol=='https:')
	{
		window.open('https://www.livehelpnow.net/lhn/livechatvisitor.aspx?zzwindow=' + lhnwindow + '&lhnid=' + 1441 + '&d=' + 0,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
	}
	else
	{
		window.open('http://www.livehelpnow.net/lhn/livechatvisitor.aspx?zzwindow=' + lhnwindow + '&lhnid=' + 1441 + '&d=' + 0,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
	}

    if (typeof Zstepx != 'undefined')
	{
    if (Zstepx==10) 
    {
    Zslide();
    }
    }
}
function Invitation()
{
var wleft = (screen.width - 580-32) / 2;
var wtop = (screen.height - 420-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=' + lhnwindow + '&lhnid=' + 1441,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,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=' + lhnwindow + '&lhnid=' + 1441,'lhnchat','left=' + wleft + ',top=' + wtop + ',width=580,height=435,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,copyhistory=no,resizable=yes');
	}
   
    Zslide();
}

if ((''!='') && (''!=''))
{
	if (document.location.protocol=='https:')
	{
		document.write("<a href=\"#\" onclick=\"OpenLHNChat();return false;\"><img width= height= alt='Live Help' id=lhnchatimg border=0 nocache src='https://www.livehelpnow.net/lhn/functions/imageserver.ashx?lhnid=" + 1441 + "&navname=" + lhnbrowser + "&java=" + lhnjava + "&referrer=" + lhnreferrer + "&pagetitle=" + lhnpagetitle + "&pageurl=" + lhnsPath + "&page=" + lhnsPage + "&zimg=" + 40 + "&sres=" + lhnsRes + "&sdepth=" + lhnsDepth + "&flash=" + lhnflashversion + "&custom1=&custom2=&custom3=&t=" +lhnTrack + "&d=0&rndstr=" + lhnrand_no + "'></a>");
	}
	else
	{
		document.write("<a href=\"#\" onclick=\"OpenLHNChat();return false;\"><img width= height= alt='Live Help' id=lhnchatimg border=0 nocache src='http://www.livehelpnow.net/lhn/functions/imageserver.ashx?lhnid=" + 1441 + "&navname=" + lhnbrowser + "&java=" + lhnjava + "&referrer=" + lhnreferrer + "&pagetitle=" + lhnpagetitle + "&pageurl=" + lhnsPath + "&page=" + lhnsPage + "&zimg=" + 40 + "&sres=" + lhnsRes + "&sdepth=" + lhnsDepth + "&flash=" + lhnflashversion + "&custom1=&custom2=&custom3=&t=" +lhnTrack + "&d=0&rndstr=" + lhnrand_no + "'></a>");
	}

}
else
{
	if (document.location.protocol=='https:')
	{
		document.write("<a href=\"#\" onclick=\"OpenLHNChat();return false;\"><img alt='Live Help' id=lhnchatimg border=0 nocache src='https://www.livehelpnow.net/lhn/functions/imageserver.ashx?lhnid=" + 1441 + "&navname=" + lhnbrowser + "&java=" + lhnjava + "&referrer=" + lhnreferrer + "&pagetitle=" + lhnpagetitle + "&pageurl=" + lhnsPath + "&page=" + lhnsPage + "&zimg=" + 40 + "&sres=" + lhnsRes + "&sdepth=" + lhnsDepth + "&flash=" + lhnflashversion + "&custom1=&custom2=&custom3=&t=" +lhnTrack + "&d=0&rndstr=" + lhnrand_no + "'></a>");
	}
	else
	{
		document.write("<a href=\"#\" onclick=\"OpenLHNChat();return false;\"><img alt='Live Help' id=lhnchatimg border=0 nocache src='http://www.livehelpnow.net/lhn/functions/imageserver.ashx?lhnid=" + 1441 + "&navname=" + lhnbrowser + "&java=" + lhnjava + "&referrer=" + lhnreferrer + "&pagetitle=" + lhnpagetitle + "&pageurl=" + lhnsPath + "&page=" + lhnsPage + "&zimg=" + 40 + "&sres=" + lhnsRes + "&sdepth=" + lhnsDepth + "&flash=" + lhnflashversion + "&custom1=&custom2=&custom3=&t=" +lhnTrack + "&d=0&rndstr=" + lhnrand_no + "'></a>");
	}
}

