jQuery(document).ready(function() {

  // Hiding all sub menus in left column
  jQuery('#nav-left .sub-menu').hide();
  
  // Showing them when we click on the parent element
  jQuery('#nav-left .sub-menu').parent().find('> a').click(function(){
    jQuery(this).parent().find('.sub-menu').slideToggle(0);
    return false;
  });


  // Making every puff as high as the wrapper it is in
  puff1 = jQuery('.puffar .puff-1').height();
  puff2 = jQuery('.puffar .puff-2').height();
  puff3 = jQuery('.puffar .puff-3').height();
  puff4 = jQuery('.puffar .puff-4').height();

  if(puff1 > puff2) {
    jQuery('.puffar .puff-2').css({
      'height' : puff1 + 'px'
    });
  } else if (puff1 < puff2) {
    jQuery('.puffar .puff-1').css({
      'height' : puff2 + 'px'
    });
  }

  if(puff3 > puff4) {
    jQuery('.puffar .puff-4').css({
      'height' : puff3 + 'px'
    });
  } else if(puff3 < puff4) {
    jQuery('.puffar .puff-3').css({
      'height' : puff4 + 'px'
    });
  }

});
