var fusion_chart_width = '';
var fusion_chart_height = '';

function showChart() {  
  if (document.getElementById('chartdiv')) {
    var chart = new FusionCharts("./resources/fusion-chart/FCF_Gantt.swf", "ChartId", fusion_chart_width, fusion_chart_height);

    chart.setDataURL(encodeURIComponent("index.php?page=fusion_chart&goal_id=" + active_graph_goal_id + "&goal_repetition_id=" + active_graph_goal_repetition_id + "&start_date=" + active_graph_start_date + "&end_date=" + active_graph_end_date + "&width_percentage=" + width_percentage + "&view=" + view));
    chart.render("chartdiv");
  }
}

onLoadCalls.push(new onLoadCall('showChart',''));
