Yes, using swf object is much better.
Code:
http://blog.deconcept.com/swfobject/
Instead of all that code there are just a few lines of code and you can place text or picture on the same place that will be visible if user's javascript is turned off. And, most importantly, code validates
It's pretty straigthforward and easy to implement.