// JavaScript Document


		
	/* Start Slideshow in header of the page */

	$('#slideshow').cycle({  
	
			fx:    'fade', 
			speed:  	3000,
			timeout: 5000,
			random:	 1
	 }); 

	$(document).ready(function() {
		
		/* Include Fancybox */
		
		$(".groupfancy a").fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
			'overlayShow'	:	true
		});
		
		/* Include Submenu effects with jquery.superfish */
		
		$("ul.sf-menu").superfish({
			delay:       1000,                            // one second delay on mouseout 
			animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
			speed:       'normal',                         // faster animation speed 
			dropShadows:   true,
			autoArrows:    false
		});
			  
		/* I set the text-transform for h2,h3,h4,h6 to uppercase, because Trajan Pro has the style of an uppercase (capitalize)-font */
		/* Now we have to set this back > because the user seems to have javascript enabled > Let's start cufon */
		/* Unfortunately the Cufon.now() - fix doesn't work together with this */
		
		$("h2").css('textTransform','none');
		$("h3").css('textTransform','none');
		$("h4").css('textTransform','none');
		$("h6").css('textTransform','none');
		
		Cufon.replace('h2')('h3')('h4')('h6')('#navi ul li');
		
	});
