// 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.715455,139.797217), 15);
map.addControl(new GLargeMapControl3D());
//　↑↑↑　地図を作成ここまで　↑↑↑


//直線の描画
var p1=new GLatLng(35.711075,139.796341);
var p2=new GLatLng(35.711845,139.796448);
var p3=new GLatLng(35.712170,139.796478);
var p4=new GLatLng(35.712826,139.796539);
var p5=new GLatLng(35.712749,139.797180);
var p6=new GLatLng(35.713177,139.797211);
var p7=new GLatLng(35.713535,139.797256);
var p8=new GLatLng(35.713562,139.796738);
var p9=new GLatLng(35.713722,139.796738);
var p10=new GLatLng(35.713726,139.796631);
var p11=new GLatLng(35.714470,139.796722);
var p12=new GLatLng(35.714443,139.796890);
var p13=new GLatLng(35.714458,139.797134);
var p14=new GLatLng(35.714439,139.797348);
var p15=new GLatLng(35.714905,139.797409);
var p16=new GLatLng(35.714901,139.797501);
var p17=new GLatLng(35.714977,139.797714);
var p18=new GLatLng(35.715164,139.797791);
var p19=new GLatLng(35.715256,139.797760);
var p20=new GLatLng(35.715305,139.797638);
var p21=new GLatLng(35.715385,139.797729);
var p22=new GLatLng(35.715923,139.797836);
var p23=new GLatLng(35.715111,139.801392);
var p24=new GLatLng(35.715317,139.801682);
var p25=new GLatLng(35.716869,139.801712);
var p26=new GLatLng(35.716831,139.801956);
var p27=new GLatLng(35.716724,139.802353);
var p28=new GLatLng(35.718369,139.802383);
var p29=new GLatLng(35.718376,139.801712);
var p30=new GLatLng(35.719021,139.798248);
var p31=new GLatLng(35.717537,139.797882);
var p32=new GLatLng(35.716972,139.797729);
var p33=new GLatLng(35.716419,139.797562);
var p34=new GLatLng(35.716011,139.797440);
var p35=new GLatLng(35.716877,139.794067);
var p36=new GLatLng(35.715290,139.793564);
var p37=new GLatLng(35.715248,139.793427);
var p38=new GLatLng(35.713661,139.793289);
var p39=new GLatLng(35.713531,139.793259);
var p40=new GLatLng(35.712215,139.793167);
var p41=new GLatLng(35.711876,139.794724);
var p42=new GLatLng(35.712818,139.794922);
var p43=new GLatLng(35.712826,139.795670);
var p44=new GLatLng(35.711960,139.795563);
var p45=new GLatLng(35.710911,139.795380);
var p46=new GLatLng(35.710819,139.796173);
var p47=new GLatLng(35.710403,139.796127);

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);points.push(p43);points.push(p44);points.push(p45);points.push(p46);points.push(p47);

line = new GPolyline(points, "#47c7bb", 4,1.0);
map.addOverlay(line);


//マーカーの描画
var txt="<img src='images/photo_course_shogatsu_01.jpg' width='200' height='143'><br><a href='#01'>雷門</a>";
txt_list.push(txt);
addMarker01(new GLatLng(35.711079,139.796326),txt);

var txt="<img src='images/photo_course_shogatsu_02.jpg' width='150' height='211'><br><a href='#02'>仲見世</a>";
txt_list.push(txt);
addMarker02(new GLatLng(35.712254,139.796494),txt);

var txt="<img src='images/photo_course_shogatsu_03.jpg' width='150' height='199'><br><a href='#03'>弁天山</a>";
txt_list.push(txt);
addMarker03(new GLatLng(35.713367,139.797363),txt);

var txt="<img src='images/photo_course_shogatsu_04.jpg' width='200' height='143'><br><a href='#04'>浅草寺</a>";
txt_list.push(txt);
addMarker04(new GLatLng(35.714741,139.796738),txt);

var txt="<img src='images/photo_course_shogatsu_05.jpg' width='200' height='143'><br><a href='#05'>浅草神社</a>";
txt_list.push(txt);
addMarker05(new GLatLng(35.714985,139.797409),txt);

var txt="<img src='images/photo_course_shogatsu_06_1.jpg' width='200' height='143'><br><a href='#06'>待乳山聖天</a>";
txt_list.push(txt);
addMarker06(new GLatLng(35.717152,139.802841),txt);

var txt="<img src='images/photo_course_shogatsu_07.jpg' width='200' height='143'><br><a href='#07'>浅間神社周辺</a>";
txt_list.push(txt);
addMarker07(new GLatLng(35.719116,139.798416),txt);

var txt="<img src='images/photo_course_shogatsu_08_1.jpg' width='200' height='143'><br><a href='#08'>江戸下町伝統工芸館</a>";
txt_list.push(txt);
addMarker08(new GLatLng(35.716427,139.793777),txt);

var txt="<img src='images/photo_course_shogatsu_09_1.jpg' width='200' height='143'><br><a href='#09'>六区周辺</a>";
txt_list.push(txt);
addMarker09(new GLatLng(35.715111,139.793457),txt);

var txt="<img src='images/photo_course_shogatsu_10_1.jpg' width='150' height='199'><br><a href='#10'>たぬき通り</a>";
txt_list.push(txt);
addMarker10(new GLatLng(35.711926,139.794342),txt);

var txt="<img src='images/photo_course_shogatsu_11_1.jpg' width='150' height='199'><br><a href='#11'>浅草公会堂</a>";
txt_list.push(txt);
addMarker11(new GLatLng(35.712444,139.795090),txt);

var txt="<img src='images/photo_course_shogatsu_12_1.jpg' width='200' height='143'><br><a href='#12'>並木通り</a>";
txt_list.push(txt);
addMarker12(new GLatLng(35.710598,139.796265),txt);


}
}







function clickMarker(index){
    //吹き出しを表示する
    marker_list[index].openInfoWindowHtml(txt_list[index]);
}

