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="../gurumemap/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.772827,138.016592); htmls[1] = 'さくら食堂　<a href="index.htm#g_1">レストラン詳細</a>';
point[2] = new GLatLng(34.77256,138.01664); htmls[2] = 'ことのや　<a href="index.htm#g_2">レストラン詳細</a>';
point[3] = new GLatLng(34.77167,138.015514); htmls[3] = 'アミメゾン　<a href="index.htm#g_3">レストラン詳細</a>';
point[4] = new GLatLng(34.770569,138.015728); htmls[4] = '和焼庵 桜家　<a href="index.htm#g_4">レストラン詳細</a>';
point[5] = new GLatLng(34.772602,138.015044); htmls[5] = '福寿司　<a href="index.htm#g_6">レストラン詳細</a>';
point[6] = new GLatLng(34.769956,138.013113); htmls[6] = 'めんてい　<a href="index.htm#g_7">レストラン詳細</a>';
//point[8] = new GLatLng(34.991985, 137.008673); htmls[8] = '金鳥';
//point[9] = new GLatLng(); htmls[9] = '';
//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(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), 16);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.770189,138.017102),'<img src="../gurumemap/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);
}
}

