
/*
 * Slideshow functions
*/

jQuery().ready(function() {
	jQuery('#ss_wrapper').cycle({
		fx: 'fade',
		timeout: 4000,
		speed: 1200,
		pause: true, // Stop bei mouseover
		autostop: false, // h�lt Slideshow bei autoStopCount an
		autostopCount: 6 // Nummer des Blocks, bei dem die Slideshow anh�lt
	});
	jQuery('#ss_wrapper').find( 'img' ).each( function() {
		jQuery( this ).addClass( 'pvshowp' );
	} );
});

jQuery().ready( function() {
	// hide all divs with class "dyncontent" but without class "current"
	jQuery( '.dyncontent:not(.current)' ).hide();
	// main function
	jQuery( '.dyncontentnavi' ).hover( function() {
		// give active subnavi-item a class "current"
		jQuery( '.dyncontentnavi' ).removeClass( 'current' );
		jQuery( this ).addClass( 'current' );
		// show active subcontent & hide all others
		var id = jQuery( this ).attr( 'href' ).replace( '#adc', '' );
		jQuery( '.dyncontent' ).removeClass( 'current' );
		jQuery( '#dc' + id ).addClass( 'current' );
		jQuery( '#dc' + id ).show();
		jQuery( '.dyncontent:not(.current)' ).hide();
		return false;
	} );
} );
