if ( FlashCanPlay ) {
    var menuFlash = document.getElementById('menu-flash');
}
var container = document.getElementById('container');
var data = document.getElementById('data');
var menuMinHeight = 300;
var siteMinWidth = 980;
var footerHeight = 50;
var tableBorder = 14;

function resizeHeight() {
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var winInnerHeight = document.body.offsetHeight - 4;
        var winInnerWidth = document.body.offsetWidth - 4;
    } else {
        var winInnerHeight = window.innerHeight;
        var winInnerWidth = window.innerWidth;
    }

    container.style.height = data.offsetHeight + footerHeight + 'px';
    menuHeight = winInnerHeight - tableBorder - container.offsetHeight;
    containerWidth = winInnerWidth - tableBorder;

    if ( containerWidth < siteMinWidth ) {
        container.style.width = siteMinWidth + 'px';
    } else {
        container.style.width = containerWidth + 'px';
    }

    if ( FlashCanPlay ) {
        if ( menuHeight < menuMinHeight ) {
            menuFlash.style.height = menuMinHeight + 'px';

        } else {
            menuFlash.style.height = menuHeight + 'px';
        }
    }

}

resizeHeight();
window.onresize = resizeHeight;
