function launchRadioSoftly() 
{
   playerCookie = getCookie("player");
   // if it has then, all being well with the pinger, we should focus it 
   if(playerCookie == "true") {
		// radio player is active so do nothing but focus the window
		 if (playerWindow) {
	      	playerWindow.focus();
	      } else {
	         // this will force the window forward. Hopefully without a reload.
	         playerWindow = window.open("","player","status,width="+windowWidth+",height=" + windowHeight);
	      }
   } else {
      // open window and start playing playlist at last postion or top based upon session settings;
      playerWindow = window.open("/radio_player/player.php","player","status,width="+windowWidth+",height=" + windowHeight);
	   if(!playerWindow.opener) {
	       playerWindow.opener = this;
	   }
   }	
}

function launchRadio()
{
   // add our track to the playlist;
   // check to see if cookie has been set
   playerCookie = getCookie("player");
   // if it has then, all being well with the pinger, we should focus it 
   if(playerCookie == "true") {
      // get our focus
      if (playerWindow) {
      	playerWindow.focus();
         playerWindow.location.href = "/radio_player/player.php"; 
      } else {
         // this will force the window forward. Hopefully without a reload.
         playerWindow = window.open("/radio_player/player.php","player","status,width="+windowWidth+",height=" + windowHeight);
      }
   } else {
      // open window and start playing playlist at last postion or top based upon session settings;
      playerWindow = window.open("/radio_player/player.php","player","status,width="+windowWidth+",height=" + windowHeight);
   }
   if(!playerWindow.opener) {
	    // make sure the playerwindow knows where it was opened from
      playerWindow.opener = this;
   }
}	    
