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
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="SOFCU, Federal, Credit , Union, sofcu, 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
META TAGS CONTENT AND DESCRIPTION ABOVE
META TAGS CONTENT AND DESCRIPTION ABOVE
*/


/*
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
CALL TO CORRECT DIRECTORY
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 securedir;
var homedir;

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


// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW
// ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW ROLLOVER CODE BELOW


browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);
if (((browserName == "Netscape") && (browserVer >= 3)) || ((browserName =="Microsoft Internet Explorer") && (browserVer >= 4)))
{
version = "ok";
autos_on = new Image(83,30);
autos_on.src = imgdir + "nav-autos-on.gif";

autos_off = new Image(83,30);
autos_off.src = imgdir + "nav-autos-off.gif";

checking_on = new Image(83,30);
checking_on.src = imgdir + "nav-checking-on.gif";

checking_off = new Image(83,30);
checking_off.src = imgdir + "nav-checking-off.gif";

contactus_on = new Image(116,18);
contactus_on.src = imgdir + "nav_contact_on.gif";

contactus_off = new Image(116,18);
contactus_off.src = imgdir + "nav_contact_off.gif";

deposit_on = new Image(83,30);
deposit_on.src = imgdir + "nav-deposit-on.gif";

deposit_off = new Image(83,30);
deposit_off.src = imgdir + "nav-deposit-off.gif";

help_on = new Image(117,18);
help_on.src = imgdir + "nav-help-on.gif";

help_off = new Image(117,18);
help_off.src = imgdir + "nav-help-off.gif";

home_on = new Image(116,18);
home_on.src = imgdir + "nav_home_on.gif";

home_off = new Image(116,18);
home_off.src = imgdir + "nav_home_off.gif";

infodesk_on = new Image(83,30);
infodesk_on.src = imgdir + "nav-infodesk-on.gif";

infodesk_off = new Image(83,30);
infodesk_off.src = imgdir + "nav-infodesk-off.gif";

kidspage_on = new Image(116,18);
kidspage_on.src = imgdir + "nav_kids_on.gif";

kidspage_off = new Image(116,18);
kidspage_off.src = imgdir + "nav_kids_off.gif";

loans_on = new Image(83,30);
loans_on.src = imgdir + "nav-loans-on.gif";

loans_off = new Image(83,30);
loans_off.src = imgdir + "nav-loans-off.gif";

bs_on = new Image(82,30);
bs_on.src = imgdir + "nav-bs-on.gif";

bs_off = new Image(82,30);
bs_off.src = imgdir + "nav-bs-off.gif";

otherservices_on = new Image(66,30);
otherservices_on.src = imgdir + "nav-otherservices-on.gif";

otherservices_off = new Image(66,30);
otherservices_off.src = imgdir + "nav-otherservices-off.gif";

teen_on = new Image(66,30);
teen_on.src = imgdir + "nav-teen-on.gif";

teen_off = new Image(66,30);
teen_off.src = imgdir + "nav-teen-off.gif";

privacy_on = new Image(116,18);
privacy_on.src = imgdir + "nav_privacy_on.gif";

privacy_off = new Image(116,18);
privacy_off.src = imgdir + "nav_privacy_off.gif";

one_on = new Image(333,181);
one_on.src = imgdir + "keyin1234-1-auto.jpg";

one_off = new Image(333,181);
one_off.src = imgdir + "keyin1234-1-auto.jpg";

two_on = new Image(333,181);
two_on.src = imgdir + "keyin1234-2-equity.jpg";

two_off = new Image(333,181);
two_off.src = imgdir + "keyin1234-2-equity.jpg";

three_on = new Image(333,181);
three_on.src = imgdir + "keyin1234-3-checking.jpg";

three_off = new Image(333,181);
three_off.src = imgdir + "keyin1234-3-checking.jpg";

four_on = new Image(333,181);
four_on.src = imgdir + "keyin1234-4-50th.jpg";

four_off = new Image(333,181);
four_off.src = imgdir + "keyin1234-4-50th.jpg";

communitylinks_on = new Image(116,16);
communitylinks_on.src = imgdir + "nav_community_on.gif";

communitylinks_off = new Image(116,16);
communitylinks_off.src = imgdir + "nav_community_off.gif";

students_on = new Image(116,16);
students_on.src = imgdir + "nav_students_on.gif";

students_off = new Image(116,16);
students_off.src = imgdir + "nav_students_off.gif";

events_on = new Image(116,16);
events_on.src = imgdir + "nav_events_on.gif";

events_off = new Image(116,16);
events_off.src = imgdir + "nav_events_off.gif";

fraud_on = new Image(116,16);
fraud_on.src = imgdir + "nav_fraudprev_on.gif";

fraud_off = new Image(116,16);
fraud_off.src = imgdir + "nav_fraudprev_off.gif";


educenter_on = new Image(116,16);
educenter_on.src = imgdir + "nav_educenter_on.gif";

educenter_off = new Image(116,16);
educenter_off.src = imgdir + "nav_educenter_off.gif";


fincoun_on = new Image(116,16);
fincoun_on.src = imgdir + "nav_fincoun_on.gif";

fincoun_off = new Image(116,16);
fincoun_off.src = imgdir + "nav_fincoun_off.gif";


location_on = new Image(116,16);
location_on.src = imgdir + "nav_location_on.gif";

location_off = new Image(116,16);
location_off.src = imgdir + "nav_location_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 ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE
// ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE ROLLOVER CODE ABOVE 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 tabover(howmuch)
{
var farover = '';
farover += '<img src="../images/clearpix.gif" width="' + howmuch + '" height="1" alt="" border="0">';
document.write(farover);
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.sofcu.com/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 doublerollover(one,two,three,four,five,six,seven)
{
if (one == 1)
{
document.topimage1.src = imgdir + "photo-infodesk-1.gif"
}
else if (two == 1)
{
document.topimage1.src = imgdir + "photo-infodesk-2.gif"
document.topimage2.src = imgdir + "photo-checking-1.gif"
}
else if (three == 1)
{
document.topimage2.src = imgdir + "photo-checking-2.gif"
document.topimage3.src = imgdir + "photo-deposits-1.gif"
}
else if (four == 1)
{
document.topimage3.src = imgdir + "photo-deposits-2.gif"
document.topimage4.src = imgdir + "photo-loans-1.gif"
}
else if (five == 1)
{
document.topimage4.src = imgdir + "photo-loans-2.gif"
document.topimage5.src = imgdir + "photo-business-1.gif"
}
else if (six == 1)
{
document.topimage5.src = imgdir + "photo-business-2.gif"
document.topimage6.src = imgdir + "photo-otherservices-1.gif"
}
else if (seven == 1)
{
document.topimage6.src = imgdir + "photo-otherservices-2.gif"
document.topimage7.src = imgdir + "photo-teen-1.gif"
}
else
{
document.topimage1.src = imgdir + "photo-infodesk-3.gif"
document.topimage2.src = imgdir + "photo-checking-3.gif"
document.topimage3.src = imgdir + "photo-deposits-3.gif"
document.topimage4.src = imgdir + "photo-loans-3.gif"
document.topimage5.src = imgdir + "photo-business-3.gif"
document.topimage6.src = imgdir + "photo-otherservices-3.gif"
document.topimage7.src = imgdir + "photo-teen-2.gif"
}
}

function openMap(nameofmap)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 400)
aWindow = window.open(imgdir + nameofmap,'Map',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=800,height=650,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
}



/* hidden div to replace popup windows used previously*/
 function openMemberAccountAgreement(){
	//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<div style="background-color: #ffffff; border: thin solid #640435; text-align: left; padding: 15px;">';
	content[index++] = '<span class="ficontent">Important information about procedures for opening a new account<br><br>To help the government fight the funding of terrorism and money laundering activities, Federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account.<br><br>What this means for you:  When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you.  We may also ask to see your driver&#39;s license or other identifying documentation.</span>';
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center" class="ficontent"><a href="https://rbserver.sofcu.com/scripts/ibank.dll?Func=MembershipApp&homepath=UA2004&ScreenId=%SCREEN_ID%&ReturnURL=https://mfa.sofcu.com&ContinueURL=NA" target="_blank" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue to Member Account Agreement</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.height = "300px";
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0); //used to make sure that the end user sees the disclaimer.

}

