/**
 * Browser.js
 *
 * JavaScript object for capturing browser information.
 *
 */

/**
  * Browser Constructor
  */
function Browser()
{
    this.name = window.navigator.appName.toLowerCase();
    this.version = window.navigator.appVersion;
}


/**
  * Check to see if we are using Netscape.
  */
function _Browser_isNetscape()
{
    return (this.name == "netscape")
}


/**
  * Check to see if we are using InternetExplorer.
  */
function _Browser_isIE()
{
    return (this.name == "microsoft internet explorer")
}



/**
  * Assign Prototype Methods
  */
Browser.prototype.isNetscape    = _Browser_isNetscape;
Browser.prototype.isIE          = _Browser_isIE;
