	 //<![CDATA[
 		function getStreetName()
 		{
 			var sel = $('PRP_STR_ID').selectedIndex;
 			if(!sel)
 			  return "";

			return $('PRP_STR_ID').options[sel].text;
 		}

 		function getStreetNumber()
 		{
 			return parseInt($('PRP_STREET_NO').value);
 		}

 		function updateMap()
 		{
 			if(getStreetName() != "")
 				googleMapsApiObj.findAddress(getStreetName() + " " + getStreetNumber());
 		}

		Event.observe(window, 'load', function(){
			var map = new GMap2($("lmap"));
			map.addControl(new GSmallMapControl());
			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.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 point = new GLatLng();

			new Ajax.Request('getAllPrp.php',
			{
				method: 'post',
			 	parameters: {},
				onSuccess: function(transport)
				{
					var ret = transport.responseText.evalJSON();
					ret.each(function(s){
				    	point = new GLatLng(s['PRP_GOOGLE_X'],s['PRP_GOOGLE_Y']);
				    	var marker = new GMarker(point, icon);
		    			map.addOverlay(marker);
		    			if ((s['PRP_TITLE'] && s['PRP_TITLE'].length) || s['PRP_TITLE_PL'] && s['PRP_TITLE_PL'].length) {
		    				var HtmlTxt = s['text'];

					        GEvent.addListener(marker, "mouseover", function() {
					            	marker.openInfoWindowHtml(HtmlTxt);
	        			  	});
					        GEvent.addListener(marker, "click", function() {
				            	marker.openInfoWindowHtml(HtmlTxt);
	        			  	});
						}

	    			})

				}.bind(map)
			});

		});
		//]]>

