﻿/*

Created By:     Matt Bergstein
Date:           8/25/09
Description:    Used to set the style for the current page location within the left nav hierarchy

*/

function setCurrentNavSelected(subCatDivId)
{
    if (subCatDivId != '')
    {
        var currentPageNav = document.getElementById(subCatDivId);

        if (currentPageNav != null)
        {
            currentPageNav.className = 'leftNavChildSelected';
        }
        else
        {
            subCatDivId = subCatDivId.replace('LeftNav', 'ChildLeftNav');
            
            currentPageNav = document.getElementById(subCatDivId);
            
            if (currentPageNav != null)
            {
                currentPageNav.className = 'leftNavSubChildSelected';
            }
        }
    }
    
}