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

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

this.setHeaderGraphic = setHeaderGraphic;
this.setContentGraphic = setContentGraphic;
this.makeHeader = makeHeader;
this.makeTopNav = makeTopNav;
this.makeMainNav = makeMainNav;
this.makeLoginArea = makeLoginArea;
this.makeUltraseek = makeUltraSeek;
this.makeFooter = makeFooter;
this.makeFooterLogos = makeFooterLogos;
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++] = '<table background="' + imgdir + 'clearpix.gif" width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '    <td height="90" background="' + imgdir + 'hed-headerpic1.jpg" width="760"><img src="' + imgdir + 'cape_bank_logo.jpg" width="206" height="32"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '    <td><img src="' + imgdir + 'hed-barline.gif" width="760" height="1"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '    <td bgcolor="#ECE7CC">';
content[index++] = inc.makeTopNav();
content[index++] = '    </td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '    <td><img src="' + imgdir + 'hed-barline.gif" width="760" height="1"></td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="1" height="15"> ';
content[index++] = '<table width="740" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr> ';
content[index++] = '    <td width="156" valign="top"> ';
content[index++] = '      <table width="156" border="0" cellspacing="0" cellpadding="0" background="' + imgdir + 'nav-bg.gif">';
content[index++] = inc.makeMainNav();
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><img src="' + imgdir + 'nav-blank.gif" width="156" height="21"></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><img src="' + imgdir + 'nav-blank.gif" width="156" height="21"></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><img src="' + imgdir + 'nav-blank.gif" width="156" height="21"></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><img src="' + imgdir + 'nav-blank.gif" width="156" height="21"><br>';
content[index++] = '            <img src="' + imgdir + 'nav-footer.gif" width="156" height="9"></td>';
content[index++] = '        </tr>';
content[index++] = '      </table>';
content[index++] = '    </td>';
if (!window.homepage)
{
content[index++] = '    <td valign="top" background="' + imgdir + 'hed-arrow.gif" width="584" style="background-repeat: no-repeat;">';
}
else
{
content[index++] = '    <td valign="top" width="584">';
}
content[index++] = '      <table width="584" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '        <tr> ';
content[index++] = '          <td width="38"><img src="' + imgdir + 'clearpix.gif" width="38" height="1"></td>';
content[index++] = '          <td width="546" class="ficontent" valign="top"><img src="' + imgdir + 'clearpix.gif" width="50" height="15"><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++] = '      <table width="760" border="0" cellspacing="0" cellpadding="0" background="' + imgdir + 'clearpix.gif">';
content[index++] = '        <tr>';
content[index++] = '          <td width="450"><img src="' + imgdir + 'clearpix.gif" width="10" height="8" align="middle"><a href="javascript:inc.openIB();" onMouseOver=" popUp(\'HM_Menu1\',event);" onMouseOut="popDown(\'HM_Menu1\');"><img src="' + imgdir + 'hed-onlinepersonal.gif" width="172" height="16" align="middle" border="0" alt="Online Personal Banking"></a><img src="' + imgdir + 'clearpix.gif" width="37" height="8" align="middle"><a href="javascript:inc.openCM();" onMouseOver=" popUp(\'HM_Menu7\',event);" onMouseOut="popDown(\'HM_Menu7\');"><img src="' + imgdir + 'hed-onlinebusiness.gif" width="176" height="16" align="middle" border="0" alt="Online Business Banking"></a></td>';
content[index++] = '          <td align="right" width="310">';
content[index++] = makeDateStamp();
content[index++] = '            <img src="' + imgdir + 'clearpix.gif" width="25" height="8" align="middle"><br>';
content[index++] = '			<img src="' + imgdir + 'clearpix.gif" width="50" height="2"></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++] = ' <tr> ';
content[index++] = '          <td valign="top"><img src="' + imgdir + 'nav-top.gif" width="156" height="9"><br>';
content[index++] = '            <a href="' + sitedir + 'checking.html" onMouseOver="img_act(\'checking\'); popUp(\'HM_Menu2\',event);  window.status=\'Checking\'; return true" onMouseOut="img_inact(\'checking\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-checking-off.gif" width="156" height="21" border="0" name="checking" alt="Checking"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'savings.html" onMouseOver="img_act(\'savings\'); popUp(\'HM_Menu3\',event); window.status=\'Savings\'; return true" onMouseOut="img_inact(\'savings\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-savings-off.gif" width="156" height="21" border="0" name="savings" alt="Savings"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'loans.html" onMouseOver="img_act(\'loans\'); window.status=\'Loans\'; return true" onMouseOut="img_inact(\'loans\');"><img src="' + imgdir + 'nav-loans-off.gif" width="156" height="21" border="0" name="loans" alt="Loans"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'services.html" onMouseOver="img_act(\'services\'); popUp(\'HM_Menu4\',event); window.status=\'Services\'; return true" onMouseOut="img_inact(\'services\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-services-off.gif" width="156" height="21" border="0" name="services" alt="Services"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="javascript:third_party(\'' + sitedir + 'third_party_popup.html?location=http://www.snl.com/irweblinkx/corporateprofile.aspx?iid=4127982\');" onMouseOver="img_act(\'investor\'); window.status=\'Investor Relations\'; return true" onMouseOut="img_inact(\'investor\');"><img src="' + imgdir + 'nav-investor-off.gif" width="156" height="21" border="0" name="investor" alt="Investor Relations"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="javascript:third_party(\'' + sitedir + 'translink_popup.html?location=https://www.transfirst.net/translink/ASP/login.asp?branding=BRDWALK\');" onMouseOver="img_act(\'translink\'); window.status=\'TransLink\'; return true" onMouseOut="img_inact(\'translink\');"><img src="' + imgdir + 'nav-translink-off.gif" width="156" height="21" border="0" name="translink" alt="Translink"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'contact.html" onMouseOver="img_act(\'contact\'); window.status=\'Contact\'; return true" onMouseOut="img_inact(\'contact\');"><img src="' + imgdir + 'nav-contact-off.gif" width="156" height="21" border="0" name="contact" alt="Contact Us"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'locations.html" onMouseOver="img_act(\'locations\'); window.status=\'Branch Locations\'; return true" onMouseOut="img_inact(\'locations\');"><img src="' + imgdir + 'nav-locations-off.gif" width="156" height="21" border="0" name="locations" alt="Branch Locations"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'job_opportunities.html" onMouseOver="img_act(\'jobopps\'); window.status=\'Job Opportunities\'; return true" onMouseOut="img_inact(\'jobopps\');"><img src="' + imgdir + 'nav-jobopps-off.gif" width="156" height="21" border="0" name="jobopps" alt="Job Opportunities"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td valign="top"><a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'help\'); popUp(\'HM_Menu6\',event); window.status=\'Help\'; return true" onMouseOut="img_inact(\'help\'); popDown(\'HM_Menu6\'); "><img src="' + imgdir + 'nav-help-off.gif" width="156" height="21" border="0" name="help" alt="Help"></a></td>';
content[index++] = '        </tr>';
content[index++] = '        <tr> ';
content[index++] = '          <td 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="156" height="21" border="0" name="home" alt="Home"></a></td>';
content[index++] = '        </tr>';
//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 = '<img src="' + imgdir + 'pic-' + graphic + '.jpg" width="218" height="125" align="right" border="0" alt="' + alt_tag + '">';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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="288" height="34" alt="' + alt_tag + '"><br />';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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 />';
content[index++] = '			</td>';
content[index++] = '        </tr>';
content[index++] = '      </table>';
content[index++] = '    </td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="50" height="20"> ';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr> ';
content[index++] = '    <td><img src="' + imgdir + 'hed-barline.gif" width="760" height="1"></td>';
content[index++] = '  </tr>';
content[index++] = inc.makeFooterLogos();
content[index++] = '  <tr> ';
content[index++] = '    <td><img src="' + imgdir + 'hed-barline.gif" width="760" height="1"></td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '</td></tr></table>';

//CODE GOES HERE

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

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

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

//CODE GOES HERE
content[index++] = '  <tr> ';
content[index++] = '    <td bgcolor="#ECE7CC" align="center" valign="middle"><a href="javascript:third_party(\'' + sitedir + 'third_party_popup.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'footer-ehl.gif" width="39" height="35" align="middle" alt="Equal Housing Lender" border="0"></a><img src="' + imgdir + 'clearpix.gif" width="30" height="42" align="middle">';
content[index++] = '      <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.boardwalkbank2.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.boardwalkbank2.com/mstinc/web/images/di_91x22_1c_k.png" width="91" height="22" style="filter:alpha(opacity=50);-moz-opacity:.50;opacity:.50;" align="middle" border="0" alt="Digital Insight, an Intuit company" /></a><img src="' + imgdir + 'clearpix.gif" width="30" height="42" align="middle"><a href="javascript:third_party(\'' + sitedir + 'third_party_popup.html?location=http://www.fdic.gov\');"><img src="' + imgdir + 'footer-fdic.gif" width="52" height="32" align="middle" border="0" alt="Member FDIC"></a><img src="' + imgdir + 'clearpix.gif" width="30" height="42" align="middle"><a href="' + sitedir + 'privacy.html"><img src="' + imgdir + 'footer-privacy.gif" width="71" height="32" align="middle" border="0" alt="Privacy Policy"></a><img src="' + imgdir + 'footer-spacer.gif" width="25" height="32" align="middle"><a href="' + sitedir + 'disclosures.html"><img src="' + imgdir + 'footer-disclosure.gif" width="60" height="32" align="middle" border="0" alt="Disclosures"></a></td>';
content[index++] = '  </tr>';
//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);
}