if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//万葉若草の宿 三笠
	point[0] = new GLatLng(34.696458,135.846143);
	
	//奈良公園
	point[1] = new GLatLng(34.6854542,135.8434106); 
	
	//東大寺
	point[2] = new GLatLng(34.686485,135.841036);
	
	//興福寺
	point[3] = new GLatLng(34.6835347,135.8325478);
	
	//春日大社
	point[4] = new GLatLng(34.6804243,135.8436718);
	
	//春日山原始林
	point[5] = new GLatLng(34.68147,135.852674);
	
	//奈良国立博物館
	point[6] = new GLatLng(34.6836737,135.8366418);
	
	//若草山
	point[7] = new GLatLng(34.6904539,135.8539976);
	
	//ならまち
	point[8] = new GLatLng(34.6754856,135.8300371);
	
	//薬師寺
	point[9] = new GLatLng(34.66836143699222,135.78430473804474);
	
	//元興寺
	point[10] = new GLatLng(34.675486,135.830037);
	
	//唐招提寺
	point[11] = new GLatLng(34.676521,135.784499);
	
	//平城宮跡
	point[12] = new GLatLng(34.6961217,135.7952174);
	
	
	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(万葉若草の宿 三笠)
	htmls[0] = '<div class="pop_ac"><img src="images/img_logo.gif" alt="万葉若草の宿 三笠" /><p>〒630-8202 奈良市川上町728番地<br>TEL 0742-22-5471 / FAX 0742-22-0586</p></div>';
	
	//HTML文を指定する(奈良公園)
	htmls[1] = '<div class="popup"><img src="images/img_spot01.jpg" width="80" height="80"/><div class="popuptext"><h5>奈良公園</h5><p><strong>住所：</strong>奈良市 春日野町外 <br /><strong>問い合わせ先：</strong>奈良公園管理事務所 0742-22-0375</p><a href="#spot01"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.pref.nara.jp/dd_aspx_menuid-1713.htm"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(東大寺)
	htmls[2] = '<div class="popup"><img src="images/img_spot02.jpg" width="80" height="80"/><div class="popuptext"><h5>東大寺</h5><p><strong>住所：</strong>奈良市雑司町406-1<br /><strong>時間：</strong>8時～16時30分(季節により変動)<br /><strong>問い合わせ先：</strong>TEL 0742-22-5511 / FAX 0742-22-0808</p><a href="#spot02"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.todaiji.or.jp/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(興福寺)
	htmls[3] = '<div class="popup"><img src="images/img_spot03.jpg" width="80" height="80"/><div class="popuptext"><h5>興福寺</h5><p><strong>住所：</strong>奈良市登大路町48<br /><strong>問い合わせ先：</strong>TEL 0742-22-7755</p><a href="#spot03"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.kohfukuji.com/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(春日大社)
	htmls[4] = '<div class="popup"><img src="images/img_spot04.jpg" width="80" height="80"/><div class="popuptext"><h5>春日大社</h5><p><strong>住所：</strong>奈良県奈良市春日野町160<br /><strong>時間：</strong>6：30～18：00（11～3月は7：00～17：00）季節により変動あり<br />神苑は9：00～16：30（11～3月は7：00～16：00）<br />宝物殿は9：00～16：00<br /><strong>問い合わせ先：</strong>TEL 0742-22-7788</p><a href="#spot04"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.kasugataisha.or.jp/"><img src="images/btn_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(春日山原始林)
	htmls[5] = '<div class="popup"><img src="images/img_spot05.jpg" width="80" height="80"/><div class="popuptext"><h5>春日山原始林</h5><p><strong>住所：</strong>奈良市春日野町春日山<br /><strong>問い合わせ先：</strong>TEL 0742-22-0375(奈良公園管理事務所)</p><a href="#spot05"><img src="images/bt_info.gif" alt="一覧"></a></div></div>';
	
	//HTML文を指定する(奈良国立博物館)
	htmls[6] = '<div class="popup"><img src="images/img_spot06.jpg" width="80" height="80"/><div class="popuptext"><h5>奈良国立博物館</h5><p><strong>住所：</strong>奈良市登大路町50<br /><strong>時間：</strong>午前9：30～午後5：00（入館締切午後4：30）<br /><strong>問い合わせ先：</strong>TEL 0742-22-7771 / FAX 0742-26-7218</p><a href="#spot06"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.narahaku.go.jp/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(若草山)
	htmls[7] = '<div class="popup"><img src="images/img_spot07.jpg" width="80" height="80"/><div class="popuptext"><h5>若草山</h5><p>若草山は３つの山が重なっていることから、三笠山とも言われています。毎年、成人の日の前日に若草山焼があります。夜空をこがす壮観さは、古都奈良の新年を飾る炎の祭典です。毎年多くの観光客が訪れます。 </p><a href="#spot07"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.pref.nara.jp/dd_aspx_menuid-6553.htm"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
