jQuery(document).ready(function() {
	 $("#faq a").click(function(event) { //start function when any link is clicked
		event.preventDefault();
		var idx = $("#faq a").index(this);
		$("#faq p").slideUp("fast",function() {
		$.ajax({
		method: "get",url: "faq_ajax.php",cache:false,data: "faq_item="+idx,//content_show,
		beforeSend: function(){}, //show loading just when link is clicked
		complete: function(){}, //stop showing loading when the process is complete
		success: function(html){ //so, if data is retrieved, store it in html
			$("#faq p").html(html); //show the html inside .content div
			$("#faq p").slideDown("fast"); //animation
			}
		}); //close $.ajax(
		}); //animation
	 }); //close click(
});
