GSnewsBar.prototype.buildSearchControl = function() {
  this.ns = new GnewsSearch();
  this.ns.setResultOrder(GSearch.ORDER_BY_DATE);
  this.ns.setResultSetSize(this.resultSetSize);
  this.ns.setLinkTarget(this.linkTarget);
  this.ns.setSearchCompleteCallback(this, GSnewsBar.prototype.searchComplete, [true]);

  this.nsBypass = new GnewsSearch();
  this.nsBypass.setResultSetSize(this.resultSetSize);
  this.nsBypass.setLinkTarget(this.linkTarget);
  this.nsBypass.setSearchCompleteCallback(this, GSnewsBar.prototype.searchComplete, [false]);
}

/**
 * LoadNewsBar: Called when page loads
 *
 * Create a manually switched News Bar
 * and place it in "newsBarTop"
 */
function LoadNewsBar() {
  var root = document.getElementById("news_bar");
  var options = {
      largeResultSet : false,
      resultStyle : GSnewsBar.RESULT_STYLE_COMPRESSED,
      linkTarget : GSearch.LINK_TARGET_BLANK,
      title : " ",
      autoExecuteList : {
        cycleTime : GSnewsBar.CYCLE_TIME_SHORT,
        executeList : [ "H" ]
        }
      };
  var news_bar = new GSnewsBar(root, options);
}

/**
 * Arrange for LoadNewsBar to run once the page loads.
 */
GSearch.setOnLoadCallback(LoadNewsBar);


