/*******************************************************************************
 * FILENAME: tabs.js
 *
 * PROJECT:
 *    RestaurantThing
 *
 * FILE DESCRIPTION:
 *    This file has the javascript needed to run the theme tabs (tab widget)
 *
 * COPYRIGHT:
 *    Copyright 2009 6464033 Canada Inc.
 *
 *    This software is the property of 6464033 Canada Inc. and may not be
 *    reused in any manner except under express written permission of
 *    6464033 Canada Inc.
 *
 * CREATED BY:
 *    Paul Hutchinson (24 Jun 2009)
 *
 ******************************************************************************/

/*** DEFINES                  ***/

/*** MACROS                   ***/

/*** TYPE DEFINITIONS         ***/

/*** VARIABLE DEFINITIONS     ***/

/*** FUNCTION PROTOTYPES      ***/

/*******************************************************************************
 * NAME:
 *    Theme_Tabs_SelectTab
 *
 * SYNOPSIS:
 *    function Theme_Tabs_SelectTab(TabID,selected);
 *
 * PARAMETERS:
 *    TabID [I] -- The id attribute of the tab to select/deselect.
 *    selected [I] -- Change the status of the tab to selected (true) or
 *                    unselected (false).
 *
 * FUNCTION:
 *    This function changes the display of a tab (the tab widget) to selected
 *    or not.
 *
 * RETURNS:
 *    NONE
 *
 * SEE ALSO:
 *    
 *******************************************************************************
 * REVISION HISTORY:
 *    Paul Hutchinson (24 Jun 2009)
 *       Created
 ******************************************************************************/
function Theme_Tabs_SelectTab(TabID,selected)
{
   var Tab,li;

   Tab=document.getElementById(TabID+"_div");
   Tab.className=selected?"selected":"";
}

