// Generated by trk2googlemaps and kml ( http://etoh.minidns.net/gps/ )
// 本コードはtrk2googlemaps and kmlによって自動生成されました。
numofwaypoints=0;
posofwaypoints=0;
numofphotos=50;
posofphotos=0;
waypoint_markers = [];
waypoint_infos   = [];
photo_markers    = [];
photo_infos      = [];
var points = [];
var map;
var currentzoom;
var key = "ABQIAAAAvjZd_JDk5wPw86UfmaYAdxS-3qfp1sLmxQ-OAHtUVe1j7exPahRehzrtMXbZmWx3qkc6fD6RJ8-O8Q";
var movemarkerIcon;
   
// グラフマウスオーバ用のJavaScript
if (document.images)
{
	// 時刻－高度
	var alt = new Image();
	alt.src = "okumusashi.files/time-alt.png";

	// 時刻－距離
	var dist = new Image();
	dist.src = "okumusashi.files/time-dst.png";

	// 時刻－速度
	var speed = new Image();
	speed.src = "okumusashi.files/time-speed.png";
}

// マウスオーバ時
function On(name) 
{
	if (document.images) 
	{
		document.images['graphimage'].src = eval(name + '.src');
	}
}

// ウェイポイント表示用関数
function addWayPoints(map, nType, lat, lon, title)
{
	var point=new GLatLng(lon, lat);
	var Icon = new GIcon();
	var nn;
	if (nType==1){ // 小さな赤いマーカ
		nn=posofphotos+1;
		Icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		Icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		Icon.iconSize = new GSize(12, 20);
		Icon.shadowSize = new GSize(22, 20);
		Icon.iconAnchor = new GPoint(6, 20);
		Icon.infoWindowAnchor = new GPoint(5, 1);

		photo_markers.push(new GMarker(point, Icon));
		photo_infos.push('<div style="width: 12em; style: font-size: small">'+title+'</div>');
		GEvent.addListener(photo_markers[posofphotos], "click", function(){jumpphotomarker(nn);});
		map.addOverlay(photo_markers[posofphotos]);
		posofphotos = posofphotos+1;

	}
	else
	{ // |>の形状のマーカ
		nn=posofwaypoints+1;
		Icon.image = "http://www.google.com/mapfiles/dd-start.png";
		Icon.shadow = "http://www.google.com/mapfiles/shadow50.png";
		Icon.iconSize = new GSize(20, 34);
		Icon.shadowSize = new GSize(37, 34);
		Icon.iconAnchor = new GPoint(9, 34);
		Icon.infoWindowAnchor = new GPoint(9, 2);

		waypoint_markers.push(new GMarker(point, Icon));
		waypoint_infos.push('<div style="width: 12em; style: font-size: small">'+title+'</div>');
		GEvent.addListener(waypoint_markers[posofwaypoints], "click",function(){jumpwaypointmarker(nn);});
		map.addOverlay(waypoint_markers[posofwaypoints]);
		posofwaypoints=posofwaypoints+1;
	}
}
	

