// BROWSERDETECTION
function brDetection() {			
	var brAgent = navigator.userAgent.toLowerCase();
	this.brVer = parseInt(navigator.appVersion);
	this.brVerDot = parseFloat(navigator.appVersion);
	this.ns = ((brAgent.indexOf('mozilla') != -1) && ((brAgent.indexOf('spoofer') == -1) && (brAgent.indexOf('compatible') == -1)));
		this.ns2 = (this.ns && (this.brVer == 3));
		this.ns3 = (this.ns && (this.brVer == 3));
		this.ns4b = (this.ns && (this.brVerDot < 4.04));
		this.ns4 = (this.ns && (this.brVer >= 4));
	this.ie = (brAgent.indexOf("msie") != -1);
		this.ie3 = (this.ie && (this.brVer <= 3));
		this.ie4 = (this.ie && (this.brVer >= 4));
	this.op = (brAgent.indexOf("opera") != -1);
	this.mac = (brAgent.indexOf("mac") != -1);
	this.win = (brAgent.indexOf("win") != -1);
	this.unix = (brAgent.indexOf("x11") != -1);
}

var brID = new brDetection();
// CSS
	if (brID.mac) {
		document.write ('<LINK rel="stylesheet" type="text/css" href="common/styles/macStylesheet.css">')
	}
	if ((brID.win) && (brID.ns4)) {
		document.write ('<LINK rel="stylesheet" type="text/css" href="common/styles/winNSStylesheet.css">')
	}
	if ((brID.win) && (brID.ie)) {
		document.write ('<LINK rel="stylesheet" type="text/css" href="common/styles/winIEStylesheet.css">')
	}
