//alert(navigator.appName);
//alert(Navigator.appVersion);
//if (document.layers) {document.write("<link rel='stylesheet' href='images/stilens.css' type='text/css'>")} 
//if (document.all) {document.write("<link rel='stylesheet' href='images/stilexp.css' type='text/css'>")}
//if (document.getElementById) {
//alert(document.getElementById=false);
//document.write("<link rel='stylesheet' href='images/stilens6.css' type='text/css'>");
//}

function BrowserCheck() {
	var b = navigator.appName
	var c = navigator.platform 
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.version = navigator.appVersion
	this.v = parseInt(this.version)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns6 = (this.b=="ns" && this.v==5)
	this.ns7 = (this.b=="ns" && this.v==6)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (this.version.indexOf('MSIE 4')>0)
	this.ie5 = (this.version.indexOf('MSIE 5')>0)
	this.ie6 = (this.version.indexOf('MSIE 6')>0)
	this.ie7 = (this.version.indexOf('MSIE 7')>0)
	this.ie8 = (this.version.indexOf('MSIE 8')>0)
	this.ie9 = (this.version.indexOf('MSIE 9')>0)
	this.mac = (c.indexOf('Mac')>0)
	this.min = (this.ns||this.ie)
	//alert("BROWSER = "+b+" "+this.version+"\nS.O. = "+c);
}

is = new BrowserCheck()
 
if (is.mac) {document.write("<link rel='stylesheet' href='/css/stilemac.css' type='text/css'>")} 
if (is.ns4) {document.write("<link rel='stylesheet' href='/css/stilens4.css' type='text/css'>")} 
if (is.ns6) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ns7) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ie4||is.ie5) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ie6) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ie7) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ie8) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
if (is.ie9) {document.write("<link rel='stylesheet' href='/css/stilexp1.css' type='text/css'>")}
