function stoperror()
{
return (true);
}

window.onerror = stoperror;



/*
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
META TAGS CONTENT AND DESCRIPTION BELOW
*/
document.write('<meta name="keywords" content="Friendly FI Name, Federal, Credit , Union, domain, 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://208.35.187.70/images/"
sitedir="http://208.35.187.70/site/"
securedir="http://208.35.187.70/site/"
homedir="http://208.35.187.70/"
}
else if(window.securepage)
{
imgdir="https://208.35.187.70/images/"
sitedir="http://208.35.187.70/site/"
securedir="https://208.35.187.70/site/"
homedir="http://208.35.187.70/"
}
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";

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

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

staff_on = new Image();
staff_on.src = imgdir + "nav-staff-on.gif";

staff_off = new Image();
staff_off.src = imgdir + "nav-staff-off.gif";

home_on = new Image();
home_on.src = imgdir + "nav-home-on.gif";

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

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

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

links_on = new Image();
links_on.src = imgdir + "nav-links-on.gif";

links_off = new Image();
links_off.src = imgdir + "nav-links-off.gif";

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

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

depositproducts_on = new Image();
depositproducts_on.src = imgdir + "nav-depositproducts-on.gif";

depositproducts_off = new Image();
depositproducts_off.src = imgdir + "nav-depositproducts-off.gif";

loanproducts_on = new Image();
loanproducts_on.src = imgdir + "nav-loanproducts-on.gif";

loanproducts_off = new Image();
loanproducts_off.src = imgdir + "nav-loanproducts-off.gif";

services_on = new Image();
services_on.src = imgdir + "nav-services-on.gif";

services_off = new Image();
services_off.src = imgdir + "nav-services-off.gif";

atm_on = new Image();
atm_on.src = imgdir + "nav-atm-on.gif";

atm_off = new Image();
atm_off.src = imgdir + "nav-atm-off.gif";

telephone_on = new Image();
telephone_on.src = imgdir + "nav-telephone-on.gif";

telephone_off = new Image();
telephone_off.src = imgdir + "nav-telephone-off.gif";

privacy_on = new Image();
privacy_on.src = imgdir + "nav-privacy-on.gif";

privacy_off = new Image();
privacy_off.src = imgdir + "nav-privacy-off.gif";

disclosure_on = new Image();
disclosure_on.src = imgdir + "nav-disclosure-on.gif";

disclosure_off = new Image();
disclosure_off.src = imgdir + "nav-disclosure-off.gif";


}
else
version = "x";

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

function img_inact(imgName)
{
oM.mout();
window.status = "";
 if (version == "ok")
{
imgOff = eval(imgName + "_off.src");
document [imgName].src = imgOff;
}
return;
}

// 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 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 openLink(website){

	//page variables
	var page_bgcolor="#278A4D";
	var border_color="#002E63";
	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>By accessing the noted link you will be leaving your financial institution\'s website and entering a website hosted by another party. Although your financial institution has 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 your financial institution\'s website. We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different than those of your financial institution\'s.';                            
	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) - 350) / 2);
     newwin = window.open("","newwin", "width=340,height=350,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open();
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}

function openIB(demo)
{
	if(demo)
	{
		self.location.href = "https://www.fnbwayne.com/onlineserv/HB/demo.html";
	}
	else
	{
		self.location.href = "https://www.fnbwayne.com/onlineserv/HB/Signon.cgi";
	}
	return;
}
function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.fnbwayne.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");
}


