function ZoomHistoryControl(map) {
	this.map = map;
	this.arHistory = new Array();
}

ZoomHistoryControl.prototype = new GControl();

ZoomHistoryControl.prototype.zoomBack = function() {
	var h = this.arHistory.pop();
	h = this.arHistory.pop();
	if (h) {
		this.map.closeInfoWindow();
		this.map.setCenter(h[0], h[1]);
	}
}

ZoomHistoryControl.prototype.addHistory = function() {
	var h = new Array();
	h[0] = this.map.getCenter();
	h[1] = this.map.getZoom();
	this.arHistory.push(h);
}

