if (top != window && !document.location.search.match(/fairplayer/)){
  window.addEvent('domready', function(){
    var content = $('content-frame', false);
    if (content) document.location = content.src;
  });
} else {
  var Fair = {
    Top: document,
    Content: window,
    frameset: true,
    loadContent: function(source){
      var content = $('content-frame', false);
      if (content) content.src = source;
    },
    loadFeed: function(source){
      if (!this.Player || !this.Player.preload_feed) return;
      this.Player.preload_feed(source || this.Params.feed);
    }
  };
}
