    //<![CDATA[

    var map;
    var marker_list=[];
    var txt_list=[];
    var marker_index=0;

    function load() {
      if (GBrowserIsCompatible()) {

        //地図を作成
        map = new GMap2(document.getElementById("hanameguri_gmap"));
        map.setCenter(new GLatLng(33.450174, 129.968134), 9);
		
		//マップコントローラを付ける
		map.addControl(new GMapTypeControl());
		map.addControl(new GLargeMapControl());
		
		
		//小さい地図を作成
        map2=new GOverviewMapControl(new GSize(80,80));
        map.addControl(map2);
		

		
		
        //唐津城
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>唐津城</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/kankou/karatujyou_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br />【4月中旬～5月上旬】<br />「藤の花」が見ごろです。<br /><a href='#list1'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.453549, 129.978204),txt);
		
		//名護屋城跡
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>名護屋城跡</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/nagoyajyou01_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br /><a href='#list2'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.530044, 129.869369),txt);
		
		//小城公園
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>小城公園</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/oshirokouen01_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br /><a href='#list3'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.289149, 130.196684),txt);
		
		//鹿島城跡
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>鹿島城跡</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/kashimajyouseki01_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br /><a href='#list4'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.102799, 130.093341),txt);
		
		//旭ヶ岡公園
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>旭ヶ岡公園</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/asahigaokakouen01_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br /><a href='#list5'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.103957, 130.093789),txt);
		
		//伊万里明星桜
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>伊万里明星桜</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/myoujyousakura01_th.jpg' style='width: 70px;'/></p><p>【3月中旬】<br />「桜」が見ごろです。<br /><a href='#list6'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.273186, 129.834412),txt);
		
		//御船山楽園
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>御船山楽園</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/mifuneyamarakuen01_th.jpg' style='width: 70px;'/></p><p>【4月中旬～5月上旬】<br />「藤の花」が見ごろです。<br />【4月上旬～5月上旬】<br />「ツツジ」が見ごろです。<br /><a href='#list7'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.181722, 130.017134),txt);
		
		//祐徳稲荷神社
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>祐徳稲荷神社</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/yuutokuinari01_th.jpg' style='width: 70px;'/></p><p>【4月中旬～5月上旬】<br />「藤の花」が見ごろです。<br />【4月上旬～5月上旬】<br />「ツツジ」が見ごろです。<br /><a href='#list8'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.073899, 130.107712),txt);
		
		//ぼたんと緑の丘
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>ぼたんと緑の丘</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/botantomidorinooka01_th.jpg' style='width: 70px;'/></p><p>【4月中旬～5月上旬】<br />「ボタン」が見ごろです。<br />【5月中旬～5月下旬】<br />「シャクヤク」が見ごろです。<br /><a href='#list9'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.424916, 129.877412),txt);
		
		//大興善寺
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>大興善寺</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/tsutsujidera01_th.jpg' style='width: 70px;'/></p><p>【4月上旬～5月上旬】<br />「ツツジ」が見ごろです。<br /><a href='#list10'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.429153, 130.496218),txt);
		
		//歌垣公園
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>歌垣公園</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/hanameguri/utagakikouen01_th.jpg' style='width: 70px;'/></p><p>【4月上旬～5月上旬】<br />「ツツジ」が見ごろです。<br /><a href='#list11'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.177615, 130.077031),txt);
		
		//見帰りの滝
        var txt="<div style='width:250px;'><h3 class='cou_syotitle' style='margin-bottom: 5px;'>見帰りの滝</h3><p class='cou_syoimg' style='margin-right:5px;'><img src='img/kankou/mikaerinotaki_th.jpg' style='width: 70px;'/></p><p>【6月上旬～7月上旬】<br />「紫陽花」が見ごろです。<br /><a href='#list12'>≫詳細を見る</a></p></div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.367507, 130.039249),txt);
		
		
		

      }
    }
    function addMarker(latlng,txt){
        //マーカーを作成
        var marker = new GMarker(latlng);
        marker.title=marker_index;   //ここで設定した「title属性」が
        
        GEvent.addListener(marker, "click", function() {
            clickMarker(marker.title);   //ここで表示される(マーカの「title属性」に表示する文字を記憶させる)
        });
        
        //マーカーのコンストラクタを配列に記憶
        marker_list.push(marker);
        marker_index++;
        
        //マーカーを地図上に配置
        map.addOverlay(marker);

    }
    function clickMarker(index){
        //吹き出しを表示する
        marker_list[index].openInfoWindowHtml(txt_list[index]);
    }
    //]]>


onload   = load;
onunload = GUnload;
