if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;

// META TAGS CONTENT AND DESCRIPTION BELOW
document.write('<meta name="keywords" content="SPE Federal Credit Union, Federal, Credit , Union, spefcu, A financial institution of excellence, featuring secure Internet-based services including Home Banking, Bill Payment, Bill Presentment, Quicken and Money interfaces, Stock Quotes, on-line applications, financial calculators, useful links and a wealth of financial information">');
document.write('<meta name="description" content="ATM, ATM Locations, Account Access, Account Transfer, Automobile Loans, AutoVantage, Bank, Bank Account, Banking, Bill Payment, Bill Presentment, Brokerage, Cash, CDs, Certificates of Deposit, Checks, Checking Accounts, Consumer Loans, Convenience Services, Credit, Credit Card, Credit Card Applications, Credit Union, Digital Insight, Finance, Financial Calculator, Financial Institution, Financial Wizard, Loans, Home Loans, IRA, Money, Term Investment, Online Banking, Order Checks, Personal Financial Management, Rates, Mortgage Rates, Loan Rates, Terms, Retirement, Savings Accounts, Savings, Savings and Loan, Stock Quotes, Stocks, Student Loans, Student, Term Share Certificates, Thrifts, Visa Credit Cards">');
// META TAGS CONTENT AND DESCRIPTION ABOVE

// CALL TO CORRECT DIRECTORY

//if you are on homepage you need <script> var homepage = "yes";</script> to make codework properly
var imgdir;
var sitedir;
var pdfdir;
var securedir;
var homedir;

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
pdfdir="pdfs/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.spefcu.org/images/"
sitedir="http://www.spefcu.org/site/"
pdfdir="http://www.spefcu.org/pdfs/";
securedir="http://www.spefcu.org/site/"
homedir="http://www.spefcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.spefcu.org/images/"
sitedir="http://www.spefcu.org/site/"
pdfdir="https://www.spefcu.org/pdfs/";
securedir="https://www.spefcu.org/site/"
homedir="http://www.spefcu.org/"
}

else if(window.absolutepage)
{
imgdir="http://www.spefcu.org/images/"
sitedir="http://www.spefcu.org/site/"
pdfdir="http://www.spefcu.org/pdfs/";
securedir="http://www.spefcu.org/site/"
homedir="http://www.spefcu.org/"
}
else if(window.securepage)
{
imgdir="https://www.spefcu.org/images/"
sitedir="http://www.spefcu.org/site/"
pdfdir="https://www.spefcu.org/pdfs/";
securedir="https://www.spefcu.org/site/"
homedir="http://www.spefcu.org/"
}
else
{
imgdir="../images/";
sitedir="";
pdfdir="../pdfs/";
securedir="";
homedir="../";
}

// ROLLOVER CODE BELOW
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";
home_on = new Image(49,22);
home_on.src = imgdir + "nav-home-on.gif";

home_off = new Image(49,22);
home_off.src = imgdir + "nav-home-off.gif";

contact_on = new Image(76,22);
contact_on.src = imgdir + "nav-contact-on.gif";

contact_off = new Image(76,22);
contact_off.src = imgdir + "nav-contact-off.gif";

apps_on = new Image(82,22);
apps_on.src = imgdir + "nav-apps-on.gif";

apps_off = new Image(82,22);
apps_off.src = imgdir + "nav-apps-off.gif";

calculators_on = new Image(77,22);
calculators_on.src = imgdir + "nav-calculators-on.gif";

calculators_off = new Image(77,22);
calculators_off.src = imgdir + "nav-calculators-off.gif";

community_on = new Image(83,22);
community_on.src = imgdir + "nav-community-on.gif";

community_off = new Image(83,22);
community_off.src = imgdir + "nav-community-off.gif";

onlinebanking_on = new Image(34,144);
onlinebanking_on.src = imgdir + "nav-onlinebanking-on.gif";

onlinebanking_off = new Image(34,144);
onlinebanking_off.src = imgdir + "nav-onlinebanking-off.gif";

products_on = new Image(31,144);
products_on.src = imgdir + "nav-products-on.gif";

products_off = new Image(31,144);
products_off.src = imgdir + "nav-products-off.gif";

