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

function Include()
{
this.domain = "visionbank";
this.friendly = "Milford National Bank";
this.ib = "https://www.milfordnationalonline.com/onlineserv/HB/";
this.ib_demo = "https://www.milfordnationalonline.com/onlineserv/HB/demo.html";
this.ib_open_window = false;
this.cm_open_window = true;
this.ib_register = "https://www.milfordnationalonline.com/onlineserv/HB/OnlineForm.cgi?form=enhancedNDB";
this.cm = "https://www.milfordnationalonline.com/onlineserv/CM/";
this.headergraphic = "";
this.contentgraphic = "";
this.bannergraphic = "";

this.setHeaderGraphic = setHeaderGraphic;
this.setContentGraphic = setContentGraphic;
this.setBannerGraphic = setBannerGraphic;
this.makeHeader = makeHeader;
this.makeTopNav = makeTopNav;
this.makeMainNav = makeMainNav;
this.makeLoginArea = makeLoginArea;
this.makeUltraseek = makeUltraSeek;
this.makeFooter = makeFooter;
this.makeFooterLogos = makeFooterLogos;
this.makeFooternew = makeFooternew;
this.makeFooterLogosnew = makeFooterLogosnew;
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++] = '<!-- start 100% header tables -->';
content[index++] = '<!-- start 100% header tables -->';
content[index++] = '<!-- start 100% header tables -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F6F6BA">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" valign="top" bgcolor="#F6F6BA">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = inc.makeTopNav();
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" bgcolor="#000000"><img src="' + imgdir + 'clearpix.gif" width="1" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%" align="left" valign="top">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '				<tr valign="middle">';
content[index++] = '  					<td width="475" align="left" valign="middle" bgcolor="#00807A" class="gold"><img src="' + imgdir + 'clearpix.gif" width="20" height="1" alt="" border="0">' + makeDateStamp() + '<br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="400" height="1" alt="" border="0"></td><td align="left" valign="top"><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="35" height="19" alt="Home" border="0" name="home"></a><img src="' + imgdir + 'topnav-divider.gif" width="15" height="19" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'secure_email_popup.html?location=https://web1.zixmail.net/s/login?b=milfordnational\');" onMouseOver="img_act(\'secureemail\'); window.status=\'\'; return true" onMouseOut="img_inact(\'secureemail\');"><img src="' + imgdir + 'nav-secureemail-off.gif" alt="Secure Email" border="0" name="secureemail"></a><img src="' + imgdir + 'topnav-divider.gif" width="15" height="19" alt="" border="0"><a href="javascript:open_apps(\'guestbook_app\')" onMouseOver="img_act(\'contactus\'); window.status=\'\'; return true" onMouseOut="img_inact(\'contactus\');"><img src="' + imgdir + 'nav-contactus-off.gif" width="60" height="19" alt="Contact Us" border="0" name="contactus"></a><img src="' + imgdir + 'topnav-divider.gif" width="15" height="19" alt="Contact Us" border="0"><a href="' + sitedir + 'about_career.html" onMouseOver="img_act(\'careers\'); window.status=\'Careers\'; return true" onMouseOut="img_inact(\'careers\');"><img src="' + imgdir + 'nav-careers-off.gif" width="44" height="19" alt="Careers" border="0" name="careers"></a><img src="' + imgdir + 'topnav-divider.gif" width="15" height="19" alt="Careers" border="0"><a href="' + sitedir + 'about_locations.html" onMouseOver="img_act(\'locations\'); window.status=\'Branch Locations & Hours\'; return true" onMouseOut="img_inact(\'locations\');"><img src="' + imgdir + 'nav-locations-off.gif" width="134" height="19" alt="Branch Locations & Hours" border="0" name="locations"></a></td>				';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" bgcolor="#000000"><img src="' + imgdir + 'clearpix.gif" width="1" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" bgcolor="#ffffff"><img src="' + imgdir + 'nav-top.gif" width="212" height="29" alt="" border="0"><img src="' + imgdir + 'clearpix.gif" width="548" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% width header tables -->';
content[index++] = '<!-- end 100% width header tables -->';
content[index++] = '<!-- end 100% width header tables -->';
content[index++] = '<!-- start 100% main table -->';
content[index++] = '<!-- start 100% main table -->';
content[index++] = '<!-- start 100% main table -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#ffffff">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" align="left" valign="top">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr valign="top">';
content[index++] = '					<!-- begin nav cell -->';
content[index++] = inc.makeMainNav();
content[index++] = '<td width="3" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="3" height="1" alt="" border="0"></td>';
content[index++] = '<td width="576">';
content[index++] = '<!-- begin page header -->';
content[index++] = inc.headergraphic;
content[index++] = '<!-- end page header -->';
content[index++] = '<!-- begin main content table -->';
content[index++] = '<!-- begin main content table -->';
content[index++] = '<!-- begin main content table -->';
content[index++] = '<table width="576" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="576" class="ficontent"><br />';
//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++] = '		<img src="' + imgdir + 'logo2.gif" style="position:absolute; top:25px; left:15px;" width="145" height="50" alt="" border="0">';
content[index++] = '		<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr valign="top">';
content[index++] = '  					<td width="140" valign="top" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="140" height="74" alt="" border="0"></td><td width="381">' + inc.bannergraphic + '</td><td width="239"><img src="' + imgdir + 'login-header.gif" width="239" height="32" alt="" border="0"><br />';
content[index++] = '<a href="javascript:inc.openIB();" onMouseOver="img_act(\'loginpers\'); popUp(\'HM_Menu8\',event); window.status=\'Personal Banking Login\'; return true" onMouseOut="img_inact(\'loginpers\');  popDown(\'HM_Menu8\');"><img src="' + imgdir + 'nav-loginpers-off.gif" width="239" height="21" alt="Personal Banking Login" border="0" name="loginpers"></a><br />';
content[index++] = '<a href="javascript:inc.openIB();" onMouseOver="img_act(\'loginsmbiz\'); popUp(\'HM_Menu9\',event); window.status=\'Small Business Banking Login\'; return true" onMouseOut="img_inact(\'loginsmbiz\');  popDown(\'HM_Menu9\');"><img src="' + imgdir + 'nav-loginsmbiz-off.gif" width="239" height="21" alt="Small Business Banking Login" border="0" name="loginsmbiz"></a></td>';
content[index++] = '				</tr>';
content[index++] = '				<tr valign="top">';
content[index++] = '					<td width="760" colspan="3" bgcolor="#ffffff"><img src="' + imgdir + 'clearpix.gif" width="140" height="21" alt="" border="0"><img src="' + imgdir + 'clearpix.gif" width="335" height="1" alt="" border="0"><a href="javascript:inc.openCM();" onMouseOver="img_act(\'logincash\'); popUp(\'HM_Menu10\',event); window.status=\'Commercial Cash Management\'; return true" onMouseOut="img_inact(\'logincash\');  popDown(\'HM_Menu10\');"><img src="' + imgdir + 'nav-logincash-off.gif" width="285" height="21" alt="Commercial Cash Management" border="0" name="logincash"></a><br />';
content[index++] = '<img src="' + imgdir + 'top-span.gif" width="760" height="7" alt="" border="0"></td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';

