if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(35.246005,136.246962); htmls[0] = '<div style="width: 250px; text-align: center"><img src="../images/map_hotellogo.gif"><p style="width: 250px; text-align:center;">〒522-0054<br />滋賀県彦根市西今町62-2<br />TEL 0749-27-5000</p></div>';
point[1] = new GLatLng(35.276471,136.251843); htmls[1] = '<div class="sig_spot_cont_map"><img src="images/hikonejou_s.jpg" alt="彦根城" width="120" height="90" /><div><h5>彦根城</h5><p class="bt_goto_det"><a href="#tenshu">詳細に戻る</a></p><p class="bt_goto_website"><a href="http://yumekyobashi.jp/shop/shopinfo.php?shop=takashi" target="_blank">HPを見る</a></p></div></div>';
point[2] = new GLatLng(35.275527,136.252498); htmls[2] = '<div class="sig_spot_cont_map"><img src="images/tenbinyagura_s.jpg" alt="天秤櫓（てんびんやぐら）" width="120" height="90" /><div><h5>天秤櫓（てんびんやぐら）</h5><p class="bt_goto_det"><a href="#tenbin">詳細に戻る</a></a></p></div></div>';
point[3] = new GLatLng(35.278378,136.253128); htmls[3] = '<div class="sig_spot_cont_map"><img src="images/genkyuen_s.jpg" alt="玄宮園 （げんきゅうえん）" width="120" height="90" /><div><h5>玄宮園 （げんきゅうえん）</h5><p class="bt_goto_det"><a href="#genkyu">詳細に戻る</a></p><p class="bt_goto_website"><a href="#" target=_blank">HPを見る</a></p></div></div>';
point[4] = new GLatLng(35.278751,136.252836); htmls[4] = '<div class="sig_spot_cont_map"><img src="images/rakurakuen_s.jpg" alt="楽々園 （らくらくえん）" width="120" height="90" /><div><h5>楽々園 （らくらくえん）</h5><p class="bt_goto_det"><a href="#rakuraku">詳細に戻る</a></p><p class="bt_goto_website"><a href="#" target=_blank">HPを見る</a></p></div></div>';
point[5] = new GLatLng(35.22558,136.290483); htmls[5] = '<div class="sig_spot_cont_map"><img src="images/tagataisha_s.jpg" alt="多賀大社" width="120" height="90" /><div><h5>多賀大社</h5><p class="bt_goto_det"><a href="#taga">詳細に戻る</a></p><p class="bt_goto_website"><a href="http://www.tagataisya.or.jp/" target=_blank">HPを見る</a></p></div></div>';
point[6] = new GLatLng(35.283832,136.266373); htmls[6] = '<div class="sig_spot_cont_map"><img src="images/iijinja_s.jpg" alt="井伊神社" width="120" height="90" /><div><h5>井伊神社</h5><p class="bt_goto_det"><a href="#iijinja">詳細に戻る</a></p><p class="bt_goto_website"><a href="#" target=_blank">HPを見る</a></p></div></div>';
//龍潭寺
point[7] = new GLatLng(35.282843,136.266555); htmls[7] = '<div class="sig_spot_cont_map"><img src="images/ryuutanji_s.jpg" alt="井伊神社" width="120" height="90" /><div><h5>龍潭寺</h5><p class="bt_goto_det"><a href="#ryuutanji">詳細に戻る</a></p></div></div>';
//佐和山城址
point[8] = new GLatLng(35.279495,136.268926); htmls[8] = '<div class="sig_spot_cont_map"><img src="images/sawayama_s.jpg" alt="井伊神社" width="120" height="90" /><div><h5>佐和山城址</h5><p class="bt_goto_det"><a href="#sawayama">詳細に戻る</a></p></div></div>';
point[9] = new GLatLng(35.245019,136.238966); htmls[9] = '<div class="sig_spot_cont_map"><img src="images/juuonomizu_s.jpg" alt="名水百選　「十王村の水」" width="120" height="90" /><div><h5>名水百選　「十王村の水」</h5><p class="bt_goto_det"><a href="#juuoumizu">詳細に戻る</a></p><p class="bt_goto_website"><a href="#" target=_blank">HPを見る</a></p></div></div>';
//湖東三山 西明寺
point[10] = new GLatLng(35.183343,136.285532); htmls[10] = '<div class="sig_spot_cont_map"><img src="images/saimyouji_s.jpg" alt="井伊神社" width="120" height="90" /><div><h5>湖東三山 西明寺</h5><p class="bt_goto_det"><a href="#saimyouji">詳細に戻る</a></p><p class="bt_goto_website"><a href="http://www.saimyouji.com/" target=_blank">HPを見る</a></p></div></div>';
point[11] = new GLatLng(35.269442,136.251433); htmls[11] = '<div class="sig_spot_cont_map"><img src="images/yonban_square_s.jpg" alt="四番町スクエア" width="120" height="90" /><div><h5>四番町スクエア</h5><p class="bt_goto_det"><a href="#yonban">詳細に戻る</a></p><p class="bt_goto_website"><a href="http://www.4bancho.com/" target=_blank">HPを見る</a></p></div></div>';
point[12] = new GLatLng(35.270874,136.251371); htmls[12] = '<div class="sig_spot_cont_map"><img src="images/yumekyoubashi_s.jpg" alt="夢京橋キャッスルロード" width="120" height="90" /><div><h5>夢京橋キャッスルロード</h5><p class="bt_goto_det"><a href="#yumekyobashi">詳細に戻る</a></p><p class="bt_goto_website"><a href="http://yumekyobashi.jp/" target=_blank">HPを見る</a></p></div></div>';
//竹生島
point[13] = new GLatLng(35.423303,136.144075); htmls[13] = '<div class="sig_spot_cont_map"><img src="images/chikubujima_s.jpg" alt="井伊神社" width="120" height="90" /><div><h5>竹生島</h5><p class="bt_goto_det"><a href="#chikubujima">詳細に戻る</a></p></div></div>';

//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("gmap"));
//操作バー（左）
map.addControl(new GLargeMapControl());
//表示切替（上）
//map.addControl(new GMapTypeControl());
//ダブルクリックズーム＆スムージング
map.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(35.264683,136.249008), 12);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(35.246005,136.246962),'<div style="width: 250px; text-align: center"><img src="../images/map_hotellogo.gif"><p style="width: 250px; text-align:center;">〒522-0054<br />滋賀県彦根市西今町62-2<br />TEL 0749-27-5000</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);
}
}

