function revealButton() {

   $(".faq", this).click(function() {
   
		$(this).parent("p").next(".answer").toggle();
		
		return false;
 
   });

}

function showallButton() {
	

   $(".showall", this).click(function() {
   		
		$("#textContainer > .answer").show();
		$("a.showall").html("Hide all");
		hideallButton();
		
		return false;
 
   });
	
	
}

function hideallButton() {
	

   $(".showall", this).click(function() {
   		
		$("#textContainer > .answer").hide();
		$("a.showall").html("Show all");
		showallButton();
		
		return false;
 
   });
	
	
}

function setpage() {

	$("#textContainer > .answer").hide();

}


$(document).ready(function(){
	
	setpage();
	revealButton();
	showallButton();

});