var chart;
if (Garmin == undefined) var Garmin = {};
Garmin.Chart = {
	/**
	 * Pass the Dictionary stuff to the swf's
	 * @ViewBound
	 */
	addUnits: function(properties) {
		chart.addUnits(properties);
	},
	addContexts: function(properties) {
		chart.addContexts(properties);
	},
	
	/**
	 * Flash calls this to let the controller know that the activity has finished loading
	 * Now safe for the chart to request contexts from the server and build it's display
	 * @ViewBound
	 */
	activityComplete: function() {
		chart.activityComplete();
	},

	/**
	 * Flash calls this to let the controller know that the marker has moved
	 * @ViewBound
	 */
	moveMarkers: function(index) {
		chart.moveMarkers(index);
	}
};
Behaviour.addLoadEvent(function() {
	chart = $('chartPanelSwf');
});