﻿jQuery(function () {
  // Setup FAQ 
  // Set globals
  var NoCustomArrows = true;
  if (jQuery(".faqWord > img").size() > 0) { NoCustomArrows = false; }
  // Cache elements
  var FaqItems = jQuery(".faqWord");
  var FaqContent = jQuery(".faqAnswerDef");
  // Set CustomArrow class
  if (NoCustomArrows) {
    FaqItems.addClass("NoCustomArrows");
  }
  // Close all
  FaqContent.hide();
  // Bind events
  FaqItems.bind("click", function (event) {
    var ContextContainer = jQuery(this).closest("div.faqItem");
    ContextContainer.find(".faqAnswerDef").slideToggle();
    ContextContainer.find(".faqWord").find("img").end().toggleClass("Selected");
  });
});
