    YMaps.jQuery(function () {
        var map = new YMaps.Map(YMaps.jQuery("#YMapsID-223")[0]);
        map.setCenter(new YMaps.GeoPoint(37.495078,55.645404), 15, YMaps.MapType.MAP);
        map.addControl(new YMaps.Zoom());
        map.addControl(new YMaps.ToolBar());
        map.addControl(new YMaps.TypeControl());

        YMaps.Styles.add("constructor#FF3732c85Polyline", {
            lineStyle : {
                strokeColor : "FF3732c8",
                strokeWidth : 5
            }
        });


       // Открытие балуна
       map.openBalloon(new YMaps.GeoPoint(37.496039,55.645677), "<h3>Студия Красоты и Здоровья</h3><strong>Адрес:</strong> ул. Островитянова д.5 корп. 3<br /><strong>Телефон:</strong> (495) 725-23-05");


       map.addOverlay(createObject("Polyline", [new YMaps.GeoPoint(37.493175,55.64435),new YMaps.GeoPoint(37.493304,55.644544),new YMaps.GeoPoint(37.491845,55.645151),new YMaps.GeoPoint(37.494119,55.646923),new YMaps.GeoPoint(37.49678,55.645855),new YMaps.GeoPoint(37.496308,55.645564)], "constructor#FF3732c85Polyline", "Схема проезда"));
        
        function createObject (type, point, style, description) {
            var allowObjects = ["Placemark", "Polyline", "Polygon"],
                index = YMaps.jQuery.inArray( type, allowObjects),
                constructor = allowObjects[(index == -1) ? 0 : index];
                description = description || "";
            
            var object = new YMaps[constructor](point, {style: style, hasBalloon : !!description});
            object.description = description;
            
            return object;
        }
    });

