Help I need to pass validation on this

Right now the only reason I am using right now is positioning purposes now.

dude swfobject 2.2 its the best way to embed swf’s. 100% valid html and works for all browsers. Also passing vars / setting params is a snip!



<head>
    <!-- add swfobject here -->
    <script src="js/swfobject.js" type="text/javascript"></script>
</head>

<body>

<div id="whatever_you_like">
    Place dummy image here if js is turned off
</div>

<script type="text/javascript">
	var flashvars = {};
	/*add your flash vars here eg: flashvars.xmlsource = "data.xml";*/
	var params = {};
	/* add your params here eg: params.menu = "false"; params.allowFullScreen = "true";*/
	var attributes = null;

	swfobject.embedSWF("Your flash file here", "whatever_you_like (whatever you called the container", "400", "200", "8.0.0", null, flashvars, params, attributes);

/*
    swfobject.embedSWF(swfUrl, id, width, height, version, expressInstallSwfurl, flashvars, params, attributes, callbackFn) has five required and five optional arguments:

   1. swfUrl (String, required) specifies the URL of your SWF
   2. id (String, required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content
   3. width (String, required) specifies the width of your SWF
   4. height (String, required) specifies the height of your SWF
   5. version (String, required) specifies the Flash player version your SWF is published for (format is: "major.minor.release" or "major")
   6. expressInstallSwfurl (String, optional) specifies the URL of your express install SWF and activates Adobe express install. Please note that express install will only fire once (the first time that it is invoked), that it is only supported by Flash Player 6.0.65 or higher on Win or Mac platforms, and that it requires a minimal SWF size of 310x137px.
   7. flashvars (Object, optional) specifies your flashvars with name:value pairs
   8. params (Object, optional) specifies your nested object element params with name:value pairs
   9. attributes (Object, optional) specifies your object's attributes with name:value pairs
  10. callbackFn (JavaScript function, optional) can be used to define a callback function that is called on both success or failure of embedding a SWF file (see API documentation)

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

*/

</script>

</body>
</html>