/*
 * Created on October 15, 2009
 *
 * Default Google Map marker.
 * 
 * @copyright 2009 Capraro Technologies, Inc.
 * @author Dan Klockowski
 *
 */
function CollegeMarker(attributes) {
	this.latitude = attributes.getNamedItem("jsxlocationlatitude").value;
	this.longitude = attributes.getNamedItem("jsxlocationlongitude").value;
	
	this.title = attributes.getNamedItem("jsxcollegename").value;
	var lDesc = attributes.getNamedItem("jsxlocationname").value;

	if(lDesc){
		this.title += " - "+lDesc;
	} 
}	

/*
 * Initializes the overlay
 *
 * @param point    latitude/longitude of overlay
 * @param ct_info  see above
 *
 */
CollegeMarker.prototype.addMarker = function() {
	var myLatlng = new google.maps.LatLng(this.latitude, this.longitude);
	
    this.marker = new google.maps.Marker({
        position: myLatlng, 
        map: map,
        title: this.title,
        icon: "/map/images/marker_blue.png"
    });
}
