ativo = null;
cellAtivo = null;
timeId = null;
document.onclick = new Function("show()");

function brilho(camada) {
camada.style.filter = 'progid:DXImageTransform.Microsoft.Shadow(color=#00CC00,direction=135, strength=2)';
}

function normal(camada) {
camada.style.filter = 'progid:DXImageTransform.Microsoft.Shadow(color=#006600,direction=135, strength=2)';
}

function brilhoTopo(camada) {
camada.style.filter = 'progid:DXImageTransform.Microsoft.Shadow(color=#0099FF,direction=135, strength=1)';
}

function normalTopo(camada) {
camada.style.filter = 'progid:DXImageTransform.Microsoft.Shadow(color=#000099,direction=135, strength=1)';
}

function mouseOvr(src, clrOver) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
}

function mouseOvr(src, clrOver) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
}

function mouseOut(src, clrOut) {
	src.bgColor = clrOut;
}

function mouseClk(src) {
	if(event.srcElement.tagName=='TD'){
		src.children.tags('A')[0].click();
	}
}

function mouseOvrPendente(src, clrOver) {
	src.style.cursor = 'hand';
	src.bgColor = clrOver;
}

function mouseOutPendente(src) {
	src.bgColor = '#C7E9DC';
}

function show(cell,obj)
{
	obj = document.getElementById(obj);
	if(ativo!=null) { ativo.style.visibility = "hidden"; ativo=null;  cellAtivo.style.backgroundColor=''; }
	if(cell)
	{
		cellAtivo = cell;
	}
	if(timeId!=null){ clearTimeout(timeId); }
	if(obj)
	{
		obj.style.visibility = "visible";
		ativo = obj;
	}
}


function timerHidePop(camada)
{
	timeId = null;
	timeId = setTimeout("obj.style.visibility = 'hidden'",3000);
	//clearTimeout(timeId);
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function showHideLayers(camada) { 
	if (camada == 'Biblioteca'){
		obj=MM_findObj('Curriculo');
		obj.style.visibility = 'hidden';
	} else if (camada == 'Curriculo'){
		obj=MM_findObj('Biblioteca');
		obj.style.visibility = 'hidden';
	}
		obj=MM_findObj(camada);
		obj.style.visibility = 'visible';
}


