Flash detection questions

Hi everyone,
Couple of questions about detection.

Is there a way to detect for flash plugin and instead of redirecting the viewer to a flash or non-flash page, swap out the flash content for non-flash content?

Thanks in advance for the help!!:beam: