if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.575362,136.535388); htmls[0] = '<img src="../kankou/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒515-0017　三重県松阪市京町516-1<br style="clear:both;" />http://www.kuretake-inn.com/mtsk/</p>';
point[1] = new GLatLng(34.455226,136.725755); htmls[1] = '<p style="font-size:12px; margin-top:5px;"><strong>伊勢神宮</strong><br style="clear:both;" />三重県伊勢市宇治館町</p>';
point[2] = new GLatLng(34.462564,136.722818); htmls[2] = '<p style="font-size:12px; margin-top:5px;"><strong>おかげ横丁</strong><br style="clear:both;" />三重県伊勢市宇治館町</p>';
point[3] = new GLatLng(34.361559,136.846175); htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong>志摩スペイン村</strong><br style="clear:both;" />三重県志摩市磯部町坂崎952-4</p>';
point[4] = new GLatLng(34.48155,136.845789); htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong>鳥羽水族館</strong><br style="clear:both;" />三重県鳥羽市鳥羽3丁目3-6</p>';
point[5] = new GLatLng(34.310547,136.819611); htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong>志摩マリンランド</strong><br style="clear:both;" />三重県志摩市阿児町神明723-1</p>';
point[6] = new GLatLng(34.507335,136.791887); htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong>二見シーパラダイス</strong><br style="clear:both;" />三重県伊勢市二見町江580ルート<br> 乗換案内0596-43-4111</address></p>';
point[7] = new GLatLng(34.508807,136.787692); htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong>夫婦岩</strong><br style="clear:both;" />三重県伊勢市二見町江575</p>';
point[8] = new GLatLng(34.498281,136.777639); htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong>伊勢・安土桃山文化村</strong><br style="clear:both;" />三重県伊勢市二見町三津1201-1</p>';
point[9] = new GLatLng(34.480513,136.846701); htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong>伊勢湾フェリー</strong><br style="clear:both;" />三重県鳥羽市鳥羽3丁目1484-111</p>';
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.575362,136.535388), 10);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.575362,136.535388),'<img src="../kankou/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒515-0017　三重県松阪市京町516-1<br style="clear:both;" />http://www.kuretake-inn.com/mtsk/</p>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}
