$(document).ready(function(){


$(".horzacc").hrzAccordion({
						 eventTrigger: "mouseover",
						 openOnLoad: 1,
						 fixedWidth: 472,
						 openSpeed: 250,
						 closeSpeed: 250
});	


/*    mit Slideshow

eventTrigger: "mouseover",
openOnLoad: 1,
fixedWidth: 472,
openSpeed: 250,
closeSpeed: 250,
cycle						: true,
eventAction				: function(i){
 	 							  $("#eventRunning").html(" Opening - "+(i+1));
								  },
completeAction			: function(i){
								  $("#eventRunning").html(" Completed - "+(i+1));
								  }

});	

*/



/*	Accordion
************/

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

		$('.accordionueberschrift').removeClass('aktiv');
	 	$('.accordioninhalt').slideUp(200);
   
		if($(this).next().is(':hidden') == true) {
				$(this).addClass('aktiv');
				
				$(this).next().slideDown(200);
	 			} 
});
	  
$('.accordionueberschrift').mouseover(function() {
			$(this).addClass('hover');
}).mouseout(function() {
		$(this).removeClass('hover');										
	});
	$('.accordioninhalt').hide();


/*	Slider
************/
$(function(){
	$('#slides').slides({
		preload: true,
		preloadImage: 'xfiles/loading.gif',
		slideSpeed: 500,
		play: 5000,		
		generateNextPrev: true,
		hoverPause: true
	});
});

});


