google.load("search", "1");

function OnLoad()
{

    var options = new google.search.SearcherOptions();
    options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);
    options.setRoot(document.getElementById("searchResults"));

    // Create a search control
    var searchControl = new google.search.SearchControl();
    var webSearch = new google.search.WebSearch();
    webSearch.setSiteRestriction('meria.sumy.ua');

    searchControl.addSearcher(webSearch,options);

    // Tell the searcher to draw itself and tell it where to attach
    searchControl.draw(document.getElementById("searchPlaceHolder"));

    // Execute an inital search
    searchControl.execute("Google");

}
google.setOnLoadCallback(OnLoad);
