whispercast.local.static.url = {
};
whispercast.local.static.s_cookie_id = 'concert-online';
whispercast.local.static.p_cookie_id = 'whispercast';

whispercast.local.static.popup_id = 'stored';

whispercast.local.static.popup_width = 648;
whispercast.local.static.popup_height = 408;

whispercast.local.static.hosts = {
  '/stored' : 'rtmp://radiolynx.ro/whispercast',
  '/live' : 'rtmp://live.radiolynx.whispercast.ro/whispercast'
};

whispercast.local.mapURL = function(url) {
  var L = whispercast.local;

  var stream_uri = whispercast.uri.parse(url)
   if (stream_uri.protocol == '') {
    for (var prefix in L.static.hosts) {
      if (stream_uri.path.substr(0, prefix.length) == prefix) {
        url = L.static.hosts[prefix]+url;
        break;
      }
    }
  }
  return url;
}
