/* FILE ARCHIVED ON 8:56:15 Jan 17, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 17:24:46 Sep 5, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /*--------------------------------------------------| | WP-dTree 2.2 | www.silpstream.com/blog/ | |---------------------------------------------------| | Copyright (c) 2006 Christopher Hwang | | Release Date: July 2006 | | Modifications: | | v2.2 Added support for generating page trees | | Added support for excluding specific posts | | from tree | | Updated option menu | | Rewrite of base code | | Fixed support for tooltips on non-linked | | folders | | Added option for not displaying posts in | | archive tree | | v2.1 Patch to work with Regulus theme | | Ability to change open/close all link | | Set folders as links option | | Highlight current position in blog | | v2.0 Support for scriptaculous effects added | | Category based menu added | | Support for dTree options was built in | | Option menu added to admin panel | | v1.0 Work arounds added for wordpress beautified | | permalinks. | |--------------------------------------------------*/ /*--------------------------------------------------| | dTree 2.05 | www.destroydrop.com/javascript/tree/ | |---------------------------------------------------| | Copyright (c) 2002-2003 Geir Landrö | | | | This script can be used freely as long as all | | copyright messages are intact. | | | | Updated: 17.04.2003 | |--------------------------------------------------*/ // 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 : false, useSelection : false, useCookies : true, useLines : true, useIcons : true, useStatusText : false, closeSameLevel : false, inOrder : false } this.icon = { root : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/base.gif', folder : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/folder.gif', folderOpen : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/folderopen.gif', node : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/page.gif', empty : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/empty.gif', line : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/line.gif', join : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/join.gif', joinBottom : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/joinbottom.gif', plus : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/plus.gif', plusBottom : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/plusbottom.gif', minus : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/minus.gif', minusBottom : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/minusbottom.gif', nlPlus : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/nolines_plus.gif', nlMinus : 'https://webarchive.library.unt.edu/eot2008/20090117085615/http://www.infoagua.org/wp-content/plugins/wp-dtree/dtree-img/nolines_minus.gif' }; this.obj = objName; this.aNodes = []; this.aIndent = []; this.root = new Node(-1); this.selectedNode = null; this.selectedFound = false; this.completed = false; }; // 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 = '