/* SCROLLFUNKTION
---------------------------------------------------------- */
      $(document).ready(function(){
		 $.localScroll({easing:'easeInOutExpo', speed: 1200});
      });




/* HAUPTMENÜ
---------------------------------------------------------- */
 function my_mainnav(){
    $('.mainnav').mainnav({
		duration: 800,
        max: 125,
		spacing: -10
		
    });
}  

 $(document).ready(function(){					
	my_mainnav();
});






/* SOCIALMENÜ
---------------------------------------------------------- */
 function my_socialnav(){
    $('.socialnav').socialnav({
		duration: 800,
		min: 35,   
        max: 105,
		spacing: -15
		
    });
}

 $(document).ready(function(){					
	my_socialnav();
});





/* SLIDESHOW - using jquery.cycle.all.min.js plugin
---------------------------------------------------------- */
$(document).ready(function() {
    $('#featured').cycle({ 
        fx:      'fade', 
        speed:    2500, 
        timeout:  2000 
    });

	$('#slideshow_arbeit').cycle({ 
    		fx:     'scrollHorz', 
			speedIn:  900,
			speedOut: 900,
			easeIn:  'easeInOutExpo', 
    		easeOut: 'easeInOutExpo', 
			timeout: 0,
			next:   '#next_arbeit', 
			prev:   '#prev_arbeit' 
});

	$('#info_arbeit').cycle({
			fx:    'scrollVert',
			speedIn:  800,
			speedOut: 1100,
			easeIn:  'easeOutBounce', 
    		easeOut: 'easeOutBack', 
			timeout: 0, 
			next:   '#next_arbeit', 
			prev:   '#prev_arbeit'  
		});
		
		
		
	$('#slideshow_freizeit').cycle({ 
			fx:     'scrollHorz', 
			speedIn:  800,
			speedOut: 800,
			easeIn:  'easeInOutExpo', 
    		easeOut: 'easeInOutExpo', 
			timeout: 0,
			next:   '#next_freizeit', 
			prev:   '#prev_freizeit' 
		});

	$('#info_freizeit').cycle({ 
			fx:    'scrollVert', 
			speedIn:  1400,
			speedOut: 400,
			easeIn:  'easeOutBounce', 
    		easeOut: 'easeInBack', 
			timeout: 0, 
			next:   '#next_freizeit', 
			prev:   '#prev_freizeit'  
		});
		
});	

	

/* LIGHTBOX - using jquery.lightbox-0.5.min.js plugin
---------------------------------------------------------- */
$(document).ready(function() {
	$(function() {
				$('#slideshow_arbeit .large_preview').lightBox({fixedNavigation:true});
			});		
	});
	
	$(document).ready(function() {
	$(function() {
				$('#slideshow_freizeit .large_preview').lightBox({fixedNavigation:true});
			});		
	});	
