
var sBrowser;
var sBrowserVersion;
var sPlatform;
var sPlatformVersion;
var sJSVersion;
var sBrowserServicePacks;

function vItanStat(sCompany,sProject,sRemoteIP,sPagename,sItanStatWwwRoot)
{
    var bCSS,sPlugins,sConnectionType,sCPU,bCookies,bHomepage,bJava,sBrowserLang,sColorDepth,sResolutionScreen,sResolutionBrowser

    vSetBrowserDetails();
    var verIE       = parseInt(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5,navigator.appVersion.indexOf("MSIE")+6))
    var verNS       = parseInt(navigator.appVersion)
    var oRed        = typeof(top.document)=="object"?0:1
    var bJavascript = "y"
    
    //css detection
    document.write('<div id=checkcss><\/div>')
    if (navigator.appName=="Netscape" || sBrowser=="FireFox")
        bCSS = (document.checkcss)?"y":"n"
    else
        bCSS = (checkcss)?"y":"n"
        
    //plugins en browserlang netscape
    if (navigator.appName=="Netscape" && verNS>=3 || sBrowser=="FireFox")
    {
        sPlugins        = sGetPluginsNS()
        sBrowserLang    = navigator.language;
        sOSLang         = ""
        if (sBrowserLang.indexOf("-") != -1)
            sBrowserLang = sBrowserLang.substring(0,sBrowserLang.indexOf("-"));
    }
    //cookies, connectiontype, plugins ie, cpu, homepage, browserlang
    if (verIE>=5 && navigator.appVersion.indexOf('Win')>=0)
    {
        document.write('<HTML xmlns:MSIE><style>@media all{MSIE\\:clientCaps {behavior:url(#default#clientcaps)} MSIE\\:HOMEPAGE {behavior:url(#default#homepage)}}<\/style>')
        document.write('<MSIE:CLIENTCAPS ID="checkcc" />')
        document.write('<MSIE:HOMEPAGE ID="oHomePage" />')
        sPlugins        = sGetPluginsIE()
        sConnectionType = checkcc.connectionType
        sCPU            = checkcc.cpuClass
        bCookies        = (checkcc.cookieEnabled==true)?"y":"n"
        bHomepage       = (oHomePage.isHomePage(oRed?document.location:top.document.location)==true)?"y":"n"
        sBrowserLang    = navigator.browserLanguage
        sOSLang         = navigator.userLanguage
    }
    
    //browser resolution
    if (navigator.userAgent.indexOf("MSIE")>0)
        if (oRed)
            sResolutionBrowser = document.body.clientWidth+"*"+document.body.clientHeight
        else
            sResolutionBrowser = top.document.body.clientWidth+"*"+top.document.body.clientHeight
    else
        sResolutionBrowser = window.outerWidth+"*"+window.outerHeight
        
    //javascript / java detection
    for (i=0;i<=5;i++)
        document.write('<script language="javascript1.'+i+'">js="'+i+'"<\/script>')
    if (js>=1)
        bJava       = navigator.javaEnabled()?"y":"n"
    if (js>=2)
    {
        sResolutionScreen = screen.width+"*"+screen.height;
        sColorDepth       = navigator.appName.substring(0,9)=="Microsoft"?screen.colorDepth:screen.pixelDepth
    }
        
    //construct the querystring and write the counter image
    var sQueryString = "bCSS=" + bCSS + "&sPlugins=" + escape(sPlugins) + "&bCookies=" + bCookies + "&bHomepage=" + bHomepage
    sQueryString     = sQueryString + "&sCPU=" + escape(sCPU) + "&sConnectionType=" + escape(sConnectionType) + "&bJava=" + bJava 
    sQueryString     = sQueryString + "&bJavascript=" + bJavascript + "&sIP=" + escape(sRemoteIP) + "&sPagename=" + escape(sPagename)
    sQueryString     = sQueryString + "&sBrowserLang=" + escape(sBrowserLang) + "&sResolutionScreen=" + escape(sResolutionScreen)
    sQueryString     = sQueryString + "&sResolutionBrowser=" + escape(sResolutionBrowser) + "&sColorDepth=" + escape(sColorDepth)
    sQueryString     = sQueryString + "&sBrowser=" + escape(sBrowser) + "&sBrowserVersion=" + escape(sBrowserVersion) + "&sPlatform=" + escape(sPlatform)
    sQueryString     = sQueryString + "&sPlatformVersion=" + escape(sPlatformVersion) + "&sBrowserSPs=" + escape(sBrowserServicePacks)
    sQueryString     = sQueryString + "&sPlatformLanguage=" + escape(sOSLang)
    var sUrl         = sItanStatWwwRoot + "/itannex/statistics/01/statcounter.asp?sCompany=" + sCompany + "&sProject=" + sProject + "&" + sQueryString
    //alert(sUrl)
    document.write('<img src="' + sItanStatWwwRoot + '/itannex/statistics/01/statcounter.asp?sCompany=' + escape(sCompany) + '&sProject=' + escape(sProject) + '&' + sQueryString + '" alt="ItanStat: wanneer statistiek telt!" />')
    //document.write('<a href="' + sUrl + '" target="_testwindow">' + sUrl + '</a>')
}

