// JavaScript Document
function changeOpenmenu(id){ 
//create an array of UL classnames 
var all_uls = new Array(); 
all_uls[0]='ul_one'; 
all_uls[1]='ul_two'; 
all_uls[2]='ul_three'; 
all_uls[3]='ul_four'; 
all_uls[4]='ul_five'; 
all_uls[5]='ul_six'; 
all_uls[6]='ul_seven'; 
all_uls[7]='ul_eight'; 
all_uls[8]='ul_nine'; 
all_uls[9]='ul_ten'; 
all_uls[10]='ul_eleven'; 
//all_uls[11]='ul_twelve'; 
//all_uls[12]='ul_thirteen'; 
//all_uls[13]='ul_fourteen'; 
//all_uls[14]='ul_fifteen'; 
//create an array of LI classnames 
var all_lis = new Array(); 
all_lis[0] = 'li_one'; 
all_lis[1] = 'li_two'; 
all_lis[2] = 'li_three'; 
all_lis[3] = 'li_four'; 
all_lis[4] = 'li_five'; 
all_lis[5] = 'li_six'; 
all_lis[6] = 'li_seven'; 
all_lis[7] = 'li_eight'; 
all_lis[8] = 'li_nine'; 
all_lis[9] = 'li_ten'; 
all_lis[10] = 'li_eleven'; 
//all_lis[11] = 'li_twelve'; 
//all_lis[12] = 'li_thirteen'; 
//all_lis[13] = 'li_fourteen'; 
//all_lis[14] = 'li_fifteen'; 
//loop through all the ULs and LIs setting everything back to default 
for(i=0;i<all_uls.length;i++){ 
document.getElementById(all_uls[i]).style.display = 'none'; 
//document.getElementById(all_lis[i]).childNodes[0].style.background = '#059033'; 
document.getElementById(all_lis[i]).childNodes[0].style.background = '#efecdb';
document.getElementById(all_lis[i]).childNodes[0].style.color = '#333'; 
} 
//change the selected UL(submenu) to display:block and the matching LI(parent link)to black bkgd 
the_ul = document.getElementById(all_uls[id]); 
the_li = document.getElementById(all_lis[id]); 
the_ul.style.display = 'block'; 
the_li.childNodes[0].style.background = '#000'; 
the_li.childNodes[0].style.color = '#fff'; 
//blur the selected button 
clearButtons(); 
} 
function clearButtons() { 
if (!document.getElementsByTagName) return; 
var anchors = document.getElementsByTagName("a"); 
for (var i=0; i<anchors.length; i++) { 
var anchor = anchors[i]; 
anchor.blur(); 
} 
} 


//menu_status = new Array(); 
//var all_uls = new Array(); 
function showHideorig(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);
        if(all_uls[theid] != 'show') {
           switch_id.className = 'show';
           all_uls[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           all_uls[theid] = 'hide';
        }
    }
}
// isobar at 02 Apr 2006 4:55:16 AM CDT  isobar (  Author/Admin)
//said this on 02 Apr 2006 4:55:16 AM CDT 
//Very nice! I modified the script slightly to hide sub-menus for non-clicked items;



