﻿function _initMenu() {
    var Menu = document.getElementById("Menu");
    for (var i = 0; i < Menu.childNodes.length; i++) {
        with (Menu.childNodes[i]) {
            if (nodeName == "LI") {
                onmouseover = function () {this.className = "Hover";};
                onmouseout = function () {this.className = "";};
            }
        }
    }
}
function MaxHeight()
{
    var block1 = document.getElementById("BlockContentLeft");
    var block2 = document.getElementById("BlockContentCenter");
    var block3 = document.getElementById("BlockContentRight");
    var max=0;
    if(arguments[0]==1)
    {
        if(block1.clientHeight>=block2.clientHeight)
        {
            max=block1.clientHeight;
        }else{
            max=block2.clientHeight;
        }
        if(max>=block3.clientHeight)
        {
            max=max;
        }else{
            max=block3.clientHeight;
        }
        block1.style.height=max+"px";
        block2.style.height=max+"px";
        block3.style.height=max+"px";
    }else{
        block1.style.height="auto";
        block2.style.height="auto";
        block3.style.height="auto";
    }
}
function ResizeBlock()
{
    if(arguments[0]==0)
    {
        setInterval('MaxHeight(1)', 100);
    }else{
        MaxHeight(0);
    }
}
function BrowserInfo()
{
    this.name = navigator.appName;
    this.codename = navigator.appCodeName;
    this.version = navigator.appVersion.substring(0,4);
    this.platform = navigator.platform;
    this.javaEnabled = navigator.javaEnabled();
    this.screenWidth = screen.width;
    this.screenHeight = screen.height;
}
//window.onload=ResizeBlock(0);
//window.resize=ResizeBlock(1);
