Yes. Check out SWFObject.
After reading that link above (SWFObject), you will have downloaded a .js file and included it in your header. Then, all you would have to do in your case is this:
var swfHockey = new SWFObject("http://www.dqatestsite.nl/test/hockeystick.swf", "hockey", 100%, 100%, 7, #000000);
Let me know how this works out for you and if you have any other questions about it. As you can see, it's much simpler. For additional options, check out