if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();

point[0] = new GLatLng(34.769237,136.134463); htmls[0] = '<div class="pop_ac"><img src="images/logo.gif" alt="伊賀市 上野 | 料亭旅館 三田清" width="190" height="40" /><p>〒518-0871<br>三重県伊賀市上野赤坂町320番地<br>TEL:0595-21-0030 / FAX:0595-24-0898</p></div>';

point[1] = new GLatLng(34.770162,136.127111); htmls[1] = '<div class="popup clearfix"><img src="images/img_ueno.gif" width="80" height="80"/><div class="popuptext"><h3>上野城</h3><p><strong>所在地：</strong>伊賀市上野丸之内106<br /><strong>問い合わせ先：</strong>TEL/0595-21-3148（財団法人 伊賀文化産業協会）<br /><strong>営業時間 ：</strong>9:00～17:00（入館は16:45まで）<br>※12/29～12/31休業<br /><strong>料金：</strong>入場無料<br /><strong>お休み：</strong>年中無休<br /></p><a href="http://www.ict.ne.jp/~uenojyo/" target="_blank"><img src="images/btn_hp.gif" width="70" height="20" border="0" alt="HP" class="f_right" ></a></div></div>';

point[2] = new GLatLng(34.771723,136.129127); htmls[2] = '<div class="popup clearfix"><img src="images/img_ninzya.gif" width="80" height="80"/><div class="popuptext"><h3>伊賀流忍者博物館</h3><p><strong>所在地：</strong>三重県伊賀市上野丸之内117－13－1<br /><strong>問い合わせ先：</strong>TEL/0595-23-0311<br /><strong>営業時間 ：</strong>9:00～17:00（入館受付は16:30で終了）<br /><strong>料金：</strong>大人700円、小人400円<br /><strong>お休み：</strong>12/29～1/1<br /></p><a href="http://iganinja.jp/" target="_blank"><img src="images/btn_hp.gif" width="70" height="20" border="0" alt="HP" class="f_right" ></a></div></div>';

point[3] = new GLatLng(34.76862,136.135352); htmls[3] = '<div class="popup clearfix"><img src="images/img_basyou.gif" width="80" height="80"/><div class="popuptext"><h3>芭蕉生家</h3><p><strong>所在地：</strong>三重県伊賀市上野赤坂町304<br /><strong>問い合わせ先：</strong>TEL/0595-24-2711<br /><strong>営業時間 ：</strong>8：30～17：00（入館受付は16：30分で終了）<br /><strong>料金：</strong>大人300円、 生徒・児童100円<br /><strong>お休み：</strong>年末年始<br /></p></div></div>';

point[4] = new GLatLng(34.769629,136.130821); htmls[4] = '<div class="popup clearfix"><img src="images/img_danjiri.gif" width="80" height="80"/><div class="popuptext"><h3>だんじり会館</h3><p><strong>所在地：</strong>三重県伊賀市上野丸之内122-4<br /><strong>問い合わせ先：</strong>TEL/0595-24-4400<br /><strong>料金：</strong>大人500円、子供300円<br /><strong>お休み：</strong>4月第3日曜日、10月23日～10月25日、12月29日～1月1日</p></div></div>';

point[5] = new GLatLng(34.856961,136.185511); htmls[5] = '<div class="popup clearfix"><img src="images/img_mokumoku.gif" width="80" height="80"/><div class="popuptext"><h3>伊賀の里 モクモク手づくりファーム</h3><p><strong>所在地：</strong>伊賀市西湯舟3609<br /><strong>問い合わせ先：</strong>TEL/0595-43-0909<br /><strong>営業時間 ：</strong>10：00～16：30（モクモクショップは21時まで）<br /><strong>料金：</strong>ファームエリア入園料 400円（平日の午後3時以降は入場無料）<br /><strong>お休み：</strong>4月～12月：無休　1月～3月：元旦・不定休</p><a href="http://www.moku-moku.com/" target="_blank"><img src="images/btn_hp.gif" width="70" height="20" border="0" alt="HP" class="f_right" ></a></div></div>';

