	// JavaScript Document
$(function(){
	$('.content').hide();
	$('.panel').toggle(function(){
			$(this).next('.content').slideDown('slow')
			;
		},function(){
$(this).next('.content').slideUp('slow');
});
	
	

		 	 
	
	$('#webContent').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#webNext', 
    prev:   '#webPrev' 
	}), $('#webBeschrieb').cycle({ 
    fx:     'scrollUp', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#webNext', 
    prev:   '#webPrev' 
	});	
	
	$('#fotoContent').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#fotoNext', 
    prev:   '#fotoPrev' 
	}), $('#fotoBeschrieb').cycle({ 
    fx:     'scrollUp', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#fotoNext', 
    prev:   '#fotoPrev' 
	}), $('#detailAnsichtFoto').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#fotoNext', 
    prev:   '#fotoPrev' 
	});	
	
	//Funktionen des detailAnsichtFotoButtons
	$('.btn_detailAnsichtFoto').click(function(){
		$('#abdunkler').fadeIn('500');
		$('#abdunkler').css({"filter" : "Alpha(opacity=50)"});
		$('#detailAnsichtFoto').fadeIn('500');
	});
	
	//detailAnsichtFoto schliessen
	$('#abdunkler').click(function(){
		$('#detailAnsichtFoto').fadeOut('500');
		$('#abdunkler').fadeOut('500');
	}), $('#detailAnsichtFoto img').click(function(){
		$('#detailAnsichtFoto').fadeOut('500');
		$('#abdunkler').fadeOut('500');
	});
	
	$('#printContent').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#printNext', 
    prev:   '#printPrev' 
	}), $('#printBeschrieb').cycle({ 
    fx:     'scrollUp', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#printNext', 
    prev:   '#printPrev' 
	}), $('#detailAnsichtPrint').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 0, 
    next:   '#printNext', 
    prev:   '#printPrev' 
	});	
	
	//Funktionen des detailAnsichtPrintButtons
	$('.btn_detailAnsichtPrint').click(function(){
		$('#abdunkler').fadeIn('500');
		$('#abdunkler').css({"filter" : "Alpha(opacity=50)"});
		$('#detailAnsichtPrint').fadeIn('500');
	});
	
	//detailAnsichtPrint schliessen
	$('#abdunkler').click(function(){
		$('#detailAnsichtPrint').fadeOut('500');
		$('#abdunkler').fadeOut('500');
	}), $('#detailAnsichtPrint img').click(function(){
		$('#detailAnsichtPrint').fadeOut('500');
		$('#abdunkler').fadeOut('500');
	});
	
	
});

