
// 東京モノレール天王洲アイル駅からのパス
var pointTennnozu1 = [
	{x:908,y:655},
	{x:904,y:645},
	{x:854,y:671},
	{x:849,y:663},
	{x:818,y:681},
	{x:807,y:688},
	{x:808,y:695},
	{x:801,y:698},
	{x:793,y:683},
	{x:782,y:687},
	{x:777,y:678},
	{x:765,y:684}
	];

// りんかい線天王洲アイル駅からのパス
var pointTennnozu2 = [
	{x:930,y:877},
	{x:930,y:854},
	{x:919,y:853},
	{x:878,y:765},
	{x:882,y:738},
	{x:872,y:718},
	{x:845,y:729},
	{x:820,y:680},
	{x:811,y:685},
	{x:808,y:695},
	{x:801,y:699},
	{x:793,y:683},
	{x:783,y:687},
	{x:777,y:678},
	{x:762,y:684}
	];

// JR線品川駅からのパス
var pointTennnozu3 = [
	{x:141,y:134},
	{x:150,y:134},
	{x:153,y:172},
	{x:151,y:192},
	{x:145,y:288},
	{x:142,y:319},
	{x:134,y:418},
	{x:175,y:416},
	{x:183,y:422},
	{x:258,y:408},
	{x:269,y:453},
	{x:270,y:464},
	{x:280,y:476},
	{x:288,y:496},
	{x:332,y:482},
	{x:450,y:466},
	{x:458,y:535},
	{x:481,y:530},
	{x:522,y:523},
	{x:594,y:509},
	{x:596,y:545},
	{x:600,y:555},
	{x:643,y:598},
	{x:679,y:661},
	{x:720,y:640},
	{x:766,y:655},
	{x:776,y:679},
	{x:763,y:684}
	];

var action = null;

// 初期化
function initMapTennozu() {

	if (is_ie6up) {
		document.getElementById('routeRowHeader').innerHTML = '交通手段';
		document.getElementById('route1').innerHTML = '<a href="javascript:guideTennozu1(0);">東京モノレール 天王洲アイル駅</a> 下車 徒歩2分 （<a href="javascript:openPrintWindow(\'map/print_tennozu1.html\')">印刷用表示</a>）';
		document.getElementById('route2').innerHTML = '<a href="javascript:guideTennozu2(0);">りんかい線 天王洲アイル駅</a> 下車 徒歩3分 （<a href="javascript:openPrintWindow(\'map/print_tennozu2.html\')">印刷用表示</a>）';
		document.getElementById('route3').innerHTML = '<a href="javascript:guideTennozu3(0);">JR線 品川駅</a> 下車 徒歩13分 （<a href="javascript:guideTennozu3(14);">バス停</a>） （<a href="javascript:guideTennozu3(15);">タクシー乗り場</a>）<br>（<a href="javascript:openPrintWindow(\'map/print_tennozu3.html\')">印刷用表示</a>）';

		var elem = document.createElement("div");
		elem.id = "mapContainer";
		mapDiv.appendChild(elem);
		createElementsTennozu();

		moveBaseRect = new Move(baseRect);
		new ScrollMap();

		var loc = {x:240,y:250};
		var minSz = {width:0,height:0};
		var maxSz = {width:140,height:140};
		info = new InfoWindow(loc, minSz, maxSz);
	}
	else {
		document.getElementById('routeRowHeader').innerHTML = '交通手段<br>（<a href="javascript:openPrintWindow(\'map/print_tennozu4.html\')">印刷用表示</a>）';
		document.getElementById('route1').innerHTML = '東京モノレール 天王洲アイル駅 下車 徒歩2分';
		document.getElementById('route2').innerHTML = 'りんかい線 天王洲アイル駅 下車 徒歩2分';
		document.getElementById('route3').innerHTML = 'JR線 品川駅 下車 徒歩13分';
		document.getElementById('mapDiv').innerHTML = 
		  '<div style="position:relative;width:507px;height:380px;margin: 0px 0px 0px 6px;border:1px solid #666666;">'
		+ '<img src="http://mapserv.incrementP.co.jp/cgi-bin/map/mapserv.cgi?MAP=E139.45.7.1N35.37.10.1&ZM=11&SZ=507,380&COL=1&OPT=e0000001"'
		+ ' style="position:absolute;width:507px;height:380px;margin-left:0px;border:0px solid #666666;">'
		+ '<img src="map/img/marker.gif" style="position:absolute;width:17px;height:17px;margin:181px 0px 0px 245px;border:0px solid #666666;">'
		+ '<img src="map/img/label_tennoz.gif" style="position:absolute;width:140px;height:22px;margin:199px 0px 0px 185px;">'
		+ '</div>';
	}
}

