	// Hover Start
	jQuery(function($){
		$('.circle').mosaic({
			opacity: 0.8
		});
		$('.fade').mosaic();
	});

	$(document).ready(function() {
		
		// Diverse Hover-Effekte
		$('.buttons a img, #oben h1, .mosaic-backdrop img, #unten #unten-infos #leistungen ul li a img, #icons a img').each(function() {
		$(this).hover(
			function() {
				$(this).stop().animate({ opacity: 0.8 }, 200);
			},
			function() {
				$(this).stop().animate({ opacity: 1.0 }, 200);
			})
		});	
	
		// Nivo slider
		$('#slideshow, #slideshow_start, #slideshow_facebook').nivoSlider({
			effect:'boxRandom,boxRain,boxRainReverse,boxRainGrow,boxRainGrowReverse',
			slices: 10,
			animSpeed: 500,
			pauseTime: 5000,
			directionNav: true,
			directionNavHide: true,
			controlNav: false,
			keyboardNav: false,
			captionOpacity: 1,
			pauseOnHover: true
		});	
		
		$(".mosaic-block4 .mosaic-overlay").fancybox({
			'overlayOpacity' : 0.3,
			'transitionIn'	:	'fade',
			'transitionOut'	:	'fade',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
			'overlayShow'	:	false,
			'opacity' : true
		});
		
		// PNG Fix (Transparenz < IE7)
		if(jQuery.browser.version.substr(0,1) < 7) {
			DD_belatedPNG.fix('#oben h1, #inhalt .normal, #inhalt .breit, #inhalt .leistung, .nivo-controlNav, .nivo-controlNav a, .nivo-directionNav a, #leistungen ul li img, .leistung_bild img, .circle .mosaic-overlay');
		}
		
	});

	// Mehr erfahren (Google Analytics Impressum)
	var arrA = $("a[rel='toggle']").each(function(intIndex){
    var linkID = String($(this).attr('href')).substr(1, $(this).attr('href').length);
		if(linkID){
		  $('#'+linkID).hide();
		}
    $(this).toggle(
      function(){
      	$('#'+linkID).fadeIn('slow'); 
		$('#mehr_erfahren').remove();
      },
      function(){
      	$('#'+linkID).fadeOut('slow'); 
		$('#mehr_erfahren').show();
      }
    );
  });
