    # File lib/fusioncharts_helper.rb, line 108
      def render_chart_html(chart_swf,str_url,str_xml,chart_id,chart_width,chart_height,debug_mode,&block)
        chart_width=chart_width.to_s
        chart_height=chart_height.to_s

        debug_mode_num="0"
        if debug_mode==true
          debug_mode_num="1"
        end

        str_flash_vars=""
        if str_xml==""
          str_flash_vars="chartWidth="+chart_width+"&chartHeight="+chart_height+"&debugmode="+debug_mode_num+"&dataURL="+str_url
          logger.info("The method used is setDataURL.The URL is " + str_url)
        else
          str_flash_vars="chartWidth="+chart_width+"&chartHeight="+chart_height+"&debugmode="+debug_mode_num+"&dataXML="+str_xml
          logger.info("The method used is setDataXML.The XML is " + str_xml)
        end
        concat("\t\t<!-- START Code Block for Chart "+chart_id+" -->\n\t\t",block.binding)

        object_attributes={:classid=>"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"}
        object_attributes=object_attributes.merge(:codebase=>"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0")
        object_attributes=object_attributes.merge(:width=>chart_width)
        object_attributes=object_attributes.merge(:height=>chart_height)
        object_attributes=object_attributes.merge(:id=>chart_id)

        param_attributes1={:name=>"allowscriptaccess",:value=>"always"}
        param_tag1=content_tag("param","",param_attributes1)

        param_attributes2={:name=>"movie",:value=>chart_swf}
        param_tag2=content_tag("param","",param_attributes2)

        param_attributes3={:name=>"FlashVars",:value=>str_flash_vars}
        param_tag3=content_tag("param","",param_attributes3)

        param_attributes4={:name=>"quality",:value=>"high"}
        param_tag4=content_tag("param","",param_attributes4)

        embed_attributes={:src=>chart_swf}
        embed_attributes=embed_attributes.merge(:FlashVars=>str_flash_vars)
        embed_attributes=embed_attributes.merge(:quality=>"high")
        embed_attributes=embed_attributes.merge(:width=>chart_width)
        embed_attributes=embed_attributes.merge(:height=>chart_height).merge(:name=>chart_id)
        embed_attributes=embed_attributes.merge(:allowScriptAccess=>"always")
        embed_attributes=embed_attributes.merge(:type=>"application/x-shockwave-flash")
        embed_attributes=embed_attributes.merge(:pluginspage=>"http://www.macromedia.com/go/getflashplayer")

        embed_tag=content_tag("embed","",embed_attributes)

        concat(content_tag("object","\n\t\t\t\t"+param_tag1+"\n\t\t\t\t"+param_tag2+"\n\t\t\t\t"+param_tag3+"\n\t\t\t\t"+param_tag4+"\n\t\t\t\t"+embed_tag+"\n\t\t",object_attributes),block.binding)
        concat("\n\t\t<!-- END Code Block for Chart "+chart_id+" -->\n",block.binding)
      end