
    var gac = new gaCookies();
    //alert(gac.getUniqueId());
	
	var d = new Date();
	//alert(d.getTime() + " milliseconds since 1970/01/01");
	
	//alert(gac.getSessionCounter());
	
	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-22706869-1']);
	_gaq.push(['_setCustomVar', 1, 'LinkTag', CustomLink(''), 3]);
	_gaq.push(['_setCustomVar', 2, 'SID', gac.getUniqueId(), 2]);
	_gaq.push(['_setCustomVar', 3, 'DateTime', d.getTime(), 3]);
	_gaq.push(['_setCustomVar', 4, 'SessionNumber', gac.getSessionCounter(), 3]);
	_gaq.push(['_trackPageview']);

	(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    //ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/u/ga_debug.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();	

function Right(str, n){
    if (n <= 0)
       return "";
    else if (n > String(str).length)
       return str;
    else {
       var iLen = String(str).length;
       return String(str).substring(iLen, n);
    }
}

function Left(str, n){
	if (n <= 0)
	    return "";
	else if (n > String(str).length)
	    return str;
	else
	    return String(str).substring(0,n);
}


  function CustomLink(str) {
	var LinkValue = str;
	var PageLocation = window.location.href;
	var NewPageLocation;
	LinkValue = LinkValue.replace(/\s+/g,"_");
		
	//Take off the "http://" portion of the URL
	PageLocation = Right(PageLocation,7);
	//Take off the file ext.
	PageLocation = Left(PageLocation, PageLocation.length-4);

	//Split it where the "/" are.
	PageLocation = PageLocation.split("/");
	
	//Trim the URL folders to 5 char and put them together again.
	for(i = 1; i < PageLocation.length; i++){
		if (i == 1) {
			NewPageLocation = PageLocation[i]; 
		} else {
			NewPageLocation = NewPageLocation + "+" + PageLocation[i]; 
		}
	}
	
	//alert(LinkValue);
	CustomLinkTag = NewPageLocation + "||" + LinkValue;
	CustomLinkTag = CustomLinkTag.substr(0,50);
	//alert(CustomLinkTag);
	return CustomLinkTag;
  }

