Take a look at swfObject - it's cross-browser compatible, standards compliant, and more or less industry standard.