﻿

 function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        var center = new GLatLng(34.09321, -118.277714);
        map.setCenter(center, 12);
        var marker = new GMarker(center, {draggable: false});
        map.addOverlay(marker);
        var infoText = new String;
        infoText="Time To Learn Mandarin!<br><img src='images/yvonne2.jpg>";
        
        GEvent.addListener(marker, "click", function() 
        {
	        marker.openInfoWindowHtml(infoText);
	    });
      }
    }
 // Move an element directly on top of another element (and optionally
 // make it the same size)
 
    function Cover(bottom, top, ignoreSize) {
    var location = Sys.UI.DomElement.getLocation(bottom);
    top.style.position = 'absolute';
    top.style.top = location.y + 'px';
    top.style.left = location.x + 'px';
    if (!ignoreSize) {
       top.style.height = bottom.offsetHeight + 'px';
       top.style.width = bottom.offsetWidth + 'px';
       }
    }
  