// função paraNoticia rolagem das noticias na pagina index
var	interval = null;
function sobeNoticia()
{
	el = document.getElementById("interno");
	if (parseInt(el.offsetParent.style.height)+10 < parseInt(el.style.top))
		el.style.top =  "-" + (parseInt(el.offsetHeight)) + "px";
	
	el.style.top = (parseInt(el.style.top) + 10).toString() + 'px';
	interval = setTimeout(sobeNoticia, 200);
}
function paraNoticia()
{
	if(interval != null)
		clearInterval(interval);
}

function fecha(isLink)
{
	if(intervalOpen != null) return;

	el = document.getElementById("es");
	if (isLink == 1)
	{
		clearInterval(interval);
		interval = setTimeout(fecha, 3000);
		passou = true;
	}
	else if (parseInt(el.style.height)> 1)
	{
		el.style.height = (parseInt(el.style.height) - 6) + "px";
		interval = setTimeout(fecha, 200);
	}
	else
	{
		el.style.display = "none";
		clearInterval(interval);
	}
}

function abre()
{
	 passou = false;
	 el = document.getElementById("es");
	el.style.display = "block";
	if (parseInt(el.style.height)< 36)
	{
		el.style.height = (parseInt(el.style.height) + 6) + "px";
		intervalOpen = setTimeout(abre, 200);
	}
	else
	{
		clearInterval(intervalOpen);
		intervalOpen = null;
	}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
