--- sites/all/modules/thickbox/thickbox.module	2008-02-08 19:45:13.000000000 +1100
+++ sites/all/modules/thickbox/thickboxpatch2.module	2008-05-17 10:06:19.000000000 +1000
@@ -108,8 +108,21 @@ function thickbox_login() {
  * Loads the various js and css files.
  */
 function _thickbox_doheader() {
-  $path = drupal_get_path('module', 'thickbox');
-  drupal_add_css($path .'/thickbox.css');
+	// check for the existence of a theme thickbox.css and a theme thickbox.js file and use them instead.
+	// allows for theme based override of thickbox to allow style and animation.
+	if (strpos($_GET['q'], 'admin/build/block') === FALSE) {
+    $css = path_to_theme() .'/thickbox.css';
+    $js = path_to_theme() .'/thickbox.js';
+    if (!file_exists($css)) {
+		  $css = drupal_get_path('module', 'thickbox') .'/thickbox.css'; // use the module css if theme css not exists
+    }
+    if (!file_exists($js )) {
+		  $js = drupal_get_path('module', 'thickbox') .'/thickbox.js'; // use the module js if theme js not exists
+    }
+    drupal_add_css($css, 'module', 'screen');
+  }
+
+  $path = drupal_get_path('module', 'thickbox'); 
 
   // Insert translated strings as javascript settings.
   $tb_msg = array(
@@ -132,7 +145,7 @@ function _thickbox_doheader() {
     drupal_add_js($path .'/thickbox_auto.js');
   }
 
-  drupal_add_js($path .'/thickbox.js');
+  drupal_add_js($js);
 }
 
 /**
