if (Garmin == undefined) var Garmin = {};

/**
 * @class ActivityChart
 *
 * Just a simple way to include the ButtonControl on a page.  
 * 
 * Pass values that you deem fit into the constructor and as params 
 */
ActivityChart = function(container){}; // for jsdoc
var ActivityChart = Class.create();
ActivityChart.prototype = {
    initialize: function(container, id, params) {
    	this.id = id;
    	this.swfFile = '/include/flex/button/ButtonControl.swf';
    	this.container = $(container);
        this.chartSWF = Garmin.FlashUtil.addFlashObject(this.swfFile, this.id, params);
    },

	getChartElement: function() {
		return this.chartSWF;
	}
};