var GoogleMapIcon = new function(){

	this.imageUrl = "/image/?u=[image]&w=[width]&p=true";
	
	this.getImageIcon = function(image, width){
		var icon = new GIcon(G_DEFAULT_ICON);
		
		var url = this.imageUrl.replace("[image]", image).replace("[width]", width);
		icon.iconSize = new GSize(30, 22);
		icon.shadowSize = new GSize(42, 22);
		icon.shadow = "/themes/images/gmaps.icon.shadow.png";
		icon.iconAnchor = new GPoint(15.0, 22.0);
		icon.imageMap = [0,0, 29,0, 29,21, 0,21];
		icon.image = url;
		
		return icon;
	}
	
	this.getIcon = function(type){
		var icon = new GIcon(G_DEFAULT_ICON);
		
		if(type == "trip")
			var url = "/themes/images/gmaps.icon.hiking.png";
		else if(type == "skiing")
			var url = "/themes/images/gmaps.icon.skiing.png";
		else if(type == "cycling")
			var url = "/themes/images/gmaps.icon.cycling.png";
		else if(type == "article")
			var url = "/themes/images/gmaps.icon.article.png";
		else if(type == "culture")
			var url = "/themes/images/gmaps.icon.sight.png";
		else if(type == "water")
			var url = "/themes/images/gmaps.icon.water.png";
		else if(type == "nature")
			var url = "/themes/images/gmaps.icon.nature.png";
		else if(type == "hunting")
			var url = "/themes/images/gmaps.icon.hunting.png";
		else if(type == "travel")
			var url = "/themes/images/gmaps.icon.travel.png";
		
		icon.iconSize = new GSize(25, 29);
		icon.shadowSize = new GSize(0, 0);
		icon.iconAnchor = new GPoint(12.0, 29);
		icon.imageMap = [0,0, 25,0, 25,29, 0,29];
		icon.image = url;
		icon.shadow = "/themes/images/gmaps.icon.shadow.png";
		
		return icon;
	}
	
	this.getLoaderIcon = function(){
		var icon = new GIcon(G_DEFAULT_ICON);
		
		icon.iconSize = new GSize(24, 24);
		icon.image = '/themes/images/loadinfo.net.gif';
		
		return icon;
	}

}
