//Hover Map

var HoverMap = Class.create({
	initialize: function(src, id) {
		this.src = src;
		this.areaId = id
		
		this.mapId = this.src.ancestors()[0].id
		this.mapPic = $('fe'+this.mapId).src

		this.src.observe('mouseover', this.showTip.bindAsEventListener(this));
		this.src.observe('mouseout', this.hideTip.bindAsEventListener(this));
	},
	showTip: function(evt) {
		Event.stop(evt);

		// Jetzt noch das Area einblenden
		img = $('areapic_'+ this.areaId);
		if(!img.src.endsWith('/'))
			$('fe'+this.mapId).src = img.src
	},
	hideTip: function(evt) {
		$('fe'+this.mapId).src = this.mapPic
	}
	
});
