
function player(stationID, relayID)
{
 var path = "http://www.audiorealm.com/";

 //playerwin = window.open(path+"player.config.html?page=listen&stationID="+stationID+'&relayID='+relayID, "_AR_player", "location=no,status=no,menubar=no,scrollbars=no,resizeable=yes,height=350,width=468");
 player_popup(stationID,0);
}


 function player_popup(stationID,publisherID)
 {
    popup_center('http://player.spacialnet.com/players/player.html?stationID='+stationID+'&publisherID='+publisherID,"_player",706,526,'');
    return false;
 }


 function popup_center(mylink, windowname, w, h)
 {
   if((w<=0)||(w==null)) w = 706;
   if((h<=0)||(h==null)) h = 526;

   var x = (screen.availWidth / 2) - (w / 2);
   var y = (screen.availHeight / 2) - (h / 2);

   if (!window.focus)return true;
   var href;
   if (typeof(mylink) == 'string')
	   href=mylink;
   else
	   href=mylink.href;

   winref = window.open(href, windowname, 'width='+w+',height='+h+',location=no,status=no,menubar=no,scrollbars=no,left='+x+',top='+y);
   return winref;
 }

