[FMX]Different Kind of Detection Script

This is my problem…

I’m creating a site in php which pulls in the header seperately with an include ( <? include(“header.php”) ?> ).

The header uses flash but I’ve also created a dhtml version the emulates some of the flash features for those without flash…

What I’m looking for is a flash 6 detection script that will

  1. test to see if the user has flash
  2. if he has flash it will excute the flash movie
  3. if he doesn’t have flash, it will execute the dhtml code

I need all of this to work on one page (header.php)

I’ve seen scripts that will display a flash image if you have flash and a jpeg or gif if you don’t…

but I haven’t seen any that will execute html code (without transfering you to another page) instead of simply displaying a static image…

does any one have a script that operates like this?

Any help will be appreciated…