$(document).ready(function(){
	
	$('.viewAnswer').click(function(){
		
	
		var answerDiv = $(this).parent('.question').siblings('.answer');
		
		answerDiv.show();
		
		var baseHeight = answerDiv.children('.answerBox').height();
		answerDiv.parent('.faq').height(baseHeight + 24);
		
		answerDiv.children('.hideAnswer').height(baseHeight + 14);
		
		$(this).parent('.question').hide();

	
	});
	
	$('.hideAnswer').click(function(){
		
		var questionDiv = $(this).parent('.answer').siblings('.question');
		
		questionDiv.show();
		
		questionDiv.parent('.faq').height(40);
		
		$(this).parent('.answer').hide();

	
	});	
	
});
