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


function OnLoad(query) {

     // Create a search control
      var searchControl = new google.search.SearchControl();

	var closed = new google.search.SearcherOptions();
	closed.setExpandMode(google.search.SearchControl.EXPAND_MODE_CLOSED);

	var open = new google.search.SearcherOptions();
	open.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);

      // Add in a full set of searchers

      searchControl.addSearcher(new google.search.BookSearch());
      searchControl.addSearcher(new google.search.ImageSearch());
      searchControl.addSearcher(new google.search.WebSearch(), closed);
      searchControl.addSearcher(new google.search.BlogSearch(), closed);

      // tell the searcher to draw itself and tell it where to attach
      searchControl.draw(document.getElementById("searchstuff"));

      // execute an inital search
      searchControl.execute(query);


      var NewsSearchControl = new google.search.SearchControl();
      var sNewsWeb = new GwebSearch();
      sNewsWeb.setSiteRestriction("012659748855401706242:joo4x7tczw8");
      sNewsWeb.setUserDefinedLabel("Featured travel sources");
      NewsSearchControl.addSearcher(sNewsWeb,open);

      // tell the searcher to draw itself and tell it where to attach
      NewsSearchControl.draw(document.getElementById("CustomNews"));

      // execute an inital search
      NewsSearchControl.execute(query);

      var GS = new GSearch;
      GSearch.getBranding(document.getElementById("CustomBrand"));
      GSearch.getBranding(document.getElementById("SearchBrand"));
    }
    
   // google.setOnLoadCallback(OnLoad, true);


 function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.style.color = "#000000";
         theText.value = "";
     }
 }



function allsearch(myDestination) {
     OnLoad(myDestination);

     var RB = document.getElementById("resultbox");
     RB.style.display="";

     var BB = document.getElementById("bgbox");
     BB.style.display="";

}

function sClose() {
     var RB = document.getElementById("resultbox");
     RB.style.display="none";
     var RB = document.getElementById("bgbox");
     RB.style.display="none";


}