var Map = Class.create();
Object.extend(Map.prototype, {
  initialize: function(id) {
    this.map_el = $(id);
    this.gmap = new GMap2(this.map_el);
    this.gmap.addControl(new GSmallZoomControl());
  },
  
  addKmlOverlay: function(url) {
    var xml = new GGeoXml(url);
    this.gmap.addOverlay(xml);
  },
  
  bounds: null,
  center: null,
  recenter: function() {
    var zoomLevel = this.gmap.getBoundsZoomLevel(this.bounds);
    this.gmap.setCenter(this.center, zoomLevel+1);
  }
});