Sound control

hi,
anyone run into this before?

I have my main flash page loaded and playing music. When the user clicks a link it will open a new window. I want the sound to go off when the new window opens, and then come back on when the opened window id closed, or, when the main flash window is back in focus.

any help greatly appreciated.