/** Macromedia Flash Dispatcher -- a scriptable detector for Flash Player
 * copyright (c) 2000 Macromedia, Inc.
 **///copie partielle
/* Latest available revisions of the Plug-in. */
var MM_latestPluginRevision = new Object();MM_latestPluginRevision["5.0"] = new Object();MM_latestPluginRevision["4.0"] = new Object();MM_latestPluginRevision["3.0"] = new Object();
MM_latestPluginRevision["2.0"] = new Object();
/*This table must be updated as new versions and revisions of the plug-in are released,  */
MM_latestPluginRevision["5.0"]["Windows"] = 30;MM_latestPluginRevision["5.0"]["Macintosh"] = 30;MM_latestPluginRevision["4.0"]["Windows"] = 28;MM_latestPluginRevision["4.0"]["Macintosh"] = 27;
MM_latestPluginRevision["4.0"]["Unix"] = 12;MM_latestPluginRevision["3.0"]["Windows"] = 10;MM_latestPluginRevision["3.0"]["Macintosh"] = 10;MM_latestPluginRevision["2.0"]["Windows"] = 11;
MM_latestPluginRevision["2.0"]["Macintosh"] = 11;
/*MM_FlashInfo() -- construct an object representing Flash Player status */
var MM_FlashControlInstalled;	// is the Flash ActiveX control installed?
var MM_FlashControlVersion;	// ActiveX control version if installed
function MM_FlashInfo(){
 if (navigator.plugins && navigator.plugins.length > 0){
	this.implementation = "Plug-in";
	this.autoInstallable = false;	// until Netscape SmartUpdate supported	// Check whether the plug-in is installed:
	if (navigator.plugins["Shockwave Flash"])	{
	    this.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;	this.version = words[i];	this.revision = parseInt(words[i + 1].substring(1));
	    }
	}
	else	{
	    this.installed = false;
	}
 }
 else if (MM_FlashControlInstalled != null) {
	this.implementation = "ActiveX control";	this.installed = MM_FlashControlInstalled;	this.version = MM_FlashControlVersion;	this.autoInstallable = true;
 }  this.canPlay = MM_FlashCanPlay;
}
/**THE FOLLOWING FUNCTIONS ARE NOT PUBLIC.  DO NOT CALL THEM DIRECTLY.
 ***/
function MM_FlashLatestPluginRevision(playerVersion){
    var latestRevision; var platform;
    if (navigator.appVersion.indexOf("Win") != -1)	platform = "Windows";
    else if (navigator.appVersion.indexOf("Macintosh") != -1)	platform = "Macintosh";
    else if (navigator.appVersion.indexOf("X11") != -1)	platform = "Unix";
    latestRevision = MM_latestPluginRevision[playerVersion][platform];
    return latestRevision;
}
function MM_FlashCanPlay(contentVersion, requireLatestRevision){
    var canPlay;
    if (this.version) {
	    canPlay = (parseInt(contentVersion) <= this.version);
	    if (requireLatestRevision)	{
	      if (this.revision &&this.revision < MM_FlashLatestPluginRevision(this.version))  {
		      canPlay = false;
	      }
	    }
    }
    return canPlay;
}


