Flash Click to activate, Dreamweaver Flash buttons problem

I followed the code to fix the click to activate problem on all my sites all but one works flawlessly, this site used the Dreamweaver embeded flash button objects, so you must double click each one to use to get to a page, I put the code on all the buttons but only one, the last button would show up how do I use that code for all the buttons at once just changing the filenames

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

Buttons are home.swf, Books.swf, you get the point…

I tried this and it displays nothing in IE. I made sure all my links work properly. Displays just fine in Firefox. The div is rendering but it’s not getting populated.

you need the flashobject.js on within your main page in order for anything to show up, I attached it. Only one button will show up at a time if you attach that code onto them is what my problem is.

lol oops didnt read on for the post

[SIZE=3]Information for Pages with Multiple Animations[/SIZE]
[SIZE=3][/SIZE]
First, if you are using the above Code Generator for multiple animations on your page, be sure to only keep the first appearance of the following code:
[CENTER][FONT=Courier New]<script type=“text/javascript” src= “flashobject.js”></script>[/FONT][/CENTER]
While most browsers will cache multiple calls to the same file (flashobject.js), some may not depending on what your site’s caching settings are.
Second, according to the code, your Flash animation will be placed wherever the flashobject div tag is. If you have multiple animations using the same generated code, make sure to change the reference to something else:

 <div id="flashcontent" style="width: 765px; height: 58px">  <script type="text/javascript"> var fo = new FlashObject("http://www.kirupa.com/swf/headerv2b.swf", "animationName", "765", "58", "8", "#FFFFFF"); fo.addParam("allowScriptAccess", "sameDomain"); fo.addParam("quality", "high"); fo.addParam("scale", "noscale"); fo.addParam("loop", "false"); fo.write("flashcontent"); </script> 

If you do not ensure that each FlashObject method points to a different div name/location, you will find animations with duplicate div names loading in the same place. You probably do not want that!