	function showblocoposti(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("blocoti"+i).style.display = "none";
			}
		}
		if (document.getElementById("blocoti"+id).style.display=="none"){
			document.getElementById("blocoti"+id).style.display = "";
		}else {
			document.getElementById("blocoti"+id).style.display = "none";
		}
	}
	
	
	function show3(a,img){
	
	for(i=1;i<=4;i++){
		document.getElementById(img+i).src = "/portals/10/"+img+i+".gif";
		document.getElementById('form_t'+i).style.display = 'none';
	}
		document.getElementById(img+a).src = "/portals/10/"+img+a+"_at.gif";
		document.getElementById('form_t'+a).style.display = 'block';
	}
	
	function showblog(hhdiv){
		for (i=1; i<=4; i++) {
			document.getElementById("foto_blog_"+i).style.display="none";
		}
		if (document.getElementById(hhdiv).style.display=="none"){
			document.getElementById(hhdiv).style.display="";
		} else {
			document.getElementById(hhdiv).style.display="none";
		}
	}
	
	
	

	function show4(a,idname){
	
	for(i=1;i<=3;i++){
		document.getElementById(idname+i).className = "wkh8";
		document.getElementById('curint_t'+i).style.display = 'none';
	}
		document.getElementById(idname+a).className = "wkh9";
		document.getElementById('curint_t'+a).style.display = 'block';
	}
	
	
	function tdhistoria(hhdiv){
		if (document.getElementById(hhdiv).style.display=="none"){
			document.getElementById(hhdiv).style.display="";
		} else {
			document.getElementById(hhdiv).style.display="none";
		}
	
	}
	
	function show4esdd(a,idname){
	
	for(i=1;i<=3;i++){
		document.getElementById(idname+i).className = "wkh8esdd";
		document.getElementById('curint_tt'+i).style.display = 'none';
	}
		document.getElementById(idname+a).className = "wkh9esdd";
		document.getElementById('curint_tt'+a).style.display = 'block';
	}
	
	
	function show4esti(a,idname){
	
	for(i=1;i<=4;i++){
		document.getElementById(idname+i).className = "wkh8esti";
		document.getElementById('curint_ti'+i).style.display = 'none';
	}
		document.getElementById(idname+a).className = "wkh9esti";
		document.getElementById('curint_ti'+a).style.display = 'block';
	}
	
	
	// ----------------- O Instituto - Tradicao e Valores - Historia --------------------- //
	var ident = "form_hi";
	
	function trocaClassehi(classe,classeout,idname) {
		for(i=1;i<=25;i++){
			if (ident != 'form_hi'+i) {
				document.getElementById('form_hi'+i).className = classeout;
			}
		}
		if (idname != ident) {
			document.getElementById(idname).className = classe;
		}
	}
	
	
	function showhistoriahis(a,idname){
	
		for(i=1;i<=25;i++){
			document.getElementById(idname+i).className = "td_histnormnorm";
			document.getElementById('curint_hi'+i).style.display = 'none';
		}
		document.getElementById(idname+a).className = "td_histnormnorm_over";
		document.getElementById('curint_hi'+a).style.display = 'block';
	}
	// ----------------------------------------------------------------------------------- //
	
	
	// ----------------- Corpo Docente - Graduacao - ESDD --------------------- //
	var ident = "form_dd";
	
	function trocaClasse2(classe,classeout,idname) {
		for(i=1;i<=25;i++){
			if (ident != 'form_dd'+i) {
				document.getElementById('form_dd'+i).className = classeout;
			}
		}
		if (idname != ident) {
			document.getElementById(idname).className = classe;
		}
	}
	
	
	function showhistoriaesdd(a,idname){
	
		for(i=1;i<=25;i++){
			document.getElementById(idname+i).className = "td_histnorm";
			document.getElementById('curint_tdesdd'+i).style.display = 'none';
		}
		document.getElementById(idname+a).className = "td_histnorm_over";
		document.getElementById('curint_tdesdd'+a).style.display = 'block';
	}
	// ------------------------------------------------------------------------ //
	
	
	
	// ----------------- Corpo Docente - Graduacao - ESTI --------------------- //
	var ident = "form_ti";
	
	function trocaClasse1(classe,classeout,idname) {
		for(i=1;i<=25;i++){
			if (ident != 'form_ti'+i) {
				document.getElementById('form_ti'+i).className = classeout;
			}
		}
		if (idname != ident) {
			document.getElementById(idname).className = classe;
		}
	}
	
	
	function showhistoria(a,idname){
	
		for(i=1;i<=25;i++){
			document.getElementById(idname+i).className = "td_histnorm";
			document.getElementById('curint_td'+i).style.display = 'none';
		}
		document.getElementById(idname+a).className = "td_histnorm_over";
		document.getElementById('curint_td'+a).style.display = 'block';
	}
	// ------------------------------------------------------------------------ //
	
	
	// ----------------- Corpo Docente - Pos-Graduacao - ESTI ----------------- //
	var ident = "cppti";
	
	function trocaClasse(classe,classeout,idname) {
		for(i=1;i<=20;i++){
			if (ident != 'cppti'+i) {
				document.getElementById('cppti'+i).className = classeout;
			}
		}
		if (idname != ident) {
			document.getElementById(idname).className = classe;
		}
	}
	
	
	function corpodocenteposti(a,idname){
	
		for(i=1;i<=20;i++){
			document.getElementById(idname+i).className = "td_cdposti";
			document.getElementById('cpposti'+i).style.display = 'none';
		}
		document.getElementById(idname+a).className = "td_cdposti_over";
		document.getElementById('cpposti'+a).style.display = 'block';
	}
	// ------------------------------------------------------------------------ //
	
	
	function showtrciclo(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("trciclo"+i).style.display = "none";
			}
		}
		if (document.getElementById("trciclo"+id).style.display=="none"){
			document.getElementById("trciclo"+id).style.display = "";
		}else {
			document.getElementById("trciclo"+id).style.display = "none";
		}
	}
	function showtrciclo2(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("trcicloa"+i).style.display = "none";
			}
		}
		if (document.getElementById("trcicloa"+id).style.display=="none"){
			document.getElementById("trcicloa"+id).style.display = "";
		}else {
			document.getElementById("trcicloa"+id).style.display = "none";
		}
	}
	
	function showtrciclo3(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("trciclob"+i).style.display = "none";
			}
		}
		if (document.getElementById("trciclob"+id).style.display=="none"){
			document.getElementById("trciclob"+id).style.display = "";
		}else {
			document.getElementById("trciclob"+id).style.display = "none";
		}
	}
	
	function showcalendcursos(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calcur"+i).style.display = "none";
			}
		}
		if (document.getElementById("calcur"+id).style.display=="none"){
			document.getElementById("calcur"+id).style.display = "";
		}else {
			document.getElementById("calcur"+id).style.display = "none";
		}
	}
	
	function showcalendcursosti(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calcurti"+i).style.display = "none";
			}
		}
		if (document.getElementById("calcurti"+id).style.display=="none"){
			document.getElementById("calcurti"+id).style.display = "";
		}else {
			document.getElementById("calcurti"+id).style.display = "none";
		}
	}
	
	function showcalendform(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calfor"+i).style.display = "none";
			}
		}
		if (document.getElementById("calfor"+id).style.display=="none"){
			document.getElementById("calfor"+id).style.display = "";
		}else {
			document.getElementById("calfor"+id).style.display = "none";
		}
	}
	
	function showcalendformti(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calforti"+i).style.display = "none";
			}
		}
		if (document.getElementById("calforti"+id).style.display=="none"){
			document.getElementById("calforti"+id).style.display = "";
		}else {
			document.getElementById("calforti"+id).style.display = "none";
		}
	}
	
	function showcalendgrad(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calgra"+i).style.display = "none";
			}
		}
		if (document.getElementById("calgra"+id).style.display=="none"){
			document.getElementById("calgra"+id).style.display = "";
		}else {
			document.getElementById("calgra"+id).style.display = "none";
		}
	}
	
	function showcalendgradti(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calgrati"+i).style.display = "none";
			}
		}
		if (document.getElementById("calgrati"+id).style.display=="none"){
			document.getElementById("calgrati"+id).style.display = "";
		}else {
			document.getElementById("calgrati"+id).style.display = "none";
		}
	}
	
	function showcalendpos(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calpos"+i).style.display = "none";
			}
		}
		if (document.getElementById("calpos"+id).style.display=="none"){
			document.getElementById("calpos"+id).style.display = "";
		}else {
			document.getElementById("calpos"+id).style.display = "none";
		}
	}
	
	function showcalendposti(id, total){
		for (i=1; i<=total; i++) {
			if (i != id) {
				document.getElementById("calposti"+i).style.display = "none";
			}
		}
		if (document.getElementById("calposti"+id).style.display=="none"){
			document.getElementById("calposti"+id).style.display = "";
		}else {
			document.getElementById("calposti"+id).style.display = "none";
		}
	}
	// ------------------------------------------------------------------------ //
	
	
	
	// --------------- Baloes - Curriculo - Graduacao - ESDD ------------------ //