//CODE GOES HERE

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

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

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

//CODE GOES HERE
content[index++] = '  					<td width="212" align="left" valign="top" background="' + imgdir + 'nav-bg.gif"><a href="' + sitedir + 'personal.html" onMouseOver="img_act(\'personalbanking\'); popUp(\'HM_Menu1\',event);  window.status=\'Personal Banking\'; return true" onMouseOut="img_inact(\'personalbanking\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-personalbanking-off.gif" width="160" height="28" alt="Personal Banking" border="0" name="personalbanking"></a><br />';
content[index++] = '<a href="http://milfordnational.mortgagewebcenter.com" onMouseOver="img_act(\'mortgage\'); window.status=\'Mortgage Lending\'; return true" onMouseOut="img_inact(\'mortgage\');"><img src="' + imgdir + 'nav-mortgagelending-off.gif" width="160" height="28" alt="Mortgage Lending" border="0" name="mortgage"></a><br />';
content[index++] = '<a href="' + sitedir + 'business.html" onMouseOver="img_act(\'businessbanking\'); popUp(\'HM_Menu2\',event); window.status=\'Business Banking\'; return true" onMouseOut="img_inact(\'businessbanking\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-businessbanking-off.gif" width="160" height="29" alt="Business Banking" border="0" name="businessbanking"></a><br />';
content[index++] = '<a href="http://www.milfordtrust.com/trust/index.html" target="_new" onMouseOver="img_act(\'trustinv\'); window.status=\'Trust and Investment Management\'; return true" onMouseOut="img_inact(\'trustinv\');"><img src="' + imgdir + 'nav-trustinv-off.gif" width="160" height="42" alt="Trust and Investment Management" border="0" name="trustinv"></a><br />';
content[index++] = '<a href="' + sitedir + 'invest_insure.html" onMouseOver="img_act(\'invins\'); popUp(\'HM_Menu3\',event); window.status=\'Investments and Insurance\'; return true" onMouseOut="img_inact(\'invins\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-invins-off.gif" width="160" height="42" alt="Investments and Insurance" border="0" name="invins"></a><br />';
content[index++] = '<a href="' + sitedir + 'about.html" onMouseOver="img_act(\'aboutus\'); popUp(\'HM_Menu4\',event); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="160" height="28" alt="About Us" border="0" name="aboutus"></a><br />';
content[index++] = '<a href="' + sitedir + 'about_community.html" onMouseOver="img_act(\'charitable\'); popUp(\'HM_Menu11\',event); window.status=\'Charitable Donations\'; return true" onMouseOut="img_inact(\'charitable\'); popDown(\'HM_Menu11\');"><img src="' + imgdir + 'nav-charitable-off.gif" width="160" height="42" alt="Charitable Donations" border="0" name="charitable"></a><br />';
content[index++] = '<a href="' + sitedir + 'rates.html" onMouseOver="img_act(\'rates\'); popUp(\'HM_Menu5\',event); window.status=\'Rates\'; return true" onMouseOut="img_inact(\'rates\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-rates-off.gif" width="160" height="28" alt="Rates" border="0" name="rates"></a><br />';
content[index++] = '<a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calcs\'); popUp(\'HM_Menu6\',event); window.status=\'Calculators\'; return true" onMouseOut="img_inact(\'calcs\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-calcs-off.gif" width="160" height="28" alt="Calculators" border="0" name="calcs"></a><br />';
content[index++] = '<a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'faqs\'); popUp(\'HM_Menu7\',event); window.status=\'FAQs\'; return true" onMouseOut="img_inact(\'faqs\'); popDown(\'HM_Menu7\');"><img src="' + imgdir + 'nav-faqs-off.gif" width="160" height="28" alt="FAQs" border="0" name="faqs"></a><br />';
content[index++] = '<a href="' + sitedir + 'learnmore.html" onMouseOver="img_act(\'learnmore\'); popUp(\'HM_Menu12\',event); window.status=\'Learn More\'; return true" onMouseOut="img_inact(\'learnmore\'); popDown(\'HM_Menu12\');"><img src="' + imgdir + 'nav-learnmore-off.gif" width="160" height="28" alt="Learn More" border="0" name="learnmore"></a><br />';
//content[index++] = '<a href="' + sitedir + 'BankOwnedProperty.pdf"  onMouseOver="img_act(\'property\');  window.status=\'Property For Sale\'; return true" onMouseOut="img_inact(\'property\');"><img src="' + imgdir + 'nav-property-off.gif" width="160" height="42" alt="Property For Sale" border="0" name="property"></a><br />';
content[index++] = '<a href="javascript:third_party(\'http://www.milfordnationalonline.com/site/third_party_popup.html?location=http://www.savingsbonds.gov/\');"   onMouseOver="img_act(\'savingsbond\');  window.status=\'Savings Bond Redemption Values\'; return true" onMouseOut="img_inact(\'savingsbond\');"><img src="' + imgdir + 'nav-savingsbonds-off.gif" width="160" height="42" alt="Savings Bond Redemption Values" border="0" name="savingsbond"></a><br />';
content[index++] = '<a href="javascript:third_party(\'http://www.milfordnationalonline.com/site/third_party_popup.html?location=http://www.nadaguides.com/\');"   onMouseOver="img_act(\'nada\');  window.status=\'NADA Vehicle Appraisal Guide\'; return true" onMouseOut="img_inact(\'nada\');"><img src="' + imgdir + 'nav-nada-off.gif" width="160" height="42" alt="NADA Vehicle Appraisal Guide" border="0" name="nada"></a><br />';
//content[index++] = '<a href="javascript:third_party(\'site/third_party_popup.html?location=http://www.savingsbonds.gov/\');"  onMouseOver="img_act(\'savingsbond\');  window.status=\'Savings Bond Redemption Values\'; return true" onMouseOut="img_inact(\'savingsbond\');"><img src="' + imgdir + 'nav-savingsbonds-off.gif" width="160" height="42" alt="Savings Bond Redemption Values" border="0" name="savingsbond"></a><br />';
//content[index++] = '<a href="javascript:third_party(\'site/third_party_popup.html?location=http://www.nadaguides.com/\');"  onMouseOver="img_act(\'nada\');  window.status=\'NADA Vehicle Appraisal Guide\'; return true" onMouseOut="img_inact(\'nada\');"><img src="' + imgdir + 'nav-nada-off.gif" width="160" height="42" alt="NADA Vehicle Appraisal Guide" border="0" name="nada"></a><br />';
content[index++] = '<img src="' + imgdir + 'nav-bottom.gif" width="160" height="28" alt="" border="0"><br />';
content[index++] = '<br />';
content[index++] = '<br />';
content[index++] = '</td>';

