if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(37.684115,139.468389); htmls[0] = '<div style="width:400px"><div style="margin:0px;padding:0px 0px 0px 5px;width:150px;float:left;"><h6>雪つばきの宿&nbsp;古澤屋</h6><p>〒959-4302<br>新潟県東蒲原郡阿賀町鹿瀬5860<br>TEL. 0254-92-3322</p></div><img src="../images/logo.png" alt="奥阿賀遊覧船" width="245px" height="60px" style="margin:0px;padding:0px;display:block;float:left;" /></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("gmap"));
//操作バー（左）
map.addControl(new GLargeMapControl());
//表示切替（上）
//map.addControl(new GMapTypeControl());
//ライン（津川ICルート）
var points = [];
      points[0] = new GLatLng(37.684115, 139.468389);//←古澤屋
      points[1] = new GLatLng(37.683829, 139.468410);
      points[2] = new GLatLng(37.683667, 139.467509);
      points[3] = new GLatLng(37.683676, 139.467144);
      points[4] = new GLatLng(37.683786, 139.466554);
      points[5] = new GLatLng(37.684092, 139.465739);
      points[6] = new GLatLng(37.684194, 139.465020);
      points[7] = new GLatLng(37.682300, 139.462574);
      points[8] = new GLatLng(37.681061, 139.461254);
      points[9] = new GLatLng(37.680628, 139.460932);
      points[10] = new GLatLng(37.678395, 139.459655);//←分岐点
      points[11] = new GLatLng(37.677809, 139.459097);
      points[12] = new GLatLng(37.677325, 139.458497);
      points[13] = new GLatLng(37.676297, 139.456941);
      points[14] = new GLatLng(37.676059, 139.456533);
      points[15] = new GLatLng(37.675907, 139.456447);
      points[16] = new GLatLng(37.675660, 139.456458);
      points[17] = new GLatLng(37.674692, 139.456930);
      points[18] = new GLatLng(37.673902, 139.457198);
      points[19] = new GLatLng(37.673461, 139.457273);
      points[20] = new GLatLng(37.672977, 139.457231);
      points[21] = new GLatLng(37.672799, 139.456909);
      points[22] = new GLatLng(37.672586, 139.455814);//←津川IC
      var polyline = new GPolyline(points, "#FF0000", 5);
      map.addOverlay(polyline);
//ライン（津川駅ルート）
var points = [];
      points[10] = new GLatLng(37.678395, 139.459655);//←分岐点
      points[11] = new GLatLng(37.679235,139.458003);
      points[12] = new GLatLng(37.679464,139.457692);
      points[13] = new GLatLng(37.680076,139.45722);
      points[14] = new GLatLng(37.68056,139.456179);
      points[15] = new GLatLng(37.680882,139.455771);
      points[16] = new GLatLng(37.681299,139.455128);
      points[17] = new GLatLng(37.681986,139.4556);
      points[18] = new GLatLng(37.684058,139.451705);
      points[19] = new GLatLng(37.684551,139.450729);
      points[20] = new GLatLng(37.684992,139.448712);
      points[21] = new GLatLng(37.684992,139.448218);
      points[22] = new GLatLng(37.684916,139.446459);
      points[23] = new GLatLng(37.68495,139.446062);//←きりん橋南詰交差点
      points[24] = new GLatLng(37.68568,139.446126);
      points[25] = new GLatLng(37.687276,139.446373);
      points[26] = new GLatLng(37.687717,139.446352);
      var polyline = new GPolyline(points, "#FF0000", 5);
      map.addOverlay(polyline);

//ダブルクリックズーム＆スムージング
map.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(37.684115,139.468389), 13);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(37.684115,139.468389),'<div style="width:400px"><div style="margin:0px;padding:0px 0px 0px 5px;width:150px;float:left;"><h6>雪つばきの宿&nbsp;古澤屋</h6><p>〒959-4302<br>新潟県東蒲原郡阿賀町鹿瀬5860<br>TEL. 0254-92-3322</p></div><img src="../images/logo.png" alt="奥阿賀遊覧船" width="245px" height="60px" style="margin:0px;padding:0px;display:block;float:left;" /></div>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}

