function UpdateMusicButton() 
{
  if( document.MusicButton )
  {	
		if( parent && parent.musicFrame )
		{
			if( parent.MusicOn )
				document.MusicButton.src = '../_frame/music.png';
			else
				document.MusicButton.src = '../_frame/nomusic.png';
			}
		else
			document.MusicButton.style.display = 'none';
	}
}
function MusicPlay( topic ) 
{
  if( parent && parent.musicFrame ) 
  {
		if( topic == "_stop_" ) // topic has no music so we redirect the silent index.html page located under the _frame directory
		{
      parent.MusicPageURL = '../_frame/blank.html';
      parent.musicFrame.location = parent.MusicPageURL;
		}
		else
		{
			if( topic != '' )
				parent.MusicPageURL = '../' + topic + '/music.html';
			if( parent.MusicOn ) 
			{
				parent.musicFrame.location = '../_frame/blank.html';
				parent.MusicOn = 0;
			}
			else if( parent.MusicPageURL != '' )
			{
				parent.musicFrame.location = parent.MusicPageURL;
				parent.MusicOn = 1;
			}
		}
		if( parent.MusicPageURL != '' )
      UpdateMusicButton();
  }
}
