function getFlashVersion(){
	var tempVers = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (tempVers){
		var flashPlugin = navigator.plugins['Shockwave Flash'];
		tempVers = parseInt(flashPlugin.description.substring(flashPlugin.description.indexOf(".")-1));
	}else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
		for (flashVersion = 9; flashVersion >= 1; --flashVersion){
			try{
				installed = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + flashVersion.toString());
				tempVers = flashVersion;
			}catch (e){
				tempVers = 0;
			}
			if(tempVers) break;
		}
	}
	return tempVers;
}