// Checking browser for Internet Explorer
MSIE = navigator.appName == "Microsoft Internet Explorer";

// Checking platform
Macintosh = navigator.userAgent.indexOf ("Mac") > -1;

// If IE found get 4 Characters after MSIE (Version Number)
if(MSIE)
{
		uA = navigator.userAgent;
		MSIEVer = uA.substr (uA.indexOf("MSIE ")+("MSIE ").length, 4);
		MSIEVer = parseFloat (MSIEVer);
}

// If MSIE and Mac platform and version is 5.2 or greater then using OS X
// If MSIE and Mac platform and version is less than 5.2 then using Classic
if(MSIE)
{
	if(Macintosh)
	{
		if(MSIEVer >=5.2)
		{
			alert("We have detected that you are using Internet Explorer on Mac OS X.\n\nThis browser is no longer supported by Microsoft\nand can cause incorrect page display.\n\nWe would reccommend you use either Safari or Firefox as these\nboth conform to industry standards.");
		}
		else
		{
			alert("We have detected that you are using Internet Explorer on the Mac.\n\nThis browser is no longer supported by Microsoft\nand can cause incorrect page display.\n\nWe would reccommend you use iCab as this is the only\nbrowser maintained for you OS version.");
		}
	}
}
