if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
	//マーカー表示の座標設定▼
	//エースイン刈谷
	point[0] = new GLatLng(34.988966,137.006054);
	
	//駅
	point[1] = new GLatLng(34.991161,137.00887); 
	
	//IC
	point[2] = new GLatLng(35.020351,137.074738);
	
	point[3] = new GLatLng(34.999776,137.015372);
	point[4] = new GLatLng(34.991332,136.998887);
	point[5] = new GLatLng(35.037305,137.026774);
	point[6] = new GLatLng(34.985418,136.992519);
	point[7] = new GLatLng(35.00409,137.013972);
	point[8] = new GLatLng(34.969045,136.951215);
	point[9] = new GLatLng(35.001323,137.004467);
	point[10] = new GLatLng(34.988647,137.011869);
	point[11] = new GLatLng(35.006839,136.993329); 
	point[12] = new GLatLng(34.983518,137.005946);
	point[13] = new GLatLng(34.987001,137.013524);
	point[14] = new GLatLng(34.966832,137.06379);
	point[15] = new GLatLng(34.963228,137.016151);
	point[16] = new GLatLng(34.954861,136.992162);	
	point[17] = new GLatLng(35.003537,136.972175);
	point[18] = new GLatLng(34.905339,137.177434);
	point[19] = new GLatLng(34.989055,136.999027);
	point[20] = new GLatLng(34.9871,136.997194);
	point[21] = new GLatLng(34.987522,137.005804);
	point[22] = new GLatLng(34.991365,137.015594);
	point[23] = new GLatLng(34.996688,137.006406);
	point[24] = new GLatLng(34.965517,137.005288);
	point[25] = new GLatLng(35.000656,137.010753);
	point[26] = new GLatLng(35.057628,137.156622);
	point[27] = new GLatLng(34.993257,136.997814);
	point[28] = new GLatLng(35.025836,137.037588);
	point[29] = new GLatLng(34.986133,137.009095);
	point[30] = new GLatLng(34.992872,137.002068);
	point[31] = new GLatLng(34.952313,136.990292);
	point[32] = new GLatLng(34.967894,137.004163);
	point[33] = new GLatLng(35.054914,137.149365); 
	point[34] = new GLatLng(34.985169,136.989686);
	point[35] = new GLatLng(34.954764,137.167985);
	point[36] = new GLatLng(34.988566,137.012525);	
	point[37] = new GLatLng(35.007506,137.014183);
	point[38] = new GLatLng(34.91005,137.043822);                     
	point[39] = new GLatLng(35.085086,136.913102);
	
	//マーカー表示の座標設定▲
	