document.write('<div id="ex_dis" style="background-color: #E6D5A6; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: center; position:absolute; margin: 25% 25%; border: thin solid #640435; padding: 15px; display: none;z-index: 300; width:340px; height: 300px;"></div>');
/* end hidden div to replace popup windows used previously*/


function openComparison(fileName)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 400)
myFloater = window.open('','myWindow',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=775,height=450,top=" + pHeight + ",left=" + pWidth + ",scrollbars=1,resizable=1,status=1");
    myFloater.location.href = fileName;
}


function openMemberAccountAgreementDisclaimer()
{
//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<div style="background-color: #ffffff; border: thin solid #640435; text-align: left; padding: 15px;">';
	content[index++] = '<span class="ficontent">Important information about procedures for opening a new account<br><br>To help the government fight the funding of terrorism and money laundering activities, Federal law requires all financial institutions to obtain, verify, and record information that identifies each person who opens an account.<br><br>What this means for you:  When you open an account, we will ask for your name, address, date of birth, and other information that will allow us to identify you.  We may also ask to see your driver&#39;s license or other identifying documentation.</span>';
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center" class="ficontent"><a href="infodesk_eligibility.html" target="eligibility" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue to Eligibility Information</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.height = "300px";
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0); //used to make sure that the end user sees the disclaimer.

}

	
function loan_instructions(URL)
{

//content creation
	var content = new Array();
        var index = 0;
	content[index++] = '<div style="background-color: #ffffff; border: thin solid #640435; text-align: left; padding: 15px;">';
	content[index++] = 'Attention Internet Banking Users: To apply for a loan, please log onto Internet Banking, choose the "Loan" button from the menu, and click the "Apply for a New Loan" button.<br><br>Don\'t have access to Internet Banking? Go ahead and complete the loan application below and then click on the \'Submit Application\' button. One of our Member Service Representatives will contact you soon to finalize your application.';
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center" class="ficontent">Click here to <a href="'+URL+'" target="_blank" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">complete loan application</a> or <a href="https://rbserver.sofcu.com/" target="_blank" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">log into Internet Banking</a>.</div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.height = "300px";
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0); //used to make sure that the end user sees the disclaimer.

}

function showWarning(url){
	var content = new Array();
	var index = 0;

	
	content[index++] = '<div class="pageheader">Third Party Warning</div><p>Linked sites are not under the control of SOFCU. SOFCU is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. Security and privacy policies may differ from those practiced by SOFCU. The credit union does not represent either the third party or the user if a transaction is entered into with a linked site.</p>';
	content[index++] = '<div align="center"><a href="'+url+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'" target="_blank">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.height = "220px";
	document.getElementById("ex_dis").style.display = "block";
	
	scrollTo(0,0);
}
