function flash_detection(required, max)
{
	var required_version = required;
	var max_version = max;
	var available_version = 0;

	 if(typeof(navigator.plugins["Shockwave Flash"]) == "object")
	{
		var description = navigator.plugins["Shockwave Flash"].description;
		available_version = description.substr(16, (description.indexOf(".", 16) - 16));
	}
	 else  if(typeof(ActiveXObject) == "function")
	{
		 for(var i = 2; i < (max_version + 1); i ++)
		{
			try
			{
				 if(typeof(new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i)) == "object")
				{
					available_version = i;
				}
		   }
		   catch(error)
		   {
		   }
		}
	}
	return [available_version, required_version];
}


var result = flash_detection(8, 8);
 if(!result[0])
{
	location.href = "needflash.htm";
}
 else  if(result[0] < result[1])
{
	location.href = "needflash.htm";
}
 else
{
	//Alles ok
}