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','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','800','height','580','align','middle','src','FlashWebsite','quality','high','bgcolor','#ffffff','name','FlashWebsite','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','FlashWebsite' );
</script>

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 !!