    //<![CDATA[

    var map;
    var marker_list=[];
    var txt_list=[];
    var marker_index=0;

    function load() {
      if (GBrowserIsCompatible()) {

        //地図を作成
        map = new GMap2(document.getElementById("gcourse01"));
        map.setCenter(new GLatLng(33.446661, 130.02845), 13);
		
		//マップコントローラを付ける
		map.addControl(new GMapTypeControl());
		map.addControl(new GLargeMapControl());
		
		
		//小さい地図を作成
        map2=new GOverviewMapControl(new GSize(80,80));
        map.addControl(map2);
		
		
		
		
		//ラインの設定
		var p1=new GLatLng(33.446661, 130.02845);
        var p2=new GLatLng(33.434221, 130.023081);
		var p3=new GLatLng(33.438611, 130.030195);
		var p4=new GLatLng(33.453541, 129.978202);
		var p5=new GLatLng(33.429458, 130.024014);
		var p6=new GLatLng(33.417728, 130.086697);
		var p7=new GLatLng(33.438125, 130.031826);

        var points=[];
        points.push(p1);
        points.push(p2);
		points.push(p3);
		points.push(p4);
		points.push(p5);
		points.push(p6);
		points.push(p7);
		

        //直線の描画
        line = new GPolyline(points, "#FF0000", 2);
        map.addOverlay(line);

		
		
		//虹の松原
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>虹の松原（9:00～11:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/nijinomatubara.jpg'/></p><p>【住所】唐津市東唐津<br />【TEL】0955-72-9127<br />【料金】無料<br />【休み】無休</p><div class='clear'><hr /></div></div>あなたのまだ知らない美しい佐賀が唐津にありました</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.446661, 130.02845),txt);
		
		//ぽんぽこ村
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>ぽんぽこ村（11:10～12:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/popokomura.jpg'/></p><p>【住所】佐賀県唐津市浜玉町浜崎鏡山中腹<br />【TEL】0955-56-8580<br />【料金】大人:500円　子供:300円<br />【休み】無休</p><div class='clear'><hr /></div></div>玄海灘をバックにゆったり、のんびりの時間をすごす…</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.434221, 130.023081),txt);
		
		//おさかな村
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>おさかな村（12:10～14:00【昼食】）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/osakanamura.jpg'/></p><p>【住所】佐賀県唐津市浜玉町浜崎1922 <br />【TEL】0955-56-2200<br />【料金】入場無料<br />【休み】無休</p><div class='clear'><hr /></div></div>沢山の新鮮なお魚を販売。新鮮な魚は一味違う</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.438611, 130.030195),txt);
		
		//唐津城
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>唐津城（14:10～16:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/karatujyou.jpg'/></p><p>【住所】佐賀県唐津市東城内8-1<br />【TEL】0955-72-5697<br />【料金】大人:400円　小人:200円 <br />【休み】12月29日～12月31日</p><div class='clear'><hr /></div></div>玄界灘に臨む要衝の地に７年がかりで築かれた城</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.453541, 129.978202),txt);
		
		//鏡山
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>鏡山（16:10～17:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/kagamiyama.jpg'/></p><p>【住所】唐津市東部<br />【TEL】0955-72-9250<br />【料金】無料<br />【休み】無休</p><div class='clear'><hr /></div></div>眼下の虹の松原と唐津湾を一望できる絶景を堪能！</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.429458, 130.024014),txt);
		
		//猪堀の滝
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>猪堀の滝（17:10～18:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/inohorinotaki.jpg'/></p><p>【住所】佐賀県唐津市浜玉町平原<br />【TEL】0955-70-5824<br />【料金】無料<br />【休み】無休</p><div class='clear'><hr /></div></div>森林浴の森100選に選ばれている名滝を是非ごらんください</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.417728, 130.086697),txt);
		
		//漁師村
        var txt="<div style='width:300px;'><h3 class='cou_syotitle'>漁師村（18:10～19:00【夕食】）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/ryoushimura.jpg'/></p><p>【住所】佐賀県唐津市浜玉町浜崎1091-2<br />【TEL】0955-70-5115<br />【料金】平均予算額:2300円<br />【休み】無休</p><div class='clear'><hr /></div></div>唐津といえば鮮魚。一日の最後は魚料理を堪能しるしかない！</div>";
        txt_list.push(txt);
        addMarker(new GLatLng(33.438125, 130.031826),txt);
		
		
		
		
/*画像の編集部分************************************************************/

//オリジナルマーカーの画像を作成
var icon = new GIcon();
icon.image = "img/map_icon.png";
icon.iconSize = new GSize(80, 41);
icon.iconAnchor = new GPoint(20, 41);
icon.infoWindowAnchor = new GPoint(18, 11);


//ぽんぽこ村
var marker1001 = new GMarker(new GLatLng(33.446661, 130.02845),icon);
GEvent.addListener(marker1001, "click", function() {    
marker1001.openInfoWindowHtml("<div style='width:300px;'><h3 class='cou_syotitle'>虹の松原（9:00～11:00）</h3><div class='cou_syomain'><p class='cou_syoimg' style='margin-right:5px;'><img src='img/drive/th/nijinomatubara.jpg'/></p><p>【住所】唐津市東唐津<br />【TEL】0955-72-9127<br />【料金】無料<br />【休み】無休</p><div class='clear'><hr /></div></div>あなたのまだ知らない美しい佐賀が唐津にありました</div>");});

//マーカーを地図上に配置
map.addOverlay(marker1001);
GEvent.trigger(marker1001,"click");
/*画像の編集部分************************************************************/

      }
    }
    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;
