$('html').addClass('js');

$(document).ready(function() {
  
  $('.lightbox a').fancyZoom({scaleImg: true, closeOnClick: true});
  
  $('.toggleNext').click(function() {
    $(this).next().slideToggle().toggleClass('toggled');
  });
  
  // Avoid Widows on headers - based on Widont Wordpress plugin
  // (/ (\S+)$/,'&nbsp;$1')
  // Replace (/*/) a _space_ followed by _any non-whitespace character_ (\S) at the end of the string ($)
  // with a non-breaking space (&nbsp;) and the first ($1) match value ()
  
    // var widont = '';
    //  $('h1,h2').each(function() {
    //    widont  = $(this).text().replace(/ (\S+)$/,'&nbsp;$1');
    //    $(this).html(widont);
    //  });

  // FAQs //
  $('#q').liveUpdate('.faqs').focus();
  $('.faqs dd').hide();
  
});
