


$(document).ready(function(){

	// Floor an Fenstergröße anpassen
	$(window).bind('resize', function(){
		if($(this).height() < 800)
			$('div#floor').css('height', 45);
		else 
		   $('div#floor').css('height', 195);
	}).resize();
	$(window).bind('resize', function(){
		if($(this).height() < 800)
			$('div.emptyBoard').css('bottom', 3);
		else 
		   $('div.emptyBoard').css('bottom', 160);
	}).resize();
	$(window).bind('resize', function(){
		if($(this).height() < 975)
			$('div.emptyBoard').css('left', -145);
		else 
		   $('div.emptyBoard').css('left', 0);
	}).resize();

	// Startboxen
	// standard opacity
	$(".imageBoxText").css("opacity","0.0");
	// mouse over
	$(".imageBoxText").hover(function () {					  
		$(this).stop().animate({
			opacity: 1.0
		}, 250);
	},
	// mouse out
	function () {
		// standard opacity
		$(this).stop().animate({
			opacity: 0.0
		}, 250);
	});


	// Fancybox: Zeichnungen
	$("a[rel=zeichnung]").fancybox({
		'padding': 0,
		'speedIn': 300,
		'speedOut': 200
	});
	// Fancybox: Newsdetail
	$("a.newsDetailLink").fancybox({
		'padding': 20,
		'transitionIn': 'fade',
		'transitionOut': 'fade',
		'speedIn': 300,
		'speedOut': 200,
		'width': 750,
		'height': 395,
		'titleShow': false,
		'showNavArrows': false,
		'overlayColor': '#000000',
		'overlayShow': true,
		'hideOnContentClick':false,
		'type': 'iframe'
	});

});

