--- img_assist.module	2010-10-02 13:25:47.680000038 +1300
+++ 2-img_assist.module	2010-10-02 13:20:31.590000039 +1300
@@ -591,9 +591,13 @@ function img_assist_loader() {
   $output .= "<head>\n";
   $output .= '<title>'. t('Add image') ."</title>\n";
   $output .= drupal_get_js();
+  $output .= '<script type="text/javascript">
+	  $(document).ready(function() {
+	  initLoader();
+	});</script>';
   $output .= "</head>\n\n";
   
-  $output .= '<frameset rows="38, *" onload="initLoader()" frameborder="0" border="0" framespacing="0">' . "\n";
+  $output .= '<frameset rows="38, *" frameborder="0" border="0" framespacing="0">' . "\n";
   $output .= '<frame name="img_assist_header" src="" class="img_assist_header" noresize="noresize" />' . "\n";
   $output .= '<frame name="img_assist_main" src="" class="img_assist_main" noresize="noresize" />' . "\n";
   $output .= "</frameset>\n";
