$(document).ready(function() {
  function showDropDownMenu() {
    var offset = $(this).offset();
	$(this).children('div.secondary-nav').css({"left":(offset.left)+"px","top":(offset.top+25)+"px"}).fadeIn('fast');
  }

  function hideDropDownMenu() {
    $(this).children('div.secondary-nav').fadeOut('fast');
  }

  var configDropDownMenu = {
    interval: 100,
    sensitivity: 4,
    over: showDropDownMenu,
    timeout: 250,
    out: hideDropDownMenu
  };

  $('.main-nav-temp ul li').hoverIntent(configDropDownMenu);
  
  $('.faqs a.question').click(
    function(event) {
      event.preventDefault();
      if ($(this).next('.answer').is(':visible')) {
        $(this).html($(this).html().replace('-', '+'));
      }  else {
        $(this).html($(this).html().replace('+', '-'));
      }
      $(this).next('.answer').toggle();
    } 
  );
});

