--- tableofcontents.js	2008-06-21 20:11:12.000000000 +0200
+++ tableofcontents_js_showhide.js	2009-02-21 17:22:20.000000000 +0100
@@ -2,6 +2,7 @@
 
 if (Drupal.jsEnabled) {
   $(document).ready( function () {
+    $('div.toc-title').append(' [<a href="#" class="toc-toggle">' + Drupal.t('hide') + '</a>]');
     $('a.toc-toggle').click(function() {
       $('.toc-list').slideToggle();
 	  var text = $('a.toc-toggle').text();
@@ -13,4 +14,5 @@ if (Drupal.jsEnabled) {
 	  return false;
 	});
   });
-}
\ No newline at end of file
+}
+
--- tableofcontents.module	2008-12-14 04:08:02.000000000 +0100
+++ tableofcontents_js_showhide.module	2009-02-21 17:12:05.000000000 +0100
@@ -390,7 +390,7 @@ function tableofcontents_theme() {
  */
 function theme_tableofcontents_toc($toc, $options, $files = array()) {
   $output = "<div class=\"toc\">\n<div class=\"toc-title\">" .
-  $options["title"] . " [<a href=\"#\" class=\"toc-toggle\">" . t('hide') . "</a>]</div>\n<div class=\"toc-list\">\n<" .
+  $options["title"] . "</div>\n<div class=\"toc-list\">\n<" .
   $options["list"] . ">\n";
 
   $depth = $options["minlevel"];