function showBalloon(obj)
{
	for (i = 0; i < obj.parentNode.childNodes.length; i ++)
	{
		if (obj.parentNode.childNodes[i].nodeName == "UL")
		{
			if (obj.parentNode.childNodes[i].style.display != "block")
			{
				obj.parentNode.childNodes[i].style.display = "block";
				obj.parentNode.style.zIndex = "200";
			}
			else
			{
				obj.parentNode.childNodes[i].style.display = "none";
				obj.parentNode.style.zIndex = "";
			}
		}
	}
}



function showcurr(hhdiv){
	for (i=1; i<=50; i++) {
		if (document.getElementById("curr_"+i) != null)
		{
			document.getElementById("curr_"+i).style.display="none";
		}
	}
	if (document.getElementById(hhdiv).style.display=="none"){
		document.getElementById(hhdiv).style.display="";
	} else {
		document.getElementById(hhdiv).style.display="none";
	}
}



	// ------------------------------------------------------------------------------------- //
	
	
	
	
	// --------------- Baloes - Curriculo - Graduacao - ESTI ------------------ //
	function closeLay2(id){
		getObj = document.getElementById(id);
		x = getObj;
		x.style.display= "none";
		return false;
	}
	
	function setLyr2(obj, idobj, txt, id){
	
		eleHeight = document.getElementById(idobj).offsetHeight;
		eleWidth = document.getElementById(idobj).offsetWidth;
		writit2(txt, id);
		
		getObj = document.getElementById(id);
		
		var newX = findPosX2(obj) + eleWidth - 240;
		var newY = (findPosY2(obj) + eleHeight)-0;
		
		x = getObj;
		x.style.display= "block";
		x.style.top = newY + 'px';
		x.style.left = newX + 'px';
	}
	
	function findPosX2(obj){ 
		var curleft = 0;
		if (obj.offsetParent)
		{
		
			while (obj.offsetParent)
			{
				curleft += obj.offsetLeft
				obj = obj.offsetParent;
				
			}
		}
		else if (obj.x)
			curleft += obj.x;
		return curleft;
	}
	
	function findPosY2(obj){
		var curtop = 0;
		if (obj.offsetParent)
		{
			while (obj.offsetParent)
			{
				curtop += obj.offsetTop
				obj = obj.offsetParent;
			}
		}
		else if (obj.y)
			curtop += obj.y;
		return curtop;
	}
	
	
	function writit2(txt, id){
	
	text = "<div><img alt='' src='/Portals/10/balloon_top2.gif' /></div>";
	text += "<div class='bl'>"+ txt +"<br style='font-size:1px' /></div>";
	text += "<div><img alt='' src='/Portals/10/balloon_bottom2.gif' /></div>";
	
		if (document.getElementById)
		{
			x = document.getElementById(id);
			x.innerHTML = '';
			x.innerHTML = text;
		}
		else if (document.all)
		{
			x = document.all[id];
			x.innerHTML = text;
		}
		else if (document.layers)
		{
			x = document.layers[id];
			x.document.open();
			x.document.write(text);
			x.document.close();
		}
	}