//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 if (graphic.indexOf('.') > 0){
    this.contentgraphic = '<img src="' + imgdir + 'img-' + graphic + '" alt="' + alt_tag + '" hspace="10" vspace="10" border="0" align="right">';
}
else
	{
	this.contentgraphic = '<img src="' + imgdir + 'img-' + graphic + '.jpg" alt="' + alt_tag + '" hspace="10" vspace="10" border="0" align="right">';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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="576" height="28" alt="' + alt_tag + '" border="0"><br />';
	}	
}

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

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

if (graphic == null)
	{
	this.bannergraphic = "";
	}
else
	{
	this.bannergraphic = '<img src="' + imgdir + 'slogan-' + graphic + '.gif" width="381" height="74" alt="' + alt_tag + '" border="0">';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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++] = '<span class=date>' + finalDate + '</span>';

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++] = '		<br /><br /></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end main content table -->';
content[index++] = '<!-- end main content table -->';
content[index++] = '<!-- end main content table -->';
content[index++] = '</td>';
content[index++] = '<td width="21"><img src="' + imgdir + 'clearpix.gif" width="21" height="1" alt="" border="0"></td>';
content[index++] = '					<!-- end nav cell -->			';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" bgcolor="#000000"><img src="' + imgdir + 'clearpix.gif" width="1" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" align="left" valign="top" bgcolor="#00807A">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = inc.makeFooterLogos();
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% footer table -->';
content[index++] = '<!-- end 100% footer table -->';
content[index++] = '<!-- end 100% footer table -->';
//CODE GOES HERE

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

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

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

