//	document.write(navigator.userAgent);

var agt=navigator.userAgent.toLowerCase() // Make easier for testing
var isNav4, isIE4, isMac, isNav6;

this.major = parseInt(navigator.appVersion)
this.nav = ((agt.indexOf('mozilla')!= -1) && ((agt.indexOf('spoofer')== -1) && (agt.indexOf('compatible') == -1)))
this.ie = (agt.indexOf("msie") != -1)

isNav4 = (this.nav && (this.major == 4))
isNav6 = (this.nav && (this.major >= 5))
isIE4 = (this.ie && (this.major == 4))
isMac = (agt.indexOf("mac")!= -1)


if (isMac) {
	
	// document.write('Macintosh: ');
	
	if (isNav4) {
		// document.write('Netscape4');
		document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/stylemacnet.css">');		
	} else {
		// document.write('Not Netscape4');
		document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/stylemac.css">');
	}
	
} else if (isMac != true) {
	// document.write('Not a Mac: ');
	
	
	if (isNav4) {
		// document.write('PC Netscape 4');
		document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/stylenetscape.css">');		
	} else if (isNav6) {
		// document.write('PC Netscape 6');
		document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/style.css">');
	} else if (isIE4) {
		// document.write('PC Internet Explorer');
		document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/style.css">');
	}

} else {
	// document.write('None of the above - run default');
	document.write('<LINK rel="stylesheet" type="text/css" href="../scripts/style.css">');
}