
var bgColorOff = '#c9a741';
var bgColorOn = '#ffe794';
var colorOff = '#000000';
var colorOn = '#002299';

/*
var bgColorOff = '#006FA0';
var bgColorOn = '#e2c5a5';
var colorOff = '#ffffff';
//var colorOn = '#004b8d';
var colorOn = '#000000';
*/

// Check for the correct DOM implementation.
	
var ieDOM = (document.all) ? 1 : 0;
var nsDOM = (document.layers) ? 1 : 0;
var ns6DOM = (!document.all && document.getElementById) ? 1 : 0;

// contentReady will be true, when all menus are prepared.
var contentLayersReady = 0;

function getContentLayer(layerIndex)
{
  var tCL;
	
	if (nsDOM)
	  tCL = eval('document.contentLayer'+ layerIndex);
	else if (ns6DOM)
	  tCL = document.getElementById('contentLayer' + layerIndex);
	else if (ieDOM)
		tCL = eval('contentLayer' + layerIndex);
		
  return tCL;
}

// NOTE: This should be called AFTER the content layer html has been laid out...
//       In other words, at the end of the page, or at the onLoad event.

function buildContentLayers()
{
  if (!nsDOM && !ieDOM && !ns6DOM) return;
	contentLayers = new Array();
	for (i = 0; i < totalContentLayers; i++)
		contentLayers[i] = getContentLayer(i);

	contentLayersReady = 1;
}

function show(ndx)
{
  //contentLayers[ndx].className = 'collegelayers'; 

  //try
	//{
  //  for (i = 0; i < totalContentLayers; i++)
	//	  if (i != ndx)
	//	    contentLayers[i].className = 'hidden';            			// hide all layers
	//}
	//catch (Exception) {}
	
	// keep the menu item that was rolled over gold
	try
	{
	  for (j = 0; j < 25; j++)
	  {
		  var tMenuItem = document.getElementById('menu_' + j);
		  var tMenuLi = document.getElementById('menu_li_' + j);
		  if (tMenuItem)
		  {
			  if (j == ndx)
			  {
			    //tMenuItem.className = 'over';
				  tMenuItem.style.backgroundColor = bgColorOn;
			    tMenuItem.style.color = colorOn;
			  }
			  else
			  {
				  //tMenuItem.className = '';
			    tMenuItem.style.backgroundColor = bgColorOff;
				  tMenuItem.style.color = colorOff;
			  }
		  }
		  if (tMenuLi)
		  {
			  if (j == ndx)
			  {
			    //tMenuItem.className = 'over';
				  tMenuLi.style.backgroundColor = bgColorOn;
			    tMenuLi.style.color = colorOn;
				  tMenuLi.style.borderLeft = 'solid 1px #b18919';	
				  tMenuLi.style.borderTop = 'solid 1px #b18919';
				  tMenuLi.style.borderBottom = 'solid 1px #b18919';
				  tMenuLi.style.borderRight = 'solid 1px #b18919';
			  }
			  else
			  {
				  //tMenuItem.className = '';
			    tMenuLi.style.backgroundColor = bgColorOff;
				  tMenuLi.style.color = colorOff;
				  tMenuLi.style.borderLeft = 'solid 1px #c9a741';	
				  tMenuLi.style.borderTop = 'solid 1px #c9a741';	
				  tMenuLi.style.borderBottom = 'solid 1px #c9a741';	
				  tMenuLi.style.borderRight = 'solid 1px #b18919'; 
			  }
		  }
	  }
	}
	catch (Exception) {}
}