function gOnLoad() {
    // Branding
    GSearch.getBranding(document.getElementById("branding"));

    var searchControl = new GSearchControl();
    searchControl.setResultSetSize(GSearch.LARGE_RESULTSET);

    // add local only seacher 
    var siteSearch = new GwebSearch();
    siteSearch.setUserDefinedLabel("Search result:");
    siteSearch.setUserDefinedClassSuffix("siteSearch");
    siteSearch.setSiteRestriction("www.sippysoft.com");
    
    // Show all results
    var options = new GsearcherOptions();
    options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
    searchControl.addSearcher(siteSearch, options);

    // set search input element
    var searchInputElement = document.getElementById("gsInput");
    var drawOptions = new GdrawOptions();
    drawOptions.setInput(searchInputElement);
    
    searchControl.draw(document.getElementById("searchcontrol"), drawOptions);
    //Execute an inital search
//    searchControl.execute("VoIP Products");
    searchControl.execute();
}

GSearch.setOnLoadCallback(gOnLoad);
