swfobject

SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file

swfflash

http://code.google.com/p/swfobject/