/*
 devNodge
 5/9/2000
 
 This code defines a Browser object.
	
	Properties:
		isInternetExplorer	(boolean)	browser is Internet Explorer
		isNetscape			(boolean)	browser is Netscape
		Version				(numeric)	browser version
		hasDHTML			(boolean)	does the browser support DHTML

	Methods:
		NONE
 */

/* constructor */
function Browser() {
	var version = parseFloat(window.navigator.appVersion);
	this.Version = ((isNaN(version)) ? 0 : version);

	switch(window.navigator.appName) {
		case "Microsoft Internet Explorer":
			this.isInternetExplorer = true;
			this.isNetscape = false;
			this.hasDHTML = ((this.Version >= 4) ? true : false);
			break;

		case "Netscape":
			this.isInternetExplorer = false;
			this.isNetscape = true;
			this.hasDHTML = ((this.Version >= 4) ? true : false);
			break;

		default:
			this.isInternetExplorer = false;
			this.isNetscape = false;
			this.hasDHTML = false;
			break;
	}
	/* end switch */
}
/* end Browser */