js/mktree/mktree.js
function convertTrees() {
	setDefault("treeClass","mktree");
	setDefault("nodeClosedClass","liClosed");
	setDefault("nodeOpenClass","liOpen");
	setDefault("nodeBulletClass","liBullet");
	setDefault("nodeLinkClass","bullet");
	setDefault("preProcessTrees",true);
	if (preProcessTrees) {
		if (!document.createElement) { return; } // Without createElement, we can't do anything
		var uls = document.getElementsByTagName("ul");
		if (uls==null) { return; }
		var uls_length = uls.length;
		for (var uli=0;uli<uls_length;uli++) {
			var ul=uls[uli];
			if (ul.nodeName=="UL" && ul.className==treeClass) {
				processList(ul);
				ul.setAttribute( "data-xdh-mktree", "handled" );
			}
		}
	}
}
function convertTrees() {
	setDefault("treeClass","mktree");
	setDefault("nodeClosedClass","liClosed");
	setDefault("nodeOpenClass","liOpen");
	setDefault("nodeBulletClass","liBullet");
	setDefault("nodeLinkClass","bullet");
	setDefault("preProcessTrees",true);
	if (preProcessTrees) {
		if (!document.createElement) { return; } // Without createElement, we can't do anything
		var uls = document.getElementsByTagName("ul");
		if (uls==null) { return; }
		var uls_length = uls.length;
		for (var uli=0;uli<uls_length;uli++) {
			var ul=uls[uli];
			if (ul.nodeName=="UL" && ul.className==treeClass) {
				processList(ul);
				ul.setAttribute( "data-xdh-mktree", "handled" );
			}
		}
	}
}
function convertTrees ( ) { setDefault ( "treeClass" , "mktree" ) ; setDefault ( "nodeClosedClass" , "liClosed" ) ; setDefault ( "nodeOpenClass" , "liOpen" ) ; setDefault ( "nodeBulletClass" , "liBullet" ) ; setDefault ( "nodeLinkClass" , "bullet" ) ; setDefault ( "preProcessTrees" , true ) ; if ( preProcessTrees ) { if ( ! document . createElement ) { return ; } // Without createElement, we can't do anything var uls = document . getElementsByTagName ( "ul" ) ; if ( uls == null ) { return ; } var uls_length = uls . length ; for ( var uli = 0 ; uli < uls_length ; uli ++ ) { var ul = uls [ uli ] ; if ( ul . nodeName == "UL" && ul . className == treeClass ) { processList ( ul ) ; ul . setAttribute ( "data-xdh-mktree" , "handled" ) ; } } } }
Search the document for UL elements with the correct CLASS name, then process them
Search the document for UL elements with the correct CLASS name then process them