// JavaScript Document
var map;
var marker_list=[];
var txt_list=[];
var marker_index=0;

function load() {
if (GBrowserIsCompatible()) {

//　↓↓↓　地図を作成　↓↓↓
map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(35.711117, 139.796358), 15);
map.addControl(new GLargeMapControl3D());
//　↑↑↑　地図を作成ここまで　↑↑↑


//直線の描画
var p1=new GLatLng(35.711021,139.796341);
var p2=new GLatLng(35.714470,139.796707);
var p3=new GLatLng(35.714531,139.796234);
var p4=new GLatLng(35.714680,139.795639);
var p5=new GLatLng(35.714710,139.795212);
var p6=new GLatLng(35.714600,139.795227);
var p7=new GLatLng(35.714539,139.794876);
var p8=new GLatLng(35.714321,139.794922);
var p9=new GLatLng(35.714256,139.794586);
var p10=new GLatLng(35.714062,139.794174);
var p11=new GLatLng(35.714520,139.794052);
var p12=new GLatLng(35.714504,139.793732);
var p13=new GLatLng(35.714504,139.793381);
var p14=new GLatLng(35.714760,139.793396);
var p15=new GLatLng(35.714771,139.793335);
var p16=new GLatLng(35.714508,139.793335);
var p17=new GLatLng(35.714081,139.793304);
var p18=new GLatLng(35.713612,139.793259);
var p19=new GLatLng(35.713696,139.792892);
var p20=new GLatLng(35.713715,139.792557);
var p21=new GLatLng(35.713749,139.792282);
var p22=new GLatLng(35.713493,139.792221);
var p23=new GLatLng(35.713646,139.791504);
var p24=new GLatLng(35.712746,139.791321);
var p25=new GLatLng(35.711830,139.791138);
var p26=new GLatLng(35.711422,139.791000);
var p27=new GLatLng(35.711582,139.790176);
var p27=new GLatLng(35.711220,139.790085);
var p28=new GLatLng(35.710167,139.789825);
var p29=new GLatLng(35.709873,139.789719);
var p30=new GLatLng(35.709602,139.789703);

var points=[];
points.push(p1);points.push(p2);points.push(p3);points.push(p4);points.push(p5);points.push(p6);points.push(p7);points.push(p8);points.push(p9);points.push(p10);
points.push(p11);points.push(p12);points.push(p13);points.push(p14);points.push(p15);points.push(p16);points.push(p17);points.push(p18);points.push(p19);points.push(p20);
points.push(p21);points.push(p22);points.push(p23);points.push(p24);points.push(p25);points.push(p26);points.push(p27);points.push(p28);points.push(p29);points.push(p30);

line = new GPolyline(points, "#47c7bb", 4,1.0);
map.addOverlay(line);


//マーカーの描画
var txt="<img src='images/photo_course_rakugo_01.jpg' width='200' height='143'><br><a href='#01'>雷門</a>";
txt_list.push(txt);
addMarker01(new GLatLng(35.711105,139.796326),txt);

var txt="<img src='images/photo_course_rakugo_02.jpg' width='200' height='143'><br><a href='#02'>浅草寺</a>";
txt_list.push(txt);
addMarker02(new GLatLng(35.714771,139.796722),txt);

var txt="<img src='images/photo_course_rakugo_03.jpg' width='200' height='143'><br><a href='#03'>喜劇人の碑・映画弁士塚</a>";
txt_list.push(txt);
addMarker03(new GLatLng(35.714638,139.795258),txt);

var txt="<img src='images/photo_course_rakugo_04_01.jpg' width='200' height='143'><br><a href='#04'>木馬館・木馬亭</a>";
txt_list.push(txt);
addMarker04(new GLatLng(35.714409,139.794785),txt);

var txt="<img src='images/photo_course_rakugo_05.jpg' width='200' height='143'><br><a href='#05'>浅草演芸ホール・フランス座</a>";
txt_list.push(txt);
addMarker05(new GLatLng(35.713524,139.793060),txt);

var txt="<img src='images/photo_course_rakugo_06_01.jpg' width='200' height='143'><br><a href='#06'>国際通り</a>";
txt_list.push(txt);
addMarker06(new GLatLng(35.713531,139.792404),txt);

var txt="<img src='images/photo_course_rakugo_07.jpg' width='200' height='143'><br><a href='#07'>TEPCO（浅草文庫）</a>";
txt_list.push(txt);
addMarker07(new GLatLng(35.713680,139.791611),txt);

var txt="<img src='images/photo_course_rakugo_08_01.jpg' width='200' height='143'><br><a href='#08'>宗恩寺</a>";
txt_list.push(txt);
addMarker08(new GLatLng(35.711208,139.790222),txt);

var txt="<img src='images/photo_course_rakugo_09.jpg' width='150' height='211'><br><a href='#09'>はなし塚（本法寺）</a>";
txt_list.push(txt);
addMarker09(new GLatLng(35.709572,139.790054),txt);


}
}







function clickMarker(index){
    //吹き出しを表示する
    marker_list[index].openInfoWindowHtml(txt_list[index]);
}

