// Generated by trk2googlemaps and kml ( http://etoh.minidns.net/gps/ )
// 本コードはtrk2googlemaps and kmlによって自動生成されました。
numofwaypoints=0;
posofwaypoints=0;
numofphotos=45;
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 = "arakawa.files/time-alt.png";

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

	// 時刻－速度
	var speed = new Image();
	speed.src = "arakawa.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.8453,139.6314));
	points.push(new GLatLng(35.84663,139.627));
	points.push(new GLatLng(35.84483,139.6238));
	points.push(new GLatLng(35.84416,139.623));
	points.push(new GLatLng(35.84094,139.6184));
	points.push(new GLatLng(35.84304,139.616));
	points.push(new GLatLng(35.84474,139.6151));
	points.push(new GLatLng(35.84753,139.6137));
	points.push(new GLatLng(35.84961,139.6122));
	points.push(new GLatLng(35.84978,139.6121));
	points.push(new GLatLng(35.85324,139.6089));
	points.push(new GLatLng(35.85275,139.6089));
	points.push(new GLatLng(35.85025,139.6057));
	points.push(new GLatLng(35.84803,139.6028));
	points.push(new GLatLng(35.85322,139.597));
	points.push(new GLatLng(35.85772,139.5929));
	points.push(new GLatLng(35.85944,139.5954));
	points.push(new GLatLng(35.85948,139.5951));
	points.push(new GLatLng(35.85901,139.594));
	points.push(new GLatLng(35.85856,139.5929));
	points.push(new GLatLng(35.85845,139.5908));
	points.push(new GLatLng(35.86148,139.5874));
	points.push(new GLatLng(35.8645,139.5841));
	points.push(new GLatLng(35.86538,139.5833));
	points.push(new GLatLng(35.86933,139.5852));
	points.push(new GLatLng(35.86924,139.5826));
	points.push(new GLatLng(35.86933,139.5814));
	points.push(new GLatLng(35.87442,139.5779));
	points.push(new GLatLng(35.88268,139.5704));
	points.push(new GLatLng(35.8833,139.5716));
	points.push(new GLatLng(35.88409,139.5732));
	points.push(new GLatLng(35.88577,139.5751));
	points.push(new GLatLng(35.88583,139.5752));
	points.push(new GLatLng(35.88624,139.576));
	points.push(new GLatLng(35.88772,139.5788));
	points.push(new GLatLng(35.88665,139.5765));
	points.push(new GLatLng(35.88395,139.5714));
	points.push(new GLatLng(35.88602,139.5703));
	points.push(new GLatLng(35.88564,139.5681));
	points.push(new GLatLng(35.89027,139.566));
	points.push(new GLatLng(35.89088,139.5679));
	points.push(new GLatLng(35.89212,139.5649));
	points.push(new GLatLng(35.89188,139.5638));
	points.push(new GLatLng(35.91212,139.556));
	points.push(new GLatLng(35.91459,139.5515));
	points.push(new GLatLng(35.91433,139.5471));
	points.push(new GLatLng(35.91669,139.5478));
	points.push(new GLatLng(35.92263,139.5451));
	points.push(new GLatLng(35.9436,139.5463));
	points.push(new GLatLng(35.95422,139.5442));
	points.push(new GLatLng(35.95834,139.5453));
	points.push(new GLatLng(35.96338,139.5411));
	points.push(new GLatLng(35.96505,139.5408));
	points.push(new GLatLng(35.96965,139.5364));
	points.push(new GLatLng(35.97068,139.5349));
	points.push(new GLatLng(35.97085,139.5315));
	points.push(new GLatLng(35.97076,139.5314));
	points.push(new GLatLng(35.96894,139.5299));
	points.push(new GLatLng(35.96619,139.5255));
	points.push(new GLatLng(35.96323,139.5201));
	points.push(new GLatLng(35.96411,139.5181));
	points.push(new GLatLng(35.9649,139.5171));
	points.push(new GLatLng(35.98366,139.5137));
	points.push(new GLatLng(35.98516,139.5146));
	points.push(new GLatLng(35.99026,139.5086));
	points.push(new GLatLng(35.99471,139.5048));
	points.push(new GLatLng(35.99447,139.5046));
	points.push(new GLatLng(35.99361,139.5029));
	points.push(new GLatLng(35.984,139.5079));
	points.push(new GLatLng(35.98379,139.5092));
	points.push(new GLatLng(35.98546,139.5122));
	points.push(new GLatLng(35.98501,139.5128));
	points.push(new GLatLng(35.98404,139.5135));
	points.push(new GLatLng(35.96769,139.5282));
	points.push(new GLatLng(35.96626,139.5256));
	points.push(new GLatLng(35.964,139.5215));
	points.push(new GLatLng(35.96196,139.5216));
	points.push(new GLatLng(35.96424,139.5261));
	points.push(new GLatLng(35.96329,139.5254));
	points.push(new GLatLng(35.9617,139.5219));
	points.push(new GLatLng(35.96055,139.5233));
	points.push(new GLatLng(35.96025,139.5243));
	points.push(new GLatLng(35.95999,139.5249));
	points.push(new GLatLng(35.9586,139.528));
	points.push(new GLatLng(35.95853,139.5297));
	points.push(new GLatLng(35.95909,139.5305));
	points.push(new GLatLng(35.95889,139.5335));
	points.push(new GLatLng(35.95372,139.5386));
	points.push(new GLatLng(35.9548,139.538));
	points.push(new GLatLng(35.9608,139.5357));
	points.push(new GLatLng(35.95922,139.5363));
	points.push(new GLatLng(35.95889,139.5334));
	points.push(new GLatLng(35.95907,139.5312));
	points.push(new GLatLng(35.95999,139.5248));
	points.push(new GLatLng(35.96089,139.5227));
	points.push(new GLatLng(35.96297,139.5201));
	points.push(new GLatLng(35.96492,139.5171));
	points.push(new GLatLng(35.96514,139.5169));
	points.push(new GLatLng(35.97083,139.5128));
	points.push(new GLatLng(35.97138,139.512));
	points.push(new GLatLng(35.97132,139.5083));
	points.push(new GLatLng(35.97735,139.5047));
	points.push(new GLatLng(35.97829,139.5042));
	points.push(new GLatLng(35.97857,139.5046));
	points.push(new GLatLng(35.97874,139.5057));
	points.push(new GLatLng(35.98207,139.5073));
	points.push(new GLatLng(35.98314,139.5101));
	points.push(new GLatLng(35.98306,139.51));
	points.push(new GLatLng(35.984,139.5066));
	points.push(new GLatLng(35.98376,139.5056));
	points.push(new GLatLng(35.98336,139.5037));
	points.push(new GLatLng(35.98327,139.5034));
	points.push(new GLatLng(35.98272,139.5014));
	points.push(new GLatLng(35.98844,139.503));
	points.push(new GLatLng(35.99421,139.5024));
	points.push(new GLatLng(35.99615,139.5004));
	points.push(new GLatLng(35.99739,139.4994));
	points.push(new GLatLng(35.99758,139.4985));
	points.push(new GLatLng(36.00776,139.5001));
	points.push(new GLatLng(36.00906,139.4991));
	points.push(new GLatLng(36.00889,139.4978));
	points.push(new GLatLng(36.00889,139.4961));
	points.push(new GLatLng(36.00945,139.494));
	points.push(new GLatLng(36.01209,139.4896));
	points.push(new GLatLng(36.01419,139.4877));
	points.push(new GLatLng(36.02194,139.481));
	points.push(new GLatLng(36.02177,139.4823));
	points.push(new GLatLng(36.02097,139.4909));
	points.push(new GLatLng(36.0205,139.4949));
	points.push(new GLatLng(36.02037,139.4961));
	points.push(new GLatLng(36.02005,139.4985));
	points.push(new GLatLng(36.0222,139.499));
	points.push(new GLatLng(36.02642,139.4999));
	points.push(new GLatLng(36.03535,139.4933));
	points.push(new GLatLng(36.03591,139.4928));
	points.push(new GLatLng(36.03565,139.494));
	points.push(new GLatLng(36.0417,139.497));
	points.push(new GLatLng(36.04348,139.4963));
	points.push(new GLatLng(36.05602,139.4855));
	points.push(new GLatLng(36.05676,139.4837));
	points.push(new GLatLng(36.05786,139.4801));
	points.push(new GLatLng(36.05889,139.4761));
	points.push(new GLatLng(36.05923,139.4735));
	points.push(new GLatLng(36.06144,139.4695));
	points.push(new GLatLng(36.06129,139.4684));
	points.push(new GLatLng(36.06406,139.4668));
	points.push(new GLatLng(36.06588,139.4647));
	points.push(new GLatLng(36.06683,139.4633));
	points.push(new GLatLng(36.06709,139.4613));
	points.push(new GLatLng(36.06734,139.4609));
	points.push(new GLatLng(36.06929,139.4597));
	points.push(new GLatLng(36.07005,139.4585));
	points.push(new GLatLng(36.07118,139.4569));
	points.push(new GLatLng(36.07359,139.4537));
	points.push(new GLatLng(36.0758,139.4493));
	points.push(new GLatLng(36.07543,139.4462));
	points.push(new GLatLng(36.07524,139.4454));
	points.push(new GLatLng(36.07809,139.4444));
	points.push(new GLatLng(36.07876,139.4434));
	points.push(new GLatLng(36.08026,139.4393));
	points.push(new GLatLng(36.08054,139.4387));
	points.push(new GLatLng(36.08155,139.4364));
	points.push(new GLatLng(36.08243,139.4368));
	points.push(new GLatLng(36.08526,139.4325));
	points.push(new GLatLng(36.09337,139.4238));
	points.push(new GLatLng(36.09517,139.4218));
	points.push(new GLatLng(36.10431,139.4199));
	points.push(new GLatLng(36.10513,139.4179));
	points.push(new GLatLng(36.10457,139.412));
	points.push(new GLatLng(36.10498,139.4099));
	points.push(new GLatLng(36.10704,139.4076));
	points.push(new GLatLng(36.10749,139.4071));
	points.push(new GLatLng(36.10848,139.4048));
	points.push(new GLatLng(36.11277,139.4042));
	points.push(new GLatLng(36.11414,139.4044));
	points.push(new GLatLng(36.11427,139.4044));
	points.push(new GLatLng(36.11523,139.4052));
	points.push(new GLatLng(36.11683,139.3992));
	points.push(new GLatLng(36.12185,139.3898));
	points.push(new GLatLng(36.12292,139.3888));
	points.push(new GLatLng(36.12489,139.3873));
	points.push(new GLatLng(36.12657,139.3851));
	points.push(new GLatLng(36.12753,139.3832));
	points.push(new GLatLng(36.12785,139.3818));
	points.push(new GLatLng(36.12779,139.3795));
	points.push(new GLatLng(36.1277,139.377));
	points.push(new GLatLng(36.13064,139.3752));
	points.push(new GLatLng(36.13144,139.3728));
	points.push(new GLatLng(36.13249,139.3696));
	points.push(new GLatLng(36.13373,139.3652));
	points.push(new GLatLng(36.13539,139.3551));
	points.push(new GLatLng(36.13573,139.3531));
	points.push(new GLatLng(36.13605,139.3513));
	points.push(new GLatLng(36.13676,139.3468));
	points.push(new GLatLng(36.13652,139.3452));
	points.push(new GLatLng(36.13564,139.3319));
	points.push(new GLatLng(36.13519,139.3299));
	points.push(new GLatLng(36.13487,139.3286));
	points.push(new GLatLng(36.13393,139.3221));
	points.push(new GLatLng(36.13418,139.3196));
	points.push(new GLatLng(36.1329,139.3193));
	points.push(new GLatLng(36.13309,139.3184));
	points.push(new GLatLng(36.13403,139.3146));
	points.push(new GLatLng(36.13429,139.3134));
	points.push(new GLatLng(36.1344,139.3111));
	points.push(new GLatLng(36.13311,139.3077));
	points.push(new GLatLng(36.13298,139.3067));
	points.push(new GLatLng(36.13184,139.3058));
	points.push(new GLatLng(36.13155,139.3015));
	points.push(new GLatLng(36.13045,139.2999));
	points.push(new GLatLng(36.12764,139.2966));
	points.push(new GLatLng(36.12689,139.292));
	points.push(new GLatLng(36.12605,139.2813));
	points.push(new GLatLng(36.12584,139.2801));
	points.push(new GLatLng(36.12579,139.2799));
	points.push(new GLatLng(36.1256,139.2787));
	points.push(new GLatLng(36.12427,139.2693));
	points.push(new GLatLng(36.12367,139.2664));
	points.push(new GLatLng(36.12376,139.2642));
	points.push(new GLatLng(36.12378,139.2641));
	points.push(new GLatLng(36.12266,139.2625));
	points.push(new GLatLng(36.12251,139.2625));
	points.push(new GLatLng(36.11749,139.2607));
	points.push(new GLatLng(36.11631,139.2595));
	points.push(new GLatLng(36.11442,139.2548));
	points.push(new GLatLng(36.11258,139.2521));
	points.push(new GLatLng(36.11245,139.2496));
	points.push(new GLatLng(36.11225,139.2479));
	points.push(new GLatLng(36.11215,139.2472));
	points.push(new GLatLng(36.11191,139.246));
	points.push(new GLatLng(36.11187,139.2404));
	points.push(new GLatLng(36.11169,139.2349));
	points.push(new GLatLng(36.11157,139.2328));
	points.push(new GLatLng(36.11131,139.2313));
	points.push(new GLatLng(36.1106,139.2269));
	points.push(new GLatLng(36.11037,139.2223));
	points.push(new GLatLng(36.1085,139.2207));
	points.push(new GLatLng(36.1086,139.2194));
	points.push(new GLatLng(36.10884,139.217));
	points.push(new GLatLng(36.10895,139.2153));
	points.push(new GLatLng(36.10899,139.2151));
	points.push(new GLatLng(36.11873,139.2112));
	points.push(new GLatLng(36.11949,139.2114));
	points.push(new GLatLng(36.12228,139.2128));
	points.push(new GLatLng(36.1221,139.2162));
	points.push(new GLatLng(36.12217,139.2165));
	points.push(new GLatLng(36.12146,139.2231));
	points.push(new GLatLng(36.12112,139.2269));
	points.push(new GLatLng(36.12199,139.2396));
	points.push(new GLatLng(36.12189,139.2398));
	points.push(new GLatLng(36.12099,139.2365));
	points.push(new GLatLng(36.12088,139.2277));
	points.push(new GLatLng(36.12101,139.2262));
	points.push(new GLatLng(36.1212,139.2242));
	points.push(new GLatLng(36.12133,139.2227));
	points.push(new GLatLng(36.12208,139.2125));
	points.push(new GLatLng(36.11974,139.2116));
	points.push(new GLatLng(36.1173,139.2173));
	points.push(new GLatLng(36.1152,139.2202));
	points.push(new GLatLng(36.11517,139.22));
	points.push(new GLatLng(36.1156,139.2188));
	points.push(new GLatLng(36.11648,139.2176));
	points.push(new GLatLng(36.11964,139.2135));
	points.push(new GLatLng(36.11738,139.2114));
	points.push(new GLatLng(36.11706,139.2108));
	points.push(new GLatLng(36.11168,139.2111));
	points.push(new GLatLng(36.11153,139.2111));
	points.push(new GLatLng(36.10918,139.2142));
	points.push(new GLatLng(36.10899,139.216));
	points.push(new GLatLng(36.1086,139.22));
	points.push(new GLatLng(36.11045,139.2226));
	points.push(new GLatLng(36.11157,139.2325));
	points.push(new GLatLng(36.11178,139.2355));
	points.push(new GLatLng(36.1118,139.2361));
	points.push(new GLatLng(36.11206,139.2463));
	points.push(new GLatLng(36.10931,139.2482));
	points.push(new GLatLng(36.10631,139.248));
	points.push(new GLatLng(36.10511,139.247));
	points.push(new GLatLng(36.10374,139.2457));
	points.push(new GLatLng(36.10305,139.2446));
	points.push(new GLatLng(36.10257,139.2422));
	points.push(new GLatLng(36.10232,139.241));
	points.push(new GLatLng(36.10167,139.2419));
	points.push(new GLatLng(36.10086,139.2457));
	points.push(new GLatLng(36.10075,139.2458));
	points.push(new GLatLng(36.09946,139.2478));
	points.push(new GLatLng(36.0956,139.2509));
	points.push(new GLatLng(36.09442,139.2498));
	points.push(new GLatLng(36.09018,139.2493));
	points.push(new GLatLng(36.08736,139.2517));
	points.push(new GLatLng(36.08228,139.254));
	points.push(new GLatLng(36.07133,139.252));
	points.push(new GLatLng(36.07039,139.252));
	points.push(new GLatLng(36.06981,139.253));
	points.push(new GLatLng(36.06769,139.2601));
	points.push(new GLatLng(36.06767,139.2608));
	points.push(new GLatLng(36.05323,139.3025));
	points.push(new GLatLng(36.04309,139.3141));
	points.push(new GLatLng(36.04262,139.3146));
	points.push(new GLatLng(36.04196,139.3154));
	points.push(new GLatLng(36.04044,139.317));
	points.push(new GLatLng(36.03953,139.3184));
	points.push(new GLatLng(36.03923,139.3194));
	points.push(new GLatLng(36.03883,139.3214));
	points.push(new GLatLng(36.03674,139.3264));
	points.push(new GLatLng(36.03645,139.3293));
	points.push(new GLatLng(36.03681,139.3307));
	points.push(new GLatLng(36.0379,139.3343));
	points.push(new GLatLng(36.03818,139.3352));
	points.push(new GLatLng(36.03825,139.3354));
	points.push(new GLatLng(36.03855,139.3365));
	points.push(new GLatLng(36.03953,139.3419));
	points.push(new GLatLng(36.03964,139.3425));
	points.push(new GLatLng(36.03971,139.3432));
	points.push(new GLatLng(36.03719,139.3569));
	points.push(new GLatLng(36.03494,139.3624));
	points.push(new GLatLng(36.03413,139.3644));
	points.push(new GLatLng(36.03357,139.3657));
	points.push(new GLatLng(36.03316,139.3667));
	points.push(new GLatLng(36.02996,139.3756));
	points.push(new GLatLng(36.02973,139.3814));
	points.push(new GLatLng(36.02958,139.385));
	points.push(new GLatLng(36.02868,139.3854));
	points.push(new GLatLng(36.02769,139.3843));
	points.push(new GLatLng(36.02668,139.3835));
	points.push(new GLatLng(36.01612,139.3845));
	points.push(new GLatLng(36.0152,139.3851));
	points.push(new GLatLng(36.00282,139.3894));
	points.push(new GLatLng(36.00243,139.3943));
	points.push(new GLatLng(35.99834,139.3958));
	points.push(new GLatLng(35.99018,139.3964));
	points.push(new GLatLng(35.98988,139.3971));
	points.push(new GLatLng(35.99029,139.3982));
	points.push(new GLatLng(35.99112,139.4006));
	points.push(new GLatLng(35.98454,139.4034));
	points.push(new GLatLng(35.98533,139.4058));
	points.push(new GLatLng(35.98846,139.4091));
	points.push(new GLatLng(35.99207,139.4167));
	points.push(new GLatLng(35.99248,139.4179));
	points.push(new GLatLng(35.99595,139.4288));
	points.push(new GLatLng(35.99608,139.4297));
	points.push(new GLatLng(35.99608,139.4299));
	points.push(new GLatLng(35.98293,139.4392));
	points.push(new GLatLng(35.9813,139.4409));
	points.push(new GLatLng(35.98074,139.4417));
	points.push(new GLatLng(35.97975,139.4435));
	points.push(new GLatLng(35.97906,139.4446));
	points.push(new GLatLng(35.97789,139.4464));
	points.push(new GLatLng(35.97778,139.4468));
	points.push(new GLatLng(35.97748,139.4491));
	points.push(new GLatLng(35.96669,139.4591));
	points.push(new GLatLng(35.9592,139.4709));
	points.push(new GLatLng(35.95913,139.4762));
	points.push(new GLatLng(35.95924,139.474));
	points.push(new GLatLng(35.9592,139.4727));
	points.push(new GLatLng(35.95628,139.4738));
	points.push(new GLatLng(35.95523,139.478));
	points.push(new GLatLng(35.95499,139.4798));
	points.push(new GLatLng(35.9548,139.4887));
	points.push(new GLatLng(35.95461,139.4908));
	points.push(new GLatLng(35.95461,139.4909));
	points.push(new GLatLng(35.95248,139.5125));
	points.push(new GLatLng(35.95632,139.5157));
	points.push(new GLatLng(35.95383,139.5251));
	points.push(new GLatLng(35.95327,139.5261));
	points.push(new GLatLng(35.95332,139.5273));
	points.push(new GLatLng(35.95297,139.5286));
	points.push(new GLatLng(35.95317,139.5309));
	points.push(new GLatLng(35.91501,139.5431));
	points.push(new GLatLng(35.91323,139.544));
	points.push(new GLatLng(35.91396,139.543));
	points.push(new GLatLng(35.91349,139.5415));
	points.push(new GLatLng(35.91272,139.539));
	points.push(new GLatLng(35.90628,139.5471));
	points.push(new GLatLng(35.90064,139.5552));
	points.push(new GLatLng(35.89779,139.557));
	points.push(new GLatLng(35.88907,139.56));
	points.push(new GLatLng(35.8845,139.5619));
	points.push(new GLatLng(35.87345,139.5717));
	points.push(new GLatLng(35.86195,139.5788));
	points.push(new GLatLng(35.86126,139.5786));
	points.push(new GLatLng(35.86062,139.5766));
	points.push(new GLatLng(35.85933,139.5769));
	points.push(new GLatLng(35.85734,139.5773));
	points.push(new GLatLng(35.85581,139.5798));
	points.push(new GLatLng(35.8536,139.5796));
	points.push(new GLatLng(35.85363,139.5808));
	points.push(new GLatLng(35.8536,139.5811));
	points.push(new GLatLng(35.85118,139.5862));
	points.push(new GLatLng(35.85182,139.5853));
	points.push(new GLatLng(35.85263,139.5851));
	points.push(new GLatLng(35.85543,139.5895));
	points.push(new GLatLng(35.85691,139.5918));
	points.push(new GLatLng(35.85995,139.5967));
	points.push(new GLatLng(35.86049,139.5975));
	points.push(new GLatLng(35.86212,139.6004));
	points.push(new GLatLng(35.86512,139.6058));
	points.push(new GLatLng(35.86618,139.6095));
	points.push(new GLatLng(35.86725,139.6134));
	points.push(new GLatLng(35.86545,139.6158));
	wpt_points.push(new GLatLng(35.8432,139.615883333333));
	wpt_points.push(new GLatLng(35.84965,139.600783333333));
	wpt_points.push(new GLatLng(35.85545,139.594133333333));
	wpt_points.push(new GLatLng(35.8535166666667,139.5963));
	wpt_points.push(new GLatLng(35.8531833333333,139.5968));
	wpt_points.push(new GLatLng(35.8657,139.583316666667));
	wpt_points.push(new GLatLng(35.8755666666667,139.577116666667));
	wpt_points.push(new GLatLng(35.8918833333333,139.563083333333));
	wpt_points.push(new GLatLng(35.9011666666667,139.560616666667));
	wpt_points.push(new GLatLng(35.90685,139.560516666667));
	wpt_points.push(new GLatLng(35.9149166666667,139.547483333333));
	wpt_points.push(new GLatLng(35.95635,139.542383333333));
	wpt_points.push(new GLatLng(35.97215,139.533266666667));
	wpt_points.push(new GLatLng(35.9653166666667,139.51705));
	wpt_points.push(new GLatLng(35.9747166666667,139.518833333333));
	wpt_points.push(new GLatLng(35.9776166666667,139.520466666667));
	wpt_points.push(new GLatLng(35.9776166666667,139.520466666667));
	wpt_points.push(new GLatLng(35.9776166666667,139.520466666667));
	wpt_points.push(new GLatLng(35.9776333333333,139.520416666667));
	wpt_points.push(new GLatLng(35.9736666666667,139.524083333333));
	wpt_points.push(new GLatLng(35.9918333333333,139.507383333333));
	wpt_points.push(new GLatLng(35.9918333333333,139.507383333333));
	wpt_points.push(new GLatLng(35.9918333333333,139.507383333333));
	wpt_points.push(new GLatLng(35.9614166666667,139.522683333333));
	wpt_points.push(new GLatLng(35.9623666666667,139.536883333333));
	wpt_points.push(new GLatLng(35.95935,139.526566666667));
	wpt_points.push(new GLatLng(36.0000166666667,139.49915));
	wpt_points.push(new GLatLng(36.0209166666667,139.49125));
	wpt_points.push(new GLatLng(36.0476666666667,139.49405));
	wpt_points.push(new GLatLng(36.0622,139.46755));
	wpt_points.push(new GLatLng(36.0785,139.443816666667));
	wpt_points.push(new GLatLng(36.0932166666667,139.425916666667));
	wpt_points.push(new GLatLng(36.0932666666667,139.42515));
	wpt_points.push(new GLatLng(36.1110666666667,139.40405));
	wpt_points.push(new GLatLng(36.1155333333333,139.405216666667));
	wpt_points.push(new GLatLng(36.1275166666667,139.376583333333));
	wpt_points.push(new GLatLng(36.1336166666667,139.323866666667));
	wpt_points.push(new GLatLng(36.13445,139.307866666667));
	wpt_points.push(new GLatLng(36.1330166666667,139.306366666667));
	wpt_points.push(new GLatLng(36.133,139.306366666667));
	wpt_points.push(new GLatLng(36.133,139.306383333333));
	wpt_points.push(new GLatLng(36.10895,139.2153));
	wpt_points.push(new GLatLng(36.1189666666667,139.211283333333));
	wpt_points.push(new GLatLng(36.1197833333333,139.213116666667));
	wpt_points.push(new GLatLng(36.1197833333333,139.2131));


	// 表示の中心位置・サイズを算出します。
	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.615883333333,35.8432,"<b><a href=\""+relativepathtomainhtml+"#photoID1\">SANY1649</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1649.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1649-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:03:06<br />E139°36′57.18″<br />N35°50′35.52″<br />16m<br />埼玉県さいたま市桜区西堀<hr /></small>");
	addWayPoints(map, 1,139.600783333333,35.84965,"<b><a href=\""+relativepathtomainhtml+"#photoID2\">SANY1653</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1653.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1653-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:09:45<br />E139°36′2.82″<br />N35°50′58.74″<br />11m<br />埼玉県さいたま市桜区下大久保<hr /></small>");
	addWayPoints(map, 1,139.594133333333,35.85545,"<b><a href=\""+relativepathtomainhtml+"#photoID3\">SANY1655</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1655.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1655-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:12:32<br />E139°35′38.88″<br />N35°51′19.62″<br />11m<br />埼玉県さいたま市桜区下大久保<hr /></small>");
	addWayPoints(map, 1,139.5963,35.8535166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID4\">SANY1656</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1656.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1656-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:13:13<br />E139°35′46.68″<br />N35°51′12.66″<br />10m<br />埼玉県さいたま市桜区上大久保<hr /></small>");
	addWayPoints(map, 1,139.5968,35.8531833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID5\">SANY1657</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1657.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1657-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:13:55<br />E139°35′48.48″<br />N35°51′11.46″<br />10m<br />埼玉県さいたま市桜区神田<hr /></small>");
	addWayPoints(map, 1,139.583316666667,35.8657,"<b><a href=\""+relativepathtomainhtml+"#photoID6\">SANY1659</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1659.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1659-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:18:52<br />E139°34′59.94″<br />N35°51′56.52″<br />16m<br />埼玉県さいたま市桜区白鍬<hr /></small>");
	addWayPoints(map, 1,139.577116666667,35.8755666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID7\">SANY1661</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1661.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1661-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:25:16<br />E139°34′37.62″<br />N35°52′32.04″<br />21m<br />埼玉県さいたま市桜区在家<hr /></small>");
	addWayPoints(map, 1,139.563083333333,35.8918833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID8\">SANY1666</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1666.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1666-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:35:32<br />E139°33′47.10″<br />N35°53′30.78″<br />22m<br />埼玉県さいたま市西区植田谷本村新田<hr /></small>");
	addWayPoints(map, 1,139.560616666667,35.9011666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID9\">SANY1667</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1667.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1667-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:39:16<br />E139°33′38.22″<br />N35°54′4.20″<br />21m<br />埼玉県さいたま市西区西遊馬<hr /></small>");
	addWayPoints(map, 1,139.560516666667,35.90685,"<b><a href=\""+relativepathtomainhtml+"#photoID10\">SANY1669</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1669.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1669-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:42:31<br />E139°33′37.86″<br />N35°54′24.66″<br />27m<br />埼玉県さいたま市西区西遊馬<hr /></small>");
	addWayPoints(map, 1,139.547483333333,35.9149166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID11\">SANY1672</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1672.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1672-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 10:54:04<br />E139°32′50.94″<br />N35°54′53.70″<br />22m<br />埼玉県川越市古谷本郷<hr /></small>");
	addWayPoints(map, 1,139.542383333333,35.95635,"<b><a href=\""+relativepathtomainhtml+"#photoID12\">SANY1676</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1676.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1676-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:09:27<br />E139°32′32.58″<br />N35°57′22.86″<br />22m<br />埼玉県上尾市畔吉<hr /></small>");
	addWayPoints(map, 1,139.533266666667,35.97215,"<b><a href=\""+relativepathtomainhtml+"#photoID13\">SANY1677</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1677.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1677-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:19:02<br />E139°31′59.76″<br />N35°58′19.74″<br />38m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.51705,35.9653166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID14\">SANY1679</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1679.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1679-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:22:48<br />E139°31′1.38″<br />N35°57′55.14″<br />40m<br />埼玉県比企郡川島町下大屋敷<hr /></small>");
	addWayPoints(map, 1,139.518833333333,35.9747166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID15\">SANY1680</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1680.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1680-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:25:06<br />E139°31′7.80″<br />N35°58′28.98″<br />39m<br />埼玉県比企郡川島町出丸下郷<hr /></small>");
	addWayPoints(map, 1,139.520466666667,35.9776166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID16\">SANY1682</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1682.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1682-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:28:51<br />E139°31′13.68″<br />N35°58′39.42″<br />23m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.520466666667,35.9776166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID17\">SANY1683</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1683.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1683-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:29:05<br />E139°31′13.68″<br />N35°58′39.42″<br />22m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.520466666667,35.9776166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID18\">SANY1684</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1684.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1684-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:29:20<br />E139°31′13.68″<br />N35°58′39.42″<br />22m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.520416666667,35.9776333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID19\">SANY1686</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1686.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1686-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:34:35<br />E139°31′13.50″<br />N35°58′39.48″<br />16m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.524083333333,35.9736666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID20\">SANY1692</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1692.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1692-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 11:53:14<br />E139°31′26.70″<br />N35°58′25.20″<br />6m<br />埼玉県桶川市川田谷<hr /></small>");
	addWayPoints(map, 1,139.507383333333,35.9918333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID21\">SANY1695</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1695.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1695-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:05:19<br />E139°30′26.58″<br />N35°59′30.60″<br />24m<br />埼玉県比企郡川島町東野<hr /></small>");
	addWayPoints(map, 1,139.507383333333,35.9918333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID22\">SANY1696</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1696.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1696-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:05:29<br />E139°30′26.58″<br />N35°59′30.60″<br />24m<br />埼玉県比企郡川島町東野<hr /></small>");
	addWayPoints(map, 1,139.507383333333,35.9918333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID23\">SANY1697</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1697.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1697-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:05:49<br />E139°30′26.58″<br />N35°59′30.60″<br />25m<br />埼玉県比企郡川島町東野<hr /></small>");
	addWayPoints(map, 1,139.522683333333,35.9614166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID24\">SANY1700</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1700.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1700-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:20:49<br />E139°31′21.66″<br />N35°57′41.10″<br />24m<br />埼玉県比企郡川島町出丸中郷<hr /></small>");
	addWayPoints(map, 1,139.536883333333,35.9623666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID25\">SANY1702</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1702.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1702-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:39:47<br />E139°32′12.78″<br />N35°57′44.52″<br />18m<br />埼玉県上尾市領家<hr /></small>");
	addWayPoints(map, 1,139.526566666667,35.95935,"<b><a href=\""+relativepathtomainhtml+"#photoID26\">SANY1704</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1704.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1704-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 12:43:16<br />E139°31′35.64″<br />N35°57′33.66″<br />19m<br />埼玉県比企郡川島町出丸中郷<hr /></small>");
	addWayPoints(map, 1,139.49915,36.0000166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID27\">SANY1706</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1706.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1706-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:01:51<br />E139°29′56.94″<br />N36°0′0.06″<br />20m<br />埼玉県比企郡川島町東部<hr /></small>");
	addWayPoints(map, 1,139.49125,36.0209166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID28\">SANY1709</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1709.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1709-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:11:11<br />E139°29′28.50″<br />N36°1′15.30″<br />17m<br />埼玉県比企郡吉見町江和井<hr /></small>");
	addWayPoints(map, 1,139.49405,36.0476666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID29\">SANY1711</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1711.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1711-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:17:57<br />E139°29′38.58″<br />N36°2′51.60″<br />22m<br />埼玉県鴻巣市滝馬室<hr /></small>");
	addWayPoints(map, 1,139.46755,36.0622,"<b><a href=\""+relativepathtomainhtml+"#photoID30\">SANY1712</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1712.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1712-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:23:04<br />E139°28′3.18″<br />N36°3′43.92″<br />30m<br />埼玉県比企郡吉見町一ッ木<hr /></small>");
	addWayPoints(map, 1,139.443816666667,36.0785,"<b><a href=\""+relativepathtomainhtml+"#photoID31\">SANY1715</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1715.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1715-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:31:53<br />E139°26′37.74″<br />N36°4′42.60″<br />27m<br />埼玉県比企郡吉見町中曽根<hr /></small>");
	addWayPoints(map, 1,139.425916666667,36.0932166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID32\">SANY1718</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1718.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1718-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:42:06<br />E139°25′33.30″<br />N36°5′35.58″<br />26m<br />埼玉県大里郡大里町玉作<hr /></small>");
	addWayPoints(map, 1,139.42515,36.0932666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID33\">SANY1720</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1720.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1720-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 13:46:01<br />E139°25′30.54″<br />N36°5′35.76″<br />13m<br />埼玉県大里郡大里町玉作<hr /></small>");
	addWayPoints(map, 1,139.40405,36.1110666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID34\">SANY1721</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1721.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1721-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:03:41<br />E139°24′14.58″<br />N36°6′39.84″<br />25m<br />埼玉県大里郡大里町屈戸<hr /></small>");
	addWayPoints(map, 1,139.405216666667,36.1155333333333,"<b><a href=\""+relativepathtomainhtml+"#photoID35\">SANY1722</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1722.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1722-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:09:02<br />E139°24′18.78″<br />N36°6′55.92″<br />41m<br />埼玉県大里郡大里町小泉<hr /></small>");
	addWayPoints(map, 1,139.376583333333,36.1275166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID36\">SANY1723</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1723.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1723-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:13:14<br />E139°22′35.70″<br />N36°7′39.06″<br />43m<br />埼玉県熊谷市万吉<hr /></small>");
	addWayPoints(map, 1,139.323866666667,36.1336166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID37\">SANY1725</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1725.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1725-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:22:19<br />E139°19′25.92″<br />N36°8′1.02″<br />58m<br />埼玉県大里郡江南町押切<hr /></small>");
	addWayPoints(map, 1,139.307866666667,36.13445,"<b><a href=\""+relativepathtomainhtml+"#photoID38\">SANY1726</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1726.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1726-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:26:24<br />E139°18′28.32″<br />N36°8′4.02″<br />60m<br />埼玉県大里郡川本町本田<hr /></small>");
	addWayPoints(map, 1,139.306366666667,36.1330166666667,"<b><a href=\""+relativepathtomainhtml+"#photoID39\">SANY1727</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1727.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1727-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:28:37<br />E139°18′22.92″<br />N36°7′58.86″<br />64m<br />埼玉県大里郡川本町本田<hr /></small>");
	addWayPoints(map, 1,139.306366666667,36.133,"<b><a href=\""+relativepathtomainhtml+"#photoID40\">SANY1728</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1728.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1728-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:28:52<br />E139°18′22.92″<br />N36°7′58.80″<br />65m<br />埼玉県大里郡川本町本田<hr /></small>");
	addWayPoints(map, 1,139.306383333333,36.133,"<b><a href=\""+relativepathtomainhtml+"#photoID41\">SANY1729</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1729.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1729-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:29:03<br />E139°18′22.98″<br />N36°7′58.80″<br />66m<br />埼玉県大里郡川本町本田<hr /></small>");
	addWayPoints(map, 1,139.2153,36.10895,"<b><a href=\""+relativepathtomainhtml+"#photoID42\">SANY1730</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1730.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1730-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:42:41<br />E139°12′55.08″<br />N36°6′32.22″<br />124m<br />埼玉県大里郡寄居町露梨子<hr /></small>");
	addWayPoints(map, 1,139.211283333333,36.1189666666667,"<b><a href=\""+relativepathtomainhtml+"#photoID43\">SANY1731</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1731.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1731-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 14:44:45<br />E139°12′40.62″<br />N36°7′8.28″<br />100m<br />埼玉県大里郡寄居町保田原<hr /></small>");
	addWayPoints(map, 1,139.213116666667,36.1197833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID44\">SANY1733</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1733.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1733-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 15:08:54<br />E139°12′47.22″<br />N36°7′11.22″<br />81m<br />埼玉県大里郡寄居町保田原<hr /></small>");
	addWayPoints(map, 1,139.2131,36.1197833333333,"<b><a href=\""+relativepathtomainhtml+"#photoID45\">SANY1734</a></b><br /><a href=\""+relativepathtosubfolder+"SANY1734.jpg\"  target=\"_blank\"><img src=\""+relativepathtosubfolder+"SANY1734-thumb.jpg\" border=\"0\" width=\"128\" height=\"96\" /></a><br /><small>2008:06:14 15:16:19<br />E139°12′47.16″<br />N36°7′11.22″<br />74m<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;
}