// HTMLロード時
function load()
{
	// 初期化パラメータ
	var mapwidth=640;  // 地図の幅を設定します。
	var mapheight=480; // 地図の高さを設定します。
	var zoom=-1;    // この値を変更すると初期ズーム値が変わります。-1の場合は自動となります。
	var linecolor="#FF0000"; // この値を変更すると、線の色が変わります。
	var linewidth=2; // この値を変更すると、線の太さが変わります。 
	var lineopacity=1.00;   // この値を変更すると、線の透明度が変わります。
	var defaultmaptype=0; // この値を変更すると初期のマップタイプが変更されます。
	var wpt_points = [];

	// トラックデータ列です。
		points.push(new GLatLng(35.97345,139.4664));
	points.push(new GLatLng(35.97362,139.4654));
	points.push(new GLatLng(35.97398,139.4633));
	points.push(new GLatLng(35.97417,139.4621));
	points.push(new GLatLng(35.97381,139.462));
	points.push(new GLatLng(35.96973,139.4634));
	points.push(new GLatLng(35.96952,139.4628));
	points.push(new GLatLng(35.96785,139.4592));
	points.push(new GLatLng(35.97696,139.4513));
	points.push(new GLatLng(35.97701,139.4512));
	points.push(new GLatLng(35.97746,139.449));
	points.push(new GLatLng(35.97774,139.4471));
	points.push(new GLatLng(35.97819,139.4458));
	points.push(new GLatLng(35.98151,139.4406));
	points.push(new GLatLng(35.98576,139.437));
	points.push(new GLatLng(35.98709,139.4365));
	points.push(new GLatLng(35.98799,139.4358));
	points.push(new GLatLng(35.98866,139.4354));
	points.push(new GLatLng(35.99505,139.4265));
	points.push(new GLatLng(35.99235,139.4174));
	points.push(new GLatLng(35.99145,139.4156));
	points.push(new GLatLng(35.99059,139.4141));
	points.push(new GLatLng(35.98872,139.4097));
	points.push(new GLatLng(35.98819,139.4085));
	points.push(new GLatLng(35.98913,139.4069));
	points.push(new GLatLng(35.98971,139.4075));
	points.push(new GLatLng(35.99016,139.4073));
	points.push(new GLatLng(35.99222,139.4058));
	points.push(new GLatLng(35.99228,139.4053));
	points.push(new GLatLng(35.99202,139.4043));
	points.push(new GLatLng(35.98902,139.3945));
	points.push(new GLatLng(35.98906,139.393));
	points.push(new GLatLng(35.9896,139.3914));
	points.push(new GLatLng(35.9908,139.3879));
	points.push(new GLatLng(35.99125,139.3866));
	points.push(new GLatLng(35.99175,139.3852));
	points.push(new GLatLng(35.99149,139.3846));
	points.push(new GLatLng(35.98911,139.3829));
	points.push(new GLatLng(35.98874,139.382));
	points.push(new GLatLng(35.98844,139.3809));
	points.push(new GLatLng(35.98788,139.3763));
	points.push(new GLatLng(35.9869,139.3736));
	points.push(new GLatLng(35.98685,139.3724));
	points.push(new GLatLng(35.98492,139.3709));
	points.push(new GLatLng(35.98194,139.3681));
	points.push(new GLatLng(35.97885,139.3656));
	points.push(new GLatLng(35.97894,139.3626));
	points.push(new GLatLng(35.97789,139.3567));
	points.push(new GLatLng(35.97641,139.3531));
	points.push(new GLatLng(35.97306,139.35));
	points.push(new GLatLng(35.97038,139.3424));
	points.push(new GLatLng(35.96662,139.3396));
	points.push(new GLatLng(35.96555,139.3383));
	points.push(new GLatLng(35.9622,139.3358));
	points.push(new GLatLng(35.95896,139.3351));
	points.push(new GLatLng(35.95765,139.3343));
	points.push(new GLatLng(35.95758,139.3342));
	points.push(new GLatLng(35.95593,139.3309));
	points.push(new GLatLng(35.95314,139.3321));
	points.push(new GLatLng(35.95255,139.3323));
	points.push(new GLatLng(35.94984,139.3325));
	points.push(new GLatLng(35.94716,139.3329));
	points.push(new GLatLng(35.9436,139.3282));
	points.push(new GLatLng(35.94316,139.327));
	points.push(new GLatLng(35.94033,139.3236));
	points.push(new GLatLng(35.9387,139.3211));
	points.push(new GLatLng(35.93739,139.3204));
	points.push(new GLatLng(35.9274,139.3174));
	points.push(new GLatLng(35.92326,139.3203));
	points.push(new GLatLng(35.92019,139.3198));
	points.push(new GLatLng(35.91892,139.3213));
	points.push(new GLatLng(35.91849,139.3239));
	points.push(new GLatLng(35.91836,139.3244));
	points.push(new GLatLng(35.91572,139.326));
	points.push(new GLatLng(35.91336,139.3234));
	points.push(new GLatLng(35.9133,139.3233));
	points.push(new GLatLng(35.91368,139.3193));
	points.push(new GLatLng(35.91388,139.3173));
	points.push(new GLatLng(35.91463,139.3139));
	points.push(new GLatLng(35.91456,139.3136));
	points.push(new GLatLng(35.91431,139.3105));
	points.push(new GLatLng(35.9142,139.3063));
	points.push(new GLatLng(35.91407,139.2987));
	points.push(new GLatLng(35.91396,139.2978));
	points.push(new GLatLng(35.91426,139.297));
	points.push(new GLatLng(35.91265,139.2965));
	points.push(new GLatLng(35.91182,139.2955));
	points.push(new GLatLng(35.90864,139.2909));
	points.push(new GLatLng(35.90866,139.2908));
	points.push(new GLatLng(35.90884,139.2899));
	points.push(new GLatLng(35.91053,139.2896));
	points.push(new GLatLng(35.91308,139.2867));
	points.push(new GLatLng(35.9177,139.2841));
	points.push(new GLatLng(35.91765,139.284));
	points.push(new GLatLng(35.91776,139.2833));
	points.push(new GLatLng(35.92075,139.2747));
	points.push(new GLatLng(35.92652,139.2773));
	points.push(new GLatLng(35.92675,139.2801));
	points.push(new GLatLng(35.92694,139.2811));
	points.push(new GLatLng(35.92709,139.2819));
	points.push(new GLatLng(35.92879,139.2865));
	points.push(new GLatLng(35.92967,139.2892));
	points.push(new GLatLng(35.92924,139.2904));
	points.push(new GLatLng(35.931,139.2939));
	points.push(new GLatLng(35.93203,139.2955));
	points.push(new GLatLng(35.93324,139.2964));
	points.push(new GLatLng(35.93574,139.2991));
	points.push(new GLatLng(35.93705,139.3013));
	points.push(new GLatLng(35.938,139.3017));
	points.push(new GLatLng(35.93946,139.3027));
	points.push(new GLatLng(35.94091,139.305));
	points.push(new GLatLng(35.94422,139.3028));
	points.push(new GLatLng(35.9454,139.303));
	points.push(new GLatLng(35.94634,139.3025));
	points.push(new GLatLng(35.94688,139.3017));
	points.push(new GLatLng(35.94746,139.2998));
	points.push(new GLatLng(35.94802,139.2986));
	points.push(new GLatLng(35.94823,139.2981));
	points.push(new GLatLng(35.94862,139.2972));
	points.push(new GLatLng(35.94881,139.2969));
	points.push(new GLatLng(35.95095,139.2947));
	points.push(new GLatLng(35.95351,139.2944));
	points.push(new GLatLng(35.95368,139.295));
	points.push(new GLatLng(35.9543,139.2963));
	points.push(new GLatLng(35.95546,139.2979));
	points.push(new GLatLng(35.95576,139.2998));
	points.push(new GLatLng(35.95596,139.3009));
	points.push(new GLatLng(35.95772,139.3011));
	points.push(new GLatLng(35.95883,139.3007));
	points.push(new GLatLng(35.9592,139.3004));
	points.push(new GLatLng(35.96018,139.2996));
	points.push(new GLatLng(35.96068,139.2992));
	points.push(new GLatLng(35.96192,139.2981));
	points.push(new GLatLng(35.96387,139.2973));
	points.push(new GLatLng(35.96409,139.2962));
	points.push(new GLatLng(35.9748,139.2892));
	points.push(new GLatLng(35.97486,139.2892));
	points.push(new GLatLng(35.97411,139.2898));
	points.push(new GLatLng(35.97263,139.2889));
	points.push(new GLatLng(35.97332,139.2876));
	points.push(new GLatLng(35.97467,139.2839));
	points.push(new GLatLng(35.97426,139.2798));
	points.push(new GLatLng(35.97441,139.2778));
	points.push(new GLatLng(35.9751,139.2764));
	points.push(new GLatLng(35.97516,139.2763));
	points.push(new GLatLng(35.97516,139.2755));
	points.push(new GLatLng(35.97484,139.274));
	points.push(new GLatLng(35.97456,139.2727));
	points.push(new GLatLng(35.97435,139.2712));
	points.push(new GLatLng(35.97289,139.2724));
	points.push(new GLatLng(35.97115,139.2689));
	points.push(new GLatLng(35.9713,139.2673));
	points.push(new GLatLng(35.97138,139.266));
	points.push(new GLatLng(35.97218,139.2585));
	points.push(new GLatLng(35.97345,139.2557));
	points.push(new GLatLng(35.97409,139.2549));
	points.push(new GLatLng(35.97776,139.2547));
	points.push(new GLatLng(35.97831,139.254));
	points.push(new GLatLng(35.9854,139.2555));
	points.push(new GLatLng(35.98594,139.2564));
	points.push(new GLatLng(35.99093,139.2557));
	points.push(new GLatLng(35.99138,139.2551));
	points.push(new GLatLng(35.99179,139.2555));
	points.push(new GLatLng(35.99387,139.2567));
	points.push(new GLatLng(35.98913,139.2567));
	points.push(new GLatLng(35.98898,139.2575));
	points.push(new GLatLng(35.99001,139.2615));
	points.push(new GLatLng(35.98696,139.2608));
	points.push(new GLatLng(35.98711,139.2561));
	points.push(new GLatLng(35.98958,139.2526));
	points.push(new GLatLng(35.99052,139.2521));
	points.push(new GLatLng(35.99192,139.2513));
	points.push(new GLatLng(35.99325,139.249));
	points.push(new GLatLng(35.99205,139.2458));
	points.push(new GLatLng(35.98713,139.2424));
	points.push(new GLatLng(35.98237,139.2447));
	points.push(new GLatLng(35.98323,139.2437));
	points.push(new GLatLng(35.98424,139.2424));
	points.push(new GLatLng(35.98426,139.2423));
	points.push(new GLatLng(35.98432,139.2415));
	points.push(new GLatLng(35.98366,139.241));
	points.push(new GLatLng(35.98381,139.24));
	points.push(new GLatLng(35.98428,139.2371));
	points.push(new GLatLng(35.9828,139.2354));
	points.push(new GLatLng(35.98269,139.2353));
	points.push(new GLatLng(35.98125,139.2335));
	points.push(new GLatLng(35.98125,139.2321));
	points.push(new GLatLng(35.97816,139.2258));
	points.push(new GLatLng(35.97823,139.2257));
	points.push(new GLatLng(35.97868,139.2236));
	points.push(new GLatLng(35.97982,139.2207));
	points.push(new GLatLng(35.9808,139.2226));
	points.push(new GLatLng(35.96396,139.202));
	points.push(new GLatLng(35.9655,139.2009));
	points.push(new GLatLng(35.9663,139.1999));
	points.push(new GLatLng(35.96645,139.1987));
	points.push(new GLatLng(35.9664,139.1987));
	points.push(new GLatLng(35.96653,139.198));
	points.push(new GLatLng(35.9666,139.1973));
	points.push(new GLatLng(35.96664,139.1959));
	points.push(new GLatLng(35.96774,139.1938));
	points.push(new GLatLng(35.96889,139.184));
	points.push(new GLatLng(35.96892,139.1839));
	points.push(new GLatLng(35.97834,139.1732));
	points.push(new GLatLng(35.98385,139.1707));
	points.push(new GLatLng(35.98407,139.1704));
	points.push(new GLatLng(35.98449,139.1694));
	points.push(new GLatLng(35.98548,139.1659));
	points.push(new GLatLng(35.98626,139.1638));
	points.push(new GLatLng(35.98685,139.1614));
	points.push(new GLatLng(35.98726,139.1585));
	points.push(new GLatLng(35.99046,139.1572));
	points.push(new GLatLng(35.99102,139.1559));
	points.push(new GLatLng(35.99125,139.1522));
	points.push(new GLatLng(35.99121,139.1521));
	points.push(new GLatLng(35.99814,139.1471));
	points.push(new GLatLng(36.00078,139.1471));
	points.push(new GLatLng(36.01524,139.1291));
	points.push(new GLatLng(36.01971,139.1257));
	points.push(new GLatLng(36.02035,139.1237));
	points.push(new GLatLng(36.02445,139.1191));
	points.push(new GLatLng(36.02438,139.1218));
	points.push(new GLatLng(36.02419,139.1245));
	points.push(new GLatLng(36.02499,139.1289));
	points.push(new GLatLng(36.02501,139.1291));
	points.push(new GLatLng(36.02432,139.1311));
	points.push(new GLatLng(36.02372,139.1314));
	points.push(new GLatLng(36.02198,139.1321));
	points.push(new GLatLng(36.01984,139.1353));
	points.push(new GLatLng(36.01902,139.1374));
	points.push(new GLatLng(36.01904,139.1375));
	points.push(new GLatLng(36.01926,139.1388));
	points.push(new GLatLng(36.01919,139.14));
	points.push(new GLatLng(36.01898,139.1421));
	points.push(new GLatLng(36.01859,139.1434));
	points.push(new GLatLng(36.01705,139.1461));
	points.push(new GLatLng(36.0167,139.1479));
	points.push(new GLatLng(36.01801,139.1471));
	points.push(new GLatLng(36.01805,139.1461));
	points.push(new GLatLng(36.02089,139.1452));
	points.push(new GLatLng(36.02351,139.1416));
	points.push(new GLatLng(36.02149,139.1469));
	points.push(new GLatLng(36.02009,139.1478));
	points.push(new GLatLng(36.02061,139.1465));
	points.push(new GLatLng(36.02005,139.1546));
	points.push(new GLatLng(36.01906,139.1548));
	points.push(new GLatLng(36.01936,139.156));
	points.push(new GLatLng(36.0176,139.1574));
	points.push(new GLatLng(36.01715,139.1581));
	points.push(new GLatLng(36.01602,139.157));
	points.push(new GLatLng(36.01213,139.1593));
	points.push(new GLatLng(36.01209,139.1601));
	points.push(new GLatLng(36.01183,139.1619));
	points.push(new GLatLng(36.01166,139.163));
	points.push(new GLatLng(36.01114,139.1641));
	points.push(new GLatLng(36.01057,139.1647));
	points.push(new GLatLng(36.00776,139.1697));
	points.push(new GLatLng(36.00739,139.171));
	points.push(new GLatLng(36.00042,139.1783));
	points.push(new GLatLng(35.99737,139.181));
	points.push(new GLatLng(35.99767,139.1825));
	points.push(new GLatLng(35.99776,139.1844));
	points.push(new GLatLng(35.99778,139.1862));
	points.push(new GLatLng(35.99797,139.1892));
	points.push(new GLatLng(35.99977,139.1911));
	points.push(new GLatLng(35.99982,139.1918));
	points.push(new GLatLng(36.00434,139.2009));
	points.push(new GLatLng(36.01295,139.1954));
	points.push(new GLatLng(36.014,139.1953));
	points.push(new GLatLng(36.01629,139.1861));
	points.push(new GLatLng(36.01859,139.1833));
	points.push(new GLatLng(36.02546,139.1812));
	points.push(new GLatLng(36.03314,139.1838));
	points.push(new GLatLng(36.03453,139.1874));
	points.push(new GLatLng(36.03449,139.1884));
	points.push(new GLatLng(36.03606,139.1864));
	points.push(new GLatLng(36.03674,139.1874));
	points.push(new GLatLng(36.03735,139.1881));
	points.push(new GLatLng(36.04329,139.1907));
	points.push(new GLatLng(36.04882,139.192));
	points.push(new GLatLng(36.05039,139.1921));
	points.push(new GLatLng(36.05099,139.1946));
	points.push(new GLatLng(36.05144,139.1959));
	points.push(new GLatLng(36.0532,139.1984));
	points.push(new GLatLng(36.05368,139.1994));
	points.push(new GLatLng(36.05404,139.2012));
	points.push(new GLatLng(36.05335,139.2029));
	points.push(new GLatLng(36.05181,139.206));
	points.push(new GLatLng(36.0517,139.2068));
	points.push(new GLatLng(36.05146,139.2078));
	points.push(new GLatLng(36.05104,139.2096));
	points.push(new GLatLng(36.05037,139.2108));
	points.push(new GLatLng(36.05026,139.2109));
	points.push(new GLatLng(36.04964,139.2124));
	points.push(new GLatLng(36.04962,139.2132));
	points.push(new GLatLng(36.04994,139.215));
	points.push(new GLatLng(36.04977,139.216));
	points.push(new GLatLng(36.04958,139.2164));
	points.push(new GLatLng(36.04874,139.2184));
	points.push(new GLatLng(36.0481,139.2213));
	points.push(new GLatLng(36.04808,139.2215));
	points.push(new GLatLng(36.04827,139.2232));
	points.push(new GLatLng(36.04799,139.2247));
	points.push(new GLatLng(36.04724,139.2266));
	points.push(new GLatLng(36.04663,139.2279));
	points.push(new GLatLng(36.04531,139.2289));
	points.push(new GLatLng(36.04202,139.2286));
	points.push(new GLatLng(36.04134,139.2285));
	points.push(new GLatLng(36.04074,139.2277));
	points.push(new GLatLng(36.03988,139.2263));
	points.push(new GLatLng(36.03968,139.226));
	points.push(new GLatLng(36.03867,139.225));
	points.push(new GLatLng(36.03711,139.2249));
	points.push(new GLatLng(36.03554,139.2248));
	points.push(new GLatLng(36.03511,139.2247));
	points.push(new GLatLng(36.03222,139.2206));
	points.push(new GLatLng(36.03172,139.2192));
	points.push(new GLatLng(36.03134,139.2176));
	points.push(new GLatLng(36.03138,139.216));
	points.push(new GLatLng(36.03136,139.2148));
	points.push(new GLatLng(36.02657,139.2119));
	points.push(new GLatLng(36.01625,139.2105));
	points.push(new GLatLng(36.00728,139.2118));
	points.push(new GLatLng(36.00454,139.2117));
	points.push(new GLatLng(36.00439,139.2099));
	points.push(new GLatLng(35.99715,139.2099));
	points.push(new GLatLng(35.99572,139.2137));
	points.push(new GLatLng(35.99595,139.2151));
	points.push(new GLatLng(35.99509,139.2183));
	points.push(new GLatLng(35.9975,139.221));
	points.push(new GLatLng(35.99818,139.2237));
	points.push(new GLatLng(35.99821,139.2266));
	points.push(new GLatLng(35.99967,139.2271));
	points.push(new GLatLng(36.00068,139.2277));
	points.push(new GLatLng(36.00192,139.2297));
	points.push(new GLatLng(36.00217,139.231));
	points.push(new GLatLng(35.99512,139.2403));
	points.push(new GLatLng(35.99316,139.2399));
	points.push(new GLatLng(35.99282,139.2409));
	points.push(new GLatLng(35.98859,139.2428));
	points.push(new GLatLng(35.98988,139.2434));
	points.push(new GLatLng(35.99009,139.2435));
	points.push(new GLatLng(35.99224,139.2471));
	points.push(new GLatLng(35.99306,139.2486));
	points.push(new GLatLng(35.99035,139.2523));
	points.push(new GLatLng(35.98932,139.2528));
	points.push(new GLatLng(35.98743,139.2579));
	points.push(new GLatLng(35.98739,139.258));
	points.push(new GLatLng(35.98728,139.2589));
	points.push(new GLatLng(35.98565,139.2576));
	points.push(new GLatLng(35.9843,139.2644));
	points.push(new GLatLng(35.9781,139.2672));
	points.push(new GLatLng(35.97782,139.2685));
	points.push(new GLatLng(35.97458,139.2728));
	points.push(new GLatLng(35.97486,139.274));
	points.push(new GLatLng(35.97514,139.2755));
	points.push(new GLatLng(35.97501,139.2767));
	points.push(new GLatLng(35.97428,139.2799));
	points.push(new GLatLng(35.97471,139.2839));
	points.push(new GLatLng(35.97359,139.2871));
	points.push(new GLatLng(35.97278,139.2886));
	points.push(new GLatLng(35.97329,139.2908));
	points.push(new GLatLng(35.97351,139.292));
	points.push(new GLatLng(35.97623,139.2937));
	points.push(new GLatLng(35.97801,139.2952));
	points.push(new GLatLng(35.97905,139.296));
	points.push(new GLatLng(35.98044,139.2979));
	points.push(new GLatLng(35.98046,139.3001));
	points.push(new GLatLng(35.98027,139.3009));
	points.push(new GLatLng(35.98065,139.3015));
	points.push(new GLatLng(35.98177,139.3028));
	points.push(new GLatLng(35.9864,139.3105));
	points.push(new GLatLng(35.98555,139.315));
	points.push(new GLatLng(35.98544,139.3171));
	points.push(new GLatLng(35.98542,139.3172));
	points.push(new GLatLng(35.98254,139.3229));
	points.push(new GLatLng(35.98241,139.323));
	points.push(new GLatLng(35.98145,139.328));
	points.push(new GLatLng(35.98061,139.33));
	points.push(new GLatLng(35.97992,139.3309));
	points.push(new GLatLng(35.97909,139.3324));
	points.push(new GLatLng(35.97892,139.3327));
	points.push(new GLatLng(35.97784,139.3342));
	points.push(new GLatLng(35.97731,139.3351));
	points.push(new GLatLng(35.97709,139.3353));
	points.push(new GLatLng(35.97671,139.3361));
	points.push(new GLatLng(35.97647,139.3366));
	points.push(new GLatLng(35.97432,139.3387));
	points.push(new GLatLng(35.97038,139.3423));
	points.push(new GLatLng(35.97106,139.3436));
	points.push(new GLatLng(35.97214,139.3455));
	points.push(new GLatLng(35.97271,139.3468));
	points.push(new GLatLng(35.9728,139.3471));
	points.push(new GLatLng(35.97314,139.3504));
	points.push(new GLatLng(35.97767,139.3545));
	points.push(new GLatLng(35.97786,139.3559));
	points.push(new GLatLng(35.97877,139.3619));
	points.push(new GLatLng(35.97909,139.3631));
	points.push(new GLatLng(35.97911,139.3637));
	points.push(new GLatLng(35.97889,139.3659));
	wpt_points.push(new GLatLng(35.9886333333333,139.40895));
	wpt_points.push(new GLatLng(35.9886333333333,139.40895));
	wpt_points.push(new GLatLng(35.9937833333333,139.25525));
	wpt_points.push(new GLatLng(35.9937833333333,139.25525));
	wpt_points.push(new GLatLng(35.9937666666667,139.2552));
	wpt_points.push(new GLatLng(35.9937333333333,139.25515));
	wpt_points.push(new GLatLng(35.9796666666667,139.222616666667));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.9811166666667,139.218516666667));
	wpt_points.push(new GLatLng(35.9736166666667,139.210516666667));
	wpt_points.push(new GLatLng(36.0142166666667,139.157733333333));
	wpt_points.push(new GLatLng(35.9977333333333,139.186866666667));
	wpt_points.push(new GLatLng(35.9977333333333,139.18685));
	wpt_points.push(new GLatLng(36.01065,139.197316666667));
	wpt_points.push(new GLatLng(36.01065,139.197316666667));
	wpt_points.push(new GLatLng(36.0106666666667,139.197266666667));
	wpt_points.push(new GLatLng(36.0106666666667,139.197283333333));
	wpt_points.push(new GLatLng(36.0131666666667,139.19115));
	wpt_points.push(new GLatLng(36.0258833333333,139.1818));
	wpt_points.push(new GLatLng(36.02585,139.181816666667));
	wpt_points.push(new GLatLng(35.97465,139.468483333333));
	wpt_points.push(new GLatLng(35.97465,139.468483333333));
	wpt_points.push(new GLatLng(35.9782666666667,139.359583333333));
	wpt_points.push(new GLatLng(35.9937833333333,139.255233333333));
	wpt_points.push(new GLatLng(35.9937333333333,139.25515));
	wpt_points.push(new GLatLng(35.9937333333333,139.255166666667));
	wpt_points.push(new GLatLng(35.9937333333333,139.255166666667));
	wpt_points.push(new GLatLng(35.9796666666667,139.222616666667));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.97965,139.222583333333));
	wpt_points.push(new GLatLng(35.9811166666667,139.218516666667));
	wpt_points.push(new GLatLng(35.9736333333333,139.210616666667));
	wpt_points.push(new GLatLng(35.9736333333333,139.210616666667));
	wpt_points.push(new GLatLng(36.0142333333333,139.15775));
	wpt_points.push(new GLatLng(36.0142166666667,139.157733333333));
	wpt_points.push(new GLatLng(35.9977333333333,139.18685));
	wpt_points.push(new GLatLng(35.9977333333333,139.18685));
	wpt_points.push(new GLatLng(35.9977333333333,139.18685));
	wpt_points.push(new GLatLng(36.0074333333333,139.202416666667));
	wpt_points.push(new GLatLng(36.01065,139.197316666667));
	wpt_points.push(new GLatLng(36.0131833333333,139.191133333333));
	wpt_points.push(new GLatLng(36.0131833333333,139.191133333333));
	wpt_points.push(new GLatLng(36.0131666666667,139.191133333333));
	wpt_points.push(new GLatLng(36.0258666666667,139.1818));
	wpt_points.push(new GLatLng(35.9792166666667,139.366333333333));
	wpt_points.push(new GLatLng(35.9789833333333,139.3666));
	wpt_points.push(new GLatLng(35.97905,139.366616666667));


	// 表示の中心位置・サイズを算出します。
	var xavg=0;
	var yavg=0;
	var xmin=181;
	var xmax=-181;
	var ymin=91;
	var ymax=-91;
	for (var i=0; i<points.length; i++)
	{
		if (xmin>points[i].x) xmin=points[i].x;
		if (xmax<points[i].x) xmax=points[i].x;
		if (ymin>points[i].y) ymin=points[i].y;
		if (ymax<points[i].y) ymax=points[i].y;
	}
	for (var i=0; i<wpt_points.length; i++)
	{
		if (xmin>wpt_points[i].x) xmin=wpt_points[i].x;
		if (xmax<wpt_points[i].x) xmax=wpt_points[i].x;
		if (ymin>wpt_points[i].y) ymin=wpt_points[i].y;
		if (ymax<wpt_points[i].y) ymax=wpt_points[i].y;
	}
		
	xavg=(xmax+xmin)/2;
	yavg=(ymax+ymin)/2;
	var centerpos=new GLatLng( yavg, xavg);
	var region=new GLatLngBounds(new GLatLng(ymin,xmin), new GLatLng(ymax, xmax));
	
	// マップ初期化	
	map = new GMap2(document.getElementById("map"));
	map.addControl(new GLargeMapControl());
	map.addMapType(G_PHYSICAL_MAP);
	map.addControl(new GHierarchicalMapTypeControl());
	map.enableContinuousZoom();
	map.enableDoubleClickZoom();
	map.addControl(new GOverviewMapControl());
	
	if (zoom>0)
	{
		map.setCenter(centerpos, 17-zoom);
	}
	else
	{
		map.setCenter(centerpos, map.getBoundsZoomLevel(region));
	}
	
	// 軌跡再生アイコン
	movemarkerIcon = new GIcon();
	movemarkerIcon.iconSize = new GSize(32, 32);
	movemarkerIcon.shadowSize = new GSize(59, 32);
	movemarkerIcon.iconAnchor = new GPoint(16, 16);
	movemarkerIcon.infoWindowAnchor = new GPoint(1, 1);
	movemarkerIcon.image = "http://maps.google.co.jp/mapfiles/ms/icons/motorcycling.png";
	movemarkerIcon.shadow = "http://maps.google.co.jp/mapfiles/ms/icons/motorcycling.shadow.png";

	var overlay;
	if (points.length > 0)
	{
		//var encoded_points = "{36}";
		//var encoded_levels = "{37}";
		//overlay = GPolyline.fromEncoded({color: linecolor,
	    //                                      weight: linewidth,
	    //                                      points: encoded_points,
	    //                                      zoomFactor: 32,
		//                                      levels: encoded_levels,
		//                                      numLevels: 4
		//                                    });
		//map.addOverlay(overlay); 
		
		// トラックログがあった場合：
		// 線の色と幅と不透明度を設定します。
		var polyline= new GPolyline(points, linecolor, linewidth, lineopacity);

		// 線を描画します。
		map.addOverlay(polyline);
	}
		
	// 初期マップタイプ設定
	switch(defaultmaptype)
	{
		case 0:
		map.setMapType(G_NORMAL_MAP);   	//This is the normal street map type.
		break;
		
		case 1:
		map.setMapType(G_SATELLITE_MAP); //This map type shows Google Earth satellite images.
		break;
	
		case 2:
		map.setMapType(G_HYBRID_MAP); 	//This map type shows transparent street maps over Google Earth satellite images.
		break;
		
		case 3:
		map.setMapType(G_PHYSICAL_MAP); 
		break;		
	
		default:
		map.setMapType(G_NORMAL_MAP);
		break;
	}
	addWayPoints(map, 1,139.40895,35.9886333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID1\">IMG_3935</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3935.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3935-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 12:59:50<br />E139°24′32.22″<br />N35°59′19.08″<br />27m<br />埼玉県坂戸市島田<hr /></small>");
	addWayPoints(map, 1,139.40895,35.9886333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID2\">IMG_3936</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3936.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3936-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 12:59:53<br />E139°24′32.22″<br />N35°59′19.08″<br />27m<br />埼玉県坂戸市島田<hr /></small>");
	addWayPoints(map, 1,139.25525,35.9937833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID3\">IMG_3937</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3937.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3937-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:25:14<br />E139°15′18.90″<br />N35°59′37.62″<br />422m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.25525,35.9937833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID4\">IMG_3938</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3938.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3938-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:25:23<br />E139°15′18.90″<br />N35°59′37.62″<br />421m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.2552,35.9937666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID5\">IMG_3939</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3939.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3939-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:26:26<br />E139°15′18.72″<br />N35°59′37.56″<br />416m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.25515,35.9937333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID6\">IMG_3940</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3940.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3940-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:26:45<br />E139°15′18.54″<br />N35°59′37.44″<br />416m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.222616666667,35.9796666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID7\">IMG_3941</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3941.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3941-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:50:12<br />E139°13′21.42″<br />N35°58′46.80″<br />309m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID8\">IMG_3942</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3942.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3942-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:51:22<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID9\">IMG_3943</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3943.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3943-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:51:43<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID10\">IMG_3944</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3944.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3944-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:52:18<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.218516666667,35.9811166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID11\">IMG_3945</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3945.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3945-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:57:50<br />E139°13′6.66″<br />N35°58′52.02″<br />418m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.210516666667,35.9736166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID12\">IMG_3946</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3946.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3946-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:07:04<br />E139°12′37.86″<br />N35°58′25.02″<br />699m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.157733333333,36.0142166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID13\">IMG_3947</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3947.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3947-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:46:12<br />E139°9′27.84″<br />N36°0′51.18″<br />579m<br />埼玉県秩父市定峰<hr /></small>");
	addWayPoints(map, 1,139.186866666667,35.9977333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID14\">IMG_3948</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3948.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3948-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:54:56<br />E139°11′12.72″<br />N35°59′51.84″<br />823m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.18685,35.9977333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID15\">IMG_3949</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3949.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3949-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:55:08<br />E139°11′12.66″<br />N35°59′51.84″<br />823m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.197316666667,36.01065,"<b><a href=\""+relativepathtomainhtml+"#photoID16\">IMG_3951</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3951.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3951-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:08:30<br />E139°11′50.34″<br />N36°0′38.34″<br />562m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.197316666667,36.01065,"<b><a href=\""+relativepathtomainhtml+"#photoID17\">IMG_3952</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3952.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3952-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:08:48<br />E139°11′50.34″<br />N36°0′38.34″<br />561m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.197266666667,36.0106666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID18\">IMG_3953</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3953.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3953-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:10:02<br />E139°11′50.16″<br />N36°0′38.40″<br />565m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.197283333333,36.0106666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID19\">IMG_3954</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3954.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3954-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:10:12<br />E139°11′50.22″<br />N36°0′38.40″<br />565m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.19115,36.0131666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID20\">IMG_3955</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3955.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3955-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:15:21<br />E139°11′28.14″<br />N36°0′47.40″<br />693m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.1818,36.0258833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID21\">IMG_3956</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3956.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3956-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:23:02<br />E139°10′54.48″<br />N36°1′33.18″<br />599m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.181816666667,36.02585,"<b><a href=\""+relativepathtomainhtml+"#photoID22\">IMG_3957</a></b><br /><a href=\""+relativepathtosubfolder+"IMG_3957.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"IMG_3957-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:23:42<br />E139°10′54.54″<br />N36°1′33.06″<br />601m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.468483333333,35.97465,"<b><a href=\""+relativepathtomainhtml+"#photoID23\">SANY1607</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1607.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1607-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 11:41:17<br />E139°28′6.54″<br />N35°58′28.74″<br />211m<br />埼玉県比企郡川島町上伊草<hr /></small>");
	addWayPoints(map, 1,139.468483333333,35.97465,"<b><a href=\""+relativepathtomainhtml+"#photoID24\">SANY1608</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1608.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1608-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 11:41:28<br />E139°28′6.54″<br />N35°58′28.74″<br />211m<br />埼玉県比企郡川島町上伊草<hr /></small>");
	addWayPoints(map, 1,139.359583333333,35.9782666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID25\">SANY1614</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1614.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1614-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 13:11:25<br />E139°21′34.50″<br />N35°58′41.76″<br />38m<br />埼玉県比企郡鳩山町石坂<hr /></small>");
	addWayPoints(map, 1,139.255233333333,35.9937833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID26\">SANY1619</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1619.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1619-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:29:17<br />E139°15′18.84″<br />N35°59′37.62″<br />418m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.25515,35.9937333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID27\">SANY1620</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1620.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1620-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:30:10<br />E139°15′18.54″<br />N35°59′37.44″<br />416m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.255166666667,35.9937333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID28\">SANY1621</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1621.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1621-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:30:27<br />E139°15′18.60″<br />N35°59′37.44″<br />417m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.255166666667,35.9937333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID29\">SANY1622</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1622.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1622-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:30:42<br />E139°15′18.60″<br />N35°59′37.44″<br />418m<br />埼玉県比企郡都幾川村大附<hr /></small>");
	addWayPoints(map, 1,139.222616666667,35.9796666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID30\">SANY1625</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1625.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1625-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:53:41<br />E139°13′21.42″<br />N35°58′46.80″<br />309m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID31\">SANY1626</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1626.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1626-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:54:29<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID32\">SANY1627</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1627.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1627-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:55:07<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.222583333333,35.97965,"<b><a href=\""+relativepathtomainhtml+"#photoID33\">SANY1628</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1628.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1628-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 14:55:22<br />E139°13′21.30″<br />N35°58′46.74″<br />308m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.218516666667,35.9811166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID34\">SANY1629</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1629.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1629-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:01:11<br />E139°13′6.66″<br />N35°58′52.02″<br />418m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.210616666667,35.9736333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID35\">SANY1630</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1630.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1630-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:09:22<br />E139°12′38.22″<br />N35°58′25.08″<br />711m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.210616666667,35.9736333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID36\">SANY1631</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1631.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1631-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:09:29<br />E139°12′38.22″<br />N35°58′25.08″<br />710m<br />埼玉県比企郡都幾川村椚平<hr /></small>");
	addWayPoints(map, 1,139.15775,36.0142333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID37\">SANY1632</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1632.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1632-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:47:23<br />E139°9′27.90″<br />N36°0′51.24″<br />580m<br />埼玉県秩父市定峰<hr /></small>");
	addWayPoints(map, 1,139.157733333333,36.0142166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID38\">SANY1633</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1633.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1633-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:49:55<br />E139°9′27.84″<br />N36°0′51.18″<br />579m<br />埼玉県秩父市定峰<hr /></small>");
	addWayPoints(map, 1,139.18685,35.9977333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID39\">SANY1634</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1634.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1634-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:58:24<br />E139°11′12.66″<br />N35°59′51.84″<br />823m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.18685,35.9977333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID40\">SANY1635</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1635.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1635-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:58:37<br />E139°11′12.66″<br />N35°59′51.84″<br />823m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.18685,35.9977333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID41\">SANY1636</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1636.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1636-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 15:58:46<br />E139°11′12.66″<br />N35°59′51.84″<br />823m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.202416666667,36.0074333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID42\">SANY1638</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1638.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1638-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:09:13<br />E139°12′8.70″<br />N36°0′26.76″<br />575m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.197316666667,36.01065,"<b><a href=\""+relativepathtomainhtml+"#photoID43\">SANY1640</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1640.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1640-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:12:08<br />E139°11′50.34″<br />N36°0′38.34″<br />561m<br />埼玉県比企郡都幾川村大野<hr /></small>");
	addWayPoints(map, 1,139.191133333333,36.0131833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID44\">SANY1642</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1642.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1642-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:18:56<br />E139°11′28.08″<br />N36°0′47.46″<br />693m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.191133333333,36.0131833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID45\">SANY1643</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1643.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1643-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:19:00<br />E139°11′28.08″<br />N36°0′47.46″<br />693m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.191133333333,36.0131666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID46\">SANY1644</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1644.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1644-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:20:09<br />E139°11′28.08″<br />N36°0′47.40″<br />693m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.1818,36.0258666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID47\">SANY1645</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1645.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1645-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 16:26:49<br />E139°10′54.48″<br />N36°1′33.12″<br />601m<br />埼玉県比企郡小川町腰越<hr /></small>");
	addWayPoints(map, 1,139.366333333333,35.9792166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID48\">SANY1646</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1646.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1646-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 17:36:00<br />E139°21′58.80″<br />N35°58′45.18″<br />47m<br />埼玉県比企郡鳩山町石坂<hr /></small>");
	addWayPoints(map, 1,139.3666,35.9789833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID49\">SANY1647</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1647.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1647-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 17:41:23<br />E139°21′59.76″<br />N35°58′44.34″<br />53m<br />埼玉県比企郡鳩山町石坂<hr /></small>");
	addWayPoints(map, 1,139.366616666667,35.97905,"<b><a href=\""+relativepathtomainhtml+"#photoID50\">SANY1648</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1648.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1648-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:13 19:12:56<br />E139°21′59.82″<br />N35°58′44.58″<br />42m<br />埼玉県比企郡鳩山町石坂<hr /></small>");


	if (numofwaypoints == 0)
	{
		hiddenLAYER('waypointcombo');
	}
	if (numofphotos==0)
	{
		hiddenLAYER('photocombo');
	}
	if (callHiddenLayers==1)
	{
		hiddenLayers();
	}
	
} // end of load() function.


