Need help with Flash detection and embed script

HI All,

Please tell me if there is any way to combine these 2 scripts:
http://www.kirupa.com/developer/mx/detection.htm - image display in place of flash

http://www.kirupa.com/developer/flash8/flash_fix.htm - to fix the embed issue

I want the first script to come from an external .js file and not paste everything on my main asp page. Currently the image is not being displayed if user has disabled/does not have flash plug-in.

Thanks