var ZoomTool;ZoomTool=DrawableBounds.extend({initialize:function(A){this.parent({showDelete:false,updateOnAttach:false});this.setOptions(A);this.selectionHandler=function(D,C,I,H){var G=this.gmap;var F=new GLatLngBounds(new GLatLng(D,C),new GLatLng(I,H));var E=G.getBoundsZoomLevel(F);var B=F.getCenter();this.detach();G.setCenter(B,E)}.bind(this)},handleAttach:function(){this.parent();if(typeof console!=="undefined"){console.log("calling zoomtool handle attach")}this.addEvent("onSelectionChange",this.selectionHandler)},handleDetach:function(){this.parent();this.removeEvent("onSelectionChange",this.selectionHandler)}})