
var zazaTrack='';
if (typeof ZaZaInstalled !='undefined'){zazaTrack='f'}
var ZaZaInstalled=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 zazajava;
var zazareg = new RegExp('/');
var zazareferrer = escape(document.referrer);
var zazawindow='';

var zazapagetitle=escape(document.title);
var srnd;
var zazasShortPath = escape(window.location.pathname);

var zazasPath=escape(this.location);

if (zazasShortPath=='/')
{
	var zazasPage = escape(window.location.href);
}
else
{
	var zazasPage = escape(zazasShortPath.substring(zazasShortPath.lastIndexOf('/') + 1));
}
if ( !(navigator.javaEnabled()) ) {
  zazajava="No" ;
} else {
  zazajava="Yes" ;
}
var zazarand_no = Math.random();


var zazasRes;
var zazasDepth;
if (window.screen) {
zazasRes=screen.width + 'x' + screen.height;
zazasDepth=screen.colorDepth;
}

var zazaflashversion = 0;
var zazadetect = navigator.userAgent.toLowerCase();
var zazaOS,zazabrowser,zazaversion,zazathestring;

if (zazacheckIt('konqueror'))
{
	zazabrowser = "Konqueror";
	zazaOS = "Linux";
}
else if (zazacheckIt('msie')) zazabrowser = "Internet Explorer"
else if (zazacheckIt('firefox')) zazabrowser = "Firefox"
else if (zazacheckIt('chrome')) zazabrowser = "Google Chrome"
else if (zazacheckIt('safari')) zazabrowser = "Safari"
else if (zazacheckIt('omniweb')) zazabrowser = "OmniWeb"
else if (zazacheckIt('opera')) zazabrowser = "Opera"
else if (zazacheckIt('webtv')) zazabrowser = "WebTV";
else if (zazacheckIt('icab')) zazabrowser = "iCab"
else if (!zazacheckIt('compatible'))
{
	zazabrowser = "Netscape Navigator"
	zazaversion = zazadetect.charAt(8);
}
else zazabrowser = "Unknown";

if (!zazaversion) zazaversion = zazadetect.charAt(zazaplace + zazathestring.length);

function zazacheckIt(string)
{
	zazaplace = zazadetect.indexOf(string) + 1;
	zazathestring = string;
	return zazaplace;
}

function WriteZaZaMessage(zazames,AutoInvite)
{
	
		var url = "<img style='position:absolute;top:-5000px;left:-5000px;' width='1' height='1' src='http://zazachat.zazasoftware.com/livechatclient/jsutil/showninvitationmessage.aspx?ipzazac=38.107.191.81|3990|11/20/2009 5:13:58 PM' />"
	

	if (AutoInvite==1)
		{
		if (zCustomInvitation==''){
			document.getElementById("Zsleft").innerHTML = "<table bgcolor= border=0 cellpadding=2 width=300 cellspacing=2><tr><td align=center width=100% height=20 style='FONT-WEIGHT: bold;font-face:Tahoma ! important;font-size:15px ! important;color: ! important;'></td></tr><tr><td align=center style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;'>" + zazames + "</td></tr><tr><td nowrap align=center height=30 style='white-space: pre;'><a style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;' href='javascript:void(0);' onclick='javascript:CloseZaZaInvite()'></a>&nbsp;&nbsp;&nbsp;<a style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;' href='javascript:void(0);' onclick=OpenZaZaChat()></a></td></tr></table>"+url;
			}
		else
			{
			document.getElementById("Zsleft").innerHTML = zazames+url;
			}
		}
	else
		{
		if (zCustomInvitation==''){
			document.getElementById("Zsleft").innerHTML = "<table bgcolor= border=0 cellpadding=2 width=300 cellspacing=2><tr><td align=center width=100% height=20 style='FONT-WEIGHT: bold;font-face:Tahoma ! important;font-size:15px ! important;color: ! important;'></td></tr><tr><td align=center style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;'>" + zazames + "</td></tr><tr><td nowrap align=center height=30 style='white-space: pre;'><a style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;' href='javascript:void(0);' onclick='javascript:CloseZaZaInvite()'></a>&nbsp;&nbsp;&nbsp;<a style='font-face:Tahoma ! important;font-size:13px ! important;FONT-WEIGHT: bold ! important;color: ! important;' href='javascript:void(0);' onclick=Invitation()></a></td></tr></table>"+url;
			}
		else
			{
			document.getElementById("Zsleft").innerHTML = zazames+url;
			}
		}

	if (Zstepx==-2)
		{
		Zslide();
		if (Zmutechime != '1')
		{
			if (zazacheckIt('msie'))
			{
			var body = document.getElementsByTagName("body");
			var divE = document.createElement('bgsound');
			divE.id = "ZaZaSound";
			divE.style.position = "absolute";
			divE.style.left = "0px";
			divE.style.top = "0px";
			divE.hidden = "true";
			
				divE.src="http://zazachat.zazasoftware.com/livechatclient/sounds/bell.wav";
			
			divE.autostart="true";
			divE.loop="0"
			body[0].appendChild(divE);
			setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('ZaZaSound'))", 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";
			
				divE.src="http://zazachat.zazasoftware.com/livechatclient/sounds/bell.wav";
			
			body[0].appendChild(divE);
			setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('zaBellSound'))", 3000);
			}
		}
		}
   

}

