
//----------browsercheck.js--------------
function BrowserCheck() {
	var b = navigator.appName
	var vn = navigator.appVersion;
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b;
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.mac = (vn.indexOf("Mac") != -1);
	this.linux = (vn.indexOf("Linux") != -1);
	this.pc = (true);
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
	this.dom = (document.all && document.getElementById)?2:(document.getElementById)?3:(document.layers)?1:0;
}

// automatically create the "is" object
is = new BrowserCheck();

tablewidth = "100%"
if (is.dom < 2) tablewidth = "102%"

function addToOnload(loadStr) {
	if (typeof(window.onload) != "function") {
		eval("window.onload = function() {" + loadStr + "}");
	} else {
		strOnLoad = window.onload.toString();
		eval("window.onload = " + strOnLoad.substring(0, strOnLoad.lastIndexOf("}")) + loadStr + "};");
	}
}
