Flashobject (embed) javascript & FlashVars

Hi,

I was hoping someone could give me a hand with this code. I’m using the kirupa flashobject.js to switch over some of my old flash object embeds. It works fine on all my .swfs except this one where I pass in flashvars. I’m a little confused on how I should attempt this. I tried the straight up way of adding a “fo.addParam()” but it didn’t work. Anyway, I’ve included the pre-changed flash object as well as the javascript version that I tried to convert it to. Any suggestions would rock my world.

//ORIGINAL CODE
[SIZE=“1”]
<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=“120” height=“300”>
<param name=“movie” value=“flash/navigation.swf”>
<param name=FlashVars value=“id=<%=Session(“category”)%>”>
<param name=“quality” value=“high”>
<embed src=“flash/navigation.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“120” height=“300” FlashVars=“id=<%=Session(“category”)%>”></embed>
</object>
[/SIZE]

//JAVASCRIPT VERSION

[SIZE=“1”]
<script type=“text/javascript” src=“flashobject.js”></script>
<div id=“flashcontent_text” style=“width: 120; height: 300”></div>
<script type=“text/javascript”>
var fo = new FlashObject(“flash/navigation.swf”, “animationName”, “120”, “300”, “8”, “#4d4c4c”);
fo.addParam(“allowScriptAccess”, “sameDomain”);
fo.addParam(“quality”, “high”);
fo.addParam(“scale”, “noscale”);
fo.addParam(“loop”, “false”);
fo.addParam(“FlashVars”, “id=<%=Session(“category”)%>”);
fo.write(“flashcontent_text”);
</script>[/SIZE]