Detecting the flash player version

Please help.

I made a website in flash. And I want to host it. So How do I make the html page, which contains the flash?
It has to detect whether the flash player is above 10.0.2.
If the condition is not ok, then the user has to be instructed to download the latest flash player. And if the condition is not ok, the flash page has to be displayed.
And for the above two conditions, the activex yellow bar should not be displayed. How can I do that?