var CBrowserMgr = new _CBrowserMgr();

function _CBrowserMgr()
{
	this.isNetscape = _CBrowserMgr_isNetscape;
	this.isIE = _CBrowserMgr_isIE;
	this.isMAC = _CBrowserMgr_isMAC;
	this.getVersion = _CBrowserMgr_getVersion;
	this.isDHTMLCompatible = _CBrowserMgr_isDHTMLCompatible;
	this.NETSCAPE = "Netscape";
	this.IE = "Microsoft Internet Explorer";
}

function _CBrowserMgr_isNetscape()
{
	return navigator.appName == this.NETSCAPE;
}

function _CBrowserMgr_isIE()
{
	return navigator.appName == this.IE;
}

function _CBrowserMgr_isMAC()
{
	var agt = navigator.userAgent.toLowerCase();
	var isMAC = (agt.indexOf("mac") > -1 );
	return isMAC;
}

function _CBrowserMgr_getVersion()
{
	if( this.isNetscape() )
	{
		return parseFloat(navigator.appVersion);
	}
	if( this.isIE() )
	{
		var userAgent = navigator.userAgent.toLowerCase();
		var startIndex = userAgent.indexOf("msie");
		startIndex = startIndex + "msie ".length;
		var i = userAgent.indexOf(";", startIndex);
		return parseFloat(userAgent.substring(startIndex, i));
	}
}

function _CBrowserMgr_isDHTMLCompatible()
{
	if( this.isIE() && !this.isMAC())
	{
		if(this.getVersion() >= 5.00)
		{
			return true;
		}
	}
	return false;
}