function OpenZaZaChat()
{
var wleft = (screen.width - 580-32) / 2;
var wtop = (screen.height - 420-96) / 2;
<!--HTTPS OR NOT: RELEASENOTE-->
	
		window.open('http://zazachat.zazasoftware.com/livechatclient/livechatvisitor.aspx?zzwindow=' + zazawindow + '&zazac=' + 3990,'zazachat','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==2) 
    {
    Zslide();
    }
    }
}
function Invitation()
{
var wleft = (screen.width - 580-32) / 2;
var wtop = (screen.height - 420-96) / 2;
	
	    window.open('http://zazachat.zazasoftware.com/livechatclient/livechat.aspx?fullname=Visitor&email=unknown_email@zazachat.com&zazames=zaza&zzwindow=' + zazawindow + '&zazac=' + 3990,'zazachat','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 (('153'!='') && ('35'!=''))
{

		document.write("<a href=\"#\" onclick=\"OpenZaZaChat(); return false;\"><img width=153 height=35 alt='Live Chat Support' id=zazachatimg border=0 nocache src='http://zazachat.zazasoftware.com/livechatclient/functions/imageserver.ashx?zazac=" + 3990 + "&navname=" + zazabrowser + "&java=" + zazajava + "&referrer=" + zazareferrer + "&pagetitle=" + zazapagetitle + "&pageurl=" + zazasPath + "&page=" + zazasPage + "&zimg=" + 17 + "&sres=" + zazasRes + "&sdepth=" + zazasDepth + "&flash=" + zazaflashversion + "&custom1=&custom2=&custom3=&t=" +zazaTrack + "&d=&rndstr=" + zazarand_no + "'></a>");
	

}
else
{

		document.write("<a href=\"#\" onclick=\"OpenZaZaChat(); return false;\"><img alt='Live Chat Support' id=zazachatimg border=0 nocache src='http://zazachat.zazasoftware.com/livechatclient/functions/imageserver.ashx?zazac=" + 3990 + "&navname=" + zazabrowser + "&java=" + zazajava + "&referrer=" + zazareferrer + "&pagetitle=" + zazapagetitle + "&pageurl=" + zazasPath + "&page=" + zazasPage + "&zimg=" + 17 + "&sres=" + zazasRes + "&sdepth=" + zazasDepth + "&flash=" + zazaflashversion + "&custom1=&custom2=&custom3=&t=" +zazaTrack + "&d=&rndstr=" + zazarand_no + "'></a>");
	
}

var zazaContainer=document.getElementById('zazacontainer');
if (zazaContainer)
	{
	zazaContainer.style.display='inline';
	}
