if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.770189,138.017102); htmls[0] = '<img src="../images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒436-0077 静岡県掛川市駅前10-2<br style="clear:both;" />http://www.kuretake-inn.com/kkgw/</p>';
point[1] = new GLatLng(34.775473,138.014843); htmls[1] = '<p style="font-size:12px; margin-top:5px;"><strong>掛川城</strong><br>静岡県掛川市掛川1138-24<br style="clear:both;" />';
point[2] = new GLatLng(34.775929,138.014599); htmls[2] = '<p style="font-size:12px; margin-top:5px;"><strong>二の丸美術館</strong><br>静岡県掛川市掛川1142-1 <br style="clear:both;" />';
point[3] = new GLatLng(34.825817,137.964528); htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong>賀茂花菖蒲園</strong><br>静岡県掛川市原里110<br style="clear:both;" />';
point[4] = new GLatLng(34.773653,137.921323); htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong>可垂ゆりの園</strong><br>静岡県袋井市久能2990-1<br style="clear:both;" />';
point[5] = new GLatLng(34.785563,137.936085); htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong>油山寺</strong><br>静岡県袋井市村松１番地<br style="clear:both;" />';
point[6] = new GLatLng(34.735465,137.974242); htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong>法多山</strong><br>静岡県袋井市豊沢2777<br style="clear:both;" />';
point[7] = new GLatLng(34.770143,138.013746); htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong>ふじ美術館</strong><br>静岡県掛川市1番地の9　ABCビル8F<br style="clear:both;" />';
point[8] = new GLatLng(34.74342,137.97075); htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong>エコパ</strong><br>静岡県袋井市愛野2300-1<br style="clear:both;" />';
point[9] = new GLatLng(34.76573,138.000491); htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong>資生堂企業資料館‎</strong><br>静岡県掛川市下俣751-1<br style="clear:both;" />';
point[10] = new GLatLng(34.770692,138.009878); htmls[10] = '<p style="font-size:12px; margin-top:5px;"><strong>旧東海道‎</strong><br style="clear:both;" />';
point[11] = new GLatLng(34.81957,138.126058); htmls[11] = '<p style="font-size:12px; margin-top:5px;"><strong>大井川鉄道</strong><br style="clear:both;" />';
point[12] = new GLatLng(34.959956,138.089637); htmls[12] = '<p style="font-size:12px; margin-top:5px;"><strong>川根温泉　ふれあいの泉</strong><br>静岡県島田市川根町笹間渡220<br style="clear:both;" />';
point[13] = new GLatLng(34.729079,137.923589); htmls[13] = '<p style="font-size:12px; margin-top:5px;"><strong>遠州　和の湯</strong><br>静岡県袋井市諸井2022-3<br style="clear:both;" />';
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.770189,138.017102), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.770189,138.017102),'<img src="../images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒436-0077 静岡県掛川市駅前10-2<br style="clear:both;" />http://www.kuretake-inn.com/kkgw/</p>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}

