function initMitarbeiter() {
	//width of Scrollbar
	var portraitWidth = $(".scrollbar .maPortrait:first").width()+10;
	numberOfPortraits = $(".scrollbar .maPortrait").length;
	scrollbarWidth = portraitWidth*numberOfPortraits;
	//give the initinal height to the container-content
	$('#col1_content').attr("height", $('#col1_content').height());

	$('.bottomCol').find('.mitarbeiterContainer .hiddenContent').each(function(){
		var descHeight = $(this).find(".maDescription").height();
		var factsHeight = $(this).find(".maFacts").height();
		if(factsHeight > descHeight){
			$(this).attr("height", factsHeight);
		}else{
			$(this).attr("height", descHeight);
		}

		$(this).find(".maDescription").hide();
		$(this).find(".maFacts").hide();
	});
	//Change width of Scrollbar
	$(".scrolledContent").css("width", portraitWidth*numberOfPortraits);
	var clickFree = true;
	//Clickfunction
	$(".maPortrait").click(function(){
		if (clickFree){
			//click Funktion sperren
			clickFree = false;
			//click Funktion nach 300 ms wieder freigeben
			setTimeout(function(){clickFree = true},300);
			//Change Height of the Main-Content
			var clickedContentHeight = $(this).parents('.mitarbeiterContainer').find('.hiddenContent').attr("height");
			setTimeout(function(){ 
				$('#col1_content').animate({height: clickedContentHeight}, {duration:300});
			}, 300);
				
			$("#col1_content .elementContainer:first").fadeOut(300);
			//Mitarbeiter Beschreibung
			$("#col1_content .pcSeven .elementContainer .backText").addClass("remove");
			$(this).parents(".mitarbeiterContainer").find(".maDescription:first").clone().appendTo($("#col1_content .pcSeven .elementContainer .dynamicText"));
			$("#col1_content .pcSeven .elementContainer .remove").fadeOut(300, function(){
				$("#col1_content .pcSeven .elementContainer .remove:first").remove();
				
				$("#col1_content .pcSeven .elementContainer .dynamicText .maDescription").addClass("backText");
				$("#col1_content .pcSeven .elementContainer .dynamicText .backText").fadeIn(300);
			});	
			
			//Mitarbeiter Fakten
			
			$("#col1_content .pcThree .elementContainer .backText").addClass("remove");
			$(this).parents(".mitarbeiterContainer").find(".maFacts:first").clone().appendTo($("#col1_content .pcThree .elementContainer .dynamicText"));
			
			$("#col1_content .pcThree .elementContainer .remove").fadeOut(300, function(){
				$("#col1_content .pcThree .elementContainer .remove:first").remove();
				
				if($("#col1_content .qualification .text:first").html() == ""){
					$("#col1_content .pcThree").hide();
					$("#col1_content .pcSeven").css("width", "100%");
					$("#col1_content .pcSeven .maDescription").css("width", "100%");
				}else{
					$("#col1_content .pcSeven").css("width", "620px");
					$("#col1_content .pcSeven .maDescription").css("width", "620px");
					$("#col1_content .pcThree").show();
				}
				
				$("#col1_content .pcThree .elementContainer .dynamicText .maFacts").addClass("backText");
				$("#col1_content .pcThree .elementContainer .backText").fadeIn(300);
			});
			
			//Mitarbeiter Header
			$("#testimonial .elementContainer .act").fadeOut(300, function(){
				$("#testimonial .elementContainer .act:first").remove();
			});
			
			$(this).parents(".mitarbeiterContainer").find(".maHeader:first").clone().appendTo($("#testimonial .elementContainer .dynamicText"));
			
			$("#testimonial .elementContainer .dynamicText .maHeader").addClass("act");
			$("#testimonial .elementContainer .act").fadeIn(300, function(){
			
			});
		}
	});
	/*tooltip*/
	$(".visibleContent").mouseenter(function(){
		var tooltipLeft = $(this).position().left + 55;
		$(this).find(".tooltip:first").clone().appendTo(".scrollbarContainer").addClass("actTooltip").css("left", tooltipLeft).fadeIn(150);
	});
	
	$(".visibleContent").mouseleave(function(){
		$(".scrollbarContainer .actTooltip").fadeOut(150).remove();
	});
}

//Scrollbar

function letsScroll(direction){
var relativeScrollpos = scrollbarWidth-$(".scrollbar").width()-10;
	if(direction == "left"){
		if($(".scrollbar").scrollLeft() > 0){
			$(".scrollbar").scrollTo('-=184px', 200, '');
		}else{
			$(".scrollbar").scrollTo(scrollbarWidth, 200, '');
		}
	}else{
		if($(".scrollbar").scrollLeft() <= relativeScrollpos-10){
			$(".scrollbar").scrollTo('+=184px', 200, '');
		}else{
			$(".scrollbar").scrollTo('0px', 200, '');
		}
	}
}