function sGetPluginsNS()
{
    var sReturn = ""
    var oArray  = new Array("Shockwave Flash","Shockwave for Director","RealPlayer","QuickTime","VivoActive","LiveAudio","VRML","Dynamic HTML Binding","Windows Media Services","AOL ART Image Format Support","DirectAnimation","Visual Basic Scripting Support","DirectShow","Offline Browsing Pack")
    for(var i=0;i<oArray.length;i++)
    {
        var sFound = "0"
        for(var k=0;k<navigator.plugins.length;k++)
        {
            if(navigator.plugins[k].name.indexOf(oArray[i])>=0)
                sFound = "1"
        }
        sReturn += sFound
    }
    return sReturn
}

function sGetPluginsIE()
{
    var sReturn = ""
    var oArray  = new Array("D27CDB6E-AE6D-11CF-96B8-444553540000","2A202491-F00D-11CF-87CC-0020AFEECF20","23064720-C4F8-11D1-994D-00C04F98BBC9","","","","90A7533D-88FE-11D0-9DBE-0000C0411FC3","9381D8F2-0288-11D0-9501-00AA00B911A5","22D6F312-B0F6-11D0-94AB-0080C74C7E95","47F67D00-9E55-11D1-BAEF-00C04FC2D130","283807B5-2C60-11D0-A31D-00AA00B92C03","4F645220-306D-11D2-995D-00C04F98BBC9","44BBA848-CC51-11CF-AAFA-00AA00B6015C","3AF36230-A269-11D1-B5BF-0000F8051515")
    for(var i=0;i<oArray.length;i++)
    {
        if(oArray[i])
        {
            if(checkcc.isComponentInstalled("{"+oArray[i]+"}","ComponentID"))
                sReturn += "1"
            else 
                sReturn += "0"
        }
        else
            sReturn += "x"
    }
    return sReturn
}

