subAnterior = "";
function AbreSub(numSub) {
	subAtual = "Sub" + numSub;
	document.getElementById(subAtual).style.display = "inline";
	subAnterior = subAtual;
}

function AbreSub2(numSub) {
	subAtual = "Sub" + numSub;
	document.getElementById(subAtual).style.display = "block";
	subAnterior = subAtual;
}

function FechaSub() {
	if (subAnterior != "") {
		document.getElementById(subAnterior).style.display = "none";
	}
}

curricAnterior = "";
function AbreCurric(numCurric) {
	if (curricAnterior != "") {
		document.getElementById(curricAnterior).style.display = "none";
	}
	curricAtual = "curric" + numCurric;
	document.getElementById(curricAtual).style.display = "inline";
	curricAnterior = curricAtual;
}

var timer2;
function RolaScroll2(dir) {
	var altTotal = document.getElementById("scrollContent").offsetHeight;
	//alert(altTotal);
	var dif = altTotal - 215;
	if (dif > 0) {
		dif = -dif;
		obj = document.getElementById("scrollContent");
		
		objTop = obj.style.top;
		numTop = new Array();
		numTop = objTop.split("p");
		numTop[0] = numTop[0] * 1;
				
		if (dir == 0) {
			if (numTop[0] > dif) {
				obj.style.top = (numTop[0] - 5) + "px";
				timer2 = setTimeout('RolaScroll2('+dir+')',10);
			}
		}
		if (dir == 1) {
			if (numTop[0] < 0) {
				obj.style.top = (numTop[0] + 5) + "px";
				timer2 = setTimeout('RolaScroll2('+dir+')',10);
			}
		}
	}
}

function ParaScroll2() {
	clearTimeout(timer2);
}

