// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish({
					delay:         500,                // the delay in milliseconds that the mouse can remain outside a submenu without it closing 	
 					animation:     {opacity:'show',height:'show'},   // an object equivalent to first parameter of jQuerys .animate() method 					
	 				dropShadows:   true,               // completely disable drop shadows by setting this to false 	
					autoArrows:    false,               // if true, arrow mark-up generated automatically = cleaner source code at expense of initialisation performance 
					speed:         'fast'           // speed of the animation. Equivalent to second parameter of jQuerys .animate() method 
					});


jQuery(function() { 
			
		jQuery('#downloadselect').change( function (){
												jQuery('#downloadform').submit();
												});		
				
    jQuery('#startelemente').before('<div id="startnavi" class="startnavi">').cycle({
        fx:     'fade',
        speed:  'slow',
        timeout: 12000,
        pager:  '#startnavi'
    });
});

// Accordion
	jQuery(document).ready(
		function(){ 	
		var accordionicons = {
			header: "team-slide-inaktiv",
			headerSelected: "team-slide-aktiv"
		};
		var accordionChildren = jQuery('#accordion').children('DIV.mitarbeiter-abt').length;
		jQuery('#accordion').accordion({
				collapsible: true,
				icons: accordionicons,
				active: 0,
				clearStyle: true,
				autoHeight: false
		})
		if(accordionChildren == 1) {
			// nur aktiv wenn mehr als eine abteilung vorhanden:
			jQuery('#accordion').accordion( "disable" );			 
		}	
		
	// ende document.ready:
	});
// fertig alles:
});



