//This include will fix the hover problem
//for IE menus

startList = function() 
{
if (document.all&&document.getElementById) 
	{
	navRoot = document.getElementById("nav");
	for (i=0; i<navRoot.childNodes.length; i++) 
		{
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") 
			{
			node.onmouseover=function() 
				{
				this.className+=" over";
				}
  			node.onmouseout=function() 
  				{
				this.className=this.className.replace(" over", "");
				}
			}
		}
	navRoot = document.getElementById("collapse");
	if (navRoot!= null)
		{
		for (i=0; i<navRoot.childNodes.length; i++) 
			{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
				{
/*				node.onmouseover=function() 
					{
					this.className+=" active";
					}
	  			node.onmouseout=function() 
	  				{
					this.className=this.className.replace(" active", "");
					}
	  			node.onclick=function() 
	  				{
					for (i=0; i<this.childNodes.length; i++) 
						{
						node = this.childNodes[i];
						if (node.className=="tabbox") 
							{
							if (node.style.display=="block")
								{
								node.style.display = "none";
								}
							else
								{
								node.style.display = "block";
								}
							}
						}
					}
*/
				}
			}
		}
		
	navRoot = document.getElementById("tabtop");
	if (navRoot!= null)
		{
		for (i=0; i<navRoot.childNodes.length; i++) 
			{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
				{
				node.onmouseover=function() 
					{
					this.className+=" over";
					}
	  			node.onmouseout=function() 
	  				{
					this.className=this.className.replace(" over", "");
					}
	  			node.onclick=function() 
	  				{
					showtab(this);
					}
				}
			}
		}
		
	 }
}
window.onfocus=startList;
window.onload=startList;

//this function expands a collapsable list
function tabonclick(tab) 
	  				{
					for (i=0; i<tab.childNodes.length; i++) 
						{
						node = tab.childNodes[i];

						if (node.className=="tabbox") 
							{
							if (node.style.display=="block")
								{
								node.style.display = "none";
								}
							else
								{
								node.style.display = "block";
								}
							}
						}
					}

//displays  a separate block linked by name
function tabonclick2(tab) 
	  				{
	  				var node;
	  				var i;
					node = document.getElementById(tab.id + "display");
					if (node)		
						{
						if (node.style.display=="block")
							{
							node.style.display = "none";
							}
						else
							{
							node.style.display = "block";
							}
						}							
					}
