﻿/*
Toggle More / Less Text.
Swaps the toggle text depending on it's current state.
*/

function swapToggleText(toggleText, item)
{    
    if (toggleText.innerHTML.match("more"))
    {
        toggleText.innerHTML = "less";
    }
    else if (toggleText.innerHTML.match("less"))
    {
        toggleText.innerHTML = "more";
    }
        
    /* Call animatedCollapse */
    animatedcollapse.toggle(item);
    
}

/*
Used for the href value of the more / less link.
This is needed as adding '#' for the href value causes Opera to try and list the directory contents.
*/
function expand()
{
    // Do Nothing.
}