function createElementsTennozu() {

	mapContainer.innerHTML = "";

	// クリップ領域
	var clip = document.createElement("div");
	clip.style.position = "absolute";
	clip.style.width = "507px";
	clip.style.height = "380px";
	clip.style.top = "0px";
	clip.style.left = "0px";
	clip.style.overflow = "hidden";
	clip.style.border = "0px solid green";
	mapContainer.appendChild(clip);

	// スクロール
	var scrollBtnDiv = document.createElement("div");
	scrollBtnDiv.style.position = "absolute";
	scrollBtnDiv.style.width = "75px";
	scrollBtnDiv.style.height = "75px";
	scrollBtnDiv.style.top = "10px";
	scrollBtnDiv.style.left = "425px";
	mapContainer.appendChild(scrollBtnDiv);
	var scrollBtn = document.createElement("img");
	scrollBtn.id = "scrollN";
	scrollBtn.src = "map/img/arrow_n.gif";
	scrollBtn.style.position = "absolute";
	scrollBtn.style.width = "25px";
	scrollBtn.style.height = "25px";
	scrollBtn.style.top = "0px";
	scrollBtn.style.left = "25px";
	scrollBtn.style.cursor = "pointer";
	scrollBtnDiv.appendChild(scrollBtn);
	var scrollBtn = document.createElement("img");
	scrollBtn.id = "scrollE";
	scrollBtn.src = "map/img/arrow_e.gif";
	scrollBtn.style.position = "absolute";
	scrollBtn.style.width = "25px";
	scrollBtn.style.height = "25px";
	scrollBtn.style.top = "25px";
	scrollBtn.style.left = "50px";
	scrollBtn.style.cursor = "pointer";
	scrollBtnDiv.appendChild(scrollBtn);
	var scrollBtn = document.createElement("img");
	scrollBtn.id = "scrollS";
	scrollBtn.src = "map/img/arrow_s.gif";
	scrollBtn.style.position = "absolute";
	scrollBtn.style.width = "25px";
	scrollBtn.style.height = "25px";
	scrollBtn.style.top = "50px";
	scrollBtn.style.left = "25px";
	scrollBtn.style.cursor = "pointer";
	scrollBtnDiv.appendChild(scrollBtn);
	var scrollBtn = document.createElement("img");
	scrollBtn.id = "scrollW";
	scrollBtn.src = "map/img/arrow_w.gif";
	scrollBtn.style.position = "absolute";
	scrollBtn.style.width = "25px";
	scrollBtn.style.height = "25px";
	scrollBtn.style.top = "25px";
	scrollBtn.style.left = "0px";
	scrollBtn.style.cursor = "pointer";
	scrollBtnDiv.appendChild(scrollBtn);

	// ベース領域
	var baseElem = document.createElement("div");
	baseElem.id = "baseRect";
	baseElem.style.position = "absolute";
	baseElem.style.width = "1000px";
	baseElem.style.height = "1000px";
	baseElem.style.top = "-520px";
	baseElem.style.left = "-493px";
	clip.appendChild(baseElem);

	// 地図画像
	var elem = document.createElement("img");
	elem.src = "http://mapserv.incrementP.co.jp/cgi-bin/map/mapserv.cgi?MAP=E139.44.55.3N35.37.18.0&ZM=11&SZ=1000,1000&COL=1&OPT=e0000001";
	//elem.src = "map/map2.gif";
	elem.style.position = "absolute";
	elem.style.width = "1000px";
	elem.style.height = "1000px";
	elem.style.top = "0px";
	elem.style.left = "0px";
	elem.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=70)";
	baseElem.appendChild(elem);

	// 天王洲セントラルタワー
	baseElem.appendChild(createMarkerElem(683, 755, "#6EB4E8", "#1D78BC"));
	baseElem.appendChild(createLabelElem(703, 703, 125, 20, "天王洲セントラルタワー", "#1D78BC"));
	// 東京モノレール天王洲アイル駅
	var elem = createMarkerElem(653, 905, "#E14D7F", "#C02056");
	elem.style.cursor = "pointer";
	elem.onclick = function() { guideTennozu1(0); }
	baseElem.appendChild(elem);
	baseElem.appendChild(createLabelElem(608, 845, 90, 34, "東京モノレール<br />天王洲アイル駅", "#C02056"));
	// りんかい線天王洲アイル駅
	var elem = createMarkerElem(877, 928, "#B1CBA0", "#5F894C");
	elem.style.cursor = "pointer";
	elem.onclick = function() { guideTennozu2(0); }
	baseElem.appendChild(elem);
	baseElem.appendChild(createLabelElem(859, 830, 90, 34, "りんかい線<br />天王洲アイル駅", "#5F894C"));
	// JR線品川駅
	var elem = createMarkerElem(126, 124, "#F87B58", "#F65527");
	elem.style.cursor = "pointer";
	elem.onclick = function() { guideTennozu3(0); }
	baseElem.appendChild(elem);
	baseElem.appendChild(createLabelElem(132, 40, 80, 20, "JR線品川駅", "#F65527"));
	var elem = createMarkerElem(98, 148, "#ECC350", "#AE8513");
	elem.style.cursor = "pointer";
	elem.onclick = function() { guideTennozu3(14); }
	baseElem.appendChild(elem);
	var elem = createMarkerElem(98, 128, "#ECC350", "#AE8513");
	elem.style.cursor = "pointer";
	elem.onclick = function() { guideTennozu3(15); }
	baseElem.appendChild(elem);

	// パス
	var elem = document.createElement("v:shape");
	elem.id = "path";
	elem.style.position = "absolute";
	elem.style.width = "1000px";
	elem.style.height = "1000px";
	elem.style.top = "0px";
	elem.style.left = "0px";
	elem.coordsize = "1000,1000";
	elem.filled = "false";
	var stroke = document.createElement("v:stroke");
	stroke.color = "#F87B58";
	stroke.weight = "4";
	stroke.opacity = "1.0";
	stroke.endarrow = "classic";
	elem.appendChild(stroke);
	baseElem.appendChild(elem);

	// ガイド
	//mapContainer.appendChild(createGuideElem());
	baseElem.appendChild(createGuideElem());

	// リンク
	/*
	mapLink.innerHTML = "";

	var elem = createMarkerElem(0, 0, "#E14D7F", "#C02056");
	mapLink.appendChild(elem);
	var elem = document.createElement("div");
	elem.style.position = "absolute";
	elem.style.top = "0px";
	elem.style.left = "20px";
	elem.style.border = "0px solid blue";
	var a = document.createElement("a");
	a.href = "javascript:guideTennozu1(0);";
	a.appendChild(document.createTextNode("東京モノレール　天王洲アイル駅"));
	elem.appendChild(a);
	var s = document.createElement("span");
	s.style.marginLeft = "5px";
	s.appendChild(document.createTextNode("（徒歩2分）"));
	elem.appendChild(s);
	var a = document.createElement("a");
	a.style.marginLeft = "10px";
	a.href = "javascript:openPrintWindow('map/print_tennozu1.html')";
	a.appendChild(document.createTextNode("印刷用表示"));
	elem.appendChild(a);
	mapLink.appendChild(elem);

	var elem = createMarkerElem(20, 0, "#B1CBA0", "#5F894C");
	mapLink.appendChild(elem);
	var elem = document.createElement("div");
	elem.style.position = "absolute";
	elem.style.top = "20px";
	elem.style.left = "20px";
	elem.style.border = "0px solid blue";
	var a = document.createElement("a");
	a.href = "javascript:guideTennozu2(0);";
	a.appendChild(document.createTextNode("りんかい線　天王洲アイル駅"));
	elem.appendChild(a);
	var s = document.createElement("span");
	s.style.marginLeft = "5px";
	s.appendChild(document.createTextNode("（徒歩2分）"));
	elem.appendChild(s);
	var a = document.createElement("a");
	a.style.marginLeft = "10px";
	a.href = "javascript:openPrintWindow('map/print_tennozu2.html')";
	a.appendChild(document.createTextNode("印刷用表示"));
	elem.appendChild(a);
	mapLink.appendChild(elem);

	var elem = createMarkerElem(40, 0, "#F87B58", "#F65527");
	mapLink.appendChild(elem);
	var elem = document.createElement("div");
	elem.style.position = "absolute";
	elem.style.top = "40px";
	elem.style.left = "20px";
	elem.style.border = "0px solid blue";
	var a = document.createElement("a");
	a.href = "javascript:guideTennozu3(0);";
	a.appendChild(document.createTextNode("JR線　品川駅"));
	elem.appendChild(a);
	var s = document.createElement("span");
	s.style.marginLeft = "5px";
	s.appendChild(document.createTextNode("（徒歩13分）"));
	elem.appendChild(s);
	var a = document.createElement("a");
	a.style.marginLeft = "10px";
	a.href = "javascript:openPrintWindow('map/print_tennozu3.html')";
	a.appendChild(document.createTextNode("印刷用表示"));
	elem.appendChild(a);
	mapLink.appendChild(elem);

	var elem = createMarkerElem(40, 240, "#ECC350", "#AE8513");
	mapLink.appendChild(elem);
	var elem = document.createElement("div");
	elem.style.position = "absolute";
	elem.style.top = "40px";
	elem.style.left = "260px";
	elem.style.border = "0px solid blue";
	var a = document.createElement("a");
	a.href = "javascript:guideTennozu3(14);";
	a.appendChild(document.createTextNode("バス停"));
	elem.appendChild(a);
	mapLink.appendChild(elem);

	var elem = createMarkerElem(40, 305, "#ECC350", "#AE8513");
	mapLink.appendChild(elem);
	var elem = document.createElement("div");
	elem.style.position = "absolute";
	elem.style.top = "40px";
	elem.style.left = "325px";
	elem.style.border = "0px solid blue";
	var a = document.createElement("a");
	a.href = "javascript:guideTennozu3(15);";
	a.appendChild(document.createTextNode("タクシー乗り場"));
	elem.appendChild(a);
	mapLink.appendChild(elem);
	*/
}

