That looks like old-style embedding code and if it is it will not validate with the W3C standards. Look into using more modern embedding techniques. SWFObject might help... http://code.google.com/p/swfobject/
I will try to figure it out using SWFObject.
I also recommend swfobject... but sometimes all the extra IE conditional statements that comes with version 2+ can cause problems. I like the earlier 1.5 version myself.
Either version.... they are still both Flash detection methods. The real stregth of using Flash detection is the ability to add "Alternate content".... NOT as a mean of just placing Flash on a Web page. That can be done with just HTML <object> code.... no swfobject needed.
The single <object> method..... Very simple and clean:
<object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">
<param name="movie" value="path_to_file/file.swf">
<param name="SomeOtherParam" value="ParamValue">
Edit as needed for your content