// Expanding category tree
function toggleBranch(id)
    {
    if (document.getElementById(id+"_children").style.display == "none")
        {
        // Turn div on and show a minus
        document.getElementById(id+"_children").style.display = "";
        document.getElementById(id+"_node").innerHTML="<img src=\"../common/tree/node_minus.gif\" width=\"11\" height=\"15\" alt=\"Click to collapse node\">";
        }
    else
        {
        // Turn div off and show a plus
        document.getElementById(id+"_children").style.display = "none";
        document.getElementById(id+"_node").innerHTML="<img src=\"../common/tree/node_plus.gif\" width=\"11\" height=\"15\" alt=\"Click to expand node\">";
        }
    }
