function InsertObject1()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="607" height="222">');
document.write('                                            <param name="movie" value="/includes/animation.swf">');
document.write('                                            <param name="quality" value="high">');
document.write('                                            <embed src="/includes/animation.swf" width="607" height="222" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" WMODE="transparent"></embed> ');
document.write('                                            <param name="wmode" value="transparent"> ');
document.write('                                          </object>');
}

<!-- Please not the change here, as it will help understand z-index layering in IE and FF. The change is on line 7 above: <param name="wmode" value="transparent"> and the additonal code in the embed tag: WMODE="transparent". Basically these 2 bits of code make the flash transparent, and allows layers to float above it using z-index in this case. -->