// Copyright (c) 1999 Quadralay Corporation. All rights reserved. // // Originally based on and portions copyright (c) 1997, Marcelino // Alves Martins (martins@hks.com) "Folder-Tree" script which can // located at http://www.geocities.com/Paris/LeftBank/2178/ function Folder(folderDescription,hreference,topicID){ this.desc=folderDescription; this.hreference=hreference; this.id=-1; this.navObj=0; this.iconImg=0; this.nodeImg=0; this.isLastNode=0; this.isOpen=true; this.iconSrc=imgdir+"tocfldo.gif"; this.children=new Array; this.initialize=initializeFolder; this.setState=setFolderState; this.addChild=addChild; this.createIndex=createEntryIndex; this.hide=hideFolder; this.display=display; this.renderOb=drawFolder; this.totalHeight=totalHeight; this.subEntries=folderSubEntries; this.outputLink=outputFolderLink; this.type="Folder"; this.leftSide=""; this.initialized=false; if(topicID)this.topicID=topicID; } function setFolderState(isOpen){ if (isOpen==this.isOpen)return; if (isNav4){ var totalHeight=0; for (var i=0;i"; else auxEv=""; if(level>0) if(lastNode){ this.leftSide=leftSide+auxEv+""; leftSide=leftSide+""; this.isLastNode=1; }else{ this.leftSide=leftSide+auxEv+""; leftSide=leftSide+""; this.isLastNode=0; } if (nc>0){ level=level+1; for(i=0;i"); } tabDisplay.document.write("\n\t"); tabDisplay.document.write("\n\t\t\n\t\t\t"); tabDisplay.document.write(this.leftSide); this.outputLink(); tabDisplay.document.write(""); tabDisplay.document.write("\n\t\t\t"); tabDisplay.document.write("\n\t\t\n\t
"); if(useTOCTextLinks){ this.outputLink(); tabDisplay.document.write(this.desc+""); }else tabDisplay.document.write(this.desc); tabDisplay.document.write("
"); if(isNav4)tabDisplay.document.write("\n"); if(isIE4){ this.navObj=tabDisplay.document.all["folder"+this.id]; this.iconImg=tabDisplay.document.all["folderIcon"+this.id]; this.nodeImg=tabDisplay.document.all["nodeIcon"+this.id]; }else if(isNav4){ this.navObj=tabDisplay.document.layers["folder"+this.id]; this.iconImg=this.navObj.document.images["folderIcon"+this.id]; this.nodeImg=this.navObj.document.images["nodeIcon"+this.id]; tabDisplay.document.yPos=tabDisplay.document.yPos+this.navObj.clip.height; } } function outputFolderLink(){ if(this.hreference){ tabDisplay.document.write(""); }else tabDisplay.document.write(""); } function addChild(childNode){ this.children[this.children.length]=childNode; return childNode; } function folderSubEntries(){ var i=0; var se=this.children.length; for (i=0;i0) if(lastNode){ this.leftSide=leftSide+""; leftSide=leftSide+""; }else{ this.leftSide=leftSide + ""; leftSide=leftSide+""; }else this.renderOb(""); } function drawItem(){ if(isNav4)tabDisplay.document.write("\n"); tabDisplay.document.write("\n\t"); tabDisplay.document.write("\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t
"); tabDisplay.document.write(this.leftSide); tabDisplay.document.write(""); tabDisplay.document.write(""); tabDisplay.document.write(""); tabDisplay.document.write(""); if(useTOCTextLinks)tabDisplay.document.write(""+this.desc+""); else tabDisplay.document.write(this.desc); tabDisplay.document.write("
"); if(isNav4)tabDisplay.document.write("\n
"); if(isIE4){ this.navObj = tabDisplay.document.all["item"+this.id]; this.iconImg = tabDisplay.document.all["itemIcon"+this.id]; }else if(isNav4){ this.navObj = tabDisplay.document.layers["item"+this.id]; this.iconImg = this.navObj.document.images["itemIcon"+this.id]; tabDisplay.document.yPos=tabDisplay.document.yPos+this.navObj.clip.height; } } function display(){ if(isIE4)this.navObj.style.display="block"; else this.navObj.visibility="show"; } function createEntryIndex(){ this.id=indexOfEntries.length; indexOfEntries[indexOfEntries.length]=this; } function totalHeight(){ var h=this.navObj.clip.height; if (this.isOpen)for(var i=0;i \n"); foldersTree.setState(false); if(foldersTree.initialized){for(var i=0;i