function switchImage() {
	mode = 'play';
	
	jQuery('div#Bildanimation').click(function() {
		changeState();
	});
	
	jQuery('div#Bildanimation').hover(function() {	
		if(mode == 'pause')
			jQuery('div#Controls img#Play').stop(true,true).fadeIn();
		else
			jQuery('div#Controls img#Pause').stop(true,true).fadeIn();
	}, function() {
			jQuery('div#Controls img#Play').stop(true,true).fadeOut();
			jQuery('div#Controls img#Pause').stop(true,true).fadeOut();
	});
	
  jQuery('.fadein img:gt(0)').hide();
  
  interval = setInterval('fadeImages()', 5000);
}

function changeState() {	
	if(mode == 'play') {
		mode = 'pause';
		window.clearInterval(interval);
		jQuery('div#Controls img#Pause').hide();
		jQuery('div#Controls img#Play').show();
	} else {
		mode = 'play';
		interval = setInterval('fadeImages()', 5000);
		jQuery('div#Controls img#Play').fadeOut();
	}
}

function fadeImages () {
	jQuery('div#Text').slideUp();
  jQuery('.fadein :first-child').removeClass('active').fadeOut('slow')
     .next('.fadein img').fadeIn('slow').addClass('active')
     .end().appendTo('.fadein');
}
