$(document).ready(function(){
  initInFieldLabels();
  addClasses();
  stripeTable();
});

function initInFieldLabels() {
  $("#search-box label, #newsletter-signup label").inFieldLabels({ fadeOpacity:0.2 });
}

function addClasses() {
  $('#sidebar li:last, #content-spotlight .module:last, .lower-your-risk-ateoc-transcript #content dl:last,  .lower-your-risk-ateoc-interior #content dl:last, #footer .nav li:last, body.lower-your-risk-ol-landing .module:last, body.lower-your-risk-ol-video-landing .module:last').addClass('last-child');
  $('#content .excerpt:last').addClass('last-excerpt');
  $('.lower-your-risk-ateoc-transcript #content dl, .lower-your-risk-ateoc-interior #content dl').each(function() {
    $(this).find('dd').filter(':first').addClass('first-child');
  });
  $('body.lower-your-risk #sidebar li:first-child').addClass('first-child');
}

function stripeTable() {
  $('.lower-your-risk-recipe table tr:even').addClass('alt');
}

