﻿google.load('search', '1', {language : 'en', style : google.loader.themes.SHINY});

function gcse_inputFocus() {
document.getElementById('query-input').style['background'] = 'white url() no-repeat 0% 50%';
}

function gcse_inputBlur() {
var queryInput = document.getElementById('query-input');
if (!queryInput.value) {
  queryInput.style['background'] =
      'white url(http://www.google.com/coop/images/'
      + 'google_custom_search_watermark.gif) no-repeat 0% 50%';
}
}

function gcse_init() {
google.search.CustomSearchControl.attachAutoCompletion(
    '000234552868930316735:0gfecg3a_ve',
    document.getElementById('query-input'),
    'two-page-form');
gcse_inputBlur();
}


function gcse_submitQuery() {
window.location = '\searchresults.aspx?q='
    + encodeURIComponent(
        document.getElementById('query-input').value);
return false;
}

google.setOnLoadCallback(gcse_init);
