///////////////////////////////////////////////////////////////////////////// // JS Nav Tools // By: Paul Gareau // Email: paul@xhawk.net // Date: 8/16/2000 // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // ///////////////////////////////////////////////////////////////////////////// /*********************************************************************/ // general var path = "/" // tabs var tab_font = "Times New Roman, Times, serif" var tab_width = "" var up_arrow = "^ " var show_parent = true var show_sibs = true var tab_color = "#06710C" //green var tab_font_color = "#FFFFDD" //lite yellow var open_tab_color = "#06710C" //green var open_tab_font_color = "#F8FB7D" //yellow // buttons var button_font = "Times New Roman, Times, serif" var button_width = "" var button_color = "#06710C" //green var button_font_color = "#F8FB7D" //yellow var selected_button_color = "#06710C" //green var selected_button_font_color = "#FFB442" //orange // links var splitter = ":" var link_font = "Times New Roman, Times, serif" var splitter_color = "#006600" var link_color = "#888888" // dropdown var dropdown_font = "Times New Roman, Times, serif" var dropdown_indent = " -" ///////"#C99B2B" //tan ///////"#745818" //dark brown /////// "#FFFF66" //yellow // "#000000" //balck // "#06710C" //green // "#FFE9B9" ///lite yellow /*********************************************************************/ //FORMAT: path to page, page name, parent page name/ links = new Array ( new link("../index.php","Home",""), new link("http://www.mondovisio.com/~winning/pages/Early_Childhood_Caries20.php?project_id=20&project_category=Services&project_subcat=Conditions","Services",""),new link("http://www.mondovisio.com/~winning/pages/Welcome4.php?project_id=4&project_category=Our_office&project_subcat=Mission","Our office",""),new link("http://www.mondovisio.com/~winning/pages/Early_Childhood_Cavities21.php?project_id=21&project_category=Healthy_Mouths&project_subcat=Cavities","Healthy Mouths",""),new link("http://www.mondovisio.com/~winning/pages/Fun26.php?project_id=26&project_category=Fun&project_subcat=Fun at Winning with Smiles","Fun",""),new link("http://www.mondovisio.com/~winning/pages/Auburn_Pediatric_Dentists14.php?project_id=14&project_category=Emergencies&project_subcat=Contact Help","Emergencies",""), new link("../index.php","Home","Home"), new link("http://www.mondovisio.com/~winning/pages/Auburn_Pediatric_Dentists14.php?project_id=14&project_category=Emergencies&project_subcat=Contact Help","Contact Help","Emergencies"),new link("http://www.mondovisio.com/~winning/pages/Welcome4.php?project_id=4&project_category=Our_office&project_subcat=Mission","Mission","Our office"),new link("http://www.mondovisio.com/~winning/pages/Filling_Materials17.php?project_id=17&project_category=Services&project_subcat=Treatment","Treatment","Services"),new link("http://www.mondovisio.com/~winning/pages/Juice_is_a_Major_Problem29.php?project_id=29&project_category=Healthy_Mouths&project_subcat=Diet & Snacks","Diet & Snacks","Healthy Mouths"),new link("http://www.mondovisio.com/~winning/pages/Brush_or_Floss27.php?project_id=27&project_category=Healthy_Mouths&project_subcat=Home Care","Home Care","Healthy Mouths"),new link("http://www.mondovisio.com/~winning/pages/Early_Childhood_Cavities21.php?project_id=21&project_category=Healthy_Mouths&project_subcat=Cavities","Cavities","Healthy Mouths"),new link("http://www.mondovisio.com/~winning/pages/One_Year_Old28.php?project_id=28&project_category=Services&project_subcat=Visits","Visits","Services"),new link("http://www.mondovisio.com/~winning/pages/Gastroseophageal_Reflux23.php?project_id=23&project_category=Services&project_subcat=Conditions","Conditions","Services"),new link("http://www.mondovisio.com/~winning/pages/Eating_with_braces19.php?project_id=19&project_category=Services&project_subcat=Orthodontics","Orthodontics","Services"),new link("http://www.mondovisio.com/~winning/pages/Fun26.php?project_id=26&project_category=Fun&project_subcat=Fun at Winning with Smiles","Fun at Winning with Smiles","Fun") ) /*********************************************************************/ /*********************************************************************/ /*********************************************************************/ function link(path, name, parent) { this.path = path this.name = name this.parent = parent this.props = new Array (path, name, parent) } /*********************************************************************/ //WARNING: do_dropdown does not work with netscape! function do_dropdown(level) { document.writeln ("") document.writeln ("
") document.writeln ("
") } /*********************************************************************/ function do_links(parent) { var i=0 var links_length = links.length; for(num=0; num0){ document.writeln ("" + splitter + "") } document.writeln ("") document.writeln ("" + links[num].name + "") i++ } } } /*********************************************************************/ function do_table() { var links_length = links.length document.writeln ("") for (row=0; row") for (col=0; col") document.writeln (links[row].props[col]) document.writeln (" ") } document.writeln ("") } document.writeln ("
") } /*********************************************************************/ function do_tabs(section, page) { var children = false var level = "" var links_length = links.length //find the parent of the current section for( num=0; num") for( num=0; num") document.write ("" + up_arrow + "") document.write ("  ") document.write ("") document.write ("" + links[num].name + "") document.write ("  ") document.writeln ("") document.writeln ("") } if(links[num].parent == level) { document.writeln ("") document.write ("  ") document.write ("") document.write ("" + links[num].name + "") document.write ("  ") document.writeln ("") document.writeln ("") } } } document.writeln ("") //create buttons document.writeln (" document.writeln ("
") document.writeln ("") for(num=0; num") document.write ("  ") document.write ("") document.write ("" + links[num].name + "") document.write ("  ") document.writeln ("") children = true } } if(! children) document.writeln ("") document.writeln ("
") //
") document.writeln ("") } /*********************************************************************/ //dumb version function do_tree(level) { var links_length = links.length document.writeln ("") } //recursive version - this doesnt work. not sure why... function do_tree_r(level) { var links_length = links.length for(num=0; num" + name + "") do_tree_r(links[num].name) } } }