function WSBrowserIs() {
	this._USERAGENT = navigator.userAgent.toLowerCase();	
	this._APPNAME = navigator.appName;
	this._ALL = document.all;
	this._GETELEMENTBYID = document.getElementById;

	this.NS4 = function() {
		return (this._APPNAME.indexOf("Netscape")>=0 && !this._GETELEMENTBYID)? true : false;		
	}

	this.IE4 = function() {
		return (this._ALL && !this._GETELEMENTBYID)? true : false;		
	}

	this.IE5 = function() {
		return (this._GETELEMENTBYID && this._ALL)? true : false;		
	}

	this.NS6 = function() {
		return (this._GETELEMENTBYID && this._APPNAME.indexOf("Netscape")>=0 )? true: false;		
	}

	this.W3C = function() {
		return (this._GETELEMENTBYID)? true : false;		
	}

	this.WIN32 = function() {
		return (this._USERAGENT.indexOf("win")>-1)? true : false;		
	}

	this.MAC = function() {
		return (this._USERAGENT.indexOf("mac")>-1)? true : false;		
	}

	this.SAFARI = function() {
		return (this._USERAGENT.indexOf("safari")>-1)? true : false;		
	}

	this.OPERA = function() {
		return (this._USERAGENT.indexOf("opera")>-1)? true : false;		
	}

	this.OPERA6 = function() {
		var version = parseInt(this._USERAGENT.substr(this._USERAGENT.indexOf("opera")+6,1));
		return (version<=6) ? true : false;		
	}

	this.OPERA7 = function() {
		var version = parseInt(this._USERAGENT.substr(this._USERAGENT.indexOf("opera")+6,1));
		return (version>=7) ? true : false;		
	}
}