	// JavaScript Document
$(function(){
	$('.content').hide();
	$('.panel').toggle(function(){
			$(this).next('.content').slideDown(200);
		},function(){
$(this).next('.content').slideUp(300);
});
		 	 
	
	$('#indexGallery').cycle({ 
    fx:     'scrollHorz', 
    speed:  'slow', 
    timeout: 5000,
	pause: 1,
	next:   '#galleryNext', 
    prev:   '#galleryPrev', 
	}), 
	/*$('#galleryDescription').cycle({ 
    fx:     'scrollUp', 
    speed:  'fast', 
    timeout: 5000, 
	pause: 1,
    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');
	});
	
	
});

