// JavaScript Document

jQuery(document).ready(function(){

	// Klick auf "Audio"
	/*jQuery("#navMedia a").click(function () {
				
		openPopup(this.href,340,220);
		
		return false;
	
	});*/
	
	
	$("#NLname").focus(function () {
		if(this.value == NLnameDescr) this.value = '';		
	});
	
	$("#NLemail").focus(function () {
		if(this.value == NLemailDescr) this.value = '';		
	});
	
	$("#NLname").blur(function () {
		if(this.value == '') this.value = NLnameDescr;		
	});
	
	$("#NLemail").blur(function () {
		if(this.value == '') this.value = NLemailDescr;		
	});

	
	
	// 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();
}