	function OnLoad() {
	    wmSemantic.init();
	    // Create a search control
	    var searchControl = new google.search.SearchControl();
            var searchObject = new google.search.WebSearch();
		searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
	    searchControl.addSearcher(searchObject);
	    // tell the searcher to draw itself and tell it where to attach
	    var drawOptions = new google.search.DrawOptions();
	    drawOptions.setDrawMode(google.search.SearchControl.DRAW_MODE_TABBED);
	    searchControl.draw(wmGetElementById(document, "searchFormContainer", 'div'), drawOptions);
	    searchControl.setSearchStartingCallback(this, wmGooglePlatformUtils.saveQuery);
            searchControl.setSearchCompleteCallback(this, wmGooglePlatformUtils.startSearch);
            var query_div = wmGetElementById(document, 'query_div', 'div');
            if (query_div.innerHTML) {
                wmSemantic.lastsearch = query_div.innerHTML;
                searchObject.execute(query_div.innerHTML);
            }
	}

	google.setOnLoadCallback(OnLoad);
	google.load('search', '1', {"nocss" : true});
