// Hits link tracking code goes here
	(function() 
	{		
		function bind( name, handler )
		{
			if (window.addEventListener) window.addEventListener( name, handler, false)
			else if (window.attachEvent) window.attachEvent( "on"+name, handler);
		}

		var init;
		var o = { dur: new Date(), rt: null, ref: document.referrer, url: location, ua: navigator.userAgent}
		document.cookie = "asid=" + (o.asid = (document.cookie.match(/(?:(?:; )|^)asid=(.*?)(?:(?:; )|$)/) || [,Math.random().toString(16).replace(".","")])[1]) + "; path=/"

		if (document.cookie!="" && !init)
		{
			window.status = o.asid
			init=true;
			bind("load", function() 
			{
				o.rt = new Date() - o.dur				
				bind("unload", function()
				{				
					o.dur = new Date() - o.dur;
					var img = document.createElement("IMG")
					var qry = "";					
					for(i in o)
					{
						qry += i + "=" + escape(o[i]) + "&"
					}
					img.src = "http://analyse.services.character27.co.uk/?" + qry + "sd=" + Math.random().toString().replace(".","")
					document.body.appendChild( img )
				})
			})
		}
	})()