function showElement(idName)
{
	if(!document.getElementById) return;
	element = document.getElementById(idName);
	element.style.visibility = 'visible';
}

function hideElement(idName)
{
	if(!document.getElementById) return;
	element = document.getElementById(idName);
	element.style.visibility = 'hidden';
}

function doSomething(e)
{
	if (!e) e = window.event;

	if (e.relatedTarget) var onto = e.relatedTarget;
	else if (e.toElement) var onto = e.toElement;

	if (e.target) var outof = e.target;
	else if (e.srcElement) var outof = e.srcElement;
	/*window.status = "outof is a " + outof + "(id: " + outof.id + ") \n" +
		  "onto is a " + onto + "(id: " + onto.id + ")"); */

	if(onto.id == 'submenu') return;
	if(onto.getAttribute('partof') == this.id) return;
	hideElement('submenu');
}

function hideUnlessOnto(e)
{
	if (!e) e = window.event;

	if (e.relatedTarget) var onto = e.relatedTarget;
	else if (e.toElement) var onto = e.toElement;

	if(onto.id == 'submenu') return;
	if(onto.getAttribute('partof') == 'submenu') return;
	hideElement('submenu');
}

function doSomethingElse(e)
{
	hideUnlessOnto(e);
	document.cust.src='images/navcustomerservice1.gif';
}