function isMacintosh()
{
	if (navigator.appVersion.indexOf("Mac") != -1)
		return true;
	if (navigator.appVersion.indexOf("PPC") != -1)
		return true;
	return false;
}

function is4()
{
	if ((parseInt(navigator.appVersion) >= 4) && (parseInt(navigator.appVersion) < 5))
		return true;
	return false;
}

function is6() // if browser claims to be version >=5 and has w3c DOM1 capabilities
{
	if ((parseInt(navigator.appVersion) >= 5) && document.getElementById)
		return true;
	return false;
}

function isNN()
{
	if (navigator.appName == "Netscape")
		return true;
	return false;
}

function isIE()
{
	if (navigator.appName == "Microsoft Internet Explorer")
		return true;
	return false;
}

function includeCSS (path)
{
	var sheet = "";
	if (isMacintosh())
	{
		if (is4() && isNN()) sheet="mac.css"; // NN 4.x
		if (is6() && isNN()) sheet="pc.css"; // NN >6
		if (is4() && isIE()) sheet="mac.css"; // MSIE >4
	}
	else
	{
		if (is4() && isNN()) sheet="pc.css"; // NN 4.x
		if (is6()) sheet="pc.css"; // NN >6 or MSIE >5.5
		if (is4() && isIE()) sheet="pc.css"; // MSIE >4
	}
	if (sheet != "")
	{
	//	alert (navigator.appVersion);
	//	alert (sheet);
		document.write('<link rel="stylesheet" href="' + path + sheet +'" type="text/css">');
	}
}
