var map01;
var map02;
var geocoder;

var icon = new GIcon();
icon.image = "http://maps.google.co.jp/mapfiles/ms/icons/red.png";
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(35, 40);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);


function showMap(latlng){
    if (latlng){
        map01.setCenter(latlng, 16);
        var marker = new GMarker(latlng, {draggable: false});
        map01.addOverlay(marker);
        GEvent.addListener(map01, 'click', function(overLay, latlng) {
            showView(latlng);
        });
    }
}
function showView(latlng){
    if (latlng){
        var mapView = new GStreetviewPanorama(document.getElementById("map02"));
        mapView.setLocationAndPOV(latlng);
    }
}

