//*****************************************************************************
// Copyright (C) 2001 Microsoft Corporation. All rights reserved.
//
// File:  IE_DOM.js
// Owner: Microsoft Corporation
//
// Description:
//   JS file that activate tab head and tab content for NS browser
//   when users click a tab head.
//
//*****************************************************************************

//---- [Private] Show tab head and tab content
function NCTab_showTab(tab) 
{
	document.layers[tab].visibility = 'visible';
}

//----[Private]Hide tab head and tab content
function NCTab_hideTab(tab)
{	
	document.layers[tab].visibility = 'hidden';
}
//---- [Public]Check division ID in an array and activate a tab head and tab content
//Hide the other tab head and tab content
function NCTab_displayTab(tab) 
{       
	for (var i = 0; i < aTabHead.length; i++) 
	{
		if (aTabHead[i] == tab) 
		{
			NCTab_showTab(aTabHead[i]);
            NCTab_showTab(aTabContent[i]);
            NCTab_hideTab(aTabActiveHead[i]);
         }
         else 
         {
            NCTab_hideTab(aTabHead[i]);
            NCTab_hideTab(aTabContent[i]);
			NCTab_showTab(aTabActiveHead[i]);
         }
    }
}