if (Garmin == undefined) var Garmin = {};
Garmin.DataGrid = {
	/**
	 * Pass the Dictionary stuff to the swf's
	 * @ViewBound
	 */
	addUnits: function(properties) {
		$("dataGridPanelSwf").addUnits(properties);
	},
	addContexts: function(properties) {
		$("dataGridPanelSwf").addContexts(properties);
	},

	/**
	 * Adds the measurements
	 * @ViewBound
	 */	
	addMeasurements: function(properties) {
		$("dataGridPanelSwf").addMeasurements(properties);
	},

	/**
	 * Flash calls this to let the controller know that the marker has moved
	 * @ViewBound
	 */
	activityComplete: function() {
		$("dataGridPanelSwf").activityComplete();
	},

	multipleActivities: function(count) {
		player.offsetTop = 30 + (count * 27);
		
		$("dataGridPanel").setStyle( {height: player.offsetTop + "px"} );
		$("buttonPanel").setStyle( {top: 38 + (count * 27) + "px"} );
		$("dataGridPanel").setStyle( {top: 63 + (count * 27) + "px"} );
		
		player.resizeMap();
	},
	
	/**
	 * Flash calls this to let the controller know that the marker has moved.
	 * @param values is an array of formatted displays keyed on context_modifier
	 * @ViewBound
	 */
	moveMarkers: function(values) {
		$("dataGridPanelSwf").replaceData(values);
	}
};6