function crimeMarkerBin(binId) {this.binId = binId;//this.size = 0;//this.myInfoWindow = new sdbInfoWindow();this.marker = null;this.recordIds = new Array();/*this.div = document.createElement("div");this.div.setAttribute("id", "infoWindow");var para = document.createElement("p");para.innerHTML = "Store(s) represented by this marker: " + this.recordIds.length;this.div.appendChild(para);*/// Sets the marker object for this crimeMarkerBincrimeMarkerBin.prototype.setMarker = function(newMarker, lat) {		this.marker = newMarker;//var numRecords = this.recordIds.length;//var lat = newMarker.getPoint().lat();//var lon = newMarker.getPoint().lng();GEvent.addListener(this.marker, 'click', function() {try {// Gets the point object associated with the marker//var point = newMarker.getPoint();//var lat = point.lat().toString();//var lon = point.lng().toString();// Get the bin number from the point data//var binId = latLonToAtom(lat, lon);//alert("binId: " + binId);//logger.writeLog("Marker in bin " + binId + " clicked");// Grab the actual bin object, indexed by atomvar myMarkerBin = markerBinArray[lat];// Get the array of recordIds stored in that binvar recordIds = myMarkerBin.recordIds;//logger.writeLog("recordId array returned has length: " + recordIds.length);var div = mySDBInfoWindow.createInfoWindowDiv(lat, recordIds);newMarker.openInfoWindow(div);}catch (e) {alert("Error from markerBin addListener method: " + e + "\n" + binId + ", " + lat + ", " + lon);}});}// Gets the marker object for this crimeMarkerBincrimeMarkerBin.prototype.getMarker = function() {return this.marker;}crimeMarkerBin.prototype.getRecordIds = function() {return this.recordIds;}crimeMarkerBin.prototype.addRecord = function(info) {//logger.writeLog("Adding the following to index " + this.recordIds.length + " of bin " + binId + ": " + info);//alert("Adding the following to index " + this.recordIds.length + " of bin " + binId + ": " + info);this.recordIds[this.recordIds.length] = info;}crimeMarkerBin.prototype.getNumRecords = function() {return this.recordIds.length;}}