
    google.load('search', '1', {"language" : "fr"});
    
    function OnLoad() {
      // Dynamically load CSS to override defaults
      var css = document.createElement('link');
      css.href = '../../css/gsearch_green.css';
      css.type = 'text/css';
      css.rel = 'stylesheet';
      document.getElementsByTagName('head')[0].appendChild(css);
      
      // Create a search control
      var searchControl = new google.search.SearchControl();
      
      var options = new google.search.SearcherOptions();
      options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
      
      // site restricted web search with custom label
      // and class suffix
      
      searchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
      searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
      
      var siteSearch = new google.search.WebSearch();
      siteSearch.setUserDefinedLabel("portailalbert.info");
      siteSearch.setUserDefinedClassSuffix("siteSearch");
      siteSearch.setSiteRestriction("portailalbert.info");
      searchControl.addSearcher(siteSearch, options);

      // Establish a keep callback
      searchControl.setOnKeepCallback(null, DummyClipSearchResult);

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

    }

    
    function DummyClipSearchResult(result) {}

    google.setOnLoadCallback(OnLoad, true);
    
    function searchGoogle() {

      // execute an inital search
      searchControl.execute("albert");    
    }

	var FocusFlag = false;

	function inputFocus() {

		if (FocusFlag == false) {
            var el = document.getElementById( "data" );
            el.style.display = "none";
            var el = document.getElementById( "searchcontrol" );
            el.style.display = "block";
		}

		FocusFlag = true;
        
        // searchGoogle();
	}

    function logoClick() {
        document.location.href='';
    }
