var agt=navigator.userAgent.toLowerCase()
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) {
	
	if (isNav4) {
		document.write('<LINK rel="stylesheet" type="text/css" href="scripts/stylemacnet.css">');		
	}
	else if (isIE4 || isNav6) {
		document.write('<LINK rel="stylesheet" type="text/css" href="scripts/styleiemac.css">');
	}
	
} else if (isMac != true) {
	
	if (isNav4) {
		document.write('<LINK rel="stylesheet" type="text/css" href="scripts/stylenet.css">');		
	}
	else if (isIE4 || isNav6) {
		document.write('<LINK rel="stylesheet" type="text/css" href="scripts/style.css">');
	}

} else {
	document.write('<LINK rel="stylesheet" type="text/css" href="scripts/style.css">');
}
