    var map = null;
    var geocoder = null;
    var marker2 = null;
    
    function createMarker(point, html, icon){
      var marker = new GMarker(point, icon);
      GEvent.addListener(marker, "mouseover", function() {
        marker.openInfoWindowHtml(html);
      });
      return marker;
    }

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        map.addControl(new GLargeMapControl());
        map.addControl(new GScaleControl());
        map.addControl(new GMapTypeControl());
	map.enableContinuousZoom();
	map.enableDoubleClickZoom();

        // GClientGeocoderを初期化
        geocoder = new GClientGeocoder();
        
        var center = new GLatLng(36.570622, 139.84497);
        map.setCenter(center, 10);

	icon = new GIcon();
	icon.image = '../img/marker.gif';
	icon.iconSize = new GSize( 25, 33 );	// 画像の大きさ
	icon.shadow = '../img/marker_shadow.png';
	icon.shadowSize = new GSize( 45, 29 );	// 影画像の大きさ
	icon.iconAnchor = new GPoint( 12, 32 );	// 画像の「基準点」
	icon.infoWindowAnchor = new GPoint( 12, 32 );	// 情報ウィンドウの基準点	
        var html; 
        var point;


                point = new GLatLng(36.537694,139.843286);
        html = '<center><strong><a href="http://www.u-41.co.jp/" target="_blank">（有）薄井工務店</a></strong><br>宇都宮市下砥上町１１９０-３<br>028-658-4413</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.560809,139.948653);
        html = '<center><strong><a href="http://www.watashou.com/" target="_blank">（株）渡商</a></strong><br>宇都宮市下平出町２３２８-１<br>028-661-1836</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.571257, 139.914584);
        html = '<center><strong><a href="http://www.next-home.co.jp/" target="_blank">ネキストホーム</a></strong><br>宇都宮市今泉町2995-1<br>0120-621-758</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.488497,139.8746);
        html = '<center><strong><a href="http://www.e-house.co.jp/kobayashi-mokuzaisangyo/" target="_blank">（有）小林木材産業</a></strong><br>宇都宮市雀の宮５-４-１５<br>028-653-0230</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.566714,139.946945);
        html = '<center><strong><a href="http://shino-g.com/" target="_blank">（株）シノザキ</a></strong><br>宇都宮市平出町１０９１<br>028-664-3311</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.602906,139.856604);
        html = '<center><strong><a href="http://www.e-house.co.jp/kobori-zaimokuten/" target="_blank">（有）小堀材木店</a></strong><br>宇都宮市宝木本町１１６６-２<br>028-665-0505</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.476868,139.873175);
        html = '<center><strong><a href="http://www.abe-kou.co.jp/" target="_blank">阿部興業（株）</a></strong><br>宇都宮市茂原２-１０-２４<br>028-655-1001</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.556814,139.932019);
        html = '<center><strong><a href="http://www.will-home.com/" target="_blank">（株）ウィルホーム</a></strong><br>宇都宮市陽東６-４-５<br>028-683-5545</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.770261,139.843179);
        html = '<center><strong><a href="http://www.e-house.co.jp/noguchikenchiku/" target="_blank">（株）野口建築工業</a></strong><br>塩谷郡塩谷町大字玉生１９４２-２<br>0287-45-0162</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.297635,139.68505);
        html = '<center><strong><a href="http://www.e-house.co.jp/homemade-moro/" target="_blank">（株）ホームメイド茂呂</a></strong><br>下都賀郡岩舟町曲ケ島１８０６-４<br>0282-55-8118</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.32935,139.694576);
        html = '<center><strong><a href="http://www.fujico.info/" target="_blank">フジコーポレーション（株）</a></strong><br>下都賀郡岩舟町静和１０-１<br>0282-55-7090</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.297635,139.68505);
        html = '<center><strong><a href="http://www.e-house.co.jp/moro-zaimokuten/" target="_blank">（有）茂呂材木店</a></strong><br>下都賀郡岩舟町大字曲ｹ島１８０６-４<br>0282-55-2754</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.307517,139.670063);
        html = '<center><strong><a href="http://www.e-house.co.jp/furusawa-komuten/" target="_blank">（有）古澤工務店</a></strong><br>下都賀郡岩舟町大字静３３５５-３<br>0282-55-2806</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.463349,139.826157);
        html = '<center><strong><a href="http://www.e-house.co.jp/satou-syouten/" target="_blank">（有）佐藤商店</a></strong><br>下都賀郡壬生町若草町１-３５<br>0282-86-1034</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.459525,139.838884);
        html = '<center><strong><a href="http://www.e-house.co.jp/masakiya-mokuzai/" target="_blank">正木屋木材（有）</a></strong><br>下都賀郡壬生町壬生丁１０-１１<br>0282-82-2862</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.452442,139.830954);
        html = '<center><strong>（株）ショールーム清水</strong><br>下都賀郡壬生町壬生丁４４-２<br>0282-82-5215</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.436735,139.912754);
        html = '<center><strong><a href="http://www.suzukiya-mokuzai.co.jp/" target="_blank">（株）鈴木屋木材</a></strong><br>河内郡上三川町大字上三川４９９２<br>0285-56-2572</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.458772,139.935537);
        html = '<center><strong>（株）加藤工務店</strong><br>河内郡上三川町東蓼沼２７５<br>0285-56-7653</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.310675,139.591893);
        html = '<center><strong><a href="http://www.mikamonoie.com/" target="_blank">栃木県木造住宅協同組合</a></strong><br>佐野市浅沼町８０６<br>0283-21-5757</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.313119,139.592731);
        html = '<center><strong><a href="http://www.contihome.com/" target="_blank">（株）ナムラ</a></strong><br>佐野市浅沼町８９８<br>0283-24-2211</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.55899,139.766056);
        html = '<center><strong><a href="http://www.ikhome.co.jp/" target="_blank">（株）ＩＫホーム</a></strong><br>鹿沼市貝島町５８１-４<br>0289-65-5555</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.470429,139.742394);
        html = '<center><strong>（株）木の花ホーム</strong><br>上都賀郡西方町本城６２-３<br>0282-92-0198</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.402224,139.974919);
        html = '<center><strong><a href="http://www.e-house.co.jp/hayashi-zaimokuten/" target="_blank">（株）林材木店</a></strong><br>真岡市寺内１４３１<br>0285-82-2685</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.378232,139.368822);
        html = '<center><strong><a href="http://www.e-house.co.jp/fukuda/" target="_blank">（株）フクダ</a></strong><br>足利市小俣町８２５<br>0284-62-0071</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.873439,140.01576);
        html = '<center><strong><a href="http://www.ha-juken.co.jp/" target="_blank">（有）住研</a></strong><br>大田原市紫塚１-３-２６<br>0287-23-7588</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.377809,139.742756);
        html = '<center><strong><a href="http://www.kiyota-house.jp/" target="_blank">（株）キヨタハウズ</a></strong><br>栃木市神田町２-８<br>0282-22-0905</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.398056,139.732513);
        html = '<center><strong><a href="http://www.cc9.ne.jp/~opus-tochigi/" target="_blank">（株）オーパス栃木</a></strong><br>栃木市箱森町５３-４０<br>0282-23-1900</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.386997,139.740105);
        html = '<center><strong><a href="http://www.next-one-net.co.jp/" target="_blank">（有）ネクストワン</a></strong><br>栃木市平柳町１-２-２３<br>0282-22-8001</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.398645,139.721953);
        html = '<center><strong><a href="http://www.re-colors.com/" target="_blank">（株）カラーズ</a></strong><br>栃木市野中町１３８２-２<br>0282-20-1105</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.955901,140.035206);
        html = '<center><strong><a href="http://www.tamura-k.co.jp/" target="_blank">田村建設（株）</a></strong><br>那須塩原市上厚崎４３５-６<br>0287-62-3574</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.995977,140.019879);
        html = '<center><strong><a href="http://www.mm-koumuten.com/" target="_blank">（有）室井美好工務店</a></strong><br>那須塩原市東原３-１６６<br>0287-62-3658</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.889767,139.989413);
        html = '<center><strong><a href="http://www.sougokikaku.co.jp/" target="_blank">（株）相互企画</a></strong><br>那須塩原市南郷屋４-１６-１<br>0287-36-3925</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.376838,139.970206);
        html = '<center><strong>（株）柴材木店</strong><br>真岡市久下田８５６<br>0285-74-0014</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.377279,139.969193);
        html = '<center><strong><a href="http://www.e-house.co.jp/kikuya-kensetsu/" target="_blank">菊屋建設（株）</a></strong><br>真岡市久下田９２４<br>0285-74-0057</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.377279,139.969193);
        html = '<center><strong><a href="http://www.e-house.co.jp/kikuya-kensetsu/" target="_blank">（有）菊屋材木店</a></strong><br>真岡市久下田９２４<br>0285-74-0057</center>';
        map.addOverlay(createMarker(point, html, icon));
		

                point = new GLatLng(36.748347,139.95141);
        html = '<center><strong><a href="http://www.e-house.co.jp/tanaka-mokuzaikenchiku/" target="_blank">田中木材建築（有）</a></strong><br>矢板市乙畑１４６０<br>0287-48-0504</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.603434,139.849713);
        html = '<center><strong>（有）大沢建築</a></strong><br>宇都宮市宝木本町１２３８-１２<br>028-665-5906</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.794165,140.125166);
        html = '<center><strong><a href="http://www.e-house.co.jp/gunji/" target="_blank">(有)郡司工務店</a></strong><br>大田原市佐良土１４５５<br>0287-98-3022</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.524144,139.99627);
        html = '<center><strong><a href="http://www.e-house.co.jp/fkd/" target="_blank">（株）エフケーディービルディング</a></strong><br>宇都宮市氷室町１５６５-９<br>028-667-0120</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.969634,140.055451);
        html = '<center><strong>(有)SCB</strong><br>那須塩原市黒磯幸町６-１７<br>0287-62-0350</center>';
        map.addOverlay(createMarker(point, html, icon));
		
		
                point = new GLatLng(36.477165,139.87235);
        html = '<center><strong>天空ホールディングス（株）</strong><br>宇都宮市茂原２－３－５<br>028-666-0512</center>';
        map.addOverlay(createMarker(point, html, icon));	
		
                point = new GLatLng(36.432771,139.913365);
        html = '<center><strong><a href="http://www.k2-homes.com/hp/sato-wood/" target="_blank">(株)佐藤材木店</a></strong><br>河内郡上三川町上三川４９５７<br>0285-56-2068</center>';
        map.addOverlay(createMarker(point, html, icon));	
		

                point = new GLatLng(36.318515,139.461273);
        html = '<center><strong><a href="http://www.watv.ne.jp/~fukujuu/" target="_blank">(有)福富住宅</a></strong><br>足利市福富町2011<br>0284(71)0654</center>';
        map.addOverlay(createMarker(point, html, icon));		
		
                point = new GLatLng(36.32782145035119,139.86848026514053);
        html = '<center><strong><a href="http://www.shima-ken.com" target="_blank">（有）シマ建築設計</a></strong><br>小山市萱橋1167-1<br>0285(49)3655</center>';
        map.addOverlay(createMarker(point, html, icon));		

                point = new GLatLng(36.570597,139.894111);
        html = '<center><strong><a href="http://www.tokenhouse.jp/" target="_blank">東建ハウス（株）</a></strong><br>宇都宮市錦２丁目１-１６<br>028(643)3577</center>';
        map.addOverlay(createMarker(point, html, icon));

                point = new GLatLng(36.51538,139.844626);
        html = '<center><strong><a href="http://www.miyashin-h.net/" target="_blank">（有）ミヤシンホーム</a></strong><br>宇都宮市西川田本町３丁目１番８号<br>028(658)4600</center>';
        map.addOverlay(createMarker(point, html, icon));


              }
    }
    
    function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              if(marker2 != null){
	              map.removeOverlay(marker2);
              }
				var icon = new GIcon();
				icon.image = "../img/aicon_map.gif";  //アイコン画
				icon.shadow = "../img/aicon_map.gif"; //影の画
				icon.iconSize = new GSize(36, 36);    //アイコンサイズ
				icon.shadowSize = new GSize(36, 36); //影のサイズ
				icon.iconAnchor = new GPoint(18, 36);
				icon.infoWindowAnchor = new GPoint(18, 0);
				var markeropts = new Object();
				markeropts.icon = icon;
              
              map.setCenter(point, 13);
              marker2 = new GMarker(point, icon);
              map.addOverlay(marker2);
              marker2.openInfoWindowHtml(address);
            }
          }
        );
      }
    }
