if(bImprimeRodape){
	document.write('<tr><td>');
	sFirst = "";
	//se tem 3 niveis:
	if (b3Niveis)
	{	//separa todos os itens(links)
		aTeste = ImprimeJs.CRodape.sRodape4.split("|")
		nEnd = aTeste.length
		nBegin = nEnd - nQtd
		// estamos definindo que os itens do 3o. nivel sao os ultimos
		// por exemplo, se o total de itens eh 10 e sao 4 do 3o. nivel,
		// os itens do 3o. nivel serao os itens de numero 7,8,9 e 10
		sFirst = "";
		sLast= "";
		//separa os primeiros
		for(mi=0;mi<nBegin-1;mi++)
		{	sFirst += aTeste[mi] + " | "
		}
		sFirst += aTeste[mi]
		//separa os ultimos
		for(mi=nBegin;mi<nEnd-1;mi++)
		{	sLast += aTeste[mi] + " | "
		}
		sLast += aTeste[mi]

		if(bSubcloselink41 == 1)
		{	//separa todos os itens(links)
			aTeste2 = ImprimeJs.CRodape.sRodape41.split("|")
			nEnd2 = aTeste2.length
			nBegin2 = nEnd2 - nQtd
			// estamos definindo que os itens do 3o. nivel sao os ultimos
			sFirst2 = sLast2 = "";
			//separa os primeiros
			for(mi2=0;mi2<nBegin2-1;mi2++)
			{	sFirst2 += aTeste2[mi2] + " | "
			}
			sFirst2 += aTeste2[mi2]
			//separa os ultimos
			for(mi2=nBegin2;mi2<nEnd2-1;mi2++)
			{	sLast2 += aTeste2[mi2] + " | "
			}
			sLast2 += aTeste2[mi2]
		}
	}

	if(bSubcloselink6 == 1)
	{	var sSubcloselink6 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape6
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ ImprimeJs.CRodape.sRodape6
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink6);
	}

	if(bSubcloselink61 == 1)
	{	var sSubcloselink6 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape61
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ ImprimeJs.CRodape.sRodape61
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink6);
	}

	if(bSubcloselink62 == 1)
	{	var sSubcloselink6 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape62
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ ImprimeJs.CRodape.sRodape62
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink6);
	}

	if(bSubcloselink5 == 1)
	{	var sSubcloselink5 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape5
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ ImprimeJs.CRodape.sRodape5
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink5);
	}

	if(bSubcloselink51 == 1)
	{	var sSubcloselink5 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape51
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ ImprimeJs.CRodape.sRodape51
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink5);
	}

	if(bSubcloselink == 1 && ImprimeJs.CRodape.sTituloRodape4.indexOf("Sistema de Pagamentos Brasileiro")==-1)
	{	// Esta exceção foi criada para que nos closelinks do "Sistema de Pagamentos Brasileiro" não fossem exibidos subcloselinks do 4º nível
		var sRodFirst = (b3Niveis)?sFirst:ImprimeJs.CRodape.sRodape4;
		var sSubcloselink = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape4
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ sRodFirst
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink);
	}
	
	if(bSubcloselink41 == 1 && (ImprimeJs.CRodape.sTituloRodape41.indexOf('sua Situa&ccedil;&atilde;o') != -1 || ImprimeJs.CRodape.sTituloRodape41.indexOf('Real Not&iacute;cias') != -1))
	{	var sSubcloselink41 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ ImprimeJs.CRodape.sTituloRodape41
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ (b3Niveis)?sFirst2:ImprimeJs.CRodape.sRodape41
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink41);
	}

	if(b3Niveis)
	{	var sSubcloselink2 = "<table width='410' border='0' cellspacing='0' cellpadding='0'><tr><td class='divisor'>"
		+ "<table width='100%' border='0' cellspacing='1' cellpadding='0'><tr><td class='titclinks'>"
		+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>"
		+ "<td width='5'><img src='/img/dot.gif' width='5'></td>"
		+ "<td class='titclinks'><b>"
		+ sTituloTeste
		+ "</b>&nbsp;&nbsp;<img src='/img/arrowsmall.gif'></td></tr></table></td></tr>"
		+ "<tr><td class='closelinks'><table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		+ "<tr><td width='5' height='20' width='5px'><img src='/img/dot.gif' width='2' height=1></td><td height='30' valign=middle>"
		+ sLast
		+ "</td></tr></table></td></tr></table></td></tr></table><br>";
		document.write(sSubcloselink2);
	}
	var sCloselink = '<table width=410 border=0 cellspacing=0 cellpadding=0><tr><td class="divisor">'
	+ '<table width="100%" border=0 cellspacing=1 cellpadding=0><tr><td class="titclinks"><img src="/img/dot.gif" width=2 height=1><b>'
	+ ImprimeJs.CRodape.sTituloRodape
	+ '</b>&nbsp;&nbsp;<img src="/img/arrowsmall.gif"></td></tr>'
	+ '<tr><td class="closelinks"><table width="100%" border=0 cellspacing=0 cellpadding=0><tr><td height=20 width="5px"><img src="/img/dot.gif" width=2 height=1 border=0></td><td height=30 valign=middle>'
	+ ImprimeJs.CRodape.sRodape
	+ '</td></tr></table></td></tr></table></td></tr></table>';

	document.write(sCloselink);
	document.write('</td></tr>');
	document.write('<tr><td width="100%"><img src="/img/dot.gif" width=1 height=10></td></tr>');
}
window.defaultStatus = 'Portal BANCO REAL'