if (!window.imgdir)
{
var imgdir="http://www.cjbna.com/images/"
var sitedir="http://www.cjbna.com/site/"
var securedir="http://www.cjbna.com/site/"
var homedir="http://www.cjbna.com/"
}

function Include()
{
this.domain = "mcbna";
this.friendly = "Central Jersey Bank";
this.ib = "https://www.cjbna.com/onlineserv/HB/";
this.ib_demo = "https://www.cjbna.com/onlineserv/HB/demo.html";
this.ib_open_window = false;
this.cm_open_window = true;
this.ib_register = "https://www.cjbna.com/onlineserv/HB/STDReg.cgi";
this.cm = "https://www.cjbna.com/onlineserv/CM/";
this.headergraphic = "";
this.contentgraphic = "";

this.setHeaderGraphic = setHeaderGraphic;
this.setHeaderGraphicBanner = setHeaderGraphicBanner;
this.setContentGraphic = setContentGraphic;
this.makeHeader = makeHeader;
this.makeHeader2 = makeHeader2;
this.makeTopNav = makeTopNav;
this.makeMainNav = makeMainNav;
this.makeMainNav2 = makeMainNav2;
this.makeLoginArea = makeLoginArea;
this.makeUltraseek = makeUltraSeek;
this.makeFooter = makeFooter;
this.makeFooterLogos = makeFooterLogos;
this.makeFooterNoFDIC = makeFooterNoFDIC;
this.makeFooterLogosNoFDIC = makeFooterLogosNoFDIC;
this.openIB = openIB;
this.openIBRegister = openIBRegister;
this.openCM = openCM;

}


/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/



/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/


function makeHeader()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<div align="center">';
content[index++] = '<!-- START WRAPPER TABLE -->';
content[index++] = '<table width="752" border="0" cellspacing="0" cellpadding="1" bgcolor="#003580">';
content[index++] = '<tr><td>';
content[index++] = '<!-- START WRAPPER TABLE -->';
content[index++] = '<!-- START TOP TABLE -->';
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '		<td width="274" style="background-color: #ffffff;"><img src="' + imgdir +'clearpix.gif" width="10" height="1" alt="" border="0"><img src="' + imgdir + 'logo-centraljersey.gif" width="264" height="91" border="0" alt="Central Jersey Bank, N.A."></td>';
content[index++] = '		<td background="' + imgdir + 'top_panorama.jpg" align="right" valign="top"><img src="' + imgdir + 'clearpix.gif" width="476" height="1" border="0"><br><img src="' + imgdir + 'tagline-top.gif" width="145" height="27" alt="Serving You Better(TM)" border="0"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '		    <td colspan="2"><img src="' + imgdir + 'nav-spacer.gif" width="160" height="18">' + inc.makeTopNav() + '</td>';
content[index++] = '		</tr>';
content[index++] = '</table>';
content[index++] = '<!-- END TOP TABLE -->';
content[index++] = '<!-- START MAIN TABLE -->';
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '		<tr>';
content[index++] = '			<td width="160" background="' + imgdir + 'nav-bg.gif" valign="top">';
content[index++] = inc.makeMainNav();
content[index++] = '			</td>';
content[index++] = '<!-- START CONTENT SPACER -->';
content[index++] = '			<td width="32" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="32" height="1"></td>';
content[index++] = '<!-- END CONTENT SPACER -->';
content[index++] = '<!-- START CONTENT CELL -->';
content[index++] = '			<td width="558" valign="top" bgcolor="#FFFFFF" class="ficontent"><img src="' + imgdir + 'clearpix.gif" width="1" height="28"><br>';
content[index++] = inc.headergraphic;
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '<tr>';
content[index++] = '<td width="499" class="ficontent" valign="top">';
	
		

//CODE GOES HERE


var index = 0;

return (content.join(""));
}

