
//	browser check
function checkBrowser()
{
	this.ver=navigator.appVersion
	this.parsedVer = parseInt(this.ver);
	this.dom=document.getElementById?1:0
	this.ie6=( (this.ver.indexOf("MSIE 6")>-1) && this.dom)?1:0;
	this.ie5=( (this.ver.indexOf("MSIE 5")>-1) && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}
var bw=new checkBrowser()
	
	


function gotoWindow()
{
	vForm = document.forms[1];
	var vQuote = vForm.symb.value;
	if(vQuote.length < 0) { return; }
	var url ="/domain/redir.htm?symb=" + vQuote
	quotesWin(url,700,500,50,100)
	return;
}

function ckCookie()
{
	var x = 456;
	var y = 390;
	if(bw.ns4||bw.ns5) { x = 440; y = 380; }
	//alert("Your current cookie is:  " + document.cookie)
	if( document.cookie.indexOf("CitiCk=set") < 0 )
	{
		openWin("/domain/popup.htm",x,y,50,50);
		setCookie();
	}
}

<!--
//BigCharts code 
if (document.images) {

var djiaOn = "http://chart.bigcharts.com/custom/citibank-com/citi-tab-dow.gifquote";
var nasOn = "http://chart.bigcharts.com/custom/citibank-com/citi-tab-nas.gifquote";
var spxOn = "http://chart.bigcharts.com/custom/citibank-com/citi-tab-sp500.gifquote";
}

function reFresh(whichmap,myImg){
       if (document.images) {
			document.images[whichmap].src=myImg;
       }
}

// end BigChart code



function goCountryOnChange() {
// place this really long string reference into a simple variable
	nation = document.countries.country[document.countries.country.selectedIndex].value;
	
// this calls the new pulldown
	if (nation == "") { 
		alert("Please choose a language for this country");
		return;
	} 
	else {	
	// ***If you click on the Back navigation button, US always selected by default.

		document.countries.country.selectedIndex = 0;
		// ***
     window.location.href = nation;
	}
}

//	open new Calculator window
function gotoCalcs() { quotesWin("http://www.myciti.com/calculators/",800,600,0,0) }

function quotesWin(url, width, height, top, left, center)
{
	var winCount = Math.round(Math.random() * 50);
	windowName = "newWin" + winCount;
	
	(width != null && quotesWin.arguments.length > 1) ? "" : width = 100;
	(height != null && quotesWin.arguments.length > 2) ? "" : height = 400;
	(top != null && quotesWin.arguments.length > 3) ? "" : top = 200;
	(left != null && quotesWin.arguments.length > 4) ? "" : left = 200;
	
	if(bw.parsedVer > 3 && quotesWin.arguments.length == 6)
	{
		var screenH = screen.availHeight;
		var screenW = screen.availWidth;
		top = (screenH - height) / 2;
		left = (screenW - width) / 2;
	}
	
	params = "toolbar=1,";
	params += "location=1,";
	params += "directories=1,";
	params += "status=1,";
	params += "menubar=1,";
	params += "scrollbars=0,";
	params += "resizable=1,"; 
	params += (bw.ns4==1||bw.ns5==1) ? "screenx="+left+"," : "left="+left+",";
	params += (bw.ns4==1||bw.ns5==1) ? "screeny="+top+"," : "top="+top+",";
	params += "width="+width+",";
	params += "height="+height;
	
	win = window.open(url, windowName, params);
	win.opener.name = "opener";
}

function openWin(url, width, height, top, left, center)
{
	var winCount = Math.round(Math.random() * 50);
	windowName = "newWin" + winCount;
	
	(width != null && openWin.arguments.length > 1) ? "" : width = 100;
	(height != null && openWin.arguments.length > 2) ? "" : height = 400;
	(top != null && openWin.arguments.length > 3) ? "" : top = 200;
	(left != null && openWin.arguments.length > 4) ? "" : left = 200;
	
	if(bw.parsedVer > 3 && openWin.arguments.length == 6)
	{
		var screenH = screen.availHeight;
		var screenW = screen.availWidth;
		top = (screenH - height) / 2;
		left = (screenW - width) / 2;
	}
	
	params = "toolbar=0,";
	params += "location=0,";
	params += "directories=0,";
	params += "status=0,";
	params += "menubar=0,";
	params += "scrollbars=0,";
	params += "resizable=1,"; 
	params += (bw.ns4==1||bw.ns5==1) ? "screenx="+left+"," : "left="+left+",";
	params += (bw.ns4==1||bw.ns5==1) ? "screeny="+top+"," : "top="+top+",";
	params += "width="+width+",";
	params += "height="+height;
	
	win = window.open(url, windowName, params);
	win.opener.name = "opener";
}

if (bw.ie4==1 || bw.ie5==1 || bw.ie6==1)

    {document.write('<link rel="stylesheet" href="iestyle.css" type="text/css">')}
else
    {document.write('<link rel="stylesheet" href="nsstyle.css" type="text/css">')}


function setCookie()
{
	var expDate = new Date();
	var days = 365 * 2;
	expDate = new Date();
	expDate.setTime (expDate.getTime() + (86400 * 1000 * days));
	var cookieVal = "CitiCk=set;expires=" + expDate.toGMTString() + ";path=/"
	document.cookie = cookieVal;
}

//-->

<!-- Random Article in Financial Solutions
function GetRndText() {
	var rndNum
	rndNum = Math.round(Math.random() * 10);
	if (rndNum > 4) {
		document.write("<img src='images/hdr_mort.gif' width='110' height='21' border='0' alt=''><br><span class='textHeaders'>Now is the Time to Refinance</span><br>Mortgage rates are dropping, and now is the perfect time to refinance your biggest asset.  We can make it easy to get a 5 minute online decision.<br><a href='http://www.citibank.com/citimortgage/'>More Information</a><span class='misc'>&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href='http://www.citibank.com/citimortgage/mymortgage/landings/index2.htm?td='>Apply Now</a><!--http://www.citibank.com/us/cbna/businessbanking/cbrn/index.htm--><p><span class='textHeaders'><img src='images/c2itlogo.gif' width='35' height='27' border='0' alt=''>Send Money by Email</span><br>Receive $10 after you sign up and send money for the first time.<br><a href='c2it/index_fins.htm'>More Information</a><span class='misc'>&nbsp;&nbsp;|&nbsp;&nbsp;</span>	<a href='https://www.c2it.com/C2IT/Register?referral=23CL00CT7W'>Apply Now</a><!--http://www.citibank.com/us/cbna/retirement/-->");
	} else {
		document.write("<img src='images/hdr_mort.gif' width='110' height='21' border='0' alt=''><br><span class='textHeaders'>Now is the Time to Refinance</span><br>Mortgage rates are dropping, and now is the perfect time to refinance your biggest asset.  We can make it easy to get a 5 minute online decision.<br><a href='http://www.citibank.com/citimortgage/'>More Information</a><span class='misc'>&nbsp;&nbsp;|&nbsp;&nbsp;</span><a href='http://www.citibank.com/citimortgage/mymortgage/landings/index2.htm?td='>Apply Now</a><!--http://www.citibank.com/us/cbna/businessbanking/cbrn/index.htm--><p><span class='textHeaders'>Citipro<span style='font-size:11px;'><sup>sm</sup></span> Free Financial Checkup</span><br>Enjoy life today. Prepare for the future. With a Citipro financial needs analysis, we can help show you how to find this type of financial  balance.<br><a href='http://www.citibank.com/us/cbna/citipro/'>More Information</a><span class='misc'></span><!--https://secure.citifinancial.com/moneywhen/consolidate.htm-->");
		}
}
