Embedding Flash into a HTML document using JavaScript
Embedding flash used to be a bit of a chore...you had to use 2 different tags to cover all browsers and it wasnt very easy (I used to do it in Dreamweaver and then copy and paste). Nowadays I use javascript not least because of the way Internet Explorer handles Active Content.
These are two scripts I can recommend:
Unobtrusive Flash Objects (UFO)&
SWFObjectCheck them out and let me know what you think!
