/*********************************************************************
 *
 * Macromedia Flash Dispatcher -- a scriptable detector for Flash Player
 *
 *
 * copyright (c) 2000 Macromedia, Inc.
 *
 *********************************************************************/

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)
  {
	// 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];
	    }
	  }
	  else
	  {
	    this.installed = false;
	  }
  }
  else if (MM_FlashControlInstalled != null)
  {
	  this.installed = MM_FlashControlInstalled;
	  this.version = MM_FlashControlVersion;
  }
}