Play music in pop-up window

Hello,

I have got a client who wants to have music playing on his site, the music player should be opened in a pop-up window. The website is standard html / css / js website, without any flash or such things.

Problem which I have:

I open the pop up window with music player when visitor visits Home Page, when visitor comes to other page without visiting home page I need to check if pop up window is opened or not and if it is not opened I open a pop up window and start to play music, how to achieve it?

Regards,
Jake

When you open the window, you can give that window a name.

You can then check before opening the window, if any reference is able to be obtained to that named window.