//----------------------------------------------------------------------------
// Code to determine the browser and version.
//----------------------------------------------------------------------------
function Browser() 
{
  var ua, s, i;

  ua = navigator.userAgent;

	// determine if a W3C compliant browser
	// NOTE: currently ns6+ ie5+ opera5+ and mozilla
	if (document.getElementById)
		this.isCompliant = true;

	s = "Mac";
	if ((i = ua.indexOf(s)) >= 0)
		this.isMac = true;
  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) 
	{
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
	s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) 
	{
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }
	// Treat any other "Gecko" browser as NS 6.1.
  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) 
	{
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

Browser.prototype.isIE = false;
Browser.prototype.isNS = false;
Browser.prototype.version = null;
Browser.prototype.isCompliant = false;
Browser.prototype.isMac = false;
/*
Browser.prototype.load_js = function()
{
	if (this.isIE)
	{
		script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = 'menu.js';
		document.getElementsByTagName('head')[0].appendChild(script);
	}
	else if (this.isMac)
	{
		script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = 'menu.js';
		document.getElementsByTagName('head')[0].appendChild(script);
	}			
	else (this.isNS)
	{
		script = document.createElement('script');
		script.type = 'text/javascript';
		script.src = 'menu.js';
		document.getElementsByTagName('head')[0].appendChild(script);
	}
}
*/
