var uA;
var v;
var ie4;
var ie5;
var ie6;
var ie7;
var gebid;
var winns4;
var winns6;
var winie4;
var winie5;
var winie6;
var winie7;
var macns4;
var macns6;
var macie4;
var macie5;
var other;
var linux;
var min;

function BrowserCheck()
{
	var b = navigator.appName;
	if (b=="Netscape") this.b = "ns";
	else if (b=="Microsoft Internet Explorer") this.b = "ie";
	else this.b = b;
	
	var p = navigator.platform.toLowerCase();
	if (p=="win32") this.p = "win";
	else if (p=="macppc") this.p = "mac";
	else if (p=="x11") this.p = "x11";
	else this.p = p;
	
	if(document.getElementById)gebid=true;
		
	uA = navigator.userAgent.toLowerCase();
	v = parseInt(navigator.appVersion);
	ns4 = (this.b=="ns" && this.v==4);
	ns6 = (this.b=="ns" && this.v>=5);
	ie4 = (uA.indexOf('msie 4')>0);
	ie5 = (uA.indexOf('msie 5')>0);
	ie6 = (uA.indexOf('msie 6')>0);
	ie7 = (uA.indexOf('msie 7')>0);
	winns4 = (this.b=="ns" && this.p=="win" && this.v==4);
	winns6 = (this.b=="ns" && this.p=="win" && this.v>=5);
	winie4 = (this.p=="win" && uA.indexOf('msie 4')>0);
	winie5 = (this.p=="win" && uA.indexOf('msie 5')>0);
	winie6 = (this.p=="win" && uA.indexOf('msie 6')>0);
	winie7 = (this.p=="win" && uA.indexOf('msie 7')>0);
	macns4 = (this.b=="ns" && this.p=="mac" && this.v==4);
	macns6 = (this.b=="ns" && this.p=="mac" && this.v>=5);
	macie4 = (this.p=="mac" && uA.indexOf('msie 4.5')>0);
	macie5 = (this.p=="mac" && uA.indexOf('msie 5')>0);
	other = ((this.p!="mac" && this.p!="win") || (this.b!="ns" && this.b!="ie") || uA.indexOf('aol')>0 || uA.indexOf('opera')>0);
	linux = (this.p.indexOf("linux")!=-1);
	
	if (this.ie5) this.v = 5;
		min = (this.ns4 || this.ie4);
}

is = new BrowserCheck();
	
function CSSFileChooser()
{
	BrowserCheck();
	if (ns4 && (!this.linux)) {document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='/share/all/css/general_ns4.css'>");}
	else 
	{
		if (this.linux)
		{
			document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='/share/all/css/general_ns4li.css'>");
		}
		else
		{
			document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='/share/all/css/general_ie.css'>");
		}
	}
}	