convert code embedding swf file into a js file


Hi all.

The code embedding the swf file using AC_RunActiveContent.js looks as below:

<script type="text/javascript" >
AC_FL_RunContent('codebase',',0,0,0','width','800','height','580','align','middle','src','FlashWebsite','quality','high','bgcolor','#ffffff','name','FlashWebsite','allowscriptaccess','sameDomain','pluginspage','','movie','FlashWebsite' );

I would like to run this off a .js file so that this could be CSP compatible & would replace the above code.

i would be much obliged for this.

Thanks all !!