if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.715828,137.545864); htmls[0] = '<img src="../gurume/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒431-0431 静岡県湖西市鷲津1266-1<br style="clear:both;" />http://www.kuretake-inn.com/hmnk/</p>';
point[1] = new GLatLng(34.715541,137.546291); htmls[1] = 'ちよ　<a href="index.htm#g_1">レストラン詳細</a>';
point[2] = new GLatLng(34.715455,137.546342); htmls[2] = '鷲津バー　<a href="index.htm#g_2">レストラン詳細</a>';
point[3] = new GLatLng(34.716333,137.544633); htmls[3] = 'すしまつ　<a href="index.htm#g_3">レストラン詳細</a>';
point[4] = new GLatLng(34.718431,137.541524); htmls[4] = 'チェスティーノ　<a href="index.htm#g_4">レストラン詳細</a>';
point[5] = new GLatLng(34.71684,137.544056); htmls[5] = 'まるき　<a href="index.htm#g_5">レストラン詳細</a>';
point[6] = new GLatLng(34.716738,137.543971); htmls[6] = '狸穴 マミアナ　<a href="index.htm#g_6">レストラン詳細</a>';
point[7] = new GLatLng(34.716013,137.54728); htmls[7] = 'ECOLOJI　<a href="index.htm#g_7">レストラン詳細</a>';
point[8] = new GLatLng(34.717547,137.54381); htmls[8] = 'サークルKサンクス鷲津駅前店　<a href="index.htm#g_8">レストラン詳細</a>';
//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.715828,137.545864), 16);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.715828,137.545864),'<img src="../gurume/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒431-0431 静岡県湖西市鷲津1266-1<br style="clear:both;" />http://www.kuretake-inn.com/hmnk/</p>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}

