

/**
 * Define a Marker class to hold marker items from the XML input file.
 *
 * @author Momchil Kyurkchiev 
 * @date March, 2007
 */
function Marker(id, lat, lng, point, gmarker, html, label) {
  this.id = id;
  this.lat = lat;
  this.lng = lng;
  this.point = point;
  this.gmarker = gmarker;
  this.html = html;
  this.label = label;
  GEvent.bind(this.gmarker, "click", this, this.onMarkerClick);
}

// this function is invoked when a marker is clicked on the map.
Marker.prototype.onMarkerClick = function() {
  this.gmarker.openInfoWindowHtml('<div style="width: 300px"><b>' + this.label + '</b><br/>' + unescape(this.html) + '</div>');
  selectElemOnSidebar(this.id);
}

/* DANGER! Global Variables: */

// Store marker bounds to determine where the center of the map is.
bounds = new GLatLngBounds(); 
request = GXmlHttp.create();
markers = new Array();

/* End of DANGER! */