var flash = new Object();
flash.version = 0;
flash.installed = false;
if (navigator.plugins && navigator.plugins.length){
	for (x=0; x < navigator.plugins.length; x++) {
		if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) {
			flash.version = 2;
			flash.installed = true;
			if ( navigator.plugins[x].description ){
				y = navigator.plugins[x].description;
				flash.version = y.charAt(y.indexOf('.')-1);
			}
			break;
		}
	}
}
else if (window.ActiveXObject) {
	for (x = 2; x <= 10; x++) {
		try {
			oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');");
			if (oFlash) {
				flash.version = x;
				flash.installed = true;
			}
		}
		catch(e) {}
	}
}