// 東京モノレール天王洲アイル駅からのガイド
function guideTennozu1(scene) {
	switch (scene) {
		case 0:
			if (action && action.isDoing)
				return;

			mapPath = new MapPath(path, pointTennnozu1);
			path.stroke.color = "#E14D7F";
			infoArrow.fill.color = "#E14D7F";
			infoArrow.stroke.color = "#C02056";
			infoArrowText.style.color = "#C02056";

			action = new Action([info, moveBaseRect]);
			action.add(function() {
				info.hide();
				moveBaseRect.to(-493, -520, 20);
			});
			action.add(function() {
				info.setSize(info.minSize);
				//info.setLocation({x:413,y:150});
				info.setLocation({x:903,y:666});
				info.show();
				info.spread(Zoom.BOTTOM_LEFT);
			});
			action.add(function() {
				var msg = '東京モノレール天王洲アイル駅出口を出て左へ。';
				info.showText(msg);
				info.imageWindow.maxSize = {width:300,height:225};
				info.showImage("map/img/tennozu_0010.JPG");
				info.setArrowAngle(150);
				info.setArrowLink(guideTennozu1, 1);
				info.showArrow();
				action.endAction();
			});
			action.start();

			break;
		case 1:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(2);
			}, 300);
			action.add(function() {
				info.setLocation({x:853,y:672});
				info.show();
				info.spread(Zoom.BOTTOM_LEFT);
			}, 300);
			action.add(function() {
				var msg = 'エスカレータを下りて左折し、スカイウォークに出る。';
				info.showText(msg);
				info.showImage("map/img/tennozu_0020.JPG");
				info.setArrowLink(guideTennozu1, 2);
				info.showArrow();
				info.fireActionEvent();
			});
			action.start();

			break;
		case 2:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(4);
			}, 300);
			action.add(function() {
				info.setLocation({x:817,y:681});
				info.show();
				info.spread(Zoom.BOTTOM_LEFT);
			}, 300);
			action.add(function() {
				var msg = '案内表示に従って天王洲セントラルタワーへ。';
				info.showText(msg);
				info.showImage("map/img/tennozu_0030.JPG");
				info.setArrowLink(guideTennozu1, 3);
				info.showArrow();
				info.fireActionEvent();
			});
			action.start();

			break;

		case 3:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(10);
			}, 300);
			action.add(function() {
				info.setLocation({x:776,y:678});
				info.show();
				info.spread(Zoom.TOP_LEFT);
			}, 300);
			action.add(function() {
				var msg = '天王洲セントラルタワー入り口。';
				info.showText(msg);
				info.showImage("map/img/tennozu_1040.JPG");
				info.setArrowAngle(-110);
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-200);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu1, 4);
				action.endAction();
			});
			action.start();

			break;

		case 4:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(11);
			}, 300);
			action.start();

			break;
	}
}

