Detect if window is active

Hi

My site is a Portfolio of other flashwebsites. All have sound. Because it becomes confusing to have all sounds playing at the same time I am trying to do one thing.

I need to know if there is a EventListener that detects if the site window is active. If it is not the volume will be zero, if it is the volume will be 1.

Can anyone help me do this?

Thanks