if(GBrowserIsCompatible())
{
var point = new Array();
var nCnt = 0;
var gmarker = new Array();
var htmls = new Array();
point[0] = new GLatLng(34.911859,138.789661); htmls[0] = '<div><p class="logomap"><img src="images/logomap.jpg" width="257" height="67" /></p><p class="txtlogomap">〒410-3302　静岡県伊豆市土肥415-4<br /> TEL.0558-98-1189　FAX.0558-98-0403</p></div>';

//恋人岬
point[1] = new GLatLng(34.867625,138.76168); htmls[1] = '<img src="images/img_koibitomisaki.jpg" width="100" height="65" class="fleft igmap" /><p class="txtgmap"><strong>恋人岬</strong><br />恋人岬は700メートル程の富士見遊歩道の先端に位置し、駿河湾越しに御前崎から富士山まで望める展望台やラブコールベルが設けられています。</p>';

//象牙美術宝庫
point[2] = new GLatLng(34.920978,138.790793); htmls[2] = '<img src="images/img_zouge.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>象牙美術宝庫</strong><br />とにかく凄い芸術作品がたくさんです。これだけの作品が集まる場所は世界的にも西伊豆土肥だけにしか存在しないとっても貴重なスポットです。</p>';

//天正金鉱跡
point[3] = new GLatLng(34.905883,138.790087); htmls[3] = '<img src="images/img_tenshou.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>天正金鉱跡</strong><br />土肥と言えば「土肥金山」あまりにも有名だが、土肥金山から数百メートル離れた場所に天正金鉱という個人で経営する施設がある。</p>';

//フィッシングパークTOI
point[4] = new GLatLng(34.905023,138.784795); htmls[4] = '<img src="images/img_fishingpark.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>フィッシングパークTOI</strong><br />イケスの中には、タイ・アジが常時入っており、初心者の方でも、気軽に楽しめるようになっています。</p>';

//土肥金山
point[5] = new GLatLng(34.908197,138.792877); htmls[5] = '<img src="images/img_toikinzan.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>土肥金山</strong><br />土肥金山は、江戸時代に第一期黄金時代を明治時代から昭和にかけて第二期黄金時代を迎え佐渡金山に次ぐ生産量を誇った伊豆最大の金山で、推定産出量は、金 40t、銀400tである。</p>';

//足湯
point[6] = new GLatLng(34.911272,138.790208); htmls[6] = '<img src="images/img_ashiyu.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>足湯</strong><br />土肥の観光名所巡りは足を使って訪れるスポットが多いです。ご年配の方だけに限らず疲れるものです。</p>';

//松原公園 -世界一の花時計-
point[7] = new GLatLng(34.91085,138.790404); htmls[7] = '<img src="images/fields/img_matsubarapark.jpg" width="100" height="65" class="fleft igmap" /><p class="txtgmap"><strong>松原公園 -世界一の花時計-</strong><br />土肥海水浴場の砂浜に続く松林の自然公園です。</p>';

//土肥海水浴場
point[14] = new GLatLng(34.911898,138.788199); htmls[14] = '<img src="images/img_kaisuiyoku.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>土肥海水浴場</strong><br />長さ700ｍの西伊豆最大級のビーチ。背景には松林が立ち並び、芝生のビーチもある海水浴場は、年間10万人以上の方で賑わう大変人気の海水浴場です。</p>';

//安楽寺
point[8] = new GLatLng(34.912222,138.792456); htmls[8] = '<img src="images/fields/img_anrakuji.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>安楽寺</strong><br />豆国88ヶ所巡りの86番礼所となっている安楽寺は曹洞宗の古刹で、境内には土肥温泉発祥の湯と言われる“まぶ湯 ”があります。</p>';

//清雲寺
point[9] = new GLatLng(34.911987,138.795492); htmls[9] = '<img src="images/fields/img_seiunji.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>清雲寺</strong><br />清雲寺は土肥城主富永山城守の菩提寺で、日蓮上人の一代記を描いた極彩色のタタミ一畳大の板額絵が90枚飾られ、見る人を感動させます。</p>';

//旅人岬
point[10] = new GLatLng(34.916951,138.785595); htmls[10] = '<img src="images/fields/img_traveller.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>旅人岬</strong><br />駿河湾を望む県道17号線沿いにあるビュースポットです。</p>';

//土肥神社
point[11] = new GLatLng(34.922194,138.790248); htmls[11] = '<img src="images/fields/img_toijinya.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>土肥神社</strong><br />旧土肥町の総鎮守で、境内にある大クスは海からの目印にもなっています。</p>';

//修善寺虹の郷
point[12] = new GLatLng(34.976535,138.905151); htmls[12] = '<img src="images/izu/img_shuzenji.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>修善寺虹の郷</strong><br />自然の景観を生かした園内には、17世紀の街並みを再現したイギリス村や、森と湖のカナダ村。</p>';

//浄蓮の滝
point[13] = new GLatLng(34.871873,138.922159); htmls[13] = '<img src="images/izu/img_jourennotaki.jpg" width="100" height="54" class="fleft igmap" /><p class="txtgmap"><strong>浄蓮の滝</strong><br />天城原生林に囲まれた浄蓮の滝は、高さ25ｍ、幅7ｍの天城山中一の名爆です。滝の玄武岩には天然記念物のハイコモチシダが群生しています。</p>';



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());
//ダブルクリックズーム＆スムージング
map.enableContinuousZoom();
//初期表示の画面の中心座標
map.setCenter(new GLatLng(34.903789,138.797536), 15);
//初期フキダシ表示内容
map.openInfoWindowHtml(new GLatLng(34.911859,138.789661),'<div><p class="logomap"><img src="images/logomap.jpg" width="257" height="67" /></p><p class="txtlogomap">〒410-3302　静岡県伊豆市土肥415-4<br /> TEL.0558-98-1189　FAX.0558-98-0403</p></div>');
var nDataNum = point.length;
for(nCnt=0;nCnt<nDataNum;nCnt++)
{
var marker = createMarker(point[nCnt],htmls[nCnt]);
gmarker[nCnt] = marker;
map.addOverlay(marker);
}

}

