document.onmouseover = hideOtherTypes;
document.onclick = hideOtherTypes;

function showType(typeNumber, eventObj, labelID) 
{
	hideAllTypes();
	eventObj.cancelBubble = true;
	var typeId = 'type' + typeNumber;
	if(changeObjectVisibility(typeId, 'visible', 100))
	{
		return true;
  	} 
	else 
	{
		return false;
  	}
}

function hideAllTypes() 
{
	for(counter = 1; counter <= 16; counter++) 
	{
		changeObjectVisibility('type' + counter, 'hidden', 0);
	}
}

function hideOtherTypes()
{
	for(counter = 1; counter <= 16; counter++) 
	{
		changeObjectVisibility('type' + counter, 'hidden', 0);
	}
}