function Is ()
{
    //
    // JavaScript Browser Sniffer
    // Eric Krok, Andy King, Michel Plungjan Jan. 31, 2002
    // see http://www.webreference.com/ for more information
    //
    // This program is free software; you can redistribute it and/or modify
    // it under the terms of the GNU General Public License as published by
    // the Free Software Foundation; either version 2 of the License, or
    //  (at your option) any later version.
    //

    // convert all characters to lowercase to simplify testing
    this.agt    = navigator.userAgent.toLowerCase();
    this.appVer = navigator.appVersion.toLowerCase();

    // *** BROWSER VERSION ***

    this.is_minor = parseFloat(this.appVer);
    this.is_major = parseInt(this.is_minor);

    this.is_opera = (this.agt.indexOf("opera") != -1);
    this.is_opera2 = (this.agt.indexOf("opera 2") != -1 || this.agt.indexOf("opera/2") != -1);
    this.is_opera3 = (this.agt.indexOf("opera 3") != -1 || this.agt.indexOf("opera/3") != -1);
    this.is_opera4 = (this.agt.indexOf("opera 4") != -1 || this.agt.indexOf("opera/4") != -1);
    this.is_opera5 = (this.agt.indexOf("opera 5") != -1 || this.agt.indexOf("opera/5") != -1);
    this.is_opera6 = (this.agt.indexOf("opera 6") != -1 || this.agt.indexOf("opera/6") != -1); // new 020128- abk
    this.is_opera7 = (this.agt.indexOf("opera 7") != -1 || this.agt.indexOf("opera/7") != -1); // new 021205- dmr
    this.is_opera5up = (this.is_opera && !this.is_opera2 && !this.is_opera3 && !this.is_opera4);
    this.is_opera6up = (this.is_opera && !this.is_opera2 && !this.is_opera3 && !this.is_opera4 && !this.is_opera5); // new020128
    this.is_opera7up = (this.is_opera && !this.is_opera2 && !this.is_opera3 && !this.is_opera4 && !this.is_opera5 && !this.is_opera6); // new021205 -- dmr

    // Note: On IE, start of appVersion return 3 or 4
    // which supposedly is the version of Netscape it is compatible with.
    // So we look for the real version further on in the string
    // And on Mac IE5+, we look for is_minor in the ua; since 
    // it appears to be more accurate than appVersion - 06/17/2004

    this.is_mac = (this.agt.indexOf("mac")!=-1);
    this.iePos  = this.appVer.indexOf('msie');
    if (this.iePos !=-1) {
       if(this.is_mac) {
           this.iePos = this.agt.indexOf('msie');
           this.is_minor = parseFloat(this.agt.substring(iePos+5,this.agt.indexOf(';',this.iePos)));
       }
       else this.is_minor = parseFloat(this.appVer.substring(this.iePos+5,this.appVer.indexOf(';',this.iePos)));
       this.is_major = parseInt(this.is_minor);
    }

    // ditto Konqueror
                                      
    this.is_konq = false;
    this.kqPos   = this.agt.indexOf('konqueror');
    if (this.kqPos !=-1) {                 
       this.is_konq  = true;
       this.is_minor = parseFloat(this.agt.substring(this.kqPos+10,this.agt.indexOf(';',this.kqPos)));
       this.is_major = parseInt(this.is_minor);
    }                                 

    this.is_getElementById       = (document.getElementById) ? "true" : "false"; // 001121-abk
    this.is_getElementsByTagName = (document.getElementsByTagName) ? "true" : "false"; // 001127-abk
    this.is_documentElement      = (document.documentElement) ? "true" : "false"; // 001121-abk

    this.is_safari = ((this.agt.indexOf('safari')!=-1)&&(this.agt.indexOf('mac')!=-1))?true:false;
    this.is_khtml  = (this.is_safari || this.is_konq);

    this.is_gecko = ((!this.is_khtml)&&(navigator.product)&&(navigator.product.toLowerCase()=="gecko"))?true:false;
    this.is_gver  = 0;
    if (this.is_gecko) this.is_gver=navigator.productSub;

    this.is_moz = ((this.agt.indexOf('mozilla/5')!=-1) && (this.agt.indexOf('spoofer')==-1) &&
                  (this.agt.indexOf('compatible')==-1) && (this.agt.indexOf('opera')==-1)  &&
                  (this.agt.indexOf('webtv')==-1) && (this.agt.indexOf('hotjava')==-1)     &&
                  (this.is_gecko) && 
                  ((navigator.vendor=="")||(navigator.vendor=="Mozilla")||(navigator.vendor=="Debian")));
    this.is_fb = ((this.agt.indexOf('mozilla/5')!=-1) && (this.agt.indexOf('spoofer')==-1) &&
                 (this.agt.indexOf('compatible')==-1) && (this.agt.indexOf('opera')==-1)  &&
                 (this.agt.indexOf('webtv')==-1) && (this.agt.indexOf('hotjava')==-1)     &&
                 (this.is_gecko) && (navigator.vendor=="Firebird"));
    this.is_fx = ((this.agt.indexOf('mozilla/5')!=-1) && (this.agt.indexOf('spoofer')==-1) &&
                 (this.agt.indexOf('compatible')==-1) && (this.agt.indexOf('opera')==-1)  &&
                 (this.agt.indexOf('webtv')==-1) && (this.agt.indexOf('hotjava')==-1)     &&
                 (this.is_gecko) && (navigator.vendor=="Firefox"));
    if ((this.is_moz)||(this.is_fb)||(this.is_fx)) {  // 032504 - dmr
       this.is_moz_ver = (navigator.vendorSub)?navigator.vendorSub:0;
       if(!(this.is_moz_ver)) {
           this.is_moz_ver = this.agt.indexOf('rv:');
           this.is_moz_ver = this.agt.substring(this.is_moz_ver+3);
           this.is_paren   = this.is_moz_ver.indexOf(')');
           this.is_moz_ver = this.is_moz_ver.substring(0,this.is_paren);
       }
       this.is_minor = this.is_moz_ver;
       this.is_major = parseInt(this.is_moz_ver);
    }
    this.is_fb_ver = this.is_moz_ver;
    this.is_fx_ver = this.is_moz_ver;

    this.is_nav  = ((this.agt.indexOf('mozilla')!=-1) && (this.agt.indexOf('spoofer')==-1)
                && (this.agt.indexOf('compatible') == -1) && (this.agt.indexOf('opera')==-1)
                && (this.agt.indexOf('webtv')==-1) && (this.agt.indexOf('hotjava')==-1)
                && (!this.is_khtml) && (!(this.is_moz)) && (!this.is_fb) && (!this.is_fx));

    // Netscape6 is mozilla/5 + Netscape6/6.0!!!
    // Mozilla/5.0 (Windows; U; Win98; en-US; m18) Gecko/20001108 Netscape6/6.0
    // Changed this to use navigator.vendor/vendorSub - dmr 060502   
    // var nav6Pos = this.agt.indexOf('netscape6');
    // if (nav6Pos !=-1) {
    if ((navigator.vendor)&&
        ((navigator.vendor=="Netscape6")||(navigator.vendor=="Netscape"))&&
        (this.is_nav)) {
       this.is_major = parseInt(navigator.vendorSub);
       // here we need is_minor as a valid float for testing. We'll
       // revert to the actual content before printing the result. 
       this.is_minor = parseFloat(navigator.vendorSub);
    }

    this.is_nav2 = (this.is_nav && (this.is_major == 2));
    this.is_nav3 = (this.is_nav && (this.is_major == 3));
    this.is_nav4 = (this.is_nav && (this.is_major == 4));
    this.is_nav4up = (this.is_nav && this.is_minor >= 4);  // changed to this.is_minor for
                                                // consistency - dmr, 011001
    this.is_navonly      = (this.is_nav && ((this.agt.indexOf(";nav") != -1) ||
                          (this.agt.indexOf("; nav") != -1)) );

    this.is_nav6   = (this.is_nav && this.is_major==6);    // new 010118 mhp
    this.is_nav6up = (this.is_nav && this.is_minor >= 6); // new 010118 mhp

    this.is_nav5   = (this.is_nav && this.is_major == 5 && !this.is_nav6); // checked for ns6
    this.is_nav5up = (this.is_nav && this.is_minor >= 5);

    this.is_nav7   = (this.is_nav && this.is_major == 7);
    this.is_nav7up = (this.is_nav && this.is_minor >= 7);

    this.is_ie   = ((this.iePos!=-1) && (!this.is_opera) && (!this.is_khtml));
    this.is_ie3  = (this.is_ie && (this.is_major < 4));

    this.is_ie4   = (this.is_ie && this.is_major == 4);
    this.is_ie4up = (this.is_ie && this.is_minor >= 4);
    this.is_ie5   = (this.is_ie && this.is_major == 5);
    this.is_ie5up = (this.is_ie && this.is_minor >= 5);
    
    this.is_ie5_5  = (this.is_ie && (this.agt.indexOf("msie 5.5") !=-1)); // 020128 new - abk
    this.is_ie5_5up =(this.is_ie && this.is_minor >= 5.5);                // 020128 new - abk
	
    this.is_ie6   = (this.is_ie && this.is_major == 6);
    this.is_ie6up = (this.is_ie && this.is_minor >= 6);

    // KNOWN BUG: On AOL4, returns false if IE3 is embedded browser
    // or if this is the first browser window opened.  Thus the
    // variables is_aol, is_aol3, and is_aol4 aren't 100% reliable.

    this.is_aol   = (this.agt.indexOf("aol") != -1);
    this.is_aol3  = (this.is_aol && this.is_ie3);
    this.is_aol4  = (this.is_aol && this.is_ie4);
    this.is_aol5  = (this.agt.indexOf("aol 5") != -1);
    this.is_aol6  = (this.agt.indexOf("aol 6") != -1);
    this.is_aol7  = ((this.agt.indexOf("aol 7")!=-1) || (this.agt.indexOf("aol7")!=-1));
    this.is_aol8  = ((this.agt.indexOf("aol 8")!=-1) || (this.agt.indexOf("aol8")!=-1));

    this.is_webtv = (this.agt.indexOf("webtv") != -1);
    
    // new 020128 - abk
    
    this.is_TVNavigator = ((this.agt.indexOf("navio") != -1) || (this.agt.indexOf("navio_aoltv") != -1)); 
    this.is_AOLTV = this.is_TVNavigator;

    this.is_hotjava = (this.agt.indexOf("hotjava") != -1);
    this.is_hotjava3 = (this.is_hotjava && (this.is_major == 3));
    this.is_hotjava3up = (this.is_hotjava && (this.is_major >= 3));

    // end new
	
    // *** JAVASCRIPT VERSION CHECK ***
    // Useful to workaround Nav3 bug in which Nav3
    // loads <SCRIPT LANGUAGE="JavaScript1.2">.
    // updated 020131 by dragle
    this.is_js;
    if (this.is_nav2 || this.is_ie3) this.is_js = 1.0;
    else if (this.is_nav3) this.is_js = 1.1;
    else if ((this.is_opera5)||(this.is_opera6)) this.is_js = 1.3; // 020214 - dmr
    else if (this.is_opera7up) this.is_js = 1.5; // 031010 - dmr
    else if (this.is_khtml) this.is_js = 1.5;   // 030110 - dmr
    else if (this.is_opera) this.is_js = 1.1;
    else if ((this.is_nav4 && (this.is_minor <= 4.05)) || this.is_ie4) this.is_js = 1.2;
    else if ((this.is_nav4 && (this.is_minor > 4.05)) || this.is_ie5) this.is_js = 1.3;
    else if (this.is_nav5 && !(this.is_nav6)) this.is_js = 1.4;
    else if (this.is_hotjava3up) this.is_js = 1.4; // new 020128 - abk
    else if (this.is_nav6up) this.is_js = 1.5;

    // NOTE: In the future, update this code when newer versions of JS
    // are released. For now, we try to provide some upward compatibility
    // so that future versions of Nav and IE will show they are at
    // *least* JS 1.x capable. Always check for JS version compatibility
    // with > or >=.

    else if (this.is_nav && (this.is_major > 5)) this.is_js = 1.4;
    else if (this.is_ie && (this.is_major > 5)) this.is_js = 1.3;
    else if (this.is_moz) this.is_js = 1.5;
    else if (this.is_fb||this.is_fx) this.is_js = 1.5; // 032504 - dmr
    
    // what about ie6 and ie6up for js version? abk
    
    // HACK: no idea for other browsers; always check for JS version 
    // with > or >=
    else is_js = 0.0;
    // HACK FOR IE5 MAC = js vers = 1.4 (if put inside if/else jumps out at 1.3)
    if ((this.agt.indexOf("mac")!=-1) && this.is_ie5up) this.is_js = 1.4; // 020128 - abk
    
    // Done with this.is_minor testing; revert to real for N6/7
    if (this.is_nav6up) {
       this.is_minor = navigator.vendorSub;
    }
    
    this.browsersp   = "";
    if (this.ie4up)
        this.browsersp = navigator.appMinorVersion;

    // *** PLATFORM ***
    this.is_win   = ( (this.agt.indexOf("win")!=-1) || (this.agt.indexOf("16bit")!=-1) );
    // NOTE: On Opera 3.0, the userAgent string includes "Windows 95/NT4" on all
    //        Win32, so you can't distinguish between Win95 and WinNT.
    this.is_win95 = ((this.agt.indexOf("win95")!=-1) || (this.agt.indexOf("windows 95")!=-1));

    // is this a 16 bit compiled version?
    this.is_win16 = ((this.agt.indexOf("win16")!=-1) ||
               (this.agt.indexOf("16bit")!=-1) || (this.agt.indexOf("windows 3.1")!=-1) ||
               (this.agt.indexOf("windows 16-bit")!=-1) );

    this.is_win31 = ((this.agt.indexOf("windows 3.1")!=-1) || (this.agt.indexOf("win16")!=-1) ||
                    (this.agt.indexOf("windows 16-bit")!=-1));
	
	this.is_winme = ((this.agt.indexOf("win 9x 4.90")!=-1));    // new 020128 - abk
    this.is_win2k = ((this.agt.indexOf("windows nt 5.0")!=-1) || (this.agt.indexOf("windows 2000")!=-1)); // 020214 - dmr
    this.is_winxp = ((this.agt.indexOf("windows nt 5.1")!=-1) || (this.agt.indexOf("windows xp")!=-1)); // 020214 - dmr

    // NOTE: Reliable detection of Win98 may not be possible. It appears that:
    //       - On Nav 4.x and before you'll get plain "Windows" in userAgent.
    //       - On Mercury client, the 32-bit version will return "Win98", but
    //         the 16-bit version running on Win98 will still return "Win95".
    this.is_win98 = ((this.agt.indexOf("win98")!=-1) || (this.agt.indexOf("windows 98")!=-1));
    this.is_winnt = ((this.agt.indexOf("winnt")!=-1) || (this.agt.indexOf("windows nt")!=-1));
    this.is_win32 = (this.is_win95 || this.is_winnt || this.is_win98 ||
                    ((this.is_major >= 4) && (navigator.platform == "Win32")) ||
                    (this.agt.indexOf("win32")!=-1) || (this.agt.indexOf("32bit")!=-1));

    this.is_os2   = ((this.agt.indexOf("os/2")!=-1) ||
                    (navigator.appVersion.indexOf("OS/2")!=-1) ||
                    (this.agt.indexOf("ibm-webexplorer")!=-1));

    this.is_mac    = (this.agt.indexOf("mac")!=-1);
    if (this.is_mac) { this.is_win = !this.is_mac; } // dmr - 06/20/2002
    this.is_mac68k = (this.is_mac && ((this.agt.indexOf("68k")!=-1) ||
                               (this.agt.indexOf("68000")!=-1)));
    this.is_macppc = (this.is_mac && ((this.agt.indexOf("ppc")!=-1) ||
                                (this.agt.indexOf("powerpc")!=-1)));

    this.is_sun   = (this.agt.indexOf("sunos")!=-1);
    this.is_sun4  = (this.agt.indexOf("sunos 4")!=-1);
    this.is_sun5  = (this.agt.indexOf("sunos 5")!=-1);
    this.is_suni86= (this.is_sun && (this.agt.indexOf("i86")!=-1));
    this.is_irix  = (this.agt.indexOf("irix") !=-1);    // SGI
    this.is_irix5 = (this.agt.indexOf("irix 5") !=-1);
    this.is_irix6 = ((this.agt.indexOf("irix 6") !=-1) || (this.agt.indexOf("irix6") !=-1));
    this.is_hpux  = (this.agt.indexOf("hp-ux")!=-1);
    this.is_hpux9 = (this.is_hpux && (this.agt.indexOf("09.")!=-1));
    this.is_hpux10= (this.is_hpux && (this.agt.indexOf("10.")!=-1));
    this.is_aix   = (this.agt.indexOf("aix") !=-1);      // IBM
    this.is_aix1  = (this.agt.indexOf("aix 1") !=-1);
    this.is_aix2  = (this.agt.indexOf("aix 2") !=-1);
    this.is_aix3  = (this.agt.indexOf("aix 3") !=-1);
    this.is_aix4  = (this.agt.indexOf("aix 4") !=-1);
    this.is_linux = (this.agt.indexOf("inux")!=-1);
    this.is_sco   = (this.agt.indexOf("sco")!=-1) || (this.agt.indexOf("unix_sv")!=-1);
    this.is_unixware = (this.agt.indexOf("unix_system_v")!=-1);
    this.is_mpras    = (this.agt.indexOf("ncr")!=-1);
    this.is_reliant  = (this.agt.indexOf("reliantunix")!=-1);
    this.is_dec   = ((this.agt.indexOf("dec")!=-1) || (this.agt.indexOf("osf1")!=-1) ||
           (this.agt.indexOf("dec_alpha")!=-1) || (this.agt.indexOf("alphaserver")!=-1) ||
           (this.agt.indexOf("ultrix")!=-1) || (this.agt.indexOf("alphastation")!=-1));
    this.is_sinix = (this.agt.indexOf("sinix")!=-1);
    this.is_freebsd = (this.agt.indexOf("freebsd")!=-1);
    this.is_bsd = (this.agt.indexOf("bsd")!=-1);
    this.is_unix  = ((this.agt.indexOf("x11")!=-1) || this.is_sun || this.is_irix || this.is_hpux ||
                 this.is_sco || this.is_unixware || this.is_mpras || this.is_reliant ||
                 this.is_dec || this.is_sinix || this.is_aix || this.is_linux || this.is_bsd || this.is_freebsd);

    this.is_vms   = ((this.agt.indexOf("vax")!=-1) || (this.agt.indexOf("openvms")!=-1));
    // additional checks, abk
	this.is_anchors = (document.anchors) ? "true":"false";
	this.is_regexp = (window.RegExp) ? "true":"false";
	this.is_option = (window.Option) ? "true":"false";
	this.is_all = (document.all) ? "true":"false";
// cookies - 990624 - abk
	document.cookie = "cookies=true";
	this.is_cookie = (document.cookie) ? "true" : "false";
	this.is_images = (document.images) ? "true":"false";
	this.is_layers = (document.layers) ? "true":"false"; // gecko m7 bug?
// new doc obj tests 990624-abk
	this.is_forms = (document.forms) ? "true" : "false";
	this.is_links = (document.links) ? "true" : "false";
	this.is_frames = (window.frames) ? "true" : "false";
	this.is_screen = (window.screen) ? "true" : "false";

// java
	this.is_java = (navigator.javaEnabled());

// Flash checking code adapted from Doc JavaScript information; 
// see http://webref.com/js/column84/2.html

   this.is_Flash        = false;
   this.is_FlashVersion = 0;

   if ((this.is_nav||this.is_opera||this.is_moz||this.is_fb||this.is_fx)||
       (this.is_mac&&this.is_ie5up)) {
      this.plugin = (navigator.mimeTypes && 
                    navigator.mimeTypes["application/x-shockwave-flash"] &&
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) ?
                    navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
//      if (plugin) {
      if (this.plugin&&this.plugin.description) {
         this.is_Flash = true;
         this.is_FlashVersion = parseInt(this.plugin.description.substring(this.plugin.description.indexOf(".")-1));
      }
   }

   if (this.is_win&&this.is_ie4up)
   {
      document.write(
         '<scr' + 'ipt language=VBScript>' + '\n' +
         'Dim hasPlayer, playerversion' + '\n' +
         'hasPlayer = false' + '\n' +
         'playerversion = 10' + '\n' +
         'Do While playerversion > 0' + '\n' +
            'On Error Resume Next' + '\n' +
            'hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion)))' + '\n' +
            'If this.hasPlayer = true Then Exit Do' + '\n' +
            'playerversion = playerversion - 1' + '\n' +
         'Loop' + '\n' +
         'this.is_FlashVersion = playerversion' + '\n' +
         'this.is_Flash = hasPlayer' + '\n' +
         '<\/sc' + 'ript>'
      );
   }
}

