if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var tags = new Array();



point[0] = new GLatLng(34.719246,136.960873); tags[0] = '<div style="width:185px; text-align:center;"><img src="images/map/maplogo.jpg" alt="やなぎや" width="183" height="68" /></div>';

point[1] = new GLatLng(34.787087, 136.855489); tags[1] = '<div class="pop"><img src="images/map/01p.jpg" alt="南知多ビーチランド"  class="img" /><div class="popuptext" style="width:200px"><h6>南知多ビーチランド</h6><p>海洋動物と触れ合える総合海浜公園とおもちゃとたっぷり遊べる南知多おもちゃ王国！大人から子供まで楽しめます。</p><a href="http://www.beachland.jp/" target="_blank"><img src="images/kankou/url_o.gif" alt="ホームページ" border="0"></a></div></div>';


point[2] = new GLatLng(34.702831, 136.97548); tags[2] = '<div class="pop"><img src="images/map/02p.jpg" alt="師崎漁港朝市"  class="img" /><div class="popuptext" style="width:200px"><h6>師崎漁港朝市</h6><p>漁港から水揚げされた鮮魚貝類はもちろん、青果物や地元で製造された小女子・ちりめん・干物・佃煮・煎餅・海苔・惣菜などいろいろあります。</p></div></div>';

point[3] = new GLatLng(34.71834, 136.96872); tags[3] = '<div class="pop"><img src="images/map/03p.jpg" alt="上陸大使 （聖埼公園）"  class="img" /><div class="popuptext" style="width:200px"><h6>上陸大使 （聖埼公園）</h6><p>弘法大師がその昔、三河からこの地に上陸したとの伝承にちなむ像です。聖崎の丘にはすばらしい眺望の展望台があります。</p></div></div>';

point[4] = new GLatLng(34.720093, 136.962411); tags[4] = '<div class="pop"><img src="images/map/04p.jpg" alt="大井漁港 "  class="img" /><div class="popuptext" style="width:200px"><h6>大井漁港</h6><p>釣りのメッカ。土日にはたくさんの釣り人でにぎわいます。</p></div></div>';

point[5] = new GLatLng(34.747568, 136.89893); tags[5] = '<div class="pop"><img src="images/map/05p.jpg" alt="南知多グリーンバレイ"  class="img" /><div class="popuptext" style="width:200px"><h6>南知多グリーンバレイ</h6><p>アスレチックやバンジージャンプ、スカイコースター、味覚狩り、バーベキューなどを楽しめるレジャー施設です。</p><a href="http://www.green-v.jp/" target="_blank"><img src="images/kankou/url_o.gif" alt="ホームページ" border="0"></a></div></div>';


function createMarker(point,htmlData)
{
var iconSet = new GIcon();
iconSet.image            = "images/map/"+ nCnt +".png"; //アイコン画像パス
iconSet.iconSize         = new GSize(21, 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(tags[HtmlCnt]);
}
var map = new GMap2(document.getElementById("map_area"));

map.addControl(new GLargeMapControl());

map.enableContinuousZoom();

map.setCenter(new GLatLng(34.74874,136.906815), 12);

map.openInfoWindowHtml(new GLatLng(34.719246,136.960873),'<div style="width:185px; text-align:center;"><img src="images/map/maplogo.jpg" alt="やなぎや" width="183" height="68" /></div>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],tags[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}
}
