whispercast.local.static.url = {
  initial: {
    regular: '/radiolynx/aliases/master?wfl=1',
    standby: '/radiolynx/aliases/master?wfl=8',

    small: '/radiolynx/aliases/master?wfl=4'
  },
  links: [
    {
      name: 'normal',
      regular: '/radiolynx/aliases/master?wfl=1',
      standby: '/radiolynx/aliases/master?wfl=8'
    },
    {
      name: 'high',
      regular: '/radiolynx/aliases/master?wfl=2',
      standby: '/radiolynx/aliases/master?wfl=8'
    }
  ]
};

whispercast.local.static.s_cookie_id = 'radiolynx';
whispercast.local.static.p_cookie_id = 'whispercast';

whispercast.local.static.popup_id = 'radiolynx';

whispercast.local.static.popup_width = 648;
whispercast.local.static.popup_height = 408;

whispercast.local.mapURL = function(url) {
  var L = whispercast.local;
/*
  var req;
  if (!req)
    try { req = new XMLHttpRequest(); } catch(e) {}
  if (!req)
    try { req = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
  if (!req)
   try { req = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
  if (!req) {
    return null;
  }

  req.open('GET', 'local.php', false);
  req.send(null);
  if (req.status != 200) {
    return null;
  }

  eval(req.responseText);

  var stream_id = url.split('?');
  stream_id = stream_id[0];

  var stream_host;
  var stream_bandwidth = Number.MAX_VALUE;

  var servers = L.static.servers;
  for (var host in servers) {
    var current = servers[host].current/servers[host].available;
    if (current < stream_bandwidth) {
      stream_host = host;
      stream_bandwidth = current;
    }
  }
*/
  var result = 'rtmp://live.radiolynx.whispercast.ro/whispercast'+url;
  whispercast.log('MAPPED: '+result);
  return result;
}
