Non-Working Flash Detect Javascript script

Hello all,

I inherited a website project from someone who used a flash detect script that does not pop up an option to download the flash plugin when it is not installed. Basically it should, and I was wonding if anyone could help. I have gone through the file, but my javascript skills are lacking.

Thanks for any help you can give.