function TextualZoomControl() {
    }
    TextualZoomControl.prototype = new GControl();

    TextualZoomControl.prototype.initialize = function(map) {
      
	  var container = document.createElement("div");
      var zoomInDiv = document.createElement("div");
	  var back = 'Back';
	  
	  container.id="text_zoom";
	  container.style.visibility = "hidden";
	  container.style.zIndex = "60000";
 		
	  if(language!='en'){	  
	  	back = 'Wstecz';  
	  }	
		     
      this.setButtonStyle_(zoomInDiv);            
      zoomInDiv.innerHTML = '<div>'+back+'</div>' ;		
      container.appendChild(zoomInDiv);
		
	
		
      GEvent.addDomListener(zoomInDiv, "click", function() {
		
	  try{
		document.getElementById('shortOffert').innerHTML = '';
		}catch(err){}

		if(navigatorId=='true' || latLngArchive.length>1 || copylatLngArchive.length>0){	  		
	  		globalZoomType='construct'; 
	  		navigatorId = 'false';
	  		buttonBack = 1;
	  		showListingAjax(0);
	  	}else if(panstwoSet == undefined || panstwoSet == ''){
        	kontSet='';
			globalZoomType='';
			latLngArchive= new Array();
			showListingAjax(0);
      	}else if(globalZoomType == 'object' || globalZoomType == 'showOneOfferts'){			
			miastoSet='';
			latLngArchive= new Array();
			globalZoomType='country';
			showListingAjax(0);			  
      	}else{			
			panstwoSet = '';
			latLngArchive= new Array();
			globalZoomType='continent';       				
			showListingAjax(0);						       
        }
      });

      map.getContainer().appendChild(container);
      return container;
    }

	TextualZoomControl.prototype.setButtonStyle_ = function(button) {
      button.style.textDecoration = "none";
      button.style.color = "#000000";
      button.style.backgroundColor = "white";
      button.style.fontFamily = "Trebuchet MS";
      button.style.fontSize = "11px";
      button.style.border = "1px solid black";
      button.style.padding = "1px";
      button.style.marginBottom = "1px";
      button.style.marginTop = "1px";
      button.style.textAlign = "center";
      button.style.width = "6em";
      button.style.cursor = "pointer";
    }

    TextualZoomControl.prototype.getDefaultPosition = function() {
      return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(40, 2));
    }