﻿var startList;
startList = function() {
    var i; var navRoot; var node;
	navRoot = document.getElementById("tree");
	
    for (i=0; i<navRoot.childNodes.length; i++) {
	    node = navRoot.childNodes[i];
	    if (node.nodeName=="LI") {
		    node.onmouseover=function() {
			    this.className+=" over";
		    };
		    node.onmouseout=function() {
			    this.className=this.className.replace(" over", "");
		    };
	    }
    }
	
    var ullist = navRoot.getElementsByTagName("ul");
    var j; var ulnode; var ullinode; var k;
    for (j=0; j<ullist.length; j++)
    {
        ulnode = ullist[j];
        for (k=0; k<ulnode.childNodes.length; k++)
        {
            ullinode = ulnode.childNodes[k];
	        if (ullinode.nodeName=="LI") {
		        ullinode.onmouseover=function() {
			        this.className+=" over";
		        };
		        ullinode.onmouseout=function() {
			        this.className=this.className.replace(" over", "");
		        };
	        }
        }
    }
};