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;

if(self.location.href.indexOf("doifcu.org") != -1){
    self.location.replace("https://www.doifcuhb.org/home.html");
}

/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Department of Interior Federal Credit Union, Federal, Credit , Union, doifcuhb, 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="http://www.doifcuhb.org/site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.doifcuhb.org/images/"
sitedir="http://www.doifcuhb.org/site/"
securedir="http://www.doifcuhb.org/site/"
homedir="http://www.doifcuhb.org/"
}
else if(window.securepage)
{
imgdir="../images/"
sitedir="http://www.doifcuhb.org/site/"
securedir="../site/"
homedir="http://www.doifcuhb.org/"
}
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

joining_on = new Image(142,20);
joining_on.src = imgdir + "nav-joining-on.gif";

joining_off = new Image(142,20);
joining_off.src = imgdir + "nav-joining-off.gif";

volunteers_on = new Image(142,20);
volunteers_on.src = imgdir + "nav-volunteers-on.gif";

volunteers_off = new Image(142,20);
volunteers_off.src = imgdir + "nav-volunteers-off.gif";

savings_on = new Image(142,20);
savings_on.src = imgdir + "nav-savings-on.gif";

savings_off = new Image(142,20);
savings_off.src = imgdir + "nav-savings-off.gif";

investments_on = new Image(142,20);
investments_on.src = imgdir + "nav-investments-on.gif";

investments_off = new Image(142,20);
investments_off.src = imgdir + "nav-investments-off.gif";

checking_on = new Image(142,20);
checking_on.src = imgdir + "nav-checking-on.gif";

checking_off = new Image(142,20);
checking_off.src = imgdir + "nav-checking-off.gif";

loan_on = new Image(142,20);
loan_on.src = imgdir + "nav-loan-on.gif";

loan_off = new Image(142,20);
loan_off.src = imgdir + "nav-loan-off.gif";

insurance_on = new Image(142,20);
insurance_on.src = imgdir + "nav-insurance-on.gif";

insurance_off = new Image(142,20);
insurance_off.src = imgdir + "nav-insurance-off.gif";

online_on = new Image(142,20);
online_on.src = imgdir + "nav-online-on.gif";

online_off = new Image(142,20);
online_off.src = imgdir + "nav-online-off.gif";

other_on = new Image(142,20);
other_on.src = imgdir + "nav-other-on.gif";

other_off = new Image(142,20);
other_off.src = imgdir + "nav-other-off.gif";

forms_on = new Image(142,20);
forms_on.src = imgdir + "nav-forms-on.gif";

forms_off = new Image(142,20);
forms_off.src = imgdir + "nav-forms-off.gif";

tab1_on = new Image(22,22);
tab1_on.src = imgdir + "tab_1_on.gif";

tab1_off = new Image(22,22);
tab1_off.src = imgdir + "tab_1_off.gif";

tab2_on = new Image(22,22);
tab2_on.src = imgdir + "tab_2_on.gif";

tab2_off = new Image(22,22);
tab2_off.src = imgdir + "tab_2_off.gif";

tab3_on = new Image(22,22);
tab3_on.src = imgdir + "tab_3_on.gif";

tab3_off = new Image(22,22);
tab3_off.src = imgdir + "tab_3_off.gif";

tab4_on = new Image(22,22);
tab4_on.src = imgdir + "tab_4_on.gif";

tab4_off = new Image(22,22);
tab4_off.src = imgdir + "tab_4_off.gif";


function img_act(imgName)
{
imgOn = eval(imgName + "_on.src");
document [imgName].src = imgOn;
}

