YMaps.jQuery(function () {
        var map = new YMaps.Map(YMaps.jQuery("#YMapsID-496")[0]);
        map.setCenter(new YMaps.GeoPoint(38.197105,55.72261), 17, YMaps.MapType.HYBRID);
        map.addControl(new YMaps.Zoom());
        map.addControl(new YMaps.ToolBar());
        map.addControl(new YMaps.TypeControl());
        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)
            }
        });
        map.addOverlay(createObject("Placemark", new YMaps.GeoPoint(38.19704,55.72215), "constructor#pmrdmPlacemark", "г. Электроугли, пер. Сафронова, д. 10"));
        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;
    }
});
