if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//サンルート梅田
	point[0] = new GLatLng(34.709462,135.499755);
	
	//遊ぶ
	//海遊館
	point[1] = new GLatLng(34.655065, 135.428912);
	
	//ユニバーサルスタジオ・ジャパン
	point[2] = new GLatLng(34.665386, 135.433294);
	
	//天王寺動物園
	point[3] = new GLatLng(34.651515, 135.510241);
	
	//baseよしもと
	point[4] = new GLatLng(34.664624, 135.503074);
	
	//観る
	//大阪城天守閣
	point[5] = new GLatLng(34.686494, 135.526196);
	
	//梅田スカイビル
	point[6] = new GLatLng(34.705375, 135.490524);
	
	//大阪歴史博物館
	point[7] = new GLatLng(34.682592, 135.520814);
	
	//大阪市立東洋陶磁美術館
	point[8] = new GLatLng(34.693466, 135.505329);
	
	//食べる
	//かに道楽 梅田店
	point[9] = new GLatLng(34.701553,135.50098);
	
	//かっぱ横丁
	point[10] = new GLatLng(34.706781, 135.497937);
	
	//ぼてぢゅう総本家
	point[11] = new GLatLng(34.669276, 135.504663);
	
	//NakaNaka なかなか
	point[12] = new GLatLng(34.69666,135.500642);
	
	//梅田芸術劇場
	point[13] = new GLatLng(34.708608,135.498311);
	
	

	
	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(サンルート梅田)
	htmls[0] = '<table><tr><td><img src="images/gmap_gaikan.jpg" alt="ホテル外観" /></td></tr><tr><td valign="top"><b>ホテルサンルート梅田</b><br />大阪府大阪市北区豊崎3-9-1<br>TEL：06-6373-1111<br />FAX：06-6374-0523</td></tr></table>';
	
	//HTML文を指定する(海遊館)
	htmls[1] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_asobu_ph1.jpg" alt="海遊館" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>海遊館</h3><p class="small_10px">大阪府大阪市港区海岸通1-1-10<br>TEL:06-6576-5501<br><a href="http://www.kaiyukan.com/index.html" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(ユニバーサルスタジオ・ジャパン)
	htmls[2] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_asobu_ph2.jpg" alt="ユニバーサルスタジオ・ジャパン" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>ユニバーサルスタジオ・ジャパン</h3><p class="small_10px">大阪府大阪市此花区桜島2-1-33<br>TE:L06-6465-3000<br><a href="http://www.usj.co.jp/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(天王寺動物園)
	htmls[3] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_asobu_ph3.jpg" alt="天王寺動物園" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>天王寺動物園</h3><p class="small_10px">大阪市天王寺区茶臼山町1-108<br>TEL:06-6771-8401<br><a href="http://www.jazga.or.jp/tennoji/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(baseよしもと)
	htmls[4] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_asobu_ph4.jpg" alt="baseよしもと" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>baseよしもと</h3><p class="small_10px">大阪府大阪市中央区難波千日前12-7<br>YES・NANBAビル B1F<br>TEL:06-6646-0365<br><a href="http://www.yoshimoto.co.jp/base/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(大阪城天守閣)
	htmls[5] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_miru_ph1.jpg" alt="大阪城天守閣" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>大阪城天守閣</h3><p class="small_10px">大阪府大阪市中央区大阪城1-1<br>TEL:06-6941-3044<br><a href="http://www.osakacastle.net/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(梅田スカイビル)
	htmls[6] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_miru_ph2.jpg" alt="梅田スカイビル" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>梅田スカイビル</h3><p class="small_10px">大阪府大阪市中央区大阪城1-1<br>TEL:06-6941-3044<br><a href="http://www.skybldg.co.jp/skybldg/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(大阪歴史博物館)
	htmls[7] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_miru_ph3.jpg" alt="大阪歴史博物館" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>大阪歴史博物館</h3><p class="small_10px">大阪市中央区大手前4丁目1-32<br>TEL:06-6946-5728<br><a href="http://www.mus-his.city.osaka.jp/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(大阪歴史博物館)
	htmls[8] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_miru_ph4.jpg" alt="大阪市立東洋陶磁美術館" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>大阪市立東洋陶磁美術館</h3><p class="small_10px">大阪府大阪市北区中之島1-1-26<br>TEL:06-6223-0055<br><a href="http://www.moco.or.jp/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(かに道楽 梅田店)
	htmls[9] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_taberu_ph1.jpg" alt="かに道楽 梅田店" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>かに道楽 梅田店</h3><p class="small_10px">大阪府大阪市北区曽根崎2-15-20<br />スイング梅田ビル 8階<br>TEL:06-6366-5575<br><a href="http://douraku.co.jp/kansai/shop/umeda/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(かっぱ横丁)
	htmls[10] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_taberu_ph2.jpg" alt="かっぱ横丁" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>かっぱ横丁</h3><p class="small_10px">大阪府大阪市北区芝田1-6-2<br>TEL:06-6345-6365<br><a href="http://kappa.hankyu.co.jp/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(ぼてぢゅう総本家)
	htmls[11] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_taberu_ph3.jpg" alt="ぼてぢゅう総本家" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>ぼてぢゅう総本家</h3><p class="small_10px">大阪府大阪市中央区宗右衛門町3-5<br>TEL:06-6211-4478<br><a href="http://r.tabelog.com/osaka/A2702/A270202/27001476/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(NakaNaka なかなか)
	htmls[12] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_taberu_ph4.jpg" alt="NakaNaka なかなか" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>NakaNaka なかなか</h3><p class="small_10px">大阪市北区曽根崎新地1-1-43<br />第二大川ビル2F<br>TEL:06-6345-1088<br><a href="http://r.tabelog.com/osaka/A2701/A270101/27006765/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	//HTML文を指定する(梅田芸術劇場)
	htmls[13] = '<table width="300"><tr><td align="center"><img width="80%" height="80%" src="images/kankou_miru_ph5.jpg" alt="梅田芸術劇場" style="margin:0 10px 0 0;" /></td><td valign="top"><h3>梅田芸術劇場</h3><p class="small_10px">大阪府大阪市北区茶屋町19-1<br />（ホテル目の前）<br>TEL:06-6377-3800<br><a href="http://www.umegei.com/" target="_blank"><img width="40%" height="40%" src="images/kankou_hpbt.gif" style="margin:8px 0 0 0;" /></a></p></td></tr></table>';
	
	

