
function mm_flash_detect() {
    MM_contentVersion = 6;
    MM_FlashCanPlay = false;
    var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])?navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin:0;

    if (plugin) {
        var words = navigator.plugins["Shockwave Flash"].description.split(" ");
        for (var i = 0; i < words.length; ++i) {
            if (isNaN(parseInt(words[i])))
            continue;
            var MM_PluginVersion = words[i]; 
        }
        MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
    }else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
        document.write('<SCR'+'IPT LANGUAGE=VBScript\>\n');
        document.write('On Error Resume Next\n');
        document.write('MM_FlashCanPlay = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
        document.write('</SCR'+'IPT\> \n');
    }

    if (MM_FlashCanPlay == false) {
        if (confirm("The Macromedia Flash plug-in is not installed on this computer.\n\nWould you like to install it right now?")) {
            window.open("http://www.macromedia.com/shockwave/download/?P1_Prod_Version=ShockwaveFlash", "_blank");
        }else{
            setCookie("mm_flash_detect","canceled",null);
        }
    }else{
        setCookie("mm_flash_detect","checked",null);
    }
}

if (!getCookie("mm_flash_detect")) {
    mm_flash_detect();
}
