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

      // Call this function when the page has been loaded
      function initialize() {
        var searchControl = new google.search.SearchControl();


var siteSearch = new GwebSearch();
siteSearch.setUserDefinedLabel("星降る内検索結果");
siteSearch.setUserDefinedClassSuffix("siteSearch");
siteSearch.setSiteRestriction("http://hoshifuru.jp/");
searchControl.addSearcher(siteSearch);

       searchControl.addSearcher(new google.search.WebSearch());
       searchControl.addSearcher(new google.search.NewsSearch());
       searchControl.addSearcher(new google.search.VideoSearch());
//        searchControl.draw(document.getElementById("searchcontrol"));


var drawOptions = new GdrawOptions();
drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);
searchControl.draw(document.getElementById("searchcontrol"), drawOptions);  
//searchControl.setLinkTarget(GSearch.LINK_TARGET_TOP);



      }

var cssString = "";
cssString += '<style type="text/css"/>';
cssString += '      div.gsc-control { width: auto; }';
cssString += '      table td { border: none; }';
cssString += '      table { border: none; }';
cssString += '</style>';
document.write(cssString);


      google.setOnLoadCallback(initialize);