function makeHeader2()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<div align="center">';
content[index++] = '<!-- START WRAPPER TABLE -->';
content[index++] = '<table width="752" border="0" cellspacing="0" cellpadding="1" bgcolor="#003580">';
content[index++] = '<tr><td>';
content[index++] = '<!-- START WRAPPER TABLE -->';
content[index++] = '<!-- START TOP TABLE -->';
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '		<td width="274" style="background-color: #ffffff;"><img src="' + imgdir +'clearpix.gif" width="10" height="1" alt="" border="0"><img src="' + imgdir + 'logo-centraljersey.gif" width="264" height="91" border="0" alt="Central Jersey Bank, N.A."></td>';
content[index++] = '		<td background="' + imgdir + 'top_panorama.jpg" align="right" valign="top"><img src="' + imgdir + 'clearpix.gif" width="476" height="1" border="0"><br><img src="' + imgdir + 'tagline-top.gif" width="145" height="27" alt="Serving You Better(TM)" border="0"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '		    <td colspan="2"><img src="' + imgdir + 'nav-spacer.gif" width="160" height="18">' + inc.makeTopNav() + '</td>';
content[index++] = '		</tr>';
content[index++] = '</table>';
content[index++] = '<!-- END TOP TABLE -->';
content[index++] = '<!-- START MAIN TABLE -->';
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '		<tr>';
content[index++] = '			<td width="160" background="' + imgdir + 'nav-bg.gif" valign="top">';
content[index++] = inc.makeMainNav2();
content[index++] = '			</td>';
content[index++] = '<!-- START CONTENT SPACER -->';
content[index++] = '			<td width="32" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="32" height="1"></td>';
content[index++] = '<!-- END CONTENT SPACER -->';
content[index++] = '<!-- START CONTENT CELL -->';
content[index++] = '			<td width="558" valign="top" bgcolor="#FFFFFF" class="ficontent"><img src="' + imgdir + 'clearpix.gif" width="1" height="28"><br>';
content[index++] = inc.headergraphic;
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '<tr>';
content[index++] = '<td width="499" class="ficontent" valign="top">';
	
		

//CODE GOES HERE


