// <script type="text/javascript">
<!--  to hide script contents from old browsers

window.onload = init;

function init()
{ 
	display_urhere();
	setup_email();
}

/* This function alters the style of the navigation bar to indicate urhere.
I added code from the original to shorten the href string so that it does
not include any bookmarks (....#bookmark). Otherwise, the strings would not
match and the urhere formatting would not be applied.
******************************************************************************/

function display_urhere()
{	var list; var page; var currentHref; var href; var anchorPosition;

	if (!document.getElementById)
	{	
		return true;
	}

	list = document.getElementById("navbar");
	page = list.getElementsByTagName("a");
	currentHref = document.location.href;

	anchorPosition = currentHref.indexOf("#");
	if (anchorPosition >= 0)
	{	currentHref = currentHref.substring(0, anchorPosition);
	}

	currentHref = getSimpleHref(currentHref);
	
	for (var i = 0; i < page.length; i++)
	{	href = getSimpleHref(page[i].href)	
		if (href == currentHref)
		{	
			page[i].parentNode.style.backgroundColor = "#fffff0";	// Parent node is <td>
			//page[i].style.backgroundColor = "#fffff0";
			page[i].style.color = "#474900";
			break;
		}
	}
}

/*
This function was added because Mac Safari does not include the directory structure
before the href, so there was never a match. This function strips the beginning directory structure
away and just leaves the end part--such as about_us.htm
**************************************************************************************************/

function getSimpleHref(s)
{	var length;
	var anchorPosition = 0;	

	while (anchorPosition >= 0)
	{	anchorPosition = s.indexOf('/');
		length = s.length;

		if (anchorPosition >= 0)
		{	s = s.substring(anchorPosition + 1, length);
		}		
	}
	
	return(s);
}

/**************************************************************************************************
This function sets up a link with class "emailBrad" to send email.
**************************************************************************************************/

function setup_email()
{
	var anchors = document.getElementsByTagName("a");
	if (anchors == null)
		return;

	for (var i = 0; i < anchors.length; i++)
	{
		switch(anchors[i].className)
		{

			case "emailMitchellSteinberg":
			{
				anchors[i].onclick = function()
				{
					var name1 = "mscomm"
					var name2 = "gmail"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "mscomm"
					var name2 = "gmail"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailAnneShepard":
			{
				anchors[i].onclick = function()
				{
					var name1 = "anne.shepard"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "anne.shepard"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailRichKordell":
			{
				anchors[i].onclick = function()
				{
					var name1 = "kordell67"
					var name2 = "charter"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "kordell67"
					var name2 = "charter"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailJeffGallo":
			{
				anchors[i].onclick = function()
				{
					var name1 = "gallojp"
					var name2 = "yahoo"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "gallojp"
					var name2 = "yahoo"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailJohnVosburg":
			{
				anchors[i].onclick = function()
				{
					var name1 = "john"
					var name2 = "vosburg"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "john"
					var name2 = "vosburg"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailEammonCarleton":
			{
				anchors[i].onclick = function()
				{
					var name1 = "eammon"
					var name2 = "gmail"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "eammon"
					var name2 = "gmail"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailJackMaxwell":
			{
				anchors[i].onclick = function()
				{
					var name1 = "jack.maxwell"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr			
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "jack.maxwell"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailTNT":
			{
				anchors[i].onclick = function()
				{
					var name1 = "vietnamtnt"
					var name2 = "googlegroups"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr			
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "vietnamtnt"
					var name2 = "googlegroups"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailJohnGoeller":
			{
				anchors[i].onclick = function()
				{
					var name1 = "jgoeller"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr			
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "jgoeller"
					var name2 = "comcast"
					var name3 = "net"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
			case "emailVLMC":
			{
				anchors[i].onclick = function()
				{
					var name1 = "nemba-vlmc"
					var name2 = "googlegroups"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					var full = "mail" + "to:" + addr
					document.location.href = full;
					return(false);
				}
				anchors[i].onmouseover = function()
				{
					var name1 = "nemba-vlmc"
					var name2 = "googlegroups"
					var name3 = "com"
					var addr = name1 + "@" + name2 + "." + name3
					this.firstChild.nodeValue = addr;
				}
				break;
			}
		}
	}
}


// end hiding contents from old browsers  -->
// </script>