google.load("search", "1");

var searchControl;

function OnLoad() {

	searchControl = new google.search.SearchControl();
	var siteSearch = new GwebSearch();
	
	options = new GsearcherOptions();
	options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
	searchControl.addSearcher(siteSearch, options);
	searchControl.setSearchCompleteCallback(this, setGoogleEvents);

	//siteSearch.setSiteRestriction(lang+".wikipedia.org");
	searchControl.draw(document.getElementById("searchcontrol"));

	$(".gsc-search-box:first").hide();
}

google.setOnLoadCallback(OnLoad);