function getFlashVersion() {
	var flashVersion = 0;
	with (navigator) {
		if (plugins && plugins.length) {
			if (plugins["Shockwave Flash"]) {
				var pluginObject = plugins["Shockwave Flash"];
				var flashDescArr = pluginObject.description.split(" ");
				for (var i = 0; i < flashDescArr.length; ++i) {
					if (!isNaN(parseInt(flashDescArr[i]))) {
						flashVersion = parseInt(flashDescArr[i]);
						break }
				}
				if (flashVersion >= 6) {
					var extFound = false;
					for (i = 0; i < pluginObject.length; i++) {
						mimetype = pluginObject[i];
						if (mimetype) {
							if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1)) extFound = true;
						}
					}
					if (!extFound) flashVersion = 0 }
				if (mimeTypes["application/x-shockwave-flash"] == null) flashVersion = 0 }
		} else if (appName.indexOf('Microsoft') != -1) {
			flashVersion = checkIEFlash() }
	}
	return parseInt(flashVersion);
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