bproducts_on = new Image(31,144);
bproducts_on.src = imgdir + "nav-bps-on.gif";

bproducts_off = new Image(31,144);
bproducts_off.src = imgdir + "nav-bps-off.gif";

iis_on = new Image(31,144);
iis_on.src = imgdir + "nav-iis-on.gif";

iis_off = new Image(31,144);
iis_off.src = imgdir + "nav-iis-off.gif";

rates_on = new Image(22,144);
rates_on.src = imgdir + "nav-rates-on.gif";

rates_off = new Image(22,144);
rates_off.src = imgdir + "nav-rates-off.gif";

membership_on = new Image(23,144);
membership_on.src = imgdir + "nav-membership-on.gif";

membership_off = new Image(23,144);
membership_off.src = imgdir + "nav-membership-off.gif";

aboutus_on = new Image(24,144);
aboutus_on.src = imgdir + "nav-aboutus-on.gif";

aboutus_off = new Image(24,144);
aboutus_off.src = imgdir + "nav-aboutus-off.gif";

whatsnew_on = new Image(24,144);
whatsnew_on.src = imgdir + "nav-whatsnew-on.gif";

whatsnew_off = new Image(24,144);
whatsnew_off.src = imgdir + "nav-whatsnew-off.gif";

disclosures_on = new Image(24,144);
disclosures_on.src = imgdir + "nav-disclosures-on.gif";

disclosures_off = new Image(24,144);
disclosures_off.src = imgdir + "nav-disclosures-off.gif";

sitemap_on = new Image(24,144);
sitemap_on.src = imgdir + "nav-sitemap-on.gif";

sitemap_off = new Image(24,144);
sitemap_off.src = imgdir + "nav-sitemap-off.gif";

hours_on = new Image(23,144);
hours_on.src = imgdir + "nav-hours-on.gif";

hours_off = new Image(23,144);
hours_off.src = imgdir + "nav-hours-off.gif";

holiday_on = new Image(23,144);
holiday_on.src = imgdir + "nav-holiday-on.gif";

holiday_off = new Image(23,144);
holiday_off.src = imgdir + "nav-holiday-off.gif";

login_on = new Image(75,34);
login_on.src = imgdir + "nav-login-on.gif";

login_off = new Image(75,34);
login_off.src = imgdir + "nav-login-off.gif";

}
else
version = "x";

function img_act(imgName)
{
if (version == "ok")
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}
}

function img_inact(imgName)
{
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
}
// ROLLOVER CODE ABOVE

//style sheet sniffer
document.write('<scr'+ 'ipt src="' + securedir + '_styles.js"></scr' + 'ipt>');

function showCalc(calc)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 275)
var pHeight = (((parseInt(screen.height) / 2)) -240)
window.open(calc,"hello","width=550,height=480,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");

}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
if(nameofapp=='contactus')
	location.href = sitedir + 'contactus.html';
else
	aWindow = window.open('https://www.spefcu.org/Forms/OnlineForm.cgi?form=' + nameofapp,'application',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=700,height=600,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}

function eMail(alias, name, domain)
{
if (alias=="")
	alias = name + '@' + domain;
var mail = '<a onclick="javascript:alert(\'E-mail messages sent over the Internet are not secure. Please do not include any account or personal information such as social security numbers in the message.\');" href="mailto:' + name + '@' + domain + '">' + alias + '</a>';
document.write(mail);
}

function rateTable(n){
	var r = 0;
	var i = 0;
	var c = 0;
	//var nw = (w)? false : true;
	//var header = (h)? h : 0;
	var whole = '';
	var max_value = 0;
	
	for(var r=0; r<entryObjects[n].value.length; r++) {
		for(var i=0; i<entryObjects[n].value[r].length; i++) {
			if(entryObjects[n].value[r].length>max_value)
				max_value = entryObjects[n].value[r].length;
		}
	}

	for(var r=0; r<entryObjects[n].value.length; r++) {
		var text = "<tr>";
		var styleClass = (c%2==0) ? "tablecontent1" : "tablecontent2";
		if(r==0) {
			styleClass = "tableheader";
			c--;
		}
		for(var i=0; i<entryObjects[n].value[r].length; i++) {
			/*if(nw) {
				var nowrap = (i==0) ? "nowrap" : "";
			}*/
			var nowrap="";
			var colspan="";
			if(max_value>entryObjects[n].value[r].length && i==entryObjects[n].value[r].length-1) {
				var num = max_value - entryObjects[n].value[r].length + 1;
				colspan = ' colspan="' +num+'"';
			}
			text += '<td'+colspan+' class="'+styleClass+'" valign="top" '+nowrap+'>'+entryObjects[n].value[r][i]+'</td>';
		}
		text += "</tr>";
		whole += text;
		c++;
	}
	document.write(whole);
}