function imprimir_(){
	for(i=1;i<=3;i++){
		document.getElementById('curint_ti'+i).style.display = 'none';	
	}
	for(i=1;i<=2;i++){
		document.getElementById('curint_ti'+i).style.display = 'block';
	}
	
		document.getElementById('curint_ti4').style.display = 'block';
	
		javascript:window.print();
	
	show4esti(1,'form_ti')
	}
	function imprimir_2(){
	for(i=1;i<=3;i++){
		document.getElementById('curint_t'+i).style.display = 'none';	
	}
		document.getElementById('curint_t1').style.display = 'block';
		
		document.getElementById('curint_t3').style.display = 'block';
	
		javascript:window.print();
	
	for(i=1;i<=3;i++){
		document.getElementById('curint_t'+i).style.display = 'none';	
	}
		document.getElementById('curint_t1').style.display = 'block';
		show4(1,'form_curi')
	}
	//======================================================
	function imprimir_3(){
	
		document.getElementById('curint_tt1').style.display = 'block';
		
		document.getElementById('curint_tt3').style.display = 'block';
		
		javascript:window.print();	
		
		document.getElementById('curint_tt1').style.display = 'none';
		
		document.getElementById('curint_tt3').style.display = 'none';

		show4esdd(1,'form_dd')
	}
		function imprimir_4(){
	
		document.getElementById('form_t1').style.display = 'block';

		
		document.getElementById('form_t2').style.display = 'block';

		
		document.getElementById('form_t4').style.display = 'block';

		
		javascript:window.print();
		
		document.getElementById('form_t1').style.display = 'none';

		
		document.getElementById('form_t2').style.display = 'none';

		
		document.getElementById('form_t4').style.display = 'none';

		show3(1,'form_dd')
		
	}	
	// ------------------------------------------------------------------------ //