var map = null;
var geocoder = null;
function GMapsLoad() {
    if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("GMapDomain"));
        map.setCenter(new GLatLng(29.3012340,'-94.7952840'), 13);
        geocoder = new GClientGeocoder();
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);
        showAddress("1413 Tremont, Galveston, TX 77550");
    }
}
function showAddress(address) {
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        alert(address + " not found");
      } else {
        map.setCenter(point, 13);
        var marker = new GMarker(point);
        map.addOverlay(marker);
        var p = document.createElement('p');
        p.style.font='bold 12px rockwell,serif';
        var b1 = document.createElement('b');
        b1.style.display='block';
        b1.style.padding='1px 1px 10px 1px';
        b1.style.fontSize='14px';
        b1.innerHTML='Gulf Coast<br />Big Brothers Big Sisters';
        var b2 = document.createElement('b');
        b2.style.display='block';
        b2.style.padding='1px 1px 10px 1px';
        b2.innerHTML=address;
        p.appendChild(b1);
        p.appendChild(b2);
        marker.openInfoWindowHtml(p);
      }
    }
  );
}
function setGmap() {
    if (document.getElementById('GmapsScript')) {
        GMapsLoad();
        window.onunload=function(){GUnload()};
    }
}
window.onload=function(){setGmap();};
