function Browser(ua, ok) {
	this.ua = ua;
	this.location = ok;
	this.isNS = navigator.appName.toLowerCase() == "netscape";
	this.an = this.isNS ? "Netscape" : "Internet Explorer";
	var versionMatch = this.isNS ? ua.match(/Netscape\d*\/(\d*\.\d*)/) :
									ua.match(/MSIE (\d*\.\d*)/);
	this.version = versionMatch== null ? 0.0 : parseFloat(versionMatch[1]);
	this.platform = ua.indexOf("Windows") == -1 ? "Mac" : "Windows";
	this.setWinIE = BrowserSetWinIE;
	this.setWinNS = BrowserSetWinNS;
	this.setMacIE = BrowserSetMacIE;
	this.setMacNS = BrowserSetMacNS;
	this.checkVersion = BrowserCheckVersion;
}
function BrowserSetWinIE(floor, floorURL, ceiling, ceilingURL) {
	if (this.platform != "Windows" || this.isNS) return;
	this.checkVersion(floor, floorURL, ceiling, ceilingURL);
}
function BrowserSetWinNS(floor, floorURL, ceiling, ceilingURL) {
	if (this.platform != "Windows" || !this.isNS) return;
	this.checkVersion(floor, floorURL, ceiling, ceilingURL);
}
function BrowserSetMacIE(floor, floorURL, ceiling, ceilingURL) {
	if (this.platform != "Mac" || this.isNS) return;
	this.checkVersion(floor, floorURL, ceiling, ceilingURL);
}
function BrowserSetMacNS(floor, floorURL, ceiling, ceilingURL) {
	if (this.platform != "Mac" || !this.isNS) return;
	this.checkVersion(floor, floorURL, ceiling, ceilingURL);
}
function BrowserCheckVersion(floor, floorURL, ceiling, ceilingURL) {
	if (this.version < floor) this.location = floorURL;
	if (this.version >= ceiling) this.location = ceilingURL;
}