if(GBrowserIsCompatible())
{

	var point = new Array();
	var nCnt = 0;
	var gmarker = new Array();
	var htmls = new Array();

/* ----- 初期設定 ----- */
//マーカー表示の座標設定▼
	//マーカー座標指定(コガノイベイホテル)
	point[0] = new GLatLng(33.682676, 135.357936);
	
	//マーカー座標指定(spot1)
	point[1] = new GLatLng(33.680056, 135.358847);
	
	//マーカー座標指定(spot2)
	point[2] = new GLatLng(33.683565, 135.36021);
	
	//マーカー座標指定(spot3)
	point[3] = new GLatLng(33.683574, 135.358922);
	
	//マーカー座標指定(spot4)
	point[4] = new GLatLng(33.683467, 135.35771);
	
	//マーカー座標指定(spot5)
	point[5] = new GLatLng(33.683002, 135.357206);
	
	//マーカー座標指定(spot6)
	point[6] = new GLatLng(33.682538, 135.357195);
	
	//マーカー座標指定(駅)
	point[7] = new GLatLng(33.676047, 135.387204);

	//マーカー座標指定(IC)
	point[8] = new GLatLng(33.745943, 135.368493);
	
	//マーカー座標指定(AP)
	point[9] = new GLatLng(33.662264,135.359834);

//マーカー表示の座標設定▲

//マーカー表示のHTML▼
	//HTML文を指定する(コガノイベイホテル)
	htmls[0] = '<p><img src="images/img_maplogo.gif" alt="コガノイベイホテル"><br />〒649-2211　和歌山県西牟婁郡白浜町3212-1<br />tel.0739-43-6000　fax.0739-43-5805</p>';
	
	//HTML文を指定する(spot1)
	htmls[1] = '<p><img src="images/img_route01.jpg" alt="ルート1" /></p><p class="txt">白浜警察署を過ぎてすぐ、霊泉橋を渡って<br />ホテル古賀の井の方へ右折。</p>';
	
	//HTML文を指定する(spot2)
	htmls[2] = '<p><img src="images/img_route02.jpg" alt="ルート2" /></p><p class="txt">突き当り右前に青いコガノイベイホテルの<br />看板が見えたら、左折。</p>';
	
	//HTML文を指定する(spot3)
	htmls[3] = '<p><img src="images/img_route03.jpg" alt="ルート3" /></p><p class="txt">少し大きめの看板があるので左折。<br />トンネルがあります。</p>';
	
	//HTML文を指定する(spot4)
	htmls[4] = '<p><img src="images/img_route04.jpg" alt="ルート4" /></p><p class="txt">トンネルを抜けると、左方向に進みます。</p>';
	
	//HTML文を指定する(spot5)
	htmls[5] = '<p><img src="images/img_route05.jpg" alt="ルート5" /></p><p class="txt">少し大きめの看板があるので左折。<br />トンネルがあります。</p>';
	
	//HTML文を指定する(spot6)
	htmls[6] = '<p><img src="images/img_route06.jpg" alt="ルート6" /></p><p class="txt">トンネルを抜けると、左方向に進みます。</p>';	
	
	//HTML文を指定する(駅)
	htmls[7] = '<p>JR白浜駅</p>';
	
	//HTML文を指定する()
	htmls[8] = '<p>南紀田辺IC</p>';
	
	//HTML文を指定する(spot4)
	htmls[9] = '<p>南紀白浜空港</p>';

//マーカー表示のHTML▲

/* マーカー表示 */
	function createMarker(point,htmlData)
	{
		//アイコン画像の指定
		var iconSet = new GIcon();
		iconSet.image            = "mapimage/"+ nCnt +".png"; //アイコン画像パス
		iconSet.shadow           = "mapimage/shadow.png"; //影画像パス
		iconSet.iconSize         = new GSize(21, 34); //アイコンサイズ
		iconSet.shadowSize       = new GSize(39, 34); //影サイズ
		iconSet.iconAnchor       = new GPoint(10, 34); //アイコンの表示開始位置（0,0）は左上角から
		iconSet.infoWindowAnchor = new GPoint(15, 20); //情報ウィンドウの表示開始位置
		iconSet.infoShadowAnchor = new GPoint(15, 20); //情報ウィンドウの影の表示開始位置

		var marker = new GMarker(point,iconSet);
		// クリックしたマーカーに該当する情報を表示
		GEvent.addListener(marker, 'click', function(){
			marker.openInfoWindowHtml(htmlData);
		});
		gmarker[nCnt] = marker;
		return marker;
	}
	function myclick(HtmlCnt) {
        gmarker[HtmlCnt].openInfoWindowHtml(htmls[HtmlCnt]);
    }
	var map = new GMap(document.getElementById("maps"));
	//初期表示の座標
	map.setCenter(new GLatLng(33.682676, 135.357936), 14);
	//拡大縮小のスクロール
	map.addControl(new GLargeMapControl());
	map.openInfoWindowHtml(new GLatLng(33.682676, 135.357936),'<p><img src="images/img_maplogo.gif" alt="コガノイベイホテル"><br />〒649-2211　和歌山県西牟婁郡白浜町3212-1<br />tel.0739-43-6000　fax.0739-43-5805</p>');

	var nDataNum = point.length;
	for(nCnt=0;nCnt<nDataNum;nCnt++)
	{
		var marker = createMarker(point[nCnt],htmls[nCnt]);
		map.addOverlay(marker);
	}
	//小さい地図を作成
//	map2=new GOverviewMapControl(new GSize(150,150));
//	map.addControl(map2);
	/* 初期表示　マーカーラインの表示設定  GPolyline([座標,座標...],"色",ラインの太さ,透明度（不透明1、-0.1でアルファがかかる）); */
	
	//ライン1 IC
	var polyline = new GPolyline([new GLatLng(33.745976,135.368493), new GLatLng(33.745289,135.371947), new GLatLng(33.745271,135.377483), new GLatLng(33.744897,135.381238), new GLatLng(33.743773,135.385358), new GLatLng(33.741203,135.388448), new GLatLng(33.740597,135.391967), new GLatLng(33.740043,135.393083), new GLatLng(33.735511,135.399735), new GLatLng(33.734012,135.400679), new GLatLng(33.732352,135.400572), new GLatLng(33.730068,135.400486), new GLatLng(33.728212,135.401108), new GLatLng(33.724643,135.402868), new GLatLng(33.717647,135.407546), new GLatLng(33.71638,135.407953), new GLatLng(33.714827,135.407481), new GLatLng(33.713149,135.405614), new GLatLng(33.712917,135.405335), new GLatLng(33.711596,135.403726), new GLatLng(33.710311,135.402524), new GLatLng(33.709044,135.401473), new GLatLng(33.708026,135.400379), new GLatLng(33.706259,135.399349), new GLatLng(33.704706,135.396967), new GLatLng(33.702546,135.395207), new GLatLng(33.702171,135.39422), new GLatLng(33.701421,135.39068), new GLatLng(33.700297,135.389092), new GLatLng(33.696691,135.388148), new GLatLng(33.694763,135.388427), new GLatLng(33.69412,135.388041), new GLatLng(33.691067,135.384114), new GLatLng(33.690442,135.381689), new GLatLng(33.689835,135.380917), new GLatLng(33.688496,135.380273), new GLatLng(33.68796,135.379844), new GLatLng(33.686871,135.379093), new GLatLng(33.685371,135.379007), new GLatLng(33.682586,135.378041), new GLatLng(33.681211,135.37684), new GLatLng(33.680711,135.375853), new GLatLng(33.68014,135.3739), new GLatLng(33.679658,135.370917), new GLatLng(33.679658,135.369115), new GLatLng(33.6798,135.366046), new GLatLng(33.679551,135.363922), new GLatLng(33.67914,135.362334),new GLatLng(33.680031,135.358826),new GLatLng(33.681225,135.359772),new GLatLng(33.682049,135.359955),new GLatLng(33.683029,135.360565),new GLatLng(33.683163,135.36055),new GLatLng(33.683586,135.36026),new GLatLng(33.683613,135.360062),new GLatLng(33.683453,135.359451),new GLatLng(33.683537,135.359024),new GLatLng(33.683568,135.358928),new GLatLng(33.683305,135.358697),new GLatLng(33.683491,135.357727),new GLatLng(33.683247,135.357513),new GLatLng(33.683025,135.357239),new GLatLng(33.682968,135.357193),new GLatLng(33.68259,135.357193),new GLatLng(33.682503,135.357193),new GLatLng(33.682049,135.357697),new GLatLng(33.681934,135.357742),new GLatLng(33.681534,135.357834),new GLatLng(33.681477,135.35791),new GLatLng(33.681534,135.358093),new GLatLng(33.681637,135.35817),new GLatLng(33.682053,135.358078)],"#124DD5",6,0.6);
	//マップにポリライン表示
	map.addOverlay(polyline);
	
	//ライン2 電車
	var polyline = new GPolyline([new GLatLng(33.676051,135.387032), new GLatLng(33.676069,135.386517), new GLatLng(33.677211,135.384929), new GLatLng(33.678443,135.384157), new GLatLng(33.680408,135.38126), new GLatLng(33.680479,135.380616), new GLatLng(33.677908,135.37729), new GLatLng(33.677872,135.376754), new GLatLng(33.67814,135.374994), new GLatLng(33.678211,135.372913), new GLatLng(33.678926,135.371196), new GLatLng(33.679426,135.370939), new GLatLng(33.679336,135.369759), new GLatLng(33.679533,135.366089), new GLatLng(33.679301,135.364072), new GLatLng(33.678872,135.362399),new GLatLng(33.680031,135.358826),new GLatLng(33.681225,135.359772),new GLatLng(33.682049,135.359955),new GLatLng(33.683029,135.360565),new GLatLng(33.683163,135.36055),new GLatLng(33.683586,135.36026),new GLatLng(33.683613,135.360062),new GLatLng(33.683453,135.359451),new GLatLng(33.683537,135.359024),new GLatLng(33.683568,135.358928),new GLatLng(33.683305,135.358697),new GLatLng(33.683491,135.357727),new GLatLng(33.683247,135.357513),new GLatLng(33.683025,135.357239),new GLatLng(33.682968,135.357193),new GLatLng(33.68259,135.357193),new GLatLng(33.682503,135.357193),new GLatLng(33.682049,135.357697),new GLatLng(33.681934,135.357742),new GLatLng(33.681534,135.357834),new GLatLng(33.681477,135.35791),new GLatLng(33.681534,135.358093),new GLatLng(33.681637,135.35817),new GLatLng(33.682053,135.358078)],"#FD7567",6,0.6);
	//マップにポリライン表示
	map.addOverlay(polyline);
	
		//ライン3 飛行機
	var polyline = new GPolyline([new GLatLng(33.662264,135.359834), new GLatLng(33.662657,135.35962), new GLatLng(33.663496,135.358987), new GLatLng(33.664514,135.359502), new GLatLng(33.664372,135.360146), new GLatLng(33.666229,135.363042), new GLatLng(33.666765,135.363214), new GLatLng(33.667675,135.36257), new GLatLng(33.668265,135.362356), new GLatLng(33.670265,135.362613), new GLatLng(33.670408,135.362935), new GLatLng(33.670051,135.363536), new GLatLng(33.670533,135.363686), new GLatLng(33.670943,135.364051), new GLatLng(33.671122,135.364501), new GLatLng(33.671604,135.364137), new GLatLng(33.672104,135.364566), new GLatLng(33.671747,135.364995), new GLatLng(33.672569,135.365446), new GLatLng(33.671872,135.366411), new GLatLng(33.672229,135.3686), new GLatLng(33.673533,135.370488), new GLatLng(33.67439,135.370252), new GLatLng(33.675765,135.370209), new GLatLng(33.676194,135.369909), new GLatLng(33.676783,135.369995), new GLatLng(33.677604,135.369694), new GLatLng(33.678836,135.369415), new GLatLng(33.679461,135.369115), new GLatLng(33.679676,135.366111), new GLatLng(33.679443,135.364029), new GLatLng(33.679051,135.362442),new GLatLng(33.680031,135.358826),new GLatLng(33.681225,135.359772),new GLatLng(33.682049,135.359955),new GLatLng(33.683029,135.360565),new GLatLng(33.683163,135.36055),new GLatLng(33.683586,135.36026),new GLatLng(33.683613,135.360062),new GLatLng(33.683453,135.359451),new GLatLng(33.683537,135.359024),new GLatLng(33.683568,135.358928),new GLatLng(33.683305,135.358697),new GLatLng(33.683491,135.357727),new GLatLng(33.683247,135.357513),new GLatLng(33.683025,135.357239),new GLatLng(33.682968,135.357193),new GLatLng(33.68259,135.357193),new GLatLng(33.682503,135.357193),new GLatLng(33.682049,135.357697),new GLatLng(33.681934,135.357742),new GLatLng(33.681534,135.357834),new GLatLng(33.681477,135.35791),new GLatLng(33.681534,135.358093),new GLatLng(33.681637,135.35817),new GLatLng(33.682053,135.358078)],"#447f09",6,0.6);
	//マップにポリライン表示
	map.addOverlay(polyline);
	
//	map.addOverlay(polyline2);
//	map.addOverlay(polyline3);
//	map.addOverlay(polyline4);

}