var moveMarker;
var obj2;
var strStart ="開始";
var strStop = "始点へ";
var strPause ="一時停止";
function operateTracking(obj) 
{
	if(obj.value == strStart)
	{
		obj.value = strPause;
		panTo(strStart, obj);
		obj2 = obj;
	}
	else if (obj.value == strPause)
	{
		panTo(strPause, obj);
		obj2 = obj;
	}
	else if (obj.value == strStop)
	{
		panTo(strStop, obj);
		if (obj2) obj2.value=strStart;
	}
	else
	{
		obj.value="";
	}
}
    

var iCurrent=0;
var timerID;
function panTo(state, obj)
{
	if (state==strStart)
	{
		map.panTo(points[iCurrent]);
		if (moveMarker == null)
		{
			moveMarker = new GMarker(points[iCurrent], movemarkerIcon);
			map.addOverlay(moveMarker);
		}
		else
		{
			moveMarker.setLatLng(points[iCurrent]);
		}
		iCurrent++;
		if (timerID != null) window.clearTimeout(timerID);
		timerID = window.setTimeout(function(){ panTo(strStart, obj); }, 60000/points.length);
		if (iCurrent==points.length)
		{
			obj.value=strStart;
			panTo(strStop, obj);
		}
	}
	else if (state==strStop)
	{
		iCurrent=0;
		if (moveMarker == null)
		{
			moveMarker = new GMarker(points[iCurrent], movemarkerIcon);
			map.addOverlay(moveMarker);
		}
		else
		{
			moveMarker.setLatLng(points[iCurrent]);
		}
		map.panTo(points[iCurrent]);
		if (timerID != null) window.clearTimeout(timerID);
	}
	else
	{
		obj.value = strStart;
		if (timerID != null) window.clearTimeout(timerID);
	}
}	

