
google.load('search', '1.0');


function OnLoad() {
  // Create a search control

  var searchControl = new google.search.SearchControl();

  // Add in a full set of searchers
  //var localSearch = new google.search.LocalSearch();
  //searchControl.addSearcher(localSearch);
  var webSearch = new google.search.WebSearch();
  webSearch.setSiteRestriction("rove.com");
  searchControl.addSearcher(webSearch);
  
  var drawOptions = new google.search.DrawOptions();
  drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
  
  //var imageSearch = new google.search.ImageSearch()
  //imageSearch.setSiteRestriction("rove.com");
  //searchControl.addSearcher(imageSearch);

  // Set the Local Search center point
  //localSearch.setCenterPoint("New York, NY");

  // tell the searcher to draw itself and tell it where to attach
  searchControl.draw(document.getElementById("searchcontrol"), drawOptions);
  searchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
  searchControl.execute("");
}

google.setOnLoadCallback(OnLoad, true);
