$(document).ready(function() {
  var subNavCount = $('ul#subnav li').size();
  if (subNavCount < 2) {
    $('ul#subnav').hide();
  };
  $('<div id="traildiv"></div>').appendTo('body');
  var tallestFooterBox = 0;
  $('#footerBoxes > .footerBox').each(function(){
      tallestFooterBox = Math.max(tallestFooterBox, $(this).height());
	  }).height(tallestFooterBox);
  $("#newsFeed ul").cycle({
    fx: 'scrollUp',
    timeout: '5000',
    slideExpr: 'li.item'
  });
  $('.thickbox').colorbox({
    iframe: true,
    width: 450,
    height: 570
  });
});

