//<![CDATA[

function load(){
  var centerLatLng = new GLatLng(36.633412,139.439662);

  if (GBrowserIsCompatible()){
    map = new GMap2(document.getElementById("gmap"));
    map.setCenter(centerLatLng,12);
    map.addControl(new GLargeMapControl());
  map.addControl(new GOverviewMapControl());
    new GKeyboardHandler(map);

    map2 = new GMap2(document.getElementById("gmap2"));
    map2.setCenter(centerLatLng,12,G_SATELLITE_MAP);
    map2.disableDragging();

var icon = new GIcon();
  icon.image = "../../titlepic/a_blt021.gif";
  icon.iconSize = new GSize(38,31);
  icon.iconAnchor = new GPoint(38,15);
  var marker = new GMarker(map.getCenter(),icon);
  map.addOverlay(marker);

  var marker = new GMarker(map2.getCenter(),icon);
  map2.addOverlay(marker);

  GEvent.addListener(marker,"click",onIconClick);
  GEvent.addListener(map,'move',onMove);
  renewal();

  }
}

function onMove(){
  map2.setCenter(map.getCenter(), map.getZoom());
  setTimeout('renewal()',1000);
}

function renewal(){
  var pnt = map.getCenterLatLng();
  var status = "<b>Current zoom level:</b>" + map.getZoom() + "<b>Map center location:</b>" + Math.round(pnt.x * 100000) / 100000 + "&deg;," + Math.round(pnt.y * 100000) / 100000 + "&deg;";
  document.getElementById("status").innerHTML = status;
}
function onIconClick(){
//    location.href = "http://japan.mania.cx/1024/0716.html";
}
//]]>
