function populateMap() {  
     var map = new GMap2(document.getElementById("map"));  
     map.setCenter(new GLatLng(51.53, -0.18), 12);  
     map.setUIToDefault();  
       
       
           
             var points = new Array(18);  
                    
         points[1] = [51.53002,-0.20484,'<div class="infoContainer"><h3>Thursday, 26 January 11:00am - 1:00pm - Presentation of Strengthening Families Strengthening Communities certificates</h3><p class="address">North-West Locality Children&#039;s Centres Senior Social Worker , 88 Bravington Road, W9  3AL</p></div>'];  
   
       
                    
         points[2] = [51.50118,-0.12840,'<div class="infoContainer"><h3>Tuesday, 24 January, 9:00pm - 10.00pm - The Children Society Breakfast Seminar</h3><p class="address">1 One Great George Street, SW1P 3AA</p></div>'];  
   
       
                    
         points[3] = [51.51458,-0.18874,'<div class="infoContainer"><h3>Thursday 17th November - Turning on the Christmas lights</h3><p class="address">Whitleys, Bayswater, London W2 4YQ</p></div>'];  
   
       
                    
         points[4] = [51.53235,-0.18793,'<div class="infoContainer"><h3>Tuesday 1st November - Visit to Paddington Boys Club</h3><p class="address">North Paddington Boys Club, 235 Lanark Road, Maida Vale, London W9 1RA</p></div>'];  
   
       
                    
         points[5] = [51.53526,-0.19184,'<div class="infoContainer"><h3>Saturday 29th October 11.00am - Campaigning in Tollgate Gardens</h3><p class="address">Tollgate Gardens, Maida Vale, NW6 5SJ</p></div>'];  
   
       
                    
         points[6] = [51.49297,-0.12888,'<div class="infoContainer"><h3>Thursday 17th November  - Meeting apprentices from London Early Years Foundation nurseries</h3><p class="address">London Early Years Foundation, 121 Marsham Street, London SW1P 4LX</p></div>'];  
   
       
                    
         points[7] = [51.49297,-0.12888,'<div class="infoContainer"><h3>Thursday 17th November  - Meeting apprentices from London Early Years Foundation nurseries</h3><p class="address">London Early Years Foundation, 121 Marsham Street, London SW1P 4LX</p></div>'];  
   
       
                    
         points[8] = [51.52803,-0.17229,'<div class="infoContainer"><h3>Saturday 24th September - Presentation of Rosh Hashanah card prize winner</h3><p class="address">Liberal Jewish Synagogue, St John&#039;s Wood Road, NW8 7HA</p></div>'];  
   
       
                    
         points[9] = [51.51728,-0.18901,'<div class="infoContainer"><h3>Monday 14th November, 6.30pm  - South East Bayswater Resident&amp;#8217;s Association AGM</h3><p class="address">Porcester Centre, Queensway, London W2 5HS</p></div>'];  
   
       
                    
         points[10] = [51.52094,-0.19160,'<div class="infoContainer"><h3>Tuesday 29th November 1.30pm - Carers Network</h3><p class="address">Stowe Centre, 260 Harrow Road, London W2 5ES</p></div>'];  
   
       
                    
         points[11] = [51.52457,-0.17073,'<div class="infoContainer"><h3>5th October 2011 10.30am - Eid Card Prize Presentation</h3><p class="address">Gateway Primary School, Capland Street, London NW8 8LN</p></div>'];  
   
       
                    
         points[12] = [51.51844,-0.19751,'<div class="infoContainer"><h3>Saturday, 9 July 11:00am &acirc;€“ 1:00pm - Coffee Morning Brunnel Estate/Westbourne Park Rd</h3><p class="address">Bayswater Children Centre, Shrewsbury Road, W2 5PR</p></div>'];  
   
       
                    
         points[13] = [51.51637,-0.21112,'<div class="infoContainer"><h3>Thursday, 30 June, 6:00pm -7:30pm - Friends of Woman&amp;#8217;s Trust</h3><p class="address">Lighthouse, West London, 11-117 Lancaster Road, W11 1QT</p></div>'];  
   
       
                    
         points[14] = [51.52457,-0.17073,'<div class="infoContainer"><h3>Saturday, 26 June, 2:00pm  - Annual Summer Fair</h3><p class="address">Gateway Primary School Capland Street NW8 8LN  </p></div>'];  
   
       
                    
         points[15] = [51.53533,-0.19086,'<div class="infoContainer"><h3>Saturday, 26 June, 11:00am &acirc;€“ 1:00pm - Tollgate Gardens Coffee Morning</h3><p class="address">Tollgate Gardens Estate NW6 5SG</p></div>'];  
   
       
                    
         points[16] = [51.52141,-0.16719,'<div class="infoContainer"><h3>Wednesday, 23 June, 3:30pm -5:00pm - Karen Buck&acirc;€™s visit to The Marylebone Project</h3><p class="address">Elgood House, 10 Daventry Street, NW1 5NX</p></div>'];  
   
       
                    
         points[17] = [51.52480,-0.16484,'<div class="infoContainer"><h3>Wednesday, 23 June, 11:00am -12:00noon - Visit Fourth Feathers Youth Project</h3><p class="address">12 Rossmore Road. NW1 6NX</p></div>'];  
   
       
                    
         points[18] = [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); 