// りんかい線天王洲アイル駅からのガイド
function guideTennozu2(scene) {
	switch (scene) {
		case 0:
			if (action && action.isDoing)
				return;
			mapPath = new MapPath(path, pointTennnozu2);
			path.stroke.color = "#5F894C";
			infoArrow.fill.color = "#B1CBA0";
			infoArrow.stroke.color = "#5F894C";
			infoArrowText.style.color = "#5F894C";

			action = new Action([info, moveBaseRect]);
			action.add(function() {
				info.hide();
				moveBaseRect.to(-493, -520, 20);
			});
			action.add(function() {
				info.setSize(info.minSize);
				info.setLocation({x:927,y:876});
				info.show();
				info.spread(Zoom.TOP_LEFT);
			});
			action.add(function() {
				var msg = 'りんかい線天王洲アイル駅出口を出て右へ。';
				info.showText(msg);
				info.imageWindow.maxSize = {width:300,height:225};
				info.showImage("map/img/tennozu_1010.JPG");
				info.setArrowAngle(-90);
				info.setArrowLink(guideTennozu2, 1);
				info.showArrow();
				action.endAction();
			});
			action.start();

			break;
		case 1:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(1);
			}, 300);
			action.add(function() {
				info.setLocation({x:929,y:853});
				info.show();
				info.spread(Zoom.TOP_LEFT);
			}, 300);
			action.add(function() {
				var msg = 'エレベータでスカイウォークに出る。';
				info.showText(msg);
				info.showImage("map/img/tennozu_1020.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-180);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu2, 2);
				action.endAction();
			});
			action.start();

			break;
		case 2:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(2);
			}, 300);
			action.add(function() {
				info.setLocation({x:920,y:851});
				info.show();
				info.spread(Zoom.TOP_LEFT);
			}, 300);
			action.add(function() {
				var msg = '東京モノレール駅方面へ。案内表示に従ってスカイウォーク直結。';
				info.showText(msg);
				info.showImage("map/img/tennozu_1030.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-120);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu2, 3);
				action.endAction();
			});
			action.start();

			break;

		case 3:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(13);
			}, 300);
			action.add(function() {
				info.setLocation({x:776,y:678});
				info.show();
				info.spread(Zoom.TOP_LEFT);
			}, 300);
			action.add(function() {
				var msg = '天王洲セントラルタワー入り口。';
				info.showText(msg);
				info.showImage("map/img/tennozu_1040.JPG");
				info.setArrowAngle(-110);
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-200);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu2, 4);
				action.endAction();
			});
			action.start();

			break;

		case 4:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(14);
			}, 300);
			action.start();

			break;
	}
}

