      var map = null;
            
      function GetMap()
      {
         map = new VEMap('map_container');
         map.LoadMap(new VELatLong(52.193270,-0.926577), 17 ,'h', false, VEMapMode.Mode2D, false);
      }
      
      function AddPushpin(lat,lon,title,description,photo,info)
      {
          var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(lat,lon) );
          shape.SetTitle(title);
          shape.SetDescription(description);
          shape.SetPhotoURL(photo);
          shape.SetMoreInfoURL(info);
          map.AddShape(shape);
      }
      
      function AddPolygon(lat1,lon1,lat2,lon2,lat3,lon3,lat4,lon4,title,description,photo,info)
      {
         var shape = new VEShape(VEShapeType.Polygon, [new VELatLong(lat1,lon1),
                                                   new VELatLong(lat2,lon2),
                                                   new VELatLong(lat3,lon3),
                                                   new VELatLong(lat4,lon4)]);
         shape.SetTitle(title);
         shape.SetDescription(description);
         shape.SetLineWidth(2);
         shape.SetLineColor(new VEColor(0,150,100,1.0));
         shape.SetFillColor(new VEColor(0,150,100,0.3));
         shape.SetPhotoURL(photo);
         shape.SetMoreInfoURL(info);
         map.AddShape(shape);
      }
      
       function AddArea(lat1,lon1,lat2,lon2,lat3,lon3,lat4,lon4,lat5,lon5,lat6,lon6,lat7,lon7,lat8,lon8,title,description,photo,info)
      {
         var shape = new VEShape(VEShapeType.Polygon, [new VELatLong(lat1,lon1),
                                                   new VELatLong(lat2,lon2),
                                                   new VELatLong(lat3,lon3),
                                                   new VELatLong(lat4,lon4),
                                                   new VELatLong(lat5,lon5),
                                                   new VELatLong(lat6,lon6),
                                                   new VELatLong(lat7,lon7),
                                                   new VELatLong(lat8,lon8)]);
         shape.SetTitle(title);
         shape.SetDescription(description);
         shape.SetLineWidth(2);
         shape.SetLineColor(new VEColor(0,150,100,1.0));
         shape.SetFillColor(new VEColor(0,150,100,0.2));
         shape.SetPhotoURL(photo);
         shape.SetMoreInfoURL(info);
         map.AddShape(shape);
      }
      
     function AddPins()
      {
        AddPushpin(52.1943,-0.9283,'MM400',
        'Acer Platanoides Drummondii (November 2006)',
         '','');

        AddPushpin(52.1938,-0.9209,'MM401, MM402, MM403',
        'Silver Birch, Prunus Subhirtella Autumnalis & Malus John Downie (March 2007)',
         '','');
         
        AddPushpin(52.1939,-0.9199,'MM404, MM405, MM406, MM407',
        'Fork Oak, Hawthorn Crataegus, Acer Camprestre, Fagus Sylvatica Pendulus (March 2007)',
         '','');
         
        AddPushpin(52.19335,-0.9209,'MM408',
        'Silver Birch (November 2007)',
         '','');         

        AddPushpin(52.1899,-0.9174,'MM409, MM410, MM411',
        'Acer Platanoides (February 2007)',
         '','');         

        AddPushpin(52.1944,-0.928,'MM413',
        'Photinia Red Robin (January 2008)',
         '','');

        AddPushpin(52.1942,-0.9281,'MM417',
        'Silver Birch (January 2008)',
         '','');
         
         AddPushpin(52.195,-0.9256,'MM418',
        'Acer Crimson King (January 2008)',
         '','');
         
         AddPushpin(52.1935,-0.9209,'MM420',
        'Oak (August 2007)',
         '','');
         
         AddPushpin(52.1934,-0.9208,'MM421',
        'Horse Chestnut (March 2008)',
         '','');
         
         AddPushpin(52.1943,-0.9308,'MM423',
        'Acer Crimson King (March 2008)',
         '','');
         
         AddPushpin(52.1926,-0.9312,'MM424',
        'Prunus (January 2008)',
         '','');
         
         AddPushpin(52.1926,-0.9294,'MM425',
        'Betula Pendula (January 2008)',
         '','');
         
         AddPushpin(52.1925,-0.9294,'MM426',
        'Malus Golden Hornet (January 2008)',
         '','');
         
         AddPushpin(52.1944,-0.9308,'MM427',
        'Prunus (January 2008)',
         '','');
         
         AddPushpin(52.1921,-0.9297,'MM429',
        'Prunus (January 2008)',
         '','');
         
         AddPushpin(52.1921,-0.9298,'MM430',
        'Malus (January 2008)',
         '','');
         
         AddPushpin(52.1919,-0.9296,'MM431',
        'Prunus (January 2008)',
         '','');
         
         AddPushpin(52.1915,-0.9278,'MM432',
        'Prunus (January 2008)',
         '','');
         
         AddPushpin(52.1915,-0.9279,'MM433',
        'Himalayan Birch (January 2008)',
         '','');
         
         AddPushpin(52.1916,-0.9281,'MM434',
        'Sorbus (January 2008)',
         '','');
         
         AddPushpin(52.1917,-0.9248,'MM435',
        'Acer Crimson King (January 2008)',
         '','');
         
         AddPushpin(52.1950,-0.9253,'MM440',
        'Malus (January 2008)',
         '','');
         
         AddPushpin(52.1955,-0.9256,'MM442',
        'Amelanchier (January 2008)',
         '','');
         
         AddPushpin(52.1974,-0.9282,'MM443',
        'Silver Birch (January 2008)',
         '','');
         
         AddPushpin(52.1970,-0.9287,'MM444',
        'Malus (January 2008)',
         '','');
         
         AddPushpin(52.1973,-0.9246,'MM446-MM453',
        'Assorted Birch, Cherry and Rowan (March 2008)',
         '','');
         
         AddPushpin(52.1973,-0.9243,'MM454, MM455',
        'Oaks (March 2008)',
         '','');
         
         AddPushpin(52.1959,-0.9259,'MM456-MM459',
        'Oak, Rowan, Acer Crimson King (March 2008)',
         '','');
         
         AddPushpin(52.1931,-0.9250,'MM460',
        'Hawthorn Crataegus (January 2008)',
         '','');
         
         AddPushpin(52.1907,-0.9229,'MM100 series',
        'Assorted trees planted by Milton Malsor Parish Council before 2006',
         '','');
         
         AddPushpin(52.1930,-0.9241,'MM100 series',
        'Assorted trees planted by Milton Malsor Parish Council before 2006',
         '','');
         
         AddPushpin(52.1924,-0.9308,'MM300 series',
        'Trees planted by individuals on public ground',
         '','');
         
         AddPushpin(52.1940,-0.9204,'MM300 series',
        'Trees planted by individuals on public ground',
         '','');
         
         AddPushpin(52.1939,-0.9197,'MM300 series',
        'Trees planted by individuals on public ground',
         '','');
         
         AddPushpin(52.1933,-0.9203,'MM300 series',
        'Trees planted by individuals on public ground',
         '','');
         
         AddPushpin(52.1943,-0.9280,'MM100 series',
        'Assorted trees planted by Milton Malsor Parish Council before 2006',
         '','');



         
         
         

         

         
       




         
         


























        
 }