var index = 0;

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeTopNav()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<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="54" height="18" border="0" name="home" alt="Home"></a><a href="' + sitedir + 'about.html" onMouseOver="img_act(\'aboutus\'); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="75" height="18" name="aboutus" alt="About Us" border="0"></a><a href="' + sitedir + 'locations.html" onMouseOver="img_act(\'hours\'); window.status=\'Hours and Locations\'; return true" onMouseOut="img_inact(\'hours\');"><img src="' + imgdir + 'nav-hours-off.gif" width="133" height="18" name="hours" alt="Hours and Locations" border="0"></a><a href="' + sitedir + 'calcs.html" onMouseOver="img_act(\'calcs\'); window.status=\'Rates and Calculators\'; return true" onMouseOut="img_inact(\'calcs\');"><img src="' + imgdir + 'nav-calcs-off.gif" width="100" height="18" name="calcs" alt="Calculators" border="0"></a><a href="' + sitedir + 'rates.html" onMouseOver="img_act(\'rates\'); window.status=\'Rates\'; return true" onMouseOut="img_inact(\'rates\');"><img src="' + imgdir + 'nav-rates-off.gif" width="56" height="18" name="rates" alt="Rates" border="0"></a><a href="' + sitedir + 'community.html" onMouseOver="img_act(\'community\'); window.status=\'Community Connection\'; return true" onMouseOut="img_inact(\'community\');"><img src="' + imgdir + 'nav-community-off.gif" width="161" height="18" name="community" alt="Community Connection" border="0"></a>';
//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeMainNav()
{
var content = new Array();
var index = 0;

//alert(imgdir);

//CODE GOES HERE
content[index++] = '	<table border="0" cellspacing="0" cellpadding="0">';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'onlinebanking\'); popUp(\'HM_Menu1\',event); window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'onlinebanking\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-onlinebanking-off.gif" width="160" height="30" name="onlinebanking" alt="Online Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>					';
content[index++] = '	          <td><a href="#" onMouseOver="img_act(\'personal\'); popUp(\'HM_Menu2\',event); window.status=\'Personal Banking\'; return true" onMouseOut="img_inact(\'personal\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-personal-off.gif" width="160" height="30" name="personal" alt="Personal Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'business\'); popUp(\'HM_Menu3\',event); window.status=\'Business Banking\'; return true" onMouseOut="img_inact(\'business\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-business-off.gif" width="160" height="30" name="business" alt="Business Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
// test whether we are on the homepage (needed to set the correct path to the pdf)
if(typeof homepage != "undefined") { 
    content[index++] = '          	<td><a href="javascript:open_new(\'site/switch_kit_bro_3-16.pdf\');" onMouseOver="img_act(\'switch\'); popUp(\'HM_Menu4\',event); window.status=\'Ready to Switch?\'; return true" onMouseOut="img_inact(\'switch\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-switch-off.gif" width="160" height="30" name="switch" alt="Ready to Switch?" border="0"></a></td>';
} else {
    content[index++] = '          	<td><a href="javascript:open_new(\'switch_kit_bro_3-16.pdf\');" onMouseOver="img_act(\'switch\'); popUp(\'HM_Menu4\',event); window.status=\'Ready to Switch?\'; return true" onMouseOut="img_inact(\'switch\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-switch-off.gif" width="160" height="30" name="switch" alt="Ready to Switch?" border="0"></a></td>';
}
content[index++] = '					</tr>';
content[index++] = '					<tr>		';
content[index++] = '          	<td><a href="'+sitedir+'investments.html" onMouseOver="img_act(\'investments\'); window.status=\'Investments\'; return true" onMouseOut="img_inact(\'investments\');"><img src="' + imgdir + 'nav-investments-off.gif" width="160" height="30" name="investments" alt="Investments" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>		';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'investor\'); popUp(\'HM_Menu5\',event); window.status=\'Investor Relations\'; return true" onMouseOut="img_inact(\'investor\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-investor-off.gif" width="160" height="30" name="investor" alt="Investor Relations" border="0"></a></td>';
content[index++] = '					</tr>';
//content[index++] = '					<tr>';
//content[index++] = '          	<td><a href="'+sitedir+'cra.html" onMouseOver="img_act(\'cra\'); popUp(\'HM_Menu9\',event); window.status=\'CRA Public File\'; return true" onMouseOut="img_inact(\'cra\'); popDown(\'HM_Menu9\');"><img src="' + imgdir + 'nav-cra-off.gif" width="160" height="30" name="cra" alt="CRA Public File" border="0"></a></td>';
//content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'safebanking\'); popUp(\'HM_Menu6\',event); window.status=\'Safe Banking\'; return true" onMouseOut="img_inact(\'safebanking\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-safebanking-off.gif" width="160" height="30" name="safebanking" alt="Take steps to protect yourself with these tips and advice" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'customer\'); popUp(\'HM_Menu7\',event); window.status=\'Customer Service\'; return true" onMouseOut="img_inact(\'customer\'); popDown(\'HM_Menu7\');"><img src="' + imgdir + 'nav-customer-off.gif" width="160" height="30" name="customer" border="0" alt="Customer Service"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="' + homedir + 'kids/kids.html" target="_new" onMouseOver="img_act(\'ybc\'); popUp(\'HM_Menu8\',event); window.status=\'Customer Service\'; return true" onMouseOut="img_inact(\'ybc\'); popDown(\'HM_Menu8\');"><img src="' + imgdir + 'nav-ybc-off.gif" width="160" height="30" name="ybc" border="0" alt="Young Bankers Corner"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';

// Replaced as of 7/18/05
// content[index++] = '            <td align="center"><br><img src="' + imgdir + 'mcbpopup.gif" width="159" height="184" border="0" alt=""></td>';
content[index++] = '            <td align="center"><br>';
if (window.showTurbo) {
    content[index++] = '                <a href="javascript:third_party(\'http://www.cjbna.com/site/third_party_popup.html?location=http://turbotax.intuit.com/affiliate/centra18\');"><img src="'+ imgdir + 'newTT.gif" border="0" alt="TurboTax&reg; for the Web(SM)" /></a><br /><br />';
}
//content[index++] = '                <img src="' + imgdir + 'home_equity_backyard.gif" width="159" height="184" border="0" alt=""><br><br>';
content[index++] = '                </td>';
content[index++] = '					</tr>';
//content[index++] = '					<tr>';
//content[index++] = '            <td align="center"><div id="grpBanner" style="display:none"><!-- GRP Banner --></div></td>';
//content[index++] = '					</tr>';
content[index++] = '				</table>';
//CODE GOES HERE

return (content.join(""));
}

function makeMainNav2()
{
var content = new Array();
var index = 0;
//alert('hi');

//alert(imgdir);

//CODE GOES HERE
content[index++] = '	<table border="0" cellspacing="0" cellpadding="0">';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'onlinebanking\'); popUp(\'HM_Menu1\',event); window.status=\'Online Banking\'; return true" onMouseOut="img_inact(\'onlinebanking\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-onlinebanking-off.gif" width="160" height="30" name="onlinebanking" alt="Online Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>					';
content[index++] = '	          <td><a href="#" onMouseOver="img_act(\'personal\'); popUp(\'HM_Menu2\',event); window.status=\'Personal Banking\'; return true" onMouseOut="img_inact(\'personal\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-personal-off.gif" width="160" height="30" name="personal" alt="Personal Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'business\'); popUp(\'HM_Menu3\',event); window.status=\'Business Banking\'; return true" onMouseOut="img_inact(\'business\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-business-off.gif" width="160" height="30" name="business" alt="Business Banking" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'switch\'); popUp(\'HM_Menu4\',event); window.status=\'Ready to Switch?\'; return true" onMouseOut="img_inact(\'switch\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-switch-off.gif" width="160" height="30" name="switch" alt="Ready to Switch?" border="0"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'investor\'); popUp(\'HM_Menu5\',event); window.status=\'Investor Relations\'; return true" onMouseOut="img_inact(\'investor\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-investor-off.gif" width="160" height="30" name="investor" alt="Investor Relations" border="0"></a></td>';
content[index++] = '					</tr>';
/*content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'cra\'); popUp(\'HM_Menu9\',event); window.status=\'CRA Pulic File\'; return true" onMouseOut="img_inact(\'cra\'); popDown(\'HM_Menu9\');"><img src="' + imgdir + 'nav-cra-off.gif" width="160" height="30" name="cra" alt="CRA Public File" border="0"></a></td>';
content[index++] = '					</tr>';*/
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'safebanking\'); popUp(\'HM_Menu6\',event); window.status=\'Safe Banking\'; return true" onMouseOut="img_inact(\'safebanking\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-safebanking-off.gif" width="160" height="30" name="safebanking" border="0" alt="Take steps to protect yourself with these tips and advice"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="#" onMouseOver="img_act(\'customer\'); popUp(\'HM_Menu7\',event); window.status=\'Customer Service\'; return true" onMouseOut="img_inact(\'customer\'); popDown(\'HM_Menu7\');"><img src="' + imgdir + 'nav-customer-off.gif" width="160" height="30" name="customer" border="0" alt="Customer Service"></a></td>';
content[index++] = '					</tr>';
content[index++] = '					<tr>';
content[index++] = '          	<td><a href="' + homedir + 'kids/kids.html" target="_new" onMouseOver="img_act(\'ybc\'); popUp(\'HM_Menu8\',event); window.status=\'Kids Page\'; return true" onMouseOut="img_inact(\'ybc\'); popDown(\'HM_Menu8\');"><img src="' + imgdir + 'nav-ybc-off.gif" width="160" height="30" name="ybc" border="0" alt="Kids Page"></a></td>';
content[index++] = '					</tr>';
if (window.showTurbo) {
	content[index++] = '					<tr>';
	// Replaced as of 7/18/05
	// content[index++] = '            <td align="center"><br><img src="' + imgdir + 'mcbpopup.gif" width="159" height="184" border="0" alt=""></td>';
	content[index++] = '            <td align="center"><br>';
	content[index++] = '                <a href="javascript:third_party(\'http://www.cjbna.com/site/third_party_popup.html?location=http://turbotax.intuit.com/affiliate/centra18\');"><img src="'+imgdir+'newTT.gif" border="0" alt="TurboTax&reg; for the Web(SM)" /></a></td>';
	content[index++] = '					</tr>';
}
content[index++] = '					<tr>';
content[index++] = '                    <td><img src="' + imgdir + 'promo-education.gif" width="159" height="184" border="0" alt=""></td>';
content[index++] = '					</tr>';

//content[index++] = '					<tr>';
//content[index++] = '            <td align="center"><div id="grpBanner" style="display:none"><!-- GRP Banner --></div></td>';
//content[index++] = '					</tr>';
content[index++] = '				</table>';
//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function setContentGraphic(graphic , alt_tag)
{
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	this.contentgraphic = "";
	}
else
	{
	this.contentgraphic = '';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function setHeaderGraphic(graphic , alt_tag)
{
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	this.headergraphic = "";
	}
else
	{
	this.headergraphic = '<img src="' + imgdir + 'hed-' + graphic + '.gif" width="531" alt="' + alt_tag + '" border="0">';
	}	
}


/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function setHeaderGraphicBanner(graphic , alt_tag)
{
if (!alt_tag)
var alt_tag = "";

if (graphic == null)
	{
	this.headergraphic = "";
	}
else
	{
	this.headergraphic = '';
	}	
}


/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeLoginArea()
{
var content = new Array();
var index = 0;

//CODE GOES HERE

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeUltraSeek()
{
var content = new Array();
var index = 0;

//CODE GOES HERE

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeDateStamp()
{

var myDate = new Date();
var day = myDate.getDay();
var month = myDate.getMonth();
var date = myDate.getDate();
var year = "";

if (document.all)
	{
	year = myDate.getYear();
	}
else
	{
	year =myDate.getYear() + 1900;
	}	

var months = new Array ("January", "February","March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

var days = new Array ("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");


//alert (days[day] + ", " + months[month] + " " + date + ",  " + year);
var finalDate = (days[day] + ", " + months[month] + " " + date + ",  " + year);


var content = new Array();
var index = 0;
content[index++] = '<td align="right" valign="middle"><font face="Verdana,Arial,Helvetica,sans-serif" size="1" color="#741533">' + finalDate + '</font><img src="' + imgdir + 'clearpix.gif" width="15" height="1" alt="" border="0"></td>';

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/




/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||HEADER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/












/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/





/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/
function makeFooter()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '</td>';
content[index++] = '<td><img src="' + imgdir + 'clearpix.gif" width="32" height="1"></td>';
content[index++] = '</tr>';
content[index++] = '</table>';

content[index++] = '			</td>';
content[index++] = '<!-- END CONTENT CELL -->';
content[index++] = '		</tr>';
content[index++] = '</table>';
content[index++] = '<!-- END MAIN TABLE -->';
content[index++] = '<!-- START FOOTER TABLE -->';
content[index++] = inc.makeFooterLogos();
content[index++] = '<!-- END FOOTER TABLE -->';
content[index++] = '<!-- END WRAPPER TABLE -->	';
content[index++] = '</td></tr>';
content[index++] = '</table>';
content[index++] = '<!-- END WRAPPER TABLE -->	';
content[index++] = '</div>';

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/
function makeFooterNoFDIC()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '</td>';
content[index++] = '<td><img src="' + imgdir + 'clearpix.gif" width="32" height="1"></td>';
content[index++] = '</tr>';
content[index++] = '</table>';

content[index++] = '			</td>';
content[index++] = '<!-- END CONTENT CELL -->';
content[index++] = '		</tr>';
content[index++] = '</table>';
content[index++] = '<!-- END MAIN TABLE -->';
content[index++] = '<!-- START FOOTER TABLE -->';
content[index++] = inc.makeFooterLogosNoFDIC();
content[index++] = '<!-- END FOOTER TABLE -->';
content[index++] = '<!-- END WRAPPER TABLE -->	';
content[index++] = '</td></tr>';
content[index++] = '</table>';
content[index++] = '<!-- END WRAPPER TABLE -->	';
content[index++] = '</div>';

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeFooterLogos()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0" style="background-color: #6686b3">';
content[index++] = '	<tr>';
content[index++] = '		<td><div style="float:left; background-color: #6686b3; width: 442px; padding-top: 3px; _text-align:left;"><a href="' + sitedir + 'privacy.html"><img src="' + imgdir + 'footer_privacy.gif" width="88" height="13" alt="Privacy Policy" border="0" style="padding:2px 0px;"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + sitedir + 'cip_notice.html"><img src="' + imgdir + 'footer_cipnotice.gif" width="60" height="13" alt="CIP Notice" border="0" style="padding:2px 0px;"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.savingsbonds.gov\');"><img src="' + imgdir + 'footer_savingsbond.gif" width="78" height="17" alt="Savings Bonds" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + sitedir + 'check21.html"><img src="' + imgdir + 'footer_check21.gif" width="43" height="13" alt="Check21" border="0" style="padding:2px 0px;"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + sitedir + 'locations.html"><img src="' + imgdir + 'footer_contact.gif" width="53" height="13" alt="Contact Us" border="0" style="padding:2px 0px;"></a>';
content[index++] = '            <br /><a href="https://www.cjbna.com/onlineserv/HB/security_site/privacy.html" target="_blank"><img src="' + imgdir + 'footer_internet_security.gif" width="107" height="17" alt="Internet Security" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + sitedir + 'governance.html"><img src="' + imgdir + 'footer_corporategov.gif" width="120" height="13" alt="Business Ethics and Conduct" border="0" style="padding:2px 0px;"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + imgdir + 'OfficerCodeofEthics.pdf" target="_blank"><img src="' + imgdir + 'footer_codeofethics.gif" width="112" height="17" alt="Business Ethics and Conduct" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0" style="padding:2px 0px;"><a href="' + sitedir + 'CRA_Website_Notice.pdf" target="_blank"><img src="' + imgdir + 'footer_cranotice.gif" width="61" height="17" alt="CRA Notice" border="0"></a></div>';
content[index++] = '            <div style="float:right;"><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="48" height="39" alt="Equal Housing Lender" border="0"></a><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.fdic.gov\');"><img src="' + imgdir + 'footer-fdic.gif" width="78" height="39" alt="Member FDIC" border="0"></a><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.star-system.com\');"><img src="' + imgdir + 'footer-star.gif" width="78" height="39" alt="STAR" border="0"></a><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.cjbna.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.cjbna.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" style="margin-bottom: 6;" border="0" alt="Digital Insight, an Intuit company" /></a>';
content[index++] = '        </div></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';

//CODE GOES HERE

return (content.join(""));
}


/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function makeFooterLogosNoFDIC()
{
var content = new Array();
var index = 0;

//CODE GOES HERE
content[index++] = '<table width="750" border="0" cellspacing="0" cellpadding="0" style="background-color: #6686b3">';
content[index++] = '	<tr>';
content[index++] = '		<td><div style="float:left; background-color: #6686b3; width: 373px; padding-top: 3px;"><a href="' + sitedir + 'privacy.html"><img src="' + imgdir + 'footer_privacy.gif" width="88" height="13" alt="Privacy Policy" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0"><a href="' + sitedir + 'cip_notice.html"><img src="' + imgdir + 'footer_cipnotice.gif" width="60" height="13" alt="CIP Notice" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0"><a href="' + sitedir + 'governance.html"><img src="' + imgdir + 'footer_corporategov.gif" width="120" height="13" alt="Business Ethics and Conduct" border="0"></a><br /><a href="https://www.cjbna.com/onlineserv/HB/security_site/privacy.html" target="_blank"><img src="' + imgdir + 'footer_internet_security.gif" width="107" height="17" alt="Internet Security" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0"><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.savingsbonds.gov\');"><img src="' + imgdir + 'footer_savingsbond.gif" width="78" height="17" alt="Savings Bonds" border="0"></a><img src="' + imgdir + 'footer_divider_dot.gif" width="14" height="13" border="0"><a href="' + imgdir + 'OfficerCodeofEthics.pdf" target="_blank"><img src="' + imgdir + 'footer_codeofethics.gif" width="112" height="17" alt="Business Ethics and Conduct" border="0"></a><a href="' + sitedir + 'CRA_Website_Notice.pdf" target="_blank"><img src="' + imgdir + 'footer_cranotice.gif" width="61" height="17" alt="CRA Notice" border="0"></a></div>';
content[index++] = '		<div style="float:right;"><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="48" height="39" alt="Equal Housing Lender" border="0"></a><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.star-system.com\');"><img src="' + imgdir + 'footer-star.gif" width="78" height="39" alt="STAR" border="0"></a><a href="javascript:third_party(\'' + sitedir  + 'third_party_popup.html?location=http://www.digitalinsight.com\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.cjbna.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.cjbna.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" style="margin-bottom: 6;" border="0" alt="Digital Insight, an Intuit company" /></a></div></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';

//CODE GOES HERE

return (content.join(""));
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||FOOTER FUNCTIONS|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/





function openIB(which)
{
if (which == 'demo')
	{
	if (this.ib_open_window == true)
		{
		window.open(this.ib_demo);
		}
	else
		{
		location.href = this.ib_demo;
		}
	}
else if (which == 'topdemo')
	{
		top.location.href = this.ib_demo;
	}			
else if (which == 'top')
	{
		top.location.href = this.ib;
	}	
else
	{
	if (this.ib_open_window == true)
		{
		window.open(this.ib);
		}
	else
		{
		location.href = this.ib;
		}
	}
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function openIBRegister()
{
	window.open(this.ib_register);
}

function openCM()
{
if (this.cm_open_window == true)
	{	
	window.open(this.cm);
	}
else
	{
	location.href = this.cm;
	}
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function make_NAMEHERE_dropdown()
{

var items = new Array();
var index = -1;
items[index++] = new Array('#' , 'Make a Selection &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' , 'same');
items[index++] = new Array('link1.html' , 'Personal Checking Accounts' , 'same');
items[index++] = new Array('checking_business.html' , 'Business Checking Accounts' , 'same');
items[index++] = new Array('checking_fastline.html' , 'Fastline' , 'same');
items[index++] = new Array('checking_local.html' , 'Local Connections' , 'same');
		
writeout_dropdown(items);		
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function writeout_dropdown(items)
{
var whole = '<form name="form1">';
whole += '<select name="dropdown_nav" onChange="javascript:changeLocations();" class="dropdown">';
for (i=0; i < items.length; i++)
	{
	if (items[i][2] == "new")
		{
		var target="?new";
		}
	else if (items[i][2] == "top")
		{
		var target="?top";
		}	
	else
		{
		var target="";
		}	
	whole += '<option value="' + items[i][0] + target + '">' + items[i][1] + '</option>';
	}
whole += '</select>';
document.write(whole);
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function changeLocations()
{
var location = document.form1.dropdown_nav[document.form1.dropdown_nav.selectedIndex].value;

var first = location.indexOf("?");
if (first != -1)
	{
	var target = location.substring(first + 1 , location.length);
	location = location.substring(0 , first);
	}
else
	{
	var target = "";
	}	
	
	//alert(target);
	//alert(location);
	
if (target == "new")
	{
	window.open(location);
	}
else if (target == "top")
	{
	top.location.href = location;
	}	
else
	{
	window.location.href = location;
	}	

}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function make_NAMEHERE_subnav(whichnumber , breaknumber)
{
var items = new Array();
var index = -1;

items[index++] = new Array('<a href="link1.html">' , 'LINK1' , '</a>');
items[index++] = new Array('<a href="link2.html">' , 'LINK2' , '</a>');
items[index++] = new Array('<a href="link3" target="_new">' , 'LINK3' , '</a>');
items[index++] = new Array('<a href="link4.html">' , 'LINK4' , '</a>');


writeitout(items , whichnumber , breaknumber);
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||NEW FUNCTION|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/

function writeitout(items , whichnumber , breaknumber)
{
var whole = '<div align="center" class="subnav">';
var spacer = ""
for (i=0; i < items.length; i++)
	{
	if (i != whichnumber)
		{
		spacer = " | ";
		if (i == items.length - 1)
			spacer = "";
		else if (i == breaknumber)
			spacer = "<br />";
		whole += items[i][0] + items[i][1] + items[i][2] + spacer;
		}
	else
		{
		spacer = " | ";
		if (i == items.length - 1)
			spacer = "";
		else if (i == breaknumber)
			spacer = "<br />";
		whole += items[i][1] + spacer;
		}
	}
whole += '</div><br />';
document.write(whole);
}