$(document).ready(function() {

	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

	$("a.group").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayOpacity': .8,
		'overlayColor': '#000',
		'titlePosition':'inside'
	});
	$("a.illu, #illul").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'overlayOpacity': .8,
		'overlayColor': '#000',
		'titlePosition':'inside'
	});
	
		$("a[rel=li]").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	300, 
		'overlayShow'	:	true,
		'overlayOpacity': .8,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">'+title+' <span class="bildn">Bild ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span></span>';
		}
	});
	$("a[rel=text]").fancybox({
		'speedIn'		:	600, 
		'speedOut'		:	300, 
		'overlayShow'	:	true,
		'overlayOpacity': .8,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">'+title+' <span class="bildn">Bild ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span></span>';
		}
	});
	
$("a[rel=lightboxslide]").fancybox({
		'speedIn'		:	800, 
		'speedOut'		:	800, 
		'overlayShow'	:	true,
		'overlayOpacity': .8,
		'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">'+title+' Bild ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});
	

$("a.fb").fancybox({
		'width'				: 600,
		'height'			: 450,
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'overlayOpacity': .8,
		'overlayColor': '#000',
		'centerOnScroll': true,
		'type'				: 'iframe'
	});

});

$(document).ready(function(){
	
	$(".slider").show();
 
	$(".slide, .header_slide").toggle(function(){
		$(this).addClass("active"); 
		}, function () {
		$(this).removeClass("active");
	});
	
	$(".slide, .header_slide").click(function(){
		//$(this).next(".slider").slideToggle("normal,");
		$("#d"+$(this).attr('id')).slideToggle("normal,");
	});
	$(".beschreibung").click(function(){
		$(this).next(".slider").slideToggle("normal,");
	});
 
});

