   // Create a Map that will be placed in the "map" div.   
    var map = new YMap(document.getElementById('mapx'));    
    // Create an array to contain the points of our polyline   
    polylinePoints = [];   
    function startMap(){   
        // Add the ability to change between Sat, Hybrid, and Regular Maps   
        map.addTypeControl();      
        // Add the zoom control. Long specifies a Slider versus a "+" and "-" zoom control   
        map.addZoomLong();             
        // Add the Pan control to have North, South, East and West directional control   
        map.addPanControl();     
        // Specifying the Map starting location and zoom level   
        //map.drawZoomAndCenter("San Francisco", 3);   
		
        // Add an event to report to our Logger   
		
		var mapCoordCenter = map.convertLatLonXY(map.getCenterLatLon());   
		YLog.initPos(mapCoordCenter); //call initPos to set the starting location   
		currentGeoPoint = new YGeoPoint(44.460522, 26.099725);   
		map.drawZoomAndCenter(currentGeoPoint, 3);   
		placeMarker(currentGeoPoint);   
        //YEvent.Capture(map, EventsList.MouseClick, myCallback);   
  
        function myCallback(_e, _c){   
            /*    
               It is optional to specify the location of the Logger.    
               Do so by sending a YCoordPoint to the initPos function.   
             */   
            var mapCoordCenter = map.convertLatLonXY(map.getCenterLatLon());   
            YLog.initPos(mapCoordCenter); //call initPos to set the starting location   
            //currentGeoPoint = new YGeoPoint( _c.Lat, _c.Lon);   
			currentGeoPoint = new YGeoPoint(44.460522, 26.099725);   
            placeMarker(currentGeoPoint);   

        }   
  
        function placeMarker(geoPoint){   
            var newMarker= new YMarker(geoPoint);   
            newMarker.addAutoExpand("<span style=\"font-family:Verdana; font-size:11px;\"><strong>Karmabeauty</strong><br>Str. Banul Antonache nr. 51, parter Sector 1 Bucuresti</span>");   

            YEvent.Capture(newMarker, EventsList.MouseClick,    
                function(){   
                    newMarker.openSmartWindow(markerMarkup);   
                });   
            map.addOverlay(newMarker);   
        }   
  

    }   
  
window.onload = startMap;      
