// global utility functions
var child_win = null;
function launchPopup( url, winName, winParams ) {
  if( winName == '_top' ) { top.location.href = url; return; }
  if( winParams == null || winParams == '')
		winParams = 'status,resizable,scrollbars';
  if (winName == null || winName == '') {
     winName='childWin';
  }  if(child_win != null && !child_win.closed) child_win.close();  child_win = window.open( url, winName, winParams );
}
var is_nav4 = false;
if (document.layers) {
is_nav4 = true;
origWidth  = window.innerWidth;
origHeight = window.innerHeight;

window.onresize = function (){
  if (window.innerWidth == origWidth && window.innerHeight == origHeight) return;
  window.location.reload();
	}
}

var lastEl = null;
function mouseOver(el, x)
{
	el.onmouseout = mouseOut;
	el.restoreClass = el.className;
	el.className = x;
	lastEl = el;
}
function mouseOut()
{
	lastEl.className = lastEl.restoreClass;
}

ver4 = (is_ie4up || is_nav4up) ? 1 : 0;

document.write('' +
'<STYLE TYPE="text/css">' +
'.utilOff { color: #003399; text-decoration: none; }' +
'.utilOver { color: #3399cc; text-decoration: none; }' +
'</style>');

document.write('' +
'<table border="0" cellPadding="0" cellSpacing="0" width="100%">' +
  '<tr>' +
    '<td background="/domain/images/36wav.gif" colSpan="3"><img height=36 src="/domain/images/pixel.gif" width="1"></td>' +
  '</tr>' +
  '<tr>' +
    '<td rowspan=3 valign="top" background=/domain/images/filler2.gif><a href="/domain/redirect/global/logo/citi.htm'+location.search+'"><img alt="citi.com" border=0 width=61 height=44 src="/domain/images/citi36.gif"></a><img width=160 height=1 src=/domain/images/pixel.gif></td>' +
    '<td rowspan=3 width=100% background=/domain/images/filler2.gif>&nbsp;</td>' +
    '<td rowspan=3 background=/domain/images/filler1.gif nowrap align="right" valign=top><b>' +
			'<a class="utilOff" onmouseover=mouseOver(this,"utilOver") href=javascript:launchPopup("/domain/redirect/global/privacy.htm","privacy","status,menubar,scrollbars,resizable,toolbar,width=650,height=575")><span style="color:#003399; font-size:6pt">&#149;</span>&nbsp;privacy&nbsp;&nbsp;&nbsp;</a>' +
			'<a class="utilOff" onmouseover=mouseOver(this,"utilOver") href="/domain/redirect/global/citi.htm'+location.search+'"><span style="color:#003399; font-size:6pt">&#149;</span>&nbsp;citi.com&nbsp;&nbsp;&nbsp;</a>' +
			'</b></td></tr>' +
			
'</table>' +
'<img height=15 width=1 src=/domain/images/pixel.gif><br>' +
'');

function footer(pageName)
{
	if (pageName == null) {
		pageName = '';
		if (typeof(txtPagename) != 'undefined') pageName = txtPagename;
	}
	document.write('' +
		'<!-- footer -->' + 
		'<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
		  '<tr><!-- space before footer -->' +
		    '<td height="25">&nbsp;</td></tr>' +
		  '<tr>' +
		    '<td rowSpan="5"><img height="1" src="/domain/images/pixel.gif" width="10"></td>' +
		    '<td class="footerName" nowrap>&nbsp;</td>' +
		    '<td width=100% nowrap align=right' +
					'&nbsp;' +
					'&nbsp;' +
					'&nbsp;' +
					'&nbsp;' +
					'&nbsp;' +
					'</td>' +
		    '<td rowSpan="5"><img height="1" src="/domain/images/pixel.gif" width="5"></td>' +
		  '</tr>' +
		  '<tr>' +
		    '<td bgColor="#cccccc" colSpan="2"><img height="1" src="/domain/images/pixel.gif" width="1"></td></tr>' +
		  '<tr>' +
		    '<td width="100%"><img height="5" src="/domain/images/pixel.gif" width="100%"></td>' +
		    '<td></td>' +
		  '</tr>');
	document.write('' +
			'<tr>' +
			  '<td class="footer" vAlign="top">' +
			    '<img src=/domain/images/footlogo.gif><br>' +
			    '<a href="/domain/redirect/global/footer/citi.htm'+location.search+'">Citi.com</a></td>' +
			  '<td class="footer" vAlign="top" align=right nowrap>' +
			    '<a href=javascript:launchPopup("/domain/redirect/global/footer/privacy.htm","privacy","status,menubar,scrollbars,resizable,toolbar,width=650,height=575")>Privacy</a><br>' +
			    '<a href="/domain/redirect/global/footer/disclaim.htm">Terms &amp; Conditions</a><br>' +
			    '<font color="#666666">Copyright &copy; '+_copy+' Citigroup Inc.</font></td>' +
			'</tr>' +
		'</table>');
}
