$(document).ready(function(){
	// Externe Links
	$(function(){
		$('a[href][rel*=external]').each(function(i){
			$(this).attr("target","_blank");
			$(this).attr("class","extern");
		});
	});

	// Musiksteuerung
	$(".musikSchliessen").click(function(){
		window.close();
	});
	$("#musiksteuerung p a.popup").toggle(function() {
		$(this).addClass("musikPopupSchliessen");
		newWin = window.open($(this).attr("href"), $(this).attr("rel"), "width=276,height=25,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no");
		newWin.focus();
	},function() {
		$(this).removeClass("musikPopupSchliessen");
		newWin.window.close();
	});
	
	/*// Inhaltswechsel fuer Bildergalerie, Presse und Kursprogramm
	$.each($("a.ansichtsLink"), function(){
		var href = $(this).attr("href");
		$(this).attr("rel",href);
		$(this).attr("href","#rahmen");
	});
	
	$("div.ansicht").hide();
	$("a.ansichtsLink").click(function(){
		$("div.uebersicht").hide();
		var href = $(this).attr("rel");
		$("div"+href).show();
	});
	$("a.uebersichtsLink").click(function(){
		$("div.ansicht").hide();
		$("div.uebersicht").show();
	});
	
	// Leerraum auffuellen
	$("body#presse .letztesInhaltsElement").after("");
	$("body#linksnetzwerk .letztesInhaltsElement").after("<p><br /><br /></p>");*/
});