$(document).ready(function(){

	var $glenHeight = $(".text-glen-content").height(); 
	var $leuHeight = $(".text-leu-content").height(); 
	var $magHeight = $(".text-mag-content").height(); 	
	var $ivansHeight = $(".text-ivans-content").height(); 	
	var $ellaHeight = $(".text-ella-content").height();
	var $danHeight = $(".text-dan-content").height(); 
	var $louiseHeight = $(".text-louise-content").height(); 	

	$('#glen').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings
		
		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideDown(1000);
		$('#text-glen h2').animate({fontSize: "1.8em"}, 800);
		
	});
	$('#glen-heading').click(function(){
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideDown(1000);
		$('#text-glen h2').animate({fontSize: "1.8em"}, 800);	
	});
	$('#leu').click(function(){
		
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideDown(1000);
		$('#text-leu h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#leu-heading').click(function(){
		
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideDown(1000);
		$('#text-leu h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#mag').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});	
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-mag .text-mag-content').css({height: $magHeight});
		$('#text-mag .text-mag-content').slideDown(1000);
		$('#text-mag h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#mag-heading').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});	
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-mag .text-mag-content').css({height: $magHeight});
		$('#text-mag .text-mag-content').slideDown(1000);
		$('#text-mag h2').animate({fontSize: "1.8em"}, 800);		
		
	});	
	$('#ivans').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});	
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});
		$('#text-ivans .text-ivans-content').slideDown(1000);
		$('#text-ivans h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#ivans-heading').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});	
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});
		$('#text-ivans .text-ivans-content').slideDown(1000);
		$('#text-ivans h2').animate({fontSize: "1.8em"}, 800);		
		
	});	
	$('#ella').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideDown(1000);
		$('#text-ella h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#ella-heading').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideDown(1000);
		$('#text-ella h2').animate({fontSize: "1.8em"}, 800);		
		
	});
    $('#dan').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideDown(1000);
		$('#text-dan h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#dan-heading').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-louise h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideDown(1000);
		$('#text-dan h2').animate({fontSize: "1.8em"}, 800);		
		
	});	
	$('#louise').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-dan-content').css({height: $danHeight});
		$('#text-dan .text-dan-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideDown(1000);
		$('#text-louise h2').animate({fontSize: "1.8em"}, 800);		
		
	});
	$('#louise-heading').click(function(){
		
		$('#text-leu .text-leu-content').css({height: $leuHeight});
		$('#text-leu .text-leu-content').slideUp(1000);
		$('#text-mag .text-mag-content').css({height: $magHeight});	
		$('#text-mag .text-mag-content').slideUp(1000);
		$('#text-ivans .text-ivans-content').css({height: $ivansHeight});	
		$('#text-ivans .text-ivans-content').slideUp(1000);
		$('#text-ella .text-ella-content').css({height: $ellaHeight});
		$('#text-ella .text-ella-content').slideUp(1000);
		$('#text-dan .text-ella-content').css({height: $danHeight});
		$('#text-dan .text-ella-content').slideUp(1000);
		$('#text-glen .text-glen-content').css({height: $glenHeight});
		$('#text-glen .text-glen-content').slideUp(1000);
		//now the headings

		$('#text-leu h2').animate({fontSize: "1.3em"}, 800);
		$('#text-mag h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ivans h2').animate({fontSize: "1.3em"}, 800);
		$('#text-ella h2').animate({fontSize: "1.3em"}, 800);
		$('#text-dan h2').animate({fontSize: "1.3em"}, 800);
		$('#text-glen h2').animate({fontSize: "1.3em"}, 800);		

		$('#text-louise .text-louise-content').css({height: $louiseHeight});
		$('#text-louise .text-louise-content').slideDown(1000);
		$('#text-louise h2').animate({fontSize: "1.8em"}, 800);		
		
	});	
	
	
	
});