// JavaScript Document

            
                    $(window).load(function() {
                        $('#slider').nivoSlider({
                            effect:'random', // Specify sets like: 'fold,fade,sliceDown'
                            slices:15, // For slice animations
                            boxCols: 8, // For box animations
                            boxRows: 4, // For box animations
                            animSpeed:500, // Slide transition speed
                            pauseTime:3000, // How long each slide will show
                            startSlide:0, // Set starting Slide (0 index)
                            directionNav:true, // Next & Prev navigation
                            directionNavHide:true, // Only show on hover
                            controlNav:true, // 1,2,3... navigation
                            controlNavThumbs:false, // Use thumbnails for Control Nav
                            controlNavThumbsFromRel:false, // Use image rel for thumbs
                            controlNavThumbsSearch: '.jpg', // Replace this with...
                            controlNavThumbsReplace: '_thumb.jpg', // ...this in thumb Image src
                            keyboardNav:true, // Use left & right arrows
                            pauseOnHover:true, // Stop animation while hovering
                            manualAdvance:false, // Force manual transitions
                            captionOpacity:0.8, // Universal caption opacity
                            prevText: 'Zurück', // Prev directionNav text
                            nextText: 'Weiter', // Next directionNav text
                        });
                    });

$(function()
	{
		// Call stylesheet init so that all stylesheet changing functions 
		// will work.
		$.stylesheetInit();
		
		// This code loops through the stylesheets when you click the link with 
		// an ID of "toggler" below.
		$('#toggler').bind(
			'click',
			function(e)
			{
				$.stylesheetToggle();
				return false;
			}
		);
		
		// When one of the styleswitch links is clicked then switch the stylesheet to
		// the one matching the value of that links rel attribute.
		$('.styleswitch').bind(
			'click',
			function(e)
			{
				$.stylesheetSwitch(this.getAttribute('rel'));
				return false;
			}
		);
	}
);



$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
  $(".resetFont").click(function(){
  $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = 20;
	$('html').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize =  25;
	$('html').css('font-size', newFontSize);
	return false;
  });
});


$(document).ready(function(){
	
		$("a.slidedown").click(function() {
  			$("#infobox").css("display","block").animate({height:"100px"}, 500, function(){});
		});
		
		$("a.slideup").click(function() {
  			$("#infobox").animate({height:"0px"}, 250, function(){
				
				$("#infobox").css("display","none");
				});
			
		});
});


 
$(document).ready(function() {
	$("a[rel=fancybox]").fancybox({              
 					'titlePosition'  : 'inside',
					'transitionIn'   : 'elastic',
					'transitionOut'  : 'elastic'               
                                   });
$("#openbig").fancybox({
		'width'				: '40%',
		'height'			: '50%',
        'autoScale'     	: false,
        'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'type'				: 'iframe'
	});

});