function img_inact(imgName)
{
window.status = "";
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

function open_apps(nameofapp){
    self.location.href = "https://www.doifcuhb.org/Forms/OnlineForm.cgi?form="+nameofapp;
    return;
}


/************************************************************************************************************
* This function is used in the onclick of the a tag to display the external site warning. 
* @param msg - Integer specifying the which message to display.
* @param lk - The a link object
* Usage: <a href="http://wwww.mysite.com" onclick="return displayThirdPartyAlert(1,this);">My Site</a>
**************************************************************************************************************/
function displayThirdPartyAlert(msg,lk){
	var description = lk.innerHTML;
	if(description.indexOf('alt="') != -1){
		var x = description.indexOf('alt="')+5;
		var temp = description.substring(x);
		description = temp.substring(0,temp.indexOf("\""));
	}
	
	showWarning(lk.href, description, lk.target, msg)
	return false;
}

/************************************************************************************************************
* This function is used in the href of the a tag to display the external site warning. 
* @param lk - The url of the site to be opened
* @param desc - The description of the site to be opened, i.e. the name of the site.
* @param target - Allows for the window to opened in a new window
* @param msg - Integer specifying the which message to display.
* Usage: <a href="javascript:showWarning('http://wwww.mysite.com');">My Site</a>
**************************************************************************************************************/

function showWarning(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
//	target = (target) ? target : "_blank";
	msg = (msg) ? msg : 0;
	
	fiName = "Interior Federal Credit Union";
	
	var messages = new Array(6);
	// Standard 3rd Party Warning
	messages[0] = messages[1] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' has not approved this as a reliable partner site. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may be different than those of '+fiName+'.</p>';
	// Standard Partner Warning
	messages[2] = '<h2 style="text-align:center">Partner Site Disclaimer</h2><p>By accessing the noted link you will be leaving our website and entering a partner site which is hosted by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the site which you are entering, which may be different than those of ours.</p>';
	// Standard Affiliate Warning
	messages[3] = '<h2 style="text-align:center">Affiliate Site Disclaimer</h2><p>By accessing the noted link you will be leaving our website and entering an affiliate site located which is hosted by another party. Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies of the site which you are entering, which may be different than those of ours.</p>';
	// Customize if requested
	messages[4] = messages[0];
	// Standard mailto: Insecure Warning
	messages[5] = '<h2 style="text-align:center">Email Disclaimer</h2><p>This is <strong>NOT</strong> a secured e-mail transmission. Please <strong>do not send personal/financial information</strong> via this method.</p>';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<div align="center"><a href="'+lk+'" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">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.display="block";
	scrollTo(0,0);
}

function showKidsPage(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
window.open(page,"hello","width=810,height=500,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");
}

function comingSoon()
{
	var erronpic = "<html><head><title>Coming Soon!!!</title></head><body bgcolor='#FFFFFF' leftmargin=0 topmargin=3><div align='center'><img src='"+imgdir+"coming.gif' width='260' height='170' alt='' border='0'></div></body></html>";
    var pWidth = ( ((parseInt(screen.width) / 2)) - (300/2))
    var pHeight = (((parseInt(screen.height) / 2)) -(270/2))
	var estatement = window.open("","hello","width=300,height=270,left=" + pWidth + ",top=" + pHeight );
	estatement.document.open("text/html","replace");
	estatement.document.write(erronpic);
	estatement.document.close();

}

function registerPopup(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
window.open(page,"hello","width=300,height=180,left=" + pWidth + ",top=" + pHeight + ",resizable=1,scrollbars=1");
}

//third party site
function openLink(website){
if(website.indexOf('lllcinetapp.com') != -1){
    window.open(website);
    return;
}
	//page variables
	var page_bgcolor="#BEB9A6";
	var border_color="#D75D0C";
	var table_bgcolor="#FFFFFF";

	//content creation
	var content=new Array();
	var index = 0;
	content[index++]='<html>';
	content[index++]='<head>';
	content[index++]='<title>3rd Party Disclaimer</title>';
	content[index++]='</head>';
	content[index++]='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\',10000)>';
	content[index++]='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content[index++]='<tr>';
	content[index++]='<td>';
	content[index++]='<table bgcolor="' + table_bgcolor +'" align="center" width="100%" cellspacing="1" cellpadding="1" border="0">';
	content[index++]='<tr>';
	content[index++]='<td><font face="Arial,Verdana,Helvetica" size="-1"><b>IMPORTANT NOTICE</b><br><br>Our mission is to provide you with valuable, customer service oriented third party websites. By accessing the noted link you will be leaving our website and entering a website hosted by another party. Although we have approved this as a reliable partner site, please be advised that you will no longer be subject to, or under the protection of the privacy and security policies of our website. We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different than ours. Additionally, Department of Interior Federal Credit Union will not be held responsible for purchases made or services obtained on that website.';                            
	content[index++]='<br>';
	content[index++]='<br>';
	content[index++]='<br><br>';
	content[index++]='<div align="center"><a href="'+website+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">Continue</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();">Cancel</a></div>';
	content[index++]='</td>';
	content[index++]='</tr>';
	content[index++]='</table>';
	content[index++]='</td>';
	content[index++]='</tr>';
	content[index++]='</table>';
	content[index++]='</body>';
	content[index++]='</html>';

	//actual centering popup code
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 400) / 2);
     newwin = window.open("","newwin", "width=340,height=400,left="+pWidth+",top="+pHeight+", scrollbars=0,resizable");
 	newwin.document.open();
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}