// 指定された写真へジャンプ
function jumpphotomarker(n)
{
	photo_markers[n-1].openInfoWindowHtml(photo_infos[n-1]);
	location.hash="#googlemap";
}
	
// 指定されたマーカーへジャンプ
function jumpwaypointmarker(n)
{
	waypoint_markers[n-1].openInfoWindowHtml(waypoint_infos[n-1]);
	location.hash="#googlemap";
}

// グラフは初期状態では消しておく
function hiddenLayers()
{
	hiddenLAYER('graph1');
	hiddenLAYER('graph2');
	hiddenLAYER('graph3');
}

// 指定したレイヤーを非表示にする
function hiddenLAYER(idName)
{ 
	if ( document.getElementById )
	{
		document.getElementById( idName ).style.visibility='hidden';
	}
	else if ( document.all )
	{
		document.all( idName ).style.visibility = 'hidden';
	}
	else if ( document.layers )
	{
		document.layers[ idName ].visibility = 'hidden';
	}
}

// 指定したレイヤーを表示する
function showLAYER(idName)
{
	if ( document.getElementById )
	{
		document.getElementById( idName ).style.visibility   = 'visible';
	}
	else if ( document.all )
	{
		document.all( idName ).style.visibility = 'visible';
	}
	else if ( document.layers )
	{
		document.layers[ idName ].visibility = 'visible';
	}
}

