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="Bank of Rantoul, Bank, bankofrantoul, 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.bankofrantoul.com/images/"
sitedir="http://www.bankofrantoul.com/site/"
securedir="http://www.bankofrantoul.com/site/"
homedir="http://www.bankofrantoul.com/"
}
else if(window.securepage)
{
imgdir="https://www.bankofrantoul.com/images/"
sitedir="http://www.bankofrantoul.com/site/"
securedir="https://www.bankofrantoul.com/site/"
homedir="http://www.bankofrantoul.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";
onlinebanking_on = new Image(160,30);
onlinebanking_on.src = imgdir + "nav-onlinebanking-on.gif";

onlinebanking_off = new Image(160,30);
onlinebanking_off.src = imgdir + "nav-onlinebanking-off.gif";

products_on = new Image(160,30);
products_on.src = imgdir + "nav-products-on.gif";

products_off = new Image(160,30);
products_off.src = imgdir + "nav-products-off.gif";

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

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

about_on = new Image(160,30);
about_on.src = imgdir + "nav-about-on.gif";

about_off = new Image(160,30);
about_off.src = imgdir + "nav-about-off.gif";

about_on = new Image(160,30);
about_on.src = imgdir + "nav-about-on.gif";

about_off = new Image(160,30);
about_off.src = imgdir + "nav-about-off.gif";

locations_on = new Image(160,30);
locations_on.src = imgdir + "nav-locations-on.gif";

locations_off = new Image(160,30);
locations_off.src = imgdir + "nav-locations-off.gif";

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

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

financial_on = new Image(160,30);
financial_on.src = imgdir + "nav-financial-on.gif";

financial_off = new Image(160,30);
financial_off.src = imgdir + "nav-financial-off.gif";

community_on = new Image(160,30);
community_on.src = imgdir + "nav-community-on.gif";

community_off = new Image(160,30);
community_off.src = imgdir + "nav-community-off.gif";

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

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

login_on = new Image(46,107);
login_on.src = imgdir + "hed-login-login-on.gif";

login_off = new Image(46,107);
login_off.src = imgdir + "hed-login-login-off.gif";

demo_on = new Image(55,107);
demo_on.src = imgdir + "hed-login-demo-on.gif";

demo_off = new Image(55,107);
demo_off.src = imgdir + "hed-login-demo-off.gif";

moreinfo_on = new Image(85,107);
moreinfo_on.src = imgdir + "hed-login-moreinfo-on.gif";

moreinfo_off = new Image(85,107);
moreinfo_off.src = imgdir + "hed-login-moreinfo-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

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.bankofrantoul.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 getUrlArgs()
{
	var args = new Object();
	var query = location.search.substring(1);
	//alert("query: " + query);
	var pairs = query.split(",");
	//alert("pairs: " + pairs);
	for(var i = 0; i < pairs.length; i++)
	{
		var pos = pairs[i].indexOf("=");
		if(pos == -1) continue;
		var argname = pairs[i].substring(0, pos);
		//alert("argname; " + argname);
		var value = pairs[i].substring(pos+1);
		var indx = value.indexOf("&");
		
		//if only one parameter is passed (ie- there would be no &)
		if (indx == -1) indx = value.length;
		//alert (indx);
		value = value.substring(0, indx);
		//alert("value: " + value);
		args[argname] = unescape(value);
	}
	//alert("args[argname]: " + args[argname]);
	return args[argname];
}


function showWarning(url){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Disclosure</h2>By continuing, you will be leaving the Bank of Rantoul\’s website.  Bank of Rantoul is not responsible for the content or security of the linked site.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"window.open('"+url+"');document.getElementById('ex_dis').style.display = 'none'\">Continue to New Website</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Return to Previous Page</a></div></div>";	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}

function showWarningForm(theForm){
var content = new Array();
var index = 0;
content[index++] = "<h2>Third Party Disclosure</h2>By continuing, you will be leaving the Bank of Rantoul\’s website.  Bank of Rantoul is not responsible for the content or security of the linked site.";
content[index++] = "<br /><br /><br />";
content[index++] = "<div align=\"center\"><a href=\"javascript:void('0');\" onclick=\"document.forms['"+theForm+ "'].submit();document.getElementById('ex_dis').style.display = 'none'\">Continue to New Website</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"javascript:void('0');\" onclick=\"document.forms['"+theForm+ "'].reset();document.getElementById('ex_dis').style.display = 'none'\">Return to Previous Page</a></div></div>";	
document.getElementById("ex_dis").innerHTML = content.join("");
document.getElementById("ex_dis").style.display = "block";
scrollTo(0, 0);
}

document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:400px;"></div>');