$(document).ready(function() {
$('#galerie').cycle({
	fx: 'fade',
	timeout: 5000,
	speed: 1000,
	delay: -2000,
	pager: '#pager',
	next: '#weiter',
	prev: '#zurueck'
});

$('#newsslide').cycle({
	fx: 'scrollHorz',
	timeout: 5000,
	speed: 1000,
	delay: -2000,
	next: '#newsnext',
	prev: '#newsback'
});
}); // Ende Ende ready()

var gewechselt=false;

function umschalten()
{
  $('#con_galerie').toggle();
  $('#con_karussell').toggle();
  if(gewechselt==false)
  {
    // This initialises carousels on the container elements specified, in this case, carousel1.
    $("#karussell").CloudCarousel(		
  	{			
  		xPos: 190,
  		yPos: 32,
  		reflHeight: 0,
  		xRadius: 250,
  		yRadius: 30,
  		speed: 0.05,
  		autoRotate: 'right',
  		autoRotateDelay: 5000,
  		altBox: $("#alt-text"),
  		titleBox: $("#title-text")
  	}
    );
    gewechselt=true;
  }	
}

