var ns = document.layers ? true : false;
if (ns) {
	origWidth  = window.innerWidth;
	origHeight = window.innerHeight;
	window.onresize = function (){
		if (window.innerWidth == origWidth && window.innerHeight == origHeight) return;
			window.location.reload();
	}
}

function makeCitiLink(lnk) {
	return CITI_ENV+lnk+'?BVE='+BVE+'&BVP='+BVP+'&'+BVC+'&US&_u='+BVU;
}
function goCiti(lnk)
{
	var qs = location.search;
	if (qs == '') qs = '?US'
	else qs += is('US') ? '' : '&US';
	location.href=lnk+qs+'&r='+Math.random();
}
// global utility functions
var child_win = null;
function launchPopup( url, winName, winParams ) {
  if( winName == '_top' ) { top.location.href = url; return; }
  if (winName == null || winName == '') {
     winName='childWin';
  }  if(child_win != null && !child_win.closed) child_win.close();  child_win = window.open( url, winName, winParams );
}
function BVPopup(faq){
	var url = BVE+BVP+'help_desk/help_desk_item_popup.jsp?BS_Id='+faq+'&BS_Branding=Popup';	launchPopup(url,'faq','resizable,status,scrollbars,width=675,height=450');
}function windowClose() {
	window.close();
}
var close_text = typeof(txtClose) == 'undefined' ? 'close' : txtClose;document.write('' +
'<table border="0" cellPadding="0" cellSpacing="0" width="100%">' +
  '<tr>' +
    '<td background="/domain/images/citi_grd.jpg" colSpan="2"><img height="18" src="/domain/images/pixel.gif" width="1"></td>' +
  '</tr>' +
  '<tr>' +
    '<td width=100% nowrap align="right"><b><a href="javascript:windowClose();">' + close_text + '</a>&nbsp;&nbsp;</td>' +
	'</tr>' +
'</table>');
function footer()
{
	document.write('' +
'<!-- footer -->' + 
'<table width="100%" border="0" cellspacing="0" cellpadding="0">' +
	'<tr><!-- space before footer -->' +
		'<td colspan=5>&nbsp;</td></tr>' +
	'<tr>' +
		'<td width=10><img height="1" src="/domain/images/pixel.gif" width="10"></td>' +
		'<td width=100% height=6 valign=top><img height="1" src="/domain/images/1grey.gif" width="100%"></td>' +
		'<td width=5><img height="1" src="/domain/images/pixel.gif" width="5"></td>' +
	'</tr>' +
	'<tr>' +
		'<td></td>' +
		'<td>' +
			'<table width=100% border=0 cellspacing=0 cellpadding=0>');	if (typeof(txtBottomDisclaimer) != 'undefined' && txtBottomDisclaimer != "") {
document.write('' +
				'<tr>' +
					'<td class="footer" vAlign="top">' +
						'<font color="#666666">' + txtBottomDisclaimer + '<sub>&nbsp;</sub><br></font></td>' +
				'</tr>');
}	document.write('' +
				'<tr>' +
					'<td class="footer">' +
						'<font color="#666666"><nobr>Copyright &copy; ' +_copy+' Citicorp</nobr></font></td>' +
				'</tr>' +
			'</table>' +
		'</td>' +
	'</tr>' +
'</table>');
}
