var shop = {
    lat: 34.6886523,
    lng: 135.5086563,
    zoom: 16,
    html: '<table style="width:180px; height: 150px;"><tr><td style="line-height:120%;">'
        + '<span style="size:10px;color:#85AD33;">VEGE+KITCHIN YAMATSUJI<br />はこちらです。</span><br />'
        + '<img src="./images/access/map.jpg">'
        + '</td></tr></table>'
};

function addMarker(map, lat, lng, html, showpopup) {
    var point = new GLatLng(lat, lng);
    var marker = new GMarker(point);

    map.addOverlay(marker);

    GEvent.addListener(marker, 'click', function() {
        marker.openInfoWindowHtml(html);
    });

    if (showpopup) marker.openInfoWindowHtml(html);
}

function mapload(){
    if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));

        map.addControl(new GLargeMapControl());
        map.setCenter(new GLatLng(shop.lat, shop.lng), shop.zoom);

        addMarker(map, shop.lat ,shop.lng , shop.html);
    }
}
