function populateMap() {  
     var map = new GMap2(document.getElementById("map"));  
     map.setCenter(new GLatLng(51.53, -0.18), 12);  
     map.setUIToDefault();  
       
       
           
             var points = new Array(8);  
                    
         points[1] = [51.52672,-0.20449,'<div class="infoContainer"><h3>Friday 25th June 2.30pm - Visit to the Rainbow Centre</h3><p class="address">Rainbow Centre, 11 Bravington Road, London W9 3AB</p></div>'];  
   
       
                    
         points[2] = [51.53018,-0.19139,'<div class="infoContainer"><h3>Monday 21st June 9.00am - Westminster Pre-School Alliance - Teddy Bears picnic</h3><p class="address">Paddington Recreation Ground</p></div>'];  
   
       
                    
         points[3] = [51.51426,-0.1780,'<div class="infoContainer"><h3>Monday 14th June 9.00am - 10.30am - School coffee morning at St Luke and St Michael CE School</h3><p class="address">Craven Terrace, London W2 3QD</p></div>'];  
   
       
                    
         points[4] = [51.51828,-0.18936,'<div class="infoContainer"><h3>Saturday 10th July 10.00am - 12.00 - Coffee morning at Westbourne Park Baptist Church</h3><p class="address">Westbourne Park Baptist Church, Porcester Road, W2 5DX</p></div>'];  
   
       
                    
         points[5] = [51.53184,-0.20820,'<div class="infoContainer"><h3>Wednesday 7th July 9.00am - 10.00am - Visit to Wilberforce Primary School</h3><p class="address">Wilberforce Primary School, Beethoven St, London W10 4LB</p></div>'];  
   
       
                    
         points[6] = [51.52112,-0.19294,'<div class="infoContainer"><h3>Saturday 26th June 2.00pm - Arab Family Centre/Graduation ceremony</h3><p class="address">Westminster Academy, London W2 5EZ</p></div>'];  
   
       
                    
         points[7] = [51.52077,-0.18673,'<div class="infoContainer"><h3>Thursday 3rd June, 8.30am - 10.00am - Warwick Estate walkabout</h3><p class="address">Warwick Estate</p></div>'];  
   
       
                    
         points[8] = [51.52471,-0.19179,'<div class="infoContainer"><h3>Weekly 10.30am - 12.30am - Weekly Surgery</h3><p class="address">Harrow Road One Stop, 317 Harrow Road, London W9 3RJ</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); 