// Detect Macromedia Flash Plug-In - Part A
// NOTE: Should be included as "JavaScript" or "JavaScript1.0".

// You must set these variables appropriately.
var requiredVersion = 6;		// version required by the page
var useRedirect = true;			// Redirect to a new page?
var noFlashPage = "noflash.html";	// Page to display if no Flash plug-in is found.
var upgradePage = "noflash.html"; // Page to display if the Flash plug-in found is not the required version or higher.

// Boolean variables for various versions of the plug-in.
var flash2Installed = false;
var flash3Installed = false;
var flash4Installed = false;
var flash5Installed = false;
var flash6Installed = false;

// Currently the highest version is 6 (Flash MX).
var maxVersion = 6;

// These variables will be set for use after Part C.
var actualVersion = 0;			// The version of the Flash plug-in, if any.
var hasRightVersion = false;		// actualVersion >= requiredVersion
var jsVersion = 1.0;			// Highest version of JavaScript detected - only goes up to 1.1 here.