try { PluginDetectorLoaded = com.jitjat.plugins.PluginDetector.PluginDetectorLoaded; } catch( e ) { throw new Error( "com.jitjat.plugins.FlashPluginDetector requires com.jitjat.plugins.PluginDetector" ); } if( PluginDetectorLoaded ) {

/**
 * Class for easy detection of the Flash plugin.
 * 
 * @version 1.0 April 14, 2004
 * @author Gregory Ramsperger <gregory@jitjat.com>
 *
 * @constructor
 * @param autodetect <dfn>Boolean</dfn> run detect() method upon creation. Default is <code>true</code>.
 **/
com.jitjat.plugins.FlashPluginDetector = function( autodetect ) {
	this.addActiveXControlPattern( "ShockwaveFlash.ShockwaveFlash.", "" );
	this.vendor = "Macromedia";
	if( autodetect != false ) this.detect();
}

// extend the base class
com.jitjat.plugins.FlashPluginDetector.prototype = new com.jitjat.plugins.PluginDetector;

/**
 * An array of mime types to use when searching for the proper plugin. (Ignored for IE/Win)
 * <p>Default value: <code>["application/x-shockwave-flash"]</code>
 * @type Array
 */
com.jitjat.plugins.FlashPluginDetector.prototype.mimeTypes = ["application/x-shockwave-flash"];

/**
 * An array of plugin names/descriptions to use when searching for the proper plugin. (Ignored for IE/Win)
 * <p>Default value: <code>["Shockwave Flash"]</code>
 * @type Array
 */
com.jitjat.plugins.FlashPluginDetector.prototype.pluginNames = ["Shockwave Flash"];

/**
 * An array of file name suffixes to use when searching for the proper plugin. (Ignored for IE/Win)
 * <p>Default value: <code>["swf"]</code>
 * @type Array
 */
com.jitjat.plugins.FlashPluginDetector.prototype.suffixes = ["swf"];


/**
 * Extracts version information from the plugin.description or plugin.name properties.
 *
 * @private
 * @param plugin <dfn>plugin</dfn> the plugin instance (as in navigator.plugins[0])
 * @return the version number found or <code>null</code> if no version was retrieved.
 * @type Number
 */
com.jitjat.plugins.FlashPluginDetector.prototype.findVersion = function( plugin ) {
	return parseFloat( plugin.description.substr( 16 ) );
}



/* end PluginDetectorLoaded test */}