	var site = 'htt'+'p://';
	var count = new Array();

	function kinderkanal(name) {
		comments = document.getElementById('comments'+name);
		link = document.getElementById('link'+name);
		if(comments.style.display == 'none') {
			comments.style.display = '';
			link.innerHTML = 'Kommentare ('+count[name]+') &lt;&lt;';
		} else {
			comments.style.display = 'none';
			link.innerHTML = 'Kommentare ('+count[name]+') &gt;&gt;';
		}
	}

	function go(url) {
		loc = site+url;
		window.open(loc);
		return false;
	}

	function replacedinks(string) {
		returnstring = '';
		for(i = 0; i < string.length; i++) {
			switch(string.substr(i, 1)) {
				case 'ä':
					returnstring += '%e4';
				break;
				case 'Ä':
					returnstring += '%c4';
				break;
				case 'ü':
					returnstring += '%fc';
				break;
				case 'Ü':
					returnstring += '%dc';
				break;
				case 'ö':
					returnstring += '%f6';
				break;
				case 'Ö':
					returnstring += '%d6';
				break;
				case 'ß':
					returnstring += '%df';
				break;
				default:
					returnstring += string.substr(i, 1);
				break;
			}
		}
		return returnstring;
	}

	function suchmich(begriff) {
		if(begriff.length > 0) {
			suchePopup = window.open('suche_'+replacedinks(begriff)+'.html' ,'popup_suche','height=600,width=480,menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes');
			suchePopup.focus();
		} else {
			alert('gib mal da auch irgendwie was ein!');
		}
	}

	function popup(url) {
			myPopup = window.open(url ,'my_popup','height=400,width=400,menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes');
			myPopup.focus();
	}

	function chat() {
			myPopup = window.open('/cgi-bin/chat/irc.cgi' ,'my_popup','height=600,width=800,menubar=no,toolbar=no,location=no,resizable=yes,scrollbars=yes');
			myPopup.focus();
	}

	function impressum() {
		var pop = window.open('http://mku.de/impressum/', '', 'width=280,height=320,resizable');
		return (pop) ? false : true;
	}
