document.write("<table width='805' align='center' border='0' cellspacing='0' cellpadding='0' ID='Table1'>");
document.write("  <tr align='right' valign='top'> ");
document.write("    <td colspan='4'> ");
document.write("      <table width='5%' height='20'  border='0' cellpadding='0' cellspacing='0'>");
document.write("        <tr> ");
document.write("		  <td width='10'><img src='/consumer/portuguese/img/pixel.gif'></td>");
document.write("          <td width='33%' nowrap></td>");
document.write("          <td nowrap><img src='/consumer/portuguese/img/pixel.gif' width='15' height='1'></td>");
document.write("        </tr>");
document.write("      </table>");
document.write("    </td>");
document.write("  </tr>");
document.write("  </table>");
document.write("  <table width='100%' align='center' border='0' cellspacing='0' cellpadding='0'>");
document.write("  <tr valign='top' > ");
document.write("    <td colspan='4' width='100%'><img src='/consumer/portuguese/img/1grey.gif' width='100%' height='1' vspace='10'></td>");
document.write("  </tr>");
document.write("  </table>");
document.write("  <table width='805' align='center' border='0' cellspacing='0' cellpadding='0'>");
document.write("  <tr valign='top'> ");
document.write("  <td><img src='/consumer/portuguese/img/pixel.gif' width='4' height='1'></td>");
document.write("    <td><img src='/consumer/portuguese/img/citi/citi.jpg' ><br> ");
document.write("    <img src='/consumer/portuguese/img/pixel.gif' width='2' height='1'><a href='https://www.citigroupgcib.com' class='footerlink'><font class='footerlink'>www.citigroupcib.com</font></a></td>");
document.write("    <td nowrap align='right' class='footer'><div align='right'>");
document.write("        <a href='/corporate/portuguese/privacidade.htm' class='footer'>Privacidade</a><br>");
document.write("        <a href='/corporate/portuguese/poltica.htm' class='footer' >Política de dados online</a><br>");
document.write("        <a href='/corporate/portuguese/hlp-disclaim.htm' class='footer'>Termos, condições e avisos</a><br>");
document.write("        Copyright &copy; 2006 Citigroup Inc.</div></td>");
document.write("    <td><img src='/consumer/portuguese/img/pixel.gif' width='5' height='1'></td>");
document.write("  </tr>");
document.write("</table>");

for (i=0;i<document.links.length;i++) {

var strHref = document.links[i].href;
//alert("Came" + strHref + "  - " )


	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)
		{
			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.acct="DM57071265DW;DM5707193LEW;DM57061446AB";//ACCOUNT NUMBER(S)
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

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)


//Script for HBX Tool
var hbxvar;
hbxvar=document.location.href;
if (hbxvar.indexOf("www.citibank.pt") > 0)
{
document.write("<script language='javascript1.1' src='http://www.citibank.pt/metrics/hbx.js'></script>");
}