home *** CD-ROM | disk | FTP | other *** search
- /*
- Function locates all DIV tags and loops through them
- looking for child in classname and sets those tags visibility to none
- this will happen at onload event as seen at bottom
- */
- function DimensionProperties(){
- tempColl = document.all.tags("DIV");
- for (i=0; i<tempColl.length; i++) {
- if (tempColl(i).className == "child") tempColl(i).style.display = "none";
- }
- }
-
- function PropertiesExpand($1,$2) {
- Expanda = eval($1 + "a");
- Expanda.blur()
- ExpandChild = eval($1 + "Child");
- if ($2 != "top") {
- ExpandTree = eval($1 + "Tree");
- ExpandFolder = eval($1 + "Folder");
- }
- /*
- On Expanding of a branch:
- If Second variable is set to top then topopen.gif is shown
- Else if variable is last then because this would mark the
- end of a branch then a Lminus.gif is used to finish branch
- Else the branch still should continue and would show a
- Tminus.gif
- */
- if (ExpandChild.style.display == "none") {
- ExpandChild.style.display = "block";
- if ($2 != "top") {
- if ($2 == "last") { ExpandTree.src = "images/Lminus.gif"; }
- else { ExpandTree.src = "images/Tminus.gif"; }
- ExpandFolder.src = "images/openfoldericon.gif";
- }
- else { mTree.src = "images/topopen.gif"; }
- }
- else {
- /*
- On Collapsing of a branch:
- If Second variable is set to top then top.gif is shown
- Else if variable is last then because this would mark the
- end of a branch then a LPlus.gif is used to finish branch
- Else the branch still should continue and would show a
- TPlus.gif
- */
- ExpandChild.style.display = "none";
- if ($2 != "top") {
- if ($2 == "last") { ExpandTree.src = "images/Lplus.gif"; }
- else { ExpandTree.src = "images/Tplus.gif"; }
- ExpandFolder.src = "images/foldericon.gif";
- }
- else { mTree.src = "images/top.gif"; }
- }
- }
- // Sets common document properties for Style Sheet
- with (document) {
- write("<STYLE TYPE='text/css'>");
- write(".parent { font: 12px/13px; Times; text-decoration: none; color: black }");
- write(".child { font:12px/13px Times; display:none }");
- write(".item { color: black; text-decoration:none; cursor: hand }");
- write(".highlight { color: blue; text-decoration:none }");
- write(".icon { margin-right: 5 }")
- write("</STYLE>");
- // Sets Mouse Events
- onmouseover = MouseOver ;
- onmouseout = MouseOut ;
- }
- // Function for mouse over event where element is highlighted
- function MouseOver() {
- var ElementSrc = window.event.srcElement ;
- if (ElementSrc.className == "item") {
- window.event.srcElement.className = "highlight";
- }
- }
- // Function for mouse out event where element is un-highlighted
- function MouseOut() {
- var ElementSrc = window.event.srcElement ;
- if (ElementSrc.className == "highlight") {
- window.event.srcElement.className = "item";
- }
- }
-
-
- isExpanded = false;
- onload = DimensionProperties;
-