if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//くれたけイン・掛川
	point[0] = new GLatLng(34.770189,138.017102);
	
	//駅
	point[1] = new GLatLng(34.769758,138.014928); 
	
	//IC
	point[2] = new GLatLng(34.764576,138.024299);
	
	point[3] = new GLatLng(34.762498,137.997449);
	point[4] = new GLatLng(34.796052,138.038117);
	point[5] = new GLatLng(34.774781,137.975299);
	point[6] = new GLatLng(34.769207,138.001102);
	point[7] = new GLatLng(34.788805,138.041915);
	point[8] = new GLatLng(34.758864,137.974752);
	point[9] = new GLatLng(34.779152,138.018837);
	point[10] = new GLatLng(34.623611,138.1425);
	point[11] = new GLatLng(34.708219,138.031851); 
	point[12] = new GLatLng(34.699848,138.070872);
	point[13] = new GLatLng(34.688672,137.989102);
	point[14] = new GLatLng(34.674256,138.014191);
	point[15] = new GLatLng(34.738783,137.913178);
	point[16] = new GLatLng(34.761297,137.921494);	
	point[17] = new GLatLng(34.746408,137.962768);
	point[18] = new GLatLng(34.672279,137.996457);
	point[19] = new GLatLng(34.76328,138.086096);
	point[20] = new GLatLng(34.665048,138.073028);

	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(浜湖月)
	htmls[0] = '<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒436-0077 静岡県掛川市駅前10-2<br style="clear:both;" />http://www.kuretake-inn.com/kkgw/</p>';
	
	//HTML文を指定する(駅)
	htmls[1] = '掛川駅';
	
	//HTML文を指定する(IC)
	htmls[2] = '掛川IC';

	htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.shiseido.co.jp/" target="_blank">資生堂（株）掛川工場</a></strong><br>静岡県掛川市長谷1120<br style="clear:both;" />';
	
	htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.panasonic.co.jp/pmc/" target="_blank">パナソニックモバイルコミュニケーションズ</a></strong><br>静岡県掛川市淡陽１８<br style="clear:both;" />';
	
	htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.yamaha.co.jp/" target="_blank">ヤマハ（株）掛川工場</a></strong><br>静岡県掛川市領家1480<br style="clear:both;" />';

	htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.necat.co.jp/" target="_blank">NECアクセステクニカ（株）</a></strong><br>静岡県掛川市下俣800番地<br style="clear:both;" />';
	
	htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.asahi-kasei.co.jp/asahi/jp/" target="_blank">旭化成（株）掛川医薬工場</a></strong><br>静岡県掛川市淡陽62-63<br style="clear:both;" />';
	
	htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.unicharm.co.jp/" target="_blank">ユニ・チャームプロダクツ（株）静岡工場</a></strong><br>静岡県掛川市篠場5-6<br style="clear:both;" />';
	
	htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.shizuoka-c.ed.jp/manabi/index.htm" target="_blank">掛川生涯教育センター</a></strong><br>静岡県掛川市御所原17番１号<br style="clear:both;" />';
	
	htmls[10] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.chuden.co.jp/torikumi/atom/hamaoka/" target="_blank">浜岡原子力発電所</a></strong><br>静岡県御前崎市佐倉5561 <br style="clear:both;" />';

	htmls[11] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.triumphjapan.com/" target="_blank">トリンプインターナショナルジャパン（株）静岡センター</a></strong><br>静岡県掛川市上土方29-5<br style="clear:both;" />';
	
	htmls[12] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.mitsubishielectric.co.jp/group/mlf/" target="_blank">三菱電機照明（株）</a></strong><br>静岡県掛川市岩滑2346<br style="clear:both;" />';
	
	htmls[13] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.suzuki.co.jp/" target="_blank">スズキ（株）大須賀工場</a></strong><br>静岡県掛川市西大渕6333<br style="clear:both;" />';
	
	htmls[14] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.corning.com/jp/jp/index.aspx" target="_blank">コーニングジャパン（株）</a></strong><br>静岡県掛川市大渕12117<br style="clear:both;" />';
	
	htmls[15] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://panasonic.co.jp/" target="_blank">パナソニック（株）</a></strong><br>静岡県袋井市新池1131番地<br style="clear:both;" />';
	
	htmls[16] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://pioneer.jp/" target="_blank">パイオニア（株）</a> </strong><br>静岡県袋井市鷲巣15－1<br style="clear:both;" />';

	htmls[17] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.nsk-warner.com/jp/" target="_blank">エヌエスケー･ワーナー（株）</a></strong><br>静岡県袋井市愛野2345<br style="clear:both;" />';
	
	htmls[18] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.francebed.co.jp/" target="_blank">フランスベッド（株）静岡工場</a></strong><br>静岡県掛川市大淵9100<br style="clear:both;" />';
	
	htmls[19] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.asahitec.co.jp/" target="_blank">旭テック（株）</a></strong><br>静岡県菊川市堀之内547番地の1<br style="clear:both;" />';
	
	htmls[20] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.clariant.co.jp/" target="_blank">クラリアントジャパン（株）</a></strong><br>静岡県掛川市千浜3810<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.770189,138.017102),14);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.770189,138.017102),'<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒436-0077 静岡県掛川市駅前10-2<br style="clear:both;" />http://www.kuretake-inn.com/kkgw/</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.76403,138.024368),new GLatLng(34.761703,138.024658),new GLatLng(34.761299,138.024323),new GLatLng(34.761395,138.023132),new GLatLng(34.761353,138.022095),new GLatLng(34.765785,138.020462),new GLatLng(34.769829,138.018692),new GLatLng(34.770638,138.018677),new GLatLng(34.770512,138.017319),new GLatLng(34.770218,138.017288),new GLatLng(34.770218,138.017197),],"#F40404",6,0.6);
	
		//ライン2
	var polyline2 = new GPolyline([new GLatLng(34.769833,138.015152),new GLatLng(34.769886,138.015869),new GLatLng(34.769943,138.016129),new GLatLng(34.76992,138.016647),new GLatLng(34.769947,138.017334),new GLatLng(34.770187,138.017273),new GLatLng(34.770184,138.017197),],"#0152FB",6,0.6);
	
	//マップにポリライン表示
	map.addOverlay(polyline);
	map.addOverlay(polyline2);

}

