var PrinzMap = Class.create();

PrinzMap.prototype = {
	initialize: function(elementId) {
		if (elementId) this.gmap = new GMap2(elementId);
		this.baseIcon = new GIcon();
		this.baseIcon.image = '/img/map/mm_20_red.png';
		this.baseIcon.shadow = '/img/map/mm_20_shadow.png';
		this.baseIcon.iconSize = new GSize(12, 20);
		this.baseIcon.shadowSize = new GSize(22, 20);
		this.baseIcon.iconAnchor = new GPoint(6, 20);
		this.baseIconinfoWindowAnchor = new GPoint(5, 1);
	},

	createMarker: function (lat, lon) {
		var point	= new GLatLng(lat, lon);
		var icon	= new GIcon(this.baseIcon);
		var marker	= new GMarker(point, icon);
		this.gmap.addOverlay(marker);
	}
};
