<!--
function postScreenBrowserDimensions(locale) {

	var javaEnabled = "undefined";
	var colourDepth = window.screen.colorDepth;
	var colours = Math.pow (2, colourDepth);
	var smoothing = "undefined";
	var appName = navigator.appName;
	var appVersion = navigator.appVersion;
	var appCodeName = navigator.appCodeName;
	var platform = navigator.platform;
	var screenWidth = screen.width;
	var screenHeight = screen.height;
	var browserWidth = "undefined";
	var browserHeight = "undefined";

	if(navigator.javaEnabled() < 1) {
		 javaEnabled = "No";
	}
	if(navigator.javaEnabled() == 1) {
		javaEnabled = "Yes";
	}


	if(window.screen.fontSmoothingEnabled == true) {
		smoothing = "Yes";
	}
	else {
		smoothing = "No";
	}


	if(document.all) {
		browserWidth = document.body.clientWidth;
		browserHeight = document.body.clientHeight;
	}
	else {
		browserWidth = innerWidth;
		browserHeight = innerHeight;
	}

	var request = false;

	try {
		request = new XMLHttpRequest();
	}
	catch(trymicrosoft) {
		try {
			request = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(othermicrosoft) {
			try {
				request = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(failed) {
				request = false;
			}
		}
	}

	if(!request) {
		alert("Error initializing XMLHttpRequest!");
	}
	
	var arr = new Array();
	arr.push("http://www.betfair.com/");
	arr.push("?");
	arr.push("locale");
	arr.push("=");
	arr.push(locale);
	arr.push("&");
	arr.push("colourDepth");
	arr.push("=");
	arr.push(colourDepth);
	arr.push("&");
	arr.push("colours");
	arr.push("=");
	arr.push(colours);
	arr.push("&");
	arr.push("screenWidth");
	arr.push("=");
	arr.push(screenWidth);
	arr.push("&");
	arr.push("screenHeight");
	arr.push("=");
	arr.push(screenHeight);
	arr.push("&");
	arr.push("browserWidth");
	arr.push("=");
	arr.push(browserWidth);
	arr.push("&");
	arr.push("browserHeight");
	arr.push("=");
	arr.push(browserHeight);
	arr.push("&");
	arr.push("javaEnabled");
	arr.push("=");
	arr.push(javaEnabled);
	arr.push("&");
	arr.push("smoothing");
	arr.push("=");
	arr.push(smoothing);
	arr.push("&");
	arr.push("appName");
	arr.push("=");
	arr.push(appName);
	arr.push("&");
	arr.push("appVersion");
	arr.push("=");
	arr.push(appVersion);
	arr.push("&");
	arr.push("appCodeName");
	arr.push("=");
	arr.push(appCodeName);
	arr.push("&");
	arr.push("platform");
	arr.push("=");
	arr.push(platform);

	//alert(" " + arr.join(''));

	request.open("GET", arr.join(''), true);
	request.onreadystatechange = updatePage;
	request.send(null);
}

function updatePage() {

	if(request.readyState == 0) {
		//do nothing
	}
	else
	if(request.readyState == 1) {
		//do nothing
	}
	else
	if(request.readyState == 2) {
		//do nothing
	}
	else
	if(request.readyState == 3) {
		//do nothing
	}
	else
	if(request.readyState == 4) {
		//do nothing
		//alert("Server is done! " + request.readyState);
	}
}
//-->
