whispercast.local.static.url = {
};
whispercast.local.static.s_cookie_id = 'stored';
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://86.55.1.62/whispercast',
  // obsolete, need to keep this some time...
  '/shows' : 'rtmp://86.55.1.62/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;
}
