Help with show/hide

Help with show/hide

Hello

I have this script

function initMenu() {
  $p('.show-hide-layer').hide();
  $p('.layer-btn').click(
    function() {
        $p(this).next().slideToggle('900', 'easeOutQuart');   
      }
    );
  }
$p(document).ready(function() {initMenu();});


});


and the html
<tr><td>
<a class="layer-btn">testlink</a>         
</td>
<tr>
<tr class="show-hide-layer">
<td>
content
</td>
</tr>


I want this function to work on every row but I just cant make it work at all.