/******* | 07-25-01 | oven | josef blazej | jb@oven.com | *******/

function browserObjClass(){
	this.IE=(navigator.appName.toLowerCase().indexOf("microsoft")!=-1)? true:false;
	this.NS=(navigator.appName.toLowerCase().indexOf("netscape")!=-1)? true:false;
	if(this.IE) this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toUpperCase().indexOf("MSIE")+4));
	else if(this.NS){
		if(navigator.userAgent.toLowerCase().indexOf("netscape")!=-1)
			this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toLowerCase().indexOf("netscape")+8));
		else this.VERSION=parseFloat(navigator.userAgent.substring(navigator.userAgent.toLowerCase().indexOf("mozilla")+8));
	}
	this.IE4=(this.IE && document.all && this.VERSION>=4)? true:false;
	this.NS4=(this.NS && document.layers && this.VERSION>=4)? true:false;
	this.IE5=(this.IE && this.VERSION>=5)? true:false;
	this.NS6=(this.NS && !document.layers & this.VERSION>=6)? true:false;
	this.useGetID=(this.IE5 || this.NS6)? true:false;
	this.MAC=(navigator.appVersion.toLowerCase().indexOf("mac")!=-1)? true:false;
	this.LINUX=(navigator.platform.toLowerCase().indexOf("linux")!=-1 || navigator.platform.toLowerCase().indexOf("x11")!=-1)? true:false;
	this.DHTML=((this.IE4 || this.NS4 || this.NS6) && (!this.MAC && !this.LINUX))? true:false;
	this.JAVA=navigator.javaEnabled();
	this.WIDTH=800;
	this.HEIGHT=600;
	this.FRAMESET=false;
	this.FRAME=new Array();
}

browserObj=new browserObjClass();

// pick stylesheet based on browser
// if windows + nav 6
if (!browserObj.MAC && browserObj.NS6) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/win_ns6.css" title="master">');
	}
// windows + navigator
else if (!browserObj.MAC && browserObj.NS && !browserObj.NS6) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/win_ns.css" title="master">');
	}
// windows + ie
else if (!browserObj.MAC && browserObj.IE) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/win_ie.css" title="master">');
	}
// mac + nav6
else if (browserObj.MAC && browserObj.NS6) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/mac_ns6.css" title="master">');
	}
// mac + navigator
else if (browserObj.MAC && browserObj.NS) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/mac_ns.css" title="master">');
	}
// mac + ie
else if (browserObj.MAC && browserObj.IE5) {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/mac_ie.css" title="master">');
	}
// everybody else
else {
	document.write('<link rel="stylesheet" type="text/css" href="' + localRoot + 'style/win_ie.css" title="master">');
	}
	
	