//マーカー表示のHTML▼
	//HTML文を指定する(浜湖月)
	htmls[0] = '<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒448-0858 愛知県刈谷市若松町2-54<br style="clear:both;" />http://www.kuretake-inn.com/krya/</p>';
	
	//HTML文を指定する(駅)
	htmls[1] = '刈谷駅';
	
	//HTML文を指定する(IC)
	htmls[2] = '豊田南IC';

	htmls[3] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.aisin.co.jp/" target="_blank">アイシン精機（株）</a></strong><br>愛知県刈谷市朝日町2丁目1番地<br style="clear:both;" />';
	
	htmls[4] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.aichi-steel.co.jp/" target="_blank">愛知製鋼（株）</a></strong><br>愛知県刈谷市豊田町3丁目6番地<br style="clear:both;" />';
	
	htmls[5] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.aeon.info/" target="_blank">イオン(株）</a></strong><br>愛知県刈谷市東境町京和1<br style="clear:both;" />';
																								  
	htmls[6] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.jgma.or.jp/information/ito_hp/ito.html" target="_blank">(株)伊藤宝石店</a></strong><br>愛知県刈谷市広小路4-209<br style="clear:both;" />';
	
	htmls[7] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.uokuni-s.co.jp/" target="_blank">(株)魚国総本社</a></strong><br>愛知県刈谷市東新町5丁目118<br style="clear:both;" />';
	
	htmls[8] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.sonymobiledisplay.jp/" target="_blank">ソニーモバイルディスプレイ（株）</a></strong><br>愛知県知多郡東浦町大字緒川字上舟木50番地<br style="clear:both;" />';
	
	htmls[9] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.okaya.co.jp/" target="_blank">岡谷鋼機(株)</a></strong><br>愛知県刈谷市原崎町4-207-2<br style="clear:both;" />';
	
	htmls[10] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.okunokk.co.jp/" target="_blank">奥野工業（株）</a></strong><br>愛知県刈谷市神田町1丁目45番地<br style="clear:both;" />';
	
	htmls[11] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.kahma.co.jp/" target="_blank">カーマ(株)</a></strong><br>愛知県刈谷市日高町4丁目101番地<br style="clear:both;" />';
	
	htmls[12] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota-kai.or.jp/" target="_blank">刈谷豊田総合病院</a></strong><br>愛知県刈谷市住吉町5丁目15番地<br style="clear:both;" />';
	
	htmls[13] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.a-iho.or.jp/h_db/0446.html" target="_blank">刈谷病院</a></strong><br>愛知県刈谷市神田町2-30<br style="clear:both;" />';
	
	htmls[14] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.kyosan-denki.co.jp/" target="_blank">京三電機（株）</a></strong><br>愛知県安城市三河安城町1-4-4<br style="clear:both;" />';
	
	htmls[15] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://k-cr.jp/" target="_blank">小林クリエイト（株）</a></strong><br>愛知県刈谷市小垣江町北高根115番地<br style="clear:both;" />';
	
	htmls[16] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.sindai.co.jp/" target="_blank">（株）シンダイ</a></strong><br>愛知県高浜市新田町3丁目3番地6<br style="clear:both;" />';
	
	htmls[17] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.shi.co.jp/" target="_blank">住友重機械工業（株）</a></strong><br>愛知県大府市朝日町6丁目1番地<br style="clear:both;" />';
	
	htmls[18] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.sony.co.jp/" target="_blank">ソニー（株）\</a></strong><br>愛知県額田郡幸田町大字坂崎字雀ヶ入1<br style="clear:both;" />';
	
	htmls[19] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.taikoh.co.jp/" target="_blank">大興運輸（株）</a></strong><br>愛知県刈谷市新栄町2-38<br style="clear:both;" />';
	
	htmls[20] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.darumanet.com/" target="_blank">(株)だるま</a></strong><br>愛知県刈谷市寿町3丁目206番地<br style="clear:both;" />';
	
	htmls[21] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.chuden.co.jp/" target="_blank">中部電力(株)</a></strong><br>愛知県刈谷市大手町4-6<br style="clear:both;" />';
	
	htmls[22] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.tsuda-inc.co.jp/" target="_blank">津田工業（株）</a></strong><br>愛知県刈谷市幸町1丁目1番地1<br style="clear:both;" />';
	
	htmls[23] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.denso.co.jp/" target="_blank">（株）デンソー</a></strong><br>愛知県刈谷市昭和町1-1<br style="clear:both;" />';
	
	htmls[24] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.covalent.co.jp/" target="_blank">コバレントマテリアル（株）</a></strong><br>愛知県刈谷市小垣江町南藤1<br style="clear:both;" />';
	
	htmls[25] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.jtekt.co.jp/" target="_blank">ＪＴＥＫＴ</a></strong><br>愛知県刈谷市朝日町1丁目1番地<br style="clear:both;" />';
	
	htmls[26] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota.co.jp/" target="_blank">トヨタ自動車（株)</a></strong><br>愛知県豊田市トヨタ町１番地<br style="clear:both;" />';
	
	htmls[27] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota-shokki.co.jp/" target="_blank">（株）豊田自動織機</a></strong><br>愛知県刈谷市豊田町2丁目1番地<br style="clear:both;" />';
	
	htmls[28] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota-body.co.jp/" target="_blank">トヨタ車体（株）</a></strong><br>愛知県刈谷市一里山町金山100番地<br style="clear:both;" />';
	
	htmls[29] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota-tsusho.com/" target="_blank">豊田通商（株）</a></strong><br>愛知県刈谷市住吉町3-12<br style="clear:both;" />';
	
	htmls[30] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.toyota-boshoku.co.jp/" target="_blank">トヨタ紡織（株）</a></strong><br>愛知県刈谷市豊田町1丁目1番地<br style="clear:both;" />';
	
	htmls[31] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.nipponpaint.co.jp/" target="_blank">日本ペイント（株）</a></strong><br>高浜市新田町3-1-5 <br style="clear:both;" />';
	
	htmls[32] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.noritake.co.jp/eeg/tcf/" target="_blank">（株）ノリタケTCF</a></strong><br>愛知県刈谷市小垣江町下藤7-7<br style="clear:both;" />';
	
	htmls[33] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://jp.fujitsu.com/" target="_blank">富士通（株）</a></strong><br>愛知県豊田市山之手4-46 三井住友海上豊田ビル<br style="clear:both;" />';
	
	htmls[34] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.kimono-marumiya.co.jp/" target="_blank">(株)丸見屋呉服店</a></strong><br>愛知県刈谷市広小路7-8-1<br style="clear:both;" />';
	
	htmls[35] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.mitsubishielectric.co.jp/" target="_blank">三菱電機（株）</a></strong><br>愛知県岡崎市唐沢町11-7<br style="clear:both;" />';
	
	htmls[36] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.mpe.co.jp/" target="_blank">三菱電機プラントエンジニアリング(株)</a></strong><br>愛知県刈谷市神田町1-33<br style="clear:both;" />';
	
	htmls[37] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.wakogiken.co.jp/" target="_blank">和光技研工業（株）</a></strong><br>愛知県刈谷市恩田町三丁目154番地1<br style="clear:both;" />';
	
	htmls[38] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.gacjp.com/" target="_blank">ＧＡＣ（株）</a></strong><br>愛知県安城市根崎町長配60番地<br style="clear:both;" />';
	
	htmls[39] = '<p style="font-size:12px; margin-top:5px;"><strong><a href="http://www.denso-ace.com/" target="_blank">（株）デンソーエース</a></strong><br>愛知県名古屋市南区宝生町4-30<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.988966,137.006054),14);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.988966,137.006054),'<img src="../access/images/logo.gif" width="215" height="55"><p style="font-size:12px; margin-top:5px;">〒448-0858 愛知県刈谷市若松町2-54<br style="clear:both;" />http://www.kuretake-inn.com/krya/</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(35.020351,137.074738),new GLatLng(35.016171,137.070648),new GLatLng(35.014736,137.069122),new GLatLng(35.013206,137.067841),new GLatLng(35.008514,137.064926),new GLatLng(35.006996,137.063751),new GLatLng(34.995033,137.054138),new GLatLng(34.994366,137.053284),new GLatLng(34.993839,137.052261),new GLatLng(34.99268,137.047241),new GLatLng(34.992126,137.045593),new GLatLng(34.991253,137.044113),new GLatLng(34.989723,137.042725),new GLatLng(34.984661,137.038559),new GLatLng(34.982578,137.03685),new GLatLng(34.981312,137.036026),new GLatLng(34.978947,137.034653),new GLatLng(34.980644,137.031143),new GLatLng(34.984116,137.023163),new GLatLng(34.984196,137.022507),new GLatLng(34.984001,137.020966),new GLatLng(34.983704,137.02034),new GLatLng(34.987186,137.01738),new GLatLng(34.988476,137.01355),new GLatLng(34.990227,137.009308),new GLatLng(34.990234,137.008911),new GLatLng(34.990246,137.008499),new GLatLng(34.99049,137.007858),new GLatLng(34.98941,137.005569),new GLatLng(34.988903,137.005753),new GLatLng(34.988934,137.006012),],"#FF4600",6,0.6);
	
		//ライン2
	var polyline2 = new GPolyline([new GLatLng(34.990696,137.008331),new GLatLng(34.990822,137.008026),new GLatLng(34.990505,137.007782),new GLatLng(34.989407,137.005615),new GLatLng(34.98893,137.005768),new GLatLng(34.988956,137.005981),],"#F5551E",6,0.6);
	
	//マップにポリライン表示
	map.addOverlay(polyline);
	map.addOverlay(polyline2);

}