//HTML文を指定する(ならまち)
	htmls[8] = '<div class="popup"><img src="images/img_spot08.jpg" width="80" height="80"/><div class="popuptext"><h5>ならまち</h5><p><strong>住所：</strong>奈良県奈良市元興寺町<br /><strong>問い合わせ先：</strong>奈良市観光センター 0742-22-3900</p><a href="#spot08"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://narashikanko.jp/j/naramachi/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	
	//HTML文を指定する(薬師寺)
	htmls[9] = '<div class="popup"><img src="images/img_spot09.jpg" width="80" height="80"/><div class="popuptext"><h5>薬師寺</h5><p><strong>住所：</strong>奈良県奈良市西ノ京町457<br /><strong>営業時間：</strong>午前8時半(開門)～午後5時(閉門)<br />※但し入山申込受付は午後４時半まで<br /><strong>問い合わせ先：</strong>TEL 0742-33-6001 / FAX 0742-33-6004</p><a href="#spot09"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.nara-yakushiji.com/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(元興寺)
	htmls[10] = '<div class="popup"><img src="images/img_spot10.jpg" width="80" height="80"/><div class="popuptext"><h5>元興寺</h5><p><strong>住所：</strong>〒630-8392 奈良県奈良市中院町11<br /><strong>営業時間：</strong>午前9:00～午後5:00（入門は午後4:30まで）<strong>問い合わせ先：</strong>TEL:(0742)23-1377 / FAX:(0742)23-1378</p><a href="#spot10"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.gangoji.or.jp/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(唐招提寺)
	htmls[11] = '<div class="popup"><img src="images/img_spot11.jpg" width="80" height="80"/><div class="popuptext"><h5>唐招提寺</h5><p><strong>住所：</strong>〒630-8032　奈良県奈良市五条町13-46<br /><strong>営業時間：</strong>午前8:30～午後5:00（受付は午後4:30まで） <strong>問い合わせ先：</strong>TEL:0742-33-7900 / FAX：0742-33-5266</p><a href="#spot11"><img src="images/bt_info.gif" alt="一覧"></a><a href="http://www.toshodaiji.jp/"><img src="images/bt_hp.gif" alt="HP"></a></div></div>';
	
	//HTML文を指定する(平城宮跡)
	htmls[12] = '<div class="popup"><img src="images/img_spot12.jpg" width="80" height="80"/><div class="popuptext"><h5>平城宮跡</h5><p><strong>住所：</strong>〒630-8003　奈良県奈良市佐紀町<br /><strong>営業時間：</strong>午前9:00～午後4:30（入場は午後4:00まで）<strong>問い合わせ先：</strong>0742-30-6753（奈良文化財研究所）</p><a href="#spot12"><img src="images/bt_info.gif" alt="一覧"></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(22, 30); //アイコンサイズ
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.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(34.696458,135.846143), 14);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.696458,135.846143),'<div class="pop_ac"><img src="images/img_logo.gif" alt="万葉若草の宿 三笠" /><p>〒630-8202　奈良市川上町728番地<br>TEL 0742-22-5471 / FAX 0742-22-0586</p></div>');
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
//	var polyline = new GPolyline([new GLatLng(36.734524,138.428909),new GLatLng(36.734524,138.426849),new GLatLng(36.735485,138.426163),new GLatLng(36.736034,138.422211),new GLatLng(36.736034,138.420670),new GLatLng(36.735348,138.419296 ),new GLatLng(36.735348,138.417236),new GLatLng(36.734661,138.415863),new GLatLng(36.737000,138.410706),new GLatLng(36.742779,138.403671),new GLatLng(36.745667,138.403152),new GLatLng(36.751030,138.398010),new GLatLng(36.755157,138.395264),new GLatLng(36.758869,138.391144),new GLatLng(36.758732,138.389420),new GLatLng(36.757084,138.385483),new GLatLng(36.753918,138.383072),new GLatLng(36.751167,138.380157),new GLatLng(36.748417,138.378265),new GLatLng(36.750481,138.375519),new GLatLng(36.751305,138.373627),new GLatLng(36.751442,138.371567),new GLatLng(36.749516,138.369507),new GLatLng(36.747177,138.368317),new GLatLng(36.747730,138.366760),new GLatLng(36.747314,138.364365),new GLatLng(36.746216,138.359558),new GLatLng(36.744839,138.351486),new GLatLng(36.739063,138.334152),new GLatLng(36.734798,138.323685),new GLatLng(36.728607,138.316635),],"#FF4600",6,0.6);
	
		//ライン2
	//var polyline2 = new GPolyline([new GLatLng(35.169584,136.897599),new GLatLng(35.169623,136.897647),new GLatLng(35.17097,136.897491),new GLatLng(35.171158,136.897497),new GLatLng(35.171294,136.899637),new GLatLng(35.171475,136.899664),],"#F5551E",6,0.6);
	
	//マップにポリライン表示
//	map.addOverlay(polyline);
	//map.addOverlay(polyline2);

}

