function loadKrakowMap(mapType)
{
		var html = $.ajax({
			
		url: 'getKrakowMap.php?type='+mapType,
		type: "POST",
		async: true,
		//dataType: 'json',
		success: function(data) 
			{
			var ret = $.parseJSON(data);	
			var map = new GMap2(document.getElementById("lmap"));
        map.addControl(new GLargeMapControl3D());
		map.addControl(new GMapTypeControl());
			map.setCenter(new GLatLng(50.0588, 19.9366), 14);
				
				$(ret).each(function(s){
					
						point = new GLatLng(ret[s]['GOOGLE_X'],ret[s]['GOOGLE_Y']);
						
						icon = new GIcon();
						icon.image				= "/img/map/pointb.png"
						icon.shadow 			= "/img/map/pointshadow.png";
			
						icon.iconSize 			= new GSize(18, 18);
						icon.iconAnchor 		= new GPoint(9, 16);
			//       		icon.iconAnchor 		= new GPoint(0, 0);
						icon.infoWindowAnchor 	= new GPoint(9, 2);
						icon.shadowSize 		= new GSize(34, 19);
						icon.infoShadowAnchor 	= new GPoint(18, 25);
				    	var marker = new GMarker(point, icon);

		    			map.addOverlay(marker);
						
						if (mapType == 'f')
						{
							if ((ret[s]['TITLE'] && ret[s]['TITLE'].length) || ret[s]['TITLE_PL'] && ret[s]['TITLE_PL'].length) {
								var HtmlTxt = ret[s]['text'];
								
								GEvent.addListener(marker, "mouseover", function() {
										marker.openInfoWindowHtml(HtmlTxt);
								});
								GEvent.addListener(marker, "click", function() {
									marker.openInfoWindowHtml(HtmlTxt);
								});
							}
						}
						
				});
				
			}
			}).responseText;
		
}