// JR線品川駅からのガイド
function guideTennozu3(scene) {
	switch (scene) {
		case 0:
			if (action && action.isDoing)
				return;
			mapPath = new MapPath(path, pointTennnozu3);
			path.stroke.color = "#F87B58";
			infoArrow.fill.color = "#F87B58";
			infoArrow.stroke.color = "#F65527";
			infoArrowText.style.color = "#F65527";

			action = new Action([info, moveBaseRect]);
			action.add(function() {
				info.hide();
				moveBaseRect.to(0, 0, 20);
			});
			action.add(function() {
				info.setSize(info.minSize);
				info.setLocation({x:141,y:142});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 100);
			action.add(function() {
				var msg = 'JR品川駅港南口（東口）を出て右折。';
				info.showText(msg);
				info.imageWindow.maxSize = {width:300,height:225};
				info.showImage("map/img/tennozu_2010.JPG");
				info.setArrowAngle(90);
				info.setArrowLink(guideTennozu3, 1);
				info.showArrow();
				action.endAction();
			});
			action.start();

			break;
		case 1:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(3);
			}, 300);
			action.add(function() {
				info.setLocation({x:151,y:191});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '品川グランドコモンズのスカイウェイを直進。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2020.JPG");
				info.setArrowAngle(95);
				info.setArrowLink(guideTennozu3, 2);
				info.showArrow();
				info.fireActionEvent();
			});
			action.start();

			break;
		case 2:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(4);
			}, 300);
			action.add(function() {
				moveBaseRect.to(0, -200, 8);
			}, 300);
			action.add(function() {
				mapPath.draw(6);
			}, 300);
			action.add(function() {
				info.setLocation({x:134,y:418});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '三菱重工ビル先の橋を左折。';
				info.showText(msg);
				info.setArrowAngle(100);
				info.showImage("map/img/tennozu_2030.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-8);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 3);
				action.endAction();
			});
			action.start();
			break;

		case 3:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(7);
			}, 300);
			action.add(function() {
				info.setLocation({x:176,y:416});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = 'ソニーC棟前のエレベーターを下って外に出る。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2031.JPG");
				info.setArrowLink(guideTennozu3, 4);
				info.showArrow();
				info.fireActionEvent();
			});
			action.start();
			break;

		case 4:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(9);
			}, 300);
			action.add(function() {
				info.setLocation({x:260,y:407});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '突き当りを右折。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2040.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(80);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 5);
				action.endAction();
			});
			action.start();
			break;

		case 5:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				moveBaseRect.to(-100, -350, 8);
			}, 300);
			action.add(function() {
				mapPath.draw(13);
			}, 300);
			action.add(function() {
				info.setLocation({x:288,y:496});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '突き当たりを左折。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2050.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-10);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 6);
				action.endAction();
			});
			action.start();
			break;

		case 6:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(15);
			}, 300);
			action.add(function() {
				info.setLocation({x:450,y:465});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '突き当たりを右折。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2060.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(85);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 7);
				action.endAction();
			});
			action.start();
			break;

		case 7:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(16);
			}, 300);
			action.add(function() {
				info.setLocation({x:457,y:536});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '楽水橋交差点を左折（天王洲アイルの青い看板が目印）。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2061.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-10);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 8);
				action.endAction();
			});
			action.start();
			break;

		case 8:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(17);
			}, 300);
			action.add(function() {
				moveBaseRect.to(-400, -400, 8);
			}, 300);
			action.add(function() {
				mapPath.draw(19);
			}, 300);
			action.add(function() {
				info.setLocation({x:594,y:508});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '楽水橋を渡った突き当たりを右折。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2071.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(85);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 9);
				action.endAction();
			});
			action.start();
			break;

		case 9:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(22);
			}, 300);
			action.add(function() {
				info.setLocation({x:644,y:598});
				info.show();
				info.spread(Zoom.BOTTOM_LEFT);
			}, 300);
			action.add(function() {
				var msg = '港南公園を通り、「ふれあい橋」を渡る。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2080.JPG");
				info.setArrowAngle(45);
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(55);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 10);
				action.endAction();
			});
			action.start();
			break;

		case 10:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				moveBaseRect.to(-500, -500, 8);
			}, 300);
			action.add(function() {
				mapPath.draw(23);
			}, 300);
			action.add(function() {
				info.setLocation({x:680,y:660});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = 'ボードウォークに沿って40m歩く。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2090.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(-20);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 11);
				action.endAction();
			});
			action.start();
			break;

		case 11:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(24);
			}, 300);
			action.add(function() {
				info.setLocation({x:720,y:639});
				info.show();
				info.spread(Zoom.TOP_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '右側の石畳の庭を横切る。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2100.JPG");
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(40);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 12);
				action.endAction();
			});
			action.start();
			break;

		case 12:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(26);
			}, 300);
			action.add(function() {
				info.setLocation({x:776,y:679});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 300);
			action.add(function() {
				var msg = '天王洲セントラルタワー入り口。';
				info.showText(msg);
				info.showImage("map/img/tennozu_2110.JPG");
				info.setArrowAngle(80);
				info.clearArrowLink();
				info.showArrow();
				info.fireActionEvent();
			});
			action.add(function() {
				info.rotateArrow(160);
			}, 300);
			action.add(function() {
				info.setArrowLink(guideTennozu3, 13);
				action.endAction();
			});
			action.start();
			break;

		case 13:
			if (action && action.isDoing)
				return;
			action = new Action([info, mapPath, moveBaseRect]);
			action.add(function() {
				info.shrink();
			});
			action.add(function() {
				info.hide();
				info.fireActionEvent();
			});
			action.add(function() {
				mapPath.draw(27);
			}, 300);
			action.start();
			break;

		// バス乗り場
		case 14:
			if (action && action.isDoing)
				return;
			action = new Action([info, moveBaseRect]);
			action.add(function() {
				path.path = " ";
				info.hide();
				moveBaseRect.to(0, 0, 20);
			});
			action.add(function() {
				info.setSize(info.minSize);
				info.setLocation({x:163,y:112});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 100);
			action.add(function() {
				var msg = 'バス停：港南口正面のエスカレータを下りた裏手。（４・５番へ）';
				info.showText(msg);
				info.imageWindow.maxSize = {width:300,height:225};
				info.showImage("map/img/tennozu_2993.JPG");
				info.imageWindow2.maxSize = {width:300,height:225};
				info.imageWindow2.show("map/img/tennozu_2991.JPG");
				action.endAction();
			});
			action.start();

			break;

		// タクシー乗り場
		case 15:
			if (action && action.isDoing)
				return;
			action = new Action([info, moveBaseRect]);
			action.add(function() {
				path.path = " ";
				info.hide();
				moveBaseRect.to(0, 0, 20);
			});
			action.add(function() {
				info.setSize(info.minSize);
				info.setLocation({x:144,y:112});
				info.show();
				info.spread(Zoom.BOTTOM_RIGHT);
			}, 100);
			action.add(function() {
				var msg = 'タクシー乗り場：アトレ手前のエスカレーターを下りる。';
				info.showText(msg);
				info.imageWindow.maxSize = {width:300,height:225};
				info.showImage("map/img/tennozu_2992.JPG");
				info.imageWindow2.maxSize = {width:300,height:225};
				info.imageWindow2.show("map/img/tennozu_2990.JPG");
				action.endAction();
			});
			action.start();

			break;
	}
}

