	// For all top level pages
// Need to exclude Mac: somehow the top != self statement is causing abnormal
// behavior in Mac
if (navigator.userAgent.indexOf("Mac")==-1)
{
	if (top != self)
		top.location = self.location;
}
	var RemainingWidth=0;
	var TotalWidth=0;
	var winWidth=0;	
	CalcWinSize();
	document.write("<table width='" + (TotalWidth) +"' border='0' align='center' cellspacing='0' cellpadding='0' valign='top'>");
	document.write("<tr valign='top'><td valign='top'>");
	document.write("<img src='/consumer/portuguese/img/pixel.gif' width='10' height='10'>");
	document.write("</td></tr>");
	document.write("<tr valign='top'><td valign='top'>");
	document.write("<table width='800' align='center' border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr><td width='0' valign='top'>");
	document.write("<img src='/consumer/portuguese/img/pixel.gif' width='4' height='1'></td>");
	document.write("<td width='0' valign='top' >");
	document.write("<a class='toplinks' href='/corporate/portuguese/mark-bank.htm'><img src='/consumer/portuguese/img/citi/citicorporate.jpg' alt='Citibank'  hspace='5' vspace='7' border='0'></a>");
	document.write("</td>");
	document.write("<td width='100%' align='right' valign='top'>");
	document.write("<div align='right'> • <a href='/corporate/portuguese/mark-bank.htm' class='corporatetoplinks'>Institutional Clients Group</a> • <a href='/corporate/portuguese/privacidade.htm' class='corporatetoplinks'>Privacidade</a> • <a href='http://www.citigroup.com' class='corporatetoplinks'>Citigroup.com</a><br>");
	document.write("<img src='/consumer/portuguese/img/1grey.gif' width='408' height='1'>");
	document.write("<br>• <a href='/corporate/portuguese/global-bank.htm' class='corporatetoplinks'>Global Banking</a> • <a href='/corporate/portuguese/global-trans.htm' class='corporatetoplinks'>Global Transaction Services</a> • <a href='/corporate/portuguese/capital-mark.htm' class='corporatetoplinks'>Capital Markets </a> •&nbsp;<img src='/consumer/portuguese/img/pixel.gif' width='2' height='13'><a href='/index.html' class='corporatetoplinks'>Home</a></div><br>");
	document.write("</td>");
	document.write("<td width='0'>");
	if(ie==1)
		document.write("<img src='/consumer/portuguese/img/pixel.gif' width='9' height='1'>");
	else
	document.write("<img src='/consumer/portuguese/img/pixel.gif' width='9' height='1'>");
	document.write("</td></tr>");
	document.write("</table>");
	document.write("</td></tr>");
	document.write("<tr valign='bottom'><td nowrap background='/consumer/portuguese/img/nav/corporateline.jpg'>");
	document.write("<table width='850' align='center' border='0' cellspacing='0' cellpadding='0'>");
	document.write("<tr>");
	document.write("<td width='0' nowrap>");
	document.write("<img src='/consumer/portuguese/img/pixel.gif' width='36' height='2'></td><td><img src='/consumer/portuguese/img/nav/cor-country.jpg' alt='Portugal' width='91' height='22'></td>");
	//document.write("</td>");
	winWidth = winWidth - 140;
	//document.write("<img src='/consumer/portuguese/img/nav/corporateline.gif' width='57' height='23' border='0'>");
	//added for tab link- starts
	for ( var i=1;i<tabName.length;i++){
	//document.write("<a href='" + tabLink[i] + "' onMouseOver='navRoll(" + tabImgID[i] + ",1)' onMouseOut='navRoll(" + tabImgID[i] + ",0)' >");
						
		if (tab == i){			

		document.write("<td><a id='tab'+i href='" + tabLink[i] + "'  >");
		document.write("<img src='" + tabImgActive[i] + "' alt='" + tabName[i] +"' name='nav_" + tabImgID[i] + "' height='23' border='0' id='nav_" + tabImgID[i] + "' ></a>");
		getWidthofObject('nav_' + tabImgID[i]);
		getWidthofObject('tab' + i);		
		}
		else{
		
		document.write("<td><a id='tab'+i href='" + tabLink[i] + "' onMouseOver='navRoll(" + tabImgID[i] + ",1,1)' onMouseOut='navRoll(" + tabImgID[i] + ",0,1)' >");
		document.write("<img src='" + tabImgOff[i] + "' alt='" + tabName[i] +"' name='nav_" + tabImgID[i] + "' height='23' border='0' id='nav_" + tabImgID[i] + "' ></a>");
		getWidthofObject('nav_' + tabImgID[i]);
		getWidthofObject('tab' + i);		
		}
		document.write("<img src='/consumer/portuguese/img/nav/corporateline.gif' height='23' border='0'>");
		winWidth = winWidth -5;
	}
	document.write("</td>");
    //ends
   if(n==1)
     
    document.write("<td background='/consumer/portuguese/img/nav/corporateline.gif' height='23' align='left' valign='bottom' nowrap><img src='/consumer/portuguese/img/nav/corporateline.gif' width='" + (winWidth-20) + "px' height='23'></td>");
    else if(ns6==1)
		document.write("<td background='/consumer/portuguese/img/nav/corporateline.gif' height='23' align='left' valign='bottom' nowrap><img src='/consumer/portuguese/img/nav/corporateline.gif' width='" + (winWidth-14) + "px' height='23'></td>");
	
		document.write("<td width='100%'><img src='/consumer/portuguese/img/nav/corporateline.gif' width='100%' height='23'></td>");
		 
	document.write("</tr>");
	document.write("</table>");
	document.write("</tr>");
	document.write("</table>");




function getWidthofObject(objectName)
	{
		if (n==1  )
		{
			objectName ="document." + objectName;
			var obj = eval(objectName)
			if (obj) 
				winWidth = winWidth- obj.width;
		
			if (winWidth <0) 
				winWidth=0;
		}	
	}
  
  
	function CalcWinSize() 
	{
		if(ns6==1) 
		{
			winWidth=innerWidth;
			TotalWidth=winWidth-14;
			winWidth = winWidth- (433);
			RemainingWidth=winWidth-(433);
		}
		else
		{
			winWidth=window.screen.width;
			TotalWidth="100%";
			RemainingWidth=winWidth-(433);
		}
	}
	
	var win = null;
	function NewWindow(mypage,myname,w,h)
	{
		LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
		TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
		settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable';
		win = window.open(mypage,myname,settings)
	}