//Third Party Warning
function showWarning(url) {
	show_Warning(url);
}

function show_Warning(url){
var content = new Array();
var index = 0;
//content[index++] = "You are now leaving SPE Federal Credit Union's website.  SPE Federal Credit Union does not provide and is not responsible for products and services offered through this site.";
content[index++] = "You are now leaving SPE Federal Credit Union's website. You are linking to an alternate web site not operated by the credit union. SPE Federal Credit Union does not provide and is not responsible for the products, services, or content offered through the alternate web site. ";
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.visibility = "visible";
scrollTo(0, 0);
}


document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color: #000000; text-align: center; position:absolute; top:125px; left:200px; border: thin solid #981535; padding: 15px; visibility: hidden;z-index: 10000; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=#cccccc,offX=4,offY=4,positive=true);"></div>');






//Turbotax Warning
function show_TT_Warning(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Important Disclaimer:</h2>The use of TurboTax is governed by Intuit's software licensing agreement. Intuit, TurboTax and TurboTax Online, among others, are registered trademarks and/or service marks of Intuit Inc. in the United States and other countries and are used with permission. Intuit is not affiliated with SPE Federal Credit Union. Intuit is solely responsible for the information, content and software products provided by Intuit. SPE Federal Credit Union has not been involved in the preparation of the content provided by Intuit and does not explicitly or implicitly endorse or approve such content. SPE Federal Credit Union cannot guarantee that the information and content supplied is accurate, complete, or timely, or that the software products provided produce accurate and/or complete results. SPE Federal Credit Union does not make any warranties with regard to the information, content or software products or the results obtained by their use. SPE Federal Credit Union disclaims any liability arising out of your use (or the results obtained from, interpretations made as a result of, or any tax position taken in reliance on information provided pursuant to, your use) of these Intuit software products or the information or content furnished by Intuit.";
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis_tt\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis_tt\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis_tt").innerHTML = content.join("");
document.getElementById("ex_dis_tt").style.visibility = "visible";
scrollTo(0, 0);
}

document.write('<div id="ex_dis_tt" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color: #000000; text-align: center; position:absolute; top:125px; left:200px; border: thin solid #981535; padding: 15px; visibility: hidden;z-index: 300; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=#cccccc,offX=4,offY=4,positive=true);"></div>');

function show_AlertMe_Warning(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Important Disclaimer:</h2>The use of AlertMe<sup>TM</sup> is governed by Fiserv Solutions, Inc. (Fiserv) licensing agreement. AlertMe is a registered trademark and/or service mark of Fiserv. Fiserv is not affiliated with SPE Federal Credit Union. Fiserv is solely responsible for the information, content and software products provided by Fiserv.";
content[index++] = '<br /><br /><br />';
content[index++] = '<div align="center"><a href="javascript:void(\'0\');" onclick="window.open(\''+url+'\');document.getElementById(\'ex_dis_alertme\').style.visibility = \'hidden\'">Continue</a>&nbsp;&nbsp;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis_alertme\').style.visibility = \'hidden\'">Decline</a></div></div>';	
document.getElementById("ex_dis_alertme").innerHTML = content.join("");
document.getElementById("ex_dis_alertme").style.visibility = "visible";
scrollTo(0, 0);
}

document.write('<div id="ex_dis_alertme" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: normal; color: #000000; text-align: center; position:absolute; top:125px; left:200px; border: thin solid #981535; padding: 15px; visibility: hidden;z-index: 300; width:350px; FILTER: progid:DXImageTransform.Microsoft.dropShadow(Color=#cccccc,offX=4,offY=4,positive=true);"></div>');







