/* FILE ARCHIVED ON 21:31:37 Jan 16, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 3:56:24 Jul 28, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /*############################################################ ########### DHTML MENU v1.0 by Andres Gonzalez ########### ############################################################## *- you are free to use this code as you wish, as long as you keep these comments on the top of the code. ############################################################*/ var timeout = 400; // time in ms for menu before menu hides var clear; // holds timeout funtion for menu to be cleared // submenus var menuSubs = new Array(5); // total menu items -1 (0 is first) menuSubs[1] = 'mn1Sub'; // list all submenus in array format, following their order menuSubs[2] = 'mn2Sub'; function mnuTgl(tgl,menu) { if (tgl == 1) { clearTimeout(clear); mnuHideOth(menu); mnuShow(menu); }else{ clear = setTimeout("mnuHide('"+menu+"')",timeout); } } function mnuShow(m){ document.getElementById(m).style.display = "block"; } function mnuHide(m){ document.getElementById(m).style.display = "none"; } function mnuHideOth(m){ for(x=0; x <= menuSubs.length; x++){ //loop through array if(m.indexOf(x) == -1 && menuSubs[x] != null){ // if its not the current menu item && submenu exists mnuHide(menuSubs[x]); } } }