google.load("search", "1", {'language': 'nl'});

function OnLoad() {
  var searchControl = new google.search.SearchControl();

  var searcherOptions = new google.search.SearcherOptions();
  searcherOptions.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
  //searcherOptions.setRoot(searchForm);

  // Add in a full set of searchers
  var siteSearch = new google.search.WebSearch();
  siteSearch.setUserDefinedLabel('Re-integratienieuws.nl');
  siteSearch.setSiteRestriction('re-integratienieuws.nl');
  siteSearch.setRestriction(GSearch.RESTRICT_SAFESEARCH,
                            GSearch.SAFESEARCH_OFF);
  searchControl.addSearcher(siteSearch, searcherOptions);

  searchControl.setResultSetSize(GSearch.SMALL_RESULTSET);
  searchControl.setNoResultsString('Geen pagina&rsquo;s gevonden.');
  searchControl.setLinkTarget(GSearch.LINK_TARGET_SELF);

  var drawOptions = new google.search.DrawOptions();

  // Tell the searcher to draw itself and tell it where to attach
  searchControl.draw(document.getElementById('search'), drawOptions);

  var input = document.getElementsByTagName('input')[0];
  input.value = 'zoeken';
  input.onfocus = input.select;
}
google.setOnLoadCallback(OnLoad);

