
function getos() { }

function getdo() { this.style = new getos(); }

function getns4o(id) { return(eval("document." + id)); }

function getieo(id) { return(eval("document.all." + id)); }

function fxsetver(s, vmin, svmin) {

	var ix;

	if (! (this.ver = parseInt(s)))
		this.ver = 0;

	if ((ix = s.indexOf(".")) < 0 || ! (this.subver = parseInt(s.substring(ix + 1))))
		this.subver = 0;

	return(this.ver > vmin || (this.ver == vmin && this.subver >= svmin));
}

function cbrowser() {

	var ix, useragent = navigator.userAgent;

	this.pcursor = "pointer";

	if ((ix = useragent.indexOf("Opera")) > -1) {

		if ((this.ver = parseFloat(useragent.substr(ix + 6, 5))) >= 7.23)
			this.qaok = this.iehdiv = this.opera = true;
		else
			this.oldbrowser = "Opera";

	} else if ((ix = useragent.indexOf("MSIE")) > -1) {

		this.iehdiv = true;

		if ((this.ver = parseFloat(useragent.substr(ix + 5, 5))) >= 5.5)
			this.qaok = this.msie = true;
		else
			this.oldbrowser = "Microsoft";

		if (this.ver < 6)
			this.pcursor = "hand";

	} else if ((ix = useragent.indexOf("Netscape")) > -1) {

		if ((this.ver = parseFloat(useragent.substr(useragent.indexOf("/", ix) + 1, 6))) >= 6.2)
			this.qaok = this.ns = this.gk = true;
		else
			this.oldbrowser = "Netscape";

	} else if ((ix = useragent.indexOf("Firefox")) > -1) {

		this.ver = parseFloat(useragent.substr(useragent.indexOf("/", ix) + 1, 6));
		this.qaok = this.firefox = this.gk = true;

	} else if ((ix = useragent.indexOf("Safari")) > -1) {

		if (this.setver(useragent.substr(useragent.indexOf("/", ix) + 1, 6), 125, 8))
			this.sf = this.gk = true;
		else
			this.oldbrowser = "Safari";

	} else if (useragent.indexOf("Gecko") > -1) {

		if ((this.ver = parseFloat(useragent.substr(useragent.indexOf("rv:") + 3))) >= 1.4)
			this.qaok = this.mz = this.gk = true;
		else
			this.oldbrowser = "Mozilla";

	} else if ((ix = useragent.indexOf("Konqueror")) > -1) {

		if ((this.ver = parseFloat(useragent.substr(useragent.indexOf("/", ix) + 1))) >= 3.1)
			this.kq = true;
		else
			this.oldbrowser = "Konqueror";
	}

	if (! this.qaok && ! document.getElementById) {

		if (document.all)
			document.getElementById = getieo;
		else if (document.layers)
			document.getElementById = getns4o;
		else {
			document.getElementById = new getdo();
			window.open("FSbrowserOld.htm", "nodombr", "height=200, width=550");
		}
	}
}

cbrowser.prototype.setver = fxsetver;

var fsbrowser = new cbrowser();

function fsetdivh(id, hieop) {

	if (fsbrowser.iehdiv)
		document.getElementById(id).style.height = hieop + "px";
}