if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(36.964488,139.837954); htmls[0] = '<div class="popup"><img src="images/izumi.jpg" alt="那須塩原温泉 和泉屋旅館" width="150" height="90" class="spot"/><div class="popuptext"><h3>那須塩原温泉 和泉屋旅館</h3><p>〒329-2921 栃木県那須塩原市塩原190<br>TEL 0287-32-2005 FAX 0287-32-3793</p></div>';
point[1] = new GLatLng(36.968804,139.848938); htmls[1] = '<div class="popup"><img src="images/ryu.jpg" alt="竜化の滝" width="135" height="80" class="spot"/><div class="popuptext"><h3>竜化の滝</h3><p>塩原十名瀑の一つ。長さは塩原十名瀑の中で最長の130m。高さ約60m、幅約5m。三段になり流れ落ちる。</p><a href="#01" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://ja.wikipedia.org/wiki/%E7%AB%9C%E5%8C%96%E3%81%AE%E6%BB%9D" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[2] = new GLatLng(36.967085,139.835374); htmls[2] = '<div class="popup"><img src="images/tenno.jpg" alt="天皇の間記念公園" width="150" height="90" class="spot"/><div class="popuptext"><h3>天皇の間記念公園</h3><p>昭和天皇をはじめ多くの貴族の方々が避暑地として訪れ利用された「塩原御用邸」を移築保存しています。</p><a href="#01" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="メニューへ"></a><a href="http://www.nas.ne.jp/nasdb/emperorpark/index.shtml" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[3] = new GLatLng(36.966959,139.833652); htmls[3] = '<div class="popup"><img src="images/bijita.jpg" alt="塩原温泉ビジターセンター" width="150" height="90" class="spot"/><div class="popuptext"><h3>塩原温泉ビジターセンター</h3><p>塩原温泉を訪れる方に塩原の自然についてわかりやすく展示解説。遊歩道の説明や案内業務を行っています。</p><a href="#02" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.shiobara-vc.jp/" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[4] = new GLatLng(36.961166,139.827762); htmls[4] = '<div class="popup"><img src="images/kotaro.jpg" alt="小太郎ヶ淵" width="150" height="90" class="spot"/><div class="popuptext"><h3>小太郎ヶ淵</h3><p>風光明媚な淵。暗殺された父の敵を討とうとした、塩原五代領主小山小太郎が逆に返り討ちにあったという秘話が残るという。</p><a href="#02" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://outdoor.geocities.jp/hpmonda/kotaro_1.html" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[5] = new GLatLng(36.977039,139.807382); htmls[5] = '<div class="popup"><img src="images/sugi.jpg" alt="塩原八幡宮・逆さ杉" width="150" height="90" class="spot"/><div class="popuptext"><h3>塩原八幡宮・逆さ杉</h3><p>塩原八幡宮は『さかさ杉(夫婦杉)』や『一夜竹』の伝説から縁結び、夫婦円満、長寿、勝利、家内安全、厄除け開運の神様として有名。</p><a href="#03" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.nas.ne.jp/nasdb/sakasa/index.shtml" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[6] = new GLatLng(36.969573,139.836653); htmls[6] = '<div class="popup"><img src="images/tengu.jpg" alt="天狗岩" width="150" height="90" class="spot"/><div class="popuptext"><h3>天狗岩</h3><p>高さ100m、底辺50mの岩。国道400号を見下ろす崖のようにも見える。頂上に登る道があり、箒川沿いの渓谷に広がる温泉街が一望できる。</p><a href="#03" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.mapple.net/spots/G00900092701.htm" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[7] = new GLatLng(36.962872,139.839016); htmls[7] = '<div class="popup"><img src="images/iwanoyu.jpg" alt="岩の湯" width="150" height="90" class="spot"/><div class="popuptext"><h3>岩の湯</h3><p>塩原温泉の中心部を流れる箒川（ほうきがわ）の川岸にある露天風呂。岩の湯は湯船が２つあるがどちらも混浴。料金は吊り橋のたもとにある料金箱に入れる(100円)。</p><a href="#04" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.asahi-net.or.jp/~UE3T-CB/spa/shiobaraiwanoyu/shiobaraiwanoyu.htm" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[8] = new GLatLng(36.961048,139.841886); htmls[8] = '<div class="popup"><img src="images/fudounoyu.jpg" alt="不動の湯" width="150" height="90" class="spot"/><div class="popuptext"><h3>不動の湯</h3><p>不動の湯は岸から少し山に入った所にある。福渡温泉の小さな吊り橋を渡って川沿いの遊歩道を歩いていくと大きな岩がごろごろした渓流の脇に脱衣小屋がある。ここは湯船が一つだけの混浴。料金は吊り橋のたもとにある料金箱に入れる(100円)。</p><a href="#04" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.asahi-net.or.jp/~ue3t-cb/spa/shiobarafudonoyu/shiobarafudonoyu.htm" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[9] = new GLatLng(36.962874,139.839094); htmls[9] = '<div class="popup"><img src="images/asiyu.jpg" alt="福渡の足湯" width="150" height="90" class="spot"/><div class="popuptext"><h3>福渡の足湯</h3><p>足湯は1つの長い浴槽に2人掛けのいすが3つ置いてあり、お湯はぬるめで長湯もできる。森林の中で足湯に浸かることができる。</p><a href="#05" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://freett.com/abuabu/asiyu/totigi/nasugun/fukuto/fukuto.html" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[10] = new GLatLng(36.937926,139.753186); htmls[10] = '<div class="popup"><img src="images/hunter.jpg" alt="ハンターマウンテン（冬スキー／夏ゆりパーク）" width="150" height="90" class="spot"/><div class="popuptext"><h3>ハンターマウンテン（冬スキー／夏ゆりパーク）</h3><p>冬はスキー・スノーボーダーで賑わい、夏はゆりパークとなります。大斜面が一面のゆりの花畑になります。</p><a href="#05" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.hunter.co.jp/" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[11] = new GLatLng(36.963425,139.875687); htmls[11] = '<div class="popup"><img src="images/mikaeri.jpg" alt="回顧の吊橋" width="150" height="90" class="spot"/><div class="popuptext"><h3>回顧の吊橋</h3><p>「もみじ谷大吊橋」の少し上流にひっそりとたたずむこの吊橋。塩原を訪れた人間が当地を離れるとき、きっと振り返らずにはいられなかった事から「回顧（みかえり）」の名がついたと伝えられています。</p><a href="#06" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://shiobara.shokokai-tochigi.or.jp/chiiki-shizen.html" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[12] = new GLatLng(36.967544,139.8323); htmls[12] = '<div class="popup"><img src="images/nanatu.jpg" alt="七ツ岩吊橋" width="150" height="90" class="spot"/><div class="popuptext"><h3>七ツ岩吊橋</h3><p>「温泉と滝と吊橋の町」塩原に2001年にかけられた12番目の吊橋。橋からは七ツ岩や天狗岩などが眺められ、春になると両側にヤシオツツジが咲き乱れる。</p><a href="#06" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.atochigi.ne.jp/kikaku/higaeri/shiobara/report_a.html?ATOCHIGI=" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';
point[13] = new GLatLng(36.959031,139.830455); htmls[13] = '<div class="popup"><img src="images/sennin.jpg" alt="仙人岩吊橋" width="150" height="90" class="spot"/><div class="popuptext"><h3>仙人岩吊橋</h3><p>鹿股川（かのまたがわ）に架かる吊橋。新緑が美しくなってきた頃にぜひ一度足を運びたい場所のひとつ。</p><a href="#07" class="info"><img src="images/bt_menu.gif" width="52" height="20" border="0" alt="詳細"></a><a href="http://www.piconet.co.jp/nippon-net/nippon.cgi/see/11594" target="_blank" class="hp"><img src="images/bt_url.gif" width="52" height="20" border="0" alt="ＨＰ" /></a></div>';

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.964488,139.837954), 14);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(36.964488,139.837954),'<div class="popup"><img src="images/izumi.jpg" alt="那須塩原温泉 和泉屋旅館" width="150" height="90" class="spot"/><div class="popuptext"><h3>那須塩原温泉 和泉屋旅館</h3><p>〒329-2921 栃木県那須塩原市塩原190<br>TEL 0287-32-2005 FAX 0287-32-3793</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);
}
}
