var nPosicao = "";
var onde = new posicao();
var aBcrumb = new Array();
var oBreadCrumb = new Bcrumb();
var nNivel = "";
var oNivel = new nivel();
var sCarrega_menu = "";
var bSubcloselink = false;
var bSubcloselink2 = false;
var bSubcloselink3 = false;
var bSubcloselink4 = false;
var bSubcloselink41 = false;
var bSubcloselink5 = false;
var bSubcloselink51 = false;
var bSubcloselink6 = false;
var bSubcloselink61 = false;
var bSubcloselink62 = false;
var bImprimeRodape = true;
var iCountPai = 0;
var iCountFilho = 0;
var aGetLastItem = new Array(2);

if(typeof bSiteEnglish == "undefined"){
	bSiteEnglish = 0
}
if(bSiteEnglish == 1){
	var TextClosing = "Select another item of"
}else{
	var TextClosing = "Selecione outro item de"
}

var PrintClosing = TextClosing

function ImprimePortal(){
	document.write("<table border='0' cellpadding='2' cellspacing='0' width='100%'><tr><td class='breadcrumb'>");
	if(typeof bSiteEnglish == "undefined"){
		bSiteEnglish = 0
	}
}

function Imprimi_BCrumb(scodpagina){
	this.sBCrumb = "";
	this.sTiraBR = "";

	if(aBcrumb.length > 1){
		for(i=0;i<aBcrumb.length-1;i++){
			if(Nav[aBcrumb[i]].sRotuloAlt == "")
				this.sTiraBR = Nav[aBcrumb[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
			else
				this.sTiraBR = Nav[aBcrumb[i]].sRotuloAlt.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
			this.sBCrumb +="<a href='";
			this.sBCrumb += Nav[aBcrumb[i]].sURL+"'";
			if(Nav[aBcrumb[i]].sLinkTarget != "")
				this.sBCrumb += " target="+Nav[aBcrumb[i]].sLinkTarget;
			this.sBCrumb += " class='breadcrumb'>"+this.sTiraBR+"</a>&nbsp;:&nbsp;&nbsp;";
		}
		if(Nav[aBcrumb[i]].sRotuloAlt == "")
			this.sTiraBR = Nav[aBcrumb[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
		else
			this.sTiraBR = Nav[aBcrumb[i]].sRotuloAlt.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
		this.sBCrumb += "<b class='bcrumbfim'>"+this.sTiraBR+"</b>";
	}
	else{
		this.sTiraBR = Nav[aBcrumb[0]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
		this.sBCrumb = "<b class='bcrumbfim'>"+this.sTiraBR+"</b>";

		return this.sBCrumb;
	}
	this.sBCrumb += "</td></tr></table>";
}

function MontaPai(ponteiro, vetor){
	this.MontaPai = function MontaPai(ponteiro,vetor){
	    this.aVetor = vetor;
		this.sTrocaBR = "";

		if(this.aVetor[ponteiro].bApresenta == 1){

			this.sPai = "";
			str_id = 'mn_item_principal_' + this.aVetor[ponteiro].id.toLowerCase();
			str_class = (iCountPai == 0) ? 'itemMnuPrimeiro' : 'itemMnu';

			str_label = this.aVetor[ponteiro].sRotulo.replace(/\&lt\;BR\&gt\;/gi,'<br>');
			str_label = str_label.replace(/\<br ?\/\>/gi,'<br>');

			if(str_label.match(/\<br\>/)){
				str_class += ' itemMnuDuplo';
			}

			this.sPai += "<div id='" + str_id + "' class='" + str_class + "'><a href='" + this.aVetor[ponteiro].sURL + "' target='" + this.aVetor[ponteiro].sLinkTarget + "'><div><img src='/img/iw_menu/mn_item_" + this.aVetor[ponteiro].id.toLowerCase() + ".gif' border='0'></div></a></div>";

			aGetLastItem[0] = str_id;
			aGetLastItem[1] = 'Pai';
			aGetLastItem[2] = '';

			iCountPai++;

			if(Nav[ponteiro].sURL == ""){
		       //this.sPai += "<a href='#' onClick='javascript: parent.AbreMenu("
		       //+ '"'+this.aVetor[ponteiro].id+'"'
		       //+ ");' class='linkmenu'>";
			}else{
			   //this.sPai += "<a href='"
			   //+ Nav[ponteiro].sURL
			   //+ "' target='"+this.aVetor[ponteiro].sLinkTarget+"' class='linkmenu'><b>";
			}
			this.sTrocaBR = this.aVetor[ponteiro].sRotulo.replace("&lt;BR&gt;","<BR>");
		    	//this.sPai += this.sTrocaBR
		    	//+ "</b></a></td><TD width='1' class='bordamenu'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></tr>"
		    	//+"<TR><TD class='bordavert'><IMG src='/img/ponto.gif' width='2' height='1' border='0'></TD><TD class='pontilhado'><IMG src='/img/ponto.gif' width='160' height='1' border='0'></TD><TD width='1' class='bordamenu'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></TR>"
			//+"<TR><TD class='bordavert'><IMG src='/img/ponto.gif' width='2' height='1' border='0'></TD><TD class='pontilhado'><IMG src='/img/ponto.gif' width='1' height='1' border='0'></TD><TD width='1' class='bordamenu'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></TR>";
			return this.sPai;
		}
		else{
		return "";
		}
	}
}

function MontaFilho(ponteiro, vetor){
	this.MontaFilho = function MontaFilho(ponteiro,vetor){
	    this.aVetor = vetor;
		this.sTrocaBR = "";
		if(this.aVetor[ponteiro].bApresenta == 1){
			//this.sFilho = "<TR><TD class='bordavert'><IMG src='/img/ponto.gif' width='2' height='1' border='0'></TD><TD class='bordavert'><IMG src='/img/ponto.gif' width='1' height='1' border='0'></TD><TD width='1' class='bordavert'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></TR>";
			this.sFilho = "";
			if(this.aVetor[ponteiro].id==scodpagina){
				str_id = 'mn_item_secundario_' + this.aVetor[ponteiro].id.toLowerCase();
				str_label = this.aVetor[ponteiro].sRotulo.replace('&lt;BR&gt;','<br>').replace('&lt;br&gt;','<br>');
				str_class = (str_label.indexOf('<br>') != -1) ? 'itemSubMnuBR' : 'itemSubMnu';
				this.sFilho += "<div id='" + str_id + "' class='" + str_class + "'><div class='text_001'><a class='link_mn_jedi' href='" + this.aVetor[ponteiro].sURL + "' target='" + this.aVetor[ponteiro].sLinkTarget + "'><div><img src='/img/iw_menu/seta_submenu.gif' align='absmiddle' border='0'><b>" + str_label + "</b></div></a></div></div>";

				aGetLastItem[0] = str_id;
				aGetLastItem[1] = 'Filho';
				aGetLastItem[2] = (str_label.indexOf('<br>') != -1) ? 1 : 0;

			 	iCountFilho++;
			//	this.sFilho += "<TD class='menufilho' height='16'><img src='/img/buCheck.gif' border='0'></TD>";
			}else{
				str_id = 'mn_item_secundario_' + this.aVetor[ponteiro].id.toLowerCase();
				str_label = this.aVetor[ponteiro].sRotulo.replace('&lt;BR&gt;','<br>').replace('&lt;br&gt;','<br>');
				str_class = (str_label.indexOf('<br>') != -1) ? 'itemSubMnuBR' : 'itemSubMnu';
				this.sFilho += "<div id='" + str_id + "' class='" + str_class + "'><div class='text_001'><a class='link_mn_jedi' href='" + this.aVetor[ponteiro].sURL + "' target='" + this.aVetor[ponteiro].sLinkTarget + "'><div><img src='/img/iw_menu/seta_submenu.gif' align='absmiddle' border='0'>" + str_label + "</div></a></div></div>";

				aGetLastItem[0] = str_id;
				aGetLastItem[1] = 'Filho';
				aGetLastItem[2] = (str_label.indexOf('<br>') != -1) ? 1 : 0;

				iCountFilho++;

			//	this.sFilho += "<TD class='menufilho' height='16'><IMG src='/img/ponto.gif' width='2' height='1' border='0'></TD>";
			}
			//this.sFilho += "<TD class='menufilho'><a href='"
			//+ this.aVetor[ponteiro].sURL
			//+ "' target='"+this.aVetor[ponteiro].sLinkTarget+"' class='linkmenufilho'>";
			//this.sTrocaBR = this.aVetor[ponteiro].sRotulo.replace("&lt;BR&gt;","<BR>");
			//this.sFilho += this.sTrocaBR
			//+ "</a></td><TD width='1' class='menufilho'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></tr>"
			//+ "<TR><TD class='bordavert'><IMG src='/img/ponto.gif' width='2' height='1' border='0'></TD><TD class='bordavert'><IMG src='/img/ponto.gif' width='1' height='1' border='0'></TD><TD width='1' class='bordavert'><IMG src='/img/ponto.gif' width='1' height='1' alt='' border='0'></TD></TR>";
			return this.sFilho;
		}
		else{
			return "";
		}
    }
}
function Menu(scodpagina){
	this.oPai = new MontaPai();
	this.oFilho = new MontaFilho();
	this.ap_Menu = new Array();
	this.strMenu = "";

	if(bPossuiHome){

		this.strMenu = (typeof(imgTopo) == "undefined") ? "" : imgTopo;

		this.strMenu += "<table border=0 cellspacing=0 cellpadding=0>";
		if(typeof bHome  == "undefined"){
			this.strMenu += "<tr><td><div><a href='/index.htm' target='_top'><img src='/home/img/hp_estrutura/fig_espaco_uni.gif' border='0'></a></div></td></tr><tr><td>";
		}
		if((nNivel==1)&&(Nav[nPosicao].apFilho == "")){
			//this.strMenu += "<tr><td colspan=3 align='right'><img src='"+Nav[nPosicao].sArqImagemAlt+"'></td></tr>";
		}else{
		   switch(nNivel){
				case (0): {
					if (Nav[nPosicao].sArqImagemAlt != ""){
						//this.strMenu += "<tr><td colspan=3 align='right'><img src='"+Nav[nPosicao].sArqImagemAlt+"'></td></tr></table>";
						return null;
						}
					else{
						return null;
						}
					break;
				}
				case (1): {
					this.ap_menu = Nav[nPosicao].apFilho;
					sCarrega_menu = "Fechado";
					break;
				}
				case (2): {
					this.ap_menu = Nav[Nav[nPosicao].pPai].apFilho;
					sCarrega_menu = scodpagina;
					break;
				}
				default: {
					this.ap_menu = Nav[Nav[aBcrumb[2]].pPai].apFilho;
					sCarrega_menu = Nav[aBcrumb[2]].id;
					break;
				}
			}

			for(i=0;i<this.ap_menu.length;i++){
				this.strMenu += this.oPai.MontaPai(this.ap_menu[i],Nav);

				if (nNivel >= 2 && Nav[this.ap_menu[i]].id == sCarrega_menu){
					if(Nav[this.ap_menu[i]].apFilho.length != 0){
						var cont_menu_rid = 0;
						for (j=0;j<Nav[this.ap_menu[i]].apFilho.length;j++){
							if(Nav[Nav[this.ap_menu[i]].apFilho[j]].bApresenta == 1){
								cont_menu_rid++ ;
							}
						}
						for (j=0;j<Nav[this.ap_menu[i]].apFilho.length;j++){

							if(Nav[Nav[this.ap_menu[i]].apFilho[j]].bApresenta == 1){
								this.strMenu += this.oFilho.MontaFilho(Nav[this.ap_menu[i]].apFilho[j],Nav);
								/*if(j == (cont_menu_rid-1))
									//this.strMenu += "<tr><td colspan=3 class='divisorpai'><img src='/img/dot.gif' width=137 height=1></td></tr>";
								else
									this.strMenu += "<tr><td colspan=3 class='bordavert'><img src='/img/dot.gif' width=137 height=1></td></tr>";*/
							}
						}
					}
				}
			}
		}
	//	this.strMenu += "<TR><TD colspan='3' class='bordamenu'><IMG src='/img/ponto.gif' width='1' height='1' border='0'></TD></TR></table>";
	}
	else {

		if(typeof imgTopo == "undefined"){
			this.strMenu = "";
		}
		else{

			this.strMenu = imgTopo;
		}
		this.strMenu += "<table border=0 cellspacing=0 cellpadding=0>";
		if(typeof bHome  == "undefined"){
			this.strMenu += "<tr><td><div><a href='/index.htm' target='_top'><img src='/home/img/hp_estrutura/fig_espaco_uni.gif' border='0'></a></div></td></tr><tr><td>";
		}

		if ((nNivel==0)&&(Nav[nPosicao].apFilho == "")){
			//this.strMenu += "<tr><td colspan=3 align='right'><img src='"+Nav[nPosicao].sArqImagemAlt+"'></td></tr>";
		}
		else{

			switch(nNivel){
				case (0): {
					this.ap_menu = Nav[nPosicao].apFilho;
					sCarrega_menu = "Fechado";
					break;
				}
				case (1): {
					this.ap_menu = Nav[Nav[nPosicao].pPai].apFilho;
					sCarrega_menu = scodpagina;
					break;
				}
				default: {
					this.ap_menu = Nav[Nav[aBcrumb[1]].pPai].apFilho;
					sCarrega_menu = Nav[aBcrumb[1]].id;
					break;
				}
			}

			for(i=0;i<this.ap_menu.length;i++){
				this.strMenu += this.oPai.MontaPai(this.ap_menu[i],Nav);

				if (nNivel >= 1 && Nav[this.ap_menu[i]].id == sCarrega_menu){
					if(Nav[this.ap_menu[i]].apFilho.length != 0){
						for (j=0;j<Nav[this.ap_menu[i]].apFilho.length;j++){
							if(Nav[Nav[this.ap_menu[i]].apFilho[j]].bApresenta == 1){
								this.strMenu += this.oFilho.MontaFilho(Nav[this.ap_menu[i]].apFilho[j],Nav);
								/*if(j == (Nav[this.ap_menu[i]].apFilho.length-1))
									this.strMenu += "<tr><td colspan=3 class='divisorpai'><img src='/img/dot.gif' width=137 height=1></td></tr>";
								else
									this.strMenu += "<tr><td colspan=3 class='divisorfilho'><img src='/img/dot.gif' width=137 height=1></td></tr>";*/
							}
						}
					}
				}
			}
		}
		this.strMenu += "</td></tr></table>"
	}
}

function Rodape(scodpagina){

	this.sRodape = "";
	this.sTiraBR = "";

	if (bPossuiHome){
		if ((nNivel==1)&&(Nav[nPosicao].apFilho == "")){
			bImprimeRodape = false;
		}
		else{
			if ((nNivel==0)&&(Nav[nPosicao].apFilho == "")){
				bImprimeRodape = false;
			}
			else{
			var aRodape = Nav[aBcrumb[1]].apFilho;

			if((Nav[aBcrumb[1]].labelCL == "") || (typeof Nav[aBcrumb[1]].labelCL == "undefined")){
				this.sTiraBR = Nav[aBcrumb[1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
			}else{
				this.sTiraBR = Nav[aBcrumb[1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
			}

			this.sTituloRodape = PrintClosing+"&nbsp;"+this.sTiraBR;
			}
		}
	}
	else{
		if ((nNivel==0)&&(Nav[nPosicao].apFilho == "")){
			bImprimeRodape = false;
		}
		else{

			if(typeof bHome=="undefined"){var aRodape = Nav[aBcrumb[nNivel-1]].apFilho;}
			else{var aRodape = Nav[aBcrumb[0]].apFilho;}

			this.sTiraBR = Nav[aBcrumb[0]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
			this.sTituloRodape = PrintClosing+"&nbsp;"+this.sTiraBR;
		}
	}
	if (bImprimeRodape){
		for (i=0;i<aRodape.length;i++){
	     	if(Nav[aRodape[i]].bApresenta == 1){
				this.sTiraBR = Nav[aRodape[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
		 		this.sRodape += '<a href="' + Nav[aRodape[i]].sURL
	     			+ '" target="'+Nav[aRodape[i]].sLinkTarget+'" class="linkeru"> '
	     			+ this.sTiraBR + '</a> | ';
		 	}
		}
		if(aRodape.length!=0){
		    	this.sRodape=this.sRodape.substring(0,this.sRodape.length-2);

				if (bPossuiHome){
					if((nNivel==6)){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=0){
						   bSubcloselink61 = true;
						 }

						this.sRodape61 = "";
						var aRodape61 = Nav[aBcrumb[nNivel-2]].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape61 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape61.length;i++){
							this.sTiraBR = Nav[aRodape61[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape61 += "<a href='" + Nav[aRodape61[i]].sURL
							+ "' target='"+Nav[aRodape61[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape61=this.sRodape61.substring(0,this.sRodape61.length-2);
					}

					if(nNivel==6){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=0){
						   bSubcloselink62 = true;
						}

						this.sRodape62 = "";
						var aRodape62 = Nav[aBcrumb[nNivel-3]].apFilho;
						if((Nav[aBcrumb[nNivel-3]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-3]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-3]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-3]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape62 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape62.length;i++){
							this.sTiraBR = Nav[aRodape62[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape62 += "<a href='" + Nav[aRodape62[i]].sURL;
							+ "' target='"+Nav[aRodape62[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape62=this.sRodape62.substring(0,this.sRodape62.length-2);
					}

					if(nNivel==6){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink6 = true;
						}

						this.sRodape6 = "";
						var aRodape6 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape6 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape6.length;i++){
							this.sTiraBR = Nav[aRodape6[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape6 += "<a href='" + Nav[aRodape6[i]].sURL
							+ "' target='"+Nav[aRodape6[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape6=this.sRodape6.substring(0,this.sRodape6.length-2);
					}

					if(nNivel==5){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink5 = true;
						}
						this.sRodape5 = "";
						var aRodape5 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape5 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape5.length;i++){
							this.sTiraBR = Nav[aRodape5[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape5 += "<a href='" + Nav[aRodape5[i]].sURL
							+ "' target='"+Nav[aRodape5[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape5=this.sRodape5.substring(0,this.sRodape5.length-2);
					}

					if(nNivel==5){
						if(Nav[Nav[Nav[nPosicao].pPai].pPai].apFilho.length!=1){
						   bSubcloselink51 = true;
						}

						this.sRodape51 = "";
						var aRodape51 = Nav[Nav[aBcrumb[nNivel-1]].pPai].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape51 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape51.length;i++){
							this.sTiraBR = Nav[aRodape51[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape51 += "<a href='" + Nav[aRodape51[i]].sURL
							+ "' target='" +Nav[aRodape51[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape51=this.sRodape51.substring(0,this.sRodape51.length-2);
					}

					if(nNivel==4){
						if(Nav[Nav[Nav[nPosicao].pPai].pPai].apFilho.length!=1){
						   bSubcloselink41 = true;
						}

						this.sRodape41 = "";
						var aRodape41 = Nav[aBcrumb[nNivel-2]].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape41 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape41.length;i++){
							this.sTiraBR = Nav[aRodape41[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape41 += "<a href='" + Nav[aRodape41[i]].sURL
							+ "' target='"+Nav[aRodape41[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape41=this.sRodape41.substring(0,this.sRodape41.length-2);
					}

					if((nNivel==4) || (nNivel==3 && Nav[nPosicao].bApresenta == 0)){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink = true;
						}

						this.sRodape4 = "";
						var aRodape4 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape4 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape4.length;i++){
							this.sTiraBR = Nav[aRodape4[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape4 += "<a href='" + Nav[aRodape4[i]].sURL
							+ "' target='"+Nav[aRodape4[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape4=this.sRodape4.substring(0,this.sRodape4.length-2);
					}
				}
				else{
					if((nNivel==6)){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=0){
						   bSubcloselink61 = true;
						 }

						this.sRodape61 = "";
						var aRodape61 = Nav[aBcrumb[nNivel-2]].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape61 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape61.length;i++){
							this.sTiraBR = Nav[aRodape61[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape61 += "<a href='" + Nav[aRodape61[i]].sURL
							+ "' target='"+Nav[aRodape61[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape61=this.sRodape61.substring(0,this.sRodape61.length-2);
					}

					if(nNivel==6){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=0){
						   bSubcloselink62 = true;
						}

						this.sRodape62 = "";
						var aRodape62 = Nav[aBcrumb[nNivel-3]].apFilho;
						if((Nav[aBcrumb[nNivel-3]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-3]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-3]].sRotulo.replace("&lt;BR&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-3]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape62 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape62.length;i++){
							this.sTiraBR = Nav[aRodape62[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape62 += "<a href='" + Nav[aRodape62[i]].sURL
							+ "' target='"+Nav[aRodape62[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape62=this.sRodape62.substring(0,this.sRodape62.length-2);
					}


					if(nNivel==6){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink6 = true;
						}

						this.sRodape6 = "";
						var aRodape6 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape6 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape6.length;i++){
							this.sTiraBR = Nav[aRodape6[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape6 += "<a href='" + Nav[aRodape6[i]].sURL
							+ "' target='"+Nav[aRodape6[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape6=this.sRodape6.substring(0,this.sRodape6.length-2);
					}

					if(nNivel==5){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink5 = true;
						}
						this.sRodape5 = "";
						var aRodape5 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape5 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape5.length;i++){
							this.sTiraBR = Nav[aRodape5[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape5 += "<a href='" + Nav[aRodape5[i]].sURL
							+ "' target='"+Nav[aRodape5[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape5=this.sRodape5.substring(0,this.sRodape5.length-2);
					}

					if(nNivel==5){
						if(Nav[Nav[Nav[nPosicao].pPai].pPai].apFilho.length!=1){
						   bSubcloselink51 = true;
						}

						this.sRodape51 = "";
						var aRodape51 = Nav[Nav[aBcrumb[nNivel-1]].pPai].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape51 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape51.length;i++){
							this.sTiraBR = Nav[aRodape51[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape51 += "<a href='" + Nav[aRodape51[i]].sURL
							+ "' target='" +Nav[aRodape51[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape51=this.sRodape51.substring(0,this.sRodape51.length-2);
					}

					if((nNivel==4) || (nNivel==3 && Nav[nPosicao].bApresenta == 0)){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1){
						   bSubcloselink = true;
						}

						this.sRodape4 = "";
						var aRodape4 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape4 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape4.length;i++){
							this.sTiraBR = Nav[aRodape4[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape4 += "<a href='" + Nav[aRodape4[i]].sURL
							+ "' target='"+Nav[aRodape4[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape4=this.sRodape4.substring(0,this.sRodape4.length-2);
					}

					if((nNivel==4)){
						if(Nav[Nav[Nav[nPosicao].pPai].pPai].apFilho.length!=1){
						   bSubcloselink41 = true;
						}

						this.sRodape41 = "";
						var aRodape41 = Nav[aBcrumb[nNivel-2]].apFilho;
						if((Nav[aBcrumb[nNivel-2]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-2]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-2]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape41 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape41.length;i++){
							this.sTiraBR = Nav[aRodape41[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape41 += "<a href='" + Nav[aRodape41[i]].sURL
							+ "' target='"+Nav[aRodape41[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape41=this.sRodape41.substring(0,this.sRodape41.length-2);
					}

					if((nNivel==3) || (nNivel==2 && Nav[nPosicao].bApresenta == 0)){
						if(Nav[Nav[nPosicao].pPai].apFilho.length!=1)
						bSubcloselink = true;

						this.sRodape4 = "";
						var aRodape4 = Nav[aBcrumb[nNivel-1]].apFilho;
						if((Nav[aBcrumb[nNivel-1]].labelCL == "") || (typeof Nav[aBcrumb[nNivel-1]].labelCL == "undefined")){
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						else{
							this.sTiraBR = Nav[aBcrumb[nNivel-1]].labelCL.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
						}
						this.sTituloRodape4 = PrintClosing+"&nbsp;"+this.sTiraBR;
						for (i=0;i<aRodape4.length;i++){
							this.sTiraBR = Nav[aRodape4[i]].sRotulo.replace("&lt;BR&gt;","&nbsp;").replace("&lt;br&gt;","&nbsp;");
							this.sRodape4 += "<a href='" + Nav[aRodape4[i]].sURL
							+ "' target='"+Nav[aRodape4[i]].sLinkTarget+"' class='linkeru'> "
							+ this.sTiraBR + "</a> | ";
						}
						this.sRodape4=this.sRodape4.substring(0,this.sRodape4.length-2);
					}
				}
		}
	}
}

function PrintCopyright(){
	if(typeof bSiteEnglish == "undefined"){
		bSiteEnglish = 0
    }
		if(bSiteEnglish == 1){
				this.PrintaCopy = "<img src='/img/dot.gif' width=1 height=13><br>"
				+ "<span class=copyright><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"1\"><img src=\"/home/img/hp_estrutura/logo_santander_rod3.gif\" border=\"0\"></td><td width=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"15\" border=\"0\"></td><td align=\"right\">"
				+ "<a href=\"/english/quem_somos/privacidade/tpl_privacidade.shtm\" class=copyright>Privacy</a> | "
				+ "<a href=\"/english/quem_somos/ressalvas/tpl_ressalvas.shtm\" class=copyright>Disclaimer</a></td></tr></table></span>";
				document.write(PrintaCopy)
			}
			else{
				this.PrintaCopy = "<img src='/img/dot.gif' width=1 height=13><br>"
				+ "<span class=copyright><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td width=\"1\"><img src=\"/home/img/hp_estrutura/logo_santander_rod3.gif\" border=\"0\"></td><td width=\"1\"><img src=\"/img/dot.gif\" width=\"1\" height=\"15\" border=\"0\"></td><td align=\"right\">"
				+ "<a href=\"/institucional/politica_privacidade/tpl_privacidade.shtm\" class=\"copy\">Privacidade</a> | "
				+ "<a href=\"/institucional/ressalvas/tpl_ressalvas.shtm\" class=\"copy\">Ressalvas</a></td></tr></table></span>";
				document.write(PrintaCopy)
		}
}

function Construtor(scodpagina){
	nPosicao = onde.posicao(scodpagina,Nav);
	aBcrumb = oBreadCrumb.Bcrumb(scodpagina,Nav);
	nNivel = oNivel.nivel(scodpagina,Nav);

	bSubcloselink = false;
	bSubcloselink2 = false;
	bSubcloselink3 = false;
	bSubcloselink4 = false;
	bSubcloselink41 = false;
	bSubcloselink5 = false;
	bSubcloselink51 = false;
	bSubcloselink6 = false;
	bSubcloselink61 = false;
	bSubcloselink62 = false;
	bImprimeRodape = true;

	this.CMenu = new Menu(scodpagina);
	this.CBcrumb = new Imprimi_BCrumb(scodpagina);
	this.CRodape = new Rodape(scodpagina);
}