Use the code that detects whether or not flash is installed on the persons computer. If flash is not installed, an image will be served instead.
Use the code that will prompt the user to download flash if it is not already installed on their computer.