// jQuery functions for ScriptureStart.com - Jonathan Wold

$(document).ready(function(){
   $(".question")
    .after("<p class='clickforanswer'><a href=''><em>Click Here for the Answer</em></a></p>")
	.prepend("<strong>Question: </strong>");
	
   $(".answer").hide().prepend("<strong>Answer: </strong>");	
	   
   $(".clickforanswer a").click(function(event){
	   $(".clickforanswer").slideUp("slow");
	   $(".answer").slideDown("slow"); 
	   	   
	   // Stop the link click from doing its normal thing
	   return false;
   });
   
   $(".question2")
    .after("<p class='clickforanswer2'><a href=''><em>Click Here for the Answer</em></a></p>")
	.prepend("<strong>Question: </strong>");
	
   $(".answer2").hide().prepend("<strong>Answer: </strong>");	
	   
   $(".clickforanswer2 a").click(function(event){
	   $(".clickforanswer2").slideUp("slow");
	   $(".answer2").slideDown("slow"); 
	   	   
	   // Stop the link click from doing its normal thing
	   return false;
   });
   
   $(".question3")
    .after("<p class='clickforanswer3'><a href=''><em>Click Here for the Answer</em></a></p>")
	.prepend("<strong>Question: </strong>");
	
   $(".answer3").hide().prepend("<strong>Answer: </strong>");	
	   
   $(".clickforanswer3 a").click(function(event){
	   $(".clickforanswer3").slideUp("slow");
	   $(".answer3").slideDown("slow"); 
	   	   
	   // Stop the link click from doing its normal thing
	   return false;
   });
   
   $("p.scripture").prepend("&quot;");	
   $("p.scripture cite").before("&quot; ");  
      
});