if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.673197,137.003916); htmls[0] = '<div id="gmap_logo"><a href="http://www.mifunetei.com/" target="_blank"><img src="images/map_mifunetei_logo.gif" alt="あなごの宿 三船亭" width="250" height="65" /></a><p>〒470-3505<br />愛知県知多郡南知多町篠島赤石48-9<br /><strong>TEL</strong>/0569-67-2241  <strong>FAX</strong>/0569-67-2709</p></div>';
//point[1] = new GLatLng(37.064013,139.964785); htmls[1] = '2件目';
//point[2] = new GLatLng(); htmls[2] = '';
//point[3] = new GLatLng(); htmls[3] = '';
//point[4] = new GLatLng(); htmls[4] = '';
//point[5] = new GLatLng(); htmls[5] = '';
//point[6] = new GLatLng(); htmls[6] = '';
//point[7] = new GLatLng(); htmls[7] = '';
//point[8] = new GLatLng(); 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.673197,137.003916), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.673197,137.003916),'<div id="gmap_logo"><a href="http://www.mifunetei.com/" target="_blank"><img src="images/map_mifunetei_logo.gif" alt="あなごの宿 三船亭" width="250" height="65" /></a><p>〒470-3505<br />愛知県知多郡南知多町篠島赤石48-9<br /><strong>TEL</strong>/0569-67-2241  <strong>FAX</strong>/0569-67-2709</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);
}
}
