/**
 *	History:	1.1.0	Tom Polchowski	July 14, 2003
*/

function BrowserInformation(){
	var agt = navigator.userAgent.toLowerCase();

	this.browserInfo = agt;
	
	this.isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); 
	this.isInternetExplorer = (agt.indexOf("msie") != -1);
	this.isAOL = (agt.indexOf("aol") != -1);
	this.isOpera = (agt.indexOf("opera") != -1);
	this.isWebTV = (agt.indexOf("webtv") != -1);


	this.version = parseInt(navigator.appVersion);
	this.minorVersion = parseFloat(navigator.appVersion);

	/*	Set version for IE 5 */
	if(this.isInternetExplorer && (agt.indexOf("msie 5") != -1)){
		this.version = 5;
		this.minorVersion = 5;
	}
	else if(this.isInternetExplorer && (agt.indexOf("msie 6") != -1)){
		this.version = 6;
		this.minorVersion = 6;
	}


	this.isWindows =  (agt.indexOf("win")!=-1);
	this.isOS2 = (agt.indexOf("os/2")!=-1);
	this.isMacintosh = (agt.indexOf("mac")!=-1);
	this.isSun = (agt.indexOf("sunos")!=-1);
	this.isLinux = (agt.indexOf("inux")!=-1);
	this.isBSD = (agt.indexOf("bsd")!=-1);
	this.isUnix = (agt.indexOf("unix")!=-1);
}

