/* $Id */

function fd() {
	var flash = 0;
	if (typeof navigator.plugins != 'undefined') {
		if (typeof navigator.plugins["Shockwave Flash"] != 'undefined') {
			flash = parseInt(
				navigator.plugins["Shockwave Flash"].description.charAt(
					navigator.plugins["Shockwave Flash"].description.indexOf(
						"."
					) - 1)
			);
		}
	}
	if (
		navigator.appVersion.indexOf("MSIE") > -1
		&& navigator.platform == 'Win32'
	) {
		if (
			typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.5") != 'undefined'
			|| typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6") != 'undefined'
			|| typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7") != 'undefined'
		) {
			var probe = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			/* Buggy... */
			flash = probe.FlashVersion();
			if (typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7") != 'undefined') {
				return flash = 7;
			}
			if (typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6") != 'undefined') {
				return flash = 6;
			}
			if (typeof new ActiveXObject("ShockwaveFlash.ShockwaveFlash.5") != 'undefined') {
				return flash = 5;
			}
		}
	}
	return flash;
}
