$(function() {

	closeAll();

	init();

	function closeAll() {
		$(".faqAnswer").hide();
	}

	function init() {

		$(".faqEntry").click(function() {

			setFaqEntryToShow($(this));

  },function(){
  });

	function setFaqEntryToShow(faqEntry) {

		$(".faqAnswer").hide("normal");
		$(".faqEntry").children("h3").css("background-image","url(../images/bullet_faq_closed.gif)");

		faqEntry.children(".faqAnswer").show("normal");

		faqEntry.children("h3").css("background-image","url(../images/bullet_faq_open.gif)");

		faqEntry.unbind("click");

		faqEntry.click(function() {

			setFaqEntryToHide(faqEntry);

		});


	}

	function setFaqEntryToHide(faqEntry) {

		faqEntry.children("h3").css("background-image","url(../images/bullet_faq_closed.gif)");

		faqEntry.children(".faqAnswer").hide("normal");

		faqEntry.unbind("click");

		faqEntry.click(function() {

				setFaqEntryToShow(faqEntry);

		});

	}

	$(".faqAnswer").click(function() {
		$(this).toggle("normal");
  },function(){
  });

	}

});
