<!--function UsrEnv () {// convert all characters to lowercase to simplify testingvar agt = navigator.userAgent.toLowerCase();// set properties to defaultthis.OS = "UNKNOWN";    // "WINDOWS_95" | "WINDOWS_98" | "WINDOWS_NT" | "WINDOWS_3.1" |                        // "MAC_POWERPC" | "MAC_68000" | "MAC" | "SUN_OS" | "X11" | ...this.Browser                = "UNKNOWN"; // "NETSCAPE_NAVIGATOR" | "MICROSOFT_INTERNET_EXPLORER" | "OPERA" | ...this.BrowserVersion         = "UNKNOWN";this.FlashInstalled         = "UNKNOWN"; // "FALSE" | "TRUE"this.FlashVersion           = "UNKNOWN"; // 2 | 3 | 4 | "N/A"this.QuickTimeInstalled     = "UNKNOWN"; // "FALSE" | "TRUE"this.QuickTimeVersion       = "UNKNOWN"; // "4.1.1 +" | "N/A"this.WindowsMediaInstalled  = "UNKNOWN"; // "FALSE" | "TRUE"this.WindowsMediaVersion    = "UNKNOWN"; // "6.4 +" | "N/A"this.RealMediaInstalled     = "UNKNOWN"; // "FALSE" | "TRUE"this.RealMediaVersion       = "UNKNOWN"; // "6.4 +" | "N/A"this.ColDepth               = "UNKNOWN"; // the bit depth of the color palette (netscape and ie 4 or higher)                                         // 1 | 4 | 8 | 15 | 16 | 24 | 32this.ScreenWidth            = "UNKNOWN";this.ScreenHeight           = "UNKNOWN";this.JavaEnabled            = "UNKNOWN"; // "FALSE" | "TRUE"// -- Browserif (agt.indexOf("opera") != -1) {    this.Browser = "OPERA";}else if (document.layers || (document.getElementById && !document.all)) {    this.Browser = "NETSCAPE";}else if (document.all) {    this.Browser = "MICROSOFT_INTERNET_EXPLORER";}// -- BrowserVersionif (this.Browser == "NETSCAPE") {    this.BrowserVersion = parseFloat(navigator.appVersion);}else if (this.Browser == "MICROSOFT_INTERNET_EXPLORER") {    this.BrowserVersion = parseFloat(navigator.appVersion);    if (agt.indexOf("msie 3.0") >= 1 )     {        this.BrowserVersion = 3;        var i = agt.indexOf("msie 3.0");        var minorVer = agt.charAt(i + 8);        if (minorVer == "1")         {            this.BrowserVersion = 3.01;        }        if (minorVer == "2")         {            this.BrowserVersion = 3.02;        }    }    else if (agt.indexOf("msie 4.0") >= 1 )     {        this.BrowserVersion = 4;        var i = agt.indexOf("msie 4.0");        var minorVer = agt.charAt(i + 8);        if ((minorVer == "b") || (minorVer == "p"))         {            this.BrowserVersion = "4 beta";        }        if (minorVer == "1")         {            this.BrowserVersion = 4.01;        }    }     else if (agt.indexOf("msie 5.0") >= 1 )     {        this.BrowserVersion = 5;    }    else if (agt.indexOf("msie 5.5") >= 1 )     {        this.BrowserVersion = 5.5;    }}// -- OSif (this.Browser == "NETSCAPE") {    if (agt.indexOf("win95") != -1)     {        this.OS = "WINDOWS 95";// could be win98    }    else if (agt.indexOf("win98") != -1)     {        this.OS = "WINDOWS 98";// navigator might read it as win95    }    else if (agt.indexOf("winnt") != -1)     {        this.OS = "WINDOWS NT";    }    else if (agt.indexOf("win16") != -1)     {        this.OS = "WINDOWS 3.1";    }    else if (agt.indexOf("ppc") != -1)     {        this.OS = "MAC POWERPC";    }    else if (agt.indexOf("68k") != -1)     {        this.OS = "MAC 68000";    }    else if (agt.indexOf("mac") != -1)     {        this.OS = "MAC";    }// other os's need to be added}else if (this.Browser == "MICROSOFT_INTERNET_EXPLORER") {    if (agt.indexOf("windows 95") != -1)     {        this.OS = "WINDOWS 95";    }    else if (agt.indexOf("windows 98") != -1)     {        this.OS = "WINDOWS 98";    }    else if (agt.indexOf("windows nt") != -1)     {        this.OS = "WINDOWS NT";    }    else if (agt.indexOf("windows 3.1") != -1)     {        this.OS = "WINDOWS 3.1";    }    else if (agt.indexOf("mac_powerpc") != -1)     {        this.OS = "MAC POWERPC";    }    else if (agt.indexOf("mac_68000") != -1)     {        this.OS = "MAC 68000";    }    else if (agt.indexOf("mac") != -1)     {        this.OS = "MAC";    }    else if (agt.indexOf("sunos") != -1)     {        this.OS = "SUN OS";    }    else if (agt.indexOf("x11")!= -1)     {        this.OS = "X11";    }}// -- plug-insif(this.OS.indexOf("MAC") != -1){    // mac plugin stuff    if (navigator.plugins)     {        numPlugins = navigator.plugins.length;        for (i = 0; i < numPlugins; i++)         {            plugin = navigator.plugins[i];            if(plugin.name.indexOf("RealPlayer") != -1 && plugin.name.indexOf("Plug") != -1)             {                 this.RealMediaInstalled = "TRUE";            }            if (plugin.name.indexOf("Shockwave Flash") != -1)             {                this.FlashInstalled = "TRUE";            }                                         if (plugin.description.indexOf("Shockwave Flash 5") != -1)             {                this.FlashInstalled = "TRUE";                this.FlashVersion = 5;            }            else if (plugin.description.indexOf("Shockwave Flash 4") != -1)             {                this.FlashInstalled = "TRUE";                this.FlashVersion = 4;            }            else if (plugin.description.indexOf("Shockwave Flash 3") != -1)             {                this.FlashInstalled = "TRUE";                this.FlashVersion = 3;                alert(plugin.description);            }            else if (plugin.description.indexOf("Shockwave Flash 2") != -1)             {                this.FlashInstalled = "TRUE";                this.FlashVersion = 2;                alert(plugin.description);            }            if(plugin.name.indexOf("QuickTime") != -1)            {                this.QuickTimeInstalled = "TRUE";                if (plugin.name.indexOf("4") != -1)                 {                    this.QuickTimeVersion = 4;                }                else if (plugin.name.indexOf("3") != -1)                 {                    this.QuickTimeVersion = 3;                }            }        }    }    // macs don't do the windows media thing    this.WindowsMediaInstalled = "FALSE";    this.WindowsMediaVersion = "N/A";}else{   // pc plugin stuffif ((this.Browser == "NETSCAPE") && navigator.plugins) {    numPlugins = navigator.plugins.length;    for (i = 0; i < numPlugins; i++)     {        plugin = navigator.plugins[i]                // -- flashInstalled and flashVersion        if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)         {            this.FlashInstalled = "TRUE";            if (plugin.description.indexOf("Shockwave Flash 5") != -1)             {                this.FlashVersion = 5;            }            else if (plugin.description.indexOf("Shockwave Flash 4") != -1)             {                this.FlashVersion = 4;            }            else if (plugin.description.indexOf("Shockwave Flash 3") != -1)             {                this.FlashVersion = 3;            }            else if (plugin.description.indexOf("Shockwave Flash 2") != -1)             {                this.FlashVersion = 2;            }        }        else         {            this.FlashInstalled = "FALSE";            this.FlashVersion = "N/A";        }        // -- QuickTimeInstalled and QuickTimeVersion        if (navigator.mimeTypes && navigator.mimeTypes["video/quicktime"] && navigator.mimeTypes["video/quicktime"].enabledPlugin)         {            this.QuickTimeInstalled = "TRUE";            if (plugin.name.indexOf("4") != -1)             {                this.QuickTimeVersion = 4;            }        }        else         {            this.QuickTimeInstalled = "FALSE";            this.QuickTimeVersion = "N/A";        }        // -- WindowsMediaInstalled and WindowsMediaVersion        if (navigator.mimeTypes && navigator.mimeTypes["video/x-ms-wm"] && navigator.mimeTypes["video/x-ms-wm"].enabledPlugin)         {            this.WindowsMediaInstalled = "TRUE";            this.WindowsMediaVersion = "6.4 +" ;// *** VALIDATE ***        }        else         {            this.WindowsMediaInstalled = "FALSE";            this.WindowsMediaVersion = "N/A";        }        // -- RealMediaInstalled and RealMediaVersion        if (navigator.mimeTypes && navigator.mimeTypes["audio/x-pn-realaudio-plugin"] && navigator.mimeTypes["audio/x-pn-realaudio-plugin"].enabledPlugin)         {            this.RealMediaInstalled = "TRUE";        }        else         {            this.RealMediaInstalled = "FALSE";            this.RealMediaVersion = "N/A";        }    }}else if (this.Browser == "MICROSOFT_INTERNET_EXPLORER") {    // -- flashInstalled and flashVersion    if (ieFlashInstalled)     {        this.FlashInstalled = "TRUE";        this.FlashVersion = ieFlashVersion;    }    else     {        this.FlashInstalled = "FALSE";        this.FlashVersion = "N/A";    }    // -- QuickTimeInstalled and QuickTimeVersion    if (ieQuickTimeInstalled)     {        this.QuickTimeInstalled = "TRUE";        this.QuickTimeVersion = "4.1.1 +";    }    else     {        this.QuickTimeInstalled = "FALSE";        this.QuickTimeVersion = "N/A";    }    // -- WindowsMediaInstalled and WindowsMediaVersion    if (dummyWMPlayer.FileName == "")     {        this.WindowsMediaInstalled = "TRUE";        this.WindowsMediaVersion = "6.4 +";    }    else     {        this.WindowsMediaInstalled = "FALSE";        this.WindowsMediaVersion = "N/A";    }    // -- RealMediaInstalled and RealMediaVersion    if (ieRealMediaInstalled)     {        this.RealMediaInstalled = "TRUE";        this.RealMediaVersion = ieRealMediaVersion;    }    else     {        this.RealMediaInstalled = "FALSE";        this.RealMediaVersion = "N/A";    }}if (this.BrowserVersion >= 4) {    this.colors = screen.colorDepth;    this.ScreenWidth = screen.width;    this.ScreenHeight = screen.height;}// -- javaif (this.BrowserVersion >= 4) {    if (navigator.javaEnabled())     {        this.JavaEnabled = "TRUE";    }    else     {        this.JavaEnabled = "FALSE";    }}}}var usrEnv = new UsrEnv();//-->
