if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(36.261404,137.986055); htmls[0] = '<div style="width:400px"><img src="images/tamalogo.gif" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">松本 あさま温泉　ホテル玉の湯</p><p style=" font-size: 12px; text-align: left;">〒390-0303<br>長野県松本市浅間温泉1-28-16<br>TEL：0263-46-0573<br>FAX：0263-46-5178</p></div></div>';

point[1] = new GLatLng(36.335812,137.940704); htmls[1] = '<div style="width:400px"><img src="images/img_nagamine.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">長峰山</p><p style=" font-size: 12px; text-align: left;">長野県安曇野市明科中川手 <br>TEL：0263-62-3001</p><a href="#cont01_1"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[2] = new GLatLng(36.227554,138.127945); htmls[2] = '<div style="width:400px"><img src="images/img_utsukushi.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">美ヶ原高原</p><p style=" font-size: 12px; text-align: left;">長野県小県群長和町和田美ヶ原高原 <br>問合せ：info@mcci.or.jp</p><a href="#cont01_1"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[3] = new GLatLng(36.355740,137.928772); htmls[3] = '<div style="width:400px"><img src="images/img_alps.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">アルプスグリーン道路</p><p style=" font-size: 12px; text-align: left;">起点：長野県松本市今井､川西交差点<br>終点 : 長野県塩尻市洗馬､大田橋西交差点。</p><a href="#cont01_2"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[4] = new GLatLng(36.33898,137.909147); htmls[4] = '<div style="width:400px"><img src="images/img_wasabi.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">大王わさび農場</p><p style=" font-size: 12px; text-align: left;">長野県安曇野市穂高1692<br>TEL：0263-82-2118</p><a href="#cont01_2"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[5] = new GLatLng(36.231682,138.017731); htmls[5] = '<div style="width:400px"><img src="images/img_wine.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">山辺ワイナリー</p><p style=" font-size: 12px; text-align: left;">長野県松本市大字入山辺1315-2 <br>TEL：0263-32-3644</p><a href="#cont01_3"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[6] = new GLatLng(36.233619,137.971821); htmls[6] = '<div style="width:400px"><img src="images/img_mingei.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">中央民芸ショールーム</p><p style=" font-size: 12px; text-align: left;">長野県松本市中央3-2-12<br>TEL：0263-33-5760</p><a href="#cont01_3"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[7] = new GLatLng(36.228411,137.976521); htmls[7] = '<div style="width:400px"><img src="images/img_miso.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">石井味噌</p><p style=" font-size: 12px; text-align: left;">長野県松本市埋橋1-8-1<br>TEL：0263-32-0534 </p><a href="#cont01_4"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[8] = new GLatLng(36.308830,137.930405); htmls[8] = '<div style="width:400px"><img src="images/img_tori.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">白鳥/安曇野市</p><p style=" font-size: 12px; text-align: left;">長野県安曇野市明科中川手<br>TEL：0263-77-3111</p><a href="#cont01_4"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[9] = new GLatLng(36.315762,138.004440); htmls[9] = '<div style="width:400px"><img src="images/img_kusa.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">福寿草/松本市</p><p style=" font-size: 12px; text-align: left;">松本市四賀地区（旧四賀村）、赤怒田地区の福寿草群生地<br>TEL：0263-77-3111</p><a href="#cont01_5"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

point[10] = new GLatLng(36.357616,137.934311); htmls[10] = '<div style="width:400px"><img src="images/img_sakura.jpg" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">桜/城山公園</p><p style=" font-size: 12px; text-align: left;">長野県長野市　城山公園<br>TEL：026-224-5042</p><a href="#cont01_5"><img class="btn_info" src="images/b_more.gif" alt="詳細" width="60" height="20" border="0"></a></div></div>';

//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(36.261404,137.986055), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(36.261404,137.986055),'<div style="width:400px"><img src="images/tamalogo.gif" width="140" height="94" style="float:left;"><div style="margin-left:10px; width:250px; float:right;"><p style=" font-size: 14px;">松本 あさま温泉　ホテル玉の湯</p><p style=" font-size: 12px; text-align: left;">〒390-0303<br>長野県松本市浅間温泉1-28-16<br>TEL：0263-46-0573<br>FAX：0263-46-5178</p></div></div>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}

