Detection code?!

Hello!
Is there anyone how got a js code for detect if the visitor has the ability to weiv transparent flash content or not?!?!

It has to check for;

Internet Explorer 3 or higher (Windows)
Internet Explorer 5.1* and 5.2* (Macintosh)
Netscape 7.0*
Mozilla 1.0 or higher*
AOL*
CompuServe*

And flash player;
6,0,65,0 (Windows)
6,0,67,0 (Macintosh)

Is it possible??? Plz help me!