var MM_FlashControlInstalled = null;
var MM_FlashControlVersion;

function MM_FlashInfo()
{
    var o = new Object();
    o.installed = false;

    if (navigator.plugins && navigator.plugins.length > 0)
    {
        o.implementation = "Plug-in";
        o.autoInstallable = false;	// until Netscape SmartUpdate supported
    
        // Check whether the plug-in is installed:
    
        if (navigator.plugins["Shockwave Flash"])
        {
            o.installed = true;
    
            // Get the plug-in version and revision:
    
            var words = navigator.plugins["Shockwave Flash"].description.split(" ");
    
            for (var i = 0; i < words.length; ++i)
            {
                if (isNaN(parseInt(words[i])))
                    continue;
    
                o.version = words[i];
            
    
                o.revision = parseInt(words[i + 1].substring(1));
            }
        }else{
            o.installed = false;
        }
    }else if(MM_FlashControlInstalled != null) {
        o.installed = MM_FlashControlInstalled;
        o.version = MM_FlashControlVersion;
    }

    return o;
}
