function getXmlHttpRequestObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP");
	} else {
	}
}

function checkIt(string) {
	place = navigator.userAgent.toLowerCase().indexOf(string) + 1;
	return place;
}

xmlhttp = getXmlHttpRequestObject();

var id;
sr = screen.width+"x"+screen.height;
sc = screen.colorDepth+"-bit";
java = navigator.javaEnabled();
co = navigator.cookieEnabled;
pl = navigator.platform;
ref = escape(document.referrer);
loc = location.href; 
title = document.title;

if (checkIt('linux')) OS = "Linux";
else if (checkIt('x11')) OS = "Unix";
else if (checkIt('mac')) OS = "Mac"
else if (checkIt('win')) OS = "Windows"

if (navigator.language) ul = navigator.language.toLowerCase();
else if (navigator.browserLanguage) ul = navigator.browserLanguage.toLowerCase();

xmlhttp.open("POST", "http://www.mountliming.co.uk/_stats/stats.php", true);
xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlhttp.send('submit=true&title='+ title +'&pg='+ loc +'&os='+ OS +'&sr='+ sr +'&sc='+ sc +'&id='+ id +'&ul='+ ul +'&co='+ co +'&pl='+ pl +'&ref='+ ref +'');
