
function
FooterChart(container, data)
{
  this.div = pbu.$("<div class='chartbox_container'><span class='ul'><span class='ur'></span></span><div style='background-color:#819a05'><div id='footerchart_flash'></div></div><span class='ll'><span class='lr'></span></span></div>")[0];
  container.appendChild(this.div);
  this.chart = data.chart;
  pixboxGlobal.footerChart = this; // global ref for flash callback
  this.applyUpdate();
}

FooterChart.prototype.ofcGetData = function(id) {
    return pbu.$.toJSON(this.chart);
}

FooterChart.prototype.applyUpdate = function() {
  var flashvars = {"get-data":"pixboxGlobal.footerChart.ofcGetData", "id":"data1"};
  swfobject.embedSWF("/flash/ofc2-20090526.swf", "footerchart_flash", "370", "210", "9.0.0", "expressInstall.swf", flashvars);
}

