function WriteFooter ()
{
	document.write("<div class='footer'>");	
	document.write("<div class='links'> ");	
	document.write("<ul>");	 
	document.write("<li>&bull; <a href='/consumer/portuguese/popup_prices.html'>Preçário</a></li>");	
	document.write("<li>&bull; <a href='/consumer/portuguese/informacao.html'>Informação Importante</a> </li>");	
	document.write("<li>&bull; <a href='/consumer/portuguese/privacidade.html'>Seguran&ccedil;a e Privacidade</a> </li>");	
	document.write("<li>&bull; <a href='/consumer/portuguese/politica_dados.html'>Política de dados online</a></li> ");	
	document.write("<li>&bull; <a href='/consumer/portuguese/termos_condicoes.html'>Termos, condi&ccedil;&otilde;es e avisos</a></li>");	
	document.write("</ul>");	
	document.write("<div class='clear'></div>");	
	document.write("</div>");	
	document.write("<div class='clear'></div>");	
	document.write("<div class='copyright txt'> Copyright &copy; 2008 Citigroup Inc. <img src='/consumer/portuguese/img/img_logo_peq.gif' alt='Citi' /></div>");	
	document.write("</div>");
}
for (i=0;i<document.links.length;i++) {
var strHref = document.links[i].href;
	if ( ((strHref.substring(0,11)).toLowerCase()== 'javascript:') ||(strHref.indexOf("history")>0) || (strHref.indexOf("#")>0) )
	{}
	else
	{
		//document.links[i].href=document.links[i].href + strSource
		if(strHref.indexOf("?")>0)
		{
			//alert("Hai: "+strSource)
			if( (strHref.indexOf("?/portugal/consumer/appform/step2.jsp?cboCcardApply=1")>0) || (strHref.indexOf("?/portugal/consumer/appform/step2.jsp?cboCcardApply=2")>0) || (strHref.indexOf("?/portugal/consumer/appform/step2.jsp?cboCcardApply=3")>0) || (strHref.indexOf("?/portugal/consumer/appform/step2.jsp?cboCcardApply=4")>0) || (strHref.indexOf("?/portugal/consumer/appform/step2.jsp?cboCcardApply=5")>0))
				document.links[i].href=document.links[i].href + strSource.replace("?","&");
			else if(strHref.indexOf("?/portugal/consumer/appform/step1.jsp")>0)
				document.links[i].href=document.links[i].href + strSource;
			else if(strHref.indexOf("?/portugal/consumer/appform/step2.jsp")>0)
				document.links[i].href=document.links[i].href + strSource;
			else if(strHref.indexOf("?/portugal/consumer/retailform/step3.jsp")>0)
				document.links[i].href=document.links[i].href + strSource;
			else
				document.links[i].href=document.links[i].href + strSource.replace("?","&");
		}
		else
			document.links[i].href=document.links[i].href + strSource;
	}
}

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0200u";hbx.gn="vendorweb.citibank.com";

//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES

hbx.pn="PUT+PAGE+NAME+HERE";//PAGE NAME(S)
hbx.mlc="CONTENT+CATEGORY";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="file";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY
function _hbOnPrePVR(){
if(_mlc != 0){
_mlc = "/EMEA/PT" + _mlc
}
}
//OPTIONAL PAGE VARIABLES
//ACTION SETTINGS
hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt="auto";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION

//Script for HBX Tool
var hbxvar;
hbxvar=document.location.href;
if (hbxvar.indexOf("www.citibank.pt") > 0) 
{         
        hbx.acct="DM57071265DW;DM5707193LEW;DM57061446AB";//ACCOUNT NUMBER(S) 
        document.write("<script language='javascript1.1' src='http://www.citibank.pt/metrics/hbx.js'></script>"); 
} 
else 
{                 
        hbx.acct="DM550608FDEA";//ACCOUNT NUMBER(S) 
        document.write("<script language='javascript1.1' src='http://www.citibank.pt/metrics/hbx.js'></script>"); 
} 
//

//Scripts for OMNITURE Tool
document.write("<script language='javascript' src='consumer/portuguese/js/s_code.js' type='text/javascript'></script>");



