/***********************************************************************************************
HighlightUnhilight - These functions modify the CSS classes for blocks that highlight, such as 	
the left menu and category blocks																
***********************************************************************************************/
var url = document.URL;
var arrUrl = url.split("/");
var currentPageUrl = arrUrl[3].toString().split("?");
var currentPage = currentPageUrl[0].toString();
// TEMPORARY - Categories to be re-arranged in system
if (currentPage.indexOf("-all") > 0) 
{
    currentPage = currentPage.replace("-all", "");
}
// TEMPORARY

// Used for OnMouseOver events
function highlightLeftMenu(divID)
{
    if (document.getElementById(divID)) 
    {
        document.getElementById(divID).setAttribute("class", "leftMenuTopSelected");
        document.getElementById(divID).className = " leftMenuTopSelected";
    }
}

function unhighlightLeftMenu(divID)
{
    if (divID != currentPage) 
    {
        document.getElementById(divID).setAttribute("class", "leftMenuTop");
        document.getElementById(divID).className = " leftMenuTop";
    }
}

function highlightCategoryBlock(divID)
{
    if (document.getElementById) 
    {
        document.getElementById(divID).setAttribute("class", "categoryBlockBottomSelected");
        document.getElementById(divID).className = " categoryBlockBottomSelected";
    }
}

function unhighlightCategoryBlock(divID)
{
    if (divID != currentPage) 
    {
        document.getElementById(divID).setAttribute("class", "categoryBlockBottom");
        document.getElementById(divID).className = " categoryBlockBottom";
    }
}

// Used to "sticky" a selection if the target is the current page
function SelectCurrentMenuBlock() 
{   
    highlightLeftMenu(currentPage);
}