if (GBrowserIsCompatible()) {
	var htmlInfo = document.getElementById("map").innerHTML;

	var map = new GMap2(document.getElementById("map"));
	map.setCenter(new GLatLng(55.777896, 37.607122), 15);

	var mapTypeControl = new GMapTypeControl();
	var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));
	map.addControl(mapTypeControl, topRight);

	var latlng = new GLatLng(55.777896, 37.607122);

	map.addControl(new GLargeMapControl());

	var letteredIcon = new GIcon();
	letteredIcon.iconSize = new GSize(20, 34);
	letteredIcon.shadowSize = new GSize(37, 34);
	letteredIcon.iconAnchor = new GPoint(9, 34);
	letteredIcon.infoWindowAnchor = new GPoint(9, 2);
	letteredIcon.infoShadowAnchor = new GPoint(18, 25);
	letteredIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	letteredIcon.image = "http://www.google.com/mapfiles/markerD.png";

	markerOptions = { icon:letteredIcon };
	var marker = new GMarker(latlng, markerOptions);

	GEvent.addListener(marker, "click", function() {
		marker.openInfoWindowHtml(htmlInfo);
	});

	map.addOverlay(marker);

	var polyline = new GPolyline([
		new GLatLng(55.7114,  37.56123),
		new GLatLng(55.71458, 37.5656),
		new GLatLng(55.71249, 37.56925),
		new GLatLng(55.713,   37.5714),
		new GLatLng(55.7139,  37.5742),
		new GLatLng(55.71445, 37.57567),
		new GLatLng(55.71485, 37.5751)
	], "#ff0000", 0);

	map.addOverlay(polyline);
}

