--- open_flash_chart_api.module.orig	2009-07-06 17:23:37.000000000 +0200
+++ open_flash_chart_api.module	2009-07-06 17:23:28.000000000 +0200
@@ -111,6 +111,17 @@
   }
 
   /**
+   * Set no flash text
+   */
+  function set_alternate_text($text) {
+  	$this->alternate_text = $text;
+  }
+
+  function get_alternate_text() {
+  	return $this->alternate_text;
+  }
+
+  /**
   * Set the unique_id to use for the flash object id.
   */
   function set_unique_id()  {
@@ -964,9 +975,16 @@
       $js_path = drupal_get_path('module', 'open_flash_chart_api') .'/js/swfobject.js';
       drupal_add_js($js_path);
       
-      $tmp[] = '<div id="'. $this->unique_id .'"></div>';
+      $tmp[] = '<div id="'. $this->unique_id .'">';
+
+      if (! empty($this->alternate_text)) {
+      	$tmp[] = $this->alternate_text;
+      }
+
+      $tmp[] = '</div>';
+
       $tmp[] = '<script type="text/javascript">';
-      $tmp[] = 'var so = new SWFObject("'. $this->swf_path .'/open-flash-chart.swf", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';
+      $tmp[] = 'var so = new SWFObject("'. $this->swf_path .'/open-flash-chart.swf?detectflash=false", "ofc", "'. $this->width .'", "'. $this->height .'", "9", "#FFFFFF");';
       $tmp[] = 'so.addVariable("variables","true");';
     }
     else {
