// prüfen auf Mac-NS vers.6up, Mac-IE vers.5.1up, PC-NS vers.6up, PC-IE vers.5up
// allen anderen Plattformen und Browsern wird der PC-IE-Style zugewiesen

function styleBrowserCheck (path, pcIe, pcNs, macIe, macNs) 
{
	var agt    = navigator.userAgent.toLowerCase();
	var is_mac = (agt.indexOf("mac")!=-1);
	var	is_ns  = (document.getElementById && !document.all) ? true : false;
	var cstyle = path;

	if (is_mac)
	{
		if (is_ns) 
		{ 
			 cstyle += macNs;
		} else {
			 cstyle += macIe;
		}
	} else {
		if (is_ns)
		{
			cstyle += pcNs;
		} else {
			cstyle += pcIe;
		}
	}
	document.write ('<LINK REL=stylesheet TYPE="text/css" HREF="' + path + 'fonts.css">');
	document.write ('<LINK REL=stylesheet TYPE="text/css" HREF="' + cstyle + '">');
}

styleBrowserCheck ('/hpc/css/', 'fonts_pc_ie.css', 'fonts_pc_ns.css', 'fonts_mac_ie.css', 'fonts_mac_ns.css');
