title: equal height on change menu vertical jquery
body: <p>In a page with three columns, I've used equalheight script for equalize the height of columns, but each time I open a vertical accordion menu the script doesn't refresh the heights of all columns.
  Here is the code of script:</p>
  
  <pre><code>function equalHeight (blocks) {
  var currentTallest = 0,
       currentRowStart = 0,
       rowDivs = new Array(),
       $el,
       topPosition = 0;
  
   $(blocks).each(function() {
  
     $el = $(this);
     topPostion = $el.position().top;
  
     if (currentRowStart != topPostion) {
  
       for (currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) {
         rowDivs[currentDiv].height(currentTallest);
       }
  
       rowDivs.length = 0;
       currentRowStart = topPostion;
       currentTallest = $el.height();
       rowDivs.push($el);
  
     } else {
  
  
       rowDivs.push($el);
       currentTallest = (currentTallest &lt; $el.height()) ? ($el.height()) : (currentTallest);
  
    }
  
     for (currentDiv = 0 ; currentDiv &lt; rowDivs.length ; currentDiv++) {
       rowDivs[currentDiv].height(currentTallest);
     }
  
   });
  </code></pre>
  
  <p>the sample page </p>
  
  <pre><code>http://www.esteticasilvia.it/responsive/index.shtml
  </code></pre>
  
  <p>Thanks for suggestions</p>