function populateMap() {  
    var map = new GMap2(document.getElementById("map"));  
    map.setCenter(new GLatLng(36.555540255865004, -76.278076171875), 9);  
    map.setUIToDefault();  
      
      


          
            var points = new Array(3);  
          
          
        points[1] = [36.2954645,-76.2346618,'<div class="infoContainer"><h4>The Mount - Elizabeth City</h4><p class="address">1021 Hwy US 17 S</p></div>'];  


      


          
          
        points[2] = [36.717481,-76.266261,'<div class="infoContainer"><h4>The Mount - Chapel</h4><p class="address">884 Bells Mill Road</p></div>'];  


      


          
          
        points[3] = [36.718844,-76.28394,'<div class="infoContainer"><h4>The Mount - Cathedral</h4><p class="address">215 Las Gaviotas Blvd</p></div>'];  


      
  
    for(var i=1; i < points.length; i++) {  
        var point = new GLatLng(points[i][0],points[i][1]);  
        var windowInfo = points[i][2];  
        var marker = createMarker(point,windowInfo);  
        map.addOverlay(marker);  
    }  
}  
  
function createMarker(point, overlayText) {  
    var marker = new GMarker(point);  
    GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(overlayText);});  
    return marker;  
}  
  
function addLoadEvent(func) {  
    var oldonload = window.onload;  
    if (typeof window.onload != 'function') {  
        window.onload = func;  
    } else {  
        window.onload = function() {  
            if (oldonload) {oldonload();}  
            func();  
        }  
    }  
}  
addLoadEvent(populateMap); 
