function check_flash() {
	var flash_detect = new Object();
	var version_check_to = 20;
	flash_detect.installed = false;
	flash_detect.version = 0;
	try {
		if(navigator.plugins && navigator.plugins.length) {
			for (var i=0;i<navigator.plugins.length;i++) {
				if (navigator.plugins[i].name.indexOf('Shockwave Flash') != -1) {
					flash_detect.version = navigator.plugins[i].description.charAt(navigator.plugins[i].description.indexOf('.')-1);
					flash_detect.installed = true;
					break;
				}
			}
		} else if (window.ActiveXObject) {
			for (var i = 2;i<=version_check_to;i++) {
				try {
					flash_object = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + i + "');");
					if(flash_object) {
						flash_detect.installed = true;
						flash_detect.version = i;
					}
				} catch(e) {}
			}
		}
	} catch(e) {}
	return (flash_detect)
}