$(document).ready(function() {
  

 // Adds and removes search text
 $('#header #site-search input[type="text"]').addClass('watermark');
 $('#header #site-search input[type="text"]').focus(function(){
 $(this).filter(function(){
 return $(this).val() === '' || $(this).val() === 'Search';
 }).removeClass('watermark').addClass('text').val('');
 }).blur(function(){
 $(this).filter(function(){
 return $(this).val() === '';
 }).removeClass('text').addClass('watermark').val('Search');
 });

 
 // Show-Hide for FAQ page

    // trigger the function when clicking on an assigned element
    $("h2.toggle").click(function () {
        // check the visibility of the next element in the DOM
        if ($(this).next().is(":hidden")) {
            $(this).next().slideDown("fast"); // slide it down
        } else {
            $(this).next().hide(); // hide it
        }
    });
});
