    var _DEBUG = true;

    var browVer = "n";
    var browserName = navigator.appName;
    var browserVer = parseInt(navigator.appVersion);
    var imagesLoaded = false;

    /*
    isBrowser("Microsoft Internet Explorer");
    isBrowser("Netscape");
    */
    function isBrowser(bname)
    {
        if(browserName == bname) {
            return true;
        }
        return false;
    }

    function getBrowserVer()
    {
        return browserVer;
    }


    function bowserInfo()
    {
        if(_DEBUG) {
            setStatus(
                'browserName==' + browserName
                +', browserVer==' + browserVer,
                60000
            );
            alert("- BROWSER INFO - "
                + "\n-- name   :"+browserName
                + "\n-- ver    :"+browserVer
            );

        }

    }

    function chkBrowser()
    {

        browserName = navigator.appName;
        browserVer = parseInt(navigator.appVersion);
        /*
        if(_DEBUG) {
            setStatus('browserName=='+browserName+', browserVer=='+browserVer, 60000);
        }
        */
	    // alert('browserName=='+browserName+', browserVer=='+browserVer);
        // System.out.println('browserNamer=='+browserName+', browserVer=='+browserVer);
        if (browserName == "Netscape" && browserVer >= 3
            || browserName == "Microsoft Internet Explorer"
            && browserVer >= 3) {
            browVer = "n3";
        }else{
            browVer = "n2"
        }

        // run netscape 4.* resizing bug fix
        ns4ResizeBugFixSetup();

    }

    function clearStatus()
    {
      window.status="";
    }

    function setStatus(_text)
    {
        setStatus(_text, 15000);
    }

    function setStatus(_text, _timeout)
    {
      window.status = _text;
      // Clear the display after 15 seconds, more or less
      // 1000 equals one second, you can change to suit yourself
      setTimeout("clearStatus()",_timeout);
    }


/*
This section of code fixes a netscape resizing bug for DHTML pages.
If you use this code please leave these comments in place so that
others may benefit.  For use by anyone who needs it, this code
was created for by Glenn Davis of Project Cool, Inc.
*/


    function ns4resizebugfix()
    {
        if (document.pcool.ns4bugfix.startWidth != window.innerWidth ||
            document.pcool.ns4bugfix.startHeight != window.innerHeight){
            document.location = document.location
        }
    }

    function ns4ResizeBugFixSetup()
    {
        if(((isBrowser("Netscape")) && (getBrowserVer() >= 4 ))) {
            if((typeof document.pcool == 'undefined')){
                document.pcool = new Object;
                document.pcool.ns4bugfix = new Object;
                document.pcool.ns4bugfix.startWidth = window.innerWidth;
                document.pcool.ns4bugfix.startHeight = window.innerHeight;
                window.onresize = ns4resizebugfix;
            }
        }
    }


    chkBrowser();




