	 //<![CDATA[

		Event.observe(window, 'load', function(){
			var map = new GMap2($("map"));
			map.addControl(new GLargeMapControl3D());
			map.addControl(new GMapTypeControl());
			map.setCenter(new GLatLng(50.0628, 19.9366), 13);

			var icon = new GIcon();
			icon.image				= "/img/map/pointb.png"
			icon.shadow 			= "/img/map/pointshadow.png";
			icon.iconSize 			= new GSize(18, 18);
    	   	icon.shadowSize 		= new GSize(34, 19);
       		icon.iconAnchor 		= new GPoint(10, 10);
	       	icon.infoWindowAnchor 	= new GPoint(19, 12);
    	   	icon.infoShadowAnchor 	= new GPoint(18, 25);


	        var point = new GLatLng();

			new Ajax.Request('getKrakowMap.php?type=p',
			{
				method: 'post',
			 	parameters: {},
				onSuccess: function(transport)
				{
					var ret = transport.responseText.evalJSON();
					ret.each(function(s){
				    	point = new GLatLng(s['GOOGLE_X'],s['GOOGLE_Y']);
				    	var marker = new GMarker(point, icon);
		    			map.addOverlay(marker);
/*
		    			if (s['TITLE'].length) {
		    				var HtmlTxt = '<p><b>'+s['TITLE']+'</b></p>';
		    				HtmlTxt = HtmlTxt + '<p>'+s['text']+'</p>';
					        GEvent.addListener(marker, "mouseover", function() {
				            	marker.openInfoWindowHtml(HtmlTxt);
	        			  	});
					        GEvent.addListener(marker, "click", function() {
				            	marker.openInfoWindowHtml(HtmlTxt);
	        			  	});
						}
*/
	    			})

				}.bind(map)
			});

		});
		//]]>


