var DefaultOverlay = function(marker, html) {
  this.marker = marker;
  this.html = html;
}

DefaultOverlay.prototype = new GOverlay();

DefaultOverlay.prototype.initialize = function(map) {
  var div = document.createElement('div');
  div.className = 'default_window';
  div.innerHTML = this.html;

  offsetX = 0;
  offsetY = 0;

  div.style.left = (map.fromLatLngToDivPixel(this.marker.getPoint()).x - offsetX) + 'px';
  div.style.top = (map.fromLatLngToDivPixel(this.marker.getPoint()).y - offsetY) + 'px';

  div.onclick = paneClose;

  this._map = map;
  this._div = div;

  map.getPane(G_MAP_FLOAT_PANE).appendChild(div);
}

DefaultOverlay.prototype.remove = function() {
  this._div.parentNode.removeChild(this._div);
}

DefaultOverlay.prototype.redraw = function() {
  this._div.style.left = (this._map.fromLatLngToDivPixel(this.marker.getPoint()).x - offsetX) + 'px';
  this._div.style.top = (this._map.fromLatLngToDivPixel(this.marker.getPoint()).y - offsetY) + 'px';
}