//petters filter script you!



jQuery.fn.HidePeoples = function() {

	
	$('.grupp_projektledare').hide();
	$('.grupp_Produktionsledare').hide();
	$('.grupp_DigitalPlanner').hide();
	$('.grupp_Kretorer').hide();
	$('.grupp_EkonomiReception').hide();
	

};


jQuery.fn.ShowPeoples = function() {

	
	$('.grupp_projektledare').fadeIn();
	$('.grupp_Produktionsledare').fadeIn();
	$('.grupp_DigitalPlanner').fadeIn();
	$('.grupp_Kretorer').fadeIn();
	$('.grupp_EkonomiReception').fadeIn();
	

};




jQuery.fn.StaffHeight = function() {

	
	$("#nppstaff").animate({"height" : "3275px"});
	

};







$(document).ready(function() {
						  
						  
	$("#F_Dott_0").css({"background-image" : "url(img/dott_yellow.png)",});
						   
						   
						   
jQuery.fn.resetBtns = function() {

	F_Knapp_0 = false;
	F_Knapp_1 = false;
	F_Knapp_2 = false;
	F_Knapp_3 = false;
	F_Knapp_4 = false;
	F_Knapp_5 = false;
	
	
	$("#F_Dott_0").css({"background-image" : "url(img/dott.png)",});
	$("#F_Dott_1").css({"background-image" : "url(img/dott.png)",});
	$("#F_Dott_2").css({"background-image" : "url(img/dott.png)",});
	$("#F_Dott_3").css({"background-image" : "url(img/dott.png)",});
	$("#F_Dott_4").css({"background-image" : "url(img/dott.png)",});
	$("#F_Dott_5").css({"background-image" : "url(img/dott.png)",});

};



	var F_num = 0;

	
	var F_Knapp_0 = true;
	var F_Knapp_1 = false;
	var F_Knapp_2 = false;
	var F_Knapp_3 = false;
	var F_Knapp_4 = false;
	var F_Knapp_5 = false;





	
	$('#F_btn_0').click(function() {
			
		if(F_Knapp_0 == false){	
			
			jQuery.fn.HidePeoples();
								 
			jQuery.fn.ShowPeoples();	
			jQuery.fn.resetBtns();
			
			$("#F_Dott_0").css({"background-image" : "url(img/dott_yellow.png)",});
			
			$("#nppstaff").css({"height" : "3275px"});
			
			F_Knapp_0 = true;
			
		}
	
							 
	});


	
	$('#F_btn_1').click(function() {
	
		if(F_Knapp_1 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_projektledare').fadeIn();
			
			$("#F_Dott_1").css({"background-image" : "url(img/dott_yellow.png)",});
						
			$("#nppstaff").css({"height" : "1175px"},700);
			
			F_Knapp_1 = true;
			
		}
		
		
		
	
  	});
	
	$('#F_btn_2').click(function() {
							
		
		if(F_Knapp_2 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_Produktionsledare').fadeIn();
			
			$("#F_Dott_2").css({"background-image" : "url(img/dott_yellow.png)",});
			
			$("#nppstaff").animate({"height" : "475px"},700);
			
			F_Knapp_2 = true;
			
		}
		
	
  	});
	
	
	$('#F_btn_3').click(function() {
							
		if(F_Knapp_3 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_DigitalPlanner').fadeIn();
			
			$("#F_Dott_3").css({"background-image" : "url(img/dott_yellow.png)",});
			
			$("#nppstaff").animate({"height" : "475px"},700);
			
			F_Knapp_3 = true;
			
		}
		
	
  	});
	
	
	
	$('#F_btn_4').click(function() {
							
		if(F_Knapp_4 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_Kretorer').fadeIn();
			
			$("#F_Dott_4").css({"background-image" : "url(img/dott_yellow.png)",});
			
			$("#nppstaff").animate({"height" : "2225px"},700);
			
			F_Knapp_4 = true;
			
		}
		
	
  	});
	
	
	$('#F_btn_5').click(function() {
							
		if(F_Knapp_5 == false){					
		
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_EkonomiReception').fadeIn();
			
			$("#F_Dott_5").css({"background-image" : "url(img/dott_yellow.png)",});
						
			$("#nppstaff").animate({"height" : "475px"},700);
			
			F_Knapp_5 = true;
			
		}
		
	
  	});
	

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
	/*	
		
		
		$('#F_btn_0').click(function() {
							 
		jQuery.fn.ShowPeoples();	
		jQuery.fn.resetBtns();
		
		$("#F_Dott_0").css({"background-image" : "url(img/dott_yellow.png)",});
		
		$("#nppstaff").css({"height" : "3275px"});
	
							 
	});


	
	$('#F_btn_1').click(function() {
	
		if(F_Knapp_1 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_projektledare').fadeIn();
			
			$("#F_Dott_1").css({"background-image" : "url(img/dott_yellow.png)",});
			
			F_Knapp_1 = true;
			
			$("#nppstaff").css({"height" : "1175px"},700);
			
			
			
		}else{
	
			jQuery.fn.ShowPeoples();
			
			jQuery.fn.resetBtns();
			
			$("#F_Dott_1").css({"background-image" : "url(img/dott.png)",});
			
			F_Knapp_1 = false;
			
		}
		
	
  	});
	
	$('#F_btn_2').click(function() {
							
		if(F_Knapp_2 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_Produktionsledare').fadeIn();
			
			$("#F_Dott_2").css({"background-image" : "url(img/dott_yellow.png)",});
			
			F_Knapp_2 = true;
			
			$("#nppstaff").animate({"height" : "475px"},700);
			
		}else{
	
			jQuery.fn.ShowPeoples();
			
			jQuery.fn.resetBtns();
			
			$("#F_Dott_2").css({"background-image" : "url(img/dott.png)",});
			
			F_Knapp_2 = false;
			
		}
		
	
  	});
	
	
	$('#F_btn_3').click(function() {
							
		if(F_Knapp_3 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_DigitalPlanner').fadeIn();
			
			$("#F_Dott_3").css({"background-image" : "url(img/dott_yellow.png)",});
			
			F_Knapp_3 = true;
			
			$("#nppstaff").animate({"height" : "475px"},700);
			
		}else{
	
			jQuery.fn.ShowPeoples();
			
			jQuery.fn.resetBtns();
			
			$("#F_Dott_3").css({"background-image" : "url(img/dott.png)",});
			
			F_Knapp_3 = false;
			
		}
		
	
  	});
	
	
	
	$('#F_btn_4').click(function() {
							
		if(F_Knapp_4 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_Kretorer').fadeIn();
			
			$("#F_Dott_4").css({"background-image" : "url(img/dott_yellow.png)",});
			
			F_Knapp_4 = true;
			
			$("#nppstaff").animate({"height" : "2225px"},700);
			
		}else{
	
			jQuery.fn.ShowPeoples();
			
			jQuery.fn.resetBtns();
			
			$("#F_Dott_4").css({"background-image" : "url(img/dott.png)",});
			
			F_Knapp_4 = false;
			
		}
		
	
  	});
	
	
	$('#F_btn_5').click(function() {
							
		if(F_Knapp_5 == false){
	
			jQuery.fn.HidePeoples();
			
			jQuery.fn.resetBtns();
			
			$('.grupp_EkonomiReception').fadeIn();
			
			$("#F_Dott_5").css({"background-image" : "url(img/dott_yellow.png)",});
			
			F_Knapp_5 = true;
			
			$("#nppstaff").animate({"height" : "475px"},700);
			
		}else{
	
			jQuery.fn.ShowPeoples();
			
			jQuery.fn.resetBtns();
			
			$("#F_Dott_5").css({"background-image" : "url(img/dott.png)",});
			
			F_Knapp_5 = false;
			
		}
		
	
  	});*/
		
		
		
		

	
	




	
});
