if(GBrowserIsCompatible())
{

	var point = new Array();
	var nCnt = 0;
	var gmarker = [];
	var htmls = [];

/* ----- 初期設定 ----- */
//マーカー表示の座標設定▼
	//マーカー座標指定(ホテル貫一)
	point[0] = new GLatLng(35.097536,139.074147);

	//マーカー座標指定(熱海芸妓見番)
	point[1] = new GLatLng(35.094809,139.071904);
	//マーカー座標指定(熱海サンビーチライトアップ)
	point[2] = new GLatLng(35.095017,139.075541);
	//マーカー座標指定(熱海花火大会)
	point[3] = new GLatLng(35.095302,139.075745);
	//マーカー座標指定(熱海発遊覧船)
	point[4] = new GLatLng(35.090443,139.077706);
	//マーカー座標指定(マリンスパ あたみ)
	point[5] = new GLatLng(35.091003,139.074691);
	//マーカー座標指定(アカオハーブ＆ローズガーデン)
	point[6] = new GLatLng(35.079981,139.072575);
	//マーカー座標指定(熱海城)
	point[7] = new GLatLng(35.086385,139.078664);
	//マーカー座標指定(起雲閣)
	point[8] = new GLatLng(35.09286,139.071022);
	//マーカー座標指定(来宮神社)
	point[9] = new GLatLng(35.100468,139.067809);
	//マーカー座標指定(お宮の松)
	point[10] = new GLatLng(35.098945,139.076743);
	//マーカー座標指定(旧日向別邸)
	point[11] = new GLatLng(35.103369,139.081625);
	//マーカー座標指定(中山晋平記念館)
	point[12] = new GLatLng(35.098886,139.059454);
	//マーカー座標指定(熱海梅園　韓国庭園)
	point[13] = new GLatLng(35.099424,139.05863);
	//マーカー座標指定(彩苑)
	point[14] = new GLatLng(35.10313,139.055876);
	//マーカー座標指定(MOA美術館)
	point[15] = new GLatLng(35.109316,139.075198);
	//マーカー座標指定(池田満寿夫 佐藤陽子 創作の家)
	point[16] = new GLatLng(35.106836,139.082046);
	//マーカー座標指定(戸田幸四郎絵本美術館)
	point[17] = new GLatLng(35.072269,139.058751);
	//マーカー座標指定(澤田政廣記念館)
	point[18] = new GLatLng(35.098842,139.057855);

//マーカー表示の座標設定▲

//マーカー表示のHTML▼
	//HTML文を指定する(ホテル貫一)
	htmls[0] = '<p style="text-align: center;"><img src="images/map_logo.gif" alt="ホテル貫一" style="margin: 0;"></p><p style=" font-size: 12px; text-align: left;">〒413-0012 静岡県熱海市東海岸町1-2<br>TEL:0557-81-3603　FAX:0557-81-7944</p>';
	//HTML文を指定する(熱海芸妓見番)
	htmls[1] = '<div class="popup clearfix"><img src="images/pimg01.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海芸妓見番</h3><p><strong>所在地：</strong>中央町17-13<br /><strong>開演：</strong>土日とも11時より<br /><strong>料金：</strong>お一人1,300円（芸妓踊り・顔見せ・お菓子お茶付）<br /><strong>問い合わせ先：</strong>芸妓見番 TEL/0557-81-3575</p><a href="#k_01"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://atami-geigi.jp/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;"></a></div></div>';
	//HTML文を指定する(熱海サンビーチライトアップ)
	htmls[2] = '<div class="popup clearfix"><img src="images/pimg02.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海サンビーチライトアップ</h3><p><strong>場所：</strong>サンビーチ<br /><strong>時間：</strong>平日：日没　休日：日没～24：00<br /><strong>料金：</strong><strong>問い合わせ先：</strong>熱海市みどり農水課 TEL/0557-86-6218</p><a href="#k_01"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a></div></div>';
	//HTML文を指定する(熱海花火大会)
	htmls[3] = '<div class="popup clearfix"><img src="images/pimg03.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海花火大会</h3><p><strong>場所：</strong>熱海湾<br /><strong>問い合わせ先：</strong>熱海市みどり農水課 TEL/0557-86-6218</p><a href="#k_02"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.ataminews.gr.jp/hanabi/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(熱海発遊覧船)
	htmls[4] = '<div class="popup clearfix"><img src="images/pimg04.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海発遊覧船</h3><p><strong>場所：</strong>熱海湾奥<br /><strong>問い合わせ先：</strong>TEL/0557-38-0690</p><a href="#k_02"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.bellcruise.com/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(マリンスパ あたみ)
	htmls[5] = '<div class="popup clearfix"><img src="images/pimg05.jpg" width="117" height="119"/><div class="popuptext"><h3>マリンスパ あたみ</h3><p><strong>場所：</strong>熱海市和田浜町<br /><strong>問い合わせ先：</strong>TEL/0557-86-2020</p><a href="#k_03"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.marinespa.com/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(アカオハーブ＆ローズガーデン)
	htmls[6] = '<div class="popup clearfix"><img src="images/pimg06.jpg" width="117" height="119"/><div class="popuptext"><h3>アカオハーブ＆ローズガーデン</h3><p><strong>場所：</strong>熱海市曽我1024-1（無料Ｐ有）<br /><strong>営業時間：</strong>9:00～17:00（入園は16:00頃迄）　※年中無休<br /><strong>料金：</strong>大人1,000円、小人500円<br /><strong>問い合わせ先：</strong>TEL/0557-82-1221</p><a href="#k_03"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.i-akao.com/harb-rosegarden/index.html" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(熱海城)
	htmls[7] = '<div class="popup clearfix"><img src="images/pimg07.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海城</h3><p><strong>場所：</strong>熱海市曽我山1993<br /><strong>営業時間：</strong>9:00～17:00（入園は16:30頃迄）　※年中無休<br /><strong>料金：</strong>大人900円、小人450円<br /><strong>問い合わせ先：</strong>TEL/0557-81-6206</p>  <a href="#k_04"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.atamijyo.com/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(起雲閣)
	htmls[8] = '<div class="popup clearfix"><img src="images/pimg08.jpg" width="117" height="119"/><div class="popuptext"><h3>起雲閣</h3><p><strong>場所：</strong>熱海市昭和町4-2<br /><strong>開館：</strong>9:00～17:00（入館は16:30迄）<br /><strong>料金：</strong>大人500円（団体の場合400円）・中学高校生300円（団体の場合200円）・小学生以下無料※団体は20名以上です。<br /><strong>問い合わせ先：</strong>TEL/0557-86-3101</p><a href="#k_04"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a></div></div>';
	//HTML文を指定する(来宮神社)
	htmls[9] = '<div class="popup clearfix"><img src="images/pimg09.jpg" width="117" height="119"/><div class="popuptext"><h3>来宮神社</h3><p><strong>場所：</strong>熱海市西山町43-1<br /><strong>問い合わせ先：</strong>TEL/0557-82-2241</p><a href="#k_05"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.kinomiya.or.jp/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(お宮の松)
	htmls[10] = '<div class="popup clearfix"><img src="images/pimg10.jpg" width="117" height="119"/><div class="popuptext"><h3>お宮の松</h3><p><strong>場所：</strong>熱海市東海岸町<br /><strong>問い合わせ先：</strong>熱海市観光施設課　TEL/0557-86-6218</p><a href="#k_05"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.kinomiya.or.jp/" target="_blank"></a></div></div>';
	//HTML文を指定する(旧日向別邸)
	htmls[11] = '<div class="popup clearfix"><img src="images/pimg11.jpg" width="117" height="119"/><div class="popuptext"><h3>旧日向別邸</h3><p><strong>場所：</strong>熱海市春日町8-37<br /><strong>開館：</strong>毎週土日および祝日（年末年始は要問合せ）<br /><strong>料金：</strong>大人300円・中高生200円<br /><strong>問い合わせ先：</strong>熱海市観光施設課　TEL/0557-86-6232</p><a href="#k_06"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.kinomiya.or.jp/" target="_blank"></a></div></div>';
	//HTML文を指定する(中山晋平記念館)
	htmls[12] = '<div class="popup clearfix"><img src="images/pimg12.jpg" width="117" height="119"/><div class="popuptext"><h3>中山晋平記念館</h3><p><strong>場所：</strong>熱海市梅園町8－1（梅園敷地内）※休館日：毎週木曜日<br /><strong>営業時間：</strong>10:00～15:30　※入館無料<br /><strong>問い合わせ先：</strong>TEL/0557-81-6206</p><a href="#k_06"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.city.nakano.nagano.jp/shinpei/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(熱海梅園　韓国庭園)
	htmls[13] = '<div class="popup clearfix"><img src="images/pimg13.jpg" width="117" height="119"/><div class="popuptext"><h3>熱海梅園　韓国庭園</h3><p><strong>場所：</strong>熱海市梅園町<br /><strong>問い合わせ先：</strong>熱海市観光施設課　TEL/0557-86-6218</p><a href="#k_07"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.kinomiya.or.jp/" target="_blank"></a></div></div>';
	//HTML文を指定する(彩苑)
	htmls[14] = '<div class="popup clearfix"><img src="images/pimg14.jpg" width="117" height="119"/><div class="popuptext"><h3>彩苑</h3><p><strong>場所：</strong>熱海市熱海銀山1788-61<br /><strong>営業時間：</strong>土日のみ開館：10:00～16:00　※入館無料 <br /><strong>問い合わせ先：</strong>TEL/0557-85-7377</p><a href="#k_07"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.city.nakano.nagano.jp/shinpei/" target="_blank"></a></div></div>';
	//HTML文を指定する(MOA美術館)
	htmls[15] = '<div class="popup clearfix"><img src="images/pimg15.jpg" width="117" height="119"/><div class="popuptext"><h3>MOA美術館</h3><p><strong>場所：</strong>熱海市桃山町26-2<br /><strong>営業時間：</strong>9:30～16:30　※休館日：木曜日<br /><strong>料金：</strong>大人1600円・大高生800円・小中生無料<br /><strong>問い合わせ先：</strong>TEL/0557-84-2511</p><a href="#k_08"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.moaart.or.jp/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(池田満寿夫 佐藤陽子 創作の家)
	htmls[16] = '<div class="popup clearfix"><img src="images/pimg16.jpg" width="117" height="119"/><div class="popuptext"><h3>池田満寿夫 佐藤陽子 創作の家</h3><p><strong>場所：</strong>熱海市海光町10-24<br /><strong>営業時間：</strong>9:30～16:30（入館は16:00迄）※休館日：火曜日<br /><strong>料金：</strong>大人300円・中高生200円・小学生以下は無料（小学生以下のみでの入館は不可）※市内宿泊証明印等を掲示すると大人200円。<br /><strong>問い合わせ先：</strong>TEL/0557-81-3258</p><a href="#k_08"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.moaart.or.jp/" target="_blank"></a></div></div>';
	//HTML文を指定する(戸田幸四郎絵本美術館)
	htmls[17] = '<div class="popup clearfix"><img src="images/pimg17.jpg" width="117" height="119"/><div class="popuptext"><h3>戸田幸四郎絵本美術館</h3><p><strong>場所：</strong>熱海市上多賀1055-30自然郷<br /><strong>営業時間：</strong>10:00～17:00（入館は16:30迄）※休館日：火曜日<br /><strong>料金：</strong>大人700円・小学生以下400円・3才以下無料<br /><strong>問い合わせ先：</strong>TEL/0557-67-1107</p><a href="#k_09"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.moaart.or.jp/" target="_blank"></a><a href="http://www.ehon-museum.jp/" target="_blank"><img src="images/bt_hp.gif" width="56" height="19" border="0" alt="ホームページを見る" style="margin-left:10px;" /></a></div></div>';
	//HTML文を指定する(澤田政廣記念美術館)
	htmls[18] = '<div class="popup clearfix"><img src="images/pimg18.jpg" width="117" height="119"/><div class="popuptext"><h3>澤田政廣記念美術館</h3><p><strong>場所：</strong>熱海市梅園町9-46<br /><strong>営業時間：</strong>9:00～16:30 ※休館日：月曜日（梅まつり期間中は無休）<br /><strong>料金：</strong>大人310円・学生210円・小人100円<br /><strong>問い合わせ先：</strong>TEL/0557-81-9211</p><a href="#k_09"><img src="images/bt_page.gif" width="69" height="19" border="0" alt="ページに戻る"></a><a href="http://www.moaart.or.jp/" target="_blank"></a></div></div>';	
	

//マーカー表示の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);
		});
		return marker;
	}
	function myclick(HtmlCnt) {
        gmarker[HtmlCnt].openInfoWindowHtml(htmls[HtmlCnt]);
    }
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
//      map.addControl(new GMapTypeControl());
	//初期表示の座標
	map.setCenter(new GLatLng(35.097536,139.074147), 14);
	//拡大縮小のスクロール

	map.openInfoWindowHtml(new GLatLng(35.097536,139.074147),'<p style="text-align: center;"><img src="images/map_logo.gif" alt="ホテル貫一" style="margin: 0;"></p><p style=" font-size: 12px; text-align: left;">〒413-0012 静岡県熱海市東海岸町1-2<br>TEL:0557-81-3603　FAX:0557-81-7944</p>');

	var nDataNum = point.length;
	for(nCnt=0;nCnt<nDataNum;nCnt++)
	{
		var marker = createMarker(point[nCnt],htmls[nCnt]);
		gmarker[nCnt] = marker;
		map.addOverlay(marker);
	}




}