// Node object function Node(id, pid, name, url, title, target, icon, iconOpen, open) { this.id = id; this.pid = pid; this.name = name; this.url = url; this.title = title; this.target = target; this.icon = icon; this.iconOpen = iconOpen; this._io = open || false; this._is = false; this._ls = false; this._hc = false; this._ai = 0; this._p; } // Tree object function dTree(objName) { this.config = { target : null, folderLinks : true, useSelection : true, useCookies : true, useLines : true, useIcons : true, useStatusText : false, closeSameLevel : false, inOrder : false } /* this.icon = { root : '../../images/menu/sun.gif', folder : '../../images/menu/ftv2folderclosed.gif', folderOpen : '../../images/menu/ftv2folderopen.gif', node : '../../images/menu/ftv2doc.gif', empty : '../../images/menu/blank.gif', line : '../../images/menu/ftv2vertline.gif', join : '../../images/menu/ftv2node.gif', joinBottom : '../../images/menu/ftv2lastnode.gif', plus : '../../images/menu/ftv2pnode.gif', plusBottom : '../../images/menu/ftv2plastnode.gif', minus : '../../images/menu/ftv2mnode.gif', minusBottom : '../../images/menu/ftv2mlastnode.gif', nlPlus : '../../images/menu/nolines_plus.gif', nlMinus : '../../images/menu/nolines_minus.gif' } */ this.icon = { root : '../../images/tree/base.gif', folder : '../../images/tree/folder.gif', folderOpen : '../../images/tree/folderopen.gif', node : '../../images/tree/page.gif', empty : '../../images/tree/empty.gif', line : '../../images/tree/line.gif', join : '../../images/tree/join.gif', joinBottom : '../../images/tree/joinbottom.gif', plus : '../../images/tree/plus.gif', plusBottom : '../../images/tree/plusbottom.gif', minus : '../../images/tree/minus.gif', minusBottom : '../../images/tree/minusbottom.gif', nlPlus : '../../images/tree/nolines_plus.gif', nlMinus : '../../images/tree/nolines_minus.gif' }; this.obj = objName; this.aNodes = []; this.aIndent = []; this.root = new Node(-1); this.selectedNode = null; this.selectedFound = false; this.completed = false; this.itemColor="#000000"; this.itemBackground="#ffffff"; this.itemOverColor="#0000ff"; this.selectedItemBackground="#ccaacc"; } // Adds a new node to the node array dTree.prototype.add = function(id, pid, name, url, title, target, icon, iconOpen, open) { this.aNodes[this.aNodes.length] = new Node(id, pid, name, url, title, target, icon, iconOpen, open); } // Open/close all nodes dTree.prototype.openAll = function() { this.oAll(true); } dTree.prototype.closeAll = function() { this.oAll(false); } // Outputs the tree to the page dTree.prototype.toString = function() { var str = '