//マーカー表示のHTML▲

function createMarker(point,htmlData)
{
var iconSet = new GIcon();
iconSet.image            = "gmapimg/"+ nCnt +".gif"; //アイコン画像パス
iconSet.shadow           = "gmapimg/shadow.png"; //影画像パス
iconSet.iconSize         = new GSize(20, 25); //アイコンサイズ
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);
});
return marker;
}
function myclick(HtmlCnt) {
gmarker[HtmlCnt].openInfoWindowHtml(htmls[HtmlCnt]);
}
var map = new GMap2(document.getElementById("gmap"));
//操作バー（左）
map.addControl(new GLargeMapControl());
//表示切替（上）
//map.addControl(new GMapTypeControl());
//ダブルクリックズーム＆スムージング
map.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(34.709462,135.499755), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.709462,135.499755),'<table><tr><td><img src="images/gmap_gaikan.jpg" alt="ホテル外観" /></td></tr><tr><td valign="top"><b>ホテルサンルート梅田</b><br />大阪府大阪市北区豊崎3-9-1<br>TEL：06-6373-1111<br />FAX：06-6374-0523</td></tr></table>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}

	/* 初期表示　マーカーラインの表示設定  GPolyline([座標,座標...],"色",ラインの太さ,透明度（不透明1、-0.1でアルファがかかる）); */
	//ライン1
	
	
	//マップにポリライン表示
	//map.addOverlay(polyline);
	//map.addOverlay(polyline2);
	//map.addOverlay(polyline3);
}
