var cColor;

function ontopmenu(itemIndex)
{
 var backcolor = document.getElementById("top_menu_"+itemIndex);
 var item = document.getElementById("menu_"+itemIndex);
 cColor = backcolor.bgColor;
 backcolor.bgColor = "#aacccc";
}

function outtopmenu(itemIndex)
{
 var backcolor = document.getElementById("top_menu_"+itemIndex);
 var item = document.getElementById("menu_"+itemIndex);
 backcolor.bgColor = cColor;
}

function onconsult(itemIndex)
{
  var cLinkId = document.getElementById(itemIndex);
  cColor = cLinkId.style.color;
  cLinkId.style.color = "#33cc00";
  cLinkId.style.textDecoration="underline"; 
}

function outconsult(itemIndex)
{
  var cLinkId = document.getElementById(itemIndex);
  cLinkId.style.color = cColor;
  cLinkId.style.textDecoration = "none";
}

function onInterview(itemIndex)
{
  var cLinkId = document.getElementById(itemIndex);
  cColor = cLinkId.style.color;
  cLinkId.style.color = "#e4b5b5";
}

function outInterview(itemIndex)
{
 var cLinkId = document.getElementById(itemIndex);
 cLinkId.style.color = cColor;
}

function onmenu(itemIndex)
{
  var cLinkId = document.getElementById(itemIndex);
  cColor = cLinkId.style.color;
  cLinkId.style.color = "red";
}

function outmenu(itemIndex)
{
  var cLinkId = document.getElementById(itemIndex);
  cLinkId.style.color = cColor;
}

function favorite(page_name, page_url)
{
  var title = page_name;
  var url = page_url;
  if (window.sidebar) 
	window.sidebar.addPanel(title, url,"");
  else if( window.opera && window.print )
  {
	var t_page = document.createElement('a');
	t_page.setAttribute('rel','sidebar');
	t_page.setAttribute('href',url);
	t_page.setAttribute('title',title);
	t_page.click();
  }
  else if(document.all) 
	window.external.AddFavorite(url, title);
}

function nocontext()
{event.returnValue = false;}
