function TextualZoomControl() {}// To "subclass" the GControl, we set the prototype object to// an instance of the GControl objectTextualZoomControl.prototype = new GControl();// Creates a one DIV for each of the buttons and places them in a container// DIV which is returned as our control element. We add the control to// to the map container and return the element for the map class to// position properly.TextualZoomControl.prototype.initialize = function(map) {  var container = document.createElement("div");  container.className='gm_container';  var zoomInDiv = document.createElement("div");  zoomInDiv.className='gm_zoomin';  container.appendChild(zoomInDiv);  GEvent.addDomListener(zoomInDiv, "click", function() {    map.zoomIn();  });  var zoomOutDiv = document.createElement("div");  zoomOutDiv.className='gm_zoomout';  container.appendChild(zoomOutDiv);  GEvent.addDomListener(zoomOutDiv, "click", function() {    map.zoomOut();  });    var form=document.createElement("form");    var searchField = document.createElement("input");  searchField.type='text';  var defValue='skąd będziesz jechać: ulica, miasto';  searchField.value=defValue;  searchField.className='gm_search';  searchField.onfocus=function () {  	if(searchField.value==defValue)  		searchField.value='';  }  searchField.onblur=function () {  	if(searchField.value=='')  		searchField.value=defValue;  }  form.appendChild(searchField);	var directions = new GDirections(map);	GEvent.addListener(directions, 'error', function() {		if (directions.getStatus().code == G_GEO_UNKNOWN_ADDRESS)			alert("Nie można znaleźć podanego adresu. Adres może być nieprawidłowy lub nie znajduje się w bazie danych. Proszę sprawdzić czy podany adres jest prawidłowy lub napisać mniej dokładny adres (np. nie podawać nazwy ulicy).");		else if (directions.getStatus().code == G_GEO_SERVER_ERROR)			alert("Błąd serwera. Przepraszamy, prosimy spróbować ponownie później.");		else if (directions.getStatus().code == G_GEO_MISSING_QUERY)			alert("Nie podano adresu. Proszę wpisać adres.");		else if (directions.getStatus().code == G_GEO_UNAVAILABLE_ADDRESS)			alert("Nie można pobrać informacji o podanym adresie ze względów prawnych. Proszę sprawdzić czy podany adres jest prawidłowy lub napisać mniej dokładny adres (np. nie podawać nazwy ulicy).");		else if (directions.getStatus().code == G_GEO_BAD_KEY)			alert("Błąd serwera (nieprawidłowy klucz). Przepraszamy, prosimy spróbować ponownie później.");		else if (directions.getStatus().code == G_GEO_BAD_REQUEST)			alert("Błąd serwera (nie można przetworzyć informacji). Przepraszamy, prosimy spróbować ponownie później.");		else			alert("Wystąpił nieznany błąd. Przepraszamy, prosimy spróbować ponownie później.");	});    GEvent.addListener(directions, 'load', function() {    	//wyświetlamy czas jazdy i odległość		var infobox=document.createElement('div');		infobox.className='gm_info';				var time=directions.getDuration().seconds;		var time_h=Math.floor(time/60/60);		var time_min=Math.round((time-time_h*60*60)/60);		var time_min_format=time_min;		if(time_min<10)			time_min_format='0'+time_min;		var distance=Math.round(directions.getDistance().meters/1000);				infobox.appendChild(document.createTextNode('Odległość: '+distance+' km'));		infobox.appendChild(document.createElement('br'));		infobox.appendChild(document.createTextNode('Czas jazdy: '+time_h+':'+time_min_format));		map.getContainer().appendChild(infobox);    });  var searchButton = document.createElement("input");  searchButton.type='submit';  searchButton.value='';  searchButton.className='gm_button';  form.appendChild(searchButton);  form.onsubmit=function() {	directions.load('from: ' + searchField.value + ', Poland to: Koniec@'+ point.lat() + ',' + point.lng());	    return false;  };  map.getContainer().appendChild(container);  map.getContainer().appendChild(form);  return container;}// By default, the control will appear in the top left corner of the// map with 7 pixels of padding.TextualZoomControl.prototype.getDefaultPosition = function() {  return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(0, 0));}