vendor/gems/ziya-2.1.7/lib/ziya/html_helpers/charts.rb
def ziya_javascript_include_tag( opts={} )
    options = { :swf_path   => chart_path,
                :major_vers => 9,
                :minor_vers => 0,
                :req_vers   => 45 }.merge!( opts )
    
    js = <<-JS
      <script language="javascript" type="text/javascript">
        AC_FL_RunContent = 0;
        DetectFlashVer = 0;
      </script>
      <script src="#{options[:swf_path]}/AC_RunActiveContent.js" language="javascript"></script>
      <script language="javascript" type="text/javascript">
        var requiredMajorVersion = #{options[:major_vers]};
        var requiredMinorVersion = #{options[:minor_vers]};
        var requiredRevision = #{options[:req_vers]};
      </script>
     JS
  end
# generates a javascript tag to include the js script to create object and
# embed tags
generates a javascript tag to include the js script to create object and
embed tags
generates a javascript tag to include the js script to create object and embed tags
def ziya_javascript_include_tag( opts={} )
    options = { :swf_path   => chart_path,
                :major_vers => 9,
                :minor_vers => 0,
                :req_vers   => 45 }.merge!( opts )
    js = <<-JS
      <script language="javascript" type="text/javascript">
        AC_FL_RunContent = 0;
        DetectFlashVer = 0;
      </script>
      <script src="#{options[:swf_path]}/AC_RunActiveContent.js" language="javascript"></script>
      <script language="javascript" type="text/javascript">
        var requiredMajorVersion = #{options[:major_vers]};
        var requiredMinorVersion = #{options[:minor_vers]};
        var requiredRevision = #{options[:req_vers]};
      </script>
     JS
  end
def ziya_javascript_include_tag ( opts = { } ) options = { :swf_path => chart_path , :major_vers => 9 , :minor_vers => 0 , :req_vers => 45 } . merge! ( opts ) js = <<-JS 
      <script language="javascript" type="text/javascript">
        AC_FL_RunContent = 0;
        DetectFlashVer = 0;
      </script>
      <script src=" #{ options [ :swf_path ] } /AC_RunActiveContent.js" language="javascript"></script>
      <script language="javascript" type="text/javascript">
        var requiredMajorVersion =  #{ options [ :major_vers ] } ;
        var requiredMinorVersion =  #{ options [ :minor_vers ] } ;
        var requiredRevision =  #{ options [ :req_vers ] } ;
      </script>
      JS end
generates a javascript tag to include the js script to create object and
embed tags
generates a javascript tag to include the js script to create object and embed tags
opts