
/*
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.fnbmilaca.com/images/"
sitedir="http://www.fnbmilaca.com/site/"
securedir="http://www.fnbmilaca.com/site/"
homedir="http://www.fnbmilaca.com/"
}
else if(window.securepage)
{
imgdir="../images/"
sitedir="http://www.fnbmilaca.com/site/"
securedir="../site/"
homedir="http://www.fnbmilaca.com/"
}
else if(window.loginpage)
{
imgdir="https://www.fnbmilaca.com/images/"
sitedir="https://www.fnbmilaca.com/site/"
securedir="https://www.fnbmilaca.com/site/"
homedir="http://www.fnbmilaca.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";
accounts_on = new Image();
accounts_on.src = imgdir + "nav-accounts-on.jpg";

accounts_off = new Image();
accounts_off.src = imgdir + "nav-accounts-off.jpg";

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

privacy_off = new Image();
privacy_off.src = imgdir + "nav-privacy-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";

contactus_on = new Image();
contactus_on.src = imgdir + "nav-contactus-on.gif";

contactus_off = new Image();
contactus_off.src = imgdir + "nav-contactus-off.gif";

help_on = new Image();
help_on.src = imgdir + "nav-help-on.jpg";

help_off = new Image();
help_off.src = imgdir + "nav-help-off.jpg";

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

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

electronic_on = new Image();
electronic_on.src = imgdir + "nav-electronic-on.jpg";

electronic_off = new Image();
electronic_off.src = imgdir + "nav-electronic-off.jpg";

lending_on = new Image();
lending_on.src = imgdir + "nav-lending-on.jpg";

lending_off = new Image();
lending_off.src = imgdir + "nav-lending-off.jpg";

}
else
version = "x";

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

function img_inact(imgName)
{
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

//style sheet sniffer
document.write('<scr'+ 'ipt src="' + securedir + '_styles.js" type="text/javascript"></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");
return;
}

function open_apps(nameofapp)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 350)
var pHeight = (((parseInt(screen.height) / 2)) - 300)
aWindow = window.open('https://www.fnbmilaca.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");
return;
}

//Date Code
var day = new Array("Sunday" , "Monday" , "Tuesday" , "Wednesday" , "Thursday" , "Friday" , "Saturday");
var month = new Array("January" , "February" , "March" , "April" , "May" , "June" , "July" , "August" , "September" , "October" , " November" , "December");
var total = new Date; 


function openIB(demo){
	if(demo){
		self.location.href='https://www.fnbmilaca.com/onlineserv/HB/demo.html';
	}
	else{
		self.location.href='https://www.fnbmilaca.com/onlineserv/HB/Signon.cgi';
	}
	return;
}

function open_link(url){
	//page variables
	var page_bgcolor="#00642E";
	var border_color="#FFF0CF";
	var table_bgcolor="#FFFFFF";

	//content creation
	var index = 0;
	var content=new Array(27);
	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()\',30000)>';
	content[index++]='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="0" cellpadding="1" 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>From time to time, we provide links to other websites for the use of our visitors, which have been compiled from internal and external sources. By clicking on the "Continue" button below, you will be leaving our website. Although we have reviewed the websites prior to creating the link, we are not responsible for the content of the sites. Information on linked website pages may become dated or change without notice, and we do not represent or warrant that information contained on these linked pages is complete or accurate. We suggest that you always verify information obtained from linked websites before you act upon such information.';                            
	content[index++]='<br>';
	content[index++]='<br>';
	content[index++]='This page link is provided solely for your convenience. We are NOT responsible for the accuracy and completeness of information, typographical errors or errors of omission. We do not assume any liability as a result of the use or misuse of the information. By your use of this information, you recognize and agree to hold us, our employees, agents, successors, and/or assignees harmless from any liability as a result of your using this information, materials, products or services listed at this website.';

	content[index++]='<br>';

	content[index++]='<br>';
	content[index++]='<div align="center"><a href="'+url+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)"><img src="'+imgdir+'button_continue.gif" border="0" WIDTH="75" HEIGHT="25" alt="continue"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();"><img src="'+imgdir+'button_cancel.gif" border="0" WIDTH="75" HEIGHT="25" alt="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) - 570) / 2);
    newwin = window.open("","newwin", "width=340,height=570,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open('text/html','replace');
	newwin.document.write(content.join(""));
	newwin.document.close();
	return;
}

function stopError() {
  return true;
}

window.onerror = stopError;

function makePrint(){
	var printpage = self.location.href + "?print";
	//actual centering popup code
	var pWidth = ((parseInt(screen.width) - 700) / 2); 
	var pHeight = ((parseInt(screen.height) - 550) / 2);
    var discwin = window.open(printpage,"newwin", "width=700,height=550,left="+pWidth+",top="+pHeight+", scrollbars,resizable,toolbars");
	return;
}
