
google.load('search', '1', {language : 'ja'});
 
function inputFocus() {
	document.getElementById('query-input').style['background'] = '';
}
 
function 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 init() {
	google.search.CustomSearchControl.attachAutoCompletion(
	'003721020497167033801:h3j3dpwgmju',
	document.getElementById('query-input'),
	'serch');
	inputBlur();
}
 
function submitQuery() {
	window.location = '/search/index.html?q='
	+ encodeURIComponent(
	document.getElementById('query-input').value);
	return false;
}
 
google.setOnLoadCallback(init);
