$(document).ready(function(){
	

	
	$('.accordionueberschrift').click(function() {

			$('.accordionueberschrift').removeClass('aktiv');
		 	$('.accordioninhalt').slideUp(300);

			if($(this).next().is(':hidden') == true) {
					$(this).addClass('aktiv');

					$(this).next().slideDown(300);
		 			} 
	});

	$('.accordionueberschrift').mouseover(function() {
				$(this).addClass('hover');
	}).mouseout(function() {
			$(this).removeClass('hover');										
		});
		$('.accordioninhalt').hide();



$('#contentslider').cycle({ 
    fx:    'scrollHorz', 
    speed:    3500, 
    timeout:  6000,
    prev:    '.prev',
    next:    '.next',
 		pause: 1
});

$('.slideshow1').cycle({
  fx:     'scrollRight',
  speed:   3000, 
   timeout:  8000,
	 random: 1,
   delay:  -7000
});

$('.slideshow2').cycle({
  fx:     'scrollLeft',
  speed:   3000, 
   timeout:  8000,
	 random: 1,
   delay:  -6500	
});

$('.slideshow3').cycle({
  fx:     'scrollRight',
  speed:   3000, 
   timeout:  8000,
	 random: 1,
   delay:  -6000	
});

$('.slideshow4').cycle({
  fx:     'scrollLeft',
  speed:   3000, 
   timeout:  8000,
	 random: 1,
   delay:  -5000		
});

$('.slideshow5').cycle({
  fx:     'scrollRight',
  speed:   3000, 
   timeout:  8000,
	 random: 1,
   delay:  -4500	
});


});



////////////////////////////////////////////////////////
// Highslide
////////////////////////////////////////////////////////

hs.graphicsDir = './xfiles/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'controls-in-heading';
hs.preserveContent = true; 
hs.fadeInOut = true;
hs.dimmingGeckoFix = true;
hs.dimmingDuration = 800;
hs.dimmingOpacity = .75;
hs.showCredits = false;
hs.expandDuration = 300;
hs.restoreDuration = 300;	
hs.outlineWhileAnimating = true;


// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 2500,
	repeat: false,
	useControls: true,
	overlayOptions: {
		className: 'controls-in-heading',
		position: 'top right',
		offsetX: '0',
		offsetY: '0',
		hideOnMouseOut: false
	}
});




