Please post a link to the page on your site that contains the problematic script so we can check it out.
I can't tell from your post even what format the video is in.
Basically yes you can do this; you will add an extra event when you are hiding the layer; it will be the Javascript function to pause the video.
The exact code will depend on the format of the video, and in some cases it may not be possible. If you explain more, we'll see about the specific format and what can be done.
By the way, the link in your post doesn't work.
Bookmarks