<!--
	var requiredVers = 7			// The version of Flash that we are testing for
	var flash2Installed = false;	// True if flash 2 is installed
	var flash3Installed = false;	// True if flash 3 is installed
	var flash4Installed = false;	// True if flash 4 is installed
	var flash5Installed = false;	// True if flash 5 is installed
	var flash6Installed = false;	// True if flash 6 is installed
	var flash7Installed = false;	// True if flash 7 is installed
	var flash8Installed = false;	// True if flash 7 is installed
	var maxVersion = 8;				// Highest version we can detect
	var actualVers = 0;   			// Version the user really has
	var blnFlashOk = false;			// True if required Flash plugin is detected

	// Find out the browser and platform we are running on
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;			// true if IE
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;		// true if Windows

	// If we are running IE on Windows, write VBScript routine to detect Flash Player
	if (isIE && isWin) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
		document.write('on error resume next \n');
		document.write('flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
		document.write('flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
		document.write('flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
		document.write('flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
		document.write('flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');	
		document.write('flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');	
		document.write('flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');	
		document.write('</SCR' + 'IPT\> \n'); // break up end tag so it doesn't end our script
	}


	// If we`re running any other browser on Windows or whatever, use the plugins array to detect Flash version
	// This bit of code is written as a function so that it loads before we run it.
	function detectFlashVers() {
		if (navigator.plugins) {  // Execute this code if the plugins array exists
			if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {  // Is Flash 2.0 or 3.0+ installed?
				var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ? 
				navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0);

				var flashVersion = parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) 
				flash2Installed = flashVersion == 2;		
				flash3Installed = flashVersion == 3;
				flash4Installed = flashVersion == 4;
				flash5Installed = flashVersion == 5;
				flash6Installed = flashVersion == 6;
				flash7Installed = flashVersion == 7;
				flash8Installed = flashVersion == 8;
			}
		}
		
		// loop through all versions we're checking, and set actualVersion to highest detected version
		for (var i = 2; i <= maxVersion; i++) {	
			if (eval("flash" + i + "Installed") == true) actualVers = i;
		}

		// if we're on WebTV, the version supported is 2 (pre-summer2000, or 3, post-summer2000)
		// note that we don`t care what version of WebTV it is
		if(navigator.userAgent.indexOf("WebTV") != -1) actualVers = 2;

		// Now we know if we have Flash installed and what version it is.
		if (actualVers >= requiredVers) {	// user has the correct version
			blnFlashOk = true;
		}
	}

	detectFlashVers();  // Run the routine
//-->
