Index: modules/forum/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v
retrieving revision 1.407
diff -u -p -r1.407 forum.module
--- modules/forum/forum.module	2 Jul 2007 17:08:35 -0000	1.407
+++ modules/forum/forum.module	10 Jul 2007 17:39:01 -0000
@@ -978,7 +978,7 @@ function theme_forum_list($forums, $pare
         }
         $description .= "</div>\n";
 
-        $rows[] = array(array('data' => $description, 'class' => 'container', 'colspan' => '4'));
+        $rows[] = array(array('data' => $description, 'class' => 'container', 'id' => 'container-'. $forum->tid, 'colspan' => '4'));
       }
       else {
         $new_topics = _forum_topics_unread($forum->tid, $user->uid);
@@ -997,7 +997,7 @@ function theme_forum_list($forums, $pare
 
         $row = array(
           'data' => array(
-            array('data' => $description, 'class' => 'forum'),
+            array('data' => $description, 'class' => 'forum', 'id' => 'forum-'. $forum->tid),
             array('data' => $forum->num_topics . ($new_topics ? '<br />'. l(format_plural($new_topics, '1 new', '@count new'), "forum/$forum->tid", array('fragment' => 'new')) : ''), 'class' => 'topics'),
             array('data' => $forum->num_posts, 'class' => 'posts'),
             array('data' => _forum_format($forum->last_post), 'class' => 'last-reply'),
@@ -1010,7 +1010,7 @@ function theme_forum_list($forums, $pare
       }
     }
 
-    return theme('table', $header, $rows);
+    return theme('table', $header, $rows, array('id' => 'forum-parent-'. $tid));
 
   }
 
