Index: modules/forum/forum-list.tpl.php
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum-list.tpl.php,v
retrieving revision 1.1
diff -u -p -r1.1 forum-list.tpl.php
--- modules/forum/forum-list.tpl.php  22 Jul 2007 07:01:07 -0000  1.1
+++ modules/forum/forum-list.tpl.php  25 Jul 2007 12:39:16 -0000
@@ -8,6 +8,7 @@
  * - $forums: An array of forums to display.
  *
  * Each $forum in $forums contains:
+ * - $tid: A unique term ID for the forum, available as key for each array value.
  * - $forum->is_container: Is TRUE if the forum can contain other forums. Is
  *   FALSE if the forum can contain only topics.
  * - $forum->depth: How deep the forum is in the current hierarchy.
@@ -38,12 +39,12 @@
   <tbody>
   <?php // Keep a row count for striping. ?>
   <?php $row = 0; ?>
-  <?php foreach ($forums as $forum): ?>
+  <?php foreach ($forums as $tid => $forum): ?>
     <tr class="<?php print $row % 2 == 0 ? 'odd' : 'even';?>">
       <?php if ($forum->is_container): ?>
-        <td colspan="4" class="container">
+        <td colspan="4" id="container-<?php print $tid ?>" class="container">
       <?php else: ?>
-        <td class="forum">
+        <td id="forum-<?php print $tid ?>" class="forum">
       <?php endif; ?>
           <?php /* Enclose the contents of this cell with X divs, where X is the
                  * depth this forum resides at. This will allow us to use CSS
