Problems with fixing embed problem - Where to place de code?

Hello I’m trying to fix the embed double click problem with the kirupa tutorial, but id dont seem to get it right. I made an example file to test several positions of the code, but none of them works. I made a simple *.swf containing a buttun which changes colour when the mouse is moved over the button. The original code from my html file is:

<html xmlns="[](" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="[,0,0,0](,0,0,0)" width="300" height="300" id="Embed" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Embed.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="Embed.swf" quality="high" bgcolor="#ffffff" width="300" height="300" name="Embed" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[](" />

The code that the tutoral provides me with is:

<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent" style="width: 300px; height: 300px"></div>
<script type="text/javascript">
var fo = new FlashObject("[](", "animationName", "300", "300", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");

Can somebody please tell me where to put this code inside the original code? The only solution that comes close is when I put the code on the bottom of the original code. The problem however is the animation gets displayed twice. On top their is the original file wcich needs clicking, and directly below that is the fixed file. This however does not yet solve my problems.