      google.load('search', '1');

      function inputFocus() {
        document.getElementById('query-input').style['background'] =
              'white url(images/'
              + 'searchw.gif) no-repeat 0% 50%';
      }

      function inputBlur() {
        var queryInput = document.getElementById('query-input');
        /*if (!queryInput.value) {
          queryInput.style['background'] =
              'black url(images/'
              + 'search.gif) no-repeat 0% 50%';
        }*/
		if (!queryInput.value) {
          queryInput.style['background'] =
              '#999999 url(images/'
              + 'search_icon.gif) no-repeat 0% 0px';
        }
		/*if(this.value!=''){this.value=''};*/
      }

      function init() {
        google.search.CustomSearchControl.attachAutoCompletion(
            '003383011275837313788:fbsfgyl86aq',
            document.getElementById('query-input'),
            'two-page-form');
        inputBlur();
      }

      function submitQuery() {
        window.location = 'search.php?q='
            + encodeURIComponent(
                document.getElementById('query-input').value);
        return false;
      }

      google.setOnLoadCallback(init);
