
// achtung jQuery und Prototype im Einsatz
// jQuery Aktionen einfach mit jQuery(...) anstatt $(...)
jQuery.noConflict();

jQuery(document).ready(function(){

	// Klick auf "Audio"
	jQuery("#mainNavAudio a").click(function () {
				
		openPopup(this.href,270,200);
		
		return false;
	
	});
	
	// links mit der klasse youtubePopup, aktion zuweisen
	jQuery(".youtubePopup").click(function () {
				
		openPopup(this.href,523,500);
		
		return false;
	
	});
	
});

// Funktion zum öffnen von Popups
function openPopup (href,width,height) {
	// ToDo: wenn fenster schon aktiv, nur focus geben
	var openWindow = window.open(href, "Audioplayer", "width=" + width + ",height=" + height + ",scrollbars=no");
	openWindow.focus();
}