
 /////////////////////////////////////////////////////////////////////////////
 //
 //  global.js - Globally available on the entire site
 //
 //  Only referenced functions and their global variables should be in here
 //
 /////////////////////////////////////////////////////////////////////////////


var g_hasActiveX = false;
function hasFlash(requiredVersion)
{
    var hasFlash = false;
    if (navigator.plugins.length > 0 && navigator.plugins["Shockwave Flash"]) { // NS/Mozilla
        var description = navigator.plugins["Shockwave Flash"].description;
        var version = description.match(/\d{1,2}/);
        hasFlash= (version >= requiredVersion);
    }
    else if (window.ActiveXObject && window.execScript && navigator.userAgent.indexOf('Mac') == -1) { // Win IE
        window.execScript("On error resume next: g_hasActiveX = IsObject(CreateObject('ShockwaveFlash.ShockwaveFlash." + requiredVersion + "'))", "VBScript");
        hasFlash = g_hasActiveX;
    }
    return hasFlash;
}

