Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.470
diff -u -r1.470 theme.inc
--- includes/theme.inc	22 Feb 2009 17:55:29 -0000	1.470
+++ includes/theme.inc	26 Mar 2009 23:49:46 -0000
@@ -1290,6 +1290,8 @@
  *
  * @param $attributes
  *   An array of HTML attributes to apply to the table tag.
+ *   A class of 'sticky-disabled' will prevent the javascript-based sticky table headers 
+ *   from being applied to this table.
  * @param $caption
  *   A localized string to use for the <caption> tag.
  * @param $colgroups
@@ -1328,7 +1330,7 @@
 function theme_table($header, $rows, $attributes = array(), $caption = NULL, $colgroups = array()) {
 
   // Add sticky headers, if applicable.
-  if (count($header)) {
+  if (count($header) && strpos($attributes['class'], 'sticky-disabled') !== FALSE) {
     drupal_add_js('misc/tableheader.js');
     // Add 'sticky-enabled' class to the table to identify it for JS.
     // This is needed to target tables constructed by this function.
