if(GBrowserIsCompatible())
{

	var point = new Array();
	var nCnt = 0;
	var gmarker = new Array();
	var htmls = new Array();

/* ----- 初期設定 ----- */
//マーカー表示の座標設定▼
	//マーカー座標指定(ペンションアニマーレアネックス)
	point[0] = new GLatLng(37.071412,140.003092);
	//マーカー座標指定(那須ハイランドパーク)
	point[1] = new GLatLng(37.064013,139.964785);
	//マーカー座標指定(那須サファリパーク)
	point[2] = new GLatLng(37.059024,140.005842);
	//マーカー座標指定(南ヶ丘牧場)
	point[3] = new GLatLng(37.078779,140.000694);
	//マーカー座標指定(Mｔ.ジーンズスキーリゾート)
	point[4] = new GLatLng(37.126587,140.014615);
	//マーカー座標指定(那須ハイランドゴルフクラブ)
	point[5] = new GLatLng(37.071889,139.942807);
	//マーカー座標指定(乙女の滝)
	point[6] = new GLatLng(37.066934,139.937612);
	//マーカー座標指定(沼原湿原)
	point[7] = new GLatLng(37.108974,139.926075);
	//マーカー座標指定(りんどう湖ファミリー牧場)
	point[8] = new GLatLng(37.045773,140.046072);
	//マーカー座標指定(那須どうぶつ王国)
	point[9] = new GLatLng(37.128862,140.037049);
	//マーカー座標指定(那須ワールドモンキーパーク)
	point[10] = new GLatLng(37.035289,140.048344);
	//マーカー座標指定(那須テディベアミュージアム)
	point[11] = new GLatLng(37.049012,140.038991);
	//マーカー座標指定(殺生石)
	point[12] = new GLatLng(37.101686,139.998559);

//マーカー表示の座標設定▲

//マーカー表示のHTML▼
	//HTML文を指定する(ペンションアニマーレアネックス)
	htmls[0] = '<div style="height:90px; width:135px; float:left; padding-top:15px;"><img src="images/qslogo.gif" width="120" height="83" style="float: left;"></div><p style=" font-size: 10px; margin: 0;">ペンション</p><p style=" font-size: 14px;">アニマーレ アネックス</p><p style=" font-size: 12px; text-align: left;">〒325-0301<br>栃木県那須郡那須町湯本601-3<br>TEL : 0288-54-1717</p>';
	//HTML文を指定する(那須ハイランドパーク)
	htmls[1] = '<img src="images/sig_img_01.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須ハイランドパーク</p><p style=" font-size: 12px; text-align: left;">大観覧車、スーパートマホーク<br />世界最大級38ｍの２層メリーゴーランド他<br />各種乗物があり楽しめます。</p><a href="#d_01"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.nasuhai.co.jp/index.html" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(那須サファリパーク)
	htmls[2] = '<img src="images/sig_img_02.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須サファリパーク</p><p style=" font-size: 12px; text-align: left;">約70種類、700頭羽の<br />アフリカ動物の放し飼いの中を<br />マイカーで探検。<br />生きた動物の姿を自前に<br />ハンターになったつもりで<br />散歩してみてはいかが。</p><a href="#d_02"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a>';
	//HTML文を指定する(南ヶ丘牧場)
	htmls[3] = '<img src="images/sig_img_03.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">南ヶ丘牧場</p><p style=" font-size: 12px; text-align: left;">乗馬、乗ロバ、釣り堀、<br />パットパットゴルフ等、<br />子供から大人まで楽しめます。</p><a href="#d_03"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.minamigaoka.co.jp/" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(Mｔ.ジーンズスキーリゾート)
	htmls[4] = '<img src="images/sig_img_04.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">Mｔ.ジーンズスキーリゾート</p><p style=" font-size: 12px; text-align: left;">首都圏から車でわずか120分。<br /> 県道305号線の開通で<br />ますますアクセス便利になり<br />日帰りスキーに最適。</p><a href="#d_04"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.mtjeans.com/index2.html" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(那須ハイランドゴルフクラブ)
	htmls[5] = '<img src="images/sig_img_05.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須ハイランドゴルフクラブ</p><p style=" font-size: 12px; text-align: left;">季節により異なる<br />すばらしい景観と<br />高原のすがすがしい気候のもと<br />こころゆくまでゴルフの世界を<br />ご堪能下さい</p><a href="#d_05"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.nhgc.jp/" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(乙女の滝)
	htmls[6] = '<img src="images/sig_img_06.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">乙女の滝</p><p style=" font-size: 12px; text-align: left;">白笹山から流れる沢名川にある滝。<br />美しい乙女が髪を洗っていた水が、<br />乙女の髪に見えたという逸話が名の由来。</p><a href="#d_06"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.kuroiso-kankou.org/sightseeing_detail.shtml?163" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(沼原湿原)
	htmls[7] = '<img src="images/sig_img_07.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">沼原湿原</p><p style=" font-size: 12px; text-align: left;">白笹山の山腹、標高1200mに<br />ある静かで美しい湿原。</p><a href="#d_07"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.kuroiso-kankou.org/numappara.shtml" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(りんどう湖ファミリー牧場)
	htmls[8] = '<img src="images/sig_img_08.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">りんどう湖ファミリー牧場</p><p style=" font-size: 12px; text-align: left;">ファミリーを中心に<br />自然、各種乗り物<br />アトラクション、動物等<br />様々に楽しめるレジャーランドです。</p><a href="#d_08"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.rindo.co.jp/" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(那須どうぶつ王国)
	htmls[9] = '<img src="images/sig_img_09.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須どうぶつ王国</p><p style=" font-size: 12px; text-align: left;">畑正憲監修の<br />どうぶつテーマパークです。<br />世界の犬・猫・馬と<br />那須の雄大な自然の中で<br />一日中楽しめます。</p><a href="#d_09"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.nasukogen.co.jp/oukoku/" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(那須ワールドモンキーパーク)
	htmls[10] = '<img src="images/sig_img_10.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須ワールドモンキーパーク</p><p style=" font-size: 12px; text-align: left;">珍しい猿を<br />60種類以上350頭を集めた<br />猿の動物園。<br />日本ではここだけでしか<br />見られない珍しい猿も。</p><a href="#d_10"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a></a>';
	//HTML文を指定する(那須テディベアミュージアム)
	htmls[11] = '<img src="images/sig_img_11.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">那須テディベアミュージアム</p><p style=" font-size: 12px; text-align: left;">〒325-0302<br />世界各地のテディベア作家の<br />個性溢れる作品<br />また物語性のある展示も魅力です。<br />館内にはショップ、ティールームも<br />あります。</p><a href="#d_11"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a><a href="http://www.teddynet.co.jp/nasu/nasu_main_f.html" target="_blank"><img src="images/b_hp.gif" width="72" height="29" border="0" style="margin:10px 0 0 10px;"></a>';
	//HTML文を指定する(殺生石)
	htmls[12] = '<img src="images/sig_img_12.jpg" width="150" height="150" style="float: left; margin:0 10px 0 0;" /><p style=" font-size: 14px;">殺生石</p><p style=" font-size: 12px; text-align: left;">九尾の狐の妖怪が石に化け<br />近づく者に毒気を出して<br />命を奪ったという伝説も。<br /> 謎めいた不思議な空気が<br />ただよっています。</p><a href="#d_12"><img src="images/b_detail.gif" width="72" height="29" border="0" style="margin:10px 0 0 0;" /></a>';
		
//マーカー表示の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.enableDoubleClickZoom();
	map.enableContinuousZoom(); 
	map.setCenter(new GLatLng(37.071412,140.003092), 12);
	//拡大縮小のスクロール

	map.openInfoWindowHtml(new GLatLng(37.071412,140.003092),'<div style="height:90px; width:135px; float:left; padding-top:15px;"><img src="images/qslogo.gif" width="120" height="83" style="float: left;"></div><p style=" font-size: 10px; margin: 0;">ペンション</p><p style=" font-size: 14px;">アニマーレ アネックス</p><p style=" font-size: 12px; text-align: left;">〒325-0301<br>栃木県那須郡那須町湯本601-3<br>TEL : 0288-54-1717</p>');

	var nDataNum = point.length;
	for(nCnt=0;nCnt<nDataNum;nCnt++)
	{
		var marker = createMarker(point[nCnt],htmls[nCnt]);
		gmarker[nCnt] = marker;
		map.addOverlay(marker);
	}
}
