if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//くれたけイン浜名湖
	point[0] = new GLatLng(34.715828,137.545864);
	
	//駅
	point[1] = new GLatLng(34.716871,137.545913); 
	
	//IC
	point[2] = new GLatLng(34.797678,137.583909);
	
	point[3] = new GLatLng(34.717047,137.547334);
	point[4] = new GLatLng(34.715784,137.55103);
	point[5] = new GLatLng(34.717805,137.543228);
	point[6] = new GLatLng(34.722995,137.534215);
	point[7] = new GLatLng(34.715735,137.546259);
	point[8] = new GLatLng(34.711107,137.551878);
	point[9] = new GLatLng(34.706543,137.550904);
	point[10] = new GLatLng(34.707619,137.524012);
	point[11] = new GLatLng(34.706309,137.524965); 
	point[12] = new GLatLng(34.702792,137.505148); 
	
	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(くれたけイン浜名湖)
	htmls[0] = '<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒431-0431 静岡県湖西市鷲津1266-1<br style="clear:both;" />http://www.kuretake-inn.com/hmnk/</p>';
	
	//HTML文を指定する(駅)
	htmls[1] = '鷲津駅';
	
	//HTML文を指定する(IC)
	htmls[2] = '三ヶ日IC';

	htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.yazaki-group.com/" target="_blank">矢崎部品（株）</a></strong><br>静岡県湖西市鷲津1424<br style="clear:both;" />';
	
	htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.fujikiko-group.co.jp/" target="_blank">富士機工（株）</a></strong><br>静岡県湖西市鷲津3131<br style="clear:both;" />';
	
	htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.hamamatsu-shinkin.jp/" target="_blank">浜松信用金庫</a></strong><br>湖西市鷲津523-20<br style="clear:both;" />';
	
	htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.hamanakodenso.co.jp/" target="_blank">浜名湖電装（株）</a></strong><br>静岡県湖西市鷲津136番地<br style="clear:both;" />';
	
	htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.shizuokabank.co.jp/" target="_blank">静岡銀行</a></strong><br>湖西市鷲津1262番地の7<br style="clear:both;" />';
	
	htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.uvc.co.jp/" target="_blank">（株）ユニバンス</a></strong><br>静岡県湖西市鷲津2418<br style="clear:both;" />';
	
	htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.hamanako-driving.jp/" target="_blank">浜名湖自動車学校</a></strong><br>静岡県浜名郡新居町中之郷2350<br style="clear:both;" />';
	
	htmls[10] = '<p style="font-size:12px; margin-top:5px;"><strong><a href=" 	http://www.nskg.co.jp/" target="_blank">日本紙工業（株）</a></strong><br>静岡県湖西市山口630番地の22<br style="clear:both;" />';
	
	htmls[11] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.bellsonica.co.jp/" target="_blank">（株）ベルソニカ</a></strong><br>静岡県湖西市山口630-18<br style="clear:both;" />';

	htmls[12] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.suzuki.co.jp" target="_blank">スズキ（株）湖西工場</a></strong><br>静岡県湖西市白須賀4520<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.715828,137.545864), 13);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.715828,137.545864),'<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒431-0431 静岡県湖西市鷲津1266-1<br style="clear:both;" />http://www.kuretake-inn.com/hmnk/</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.716511,137.5451),new GLatLng(34.716053,137.546052),new GLatLng(34.715839,137.545891),],"#FF4600",6,0.6);
	
		//ライン2
	//var polyline2 = new GPolyline([new GLatLng(35.169584,136.897599),new GLatLng(35.169623,136.897647),new GLatLng(35.17097,136.897491),new GLatLng(35.171158,136.897497),new GLatLng(35.171294,136.899637),new GLatLng(35.171475,136.899664),],"#F5551E",6,0.6);
	
	//マップにポリライン表示
	map.addOverlay(polyline);
	//map.addOverlay(polyline2);

}
