        var map;
        function InitMap() {
            map = new YMaps.Map(document.getElementById("YMapsID"));
            map.setCenter(new YMaps.GeoPoint(MC1,MC2), MZ);
            map.addControl(new YMaps.Zoom());
            map.addControl(new YMaps.TypeControl());

            var s = new YMaps.Style();
            s.iconStyle        = new YMaps.IconStyle("example#customPointIcon");
            s.iconStyle.href   = "http://visit.odessa.ua/pointer.png";
            s.iconStyle.size   = new YMaps.Point(40, 40);
            s.iconStyle.offset = new YMaps.Point(-20, -20);

            YMaps.Styles.add("example#customPoint", s);
            var t = new YMaps.Template("<div><img alt=\"здесь\" style=\"height:$[style.iconStyle.size.y];width:$[style.iconStyle.size.x];\" src=\"$[style.iconStyle.href]\"\/></div>");
            YMaps.Templates.add("example#customPointIcon", t);
            var placemark = new YMaps.Placemark(new YMaps.GeoPoint(OC1,OC2), {style: "example#customPoint"});
            placemark.setBalloonContent(BTC);
            map.addOverlay(placemark); 
        }
