function DoAll( action )
{
	if( action == "block" )
	{
		link_class	= "active";
	}
	else
	{
		link_class	= "";
	}

	mfr_list			= document.getElementById( "stafflist" );
	mfr_items			= mfr_list.getElementsByTagName( "LI" );

	item_count	= parseInt( mfr_items.length );

	for( mfr_item = 0; mfr_item < item_count; mfr_item++ )
	{
		mfr_items[mfr_item].className				= link_class;
	}
}

/*
function _ToggleManufacturer( id )
{
	mfr_block		= document.getElementById( "m" + id );
//	mfr_link		= document.getElementById( "l" + id );

	mfr_description	= mfr_block.getElementsByTagName( "P" );
	mfr_description	= mfr_description[0];

	mfr_link		= mfr_block.getElementsByTagName( "A" );
	mfr_link		= mfr_link[0];

	display_value	= mfr_description.style.display;

	if( display_value == "" || display_value == "none" )
	{
		mfr_description.style.display	= "block";
		mfr_link.className				= "active";
//		mfr_link.setAttribute( "className", "active" );
	}
	else
	{
		mfr_description.style.display	= "none";
		mfr_link.className				= "";
	}
}
*/

function ToggleIt( e )
{
	var targ
	if (!e)
	{
		var e = window.event;
	}
	if (e.target)
	{
		targ = e.target;
	}
	else if (e.srcElement)
	{
		targ = e.srcElement;
	}
	if (targ.nodeType == 3) // defeat Safari bug
	{
		targ = targ.parentNode
	}
	var tname;
	tname=targ.tagName;

//	alert("You clicked on a " + tname + " element.");

	if( tname == "A" )
	{
//		return false;
	}


	while( targ.tagName != "LI" )
	{
		targ	= targ.parentNode;
	}

	ToggleManufacturer( targ );
/*
	if( targ.className == "" )
	{
		targ.className	= "active";
	}
	else
	{
		targ.className	= "";
	}

*/
//	TagID	= targ.getAttribute( "id" );
//	alert( TagID );
//	alert("You clicked on a " + tname + " element.");

}



function ToggleManufacturer( object )
{
	if( object.className == "" )
	{
		object.className	= "active";
	}
	else
	{
		object.className	= "";
	}
}


