//=================================================
// Site-Alive Page Tags and Script (version 4.2)
// Copyright 2003-2006 (c) Proquire Limited
//-------------------------------------------------
//
// GENERAL INSTRUCTIONS
// In order for Site-Alive to be able to recognise your website
// visitors, you must upload this file to the root directory of your
// website server and embed Site-Alive tags into your Website pages.
// There are 2 types of tags: a Button Tag which displays the
// Live Help button, and a Tracking Tag which is used to track your
// visitors. Please ensure that you embed the Tracking Tag into all
// pages where you wish to use the Site-Alive services. There are also
// to custom variables that you will need to set: Account Number and 
// Server URL. The information for these variables should have been supplied
// to you by your Site-Alive Account Manager.
//
// In totality, this file contains the following information, tags and
// scripts for use in conjunction with your Site-Alive account:
//
// 1. Account Number
// 2. Server URL
// 3. Tracking Tag
// 4. Button Tag
// 5. Root script
//=================================================
//
// 1. ACCOUNT NUMBER
//---------------------------------------------------
// Please enter your unique Site-Alive account number between the "" in the
// variable below. This can be obtained from your Site-Alive Account Manager.
//-------------------------------------------------

var AccountNumber = "242047239"; 

//=================================================
//
//// 2. SERVER URL
//---------------------------------------------------
// Please enter the URL of the server assigned to your account between
// the "" in the variable below. This can be obtained from your Site-Alive
// Account Manager. If you are going to use Site-Alive on any https (SSL) pages
// please upload a separate copy of this file to the root directory of
// your SSL server and ensure that the URL used below is changed
// to start with "https://www".
//-------------------------------------------------

var ServerURL = "http://www.proquire006.com"; 

//=================================================
//
// 3. TRACKING TAG
//---------------------------------------------------
// This is invisible to your website visitors, but enables you
// to monitor their activity on your Website and invite them to
// chat if required, as well as track them as they move around
// your web pages. Copy and paste the Monitor Tag into the very
// bottom part of all web pages including those pages where you
// have embedded buttons (just before the </body> tag).
// 
// If you are applying the Tracking Tag to any web pages that
// use frames, then you will need to change the variable within
// this tag from 0 to 1 (e.g.FramedPage = 1)
//-------------------------------------------------

/*
<!-- BEGIN Site-Alive Monitor Tag. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE </body> TAG -->
<script language="JavaScript">var FramedPage = 0;</script>
<script language="JavaScript" src="SiteAlive.js"></script>
<!-- END Site-Alive Monitor Tag. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE </body> TAG -->
*/

//=================================================
//
// 4. BUTTON TAG
//---------------------------------------------------
// This creates a button on your Website, inviting
// visitors to click for live help. Copy and paste
// the Site-Alive Button Tag into your website pages
// wherever you wish the help button to appear.
//-------------------------------------------------

/*
<!-- BEGIN Site-Alive Button Tag. DO NOT MOVE! MUST BE PLACED WHERE YOU WISH TO EMBED THE BUTTON -->
<div id="sa_button"></div>
<!-- END Site-Alive Button Tag. DO NOT MOVE! MUST BE PLACED WHERE YOU WISH TO EMBED THE BUTTON -->
*/

//=================================================
//
// 5. ROOT SCRIPT
//---------------------------------------------------
// -  This script is included within this file and requires
// no customisation. This whole file in its entirety should
// be located in the root directory for your web site.
//-------------------------------------------------

<!--
	function dounique() { var date = new Date() ; return date.getTime() ; }
	var library_loaded = 0;
	var SA_timedout = getCookie("SA_timedout");
	var SA_MaxTimeout = 5;
	if(SA_timedout==null || SA_timedout==0 || SA_timedout==""){
		var SA_Latency = setTimeout("SA_LatencyControl()",SA_MaxTimeout*1000);
	}//if
	function SA_LatencyControl(){
		if(library_loaded == 0){
			setCookie("SA_timedout","1");
		}//if
	}//function	
	function setCookie(name, value, expires, path, domain, secure){
    document.cookie= name + "=" + escape(value) +
        ((expires) ? "; expires=" + expires.toGMTString() : "") +
        ((path) ? "; path=" + path : "") +
        ((domain) ? "; domain=" + domain : "") +
        ((secure) ? "; secure" : "");
	}//setCookie
	function getCookie(name){
    var dc = document.cookie;
    var prefix = name + "=";
    var begin = dc.indexOf("; " + prefix);
    if (begin == -1)
    {
        begin = dc.indexOf(prefix);
        if (begin != 0) return null;
    }
    else
    {
        begin += 2;
    }
    var end = document.cookie.indexOf(";", begin);
    if (end == -1)
    {
        end = dc.length;
    }
    return unescape(dc.substring(begin + prefix.length, end));
	}//getCookie
	
	if(SA_timedout==null || SA_timedout==0 || SA_timedout==""){	
		var unique = dounique();
		if(!AbandonPage)
			var AbandonPage = 0;
		if(!FramedPage)
			var FramedPage = 0;
		if(FramedPage == 0)
			var referer = escape( document.referrer );
		else
			var referer = escape( parent.document.referrer );
			
		var buttonCode = "<table cellpadding=\"0\" cellspacing=\"2\" border=\"0\"><tr><td align=\"center\"><a href='JavaScript:void(0)' OnClick='launch_support()'><img src='"+ServerURL+"/banner.php?l="+AccountNumber+"&x="+AccountNumber+"&notrack=1&unique="+unique+"' border='0'></a></td></tr><tr><td align=\"center\"><a target=\"_blank\" href=\"http://www.site-live.com/linking_page.html\"><img src=\""+ServerURL+"/gfx/powered_by.gif\" width=\"73\" height=\"17\" border=\"0\"></a></td></tr></table>";
		var monitorCode = "<scr"+"ipt language=\"JavaScript\" src=\""+ServerURL+"/js/site-alive.php?base_url="+ServerURL+"&l="+AccountNumber+"&x="+AccountNumber+"&deptid=&btn=1&invisible=1&abandon="+AbandonPage+"&unique="+unique+"&referer="+referer+"&isframe="+FramedPage+"\"></scr"+"ipt>";
		document.write(monitorCode);	
		var buttonHandler = document.getElementById("sa_button");
		if(buttonHandler)
			buttonHandler.innerHTML = buttonCode;
	}//if
	
//-->

//=================================================
//END OF FILE
//=================================================