/*
     Copyright 2005 Speartek, Inc.

     All rights reserved.

     All materials contained in this file are protected by United States copyright law
     and may not be reproduced, distributed, transmitted, displayed, published or
     broadcast without the prior written permission of Speartek, Inc.
     You may not alter or remove this notice.
*/

//The following line is critical for menu operation, and MUST APPEAR ONLY ONCE.
menunum=0;
menus=new Array();
HeaderMenus = new Array();
_d=document;
function addmenu()
{
	menunum++;
	menus[menunum]=menu;
	if(menus[menunum][0].indexOf('HeaderMenu') > -1) HeaderMenus[HeaderMenus.length] = menus[menunum][0];
}

function dumpmenus()
{
	mt="<script language=JavaScript>";

	for(a=1;a<menus.length;a++)
	{
		mt+=" menu"+a+"=menus["+a+"];"
	}
	mt+="<\/script>";_d.write(mt)
}
function hide_menu(mnu){
   mn=getMenuByName(mnu)
   SDiv("menu"+mn,0)
}

function show_menu(mnu){
   mn=getMenuByName(mnu)
   SDiv("menu"+mn,1)
}

function ShowMenus()
{
	for(var i=0; i<HeaderMenus.length; i++)
	{
		show_menu(HeaderMenus[i]);
	}
}

function HideMenus()
{
	for(var i=0; i<HeaderMenus.length; i++)
	{
		hide_menu(HeaderMenus[i]);
	}
} 
//Please leave the above line intact. The above also needs to be enabled if it not already enabled unless you have more than one _array.js file
