//Cufon.replace('div#content-main h2, div#content-main h3, div#content-main2 h2, div#content-main2 h3');
//
//Cufon.replace('ul#navi li a', {
//	hover: {color: '#e8d9c7'}
//});


$(document).ready(function() { 
									
// $('#background').cycle({ 
//		 fx: 'fade',
//		 timeout: 10000
//	});
		 
//	$("#slides").easySlider({
//		auto: true, 
//		continuous: true,
//		numeric: true,
//		pause: 5000,
//		speed: 500
//	});
	
	$("a[rel=fancybox]").fancybox({
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'fade',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Bild ' +  (currentIndex + 1) + ' von ' + currentArray.length + ' - ' + title + '</span>';
		}
	});
	
	$("a.inline").fancybox({
		'titlePosition'		: 'inside',
		'transitionIn'		: 'none',
		'transitionOut'		: 'none'

	});
	
	$("#video").fancybox({
		'width'				: '75%',
		'height'			: '75%',
      'autoScale'     	: false,
      'transitionIn'		: 'elastic',
		'transitionOut'		: 'fade',
		'type'				: 'iframe'
	});

//	
//	$("#datenschutz-link").fancybox({
//		'titleShow'		: false,
//		'transitionIn'		: 'none',
//		'transitionOut'		: 'none'
//	});

$('#supersized-controls-container').css("opacity","0");
$('#pictureduri').css("opacity","0");

$('#content-pager').pager('div.page', {
  navId: 'controls',
  highlightClass: 'active',
  prevText: '',
  nextText: ''
});

$('#content-pager2').pager('div.page2', {
  navId: 'controls',
  highlightClass: 'active',
  prevText: '',
  nextText: ''
});

$('.site-container-close').click(function() {
	$('#site-container').animate({
		opacity: 0,
		top: '-600px'
		}, 1000, function() {
			$('#background-controls-container').animate({
				opacity: 1
				}, 1000, function() {
			});
	});
});

$('.site-container-close').click(function() {
	$('#navi-container').animate({
		top: '20px'
		}, 1600, function() {
	});
});


$('.site-container-close').click(function() {
	$('#background-shadow').animate({
		opacity: 1
		}, 3000, function() {
	});
});

$('.site-container-close').click(function() {
	$('#background-shadow-bottom').animate({
		opacity: 1
		}, 3000, function() {
	});
});

$('.site-container-close').click(function() {
	$('#pictureduri').animate({
		opacity: 1
		}, 3000, function() {
	});
});

// umkehrfunktion

$('#background-close').click(function() {
	$('#site-container').animate({
		opacity: 1,
		top: '100px'
		}, 1200, function() {	
	});
});

$('#background-close').click(function() {
	$('#navi-container').animate({
		top: '670px'
		}, 700, function() {
	});
});

$('#background-close').click(function() {
	$('#background-shadow').animate({
		opacity: 0
		}, 900, function() {
	});
});

$('#background-close').click(function() {
	$('#background-shadow-bottom').animate({
		opacity: 0
		}, 900, function() {
	});
});

$('#background-close').click(function() {
	$('#background-controls-container').animate({
		opacity: 0
		}, 400, function() {
	});
});

$('#background-close').click(function() {
	$('#pictureduri').animate({
		opacity: 0
		}, 900, function() {
	});
});

});


