/**
* Find a member
*/
function find_username(url)
{
	popup(url, 760, 570, '_usersearch');
	return false;
}

/**
* New function for handling multiple calls to window.onload and window.unload by pentapenguin
*/
window.onload = function()
{
	for (var i = 0; i < onload_functions.length; i++)
	{
		eval(onload_functions[i]);
	}
}

window.onunload = function()
{
	for (var i = 0; i < onunload_functions.length; i++)
	{
		eval(onunload_functions[i]);
	}
}


var oldElement = null;

function onSubMenu(element) {

	if (document.all) {
		element.firstChild.style.top = '19px';
	} else {
		element.firstChild.style.top = '16px';
	}

	if (element != null) {

		element.firstChild.nextSibling.style.color = '#3792CB';
		element.firstChild.nextSibling.style.backgroundColor = '#FFFFFF';
		element.firstChild.nextSibling.style.borderTop = '1px solid #CCCCCC';

		element.firstChild.style.visibility = 'visible';
		element.firstChild.style.display = 'inline';
	}

	oldElement = element;
}

function offSubMenu(element) {

	if (oldElement != null) {

		oldElement.firstChild.nextSibling.style.color = '#969696';
		oldElement.firstChild.nextSibling.style.backgroundColor = 'transparent';
		oldElement.firstChild.nextSibling.style.borderTop = 'none';

		oldElement.firstChild.style.visibility = 'hidden';
		oldElement.firstChild.style.display = 'none';
	}
}
