/**
 * Manager for producing and getting icons for map display.
 */
function IconManager()
{
	this.customIcons = [];
	this.shadowIcons = []
	
	this.addIcon('Airport','/images/icons/airport.png',null);
	this.addIcon('Hotel','/images/icons/hotel.png',null);
	this.addIcon('Restaurant','/images/icons/restaurant.png',null);
}

IconManager.prototype.addIcon = function(name, imgurl, shadowurl)
{
	//ikon.infoWindowAnchor = new GPoint(5, 1);
	
	var ikon = new google.maps.MarkerImage(
			imgurl,
		    new google.maps.Size(20, 25),
		    new google.maps.Point(0,0),
		    new google.maps.Point(6,20));
	
	var ikonShw = new google.maps.MarkerImage(
			imgurl,
		    new google.maps.Size(22, 20),
		    new google.maps.Point(0,0),
		    new google.maps.Point(6,20));
	
	this.customIcons[name] = ikon;
	this.shadowIcons[name] = ikonShw;
};

IconManager.prototype.getIcon = function(name)
{
	return this.customIcons[name];
};

IconManager.prototype.getShadow = function(name)
{
	return this.shadowIcons[name];
};
