<!--
var w3c = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined');
var ie = typeof window.ActiveXObject != 'undefined';
var sURL = "/setcookie.asp"
var pURL = "/livetrack/GetData.asmx/InsertData"
var oXMLHTTP;
function TrackMe() {
	try {
		if (w3c) {oXMLHTTP = new XMLHttpRequest()}
		else if (ie) {oXMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" )}
		var vid = GetCookie("VisitorID")
		if (vid == "") {CreateCookie()}
		else{
			oXMLHTTP.open("POST", pURL, false );
			oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
			oXMLHTTP.send("pg=" + document.title +"&vid="+ vid);
			}
		}
	catch(error) {
		alert(error.description)
		}
}
function endMe1() {
	if (w3c) {oXMLHTTP = new XMLHttpRequest();}
	else if (ie) {oXMLHTTP = new ActiveXObject( "Microsoft.XMLHTTP" );}
	var vid = GetCookie("VisitorID")
	if (vid == "") {CreateCookie();}
	else{
		oXMLHTTP.open("POST", pURL, false );
		oXMLHTTP.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
		oXMLHTTP.send("pg=Ended&vid="+ vid);
		}
}

function endMe() {}

function CreateCookie() {
	try {
		oXMLHTTP.open("POST",sURL,false);
		oXMLHTTP.send(null);
		TrackMe();
		}
	catch(error) {
		alert(error.description)
		}
}
function GetCookie(cookiename) {
	try {
		var cookiestring=""+document.cookie;
		var index1=cookiestring.indexOf(cookiename);
		if (index1==-1 || cookiename=="") return ""; 
		var index2=cookiestring.indexOf(';',index1);
		if (index2==-1) index2=cookiestring.length; 
		return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
		}
	catch(error) {
		alert(error.description)
		}
}
//TrackMe();
//-->