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="The Evangeline Bank, Bank, therealbank, 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.therealbank.com/images/"
sitedir="http://www.therealbank.com/site/"
securedir="http://www.therealbank.com/site/"
homedir="http://www.therealbank.com/"
}
else if(window.securepage)
{
imgdir="https://www.therealbank.com/images/"
sitedir="http://www.therealbank.com/site/"
securedir="https://www.therealbank.com/site/"
homedir="http://www.therealbank.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";
aboutus_on = new Image(242,24);
aboutus_on.src = imgdir + "nav-aboutus-on.gif";

aboutus_off = new Image(242,24);
aboutus_off.src = imgdir + "nav-aboutus-off.gif";

calculators_on = new Image(242,24);
calculators_on.src = imgdir + "nav-calculators-on.gif";

calculators_off = new Image(242,24);
calculators_off.src = imgdir + "nav-calculators-off.gif";

contactus_on = new Image(242,24);
contactus_on.src = imgdir + "nav-contactus-on.gif";

contactus_off = new Image(242,24);
contactus_off.src = imgdir + "nav-contactus-off.gif";

help_on = new Image(242,24);
help_on.src = imgdir + "nav-help-on.gif";

help_off = new Image(242,24);
help_off.src = imgdir + "nav-help-off.gif";

home_on = new Image(242,24);
home_on.src = imgdir + "nav-home-on.gif";

home_off = new Image(242,24);
home_off.src = imgdir + "nav-home-off.gif";

branchlocations_on = new Image(242,24);
branchlocations_on.src = imgdir + "nav-branchlocations-on.gif";

branchlocations_off = new Image(242,24);
branchlocations_off.src = imgdir + "nav-branchlocations-off.gif";

olb_on = new Image(242,24);
olb_on.src = imgdir + "nav-olb-on.gif";

olb_off = new Image(242,24);
olb_off.src = imgdir + "nav-olb-off.gif";

ourcommunity_on = new Image(242,24);
ourcommunity_on.src = imgdir + "nav-ourcommunity-on.gif";

ourcommunity_off = new Image(242,24);
ourcommunity_off.src = imgdir + "nav-ourcommunity-off.gif";

products_on = new Image(242,25);
products_on.src = imgdir + "nav-products-on.gif";

products_off = new Image(242,25);
products_off.src = imgdir + "nav-products-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>');
document.write('<scr'+ 'ipt src="' + securedir + '_speedbump.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.therealbank.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 printDate() {

browserName = navigator.appName;

    var today = new Date();
    var printMonth = today.getMonth();
    var printDay = today.getDate();
    var printYear = today.getYear();

if (browserName == "Netscape") {
  printYear = today.getYear() + 1900; }

    if (printMonth == 0)
       {printMonth = "January"}
    if (printMonth == 1)
       {printMonth = "February"}
    if (printMonth == 2)
       {printMonth = "March"}
    if (printMonth == 3)
       {printMonth = "April"}
    if (printMonth == 4)
       {printMonth = "May"}
    if (printMonth == 5)
       {printMonth = "June"}
    if (printMonth == 6)
       {printMonth = "July"}
    if (printMonth == 7)
       {printMonth = "August"}
    if (printMonth == 8)
       {printMonth = "September"}
    if (printMonth == 9)
       {printMonth = "October"}
    if (printMonth == 10)
       {printMonth = "November"}
    if (printMonth == 11)
       {printMonth = "December"}

    document.write(printMonth + ' ' + printDay + ', ' + printYear);
}

function mainNav()
{
var mainNav = '';

mainNav += '<table width="242" border="0" cellspacing="0" cellpadding="0">';
mainNav += '<tr valign="top">';
mainNav += '<td width="242">';
mainNav += '<a href="https://www.therealbank.com/onlineserv/HB" onMouseOver="img_act(\'olb\'); window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'olb\');"><img src="' + imgdir + 'nav-olb-off.gif" width=242 height=24 alt="Online Banking" border="0" name="olb"></a><br>';
mainNav += '<a href="' + sitedir + 'prodserv_index.html" onMouseOver="img_act(\'products\'); popUp(\'HM_Menu1\',event); window.status=\'Products and Services\'; return true" onMouseOut="img_inact(\'products\'); popDown(\'HM_Menu1\',event);"><img src="' + imgdir + 'nav-products-off.gif" width=242 height=25 alt="Products and Services" border="0" name="products"></a><br>';
mainNav += '<a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calculators\'); popUp(\'HM_Menu2\',event); window.status=\'Calculators\'; return true" onMouseOut="img_inact(\'calculators\'); popDown(\'HM_Menu2\',event);"><img src="' + imgdir + 'nav-calculators-off.gif" width=242 height=24 alt="Calculators" border="0" name="calculators"></a><br>';
mainNav += '<a href="' + sitedir + 'community_index.html" onMouseOver="img_act(\'ourcommunity\'); popUp(\'HM_Menu3\',event); window.status=\'Our Community\'; return true" onMouseOut="img_inact(\'ourcommunity\'); popDown(\'HM_Menu3\',event);"><img src="' + imgdir + 'nav-ourcommunity-off.gif" width=242 height=24 alt="Our Community" border="0" name="ourcommunity"></a><br>';
mainNav += '<a href="' + sitedir + 'aboutus_history.html" onMouseOver="img_act(\'aboutus\'); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width=242 height=24 alt="About Us" border="0" name="aboutus"></a><br>';
mainNav += '<a href="' + sitedir + 'contactus_locations.html" onMouseOver="img_act(\'contactus\'); window.status=\'Contact Us\'; return true" onMouseOut="img_inact(\'contactus\');"><img src="' + imgdir + 'nav-contactus-off.gif" width=242 height=24 alt="Contact Us" border="0" name="contactus"></a><br>';
mainNav += '<a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'help\'); window.status=\'Help\'; return true" onMouseOut="img_inact(\'help\');"><img src="' + imgdir + 'nav-help-off.gif" width=242 height=24 alt="Help" border="0" name="help"></a><br>';
mainNav += '<a href="' + sitedir +'branchlocations.html" onMouseOver="img_act(\'branchlocations\'); window.status=\'Branch &amp; ATM Locations\'; return true" onMouseOut="img_inact(\'branchlocations\');"><img src="' + imgdir + 'nav-branchlocations-off.gif" width=242 height=42 alt="Branch &amp; ATM Locations" border="0" name="branchlocations"></a><br>';
mainNav += '<a href="' + homedir +'index.html" onMouseOver="img_act(\'home\'); window.status=\'Home\'; return true" onMouseOut="img_inact(\'home\');"><img src="' + imgdir + 'nav-home-off.gif" width=242 height=24 alt="Home" border="0" name="home"></a><br>';
mainNav += '<img src="' + imgdir + 'nav-bottom-background.gif" width=242 height=41 alt="" border="0"><br>';
mainNav += '<img src="' + imgdir + 'nav-keyin-car.gif" width=242 height=132 alt="" border="0" usemap="#map"><map name="map"><area shape="rect" coords="13,0,161,118" href="' + sitedir + 'prodserv_loans.html"></map><br>';
mainNav += '</td>';
mainNav += '</tr>';
mainNav += '</table>';

document.write(mainNav);
}

function footer()
{
var footer = '';

footer += '<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#F3F3DE">';
footer += '<tr valign="TOP">';
footer += '<td width="760" bgcolor="#F3F3DE"><img src="' + imgdir + 'footer-row1-a.gif" width="174" height="51" alt="" border="0"><img src="' + imgdir + 'footer-row1-b.gif" width="81" height="51" alt="" border="0"><img src="' + imgdir + 'clearpix.gif" width="50" height="1" alt="" border="0"><a href="http://www.hud.gov"><img src="' + imgdir + 'footer-ehl.gif" width="82" height="51" alt="Equal Housing Lender" border="0"></a><a href="http://www.fdic.gov"><img src="' + imgdir + 'footer-fdic.gif" width="81" height="51" alt="FDIC" border="0"></a><a href="http://ifs.intuit.com/"><img src="/mstinc/web/images/logo_140x34.png" width="140" height="34" border="0" alt="" /></a><a href="' + imgdir + 'EBT_Privacy_Notice.pdf" target="_blank"><img src="' + imgdir + 'footer-privacy.gif" width="61" height="51" alt="Privacy Policy" border="0"></a><a href="' + sitedir + 'website_policy.html"><img src="' + imgdir + 'footer-webpolicy.gif" width="61" height="51" alt="Website Policy" border="0"></a><br>';
footer += '<a href="#top"><img src="' + imgdir + 'footer-top.gif" width="242" height="37" alt="" border="0"></a><img src="' + imgdir + 'footer-address.gif" width="518" height="37" alt="497 West Main Street P.O. Box 346 Ville Platte, Louisiana 70586" border="0"></td>';
footer += '</tr>';
footer += '</table>';

document.write(footer);
}

function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 125)
var pHeight = (((parseInt(screen.height) / 2)) - 125)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=250,height=175,top=" + pHeight + ",left=" + pWidth);
}

