/************************************************************************** Copyright (c) 2001 Geir Landrö (drop@destroydrop.com) JavaScript Tree - www.destroydrop.com/hugi/javascript/tree/ Version 0.96 This script can be used freely as long as all copyright messages are intact. **************************************************************************/ // Arrays for nodes and icons var nodes = new Array(); var openNodes = new Array(); var icons = new Array(6); // Loads all icons that are used in the tree function preloadIcons() { icons[0] = new Image(); icons[0].src = "img/plus.gif"; icons[1] = new Image(); icons[1].src = "img/plusbottom.gif"; icons[2] = new Image(); icons[2].src = "img/minus.gif"; icons[3] = new Image(); icons[3].src = "img/minusbottom.gif"; icons[4] = new Image(); icons[4].src = "img/folder.gif"; icons[5] = new Image(); icons[5].src = "img/folderopen.gif"; } function charger(nom_page1) { parent.frames["mainFrame"].window.location=nom_page1; } // Create the tree function createTree(arrName, startNode, openNode) { nodes = arrName; if (nodes.length > 0) { preloadIcons(); if (startNode == null) startNode = 0; if (openNode != 0 || openNode != null) setOpenNodes(openNode); if (startNode !=0) { var nodeValues = nodes[getArrayId(startNode)].split("|"); document.write("" + nodeValues[2] + ""); } else document.write("