// 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.713408,139.795618), 16);
map.addControl(new GLargeMapControl3D());
//　↑↑↑　地図を作成ここまで　↑↑↑


//直線の描画
var p1=new GLatLng(35.711044,139.796341);
var p2=new GLatLng(35.711823,139.796448);
var p3=new GLatLng(35.711803,139.796631);
var p4=new GLatLng(35.711773,139.796814);
var p5=new GLatLng(35.711811,139.796814);
var p6=new GLatLng(35.711842,139.796631);
var p7=new GLatLng(35.711861,139.796448);
var p8=new GLatLng(35.711872,139.796326);
var p9=new GLatLng(35.711964,139.795563);
var p10=new GLatLng(35.712250,139.795624);
var p11=new GLatLng(35.712158,139.796356);
var p12=new GLatLng(35.712151,139.796478);
var p13=new GLatLng(35.714485,139.796707);
var p14=new GLatLng(35.714462,139.796799);
var p15=new GLatLng(35.714451,139.796890);
var p16=new GLatLng(35.714439,139.797012);
var p17=new GLatLng(35.714462,139.797134);
var p18=new GLatLng(35.714443,139.797348);
var p19=new GLatLng(35.714909,139.797409);
var p20=new GLatLng(35.714897,139.797501);
var p21=new GLatLng(35.714981,139.797714);
var p22=new GLatLng(35.715160,139.797791);
var p23=new GLatLng(35.715260,139.797760);
var p24=new GLatLng(35.715302,139.797638);
var p25=new GLatLng(35.715378,139.797729);
var p26=new GLatLng(35.715485,139.797760);
var p27=new GLatLng(35.715931,139.797836);
var p28=new GLatLng(35.716335,139.796188);
var p29=new GLatLng(35.716682,139.794846);
var p30=new GLatLng(35.716869,139.794083);
var p31=new GLatLng(35.716156,139.793839);
var p32=new GLatLng(35.716476,139.792786);
var p33=new GLatLng(35.715256,139.792725);
var p34=new GLatLng(35.715275,139.793076);
var p35=new GLatLng(35.715298,139.793427);
var p36=new GLatLng(35.713615,139.793259);
var p37=new GLatLng(35.713753,139.792572);
var p38=new GLatLng(35.712589,139.792297);
var p39=new GLatLng(35.711903,139.792221);
var p40=new GLatLng(35.711346,139.792099);
var p41=new GLatLng(35.710670,139.797333);
var p42=new GLatLng(35.710522,139.797455);

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);
points.push(p31);points.push(p32);points.push(p33);points.push(p34);points.push(p35);points.push(p36);points.push(p37);points.push(p38);points.push(p39);points.push(p40);
points.push(p41);points.push(p42);

line = new GPolyline(points, "#47c7bb", 4,1.0);
map.addOverlay(line);


//マーカーの描画
var txt="<img src='images/photo_course_sanja_01.jpg' width='200' height='143'><br><a href='#01'>雷門</a>";
txt_list.push(txt);
addMarker01(new GLatLng(35.711246,139.796356),txt);

var txt="<img src='images/photo_course_sanja_02_1.jpg' width='200' height='143'><br><a href='#02'>浅草文化観光センター</a>";
txt_list.push(txt);
addMarker02(new GLatLng(35.710678,139.796539),txt);

var txt="<img src='images/photo_course_sanja_03.jpg' width='200' height='143'><br><a href='#03'>仲見世界隈</a>";
txt_list.push(txt);
addMarker03(new GLatLng(35.711788,139.796814),txt);

var txt="<img src='images/photo_course_sanja_04.jpg' width='200' height='143'><br><a href='#04'>浅草寺と浅草神社</a>";
txt_list.push(txt);
addMarker04(new GLatLng(35.714821,139.796738),txt);

var txt="<img src='images/photo_course_sanja_05.jpg'><br><a href='#05'>言問通り～ひさご通り</a>";
txt_list.push(txt);
addMarker05(new GLatLng(35.716343,139.796310),txt);

var txt="<img src='images/photo_course_sanja_06.jpg' width='150' height='200'><br><a href='#06'>国際通り界隈</a>";
txt_list.push(txt);
addMarker06(new GLatLng(35.716709,139.792648),txt);

var txt="<img src='images/photo_course_sanja_07.jpg' width='200' height='143'><br><a href='#07'>六区ブロードウェイ</a>";
txt_list.push(txt);
addMarker07(new GLatLng(35.714916,139.793427),txt);

var txt="<img src='images/photo_course_sanja_08.jpg' width='150' height='142'><br><a href='#08'>国際通りと雷門界隈</a>";
txt_list.push(txt);
addMarker08(new GLatLng(35.711482,139.792324),txt);

var txt="<img src='images/photo_course_sanja_09.jpg' width='150' height='142'><br><a href='#09'>都営浅草線浅草駅</a>";
txt_list.push(txt);
addMarker09(new GLatLng(35.710522,139.797562),txt);


}
}







function clickMarker(index){
    //吹き出しを表示する
    marker_list[index].openInfoWindowHtml(txt_list[index]);
}
