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

function Include()
{
this.domain = "visionbank";
this.friendly = "Freedom Bank";
this.ib = "https://www.freedombankonline.com/onlineserv/HB";
this.ib_demo = "https://www.freedombankonline.com/onlineserv/HB/demo.html";
this.ib_open_window = true;
this.cm_open_window = true;
this.ib_register = "https://www.freedombankonline.com/onlineserv/HB/OnlineForm.cgi?form=enhancedNDB";
this.cm = "https://www.freedombankonline.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++] = inc.makeTopNav();
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '    <td bgcolor="#EFEFEF"><img src="' + imgdir + 'navbg.gif" width="149" height="15"></td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '<table width="744" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '    <td width="149" background="' + imgdir + 'navbg.gif" valign="top" align="center"> ';
content[index++] = '      <img src="' + imgdir + 'nav-onlinebanking.gif" width="149" height="45" border="0" alt="Online Banking"><br>';
content[index++] = inc.makeMainNav();
content[index++] = '      </td>';
content[index++] = '    <td valign="top" width="6256">';
content[index++] = '      <table width="611" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '        <tr valign="top" align="center" bgcolor="#FFFFFF"> ';
content[index++] = '          <td colspan="2"> <img src="' + imgdir + 'clearpix.gif" width="1" height="32"> ';
content[index++] = '            <table width="589" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '              <tr>';
content[index++] = '                <td class="ficontent" valign="top"> ';
content[index++] = '				';
//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">';
content[index++] = '  <tr>';
content[index++] = '    <td background="' + imgdir + 'logobg.gif" valign="top">';

content[index++] = '<img src="' + imgdir + 'logo.gif" width="266" height="77" alt="Freedom Bank"><img src="' + imgdir + 'slogan.gif" alt="The bank you\'ve been waiting for." width="177" height="77"></td>';
content[index++] = '  </tr>';
content[index++] = '  <tr>';
content[index++] = '    <td background="' + imgdir + 'topbg.gif" valign="top" align="right"><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="58" height="17" name="home" alt="Home" border="0"></a><a href="' + sitedir + 'about.html" onMouseOver="img_act(\'about\'); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'about\');"><img src="' + imgdir + 'nav-about-off.gif" width="78" height="17" name="about" alt="About Us" border="0"></a><a href="javascript:open_apps(\'guestbook_app\');" onMouseOver="img_act(\'contact\'); window.status=\'Contact Us\'; return true" onMouseOut="img_inact(\'contact\');"><img src="' + imgdir + 'nav-contact-off.gif" width="100" height="17" name="contact" alt="Contact Us" border="0"></a></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++] = '  <a href="javascript:inc.openIB();" onMouseOver="img_act(\'login\'); window.status=\'Login\'; return true" onMouseOut="img_inact(\'login\');"><img src="' + imgdir + 'nav-login-off.gif" width="54" height="21" name="login" alt="Login" border="0"></a><a href="javascript:inc.openIB(\'demo\');" onMouseOver="img_act(\'demo\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo\');"><img src="' + imgdir + 'nav-demo-off.gif" width="35" height="21" name="demo" alt="Demo" border="0"></a><a href="#" onClick="open_window(\'https://www.freedombankonline.com/onlineserv/HB/IB_enroll_app.html\')" onMouseOver="img_act(\'moreinfo\'); window.status=\'Apply\'; return true" onMouseOut="img_inact(\'moreinfo\');"><img src="' + imgdir + 'nav-moreinfo-off.gif" width="48" height="21" name="moreinfo" alt="More Info" border="0"></a><br>';
content[index++] = '  <a href="javascript:inc.openIB();" onMouseOver="img_act(\'login\'); window.status=\'Login\'; return true" onMouseOut="img_inact(\'login\');"><img src="' + imgdir + 'nav-login-off.gif" width="54" height="21" name="login" alt="Login" border="0"></a><a href="javascript:inc.openIB(\'demo\');" onMouseOver="img_act(\'demo\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo\');"><img src="' + imgdir + 'nav-demo-off.gif" width="35" height="21" name="demo" alt="Demo" border="0"></a><a href="#" onClick="open_window(\'https://www.freedombankonline.com/onlineserv/HB/STDReg.cgi\')" onMouseOver="img_act(\'moreinfo\'); window.status=\'Apply\'; return true" onMouseOut="img_inact(\'moreinfo\');"><img src="' + imgdir + 'nav-moreinfo-off.gif" width="48" height="21" name="moreinfo" alt="More Info" border="0"></a><br>';
content[index++] = '        <a href="' + sitedir + 'products.html" onMouseOver="img_act(\'products\'); window.status=\'Products and Services\'; return true" onMouseOut="img_inact(\'products\');"><img src="' + imgdir + 'nav-products-off.gif" width="149" height="29" name="products" alt="Products and Services" border="0"></a><br>';
content[index++] = '        <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="149" height="30" name="rates" alt="Rates" border="0"></a><br>';
content[index++] = '        <a href="' + sitedir + 'locations.html" onMouseOver="img_act(\'locations\'); window.status=\'Locations\'; return true" onMouseOut="img_inact(\'locations\');"><img src="' + imgdir + 'nav-locations-off.gif" width="149" height="30" name="locations" alt="Locations" border="0"></a><br>';
content[index++] = '        <a href="' + sitedir + 'faq.html" onMouseOver="img_act(\'faqs\'); window.status=\'FAQs\'; return true" onMouseOut="img_inact(\'faqs\');"><img src="' + imgdir + 'nav-faqs-off.gif" width="149" height="30" name="faqs" alt="FAQs" border="0"></a> ';
content[index++] = '        <a href="' + sitedir + 'calculators.html" onMouseOver="img_act(\'calculators\'); window.status=\'Calculators\'; return true" onMouseOut="img_inact(\'calculators\');"><img src="' + imgdir + 'nav-calculators-off.gif" width="149" height="30" name="calculators" alt="Calculators" border="0"></a> ';
content[index++] = '        <a href="' + sitedir + 'repossessions.html" onMouseOver="img_act(\'usedvehicles\'); window.status=\'Used Vehicles\'; return true" onMouseOut="img_inact(\'usedvehicles\');"><img src="' + imgdir + 'nav-usedvehicles-off.gif" width="149" height="30" name="usedvehicles" alt="Used Vehicles" border="0"></a> ';
content[index++] = '        <br>';
content[index++] = '        <img src="' + imgdir + 'nav-lostcards.gif" width="144" height="95" name="lostcards" alt="Lost or Stolen Cards" border="0">';
content[index++] = '        <br>';
content[index++] = '        <br>';
if(window.homepage)
{
//content[index++] = '        <a href="javascript:showWarning(\'http://www.turbotax.intuit.com/welcome/common/landingpage.html?source=freedo1\');"><img src="' + imgdir + 'tt04.gif" width="120" height="90" alt="Turbo Tax&reg; for the Web(SM)" border="0" /></a>';
//content[index++] = '        <br />';
//content[index++] = '        <br />';
}
content[index++] = '        <a href="javascript:showWarning(\'http://www.ftc.gov/bcp/edu/microsites/idtheft/index.html\');"><img src="' + imgdir + 'defend_logo.gif" width="145" height="88" alt="" border="0"></a> ';
content[index++] = '        <br>';
content[index++] = '        <br>';
content[index++] = '     <a href="javascript:showWarning(\'http://www.deluxe-check-order.com/ReorderHome.jsp\');"><img src="' + imgdir + 'delux.gif" alt="Reorder Deluxe Personal Checks" border="0"></a> ';
content[index++] = '        <br>';
content[index++] = '      <br>';


//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 = '';
	}	
}

