Something's wrong with the HTML content being used to load the flash object in the javascript block.
I'm not sure what all you've done exactly, but the javascript you're using to load the flash object needs to be replaced with this:
HTML Code:
<script language="javascript" type="text/javascript">
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="950" height="200">');
document.write('<param name="movie" value="flashheader.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" />');
document.write('<embed src="flashheader.swf" width="950" height="200" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>');
document.write('</object>');
</script>