function GZoomInfo(myMap) {
	this.myMap = myMap;
	this.initVars();
	
	GEvent.bind(this.myMap.map, "zoomend", this, this.zoomChanged);
}

GZoomInfo.prototype = new GControl();

GZoomInfo.prototype.initVars = function() {}

GZoomInfo.prototype.initialize = function(map) {
	this.button = document.createElement("div");
	this.setButtonStyle_(this.button);
	map.getContainer().appendChild(this.button);
	
	this.button.innerHTML = this.myMap.map.getZoom();
	
	return this.button;
}

GZoomInfo.prototype.setButtonStyle_ = function(button) {
	button.style.width = "20px";
	button.style.height = "20px";
	button.style.padding = "2px";
}

GZoomInfo.prototype.getDefaultPosition = function(button) {
	return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(5, 50));
}

/*************
	Actions
**************/
GZoomInfo.prototype.zoomChanged = function(oldLevel, newLevel) {
	this.button.innerHTML = this.myMap.map.getZoom();
}
