Index: swfobject_api.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/swfobject_api/swfobject_api.module,v
retrieving revision 1.11
diff -u -p -r1.11 swfobject_api.module
--- swfobject_api.module	29 Jun 2007 14:48:13 -0000	1.11
+++ swfobject_api.module	19 Sep 2008 15:05:00 -0000
@@ -105,7 +105,9 @@ function theme_swfobject_api($url, $para
 
   $html  = '<div id="flashcontent_'. $name .'">'. $base_params['no_flash'] ."</div>\n";
 
-  $html .= "<script>var so = new SWFObject('$url', 'swf-". $name ."', '". $params['width'] ."', '". $params['height'] ."', '". $params['version'] ."', '". $params['bg_color'] ."');\n";
+  $html .= "<script>
+    //<![CDATA[
+    var so = new SWFObject('$url', 'swf-". $name ."', '". $params['width'] ."', '". $params['height'] ."', '". $params['version'] ."', '". $params['bg_color'] ."');\n";
 
   // we can remove these all now since they
   unset($params['width'], $params['height'], $params['no_flash'], $params['version'], $params['bg_color'], $params['express_redirect']);
@@ -128,8 +130,10 @@ function theme_swfobject_api($url, $para
       $html .= " so.setAttribute('xiRedirectUrl', '". $redirect ."');\ns";
      }
    }
-  $html .= ' $(document).ready(function () { so.write("flashcontent_'. $name .'");}); </script>';
+  $html .= ' $(document).ready(function () { so.write("flashcontent_'. $name .'");});
+  //]]>  
+  </script>';
   
   return $html;
 } 
- 
\ No newline at end of file
+ 
