function switchid(id,id_div,id_a,hover_color,normal_color)
{
  hideallids();
  showdiv(id);
  document.getElementById(id_div).style.backgroundColor=hover_color;
  document.getElementById(id_div).style.cursor='hand';
  document.getElementById(id_a).style.fontWeight='bold';
  for(var i=0;i<ids.length;i++)
  {
    var elem=ids[i];
    var div_elem="div_".concat(elem.substring(4));
    var a_elem="a_".concat(elem.substring(4));
    if (div_elem != id_div)
    {
    	document.getElementById(div_elem).style.backgroundColor=normal_color;
    	document.getElementById(a_elem).style.fontWeight='normal';
    }
  }
}

function hideallids()
{
  for(var i=0;i<ids.length;i++)
  { 
    hidediv(ids[i]);
  }
}

function hidediv(id)
{
  if(document.getElementById)
  {
    document.getElementById(id).style.display ='none';
  }
  else
  {
    if(document.layers)
    {
      document.id.display ='none';
    }
    else
    {
      document.all.id.style.display ='none';
    }
  }
}     

function showdiv(id)
{
  if(document.getElementById)
  {
    document.getElementById(id).style.display ='block';
  }
  else
  {
    if(document.layers)
    {
      document.id.display ='block';
    }
    else
    {
      document.all.id.style.display ='block';
    }
  }
}   

