		$(document).ready(function(){
		
					$("#news-button").css({
				opacity: 0.99
			});
			
						$("#events-button").css({
				opacity: 0.99
			});
			
						$("#publications-button").css({
				opacity: 0.99
			});
			
						$("#firmhistory-button").css({
				opacity: 0.99
			});
			
			//each click on a button will be intercepted
			$("#page-wrap div.name").click(function(){
				
				//we store the reference here to avoid doing $(this) each time we need and spare some processing
				$clicked = $(this);
				
				// if the button is not already "transformed" AND is not animated
				if($clicked.css("opacity") != "1" && $clicked.is(":not(animated)"))
				{
					//we animate it (remember the reference for optimisation ?)
					$clicked.animate({
						opacity: 1,
						style: 'background-color: rgb(85, 101, 102);'
					}, 600 );
					
					//we "calculate" the id to shown (each button div MUST have a "xx-button" and the target div must have an id "xx" )
					//yet again the reference
					var idToLoad = $clicked.attr("id").split('-');
					//we search trough the content for the visible div and we fade it out
					$("#content").find("div:visible").fadeOut("fast", function(){
						//once the fade out is completed, we start to fade in the right div
						$(this).parent().find("#"+idToLoad[0]).fadeIn();
					})
				}
				
				//we reset the other buttons to default style
				$clicked.siblings().animate({
					opacity: 0.99,
					style: 'background-color: rgb(177, 0, 25);'
				}, 600 );
				
			});
		});
		
