// -----------------------------------------------------------
// NON FUNZIONA CON FIREFOX 1.0.7
// -----------------------------------------------------------
// BrowserData() constructor
// .userAgent: (string) the HTTP_USER_AGENT input string
// .browser: (string) "MSIE", "Opera", "Nav", "Other"
// .majorVer: (integer) major version
// .minorVer: (string) minor (dot) version
// .betaVer: (string) beta version
// .platform: (string) operating system
// .getsNavBar (boolean) whether browser gets the DHTML menus
// .doesActiveX (boolean) whether browser does 32-bit ActiveX
// .fullVer (numeric) majorVer.minorVer
// .fullVerString (string) majorVer.minorVer
// -----------------------------------------------------------

function BrowserData(sUA)
{
	this.userAgent = sUA.toString();
	var rPattern = /(MSIE)\s(\d+)\.(\d+)((b|p)([^(s|;)]+))?;?(.*(98|95|NT|3.1|32|Mac|X11))?\s*([^\)]*)/;
	if (this.userAgent.match(rPattern))
	{
		this.browser = "MSIE";
		this.majorVer = parseInt(RegExp.$2) || 0;
		this.minorVer = RegExp.$3.toString() || "0";
		this.betaVer = RegExp.$6.toString() || "0";
		this.platform = RegExp.$8 || "Other";
		this.platVer = RegExp.$9 || "0";

	this.getsNavBar = ("MSIE" == this.browser && 4 <= this.majorVer && "Mac" != this.platform && "X11" != this.platform);
	this.doesActiveX = ("MSIE" == this.browser && 3 <= this.majorVer && ("95" == this.platform || "98" == this.platform || "NT" == this.platform));
	this.fullVer = parseFloat( this.majorVer + "." + this.minorVer );
	this.fullVerString = this.majorVer + "." + this.minorVer ;
	this.doesPersistence = ("MSIE" == this.browser && 5 <= this.majorVer && "Mac" != this.platform && "X11" != this.platform);

	}
	else
	{
		this.browser = "Other";

	this.getsNavBar = "";
	this.doesActiveX = "";
	this.fullVer = "";
	this.fullVerString = "";
	this.doesPersistence = "";

	}

}

var oBD = new BrowserData(window.navigator.userAgent);

