﻿if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//浜湖月
	point[0] = new GLatLng(34.706958,137.736819);
	
	//駅
	point[1] = new GLatLng(35.378478,136.265237); 
	
	//IC
	point[2] = new GLatLng(35.398621,136.293492);
	
	point[3] = new GLatLng(34.692356,137.687955);
	point[4] = new GLatLng(34.719119,137.731851);
	point[5] = new GLatLng(34.724895,137.880263);
	point[6] = new GLatLng(34.753628,137.718451);
	point[7] = new GLatLng(34.702786,137.734896);
	point[8] = new GLatLng(34.710642,137.731441);
	point[9] = new GLatLng(34.703743,137.734442);
	point[10] = new GLatLng(34.707193,137.724084);
	point[11] = new GLatLng(34.702744,137.73547); 
	point[12] = new GLatLng(34.705246,137.735724);
	point[13] = new GLatLng(34.705694,137.737098);
	point[14] = new GLatLng(34.730653,137.596775);
	point[15] = new GLatLng(34.730653,137.596775);
	point[16] = new GLatLng(34.710865,137.72612);
	point[17] = new GLatLng(34.702638,137.734109);
	point[18] = new GLatLng(34.726965,137.785219);
	point[19] = new GLatLng(34.725261,137.875006);
	point[20] = new GLatLng(34.6849,137.694673);
	point[21] = new GLatLng(34.689816,137.676448);
	point[22] = new GLatLng(34.699793,137.739563);
	point[23] = new GLatLng(34.687307,137.784602);
	point[24] = new GLatLng(34.74014,137.76466);
	point[25] = new GLatLng(34.778994,137.747504);
	point[26] = new GLatLng(34.775633,137.733208);
	point[27] = new GLatLng(34.713526,137.748322);
	point[28] = new GLatLng(34.781558,137.808235);
	point[29] = new GLatLng(34.810667,137.683829);
	point[30] = new GLatLng(34.755989,137.676462);
	point[31] = new GLatLng(34.706159,137.735317);
	point[32] = new GLatLng(34.701171,137.792888);
	point[33] = new GLatLng(34.710532,137.652522);
	point[34] = new GLatLng(34.749322,137.747726);
	point[35] = new GLatLng(34.69939,137.690792); 
	point[36] = new GLatLng(34.725336,137.717743);
	point[37] = new GLatLng(34.814591, 137.708587);
	point[38] = new GLatLng(34.768798, 137.742552);
	
	point[39] = new GLatLng(34.712646,137.73856);
	point[40] = new GLatLng(35.209934,138.337304);                     
	point[41] = new GLatLng(34.794576,137.70223);
	point[42] = new GLatLng(34.730539,137.73375);
	point[43] = new GLatLng(4.708374,137.750819);
	point[44] = new GLatLng(34.723043,137.534134);
	point[45] = new GLatLng(34.687821,137.740181 );
	point[46] = new GLatLng(34.70464,137.722496);
	point[47] = new GLatLng(34.73051,137.725505);
	point[48] = new GLatLng(34.768798,137.742552);
	point[49] = new GLatLng(34.716309,137.701936);
	point[50] = new GLatLng(34.713056,137.734711);
	point[51] = new GLatLng(34.70485,137.729078);
	
	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(浜湖月)
	htmls[0] = '<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒430-0928静岡県浜松市中区板屋町690<br style="clear:both;" />http://www.kuretake-inn.com/acth/</p>';
	
	//HTML文を指定する(駅)
	htmls[1] = '長浜駅';
	
	//HTML文を指定する(IC)
	htmls[2] = '長浜IC';

	htmls[3] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.suzuki.co.jp/" target="_blank"><strong>スズキ（株)</strong></a><br>静岡県浜松市南区高塚町300<br style="clear:both;" />';
	htmls[4] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.yamaha.co.jp/" target="_blank"><strong>ヤマハ（株）</strong></a><br>静岡県浜松市中区中沢町10番1号<br style="clear:both;" />';
	htmls[5] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.yamaha-motor.co.jp/" target="_blank"><strong>ヤマハ発動機（株）</strong></a><br>静岡県磐田市新貝2500<br style="clear:both;" />';
	htmls[6] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.honda.co.jp/" target="_blank"><strong>本田技研（株)</strong></a><br>静岡県浜松市中区葵東1‐13‐1<br style="clear:both;" />';
	htmls[7] = '<p style="font-size:12px; margin-top:5px;"><a href="http://jp.hamamatsu.com/" target="_blank"><strong>浜松ホトニクス（株）</strong></a><br>静岡県浜松市中区砂山町325-6 日本生命浜松駅前ビル<br style="clear:both;" />';
	htmls[8] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.k-mix.co.jp/" target="_blank"><strong>K・MIX</strong></a><br>浜松市中区常盤町133-24<br style="clear:both;" />';
	htmls[9] = '<p style="font-size:12px; margin-top:5px;"><a href="http://jr-central.co.jp/" target="_blank"><strong>JR東海</strong></a><br>静岡県浜松市中区砂山町6-2<br style="clear:both;" />';
	htmls[10] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.jti.co.jp/" target="_blank"><strong>JT日本たばこ産業（株）</strong></a><br>静岡県浜松市中区高町300-27<br style="clear:both;" />';
	htmls[11] = '<p style="font-size:12px; margin-top:5px;"><a href="http://hamamatsu-daisuki.net/monthly/index.jsp" target="_blank"><strong>浜松だいすきネット</strong></a><br>静岡県浜松市中区砂山町<br style="clear:both;" />';
	htmls[12] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.actcity.jp/" target="_blank"><strong>アクトシティ運営財団</strong></a><br>静岡県浜松市中区板屋町111-1<br style="clear:both;" />';
	htmls[13] = '<p style="font-size:12px; margin-top:5px;"><a href="http://hamamatsu-daisuki.net/hamacon/" target="_blank"><strong>浜松観光コンペンションビューロー</strong></a><br>静岡県浜松市中区板屋町111-2 浜松アクトタワー17階<br style="clear:both;" />';
	htmls[14] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hamamatsu.cc/" target="_blank"><strong>はままつINDEX</strong></a>';
	htmls[15] = '<p style="font-size:12px; margin-top:5px;"><strong>浜名湖花博 </strong>';
	htmls[16] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.city.hamamatsu.shizuoka.jp/" target="_blank"><strong>浜松市公式WEBサイト</strong></a><br>浜松市中区元城町103-2<br style="clear:both;" />';
	htmls[17] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hi-hice.jp/" target="_blank"><strong>（財）浜松国際交流協会（HICE）</strong></a><br>浜松市中区砂山町324-8<br style="clear:both;" />';
	htmls[18] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.chunichi.co.jp/info/" target="_blank"><strong>中日新聞東海本社</strong></a><br>浜松市東区薬新町45番地<br style="clear:both;" />';
	htmls[19] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.jubilo-iwata.co.jp/" target="_blank"><strong>ジュビロ磐田</strong></a><br>静岡県磐田市新貝2500番地<br style="clear:both;" />';
	htmls[20] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.uvc.co.jp/" target="_blank"><strong>（株）ユニバンス</strong></a><br>静岡県浜松市南区小沢渡町8<br style="clear:both;" />';
	htmls[21] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.enshu.co.jp/enshu2/index.html" target="_blank"><strong>エンシュウ（株）</strong></a><br>静岡県浜松市南区高塚町4888番<br style="clear:both;" />';
	htmls[22] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.kawai.co.jp/" target="_blank"><strong>（株）カワイ楽器製作所</strong></a><br>静岡県浜松市中区寺島町200番<br style="clear:both;" />';
	htmls[23] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.kyowale.co.jp/" target="_blank"><strong>共和レザー（株）</strong></a><br>静岡県浜松市南区東町1876番地<br style="clear:both;" />';
	htmls[24] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.cox-online.co.jp/" target="_blank"><strong>（株）コックス</strong></a><br>静岡県浜松市東区天王町諏訪1981-3<br style="clear:both;" />';
	htmls[25] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.sakurai-net.co.jp/" target="_blank"><strong>（株）桜井製作所</strong></a><br>静岡県浜松市東区半田町720<br style="clear:both;" />';
	htmls[26] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.pulstec.co.jp/index.shtml" target="_blank"><strong>パルステック工業（株）</strong></a><br>静岡県浜松市北区東三方町90番地の3<br style="clear:both;" />';
	htmls[27] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.mutow.com/" target="_blank"><strong>（株）スクロール</strong></a><br>静岡県浜松市中区佐藤二丁目24番1号<br style="clear:both;" />';
	htmls[28] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.yutakagiken.co.jp/" target="_blank"><strong>（株）ユタカ技研</strong></a><br>静岡県浜松市東区豊町508番地の１<br style="clear:both;" />';
	htmls[29] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.roland.co.jp/" target="_blank"><strong>ローランド（株）</strong></a><br>静岡県浜松市北区細江町中川2036-1<br style="clear:both;" />';
	htmls[30] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.enshu-truck.co.jp/" target="_blank"><strong>遠州トラック（株）</strong></a><br>静岡県浜松市西区伊左地町8520<br style="clear:both;" />';
	htmls[31] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.ntn.co.jp/japan/index.html" target="_blank"><strong>NTN（株）磐田製作所</strong></a><br>静岡県浜松市中区板屋町110番地の5<br style="clear:both;" />';
	htmls[32] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.sony.co.jp/" target="_blank"><strong>ソニー浜松</strong></a><br>静岡県浜松市南区新貝町1128番<br style="clear:both;" />';
	htmls[33] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.alps-eg.com/" target="_blank"><strong>（株）アルプスエンジニアリング</strong></a><br>静岡県浜松市西区大久保町1349番地<br style="clear:both;" />';
	htmls[34] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.ja-shizuoka.or.jp/topia/" target="_blank"><strong>JAとぴあ浜松</strong></a><br>浜松市東区有玉南町 1975 番地<br style="clear:both;" />';
	htmls[35] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.aeon.info/" target="_blank"><strong>イオングループ</strong></a><br>静岡県浜松市西区入野町6244-1<br style="clear:both;" />';
	htmls[36] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.shizuoka.ac.jp/" target="_blank"><strong>静岡大学</strong></a><br>浜松市中区城北3-5-1<br style="clear:both;" />';
	htmls[37] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hamamatsu-u.ac.jp/" target="_blank"><strong>常葉学園浜松大学</strong></a><br>静岡県浜松市北区都田町1230番地<br style="clear:both;" />';
	htmls[38] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hama-med.ac.jp/" target="_blank"><strong>浜松医科大学</strong></a><br>静岡県浜松市東区半田山１丁目20番１号<br style="clear:both;" />';
	htmls[39] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.suac.ac.jp/" target="_blank"><strong>静岡文化芸術大学</strong></a><br>静岡県浜松市中区中央二丁目1番1号<br style="clear:both;" />';
	htmls[40] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.mod.go.jp/asdf/hamamatsu/index.htm" target="_blank"><strong>航空自衛隊浜松基地</strong></a><br>静岡県浜松市西区西山町無番地<br style="clear:both;" />';
	htmls[41] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.ens.ne.jp/~unasen/" target="_blank"><strong>浜松うなぎ料理専門店振興会</strong><br>静岡県浜松市北区根洗町1014-5<br style="clear:both;" />';
	htmls[42] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.ikeya.co.jp/" target="_blank"><strong>（株）イケヤ</strong></a><br>静岡県浜松市高林4丁目8ー32<br style="clear:both;" />';
	htmls[43] = '<p style="font-size:12px; margin-top:5px;"><a href=http://www.teibow.co.jp/"" target="_blank"><strong>テイボー（株）</strong></a><br>静岡県浜松市中区向宿一丁目2番1号<br style="clear:both;" />';
	htmls[44] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.denso.co.jp/ja/" target="_blank"><strong>浜名湖電装</strong></a><br>静岡県湖西市鷲津136番地<br style="clear:both;" />';
	htmls[45] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.yamazakipan.co.jp/" target="_blank"><strong>山崎製パン（株）</strong></a><br>静岡県浜松市南区三島町276<br style="clear:both;" />';
	htmls[46] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.chuden.co.jp/" target="_blank"><strong>中部電力（株）</strong></a><br>浜松市中区鴨江町22-1<br style="clear:both;" />';
	htmls[47] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.seirei.or.jp/hamamatsu/index.html" target="_blank"><strong>聖隷浜松病院</strong></a><br>静岡県浜松市中区住吉2-12-12<br style="clear:both;" />';
	htmls[48] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hama-med.ac.jp/hospital/index.asp" target="_blank"><strong>浜松医科大学付属病院</strong></a><br>静岡県浜松市東区半田山１丁目20番１<br style="clear:both;" />';
	htmls[49] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.hmedc.or.jp/" target="_blank"><strong>県西部浜松医療センター</strong></a><br>静岡県浜松市中区富塚町328<br style="clear:both;" />';
	htmls[50] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.ja-shizuoka.or.jp/k-enshu/" target="_blank"><strong>遠州総合病院</strong></a><br>静岡県浜松市中区中央一丁目１番１号<br style="clear:both;" />';
	htmls[51] = '<p style="font-size:12px; margin-top:5px;"><a href="http://www.tohocinemas.co.jp/" target="_blank"><strong>TOHOシネマズ浜松</strong></a><br>静岡県浜松市中区鍛冶町15<br style="clear:both;" />';
