// JavaScript Document

  var map = null;
      	var pinid = 0;
         
         function GetMap()
         {
            map = new VEMap('myMap');
            map.LoadMap(new VELatLong(44.00,28.62), 10 ,'h' ,false);
		  map.AddPushpin(new VEPushpin(
						1,
						new VELatLong(43.90, 28.60, 10, VEAltitudeMode.RelativeToGround),
						'imagini/bloc.png','<strong>Olimp</strong>','Olimpus Holliday Residence'					
					));

         }

		 function AddPolygon()
		 {
		    var ll = map.GetCenter();
		    var lat = ll.Latitude;
		    var lon = ll.Longitude;
	
		    var shape = new VEShape(VEShapeType.Polygon, [new VELatLong(lat,lon-0.15),
											 new VELatLong(lat+0.1,lon-0.05),
											 new VELatLong(lat+0.1,lon+0.05),
											 new VELatLong(lat,lon+0.15),
											 new VELatLong(44.00, 28.62, 0, VEAltitudeMode.RelativeToGround,
						'http://www.rezidential.net/wp-content/themes/default/images/bloc.png','2 camere Drumul Taberei','Preturi de la 71400 &euro;<br /> <a href="http://www.rezidential.net/2-camere-drumul-taberei" target="_blank" class="red">Vezi detalii</a>'),
											 new VELatLong(lat-0.1,lon+0.05),
											 new VELatLong(lat-0.1,lon-0.05)]);
		    shape.SetTitle('My polygon');
		    shape.SetDescription('This is shape number '+pinid);
		    pinid++;
		    map.AddShape(shape);
		 }    
