			function mapaStart2(lat, lng, match)   
			{   
				if(GBrowserIsCompatible())  // sprawdzamy, czy przeglądarka jest kompatybilna   
				{   
					//jeżeli serwer google nie działa
					if(window.window.google.maps) {
						// tworzymy nowy obiekt mapy, i umieszczamy go w elemencie blokowym o ID "mapka"   
						var mapa = new GMap2(document.getElementById("mapka"));   
						
						// deklaracja ikony  
						var ikona1 = new GIcon();  
						if(match == 1) ikona1.image = "images/geo_match.png"; 
						else ikona1.image = "images/geo_partial_match.png"; 
						ikona1.iconSize = new GSize(30, 30);  
						ikona1.infoWindowAnchor = new GPoint(16,16);  
						ikona1.iconAnchor = new GPoint(16,16);  
						ikona1.shadowSize = new GSize(59, 32);  
						
						// centrujemy mapę
						mapa.setMapType(G_NORMAL_MAP);  //G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP oraz G_PHYSICAL_MAP.
						mapa.setCenter(new GLatLng(lat, lng ),11);   
						
						// stworzenie markera  
						var punkt  = new GLatLng(lat, lng );  
						//var marker = new GMarker(punkt,{title: 'Pierwszy marker'});  //bez ikony nowej
						if(match == 1) var marker = new GMarker(punkt,{title: 'Lokalizacja dokładna', icon: ikona1});  //z nową ikoną
						else var marker = new GMarker(punkt,{title: 'Lokalizacja przybliżona', icon: ikona1});  //z nową ikoną
						   
						// dodanie markera na mapę  
						mapa.addOverlay(marker);  		
		  
						mapa.addControl(new GSmallMapControl()); 	//GLargeMapControl, GSmallMapControl oraz GSmallZoomControl
						mapa.addControl(new GMapTypeControl());  	//dodaje kontrole rodzaju mapy satelita, mapa, hybrydowa
						//mapa.enableScrollWheelZoom();  				//przybliżanie scrollem myszy
					}
					else {
						document.getElementById('mapa_link').style.display='none'; 
					}
				}   
			}  
			
			function mapaStart(lat, lng, match)
			{
				var latlng = new google.maps.LatLng(lat, lng);
				var myOptions = {
					zoom: 11,
					center: latlng,
					mapTypeId: google.maps.MapTypeId.ROADMAP
				};
				var gmap = new google.maps.Map(document.getElementById('mapka'), myOptions);

				var ikona = '';
				if(match == 1) ikona = "images/geo_match.png"; 
				else ikona = "images/geo_partial_match.png"; 
				
				var marker = new google.maps.Marker({
					position: latlng,
					map: gmap,
					icon: ikona,
					draggable: false
				});
			}
			
			function mapaPowieksz(lat, lng, match)   
			{   
				document.getElementById('mapa').style.position='absolute'; 
				document.getElementById('mapa').style.top='170px'; 
				document.getElementById('mapa').style.left='0px'; 
				document.getElementById('mapa').style.width='718px'; 
				document.getElementById('mapka').style.width='712px'; 
				document.getElementById('mapka').style.height='450px';
				document.getElementById('mapa_link').innerHTML='pomniejsz mapę'; 	
				document.getElementById('mapa_link').onclick=function(){mapaPomniejsz(lat, lng, match)};
				mapaStart(lat, lng, match);
			} 
			
			function mapaPomniejsz(lat, lng, match)   
			{   
				document.getElementById('mapa').style.position='relative'; 
				document.getElementById('mapa').style.top='0'; 
				document.getElementById('mapa').style.left='0'; 
				document.getElementById('mapa').style.width='306px'; 
				document.getElementById('mapka').style.width='300px'; 
				document.getElementById('mapka').style.height='286px';
				document.getElementById('mapa_link').innerHTML='powiększ mapę'; 	
				document.getElementById('mapa_link').onclick=function(){mapaPowieksz(lat, lng, match)};	
				mapaStart(lat, lng, match);
			} 
			