function vSetBrowserDetails()
{
    var oIs;
    var isIE3Mac = false;
    if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) && (parseInt(navigator.appVersion)==3))
        isIE3Mac = true;
    else
        oIs = new Is(); 

    if      (oIs.is_ie)          sBrowser = "Internet Explorer";
    else if (oIs.is_fb)          sBrowser = "FireBird";
    else if (oIs.is_fx)          sBrowser = "FireFox";
    else if (oIs.is_konq)        sBrowser = "Konqueror";
    else if (oIs.is_safari)      sBrowser = "Safari";
    else if (oIs.is_nav)         sBrowser = "Netscape";
    else if (oIs.is_aol)         sBrowser = "AOL";
    else if (oIs.is_opera)       sBrowser = "Opera";
    else if (oIs.is_webtv)       sBrowser = "WebTV";
    else if (oIs.is_TVNavigator) sBrowser = "TVNavigator";
    else if (oIs.is_AOLTV)       sBrowser = "AOL TV";
    else if (oIs.is_hotjava)     sBrowser = "HotJava"
    else if (oIs.is_moz)         sBrowser = "Mozilla";
    else if (oIs.is_gecko)       sBrowser = "Gecko";
    else                         sBrowser = "onbekend";

    if      (oIs.is_fx)          sBrowserVersion = oIs.is_major;
    else if (oIs.is_fb)          sBrowserVersion = oIs.is_major;
    else if (oIs.is_nav7)        sBrowserVersion = "7";
    else if (oIs.is_nav6)        sBrowserVersion = "6";
    else if (oIs.is_nav4)        sBrowserVersion = "4";
    else if (oIs.is_nav3)        sBrowserVersion = "3";
    else if (oIs.is_nav2)        sBrowserVersion = "2";
    else if (oIs.is_aol8)        sBrowserVersion = "8";
    else if (oIs.is_aol7)        sBrowserVersion = "7";
    else if (oIs.is_aol6)        sBrowserVersion = "6";
    else if (oIs.is_aol5)        sBrowserVersion = "5";
    else if (oIs.is_aol4)        sBrowserVersion = "4";
    else if (oIs.is_aol3)        sBrowserVersion = "3";
    else if (oIs.is_ie6)         sBrowserVersion = "6"
    else if (oIs.is_ie5_5)       sBrowserVersion = "5.5"
    else if (oIs.is_ie5)         sBrowserVersion = "5"
    else if (oIs.is_ie4)         sBrowserVersion = "4"
    else if (oIs.is_ie3)         sBrowserVersion = "3"
    else if (oIs.is_opera5)      sBrowserVersion = "5"
    else if (oIs.is_opera4)      sBrowserVersion = "4"
    else if (oIs.is_opera3)      sBrowserVersion = "3"
    else if (oIs.is_opers2)      sBrowserVersion = "2"
    else if (oIs.is_hotjava3)    sBrowserVersion = "3"
    else if (oIs.is_moz)         sBrowserVersion = oIs.is_major;
    else if (oIs.is_gecko)       sBrowserVersion = oIs.is_major;
    else                         sBrowserVersion = "onbekend"

    if      (oIs.is_win)         sPlatform = "Windows"
    else if (oIs.is_os2)         sPlatform = "OS2"
    else if (oIs.is_mac)         sPlatform = "Apple Macintosh"
    else if (oIs.is_sun)         sPlatform = "Sun"
    else if (oIs.is_irix)        sPlatform = "Irix"
    else if (oIs.is_hpux)        sPlatform = "HP Ux"
    else if (oIs.is_aix)         sPlatform = "AIX"
    else if (oIs.is_linux)       sPlatform = "Linux"
    else if (oIs.is_sco)         sPlatform = "SCO"
    else if (oIs.is_unixware)    sPlatform = "UnixWare"
    else if (oIs.is_mpras)       sPlatform = "MPras"
    else if (oIs.is_reliant)     sPlatform = "Reliant"
    else if (oIs.is_dec)         sPlatform = "DEC"
    else if (oIs.is_sinix)       sPlatform = "Sinix"
    else if (oIs.is_freebsd)     sPlatform = "FreeBSD"
    else if (oIs.is_bsd)         sPlatform = "BSD"
    else if (oIs.is_unix)        sPlatform = "UNIX"
    else if (oIs.is_vms)         sPlatform = "VMW"
    else                         sPlatform = "onbekend"
    
    if      (oIs.is_win95)       sPlatformVersion = "95"
    else if (oIs.is_win31)       sPlatformVersion = "3.1"
    else if (oIs.is_win98)       sPlatformVersion = "98"
    else if (oIs.is_win2k)       sPlatformVersion = "NT 2000"
    else if (oIs.is_winme)       sPlatformVersion = "ME"
    else if (oIs.is_wince)       sPlatformVersion = "CE"
    else if (oIs.is_winxp)       sPlatformVersion = "XP"
    else if (oIs.is_winnt)       sPlatformVersion = "NT"
    else if (oIs.is_mac68k)      sPlatformVersion = "68K"
    else if (oIs.is_macppc)      sPlatformVersion = "Power PC"
    else if (oIs.is_sun4)        sPlatformVersion = "4"
    else if (oIs.is_sun5)        sPlatformVersion = "5"
    else if (oIs.is_suni86)      sPlatformVersion = "i86"
    else if (oIs.is_irix5)       sPlatformVersion = "5"
    else if (oIs.is_irix6)       sPlatformVersion = "6"
    else if (oIs.is_hpux9)       sPlatformVersion = "9"
    else if (oIs.is_hpux10)      sPlatformVersion = "10"
    else if (oIs.is_aix1)        sPlatformVersion = "1"
    else if (oIs.is_aix2)        sPlatformVersion = "2"
    else if (oIs.is_aix3)        sPlatformVersion = "3"
    else if (oIs.is_aix4)        sPlatformVersion = "4"
    else                         sPlatformVersion = ""
    
    sJSVersion           = oIs.is_js;
    sBrowserServicePacks = oIs.browsersp;
}

