function close_video(videoDIV, startseite){
	videoDIV.fadeOut('slow', function(){
		videoDIV.load('?view=leer');
	});
	$('#makingOfButton').fadeIn("slow");
	
	if(startseite){
		timer = setInterval( "slideSwitch()", 7000 );
	}
}

function next_video(videoDIV, videoBrand, seite){
	if(seite=='startseite'){
		if(videoBrand=='Roesch'){
			slideSwitch();
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Feraud', function(){
					$('#video').css({'margin-top' : 0});
					videoDIV.fadeIn('slow');
				});
			});
		}
		
		if(videoBrand=='Feraud'){
			slideSwitch();
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Blanchefleur', function(){
					$('#video').css({'margin-top' : 0});
					videoDIV.fadeIn('slow');
				});
			});
		}
		
		if(videoBrand=='Blanchefleur'){
			slideSwitch();
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Roesch', function(){
					$('#video').css({'margin-top' : 0});
					videoDIV.fadeIn('slow');
				});
			});
		}
	}
	
	if(seite=='galerie'){
		if(videoBrand=='Roesch'){
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Feraud', function(){
					$('#video').css({'margin-top' : 0});
					activeBrand('Feraud');
					deactiveBrand('Roesch');
					$('#brandRoesch').removeClass('activeBrand');
					$('#brandFeraud').addClass('activeBrand');
					videoDIV.fadeIn('slow');
				});
			});
		}
		
		if(videoBrand=='Feraud'){
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Blanchefleur', function(){
					$('#video').css({'margin-top' : 0});
					activeBrand('Blanchefleur');
					deactiveBrand('Feraud');
					$('#brandFeraud').removeClass('activeBrand');
					$('#brandBlanchefleur').addClass('activeBrand');
					videoDIV.fadeIn('slow');
				});
			});
		}
		
		if(videoBrand=='Blanchefleur'){
			videoDIV.fadeOut('slow', function(){
				videoDIV.load('?view=video&video=Roesch', function(){
					$('#video').css({'margin-top' : 0});
					activeBrand('Roesch');
					deactiveBrand('Blanchefleur');
					$('#brandBlanchefleur').removeClass('activeBrand');
					$('#brandRoesch').addClass('activeBrand');
					videoDIV.fadeIn('slow');
				});
			});
		}
	}
}
