
if ( FlashCanPlay ) {
    var container = document.getElementById('container');
    var flash = document.getElementById('flash');
    var minHeight = 550;
    var minWidth = 980;

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

        if ( winInnerWidth < minWidth ) {
            flash.style.width = minWidth + 'px';
        } else {
            flash.style.width = '100%';
        }

        if ( winInnerHeight <= minHeight ) {
            flash.style.height = minHeight + 'px';
        } else {
            flash.style.height = '100%';
        }

    }
    resizeHeight();
    window.onresize = resizeHeight;
}

