function init(longitude, latitude) {
	//if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("obiekt_mapa"));

		map.setCenter(new GLatLng(latitude,longitude), 13);
		map.setUIToDefault();
		map.addControl(new GScaleControl());
		//map.addControl(new GOverviewMapControl());
		map.addControl(new GMapTypeControl());
		
		var punkt = new GPoint(longitude, latitude);
		var placemark = new GMarker(punkt);
		map.addOverlay(placemark);
	//}
}

function showMapDiv(id) {
	document.getElementById(id).style.display = "";
}

    //<![CDATA[
	    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("gdynia_map"));
      
        
        map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(54.499540, 18.438060), 15);
                map.setMapType(G_NORMAL_MAP);
		// Create a base icon for all of our markers that specifies the
		// shadow, icon dimensions, etc.
		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);

		// Creates a marker whose info window displays the letter corresponding
		// to the given index.
		function createMarker(point, index) {
		  // Create a lettered icon for this point using our icon class
		  var letter = String.fromCharCode("A".charCodeAt(0) + index);
		  var icon = new GIcon(baseIcon);
		  icon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
		  var marker = new GMarker(point, icon);

		  return marker;
		}

		// Add 10 markers to the map at random locations
		var bounds = map.getBounds();
		var southWest = bounds.getSouthWest();
		var northEast = bounds.getNorthEast();
		var lngSpan = northEast.lng() - southWest.lng();
		var latSpan = northEast.lat() - southWest.lat();

   	    var point = new GLatLng(54.499007,18.437226);
	    map.addOverlay(createMarker(point, 0));
	

		map.setCenter(new GLatLng(54.500190, 18.445950), 14);  
      }
      
    }
    	    //]]>
