if(navigator.plugins && navigator.plugins.length && navigator.plugins["Shockwave Flash"]) {
 myFlash = navigator.plugins["Shockwave Flash"].description;
 shockMode = 1;
 shockVersion = parseInt(myFlash.charAt(myFlash.indexOf('.')-1));
}
else if (navigator.mimeTypes && navigator.mimeTypes.length && navigator.mimeTypes['application/x-shockwave-flash'] && navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin) {
 shockMode = 1;
 shockVersion = parseInt(myFlash.charAt(myFlash.indexOf('.')-1));
}
else shockMode=0;

function flashCheck() {
    if(!shockMode || location.href.indexOf("noflash=yes") != -1) {
        document.getElementById("staticHome").style.display= "block";
        document.getElementById("flashHome").style.display= "none";
    }
}
 
function write_flash(text) {
    document.write(text);
}