The script is not needed in his sample because it using the object method to create the flash object and not the javascript method.
I am not able to reproduce the syntax errors that are being added to your page. We will need to look into this with your further to determine the cause. I have created a support ticket for this. To view and edit your support incident, log into your support history:
supporthistory.php