
<!--
	// You need to specify the size of your background image here (could be done automatically by some PHP code)
		var FullscreenrOptions = {  width: 1280, height: 852, bgID: '#bgimg' };
	// This will activate the full screen background!
		jQuery.fn.fullscreenr(FullscreenrOptions);
//-->



// Hauptnavi bei MouseOver aufblenden
$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#mainnav li a").css("opacity","0.7");
		
// ON MOUSE OVER
$("#mainnav li a").hover(function () {
										  
// SET OPACITY TO 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});





// Footer bei MouseOver ein/ausblenden = ausgeschaltet
$(function() {
// OPACITY OF BUTTON SET TO 50%
$("#footer").css("opacity","0.0");
		
// ON MOUSE OVER
$("#footer").hover(function () {
										  
// SET OPACITY TO 1000%
$(this).stop().animate({
opacity: 1.0
}, "slow");
},
		
// ON MOUSE OUT
function () {
			
// SET OPACITY BACK TO 50%
$(this).stop().animate({
opacity: 0.0
}, "slow");
});
});



// DIESE SEQUENZ LÖSCHEN !!!

		//$(function() {
		//// OPACITY OF BUTTON SET TO 50%
		//$("#fullscreen-button a").click(function() {
		//	$("#wrapper").css("opacity","0.0");
		//	});
		//		
		//// ON MOUSE OVER
		//$("#fullscreen-button a").hover(function () {
		//										  
		//// SET OPACITY TO 100%
		//$(this).stop().animate({
		//opacity: 1.0
		//}, "slow");
		//},
		//		
		//// ON MOUSE OUT
		//function () {
		//			
		//// SET OPACITY BACK TO 50%
		//$(this).stop().animate({
		//opacity: 1.0
		//}, "slow");
		//});
		//});
		
		
		
		
		//$(function() {
		//// OPACITY OF BUTTON SET TO 50%
		//$("#unfullscreen-button a").click(function() {
		//	$("#wrapper").css("opacity","1.0");
		//	$("#unfullscreen-button a").css("opacity","1.0");
		//	});
		//		
		//// ON MOUSE OVER
		//$("#unfullscreen-button a").click(function () {
		//										  
		// //SET OPACITY TO 100%
		//$(this).stop().hide().animate({
		//opacity: 0.0
		//}, "slow");
		//},
		//		
		//// ON MOUSE OUT
		//function () {
		//			
		//// SET OPACITY BACK TO 50%
		//$(this).stop().hide().animate({
		//opacity: 1.0
		//}, "slow");
		//});
		//});
// DIESE SEQUENZ BIS HIER LÖSCHEN !!!




//Hintergrundbild einblenden
//	jQuery(document).ready(function() {
//		$("#bild-bg").children().hide().fadeInSequence();
//	});



//jQuery(document).ready(function(){	
//	$('#wrapper').fadeIn(500);
//});



// Ausblenden
jQuery(document).ready(function() {
	$("#ausblenden-button a").click().toggle(function() {
		$('#wrapper').animate({
			opacity: 0.0
		}, 'fast');
	}, function() {
		$('#wrapper').animate({
			opacity: 1.0
		}, 'fast');
	});
});



//mailto-links transformieren
jQuery(function() {
	jQuery(".mailto_link").each(function() {
		var link = jQuery(this);
		var link_address = link.attr("href");
		link_address = link_address.replace(/!/g, ".");
		link_address = link_address.replace(/\^/g, "@");
		var link_text = link.text().replace(/\s\[at\]\s/, "@");
		if(link_address.substr(0,7) !== "mailto:") {
			link_address = "mailto:"+link_address;
		}
		link.attr("href", link_address);
		link.text(link_text);
	});
});





