//=================================================
// Site-Alive Page Tags and Script (version 4.2)
// Copyright 2003-2006 (c) Proquire Limited
//-------------------------------------------------
//
// 1. Please enter your unique Site-Alive account number between the "" in the variable below.

var AccountNumber = "797254910";

// 2. Please enter the URL of the server assigned to your account between the "" in the variable below.

var ServerURL = "https://www.proquire006.com";

// 3. Save and upload a copy of this JavaScript File (SiteAlive.js) to the root directory,
//    or other appropriate folder on the web server.
//
// 4. Apply the following tracking tag to the bottom of ALL non SSL web pages and script pages.
//    This MUST be installed just before the </body> tag on each page. Additionally, any pages that use
//    frames should have the FramedPage variable set to 1 instead of 0.
/*
<!-- 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 -->
*/
// 5. If the website uses SSL pages, then a copy of this file should be created and
//    named SiteAliveSecure.js, and saved in the root directory, or other appropriate
//    folder on the web server. IMPORTANT NOTE: The Server URL variable (above in Step 1) used in this new file
//    should start with https:// and not http://. You MUST apply the following tracking tag to the bottom of
//    ALL SSL web pages and script pages. This MUST be installed just before the </body> tag on each page.
//    Any pages that use frames should have the FramedPage variable set to 1 instead of 0.
/*
<!-- 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="SiteAliveSecure.js"></script>
<!-- END Site-Alive Monitor Tag. DO NOT MOVE! MUST BE PLACED JUST BEFORE THE </body> TAG -->
*/
//
// 6. Button Tag - This creates a static button on the Website and should be pasted into the website
//    pages in the exact position on each page where the help button should 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 -->
*/
//
// 7. Conversion Tag - This tag should be added to the final page of the conversion. This would be the
//    last page that a user would go to once they have completed their conversion. For example, if a user
//    purchases and they receive a 'Thank You' confirmation page, then you would place the conversion
//    tag on this page. You should use dynamic server side code to create the conversion tag, to automatically
//    insert different conversion names and amounts, as well as to collate additional sales information such as
//    product data. An example of how PHP code would look follows (this would pull through an order code and value):
/*
<!-- Start Conversion Tag -->
<img src="http://ENTERSERVERURL/skv/conv.php?name="<?php echo $ProductSale;?>"&u=ENTERACCOUNTID&amount=<?php echo $amount; ?>" width="1" height="1">
<!-- End Conversion Tag -->
*/
// 8. To measure the Abandonment Rate, enter the following tag onto the final page just before conversion:
//
//    <script language="JavaScript">var AbandonPage = 1;</script>
//
//=================================================
//
// ROOT SCRIPT
//---------------------------------------------------
// -  This script is included within this file and requires no customisation.
//
<!--
	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 ns=(document.layers);
		    var ie=(document.all);
		    var w3=(document.getElementById && !ie);

		    if (ie) {
  			    var winW = screen.width;
  			    var winH = screen.height;
 		    }//if
 		    else{
  			    var winW = window.innerWidth;
  			    var winH = window.innerHeight;
 		    }//else

		    var d=document;
		    var nv=navigator;
		    var p=0;
		    d.cookie="b=b";
		    var c=0;
		    if(d.cookie)c=1;
		    var rn=Math.random();
		    var n=(nv.appName.substring(0,2)=="Mi")?0:1;
		    var t=(new Date()).getTimezoneOffset();
		    var j = (nv.javaEnabled()?"Y":"N");
		    var s=screen;
		    var px=(n==0)?s.colorDepth:s.pixelDepth;
		    var lan=(n==1)?nv.language:nv.browserLanguage;
		    var TrackingInfo = "&c="+c+"&t="+t+"&j="+j+"&wh="+winW+'x'+winH+"&px="+px+"&lan="+lan;

            if(FramedPage)
        	    var referer = escape( parent.document.referrer ) ;
            else
        	    var referer = escape( document.referrer ) ;

            var page = escape( location.toString() ) ;

		    plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		    if ( plugin ) {
			    plugin = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 5;
		    }//if
		    else{
			    if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
   			    && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0))
			    {
				    document.write('<SCRIPT LANGUAGE=VBScript\> \n');
				    document.write('on error resume next \n');
				    document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))\n');
				    document.write('</SCRIPT\> \n');
			    }//if
		    }//else

		    if(plugin)
			    plugin = 1;
		    else
			    plugin = 0;

		    var buttonCode = "<table cellpadding=\"0\" cellspacing=\"2\" border=\"0\"><tr><td align=\"center\"><a href='JavaScript:void(0)' OnClick='launch_support()'><img src='"+ServerURL+"/show_banner.php?l="+AccountNumber+"&x="+AccountNumber+"&unique="+unique+"' border='0'></a></td></tr></table>";
		    var monitorCode = "<scr"+"ipt language=\"JavaScript\" src=\""+ServerURL+"/js/SiteAliveHosted.php?base_url="+ServerURL+"&l="+AccountNumber+"&x="+AccountNumber+"&deptid=&btn=1&invisible=1&abandon="+AbandonPage+"&unique="+unique+"&referer="+referer+"&page="+page+"&isframe="+FramedPage+TrackingInfo+"&plugin="+plugin+"\"></scr"+"ipt>";
		    document.write(monitorCode);
		    var buttonHandler = document.getElementById("sa_button");
		    if(buttonHandler)
			    buttonHandler.innerHTML = buttonCode;
	    }//if
	    
	    function SiteAliveFire()
	    {
	       
	    }
	

//-->

//=================================================
//END OF FILE
//=================================================
