");outputFrame.close();window.status="";}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// drawBranch() - GENERAL FUNCTION - used by the drawTree() function to recursively draw all// visable nodes in the tree structure.function drawBranch(startNode,structureString) {var children = extractChildrenOf(startNode);var currentIndex = 1;while (currentIndex <= children.length) {// The value for "currentIndex" determines how branches are open !!!// && (currentIndex < 5 || currentIndex == 9 || currentIndex == 10)) {if (firstTreeCall == true) {children[currentIndex].open = 1}outputFrame.write(structureString);if (children[currentIndex].type == 'link') {if (children[currentIndex].icon == "") {var imageString = defaultLinkIcon;} else {var imageString = children[currentIndex].icon}if (children[currentIndex].target == "") {var targetFrame = defaultTargetFrame;} else {var targetFrame = children[currentIndex].target}if (currentIndex != children.length) {outputFrame.write("")} else {outputFrame.write("")}if (children[currentIndex].parent == "hist_eng" || children[currentIndex].parent == "ref_guide" ) {outputFrame.write("" + children[currentIndex].name + "
\n")} else {outputFrame.write("" + children[currentIndex].name + "
\n")}} else {var newStructure = structureString;if (children[currentIndex].iconClosed == "") {var iconClosed = "img-folder-closed-" + structureStyle + ".gif"} else {var iconClosed = children[currentIndex].iconClosed}if (children[currentIndex].iconOpen == "") {var iconOpen = "img-folder-open-" + structureStyle + ".gif"} else {var iconOpen = children[currentIndex].iconOpen}if (currentIndex != children.length) {if (children[currentIndex].open == 0) {outputFrame.write("")outputFrame.write("" + children[currentIndex].name + "
\n")} else {outputFrame.write("");outputFrame.write("" + children[currentIndex].name + "
\n");newStructure = newStructure + "";drawBranch(children[currentIndex].id,newStructure); }} else {if (children[currentIndex].open == 0) {outputFrame.write("")outputFrame.write("" + children[currentIndex].name + "
\n")} else {outputFrame.write("");outputFrame.write("" + children[currentIndex].name + "
\n");newStructure = newStructure + "";drawBranch(children[currentIndex].id,newStructure); }}}currentIndex++;}}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// toggleFolder() - GENERAL FUNCTION - opens/closes folder nodes.function toggleFolder(id,status) {var nodeIndex = indexOfNode(id); treeData[nodeIndex].open = status; timeOutId = setTimeout("drawTree()",100)}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// indexOfNode() - GENERAL FUNCTION - finds the index in the treeData Collection of the node// with the given id.function indexOfNode(id) {var currentIndex = 1;while (currentIndex <= treeData.length) {if ((treeData[currentIndex].type == 'root') || (treeData[currentIndex].type == 'folder')) {if (treeData[currentIndex].id == id) {return currentIndex}} currentIndex++} return -1}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// extractChildrenOf() - GENERAL FUNCTION - extracts and returns a Collection containing all// of the node's immediate children nodes.function extractChildrenOf(node) {var children = new Collection();var currentIndex = 1; while (currentIndex <= treeData.length) {if ((treeData[currentIndex].type == 'folder') || (treeData[currentIndex].type == 'link')) {if (treeData[currentIndex].parent == node) {children.add(treeData[currentIndex])}}currentIndex++} return children}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// Collection() - OBJECT - a dynamic storage structure similar to an Array.function Collection() {this.length = 0; this.add = add; return this}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// add() - METHOD of Collection - adds an object to a Collection.function add(object) {this.length++; this[this.length] = object}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// RootNode() - OBJECT - represents the top-most node of the hierarchial tree.function RootNode(id,name,url,target,icon) {this.id = id;this.name = name;this.url = url;this.target = target;this.icon = icon;this.type = 'root';return this}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// FolderNode() - OBJECT - represents a node which branches to contain other nodes.function FolderNode(id,parent,name,iconClosed,iconOpen) {this.id = id;this.parent = parent;this.name = name;this.iconClosed = iconClosed;this.iconOpen = iconOpen;this.type = 'folder';this.open = 0;return this}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// LinkNode() - OBJECT - a node that represents a link using a URL.function LinkNode(parent,name,url,target,icon) {this.parent = parent;this.name = name;this.url = url;this.target = target;this.icon = icon;this.type = 'link';return this}// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// PopUp() - OBJECT - opens a window which display a link using a URL.function PopUp(url) {var win_width = screen.width - 200var win_height = screen.height - 260var win_left = (screen.width-win_width) - 20var win_top = ((screen.height-win_height) / 2) - 70 var Parameter="scrollbars=yes,location=no,resizable=yes,directories=no,status=yes,menubar=yes,toolbar=yes,left=" + win_left + ",top=" + win_top + ",width=" + win_width + ",height=" + win_height; pop = window.open(url, '', Parameter); pop = true;// if ((( navigator.appName == 'Netscape' ) && (parseFloat(navigator.appVersion) >= 3)) ||( parseFloat(navigator.appVersion) >= 4 ))// {// pop.focus();// }// else// {// pop = true;// } }// End Hiding -->var firstTreeCall = true
English Linguistics in Essen (2024)
Top Articles
Guide to Fitting the Right Bra for You
Ode to the Ikea Hot Dog. Plus exactly how to make one!
Find EmblemHealth Therapists and Psychologists in New York, NY
Emblem Health | Mental Health Coverage | Zencare
Latest Posts
Article information
Author: Jonah Leffler
Last Updated:
Views: 6533
Rating: 4.4 / 5 (65 voted)
Reviews: 88% of readers found this page helpful
Author information
Name: Jonah Leffler
Birthday: 1997-10-27
Address: 8987 Kieth Ports, Luettgenland, CT 54657-9808
Phone: +2611128251586
Job: Mining Supervisor
Hobby: Worldbuilding, Electronics, Amateur radio, Skiing, Cycling, Jogging, Taxidermy
Introduction: My name is Jonah Leffler, I am a determined, faithful, outstanding, inexpensive, cheerful, determined, smiling person who loves writing and wants to share my knowledge and understanding with you.