diff --git a/lib/exe/js.php b/lib/exe/js.php
index 69b0ba27d99b861eb5403c535c2dd36e9aae3608..a55783a6169d9f3b32b54da79bd46ff2d1ef6975 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -77,6 +77,7 @@ function js_out(){
 
     // add some global variables
     print "var DOKU_BASE   = '".DOKU_BASE."';";
+    print "var DOKU_TPL    = '".DOKU_TPL."';";
 
     //FIXME: move thes into LANG
     print "var alertText   = '".js_escape($lang['qb_alert'])."';";
diff --git a/lib/scripts/script.js b/lib/scripts/script.js
index 88761f219f97501a69cf9d0bffbe12f9db88916f..2d6b67551fc9de8a53d64d21411a3f4e16ac454c 100644
--- a/lib/scripts/script.js
+++ b/lib/scripts/script.js
@@ -245,14 +245,14 @@ function addTocToggle() {
 
     var showimg     = document.createElement('img');
     showimg.id      = 'toc__show';
-    showimg.src     = DOKU_BASE+'lib/images/arrow_down.gif';
+    showimg.src     = DOKU_TPL+'/images/toc_show.gif';
     showimg.alt     = '+';
     showimg.onclick = toggleToc;
     showimg.style.display = 'none';
 
     var hideimg     = document.createElement('img');
     hideimg.id      = 'toc__hide';
-    hideimg.src     = DOKU_BASE+'lib/images/arrow_up.gif';
+    hideimg.src     = DOKU_TPL+'/images/toc_hide.gif';
     hideimg.alt     = '-';
     hideimg.onclick = toggleToc;
 
diff --git a/lib/tpl/default/images/toc_hide.gif b/lib/tpl/default/images/toc_hide.gif
new file mode 100644
index 0000000000000000000000000000000000000000..d491c18dbad8eac13e16db4cc44ed9dbab88677c
Binary files /dev/null and b/lib/tpl/default/images/toc_hide.gif differ
diff --git a/lib/tpl/default/images/toc_show.gif b/lib/tpl/default/images/toc_show.gif
new file mode 100644
index 0000000000000000000000000000000000000000..ff13b95850d608cd1f64d7f9cd75ca12daf0dae4
Binary files /dev/null and b/lib/tpl/default/images/toc_show.gif differ