<!--
	//
	// This contains the functions neccesary to make the look of the menu change
	// based on the location of the mouse pointer.
	// The functions require the menu item be with in a <div> section. It considers
	// <a> tags to mark the menu items. The items must reference by an index
	// that is ascending starting with 0.
	//
	//Add or remove links within the <Div>
	//Make Sure to increase the index in each function call with each link 
	//If you remove a link, modify all the links that are effected.
	//They must be sequential from zero.
	// 
	// By using the menuItem function you do not have to keep track of the
	// index. It will handle the index for you.
	//
	//The functions are called with the arguments of the menu index
	//followed by the optional menu identifier. The menu id of a will
	//be used if argument is not passed.
	//
	//This set of functions will allow for five (5) menus on a page.
	//
var itemCount = 0;		// counter for entries in in the menu used for array pointer
var menuId = new String('a');	// appended character for menu name

				// Arrays used to navigate menues 
var a=new Array();
var b=new Array();
var c=new Array();
var d=new Array();
var e=new Array();


// Set the entry counter to zero for each menu.
// Create the <div id=" "> and <ul> statements to mark start of the menu list

//
function MenuStart()
{
	itemCount = 0;
	
	document.write ('<DIV ID=\"cont'+ menuId + '\">');
	document.write ('<table class=\"menu\">');
	
}


// Create the </ul> statement to end list of menu items
// Create the </div> statement to mark end of the menu list
// set the menu indicator to reflect the next valid menu for the page.
// initialize value of arrays used to navigate menues
function MenuEnd()
{
	document.write ('<\/table>');
	document.write ('<\/div>');
	
	if (menuId =='a')
	{
			a=document.getElementById('conta').getElementsByTagName('a');
			menuId = 'b';
	}						
	else
	{
		if (menuId == 'b')
		{
			b=document.getElementById('contb').getElementsByTagName('a');
			menuId = 'c';
		}
		else
		{
			if (menuId == 'c')
			{
				c=document.getElementById('contc').getElementsByTagName('a');
				menuId = 'd';
			}
			else
			{
				if (menuId == 'd')
				{
					d=document.getElementById('contd').getElementsByTagName('a');
					menuId = 'e';
				}
				else
				{
					e=document.getElementById('conte').getElementsByTagName('a');
				}
			}
		}
	}	
}



// change look of menu item whe mouse is over it.
function OMOver(arrayID,z)
{
	if (z==null)
	{
  		z=a;
	}
		
	with(z[arrayID].style)
	{	
		fontWeight="bold";
 		backgroundColor:"transparent";
	}
}


// change look of menu item whe mouse is moved off it.
function OMOut(arrayID,z)
{
	if (z==null)
	{
 		z=a;
	}
	with(z[arrayID].style)
	{
 		fontWeight="normal";
 				
	}
}


// change look of menu item whe mouse is clicked on it.
function OMDown(arrayID,z)
{
	if (z==null)
	{
 		z=a;
	}
	with(z[arrayID].style)
	{
		fontWeight="bold";
		backgroundColor="silver";
	}
}



// create the menu entry
// parms:
//	link = reference for the HREF
//	loc = target for the menu result to display
//	txt= text to display on the menu
// the entry will look as follows:
//      <tr class="menu">
//      <td class="menu">
//	<a href="URL" ONMOUSEOVER="OMOver(POINTER, MENU ID)" ONMOUSEOUT="OMOut(POINTER, MENU ID)" 
//	ONMOUSEDOWN="OMDown(POINTER, MENU ID)" TARGET= "somewhere"> text here </a>
//      </td>
//      </tr>
//
function menuItem(link, loc, txt) 
{	
	document.write ('<tr class=\"menu\">');
	document.write ('<td class=\"menu\">');
	
	document.write ('<a class=\"menu\" href=\"');
	document.write (link);
	document.write ('\" ONMOUSEOVER=\"OMOver(');
	document.write (itemCount);
	document.write (",");
	document.write (menuId);
	document.write (')\" ONMOUSEOUT=\"OMOut(');
	document.write (itemCount);
	document.write (",");
	document.write (menuId);
	document.write (' )\" ONMOUSEDOWN=\"OMDown(');
	document.write (itemCount);
	document.write (",");
	document.write (menuId);
	document.write (')\" TARGET=\"');
	document.write (loc);
	document.write ('\">');
	document.write (txt);
	document.write ('<\/a><\/td><\/tr>');

	itemCount++;	// set array pointer for next menu entry
}

//-->

