//<script language="JavaScript" type="text/JavaScript">

function getBrowserName()
{
	var nBrowser = navigator.appName;
	if (nBrowser.indexOf("Microsoft") >= 0)
	{
		nBrowser = "MSIE";
	}
	else if (nBrowser.indexOf("Netscape") >= 0)
	{
		nBrowser = "NS";
	}
	else
	{
		nBrowser = "other";
	}
	return nBrowser;
}

function getBrowserVersion()
{
	var findIndex;
	var browserVersion = 0;
	var browser = getBrowserName();
	if (browser == "MSIE")
	{
		browserVersion = navigator.userAgent;
		findIndex = browserVersion.indexOf(browser) + 5;
		browserVersion = parseInt(browserVersion.substring(findIndex,findIndex + 1));
	}
	else
	{
		browserVersion = parseInt(navigator.appVersion.substring(0,1));
	}
	return browserVersion;
}

//</script>

//<script language="JavaScript" type="text/JavaScript">
if (getBrowserName() == "MSIE")
{
	if (getBrowserVersion() > 6)
	{
		document.write("<style type=\"text/css\">");
		//document.write("@import url(\"http://www.xonline.org.uk/css/xonline_ie7001.css\");");
		document.write("@import url(\"http://www.xonline.org.uk/css/xonline_basic001.css\");");
		document.write("</style>");
	}
	else
	{
		document.write("<style type=\"text/css\">");
		document.write("@import url(\"http://www.xonline.org.uk/css/xonline_iepre7001.css\");");
		document.write("</style>");
	}
}
else
{
	document.write("<style type=\"text/css\">");
	document.write("@import url(\"http://www.xonline.org.uk/css/xonline_basic001.css\");");
	document.write("</style>");
}
//</script>

