var SellerMap = Class.extend({

  init: function(address, longitude, latitude) {
    this.address = address;
  },

  render: function() {

    if (GBrowserIsCompatible()) {

      $("#map-canvas-directions").hide();
      $("#route").hide();
      var map = new GMap2(document.getElementById("map-canvas"));
      var point = new GLatLng(longitude, latitude);
      this.marker = new GMarker(point);

      map.setCenter(point, 13);
      map.addControl(new GSmallMapControl());
      map.addOverlay(this.marker);
    }
  },

  showAddressBubble: function() {
    this.marker.openInfoWindowHtml(address);
  }

});