point[6] = new GLatLng(34.837317,136.130182); htmls[6] = '<div class="popup clearfix"><img src="images/img_nagatanien.gif" width="80" height="80"/><div class="popuptext"><h3>伊賀焼の郷 長谷園</h3><p><strong>所在地：</strong>三重県伊賀市丸柱569<br /><strong>問い合わせ先：</strong>TEL/0595-44-1511<br />【フリーダイヤル】0120-529-500</p><a href="http://www.igamono.co.jp/" target="_blank"><img src="images/btn_hp.gif" width="70" height="20" border="0" alt="公式HPへ" class="f_right" ></a></div></div>';

point[7] = new GLatLng(34.565566,136.084864); htmls[7] = '<div class="popup clearfix"><img src="images/img_taki.gif" width="80" height="80"/><div class="popuptext"><h3>赤目四十八滝</h3><p><strong>所在地：</strong>三重県名張市赤目町長坂<br /><strong>問い合わせ先：</strong>TEL/0595-63-3004(赤目四十八滝管理センター )<br /><strong>料金：</strong>大人300円、 小人（小学生・中学生）150円</p><a href="http://www.akame48taki.jp/" target="_blank"><img src="images/btn_hp.gif" width="70" height="20" border="0" alt="公式HPへ" class="f_right" ></a></div></div>';

point[8] = new GLatLng(34.771927,136.156754); htmls[8] = '<p>中瀬IC(名古屋方面からお越しの場合)</p>';
point[9] = new GLatLng(34.753269,136.132904); htmls[9] = '<p>上野東IC(大阪方面からお越しの場合)</p>';
point[10] = new GLatLng(34.767586,136.130051); htmls[10] = '<p>上野駅</p>';

//point[10] = new GLatLng(); htmls[10] = '';
//point[11] = new GLatLng(); htmls[11] = '';
//point[12] = new GLatLng(); htmls[12] = '';
//point[13] = new GLatLng(); htmls[13] = '';
//point[14] = new GLatLng(); htmls[14] = '';
//point[15] = new GLatLng(); htmls[15] = '';
//point[16] = new GLatLng(); htmls[16] = '';
//point[17] = new GLatLng(); htmls[17] = '';
//point[18] = new GLatLng(); htmls[18] = '';
//point[19] = new GLatLng(); htmls[19] = '';
//point[20] = new GLatLng(); htmls[20] = '';
function createMarker(point,htmlData)
{
var iconSet = new GIcon();
iconSet.image            = "mapimage/"+ nCnt +".png"; //アイコン画像パス
iconSet.shadow           = "mapimage/shadow.png"; //影画像パス
iconSet.iconSize         = new GSize(23, 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.769237,136.134463), 14);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.769237,136.134463),'<div class="pop_ac"><img src="images/logo.gif" alt="伊賀市 上野 | 料亭旅館 三田清" width="180" height="40" /><p>〒518-0871<br>三重県伊賀市上野赤坂町320番地<br>TEL:0595-21-0030 / FAX:0595-24-0898</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(34.771927,136.156754),new GLatLng(34.771259,136.153351),new GLatLng(34.771099,136.151276),new GLatLng(34.771053,136.14621),new GLatLng(34.769936,136.1409),new GLatLng(34.769547,136.139511),new GLatLng(34.768921,136.13855),new GLatLng(34.768726,136.13826),new GLatLng(34.76857,136.136398),new GLatLng(34.768505,136.134613),new GLatLng(34.768967,136.134537),new GLatLng(34.769165,136.134521),],"#009933",6,0.6);
	
	//ライン2
	var polyline2 = new GPolyline([new GLatLng(34.753269,136.132904),new GLatLng(34.757729,136.132492),new GLatLng(34.759563,136.132294),new GLatLng(34.760868,136.131973),new GLatLng(34.766228,136.131165),new GLatLng(34.76815,136.131012),new GLatLng(34.76852,136.134613),new GLatLng(34.768864,136.134552),new GLatLng(34.769203,136.134537),],"#00f",6,0.6);
	
		//ライン3
	var polyline3 = new GPolyline([new GLatLng(34.767586,136.130051),new GLatLng(34.767677,136.131104),new GLatLng(34.768127,136.131058),new GLatLng(34.768505,136.134613),new GLatLng(34.768974,136.134537),new GLatLng(34.769199,136.134521),],"#f00",6,0.6);
	
	//マップにポリライン表示
	map.addOverlay(polyline);
	map.addOverlay(polyline2);
	map.addOverlay(polyline3);

}
