// 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), 17);
map.addControl(new GLargeMapControl3D());
//var gx = new GGeoXml("http://goonee.net/asakusa/asakusaenju.kml");
//map.addOverlay(gx);

/*
	//オリジナルマーカーの画像を作成
	var icon = new GIcon();
	icon.image = "http://www.asakusa.gr.jp/common/images/icon_1.png";
	icon.shadow = "http://www.asakusa.gr.jp/common/images/icon_2.png";
	icon.iconSize = new GSize(35, 35);
	icon.shadowSize = new GSize(35, 35);
	icon.iconAnchor = new GPoint(0, 35);
	icon.infoWindowAnchor = new GPoint(18, 11);
*/

	//var marker = new GMarker(movePoint,icon);
	//map.addOverlay(marker);



//浅草全体の緯度・経度

var txt="<img src='images/photo_spot1_01.jpg' width='219' height='165'><br><a href='spot1.html#spot1_01'>駒形堂</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.708878,139.796646),txt);

var txt="<img src='images/photo_spot1_02.jpg' width='150' height='223'><br><a href='spot1.html#spot1_02'>浅草観音戒殺碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.708904,139.796753),txt);

var txt="<img src='images/photo_spot1_03.jpg' width='219' height='165'><br><a href='spot1.html#spot1_03'>雷門</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.711174,139.796387),txt);

var txt="<img src='images/photo_spot1_04.jpg' width='219' height='165'><br><a href='spot1.html#spot1_04'>浅草文化観光センター</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.710686,139.796524),txt);

var txt="<img src='images/photo_spot1_05.jpg' width='219' height='165'><br><a href='spot1.html#spot1_05'>スターの広場</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.712524,139.795090),txt);

var txt="<img src='images/photo_spot1_06.jpg' width='150' height='223'><br><a href='spot1.html#spot1_06'>河竹黙阿弥顕彰碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.712421,139.796753),txt);

var txt="<img src='images/photo_spot1_07.jpg'><br><a href='spot1.html#spot1_07'>田原町駅　芸能紋</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.709805,139.790710),txt);

var txt="<img src='images/photo_spot1_08.jpg' width='150' height='204'><br><a href='spot1.html#spot1_08'>はなし塚</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.709553,139.790131),txt);

var txt="<img src='images/photo_spot1_09.jpg'><br><a href='spot1.html#spot1_09'>宗吾殿</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.708115,139.791687),txt);

var txt="<img src='images/photo_spot1_10.jpg'><br><a href='spot1.html#spot1_10'>岡崎屋勘六の墓</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.710884,139.791199),txt);

var txt="<img src='images/photo_spot1_11.jpg' width='219' height='165'><br><a href='spot1.html#spot1_11'>久保田万太郎生誕の地</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.711094,139.793472),txt);

var txt="<img src='images/photo_spot1_12.jpg'><br><a href='spot1.html#spot1_12'>世界の太鼓資料館</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.711758,139.791794),txt);

var txt="<img src='images/photo_spot1_13_2.jpg'><br><a href='spot1.html#spot1_13'>池波正太郎記念文庫</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.717331,139.789886),txt);

var txt="<img src='images/photo_spot1_14.jpg'><br><a href='spot1.html#spot1_14'>テプコ浅草館</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713799,139.791626),txt);

var txt="<img src='images/photo_spot1_15.jpg'><br><a href='spot1.html#spot1_15'>江戸下町伝統工芸館</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.716133,139.793671),txt);

var txt="<img src='images/photo_spot1_16.jpg'><br><a href='spot1.html#spot1_16'>猿之助横町碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.718025,139.794250),txt);

var txt="<img src='images/photo_spot1_17.jpg'><br><a href='spot1.html#spot1_17'>鷲神社</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.722469,139.791824),txt);

var txt="<img src='images/photo_spot1_18.jpg'><br><a href='spot1.html#spot1_18'>道引長太郎地蔵尊</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.716469,139.796387),txt);

var txt="<img src='images/photo_spot1_19.jpg'><br><a href='spot1.html#spot1_19'>宮戸座跡之碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.716949,139.796478),txt);

var txt="<img src='images/photo_spot1_20.jpg'><br><a href='spot1.html#spot1_20'>浅草富士浅間神社</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.719139,139.798309),txt);

var txt="<img src='images/photo_spot1_21.jpg'><br><a href='spot1.html#spot1_21'>猿若三座</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.716591,139.800323),txt);

var txt="<img src='images/photo_spot1_22.jpg'><br><a href='spot1.html#spot1_22'>待乳山聖天</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.717281,139.802658),txt);

var txt="<img src='images/photo_spot1_23.jpg'><br><a href='spot1.html#spot1_23'>平成中村座跡地</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.716824,139.804077),txt);

var txt="<img src='images/photo_spot1_24.jpg'><br><a href='spot1.html#spot1_24'>今戸神社</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.718853,139.803589),txt);

