function Kartenliste(){
	
	
	/* Attribute */
	this.container = document.getElementById('Kartenliste');
	this.marinas = document.getElementById('marinas');
	this.firmen = document.getElementById('firmen');
	this.pois = document.getElementById('pois');
	this.permas = document.getElementById('permas');
	this.hidden = true;
	
	
	/* Methoden */
	this.show = show;
	this.hide = hide;
	this.showHide = showHide;
	this.addFirma = addFirma;
	this.addMarina = addMarina;
	this.addPOI = addPOI;
	this.addPerma = addPerma;
	this.clearList = clearList;
	
	/* Initialisierung */
	this.container.style.backgroundColor = "white";
	this.container.style.border = "1px solid #000000";
	this.container.style.position = "absolute";
	this.container.style.width = "280px";
	this.container.style.height = "250px";
	this.container.style.top = "210px";
	this.container.style.left = "438px";
	this.container.style.overflow = "auto";
	this.container.padding = "5px";
	
	
	
	
	function show(){
		setTimeout("Effect.Appear('Kartenliste', {from: 0.0, to: 0.9, duration: 0.5 })", 250, 'JavaScript');
		this.hidden = false;
	}
	
	
	function hide(){
		Effect.DropOut('Kartenliste');
		this.hidden = true;
	}
	
	
	function showHide(){
		if(this.hidden)
			this.show();
		else
			this.hide();
	}
	
	
	function addFirma(name, glatlng){
		
		var t = this.firmen.insertRow(this.firmen.rows.length);
		var c = t.insertCell(0);
		c.innerHTML = '<a href="javascript:map.setCenter(new GLatLng('+glatlng.lat()+','+glatlng.lng()+'), 15);Kartenliste.hide();" alt="firmenlink">'+name+'</a>';
		this.firmen.style.display="block";
	}
	
	function addMarina(name, glatlng){
		
		var t = this.marinas.insertRow(this.marinas.rows.length);
		var d = t.insertCell(this.marinas.length);
		d.innerHTML = '<a href="javascript:map.setCenter(new GLatLng('+glatlng.lat()+','+glatlng.lng()+'), 15);Kartenliste.hide();" alt="marinalink">'+name+'</a>';
		this.marinas.style.display="block";
	}
	
	function addPOI(name, glatlng){
		var t = this.pois.insertRow(this.pois.rows.length);
		var e = t.insertCell(0);
		e.innerHTML = '<a href="javascript:map.setCenter(new GLatLng('+glatlng.lat()+','+glatlng.lng()+'), 15);Kartenliste.hide();" alt="poilink">'+name+'</a>';
		this.pois.style.display="block";
	}
	
	function addPerma(name, glatlng){
		var t = this.permas.insertRow(this.permas.rows.length);
		var f = t.insertCell(this.permas.length);
		f.innerHTML = '<a href="javascript:map.setCenter(new GLatLng('+glatlng.lat()+','+glatlng.lng()+'), 15);Kartenliste.hide();" alt="permalink">'+name+'</a>';
		this.permas.style.display="block";
	}
	
	
	function clearList(){
		try{
			this.marinas.innerHTML = '<tr><td style="font-weight:bold;background-color:#009900;color:#FFFFFF;">H&auml;fen, Marinas und Anleger</td></tr>';
			this.marinas.style.display="none";
			this.firmen.innerHTML = '<tr><td style="font-weight:bold;background-color:#91C3DC;color:#FFFFFF;">Firmeneintr&auml;ge</td></tr>';
			this.firmen.style.display="none";
			this.pois.innerHTML = '<tr><td style="font-weight:bold;background-color:#A9DDC4;color:#FFFFFF;">Revierinformationen</td></tr>';
			this.pois.style.display="none";
			this.permas.innerHTML = '<tr><td style="font-weight:bold;background-color:#CCCCCC;color:#FFFFFF;">Sonstiges</td></tr>';
			this.permas.style.display="none";
		}catch(e){;};
	}
	
}
