
is = new BrowserCheck()
 
 function BrowserCheck() {
	var browser = navigator.appName
	// browsers defined are netscape and ie only
	if (browser=="Netscape") this.browser = "ns"
	else if (browser=="Microsoft Internet Explorer") this.browser = "ie"
	else this.browser = browser
	if (navigator.appVersion.indexOf("Mac") != -1) this.platform = "mac";  
    else  this.platform = "pc"; 	
	this.mac = (this.platform=="mac")
	this.pc = (this.platform=="pc")
	// version tell the exact version
	this.vers = parseInt(navigator.appVersion)
	// ie3/ns3 and lower
	this.ns3 =(this.browser=="ns" && this.vers<=3)
	this.ie3 = (this.browser=="ie" && this.vers<=3)
	// ns/4/5 ie/4/5 are 4 plus browsers
	this.ns = (this.browser=="ns" && this.vers>=4)
	this.ns4 = (this.browser=="ns" && this.vers==4)
	this.ns5 = (this.browser=="ns" && this.vers==5)
	this.ie = (this.browser=="ie" && this.vers>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.vers = 5
}
whichStyle="pc_ie"
if (is.pc){
	if (is.ns){whichStyle="pc_ns"}
	if (is.ie){whichStyle="pc_ie"}
	if (is.ns5){whichStyle="pc_ie"}
}

if (is.mac){
	if (is.ns){whichStyle="mac_ns"}	
	if (is.ie){whichStyle="mac_ie"}
}	
	
	
document.write('<link rel="stylesheet" href="../global/styles/'+whichStyle+'.css" type="text/css" />');