	function stAba(menu,conteudo)
	{
		this.menu = menu;
		this.conteudo = conteudo;
	}

	var arAbas = new Array();
	arAbas[0] = new stAba('td_ciencia','div_ciencia');
	arAbas[1] = new stAba('td_humanidades','div_humanidades');
	arAbas[2] = new stAba('td_politica','div_politica');
	arAbas[3] = new stAba('td_tecnologia','div_tecnologia');
	arAbas[4] = new stAba('td_secoes_fixa','div_secoes_fixa');

	function AlternarAbas(menu,conteudo)
	{
		for (i=0;i<arAbas.length;i++)
		{
			m = document.getElementById(arAbas[i].menu);
			m.className = 'menu';
			c = document.getElementById(arAbas[i].conteudo)
			c.style.display = 'none';
		}
		m = document.getElementById(menu)
		m.className = 'menu-sel';
		c = document.getElementById(conteudo)
		c.style.display = '';
	}


//-------------------------------------------------------------------------------------

	function stAba5(menu5,conteudo5)
	{
		this.menu5 = menu5;
		this.conteudo5 = conteudo5;
	}

	var arAbas2 = new Array();
	arAbas2[0] = new stAba5('td_bloco1','div_bloco1');
	arAbas2[1] = new stAba5('td_bloco2','div_bloco2');
	arAbas2[2] = new stAba5('td_bloco3','div_bloco3');
	

	function AlternarAbas5(menu5,conteudo5)
	{
		for (i=0;i<arAbas2.length;i++)
		{
			m = document.getElementById(arAbas2[i].menu5);
			m.className = 'menu5';
			c = document.getElementById(arAbas2[i].conteudo5)
			c.style.display = 'none';
		}
		m = document.getElementById(menu5)
		m.className = 'menu-sel5';
		c = document.getElementById(conteudo5)
		c.style.display = '';
	}

//--------------------------------------------------------------------------------
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;
//--------------------------------------------------------------------------------
//these three functions are for the changing quotations
function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}
function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else {
    begin += 2;
  }
  var end = document.cookie.indexOf(";", begin);
  if (end == -1) end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}
function getMessage() {
  var now = new Date();
  now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
  var message = getCookie("message");
  if (!message) {
    message = 0;
  } else {
    message = parseInt(message) + 1;
    if (message >= ar.length) message = 0;
  }
  setCookie("message", message, now);
  return ar[message];
}
//the following two functions relate to the td colour rollover
  function NavRollOver(oTd) {if (!oTd.contains(event.fromElement)) {oTd.bgColor="#d2dfef";}}
  function NavRollOut(oTd) {if (!oTd.contains(event.toElement)) {oTd.bgColor="#ffffff";}}
//the remaining functions are called in the top-left image rollover
if (document.images) {
  image1on = new Image();
  image1on.src = "";
}
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

