Possible to call AC_FL_RunContent with document.write?

I have wrapped the Flash generated AC_FL_RunContent code around the following which works, but wonder if there is a shorter way to call it

<script type="text/javascript" language="JavaScript">
            e = canResizeFlash();
            document.write('<object data="movie.swf" width="300" height="274" type="application/x-shockwave-flash">');
            document.write('<param name="movie" value="movie.swf" />');
            document.write('<param name="FlashVars" value="allowResize='+e+'" />');
            document.write('Flash Movie With Resizing Content');
            document.write('<param name="wmode" value="transparent" />');
            document.write('</object>');
        </script>