<!--
	var amenities = [];

	function Amenity(AmenityID, Name, Description, PostCode, Latitude, Longitude, Telephone, URL, Email, ImageURL, AmenityType, IconName/*, Icon */)
	{
		this.AmenityID = AmenityID;
		this.Name = Name;
		this.PostCode = PostCode;
		this.Latitude = Latitude;
		this.Longitude = Longitude;
		this.Telephone = Telephone;
		this.URL = URL;
		this.Email = Email;
		this.ImageURL = ImageURL;
		this.AmenityType = AmenityType;
		this.IconName = IconName;
		//this.Icon = Icon;
		this.ShowingMarker = false;
		this.ShowMarker = showMarker;
		this.HideMarker = hideMarker;
		
		this.GetPopupHTML = getPopupHTML;
		
		function getPopupHTML()
		{
			return "<div ID=\"googleBubble\"><strong>" + this.Name + "</strong><br>" + Description + PostCode + "<br>" + Telephone + "</div>";
		}
		
		function showMarker(map)
		{
			if(this.ShowingMarker == false)
			{
				this.marker = createCustomMarker(new GLatLng(this.Latitude, this.Longitude), this.GetPopupHTML(), eval(this.IconName));
				map.addOverlay(this.marker);
				this.ShowingMarker = true;
			}
		}
		
		function hideMarker(map)
		{
			if(this.ShowingMarker == true)
			{
				map.removeOverlay(this.marker);
				this.ShowingMarker = false;
			}
		}
	}
	
	function showAmenities(map, AmenityType)
	{
		for(var i = 0; i < amenities.length; i++)
		{
			if(amenities[i].AmenityType == AmenityType)
				amenities[i].ShowMarker(map);
		}
	}
	
	function hideAmenities(map, AmenityType)
	{
		for(var i = 0; i < amenities.length; i++)
		{
			if(amenities[i].AmenityType == AmenityType)
				amenities[i].HideMarker(map);
		}
	}

//-->
