$(document).ready(function() {

	// OnFocus ausblenden der Form-Values	
	$("#mailform input:not(.submit), #mailform textarea").focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
	
	// Opacity Teaser-Boxen
	//$(".teaser_box").fadeTo('slow', '0.7');
	//$(".deactive_teaser_box").fadeTo('slow', '1.0');
	
	// Submenu ohne Kinder ausblenden
	//$("ul#submenu:empty").remove();
	
	// FAQ toggle
	$(".tx-irfaq-pi1 .tx-irfaq-dynheader").click(function() {
		$(".tx-irfaq-pi1 .tx-irfaq-dynans").slideUp();
		$(this).next().slideToggle();
	});
	
});

function closePopup() {
	window.close();
}