﻿function activateFlash() {
    if (navigator.appName == 'Netscape') {
        fixFlash();
    }
    showThis(document.getElementById('netcomBox'));
}

function fixFlash() {
    var foundWmode;
    var obj = document.getElementById('promoFlash');

    if (obj != null) {
        foundWmode = false;
        var params = obj.getElementsByTagName('param');
        for (var j = 0; j < params.length; ++j) {
            if (params[j].getAttribute('name') == 'wmode') {
                params[j].setAttribute('value', 'opaque');
                foundWmode = true;
                break;
            }
        }

        if (!foundWmode) {
            var newParam = document.createElement('param');
            newParam.setAttribute('name', 'wmode');
            newParam.setAttribute('value', 'opaque');
            obj.appendChild(newParam);
        }

        obj.setAttribute('wmode', 'opaque');
        obj.setAttribute('style', 'display:block;');
    }

    obj = document.getElementsByTagName('embed');
    for (var i = 0; i < obj.length; ++i) {
        if (obj[i].getAttribute('wmode') != 'transparent') {
            obj[i].setAttribute('wmode', 'opaque');
        }
        obj[i].setAttribute('style', 'display:block;');
    }
}

