﻿// ALT IMAGE FOR NAV ROLLOVERS
if (document.images)  {

//alt gifs

    cyberAlt = new Image();
    cyberAlt.src = "images/alt-cyber.gif";  
    directAlt = new Image();
    directAlt.src = "images/alt-direct.gif"; 
	personalAlt = new Image();
	personalAlt.src = "images/alt-personal.gif";	
	businessAlt = new Image();
	businessAlt.src = "images/alt-business.gif";
	loansAlt = new Image();
	loansAlt.src = "images/alt-loans.gif";
	ratesAlt = new Image();
	ratesAlt.src = "images/alt-rates.gif";
	feeAlt = new Image();
	feeAlt.src = "images/alt-fees.gif";
	calcAlt = new Image();
	calcAlt.src = "images/alt-calcs.gif";
	othersvcAlt = new Image();
	othersvcAlt.src = "images/alt-othersvc.gif";
	locationAlt = new Image();
	locationAlt.src = "images/alt-locations.gif";
	communityAlt = new Image();
	communityAlt.src = "images/alt-community.gif";
	privacyAlt = new Image();
	privacyAlt.src = "images/alt-privacy.gif";	 
	sitemapAlt = new Image();
	sitemapAlt.src = "images/alt-sitemap.gif";
	custservAlt = new Image();
	custservAlt.src = "images/alt-custserv.gif";
	buildingaddAlt = new Image();
	buildingaddAlt.src = "images/pixel_clear.gif";
	bizsrvAlt = new Image();
	bizsrvAlt.src = "images/alt_bussser1.gif";
	computeAlt = new Image();
	computeAlt.src = "images/alt-compute.gif";
	walletAlt = new Image();
	walletAlt.src = "images/alt_travelwall.gif";
	
    }

function chgImg(imgField) {
	
	if (document.images) {
		document["alt"].src = eval(imgField + "Alt.src");
	}
}

function chgImg2(imgField)	{
    if (document.images)	{
	document["alt"].src = "images/alt-default.gif";
	}
}

// POPUP WINDOW SCRIPT
function showpop(page, pagewidth, pageheight){
	var p = page;
	var w = pagewidth;
	var h = pageheight;
	var x = (screen.width - w) / 2;
	var y = (screen.height - h) / 2;

	window.open(''+p+'','','width='+w+',height='+h+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+x+',top='+y+'');
}

//<a href="javascript:showpop('page.html', '800', '600');">Link</a>


