var present = null
var d = document;

function show(objID, color){
  if(present != null){
    d.getElementById(present).style.display = 'none';
    d.getElementById('cat').style.display = 'none';
    d.getElementById('cat_'+present).style.color = '#808080';
    d.getElementById('m_'+present).style.backgroundColor = '#ffffff';
  }
  present = objID
  d.getElementById(objID).style.display = 'block';
  d.getElementById('cat').style.display = 'block';
  d.getElementById('cat').style.borderTopColor = color;
  d.getElementById('cat_'+objID).style.color = '#ffffff';
  d.getElementById('m_'+objID).style.backgroundColor = color;
}