var txt="<a href='spot1.html#spot1_25'>今戸焼</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.718014,139.804138),txt);

var txt="<img src='images/photo_spot1_26.jpg'><br><a href='spot1.html#spot1_26'>花の碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.715698,139.803177),txt);

var txt="<img src='images/photo_spot1_27.jpg'><br><a href='spot1.html#spot1_27'>山の宿の渡し</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.711639,139.799377),txt);

var txt="<img src='images/photo_spot1_28.jpg'><br><a href='spot1.html#spot1_28'>竹屋の渡し</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.715950,139.803833),txt);

var txt="<a href='spot1.html#spot1_29'>隅田川の船遊び</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.712833,139.801880),txt);

var txt="<img src='images/photo_spot1_30.jpg'><br><a href='spot1.html#spot1_30'>姥ケ池碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713963,139.799759),txt);

var txt="<img src='images/photo_spot1_31.jpg'><br><a href='spot1.html#spot1_31'>助六歌碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713985,139.799942),txt);

var txt="<img src='images/photo_spot1_32.jpg'><br><a href='spot1.html#spot1_32'>九品寺大仏</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714710,139.800491),txt);

var txt="<img src='images/photo_spot1_33.jpg'><br><a href='spot1.html#spot1_33'>嬉の森稲荷</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713688,139.798508),txt);

var txt="<img src='images/photo_spot1_34.jpg'><br><a href='spot1.html#spot1_34'>三囲神社</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714855,139.806335),txt);

var txt="<img src='images/photo_spot1_35.jpg'><br><a href='spot1.html#spot1_35'>長命寺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.717728,139.809082),txt);

var txt="<img src='images/photo_spot1_36.jpg'><br><a href='spot1.html#spot1_36'>浅草見附跡碑</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.695889,139.785187),txt);

var txt="<img src='images/photo_spot1_37.jpg'><br><a href='spot1.html#spot1_37'>木母寺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.734200,139.814850),txt);


//浅草寺と浅草神社の緯度・経度
var txt="<img src='images/photo_spot2_01_01.jpg' width='219' height='165'><br><a href='spot2_01.html'>本堂</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714554,139.796722),txt);

var txt="<img src='images/photo_spot2_02_01.jpg' width='219' height='165'><br><a href='spot2_02.html'>宝蔵門</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713871,139.796661),txt);

var txt="<img src='images/photo_spot2_03_01.jpg' width='219' height='165'><br><a href='spot2_03.html'>本堂前・水屋</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714340,139.796814),txt);

var txt="<img src='images/photo_spot2_04_01.jpg' width='150' height='180'><br><a href='spot2_04.html'>五重塔</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714233,139.795700),txt);

var txt="<img src='images/photo_spot2_05_01.jpg'><br><a href='spot2_05.html'>本堂裏築山周辺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.715176,139.796906),txt);

var txt="<img src='images/photo_spot2_06_01.jpg' width='219' height='165'><br><a href='spot2_06.html'>浅草神社周辺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714993,139.797424),txt);

var txt="<img src='images/photo_spot2_07_01.jpg' width='219' height='165'><br><a href='spot2_07.html'>影向堂周辺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714806,139.795853),txt);

var txt="<img src='images/photo_spot2_08_01.jpg'><br><a href='spot2_08.html'>淡島堂周辺</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714947,139.795273),txt);

var txt="<img src='images/photo_spot2_09_01.jpg'><br><a href='spot2_09.html'>銭塚地蔵堂</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.715374,139.795761),txt);

var txt="<img src='images/photo_spot2_10_01.jpg'><br><a href='spot2_10.html'>新奥山</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.714565,139.795532),txt);

var txt="<img src='images/photo_spot2_11_01.jpg' width='219' height='165'><br><a href='spot2_11.html'>二尊仏</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713573,139.796997),txt);

var txt="<img src='images/photo_spot2_12_01.jpg' width='219' height='165'><br><a href='spot2_12.html'>弁天山</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.713387,139.797531),txt);

var txt="<img src='images/photo_spot2_13_01.jpg' width='219' height='165'><br><a href='spot2_12.html'>鎮護堂</a>";
txt_list.push(txt);
addMarker(new GLatLng(35.712975,139.794601),txt);

}
}
	//オリジナルマーカーの画像を作成
    function originalMarker(){
	    icon = new GIcon();
	    icon.image = "http://www.asakusa.gr.jp/common/images/icon_1.gif";
	    icon.shadow = "http://www.asakusa.gr.jp/common/images/icon_shadow.png";
	    icon.iconSize = new GSize(28, 23);
	    icon.shadowSize = new GSize(28, 23);
	    icon.iconAnchor = new GPoint(0, 37);
	    icon.infoWindowAnchor = new GPoint(11, 11);
    }

function addMarker(latlng,txt){
    //マーカーを作成
    originalMarker();
    var marker = new GMarker(latlng,icon);
    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]);
}
