function TextualZoomControl() {
}

TextualZoomControl.prototype = new GControl();

TextualZoomControl.prototype.initialize = function(map) {
  var container = document.createElement("div");

  var zoomdefDiv = document.createElement("a");
  this.setButtonStyle_(zoomdefDiv);
  var img = document.createElement("img");
  img.src = '/uploads/map/allied_topbutton.png';
  container.appendChild(zoomdefDiv);
  zoomdefDiv.appendChild(img);
  GEvent.addDomListener(zoomdefDiv, "click", function() {
  map.setCenter(new GLatLng(42,23.37879325992189), 6, G_NORMAL_MAP);
  });

  map.getContainer().appendChild(container);
  return container;
}

TextualZoomControl.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(4,12));
}

TextualZoomControl.prototype.setButtonStyle_ = function(button) {
  button.style.textDecoration = "#000";
  button.style.title = "Allied pickfords";
  button.style.color = "#FFF";
  button.style.backgroundColor = "";
  button.style.font = "11px Verdana";
  button.style.border = "";
  button.style.padding = "1px";
  button.style.marginBottom = "2px";
  button.style.textAlign = "center";
  button.style.width = "8em";
  button.style.cursor = "pointer";
}