//CODE GOES HERE
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '				<tr valign="top">';
content[index++] = '  					<td width="212" class="white"><img src="' + imgdir + 'clearpix.gif" width="212" height="1" alt="" border="0"><br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">300 East Main Street<br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">Milford, MA 01757<br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">(508) 634-4100<br />';
content[index++] = '</td>';
content[index++] = '<td width="288" align="center" class="white"><img src="' + imgdir + 'clearpix.gif" width="288" height="1" alt="" border="0"><br />';
content[index++] = '<a href="http://www.diproductsite.com/security_microsite/" target="_new" class="secondarylink">Security Overview</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + sitedir + 'privacy.html" class="secondarylink">Privacy Policy</a><br />';
content[index++] = '<a href="' + sitedir + 'personal_conv_telebanking.html" class="secondarylink">TeleBanking</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + sitedir + 'terms_of_use.html" class="secondarylink">Terms of Use</a></td>';
if (window.investmentpage)
{
content[index++] = '<td width="250" align="left" valign="top"><!--[if lt IE 7]><script type="text/javascript" src="https://www.milfordnationalonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.milfordnationalonline.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" border="0" style="margin-bottom:12px;" alt="Digital Insight, an Intuit company" /><img src="' + imgdir + 'clearpix.gif" width="23" height="1" alt="" border="0"></td>				';
}
else
{
content[index++] = '<td width="250" align="left" valign="top"><img src="' + imgdir + 'footer-fdic.gif" width="68" height="46" alt="FDIC" border="0"><img src="' + imgdir + 'footer-ehl.gif" width="51" height="46" alt="EHL" border="0"><!--[if lt IE 7]><script type="text/javascript" src="https://www.milfordnationalonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.milfordnationalonline.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" border="0" style="margin-bottom:12px;" alt="Digital Insight, an Intuit company" /><img src="' + imgdir + 'clearpix.gif" width="23" height="1" alt="" border="0"></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|||||||||||||||||||||||||||||||||
_______________________________________________________________________________________*/


//Footer functions for about_locations.html page



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

//CODE GOES HERE
content[index++] = '		<br /><br /></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end main content table -->';
content[index++] = '<!-- end main content table -->';
content[index++] = '<!-- end main content table -->';
content[index++] = '</td>';
content[index++] = '<td width="21"><img src="' + imgdir + 'clearpix.gif" width="21" height="1" alt="" border="0"></td>';
content[index++] = '					<!-- end nav cell -->			';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- end 100% main table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<!-- start 100% footer table -->';
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" bgcolor="#000000"><img src="' + imgdir + 'clearpix.gif" width="1" height="1" alt="" border="0"></td>';
content[index++] = '	</tr>';
content[index++] = '	<tr valign="top">';
content[index++] = '		<td width="100%" align="left" valign="top" bgcolor="#00807A">';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = '			<!-- begin nested 760 width table -->';
content[index++] = inc.makeFooterLogosnew();
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '			<!-- end nested 760 width table -->';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- end 100% footer table -->';
content[index++] = '<!-- end 100% footer table -->';
content[index++] = '<!-- end 100% footer table -->';
//CODE GOES HERE

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

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

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

//CODE GOES HERE
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0" bgcolor="#00807A">';
content[index++] = '				<tr valign="top">';
content[index++] = '  					<td width="212" class="white"><img src="' + imgdir + 'clearpix.gif" width="212" height="1" alt="" border="0"><br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">300 East Main Street<br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">Milford, MA 01757<br />';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="18" height="1" alt="" border="0">(508) 634-4100<br />';
content[index++] = '</td>';
content[index++] = '<td width="288" align="center" class="white"><img src="' + imgdir + 'clearpix.gif" width="288" height="1" alt="" border="0"><br />';
content[index++] = '<a href="http://www.diproductsite.com/security_microsite/" target="_new" class="secondarylink">Security Overview</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + sitedir + 'privacy.html" class="secondarylink">Privacy Policy</a><br />';
content[index++] = '<a href="' + sitedir + 'personal_conv_telebanking.html" class="secondarylink">TeleBanking</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="' + sitedir + 'terms_of_use.html" class="secondarylink">Terms of Use</a></td>';
if (window.investmentpage)
{
content[index++] = '<td width="250" align="left" valign="top"><!--[if lt IE 7]><script type="text/javascript" src="https://www.milfordnationalonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.milfordnationalonline.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" border="0" style="margin-bottom:12px;" alt="Digital Insight, an Intuit company" /><img src="' + imgdir + 'clearpix.gif" width="23" height="1" alt="" border="0"></td>				';
}
else
{
content[index++] = '<td width="250" align="left" valign="top"><img src="' + imgdir + 'footer-ehl.gif" width="51" height="46" alt="EHL" border="0"><!--[if lt IE 7]><script type="text/javascript" src="https://www.milfordnationalonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.milfordnationalonline.com/mstinc/web/images/di_91x22_1c_w.png" width="91" height="22" border="0" style="margin-bottom:12px;" alt="Digital Insight, an Intuit company" /><img src="' + imgdir + 'clearpix.gif" width="23" height="1" alt="" border="0"></td>				';
}
content[index++] = '				</tr>';
content[index++] = '			</table>';

//CODE GOES HERE

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






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);
}