// 地図を表示する
function showMapPop( idName, lat, lon )
{ 
	var svalue;
	var zoomlevel;
	if (map == null)
	{
		if (currentzoom == null)
		{
			zoomlevel=12; // 指定がない場合	
		}
		else
		{
			zoomlevel=currentzoom; // htmlファイルに?xxでズームレベルが渡されたとき
		}
	}
	else
	{
		zoomlevel=map.getZoom();
	}
	svalue = ".<img src=\"http://maps.google.com/staticmap?center="+lat+","+lon+"&markers="+lat+","+lon+",blue&zoom="+zoomlevel+"&size=240x240&key="+key+"\" width=\"240\" height=\"240\"  />.";

	if ( document.getElementById )
	{
		document.getElementById( idName ).style.display="block";
		document.getElementById( idName ).innerHTML = svalue;
	}
	else if ( document.all )
	{
		 document.all( idName ).style.display="block";
		 document.all( idName ).innerHTML=svalue;
	}
	else if ( document.layers )
	{ 
		document.layers[ idName ].display = "block";
		document.layers[ idName ].innerHTML  = svalue;
	}
}

// 地図を消す
function hideMapPop( idName )
{
	if ( document.getElementById )
	{
		document.getElementById( idName ).style.display="none";
	}
	else if ( document.all )
	{
		document.all( idName ).style.display="none";
	}
	else if ( document.layers )
	{
		document.layers[ idName ].display="none";
	}
}

// ズームレベルを渡しながらページを移動する。
function goPhotopage(url, hash)
{
	location.href=url+"?"+map.getZoom()+hash;
}
