SWFObject is an easy-to-use and standards-friendly method to embed Flash content, which utilizes one small JavaScript file. I’ve previously mentioned SWFObject in one of my posts last year.
The latest release is now featured on Google code, and from my initial testing it appears to be flawless.