")
doc.write(leftSide)
if (i==foldersNode.length - 1)
doc.write("")
else
doc.write("")
doc.write(foldersNode[i])
doc.write("")
}
}
}
}
// *****************************
// Creates the html code to display a folder and its label
// *****************************
function displayIconAndLabel(foldersNode, doc)
{
doc.write("")
else
doc.write("closedfolder.gif border=noborder>")
doc.write(" | ")
doc.write(""+foldersNode[3]+"")
}
// *****************************
// Recursive functions
// *****************************
//when a parent is closed all children also are
function closeFolders(foldersNode)
{
var i=0
if (!foldersNode[2])
{
for (i=4; i< foldersNode.length; i++)
closeFolders(foldersNode[i])
}
foldersNode[0] = 0
foldersNode[1] = 0
}
//recursive over the tree structure
//called by openbranch
function clickOnFolderRec(foldersNode, folderName)
{
var i=0
//document.write("hello")
//generateDocEntry(0, "Discovery", "blank.htm", "")
if (foldersNode[3] == folderName)
{
if (foldersNode[0])
closeFolders(foldersNode)
else
{
foldersNode[0] = 1
foldersNode[1] = 1
}
}
else
{
if (!foldersNode[2])
for (i=4; i< foldersNode.length; i++)
clickOnFolderRec(foldersNode[i], folderName)
}
}
// *****************************
// Event handlers
// *****************************
//called when the user clicks on a folder
function openBranch(branchName)
{
clickOnFolderRec(foldersTree, branchName)
if (branchName=="Product Requirements" && foldersTree[0]==1)
top.right.location="http://ssaeenat-nt-pc:8080/DMSdocs.htm"
if (branchName=="Resource Repository" )
top.right.location="http://ssaeenat-nt-pc:8080/dmslogo.html"
//&& foldersTree[0]==1)
//if (branchName=="Unification Services" && foldersTree[0]==1)
//top.right.location="http://ssaeenat-nt-pc:8080/"
//if (branchName=="Documentation" && foldersTree[0]==1)
//top.right.location="http://ssaeenat-nt-pc:8080/"
timeOutId = setTimeout("redrawTree()",100)
}
//called after this html file is loaded
function initializeTree()
{
generateTree()
redrawTree()
}
var foldersTree = 0
var timeOutId = 0
generateTree()
// end hiding script -->
|