// BROWSER.JS  Copyright 2002 Boris Stumpf - http://www.xpw18.de
// Modified by Babylon Systems - http://www.babylon-systems.com
var identstring = navigator.userAgent;
var browser = false;
if(identstring.indexOf("Opera",0) != -1) browser = "OP"; // Opera
else if(identstring.indexOf("MSIE 5.",0) != -1) browser = "IE";  // IE5
else if(identstring.indexOf("MSIE 6.",0) != -1) browser = "IE";  // IE6
else if(identstring.indexOf("MSIE 5.",0) == -1 && identstring.indexOf("Mozilla/4.",0) != -1) browser="MOZ"; // NS4
else if (identstring.indexOf("Gecko/",0) != -1) browser = "FF"; // Firefox/Netscape 6/7
else if (identstring.indexOf("Konqueror/",0) != -1) browser = "KON" // Konqueror

// Maximize frame
function calcHeight() {
    if (browser=="FF") {
        var bodyHeight = 0;
        var corr = 0;
        switch(browser) {
            case "FF": 
                bodyHeight = window.innerHeight;
            break;
        }
        var contentHeight = parseInt(bodyHeight)-120-corr;
        document.getElementById('content').style.height = String(contentHeight)+'px';
    }
}

// Define event handler
//myBody = document.getElementById('body');
//myBody.onload = function () { calcHeight(); }
//myBody.onresize = function () { calcHeight(); }
