\n"); outputFrame.write("\n"); outputFrame.write(prefixHTML + "\n\n"); if (treeData[1].target == "") {var targetFrame = defaultTargetFrame} else {var targetFrame = treeData[1].target} if (treeData[1].icon == "") {var imageString = defaultImageURL + 'img-globe-' + structureStyle + '.gif'} else {imageString = defaultImageURL + treeData[1].icon} outputFrame.write("" + treeData[1].url + " " + treeData[1].name + "
\n"); drawBranch("root",""); outputFrame.write("
\n" + suffixHTML + "\n"); outputFrame.write("
\n\n"); outputFrame.close(); window.status="OmenTree v1.0 - (C) 1998 Colin Tucker/OmenSoft - http://omensoft.home.ml.org"; } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // 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) { outputFrame.write(structureString); if (children[currentIndex].type == 'link') { if (children[currentIndex].icon == "") { var imageString = defaultImageURL + defaultLinkIcon; } else {var imageString = defaultImageURL + 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("") } outputFrame.write("" + children[currentIndex].url + " " + 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("Click to open this folder") outputFrame.write("Click to open this folder " + children[currentIndex].name + "
\n") } else { outputFrame.write("Click to close this folder"); outputFrame.write("Click to close this folder " + children[currentIndex].name + "
\n"); newStructure = newStructure + ""; drawBranch(children[currentIndex].id,newStructure); } } else { if (children[currentIndex].open == 0) { outputFrame.write("Click to open this folder") outputFrame.write("Click to open this folder " + children[currentIndex].name + "
\n") } else { outputFrame.write("Click to close this folder"); outputFrame.write("Click to close this folder " + 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} // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // loadData() - GENERAL FUNCTION - user defined data and variables exist in this function. function loadData() { // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Tree structure definitions: // Syntax: // ROOT NODE: // treeData.add(new RootNode("","","","","")); // NOTE: There must be only ONE root node, and it MUST be the FIRST node. // and can be left null - defaults will be used. // FOLDER NODE: // treeData.add(new FolderNode("","","","","")); // NOTE: Folder nodes MUST have a valid parent node, and they SHOULD have children nodes. // and can be left null - OmenTree will use the // default images. // LINK NODE: // treeData.add(new LinkNode("","","","","")); // NOTE: and may be left null - defaults specified in the user // defined variables section will be used. // Consult the OmenTree documentation for further assistance. treeData = new Collection(); treeData.add(new RootNode('root','Home','start.html','','')); treeData.add(new FolderNode('Wir','root','Über uns','','')); treeData.add(new LinkNode('Wir','Die Idee...','pages/the_idea.html','','')); treeData.add(new FolderNode('member','root','Members','','')); treeData.add(new FolderNode('Thomas','member','Thomas','','')); treeData.add(new LinkNode('Thomas','Über mich','pages/Thomas/about_me.html','','')); treeData.add(new LinkNode('Thomas','Mein Golf 3','pages/Thomas/my_car.html','','')); treeData.add(new LinkNode('Thomas','Galerie','/pages/Thomas/galerie.html','','')); treeData.add(new FolderNode('Mathias','member','Mathias','','')); treeData.add(new LinkNode('Mathias','Über mich','/pages/Mathias/about_me.html','','')); treeData.add(new LinkNode('Mathias','Mein Passat 35i','/pages/Mathias/my_car.html','','')); treeData.add(new LinkNode('Mathias','Galerie','/pages/Mathias/galerie.html','','')); treeData.add(new FolderNode('Marcel','member','Marcel','','')); treeData.add(new LinkNode('Marcel','Über mich','/pages/Marcel/about_me.html','','')); treeData.add(new LinkNode('Marcel','Mein Bora','/pages/Marcel/my_car.html','','')); treeData.add(new LinkNode('Marcel','Galerie','/pages/Marcel/galerie.html','','')); treeData.add(new FolderNode('Rico','member','Rico & Jessi','','')); treeData.add(new LinkNode('Rico','Über uns','/pages/Rico/about_me.html','','')); treeData.add(new LinkNode('Rico','Unser Passat 3BG','/pages/Rico/my_car.html','','')); treeData.add(new LinkNode('Rico','Galerie','/pages/Rico/galerie.html','','')); treeData.add(new FolderNode('Danie','member','Danie','','')); treeData.add(new LinkNode('Danie','Über mich','/pages/Danie/about_me.html','','')); treeData.add(new LinkNode('Danie','Mein Auto','/pages/Danie/my_car.html','','')); treeData.add(new LinkNode('Danie','Galerie','/pages/Danie/galerie.html','','')); treeData.add(new FolderNode('Robert','member','Robert','','')); treeData.add(new LinkNode('Robert','Über mich','/pages/Robert/about_me.html','','')); treeData.add(new LinkNode('Robert','Mein Astra G','/pages/Robert/my_car.html','','')); treeData.add(new LinkNode('Robert','Galerie','/pages/Robert/galerie.html','','')); treeData.add(new FolderNode('Franzi','member','Franzi','','')); treeData.add(new LinkNode('Franzi','Über mich','/pages/Franzi/about_me.html','','')); treeData.add(new LinkNode('Franzi','Mein Astra G','/pages/Franzi/my_car.html','','')); treeData.add(new LinkNode('Franzi','Galerie','/pages/Franzi/galerie.html','','')); treeData.add(new FolderNode('Nico','member','Nico','','')); treeData.add(new LinkNode('Nico','Über mich','pages/Nico/about_me.html','','')); treeData.add(new LinkNode('Nico','Mein Passat 3B','pages/Nico/my_car.html','','')); treeData.add(new LinkNode('Nico','Galerie','/pages/Nico/galerie.html','','')); treeData.add(new FolderNode('Ronny','member','Ronny','','')); treeData.add(new LinkNode('Ronny','Über mich','pages/Ronny/about_me.html','','')); treeData.add(new LinkNode('Ronny','Mein Passat 3BG','pages/Ronny/my_car.html','','')); treeData.add(new LinkNode('Ronny','Galerie','/pages/Ronny/galerie.html','','')); treeData.add(new FolderNode('gaeste','root','Gäste','','')); treeData.add(new FolderNode('Raschi','gaeste','Raschi','','')); treeData.add(new LinkNode('Raschi','Galerie','pages/Gaeste/Raschi/galerie.html','','')); treeData.add(new FolderNode('Hahn','gaeste','Hahn','','')); treeData.add(new LinkNode('Hahn','Galerie','/pages/Gaeste/Hahn/galerie.html','','')); treeData.add(new FolderNode('Andre','gaeste','Andre','','')); treeData.add(new LinkNode('Andre','Galerie','/pages/Gaeste/Andre/galerie.html','','')); treeData.add(new FolderNode('Flo','gaeste','Flo','','')); treeData.add(new LinkNode('Flo','Galerie','/pages/Gaeste/Flo/galerie.html','','')); treeData.add(new FolderNode('Matti','gaeste','Matti','','')); treeData.add(new LinkNode('Matti','Galerie','/pages/Gaeste/Matti/galerie.html','','')); treeData.add(new FolderNode('treffen','root','Treffen ','','')); treeData.add(new LinkNode('treffen','Palmbeach 02-2007','/pages/Treffen/palmbeach.html','','')); treeData.add(new LinkNode('treffen','Tierpark 05-2007','/pages/Treffen/tierpark.html','','')); treeData.add(new LinkNode('treffen','Cottbus 07-2007','/pages/Treffen/cottbus.html','','')); treeData.add(new LinkNode('treffen','Tierpark 02-2008','/pages/Treffen/tierparkII.html','','')); treeData.add(new FolderNode('links','root','Links ','','')); treeData.add(new FolderNode('werkstatt','links','Werkstatt','','')); treeData.add(new LinkNode('werkstatt','Köhler und Lehmann','http://www.kl24.net/','','')); treeData.add(new LinkNode('werkstatt','GeParts','http://www.geparts.de/','','')); treeData.add(new LinkNode('werkstatt','Lackiererei Deerberg','http://www.fuerstenwalde-spree.de/data/firmen/deerberg.htm','','')); treeData.add(new FolderNode('foren','links','Foren','','')); treeData.add(new LinkNode('foren','Polotreff.de','http://Www.Polotreff.de','','')); treeData.add(new LinkNode('foren','Golf3.de','http://Www.Golf3.de','','')); treeData.add(new LinkNode('foren','35i.net','http://Www.35i.net','','')); treeData.add(new LinkNode('foren','vwgolftreff.de','http://Www.vwgolftreff.de','','')); treeData.add(new LinkNode('foren','golfv.de','http://Www.golfv.de','','')); treeData.add(new LinkNode('foren','passat3b.de','http://Www.passat3b.de','','')); treeData.add(new LinkNode('foren','astra4ever.net','http://www.astra4ever.net/','','')); treeData.add(new LinkNode('foren','astra-coupe.net','http://www.astra-coupe.net/','','')); treeData.add(new FolderNode('sonstige','links','Freunde','','')); treeData.add(new LinkNode('sonstige','wakeBcrew chaosteam','http://www.chaosteamdriver.dyndns.org','','')); treeData.add(new LinkNode('root','Gästebuch','http://www.flf-book.de/Benutzer/theblueone.htm','','')); treeData.add(new LinkNode('root','Webmaster','mailto:th_mey@web.de','','')); // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // User defined variables: structureStyle = 0; backgroundColor = '#FFFFFF'; // sets the bgColor of the menu textColor = '#000000'; // sets the color of the text used in the menu linkColor = '#0000AA'; // sets the color of any text links (usually defined in additional HTML sources) aLinkColor = '#FF0000'; // sets the active link color (when you click on the link) vLinkColor = '#880088'; // sets the visited link color backgroundImage = ''; defaultTargetFrame = 'pageFrame'; defaultImageURL = ''; defaultLinkIcon = 'img-page-globe.gif'; omenTreeFont = 'MS Sans Serif,Arial,Helvetica'; omenTreeFontSize = 1; prefixHTML = ""; suffixHTML = ""; prefixHTML = ""; suffixHTML = "
Copyright © 2007
"; } //--> //