/*
 * This class contains all functions related to the dashboard.
 * 
 * Copyright (C) 2009 WorkSmart Labs, Inc.
 */

/**
 * 
 *
 * @author Vera Kern <vera@worksmartlabs.com>
 */

// Menu displayed when the total run circle is displayed in normal mode
var DASHBOARD_MENU = new Array ('export_workout_history');

/**
 * Creates a new Dashboard object.
 */
function Dashboard() {
    var exportHistoryLink = el('export_workout_history');
    setClickHandler(exportHistoryLink, this, this.exportWorkoutHistory);
} 

Dashboard.prototype.hideDashboard = function() {
    hideAll(DASHBOARD_MENU);
}

Dashboard.prototype.showDashboard = function() {
	displayAll(DASHBOARD_MENU);
}

Dashboard.prototype.exportWorkoutHistory = function() {
    window.location.href = 'dashboard/export_workout_history.php';
}