/*_______________________________________________________________________________________
||||||||||||||||||||||||||||||||||||||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++] = '					<br /><br />';
content[index++] = '					';
content[index++] = '                </td>';
content[index++] = '              </tr>';
content[index++] = '            </table>';
content[index++] = '            <br>';
content[index++] = '              <img src="' + imgdir + 'greypix.gif" width="585" height="1"><br>';
content[index++] = makeFooterLogos();
content[index++] = '          </td>';
content[index++] = '        </tr>';
content[index++] = '      </table>';
content[index++] = '    </td>';
content[index++] = '  </tr>';
content[index++] = '</table>';
content[index++] = '<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '  <tr>';
content[index++] = '    <td bgcolor="#D3D3BF"><img src="' + imgdir + 'clearpix.gif" width="1" height="20"></td>';
content[index++] = '  </tr>';
content[index++] = '</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="100%" border="0" cellspacing="0" cellpadding="10">';
content[index++] = '              <tr> ';
content[index++] = '                <td align="center" valign="middle" class="ficontent"><a href="' + sitedir + 'privacy.html" class="secondarylink">Privacy</a> ';
content[index++] = '                  <span class="pipes">| </span><a href="http://www.freedombankonline.com/onlineserv/HB/security_site/privacy.html" class="secondarylink">Security</a> ';
content[index++] = '                  <span class="pipes">| </span><a href="' + sitedir + 'disclosures.html" class="secondarylink">Disclosures</a></td>';
content[index++] = '                <td valign="middle" align="right"><a href="javascript:showWarning(\'http://www.deluxe.com\');"><img src="' + imgdir + 'deluxe.gif" width="71" height="43" border="0" alt="Deluxe"></a><a href="javascript:showWarning(\'http://www.fdic.gov\');"><img src="' + imgdir + 'fdic.gif" width="57" height="19" border="0" alt="FDIC"></a><a href="javascript:showWarning(\'http://www.hud.gov\');"><img src="' + imgdir + 'ehl.gif" width="66" height="43" border="0" alt="Equal Housing Lender"></a><!--[if lt IE 7]><script type="text/javascript" src="https://www.freedombankonline.com/mstinc/web/js/png.js"></script><![endif]--><a href="javascript:showWarning(\'http://www.digitalinsight.com\');"><img src="https://www.freedombankonline.com/mstinc/web/images/di_91x22_1c_k.png" width="91" height="22" border="0" alt="Digital Insight, an Intuit company" /></a></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);
}
