// WARNING: DO NOT MODIFY FILES.
// MODIFIED FILES MUST BE RESTORED TO INSTALL STATE FOR ALL PRODUCT SUPPORT.

// The Browser object is used for basic browser detection.
function Browser()
{
    var b = navigator.appName;
    if( b=="Netscape" )
    {
        this.b = "ns";
    }
    else if( b == "Microsoft Internet Explorer" )
    {
        this.b = "ie";
    }
    else
    {
        this.b = b;
    }
    this.version = navigator.appVersion;
    this.v = parseInt( this.version );
    this.isNS =  ( this.b == "ns" && this.v >= 4 );
    this.isNS4 = ( this.b == "ns" && this.v == 4 );
    this.isNS5 = ( this.b == "ns" && this.v == 5 );
    this.isNS6 = ( this.b == "ns" && this.v == 6 );
    this.isIE =  ( this.b == "ie" && this.v >= 4 );
    this.isIE4 = ( this.version.indexOf('MSIE 4') > 0 );
    this.isIE5 = this.isIE && !this.isIE4;
    this.isIE55 = ( this.version.indexOf('MSIE 5.5') > 0 );
    this.isIE6 = ( this.version.indexOf('MSIE 6') > 0 );
    this.min =   ( this.ns || this.ie );
}

var browser = new Browser();

// NS
window.onErrorHandler = null;
// IE
window.onError = consumeerror;

function consumeerror()
{
    return false;
}

function noApplet()
{
    var undefined;
    return ( platform.isMac || !window.navigator.javaEnabled()
            || document.applets.length == 0 || document.applets[1] == null
            || document.applets[1] == undefined
            || ( browser.isNS5 && document.applets[1].getAppletName == undefined)
            || ( !browser.isNS5 && document.applets[1].getAppletName() == undefined) );
}
