﻿var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();

function drawGoogleMap()
{

	if(GBrowserIsCompatible())
	{

point[0] = new GLatLng(36.739568,139.497273); htmls[0] = '<div class="cnt_point"><img src="images/map_logo.gif" width="215" height="58" /><p class="point_txt">〒321-1661　栃木県日光市中宮祠2480<br />TEL. 0288-51-0105<br />FAX. 0288-55-1051</p></div>';

point[1] = new GLatLng(36.799025,139.424604); htmls[1] = '<div class="cnt_point_spot"><img src="images/yunoko.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>湯ノ湖</strong><br />三岳が噴火したときに流れ出た三岳溶岩流によって、湯川がせき止められ形成された標高1478メートルにできた、せき止め湖。周囲が3キロあり、約1時間で一周できる。</p></div>';

point[2] = new GLatLng(36.796155,139.428456); htmls[2] = '<div class="cnt_point_spot"><img src="images/yunotaki.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>湯滝</strong><br />湯ノ湖の南端にある高さ70メートルの滝で、湯川をせき止めて湯ノ湖をつくった三岳溶岩流の岩壁を湖水が流れ落ちる。幅は最大で25メートル。</p></div>';

point[3] = new GLatLng(36.792667,139.42704); htmls[3] = '<div class="cnt_point_spot"><img src="images/yunogawa.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>湯ノ川</strong><br />湯ノ湖の南にある湯滝から流れ落ち、竜頭ノ滝-を経て地獄川となり、中禅寺湖の菖蒲ガ浜にそそぐ約12.4キロの短い川。</p></div>';

point[4] = new GLatLng(36.776467, 139.441153); htmls[4] = '<div class="cnt_point_spot"><img src="images/senjyougahara.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>戦場ヶ原</strong><br />日光国立公園内にある湿原でハイキングにも最適な場所です。2005年11月奥日光の湿原としてラムサール条約登録湿地となりました。</p></div>';

point[5] = new GLatLng(36.77492,139.426007); htmls[5] = '<div class="cnt_point_spot"><img src="images/odasiro.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>小田代原</strong><br />約65万平方mに広がる湿原地帯。草原には様々な花を見ることができ、シャッターチャンスを狙う人が後が絶えないほどの人気があります。</p></div>';

point[6] = new GLatLng(36.758885,139.451287); htmls[6] = '<div class="cnt_point_spot"><img src="images/ryuuzunotaki.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>竜頭の滝</strong><br />湯ノ湖から流れ出た湯川が、中禅寺湖に注ぐ手前にある。奥日光三名瀑のひとつで、男体山噴火による溶岩の上を210メートルにわたって流れ落ちている。</p></div>';

point[7] = new GLatLng(36.768535,139.483833); htmls[7] = '<div class="cnt_point_spot"><img src="images/nantaisan.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>男体山</strong><br />日光国立公園内、栃木県日光市にある火山。古くから山岳信仰の対象として知られ、山頂には日光二荒山神社の奥宮がある。</p></div>';

point[8] = new GLatLng(36.745712,139.458733); htmls[8] = '<div class="cnt_point_spot"><img src="images/chuzenjiko.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>中禅寺湖</strong><br />周囲約25キロ、最大水深163メートルの日光を代表する湖。水面の海抜高度1269メートルは、日本一の高さを誇り、約2万年もの昔、男体山の噴火による溶岩で渓谷がせき止められ、原形ができたといわれる。</p></div>';

point[9] = new GLatLng(36.739628,139.493065); htmls[9] = '<div class="cnt_point_spot"><img src="images/yuuransen.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>中禅寺湖遊覧船乗り場</strong><br />中禅寺湖の紅葉を楽しむには遊覧船がおすすめ！時間に余裕が無い方は遊覧船に乗船し、南岸の八丁出島や上野島等の紅葉ポイントを約1時間で楽しめます。</p></div>';

point[10] = new GLatLng(36.737106,139.517732); htmls[10] = '<div class="cnt_point_spot"><img src="images/akechidaira.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>明智平</strong><br />明智平からロープウェイで展望台まで上がると、男体山を拝み中禅寺湖を望めるのをはじめ、華厳ノ滝、白雲ノ滝、屏風岩などが一望できる。</p></div>';

point[11] = new GLatLng(36.738081,139.502506); htmls[11] = '<div class="cnt_point_spot"><img src="images/kegonnotaki.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>華厳の滝</strong><br />高さ97メートルをほぼ一気に落下する豪快さと、自然が作り出す華麗な造形美の両方をあわせ持ち、和歌山県の那智ノ滝、茨城県の袋田ノ滝とともに「日本の三大名瀑」とも呼ばれる。</p></div>';

point[12] = new GLatLng(36.716596,139.485355); htmls[12] = '<div class="cnt_point_spot"><img src="images/tenboudai.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>中禅寺湖展望台</strong><br />中禅寺湖スカイラインの途中にある展望台。男体山と中禅寺湖が見ることが出来る。</p></div>';

point[13] = new GLatLng(36.755659,139.556212); htmls[13] = '<div class="cnt_point_spot"><img src="images/uraminotaki.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>裏見の滝</strong><br />大谷川の支流荒沢川の上流にある、高さ約45メートルの滝。</p></div>';

point[14] = new GLatLng(36.80764,139.588803); htmls[14] = '<div class="cnt_point_spot"><img src="images/kissgame.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>キスゲ平</strong><br />高1689メートルの丸山の中腹に広がる台地。6月下旬～7月下旬には数万株のニッコウキスゲの黄色い花が一面に咲き誇る。</p></div>';

point[15] = new GLatLng(36.776972,139.627167); htmls[15] = '<div class="cnt_point_spot"><img src="images/kirifurinotaki.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>霧降の滝</strong><br />古くから華厳ノ滝、裏見ノ滝とともに日光三名瀑の一つに数えられている。霧降川にかかる滝は上下2段になっていて、上段が25メートル、下段が26メートル、高さは75メートルある。</p></div>';

point[16] = new GLatLng(36.779663,139.61883); htmls[16] = '<div class="cnt_point_spot"><img src="images/kirifurikougen.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>霧降高原</strong><br />標高1000メートルを超える霧降高原からの眺めは、まさに雄大という言葉がぴったりあてはまる。関東平野を一望できるばかりでなく、そこは、ときに雲の上。雲海を眼下に見ることができる。</p></div>';

point[17] = new GLatLng(36.744717,139.700546); htmls[17] = '<div class="cnt_point_spot"><img src="images/ramsar.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>ラムサール条約湿地</strong><br />「奥日光の湿原」は全域が日光国立公園に指定されており、自然公園法等によって保全が図られており、ハイキングで訪れることで有名な観光エリアです。</p></div>';

point[18] = new GLatLng(36.720886,139.706718); htmls[18] = '<div class="cnt_point_spot"><img src="images/nikkousuginamikikaidou.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光杉並木</strong><br />御成街道、会津西街道、例幣使街道の３つの街道が日光街道となって日光に達している。日光杉並木はこの３つの街道に植えられたスギの並木で、長さの合計は37キロもあり、世界一長い並木としてギネスブックにも掲載されている。</p></div>';

point[19] = new GLatLng(36.750163,139.591534); htmls[19] = '<div class="cnt_point_spot"><img src="images/kanmangafuchi.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>憾満ガ淵</strong><br />男体山から噴出した溶岩によってできた奇勝で、川岸に巨岩があって、岩上に晃海僧正によって造立された不動明王の石像が安置されていた。「かんまん」の名は、不動明王の真言(咒文)の最後の句から出ている。</p></div>';

point[20] = new GLatLng(36.738637,139.500157); htmls[20] = '<div class="cnt_point_spot"><img src="images/nikkonsm.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光自然博物館</strong>自然、文化、歴史など日光のさまざまな事柄を、楽しみながら知ることができ、中禅寺温泉の入り口という便利な場所にある。</p></div>';

point[21] = new GLatLng(36.754276,139.451119); htmls[21] = '<div class="cnt_point_spot"><img src="images/fishforest.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>魚と森の観察園</strong><br />他種類のサケ科の魚がたくさん飼育されている池が、自然豊かな林地帯に配置されている。池にいる魚に餌をあげながら、森林浴散策を満喫できる。</p></div>';

point[22] = new GLatLng(36.75132,139.585445); htmls[22] = '<div class="cnt_point_spot"><img src="images/nikkogarden.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光植物園</strong><br />明治35(1902)年に東照宮付近に開設されたが、その後、明治44(1911) 年、現在の場所に移転。植物学の研究、教育のため、東京大学が設けた教育実習施設。</p></div>';

point[23] = new GLatLng(36.754652,139.605363); htmls[23] = '<div class="cnt_point_spot"><img src="images/khmoan.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>小杉放菴記念日光美術館</strong><br />平成9(1997)年10月に開館した市立美術館で、収蔵する日光市出身の画家・小杉放菴(1881～1964)の作品を中心に、「自然へのいつくしみ」を基本テーマとした広範な作品展示を展開している。</p></div>';

point[24] = new GLatLng(36.802981,139.418369); htmls[24] = '<div class="cnt_point_spot"><img src="images/nikkoski.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光湯元スキー場</strong><br />キッズ天国を標榜しているので、子供や家族連れへのサービスが充実。標高1800m、ベースでも1500mなので、ゲレンデのどこからでも奥日光の素晴らしい眺めが楽しめ、しかも首都圏から車で3時間と好アクセスなのも魅力。</p></div>';

point[25] = new GLatLng(36.795791,139.452422); htmls[25] = '<div class="cnt_point_spot"><img src="images/nikkoski.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>光徳クロスカントリースキーコース</strong><br />1km、3km、5km、10km、公認5kmとあり、コースは光徳を中心に山よりには匂配のあるレース向きのコースが、戦場ケ原にはハイキング向けのコースが整備されています。</p></div>';

point[26] = new GLatLng(36.741716,139.487406); htmls[26] = '<div class="cnt_point_spot"><img src="images/futaarasanjinja.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光二荒山神社中宮祠</strong><br />中禅寺湖の北岸、男体山山麓の景勝の地に鎮座する神社。男体山の山頂にある二荒山神社奥宮と、日光山内にある二荒山神社本社の中間にあるので、中宮祠と呼ばれている。</p></div>';

point[27] = new GLatLng(36.730781,139.492061); htmls[27] = '<div class="cnt_point_spot"><img src="images/tyuzenji.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>中禅寺(立木観音)</strong><br />門を入って正面左手にある本堂には、重要文化財に指定されている十一面千手観音菩薩がまつられている。</p></div>';

point[28] = new GLatLng(36.724987,139.48527); htmls[28] = '<div class="cnt_point_spot"><img src="images/itakyamb.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>イタリア大使館別荘記念公園</strong><br />アメリカの建築家、アントニー・レーモンドの設計により、昭和3年に建築され、内・外装はスギの皮で装飾され、日本のスギと西洋建築が不思議に調和した建物です。豊かな森に囲まれた、とても閑静なところに立地しています。</p></div>';

point[29] = new GLatLng(36.752449,139.591187); htmls[29] = '<div class="cnt_point_spot"><img src="images/tamozawa.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>田母沢御用邸</strong><br />日光田母沢御用邸記念公園では（旧日光田母沢御用邸）は、大正天皇（当時は皇太子）のご静養のため、明治32（1899）年に造営。建築内部に施されている装飾・絵画など、建築全体に文化的価値があるといわれる。</p></div>';

point[30] = new GLatLng(36.75336,139.604017); htmls[30] = '<div class="cnt_point_spot"><img src="images/shinkyo.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>神橋</strong><br />朱塗りの橋になったのは、寛永13(1636) 年の東照宮の大造替のとき。明治35(1902)年に、そのときの橋は洪水で流されたが、明治37(1904)年に再建された。</p></div>';

point[31] = new GLatLng(36.758104,139.598893); htmls[31] = '<div class="cnt_point_spot"><img src="images/toshogu.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>東照宮</strong><br />家康公が望んだ「小さな堂」は、やがて家康公を敬愛する３代将軍家光公によって、いま見るような絢爛豪華な「平和のシンボル」に生まれ変り、現存する建物のほとんどは、「寛永の大造替」で建て替えられたもの。</p></div>';

point[32] = new GLatLng(38.283201,140.858839); htmls[32] = '<div class="cnt_point_spot"><img src="images/rinnoji.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>輪王寺</strong><br />お寺やお堂、さらに15の支院の総称で、勝道上人が天平神護2(766) 年、神橋のそばに四本竜寺を建立したのが始まり。</p></div>';

point[33] = new GLatLng(36.758507,139.596705); htmls[33] = '<div class="cnt_point_spot"><img src="images/futarasan.jpg" width="60" height="54" /><p class="pointspot_txt"><strong>日光二荒山神社</strong><br />延暦3(784)年、二荒山中腹の中禅寺湖北岸に日光山権現(中宮祠)をまつり、ほぼ現在の形となった。</p></div>';



var map = new GMap(document.getElementById("gmap"));
//操作バー（左）
map.addControl(new GLargeMapControl());
//表示切替（上）
//map.addControl(new GMapTypeControl());
//ダブルクリックズーム＆スムージング
map.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(36.739568,139.497273), 12); 
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(36.739568,139.497273),'<div class="cnt_point"><img src="images/map_logo.gif" width="215" height="58" /><p class="point_txt">〒321-1661　栃木県日光市中宮祠2480<br />TEL. 0288-51-0105<br />FAX. 0288-55-1051</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);
}
	}

}

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]);
}


if( window.addEventListener ){
	window.addEventListener( "load", drawGoogleMap, false );
}
else if( window.attachEvent ){
	window.attachEvent( "onload", drawGoogleMap );
}