        window.onload = function () {
            var map = new YMaps.Map(document.getElementById("YMapsID"));
            map.setCenter(new YMaps.GeoPoint(37.578,55.893 ), 15, YMaps.MapType.MAP);
			
			var typeControl = new YMaps.TypeControl();
            map.addControl(typeControl);
			
			var Zoom = new YMaps.Zoom();
            map.addControl(Zoom);
			
			var ToolBar = new YMaps.ToolBar();
            map.addControl(ToolBar);
			
			
			
			
			
			var s = new YMaps.Style();
            s.iconStyle = new YMaps.IconStyle();
			s.iconStyle.offset = new YMaps.Point(-52, -53);
            s.iconStyle.href = "http://goravto.ru/pictures/ya.png";
            s.iconStyle.size = new YMaps.Point(55, 55);
			
			s.iconStyle.shadow = new YMaps.IconShadowStyle();
            s.iconStyle.shadow.offset = new YMaps.Point(-47, -48);
            s.iconStyle.shadow.href = "http://goravto.ru/pictures/ya_sh.png";
            s.iconStyle.shadow.size = new YMaps.Point(55, 55);
			
			var point = new YMaps.GeoPoint(37.5791,55.8895 );
            var placemark = new YMaps.Placemark(point, {style: s});
			placemark.description = 'ТД \"Горная Автоматика"\<Br>Новгородская 1, оф.612<br>т. (495)223-43-14';
            map.addOverlay(placemark);
			
			var t = new YMaps.Template();
t.text = "<div style=\"color:#0A0\">$[description]</div>";
YMaps.Templates.add("example#template", t);

var s = new YMaps.Style();
s.balloonContentStyle = new YMaps.BalloonContentStyle("example#template");


                 var s = new YMaps.Style();
s.lineStyle = new YMaps.LineStyle();
s.lineStyle.strokeColor = '0000FF55';
s.lineStyle.strokeWidth = '5';
YMaps.Styles.add("example#CustomLine", s);
 
var pl = new YMaps.Polyline([ new YMaps.GeoPoint(37.5793,55.8895),
                              new YMaps.GeoPoint(37.5797,55.8895),
                              new YMaps.GeoPoint(37.5797,55.8908),
							  new YMaps.GeoPoint(37.582,55.8899),
							  new YMaps.GeoPoint(37.58593,55.8898),
							  new YMaps.GeoPoint(37.58593,55.88965),
							  new YMaps.GeoPoint(37.5866,55.88965),
							  new YMaps.GeoPoint(37.5872,55.908),
                              
                            ]);
pl.setStyle('example#CustomLine');
map.addOverlay(pl);
			
			
        };  
