//google.load('search', '1');		//to nie jest potrzebne do prawidlowego dzialania

function OnLoad() {
	// create a search control
	var searchControl = new google.search.SearchControl();
	searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
	searchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);
	
	// create a draw options object so that we
	// can position the search form root
	var options = new google.search.DrawOptions();
	options.setSearchFormRoot(document.getElementById("menu-search"));
//	var sf = new google.search.SearchForm(true, document.getElementById("searcher_input"));
	
//	options.setInput(document.getElementById("searchbox_009468692882369916025:iilhq-yjngo"));		//nawet dziala...
	options.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
	
	// populate with searchers
	var webSearch = new google.search.WebSearch();
	webSearch.setSiteRestriction('003615745520646901065:2g3gkawzacw', 'laberg');
	webSearch.setUserDefinedLabel('Laberg');
	
	//default text
	var opt = new google.search.SearcherOptions();
	opt.setNoResultsString(google.search.SearchControl.NO_RESULTS_DEFAULT_STRING)		//dziala
	
	searchControl.addSearcher(webSearch, opt);
	
	searchControl.draw(document.getElementById("wyniki"), options);
//	searchControl.execute("e100");

//	$$('.gsc-search-box').addClass('schowane');
	$$('.gsc-search-box').remove();

}

google.setOnLoadCallback(OnLoad, true);

/*
function OnLoad() {ldelim}
	new CSEOverlay("009468692882369916025:iilhq-yjngo",
		document.getElementById("searchbox_009468692882369916025:iilhq-yjngo"),
		document.getElementById("results_009468692882369916025:iilhq-yjngo"));
}
GSearch.setOnLoadCallback(OnLoad, true);
*/