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="Boardwalk Bank, Bank, boardwalkbank, 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.boardwalkbank2.com/images/"
sitedir="http://www.boardwalkbank2.com/site/"
securedir="http://www.boardwalkbank2.com/site/"
homedir="http://www.boardwalkbank2.com/"
}
else if(window.securepage)
{
imgdir="https://www.boardwalkbank2.com/images/"
sitedir="http://www.boardwalkbank2.com/site/"
securedir="https://www.boardwalkbank2.com/site/"
homedir="http://www.boardwalkbank2.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";
checking_on = new Image(156,21);
checking_on.src = imgdir + "nav-checking-on.gif";

checking_off = new Image(156,21);
checking_off.src = imgdir + "nav-checking-off.gif";

savings_on = new Image(156,21);
savings_on.src = imgdir + "nav-savings-on.gif";

savings_off = new Image(156,21);
savings_off.src = imgdir + "nav-savings-off.gif";

loans_on = new Image(156,21);
loans_on.src = imgdir + "nav-loans-on.gif";

loans_off = new Image(156,21);
loans_off.src = imgdir + "nav-loans-off.gif";

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

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

investor_on = new Image(156,21);
investor_on.src = imgdir + "nav-investor-on.gif";

investor_off = new Image(156,21);
investor_off.src = imgdir + "nav-investor-off.gif";

translink_on = new Image(156,21);
translink_on.src = imgdir + "nav-translink-on.gif";

translink_off = new Image(156,21);
translink_off.src = imgdir + "nav-translink-off.gif";

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

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

help_on = new Image(156,21);
help_on.src = imgdir + "nav-help-on.gif";

help_off = new Image(156,21);
help_off.src = imgdir + "nav-help-off.gif";

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

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

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

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

jobopps_on = new Image(156,21);
jobopps_on.src = imgdir + "nav-jobopps-on.gif";

jobopps_off = new Image(156,21);
jobopps_off.src = imgdir + "nav-jobopps-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>');

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.boardwalkbank2.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");

location.href = 'https://www.boardwalkbank2.com/Forms/OnlineForm.cgi?form=' + nameofapp + '&onWeb=TRUE';

}

function show_warning(URL)
{

	//page variables
	var page_bgcolor="#FFFFFF";
	var border_color="#5271AD";
	var table_bgcolor="#FFFFFF";
	var time_visible=30000; //automatically closes after this time

	//content creation
	var content=""
	content+='<html>';
	content+='<head>';
	content+='<title>3rd Party Disclaimer</title>';
	content += '<style>	';
	content += '.ficontent {';
	content += '	font-family:Arial, Helvetica, sans-serif;';
	content += '	font-size:10pt;';
	content += '	color:#000000;';
	content += '}';	
	content += '.header {';
	content += '	font-family:Arial, Helvetica, sans-serif;';
	content += '	font-size:10pt;';
	content += '	color:#000000;;';
	content += '	font-weight: bold;';
	content += '}';
	content += '</style>';	
	content += '</head>';
	content+='<body bgcolor="' + page_bgcolor + '" onload=javascript:setTimeout(\'self.close()\','  + time_visible + ')>';
	content+='<table bgcolor="' + border_color + '" align="center" width="300" cellspacing="2" cellpadding="0" border="0">';
	content+='	<tr>';
	content+='	    <td>';
	content+='		<table bgcolor="' + table_bgcolor +'" align="center" width="100%" cellspacing="1" cellpadding="6" border="0">';
	content+='			<tr>';
	content+='	    		<td>';
	content+='				<div align="left" class="ficontent">';
	content+='				Translink is the online reporting system for Boardwalk Bank\'s Merchant Services processor.  This is a secure site and requires that you register to access information.  If you have any questions, please contact <a href="mailto:merchant.services@boardwalkbank.net">merchant.services@boardwalkbank.net</a>';
	content+='				<br><br>';
 	content+='				</div><br><br>';
	content+='				 <div align="center" class="ficontent"><a href="'+URL+'" target="_blank" onClick="setTimeout(\'self.close()\',3000)">OK</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:self.close();">Cancel</a></div><br />';	
	content+='				</td>';
	content+='			</tr>';
	content+='		</table>';
	content+='		</td>';
	content+='	</tr>';
	content+='</table>';
	content+='</body>';
	content+='</html>';

	//actual centering popup code
	outsideURL=URL;
	var pWidth = ((parseInt(screen.width) - 340) / 2); 
	var pHeight = ((parseInt(screen.height) - 350) / 2);
     newwin = window.open("","newwin", "width=340,height=200,left="+pWidth+",top="+pHeight+", scrollbars=0");
 	newwin.document.open();
	newwin.document.write(content);
	newwin.document.close();
}	

// -->

function exitSite(url) {
if (confirm('You are currently being directed to Deluxe Checks. Deluxe Checks is not affiliated with Boardwalk® Bank.')) {
        window.open(url);
        }
	}


function exitSite1(url) {
if (confirm('Note: This link is transferring you off of the Boardwalk Bank web site.')) {
        window.open(url);
        }
	}	
	
//function below

function third_party(page)
{
var pWidth = ( ((parseInt(screen.width) / 2)) - 175)
var pHeight = (((parseInt(screen.height) / 2)) - 175)
bWindow = window.open(page,'newWin',"toolbar=0,location=0,directories=0,status=0,menubar=0,width=350,height=350,top=" + pHeight + ",left=" + pWidth);
}

	
	
function insertEntry()
{
document.write(entryObjects[tableindex].value[rowindex][rateindex++]);
}

function resetRow()
{
rowindex++;
rateindex = 0;
}


function openStream(theStream,width,height)
{
	var pWidth = ( ((parseInt(screen.width) / 2)) - width)
	var pHeight = (((parseInt(screen.height) / 2)) - height)
	var newWin = window.open("site/videostream.html?" + theStream,'video','width='+width+',height='+height+',top='+pHeight+',left='+pWidth+'resizeable=yes');
}
