var tid = setInterval(foo, 2500);
	Currentslide = 1;	
	GotoSlide(1,1);
	function GotoSlide(slide,hand){
	  if (slide ==1){
		  	left = 0;
			$("#Titel1").animate({opacity: 1}, 750 );
			$("#Titel2").animate({opacity: 0}, 750 );
			$("#Titel3").animate({opacity: 0}, 750 );
			$("#Button1").animate({opacity: 1}, 1 );
			$("#Button2").animate({opacity: 0.2}, 1 );
			$("#Button3").animate({opacity: 0.2}, 1 );
		}
	 if (slide ==2){
		  	left = -720;
			$("#Titel1").animate({opacity: 0}, 750 );
			$("#Titel2").animate({opacity: 1}, 750 );
			$("#Titel3").animate({opacity: 0}, 750 );
			$("#Button1").animate({opacity: 0.2}, 1 );
			$("#Button2").animate({opacity: 1}, 1 );
			$("#Button3").animate({opacity: 0.2}, 1 );
	 }
	  if (slide ==3){
		  	left = -1420;
			$("#Titel1").animate({opacity: 0}, 750 );
			$("#Titel2").animate({opacity: 0}, 750 );
			$("#Titel3").animate({opacity: 1}, 750 );
			$("#Button1").animate({opacity: 0.2}, 1 );
			$("#Button2").animate({opacity: 0.2}, 1 );
			$("#Button3").animate({opacity: 1}, 1 );
	 }
	  $("#ImageFP").animate({
	   marginLeft: left
	  }, 1500 );
	  if(hand == 1){
		  clearInterval(tid);
		  tid = setInterval(foo, 2500);
		  Currentslide = slide;
		  
	  }
	}
	
	
	function nextSlide(){
		  if (Currentslide ==1){ sliden = 2;}
		  if (Currentslide ==2){ sliden = 3;}
		  if (Currentslide ==3){ sliden = 1;}
		  Currentslide = sliden;
		  GotoSlide(sliden,0);
		}
		
		function foo()
		{
			 nextSlide();
			}

