		var saddr = "";
		var daddr ="";
		var rodzajAdresu;
		function load() { 
			if (GBrowserIsCompatible()) { 
					loaded_div1 = document.getElementById("mapaZielonaGora");
					if (loaded_div1 != null)
					{ // Zielona Góra 51.93773,15.501212
						xPoint1 = 51.93773;
						yPoint1 = 15.501212;
						center1 = "Zielona Góra, Lubuskie";	
						info1='<div id="google_info" >'+
								'<strong>WOZIŃSKI KULISZ - KANCELARIA RADCÓW PRAWNYCH</strong><br />ul. Stanisława Moniuszki 3a, 65-409 Zielona Góra<br />tel.: +48 68 320 24 59<br />fax: +48 68 324 03 20 <br />e-mail: sekretariat@w-k.com.pl '+
								'<div id="nav"><div id=\'road\'> Pokaż trase: <a id="sendto" onclick="dataTo(\'to\')">Do tego miejsca</a> - <a id=\'sendfrom\' onclick="dataTo(\'from\')">Z tego miejsca</a></div><br /><a  id=\'look\' onclick="dataTo(\'look\')">Szukaj w pobliżu</a><div id="form_send">'+
								'<p id="stan"> </p><input type="text" id="data_text"/><input type="button" value="Wyślij" onclick=\'submit_form("Zielona Góra, Lubuskie")\'/><br /><a  onclick=\'Wstecz()\'> << Wstecz</a></div></div></div>'; 
						 var map1 = new GMap2(loaded_div1); 
						 var point1 = new GLatLng(xPoint1, yPoint1);;
						 map1.setCenter(point1, 13); //przybli&#380;enie  i wycentrowanie mapy
						 map1.addControl(new GLargeMapControl());
						 map1.enableContinuousZoom();
						 map1.enableDoubleClickZoom();  
						 var marker1 = new GMarker(point1); // pozycja markera
						 GEvent.addListener(marker1, "click", function() { 
						  marker1.openInfoWindowHtml(info1); 
						 }); 
						 map1.addOverlay(marker1); 
						 marker1.openInfoWindowHtml(info1); 
					}
					else return;
					loaded_div2 = document.getElementById("mapaWarszawa");
					if (loaded_div2 == null) return; else 
					{	//Warszawa 52.243069,20.960923
						xPoint2 = 52.243069;
  						yPoint2 = 20.960923;
						center2 = "Warszawa";	
						info2='<div id="google_infoWarszawa" >'+
								'<strong>WOZIŃSKI KULISZ - KANCELARIA RADCÓW PRAWNYCH</strong><br />ul. Syreny 44, 01-168 Warszawa <br />tel.: 606 364 160<br />e-mail: kancelaria.warszawa@w-k.com.pl '+
								'<div id="nav2"><div id=\'road2\'> Pokaż trase: <a id="sendto2" onclick="dataTo2(\'to\')">Do tego miejsca</a> - <a id=\'sendfrom2\' onclick="dataTo2(\'from\')">Z tego miejsca</a></div><br /><a  id=\'look2\' onclick="dataTo2(\'look\')">Szukaj w pobliżu</a><div id="form_send2">'+
								'<p id="stan2"> </p><input type="text" id="data_text2"/><input type="button" value="Wyślij" onclick=\'submit_form("Warszawa")\'/><br /><a  onclick=\'Wstecz()\'> << Wstecz</a></div></div></div>'; 
						var map2 = new GMap2(loaded_div2); 
						 var point2 = new GLatLng(xPoint2, yPoint2);;
						 map2.setCenter(point2, 13); //przybli&#380;enie  i wycentrowanie mapy
						 map2.addControl(new GLargeMapControl());
						 map2.enableContinuousZoom();
						 map2.enableDoubleClickZoom();  
						 var marker2 = new GMarker(point2); // pozycja markera
						 GEvent.addListener(marker2, "click", function() { 
						  marker2.openInfoWindowHtml(info2); 
						 }); 
						 map2.addOverlay(marker2); 
						 marker2.openInfoWindowHtml(info2); 
					}
			         
			} 
		}
		
		function dataTo(str)
		{
			document.getElementById("data_text").value = "";
			switch (str)
			{
				case 'to':
					document.getElementById("look").style.display='none';
					elem = document.getElementById("form_send");
					elem.style.display="block";
					sp = document.getElementById("stan");
					sp.innerHTML = "Adres początkowy";			
					break;
				case 'from':elem = document.getElementById("form_send");
					document.getElementById("look").style.display='none';
					elem.style.display="inline";
					sp = document.getElementById("stan");
					sp.innerHTML = "Adres końcowy";
					break;
				case 'look':elem = document.getElementById("form_send");
					document.getElementById("road").style.display='none';
					elem.style.display="inline";
					sp = document.getElementById("stan");
					sp.innerHTML = "W pobliżu";
					break;
			}
			rodzajAdresu= str;
		}
		
		function dataTo2(str)
		{
			document.getElementById("data_text2").value = "";
			switch (str)
			{
				case 'to':
					document.getElementById("look2").style.display='none';
					elem = document.getElementById("form_send2");
					elem.style.display="block";
					sp = document.getElementById("stan2");
					sp.innerHTML = "Adres początkowy";			
					break;
				case 'from':elem = document.getElementById("form_send2");
					document.getElementById("look2").style.display='none';
					elem.style.display="inline";
					sp = document.getElementById("stan2");
					sp.innerHTML = "Adres końcowy";
					break;
				case 'look':elem = document.getElementById("form_send2");
					document.getElementById("road2").style.display='none';
					elem.style.display="inline";
					sp = document.getElementById("stan2");
					sp.innerHTML = "W pobliżu";
					break;
			}
			rodzajAdresu= str;
		}
		
		function submit_form(center)
		{
			elem = document.getElementById("data_text");
			if (elem.length == 0)
				elem = document.getElementById("data_text2");
			googleQuestion = 'http://maps.google.com/?';
			switch(rodzajAdresu){
			case 'to':
					saddr = center;
					daddr = elem.value;
					googleQuestion += 'saddr=' + saddr + '&daddr=' + daddr;
					break;
			case 'from':
					daddr = center;
					saddr = elem.value;
					googleQuestion += 'saddr=' + saddr + '&daddr=' + daddr;
					break;
			case 'look':
					googleQuestion += 'q=' + elem.value + '&near=' + center;
					break;
					}
			window.open(googleQuestion);
		}
		function Wstecz()
		{
			document.getElementById("road").style.display='inline';
			document.getElementById("look").style.display='inline';
			document.getElementById("form_send").style.display='none';
			document.getElementById("road2").style.display='inline';
			document.getElementById("look2").style.display='inline';
			document.getElementById("form_send2").style.display='none';
		}
