if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.710432,137.852178); htmls[0] = '<img src="../kankou/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒438-0078　静岡県磐田市中泉3300-7<br style="clear:both;" />http://www.kuretake-inn.com/iwat/</p>';
point[1] = new GLatLng(34.719613,137.851572); htmls[1] = '<p style="font-size:12px; margin-top:5px;"><strong>遠江国分寺跡</strong>';
point[2] = new GLatLng(34.738073,137.815008); htmls[2] = '<p style="font-size:12px; margin-top:5px;"><strong>熊野伝統芸能館</strong>';
point[3] = new GLatLng(34.719931,137.853498); htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong>府八幡宮</strong><br>静岡県浜松市中区板屋町111竏鈀1<br style="clear:both;" />';
point[4] = new GLatLng(34.727516,137.856992); htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong>旧見付学校</strong>';
point[5] = new GLatLng(34.73699,137.813243); htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong>池田の渡し歴史風景館</strong>';
point[6] = new GLatLng(34.738412,137.812374); htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong>豊田池田の渡し公園</strong>';
point[7] = new GLatLng(34.820526,137.833872); htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong>薬草公苑・豊岡農村民俗資料館・郷土館</strong>';
point[8] = new GLatLng(34.73193,137.849265); htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong>旧赤松家記念館</strong>';
point[9] = new GLatLng(34.824091,137.835197); htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong>花咲乃庄窶踀</strong>';
point[10] = new GLatLng(34.807895,137.835108); htmls[10] = '<p style="font-size:12px; margin-top:5px;"><strong>豊岡採れたて元気村窶踀</strong>';
point[11] = new GLatLng(34.715453,137.81964); htmls[11] = '<p style="font-size:12px; margin-top:5px;"><strong>香りの博物館</strong>';
point[12] = new GLatLng(34.731914,137.822703); htmls[12] = '<p style="font-size:12px; margin-top:5px;"><strong>新造形創造館</strong>';
point[13] = new GLatLng(34.74143,137.884265); htmls[13] = '<p style="font-size:12px; margin-top:5px;"><strong>桶ヶ谷沼</strong>';
point[14] = new GLatLng(34.73731,137.814855); htmls[14] = '<p style="font-size:12px; margin-top:5px;"><strong>豊田熊野記念公園</strong>';
point[15] = new GLatLng(34.65065,137.802458); htmls[15] = '<p style="font-size:12px; margin-top:5px;"><strong>掛塚灯台・風竜 </strong>';
point[16] = new GLatLng(34.67516,137.895032); htmls[16] = '<p style="font-size:12px; margin-top:5px;"><strong>はまぼう公園 </strong>';
point[17] = new GLatLng(34.846408,137.875881); htmls[17] = '<p style="font-size:12px; margin-top:5px;"><strong>獅子ヶ鼻公園</strong>';
point[18] = new GLatLng(34.731696,137.864452); htmls[18] = '<p style="font-size:12px; margin-top:5px;"><strong>つつじ公園</strong>';
point[19] = new GLatLng(34.668699,137.903059); htmls[19] = '<p style="font-size:12px; margin-top:5px;"><strong>浜辺のプロムナード</strong>';
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.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(34.710432,137.852178), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.710432,137.852178),'<img src="../kankou/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒438-0078　静岡県磐田市中泉3300-7<br style="clear:both;" />http://www.kuretake-inn.com/iwat/</p>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}

