function mostra(hhdiv,img,total,inicial){
	if (document.getElementById(hhdiv).style.display=="none"){
		document.getElementById(hhdiv).style.display="block";
	} else {
		document.getElementById(hhdiv).style.display="none";
	}
	
	if (document.getElementById(img).src.substr(document.getElementById(img).src.length-9,5)!= "_swap"){
		document.getElementById(img).src = document.getElementById(img).src.substr(0,document.getElementById(img).src.length-4)+"_swap"+document.getElementById(img).src.substr(document.getElementById(img).src.length-4,4);
	}else {
		document.getElementById(img).src = document.getElementById(img).src.substr(0,document.getElementById(img).src.length-9)+document.getElementById(img).src.substr(document.getElementById(img).src.length-4,4);
	}
	Inicializa()
}


function imprime (objeto) {
	window.open('/veirano/portals/_default/Skins/veirano/'+objeto,'curriculo','width=769, height=420, scrollbars=yes')
}


var iniciaHeight

function resize() {
	document.getElementById("conteudo").style.height = ""
	document.getElementById("conteudo").style.height = document.getElementById("externa").offsetHeight - document.getElementById("topogeral").offsetHeight - document.getElementById("rodape").offsetHeight -3 + "px"
	var heightTesteInic = document.getElementById("conteudo").style.height.split("px")
	var heightTesteFin = iniciaHeight.split("px")
	if (Number(heightTesteInic[0]) < Number(heightTesteFin[0])) {
		document.getElementById("conteudo").style.height = iniciaHeight
	}
}

window.onresize = function() {
	resize()
}