// JavaScript Document

<!--
frame=top.topo;
top.focus();
i=1;
pi=new Array("", "r_home.htm", "r_indice.htm", "r_balance.htm", "r_operations.htm", "r_financial.htm", "r_changes.htm", "", "r_cash.htm", "r_values.htm", "r_report.htm", "r_fiscal.htm", "_imprimir.htm");
pi2=new Array("d_indice.htm", "d_balance.htm", "d_operations.htm", "d_cash.htm", "d_changes.htm", "", "d_report.htm", "d_fiscal.htm", "_imprimir.htm");

pp=new Array("", "r_home.htm", "r_indice.htm", "r_balanco.htm", "r_resultado.htm", "r_origens.htm", "r_mutacoes.htm", "", "r_suplementares.htm", "r_auditores.htm", "r_conselho.htm", "_imprimir.htm");
pp2=new Array("d_indice.htm", "d_balanco.htm", "d_resultado.htm", "d_fluxos.htm", "d_mutacoes.htm", "", "d_auditores.htm", "d_conselho.htm", "_imprimir.htm");

if(lang=="dc"){
	pagina = pp
	pagina2 = pp2;
}else{
	pagina = pi
	pagina2 = pi2;
}

var qp=0;

function pg(qual){
	if(qual==0){
		top.location="index.htm";
	} else {
		if(qual>6 && qual<27){
			tmp="0" + (qual-6);
			if(qual>15) tmp=qual-6;
			top.principal.location=lang+"r_notas" + tmp + ".htm";
		} else if(qual<200){
			if(qual>26)	qp=(qual-19)
			else	qp=qual;
			top.principal.location=lang+pagina[qp];
		} else if(qual>204 && qual<225){
			tmp="0" + (qual-200-4);
			if(qual>213) tmp=qual-200-4;
			top.principal.location=lang+"d_notas" + tmp + ".htm";
		} else {
			if(qual>224) qp=(qual-200-19)
			else	qp=qual-200;
			top.principal.location=lang+pagina2[qp];
		}
	}
}

function MM_findObj(n, d) { //v4.01
	var p,i,x;  
	d=d.document; 
	if(!(x=d[n])&&d.all) 
		x=d.all[n]; 
		for (i=0;!x&&i<d.forms.length;i++) 
			x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) 
			x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) 
		x=d.getElementById(n); 
	return x;
}
//-->
