if (GBrowserIsCompatible()) 
{
	var baseIcon = new GIcon();
	baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
	baseIcon.iconSize = new GSize(20, 34);
	baseIcon.shadowSize = new GSize(37, 34);
	baseIcon.iconAnchor = new GPoint(9, 34);
	baseIcon.infoWindowAnchor = new GPoint(9, 2);
	baseIcon.infoShadowAnchor = new GPoint(18, 25);

	function createMarker(point, name) 
	{
		// Create a lettered icon for this point using our icon class
		var icon = new GIcon(baseIcon);
		icon.image = "http://www.google.com/mapfiles/marker.png";
		var marker = new GMarker(point, icon);

		GEvent.addListener(marker, "click", 
			function() 
			{
				marker.openInfoWindowHtml(name);
			}
		);
		return marker;
	}
}

function load()
{
	if (GBrowserIsCompatible()) 
	{
		var map1 = new GMap2(document.getElementById("map1"));
		map1.addControl(new GSmallMapControl());
		map1.setCenter(new GLatLng(50.284564, 18.87675), 13);

		var point = new GLatLng(50.284564,18.876750);
		map1.addOverlay(createMarker(point, "<h2 class='google_maps_header'>Biuro</h2><br>ul. Niedurnego 34, 41-709 Ruda Śląska"));
		
		var map2 = new GMap2(document.getElementById("map2"));
		map2.addControl(new GSmallMapControl());
		map2.setCenter(new GLatLng(50.324178, 18.637575), 13);

		var point = new GLatLng(50.324178, 18.637575);
		map2.addOverlay(createMarker(point, "<h2 class='google_maps_header'>Magazyn</h2><br>ul. Portowa 28, Gliwice (na terenie Śląskiego Centrum Logistyki)"));
	}
}
