<!--

function uaDetect()
{
	//variables for browser type, platform, indicators, and one stop shopping
	var ie,ie6,ie5,ie4,net6,nav4,mozilla,gecko;
	var win,mac;
	var dom,version,agt,os,browersName;
	var cssCompliant;

	//used to find out
	this.dom = (document.getElementById) ? 1 : 0;
	this.version = parseInt(navigator.appVersion);
	this.agt = navigator.userAgent.toLowerCase();
	this.browserName = navigator.appName.toLowerCase();
	this.os = navigator.platform.toLowerCase();	

	//browsers
	//internet explorers
	this.ie  = (this.version >= 4 && this.agt.indexOf('msie') > -1) ? 1 : 0;
	this.ie4 = (this.agt.indexOf('msie 4.') && !this.dom) ? 1 : 0;
	this.ie5 = (this.agt.indexOf('msie 5.') > -1 && this.dom) ? 1 : 0;
	this.ie6 = (this.agt.indexOf('msie 6.') > -1 && this.dom) ? 1 : 0;

	//navigators
	this.n4 = (this.browserName.indexOf('netscape') > -1 && !this.dom) ? 1 : 0;
	this.n6 = (this.agt.indexOf('netscape6') > -1 && this.dom) ? 1 : 0;

	//mozilla
	this.mozilla = (this.agt.indexOf('gecko') > -1 && this.dom && !this.n6) ? 1 : 0;

	//both netscape 6 and mozilla
	this.gecko = (this.n6 || this.mozilla);

	//platforms (just windows and mac for now)
	this.win = (this.os.indexOf('win') > -1) ? 1 : 0;
	this.mac = (this.os.indexOf('mac') > -1 || this.os.indexOf('ppc') > -1) ? 1 :0;

	//one stop shopping for all css (mostly) compliant browsers
	this.cssCompliant = ((this.ie && this.win) || (this.gecko) || (this.ie5 && this.mac)) ? 1 : 0;

	return this;
}

function writeCss()
{
	uaDetect();

	if (this.version >= 4)
	{
		var strCss,cssBrowser;

		cssBrowser = (this.cssCompliant) ? "css" : null;
		
		if (this.nav4)
		{
			cssBrowser = "nav4";
		}
	
		strCss = (cssBrowser != null) ? "<link href='../inc/styles/" + cssBrowser + ".css' rel='styleSheet' type='text/css'>" : "<!-- you get nothing -->";

		document.write(strCss);
	}
}

writeCss()

//-->