	var bFlashInstalled;
	var iFlashVersion, iNdx;
	var words;

	bFlashInstalled = false;

	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

	if ( plugin ) {
		words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (iNdx = 0; iNdx < words.length; ++iNdx) {
			if (isNaN(parseInt(words[iNdx]))) continue;
			bFlashInstalled = true;
			iFlashVersion = words[iNdx];
			break;
		}
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		for (iNdx = 6; iNdx > 0; --iNdx) {
			document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
			document.write('on error resume next \n');
			document.write('bFlashInstalled = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & iNdx)))\n');
			document.write('iFlashVersion = ' + iNdx + '\n');
			document.write('</SCR' + 'IPT\> \n');
			if (bFlashInstalled) break;
		}
	}