//<![CDATA[

    var map;
    var marker_list=[];
    var txt_list=[];

    function load() {
      if (GBrowserIsCompatible()) {

        //地図を作成
        map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(36.168489, 137.952232), 14);
		
		//マップコントローラを付ける
		map.addControl(new GLargeMapControl());
		
		//マップタイプコントローラを追加する
		map.addControl(new GMapTypeControl());

		//スケールコントローラ(尺度定規)を付ける
		map.addControl(new GScaleControl());

        //マーカを作成0
        var txt="Kリゾート<br />長野県松本市芳川村井町220-8";
        txt_list.push(txt);
        addMarker(new GLatLng(36.171721, 137.949338),txt);

        //マーカを作成1
        txt="シンデレラリバティ<br />長野県松本市芳川村井町220-82";
        txt_list.push(txt);
        addMarker(new GLatLng(36.171293, 137.948741),txt);

        //マーカを作成2
        txt="プリンセスプリンセス<br />長野県松本市芳川村井町220-433";
        txt_list.push(txt);
        addMarker(new GLatLng(36.173113, 137.955002),txt);

        //マーカを作成3
        txt="ラフォーレ<br />長野県塩尻市広丘吉田409";
        txt_list.push(txt);
        addMarker(new GLatLng(36.169199, 137.949097),txt);

        //マーカを作成4
        txt="リッツラフォーレ<br />長野県塩尻市広丘吉田409-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.168821, 137.948914),txt);

        //マーカを作成5
        txt="ラフォーレMORE<br />長野県塩尻市広丘吉田409-5";
        txt_list.push(txt);
        addMarker(new GLatLng(36.169557, 137.949364),txt);

        //マーカを作成6
        txt="フィオナ<br />長野県松本市芳川村井町1325-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.177601, 137.966581),txt);

        //マーカを作成7
        txt="サプライズ<br />長野県松本市神田2-4-2";
        txt_list.push(txt);
        addMarker(new GLatLng(36.216511, 137.992958),txt);

        //マーカを作成8
        txt="プラザホテル<br />長野県松本市中央2-3-4";
        txt_list.push(txt);
        addMarker(new GLatLng(36.233555, 137.968954),txt);

        //マーカを作成9
        txt="ホテルhana<br />長野県松本市大村73-3";
        txt_list.push(txt);
        addMarker(new GLatLng(36.253018, 137.99174),txt);

        //マーカを作成10
        txt="キャッスル<br />長野県松本市大村72-2";
        txt_list.push(txt);
        addMarker(new GLatLng(36.252532, 137.99212),txt);

        //マーカを作成11
        txt="MONROE<br />長野県松本市大村64-2";
        txt_list.push(txt);
        addMarker(new GLatLng(36.253279, 137.992223),txt);

        //マーカを作成12
        txt="ラブ・ウォーズ<br />長野県松本市大村64-9";
        txt_list.push(txt);
        addMarker(new GLatLng(36.253065, 137.992087),txt);

        //マーカを作成13
        txt="志摩<br />長野県松本市里山辺4628";
        txt_list.push(txt);
        addMarker(new GLatLng(36.229096, 138.003853),txt);

        //マーカを作成14
        txt="むぎ<br />長野県松本市入山辺13";
        txt_list.push(txt);
        addMarker(new GLatLng(36.230174, 138.010008),txt);

        //マーカを作成15
        txt="離宮<br />長野県松本市惣社2－556";
        txt_list.push(txt);
        addMarker(new GLatLng(36.23727, 137.991276),txt);

        //マーカを作成16
        txt="クラウン<br />長野県塩尻市大字片丘南内田3635-3";
        txt_list.push(txt);
        addMarker(new GLatLng(36.152153,138.004088),txt);

        //マーカを作成17
        txt="ベルサイユ<br />長野県塩尻市広丘野村1069-3";
        txt_list.push(txt);
        addMarker(new GLatLng(36.142258, 137.953298),txt);

        //マーカを作成18
        txt="AtoZ<br />長野県安曇野市豊科高家3792-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.299982, 137.927465),txt);

        //マーカを作成19
        txt="AtoZ ANEX<br />長野県安曇野市豊科高家3792-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.29978, 137.927425),txt);

        //マーカを作成20
        txt="COCOクラブ<br />長野県安曇野市豊科高家3792-3";
        txt_list.push(txt);
        addMarker(new GLatLng(36.299524, 137.927302),txt);

        //マーカを作成21
        txt="アストロG<br />長野県安曇野市豊科田沢4790-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.308829, 137.936076),txt);

        //マーカを作成22
        txt="ポエム<br />長野県安曇野市豊科高家5211";
        txt_list.push(txt);
        addMarker(new GLatLng(36.253343, 137.92106),txt);

        //マーカを作成23
        txt="ホルン<br />長野県安曇野市三郷温6558-1";
        txt_list.push(txt);
        addMarker(new GLatLng(36.251031, 137.896084),txt);

        //マーカを作成24
        txt="サプライズランド<br />長野県諏訪市沖田町2-13-2";
        txt_list.push(txt);
        addMarker(new GLatLng(36.006446, 138.133547),txt);

        //マーカを作成25
        txt="ゆうYOU遊<br />長野県諏訪市大字中洲5893";
        txt_list.push(txt);
        addMarker(new GLatLng(36.008268, 138.129234),txt);

        //マーカを作成26
        txt="PATIO<br />長野県諏訪市大字中洲5896";
        txt_list.push(txt);
        addMarker(new GLatLng(36.008474, 138.129181),txt);

        //マーカを作成27
        txt="HEIAN<br />長野県諏訪市大字中洲5889";
        txt_list.push(txt);
        addMarker(new GLatLng(36.008357, 138.128856),txt);
		
		 //マーカを作成28
        txt="ザ・リゾート<br />長野県塩尻市広丘吉田401-30";
        txt_list.push(txt);
        addMarker(new GLatLng(36.170704, 137.953199),txt);

      }
    }

    function addMarker(latlng,txt){
        //マーカーを作成
        var marker = new GMarker(latlng);

        GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml(txt);
        });

        //マーカーのコンストラクタを配列に記憶
        marker_list.push(marker);
        
        //マーカーを地図上に配置
        map.addOverlay(marker);
    }
    function clickMarker(index){
        //吹き出しを表示する
        marker_list[index].openInfoWindowHtml(txt_list[index]);
    }
//]]>
