function show_map()
{
        var container = YMaps.jQuery("#YMap"),map = new YMaps.Map(container[0]);
        map.setCenter(new YMaps.GeoPoint(39.070949,45.010742), 15, YMaps.MapType.MAP);
        map.addControl(new YMaps.Zoom());
        map.addControl(new YMaps.ToolBar());
        YMaps.MapType.PMAP.getName = function () { return "Народная"; };
        map.addControl(new YMaps.TypeControl([
            YMaps.MapType.MAP,
            YMaps.MapType.SATELLITE,
            YMaps.MapType.HYBRID,
            YMaps.MapType.PMAP
        ], [0, 1, 2, 3]));

        YMaps.Styles.add("constructor#pmrdmPlacemark", {
            iconStyle : {
                href : "http://api-maps.yandex.ru/i/0.3/placemarks/pmrdm.png",
                size : new YMaps.Point(28,29),
                offset: new YMaps.Point(-8,-27)
            }
        });


        YMaps.Styles.add("constructor#FF3732c85Polyline", {
            lineStyle : {
                strokeColor : "FF3732c8",
                strokeWidth : 5
            }
        });
       map.addOverlay(createObject("Placemark", new YMaps.GeoPoint(39.07155,45.010669), "constructor#pmrdmPlacemark", "ул. Игнатова, д.4Б"));
       map.addOverlay(createObject("Polyline", [new YMaps.GeoPoint(39.069619,45.012587),new YMaps.GeoPoint(39.072365,45.012495),new YMaps.GeoPoint(39.072408,45.010639),new YMaps.GeoPoint(39.071936,45.010547)], "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;
        }

}

