$(document).ready(function() {


   // make product boxes same height
   var $tallest = 0;
   $('.productInfoBox').each( function(i) {
      if($(this).height() > $tallest)
         $tallest = $(this).height();
   });
   $('.productInfoBox').each( function(i) {
      $(this).height($tallest);
   });



   // make bodyRightSidebar and bodyContentOuter same height
   tallest1 = $('#bodyRightSidebar').height();
   tallest2 = $('#bodyContentOuter').height();
   if(tallest1 > tallest2){tallest2 = tallest1};
   jQuery('#bodyInnerWrap>div').css({'height': tallest2});
   
   
   
   // make homepage info boxes same height
   var $tallest = 0;
   $('.oneThirdDiv').each( function(i) {
      if($(this).height() > $tallest)
         $tallest = $(this).height();
   });
   $('.oneThirdDiv').each( function(i) {
      $(this).height($tallest);
   });
   
   
   
   
   
   // accordian rightnav
   if(!$('#nav87').hasClass("active")) {
      $('.verticalMenu ul').css("display", "none");
   }
   
   $('#nav87>a').click(function(){
      if( $('.verticalMenu ul').is(':hidden') ) { 
         $('.verticalMenu ul').addClass('activated').slideDown();
      }
      else {
         $('.verticalMenu ul').removeClass('activated').slideUp();
      }
      return false; //Prevent the browser jump to the link anchor
   
   });
 
});

