var _FRAMED_MUSICPLAYER_LOADED;
if (!_FRAMED_MUSICPLAYER_LOADED)
{
	_FRAMED_MUSICPLAYER_LOADED = 1;
	
	function closeFramedMusicPlayer() {
		parent.location.replace("index.cfm?mpf=close&bp=" + escape(parent.mainFrame.location));
	}
	
	function openFramedMusicPlayer() {
		newLocation = "http://" + document.location.hostname + document.location.pathname + "?mpf=frame&" + window.location.search.substring(1);
		document.location.replace(newLocation);
	}

	function isMusicPlayerOpen() {
		if (parent == self) return false;
		try {
			if (parent._MUSICPLAYER_FRAME) return true;
		} catch (ex) {
			// We're currently in a frameset that is outside of our own domain and
			// trying to read from it caused a security error.
		}
		return false;
	}
}
