$(document).ready(function() {
	// add class to button when DOM is ready
 	// hide divs when DOM is ready
  	$('#overview-btn').addClass('active');
	$('.design-process').hide();
 	$('#gallery-btn').addClass('active');
	$('.recognition').hide();
 	$('.testimonials').hide();
 	$('body.portfolio div#secondary-content').addClass('hide');
	// show div when nav link is clicked
 	// hide divs when nav link is clicked  
  	$('a#overview-btn').click(function() {
    	$('#overview-btn').addClass('active');
		$('#process-btn').removeClass('active');
		$('.overview').animate({ opacity: "show" }, "slow");
		$('.design-process').animate({ opacity: "hide" }, "fast");
    	return false;
  	});
  	$('a#process-btn').click(function() {
    	$('#overview-btn').removeClass('active');
		$('#process-btn').addClass('active');
		$('.overview').animate({ opacity: "hide" }, "fast");
		$('.design-process').animate({ opacity: "show" }, "slow");
    	return false;
  	});
  	$('a#gallery-btn').click(function() {
    	$('#gallery-btn').addClass('active');
		$('#recognition-btn').removeClass('active');
		$('#testimonials-btn').removeClass('active');
		$('#primary-content').addClass('full-width');
		$('#secondary-content').addClass('hide');
		$('.gallery').animate({ opacity: "show" }, "slow");
		$('.recognition').animate({ opacity: "hide" }, "fast");
		$('.testimonials').animate({ opacity: "hide" }, "fast");
    	return false;
  	});
  	$('a#recognition-btn').click(function() {
    	$('#gallery-btn').removeClass('active');
		$('#recognition-btn').addClass('active');
		$('#testimonials-btn').removeClass('active');
		$('#primary-content').removeClass('full-width');
		$('#secondary-content').removeClass('hide');
		$('.gallery').animate({ opacity: "hide" }, "fast");
		$('.recognition').animate({ opacity: "show" }, "slow");
		$('.testimonials').animate({ opacity: "hide" }, "fast");
    	return false;
  	});
	$('a#testimonials-btn').click(function() {
    	$('#gallery-btn').removeClass('active');
		$('#recognition-btn').removeClass('active');
		$('#testimonials-btn').addClass('active');
		$('#primary-content').removeClass('full-width');
		$('#secondary-content').removeClass('hide');
		$('.gallery').animate({ opacity: "hide" }, "fast");
		$('.recognition').animate({ opacity: "hide" }, "fast");
    	$('.testimonials').animate({ opacity: "show" }, "slow");
		return false;
  	});
});
