$(function(){
  /** Main Nav Hover States **/
  $('#main-nav-wrapper > .ul-wrap').each(function(){
    $(this).mouseenter(function(){
      $(this).addClass('nav-menu-hover');
    }).mouseleave(function(){
      $(this).removeClass('nav-menu-hover');
    });
  });
  
  /** Home Page Boxes **/
  $('#gutter').each(function(){
  	// Make all gutter boxes the same height
    var maxHeight = 0;
    $('.blog-box-content').each(function(){
        // Correct for extra padding of blog
    	var myHeight = $(this).height() + 13;
    	if(myHeight > maxHeight){
    		maxHeight = myHeight;
    	}
    });
    $('.expanding-box-content').each(function(){
    	var myHeight = $(this).height();
    	if(myHeight > maxHeight){
    		maxHeight = myHeight;
    	}
    });
    $('.expanding-box-content').each(function(){        
    	$(this).animate({'height':maxHeight});
    });
    $('.blog-box-content').each(function(){
    	// Correct for extra padding of blog     
    	$(this).animate({'height':maxHeight - 13});
    });
  });
});