function CustomZoomControl() {
}
CustomZoomControl.prototype = new GControl();

CustomZoomControl.prototype.initialize = function(map) 
{
  var container = document.createElement("div");
  
   // make the zoom in button
  var imgIn = document.createElement("img");
	imgIn.src="images/plus.gif";
	container.appendChild(imgIn);
	this.setButtonStyle_(imgIn);
  GEvent.addDomListener(imgIn, "click", function() {
		map.zoomIn();
  });
  
  // make the zoom out button
	var imgOut = document.createElement("img");
	imgOut.src="images/minus.gif";
	imgOut.style.marginLeft="1px";
	container.appendChild(imgOut);
	this.setButtonStyle_(imgOut);
  GEvent.addDomListener(imgOut, "click", function() {
    map.zoomOut();
  });
  
  map.getContainer().appendChild(container);
  return container;
}

CustomZoomControl.prototype.getDefaultPosition = function() {
  return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(1, 1));
}

CustomZoomControl.prototype.setButtonStyle_ = function(button) {
  button.style.cursor = "pointer";
}