//マーカー表示のHTML▲

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.705599,137.735016),16);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.706958,137.736819),'<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒430-0928静岡県浜松市中区板屋町690<br style="clear:both;" />http://www.kuretake-inn.com/acth/</p>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}

	/* 初期表示　マーカーラインの表示設定  GPolyline([座標,座標...],"色",ラインの太さ,透明度（不透明1、-0.1でアルファがかかる）); */
	//ライン1
	//var polyline = new GPolyline([new GLatLng(34.703758,137.735245),new GLatLng(34.703510,137.735397),new GLatLng(34.703678,137.735794),new GLatLng(34.705750,137.734344),new GLatLng(34.706005,137.735931),new GLatLng(34.707108,137.736008),new GLatLng(34.707153,137.736832),],"#FF4600",6,0.6);
	
	//徒歩用A　駅⇔ホテル　（全部地上）
	var polyline = new GPolyline([new GLatLng(34.70432,137.734389),new GLatLng(34.704797,137.735274),new GLatLng(34.705661,137.734716),new GLatLng(34.705864,137.734684),new GLatLng(34.706076,137.736298),new GLatLng(34.706666,137.736357),new GLatLng(34.706724,137.736883),new GLatLng(34.706878,137.736889),],"#55F51E",4,0.6);

	//徒歩用B　駅⇔ホテル　（１.JR浜松駅北口から階段）	
	var polyline2 = new GPolyline([new GLatLng(34.70432,137.734389),new GLatLng(34.704466,137.734239),],"#FF551E",4,0.6); 
	//徒歩用B　駅⇔ホテル　（２.バスターミナル→サンクンガーデン→階段）
	var polyline3 = new GPolyline([new GLatLng(34.704466,137.734239),new GLatLng(34.704664,137.73411),new GLatLng(34.705048,137.734298),new GLatLng(34.705339,137.734909),new GLatLng(34.705846,137.736068),new GLatLng(34.706292,137.736111),new GLatLng(34.70653,137.736127),],"#FF551E",4,0.4); 
	//徒歩用B　駅⇔ホテル　（３.階段→ホテル）
	var polyline4 = new GPolyline([new GLatLng(34.70653,137.736127),new GLatLng(34.706649,137.736138),new GLatLng(34.706724,137.736883),new GLatLng(34.706878,137.736889),],"#FF551E",4,0.6); 

	//(34.70432,137.734389) (34.704466,137.734239) (34.704664,137.73411) (34.705048,137.734298) (34.705339,137.734909) (34.705732,137.73566) (34.705846,137.736068) (34.70653,137.736127) (34.706649,137.736138) (34.706724,137.736883) (34.706878,137.736889) 

	//マップにポリライン表示
	map.addOverlay(polyline);
	map.addOverlay(polyline2);
	map.addOverlay(polyline3);
	map.addOverlay(polyline4);

}

