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

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

this.setHeaderGraphic = setHeaderGraphic;
this.setContentGraphic = setContentGraphic;
this.makeSubNav = makeSubNav;
this.makeTopNav = makeTopNav;
this.makeMainNav = makeMainNav;
this.makeLoginLinks = makeLoginLinks;
this.makeQuickLinks = makeQuickLinks;
this.makeBottomNav = makeBottomNav;
this.makeFooter = makeFooter;
this.makeFooterLogos = makeFooterLogos;
this.openIB = openIB;
this.openIBRegister = openIBRegister;
this.openCM = openCM;

}



//-------------------------------------------BEGIN HEADER FUNCTIONS---------------------------------
//-------------------------------------------BEGIN HEADER FUNCTIONS---------------------------------
//-------------------------------------------BEGIN HEADER FUNCTIONS---------------------------------



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

//CODE GOES HERE
if (window.page_subnav)
{
content[index++] = page_subnav;
}
else
{
content[index++] = 'Savings Programs | IRA Investment Wizard | Loan Programs | Convenience Services | Teller-Phone | Theme Park Discounts | 24-Hour Loan Service | Other Links';
}
//CODE GOES HERE

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

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

//CODE GOES HERE

//CODE GOES HERE

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

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

//CODE GOES HERE
content[index++] = '<td width="121" valign="top" background="' + imgdir + 'tan_pix.gif" class="ficontent"><img src="' + imgdir + 'clearpix.gif" width="121" height="1" alt="" border="0"><br>';
content[index++] = '<a href="' + homedir + 'index.html" class="secondarylink" alt="Home" onMouseOver="window.status=\'Home\'; return true" onMouseOut="window.status=\'\'; return true">HOME</a><br><br>';
//content[index++] = '<a href="javascript:showpopup(\'https://www.wyfedcuonline.com/popup_login.html\' , \'450\' , \'350\')" class="secondarylink" onMouseOver="window.status=\'Log on to WAMM\'; return true" onMouseOut="window.status=\'\'; return true">Log on to WAMM</a><br><br>';
//content[index++] = '<a href="javascript:loan_app();" class="secondarylink" onMouseOver="window.status=\'Apply for a Loan\'; return true" onMouseOut="window.status=\'\'; return true">Apply for Loan</a><br><br>';
//content[index++] = '<a href="javascript:open_apps(\'membership_app\');" class="secondarylink" onMouseOver="window.status=\'Join WFCU\'; return true" onMouseOut="window.status=\'\'; return true">Join WFCU</a><br><br>';
content[index++] = '<a href="' + imgdir + 'WYFq_Jan12.pdf" target="_blank" class="secondarylink" onMouseOver="window.status=\'Read Newsletter\'; return true" onMouseOut="window.status=\'\'; return true">Newsletter</a><br><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.scorecardrewards.com\');" class="secondarylink" onMouseOver="window.status=\'Visa\'; return true" onMouseOut="window.status=\'\'; return true">ScoreCard Rewards</a><br><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=https://www.rewardsnow.com/signnscore/\');" class="secondarylink" onMouseOver="window.status=\'Visa\'; return true" onMouseOut="window.status=\'\'; return true">sign-n -score rewards</a><br><br>';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=https://reorder.libertysite.com\');" class="secondarylink" onMouseOver="window.status=\'Reorder Checks\'; return true" onMouseOut="window.status=\'\'; return true">Reorder Checks</a><br><br>';
content[index++] = '<a href="' + sitedir + 'contact.html#emergency" class="secondarylink" onMouseOver="window.status=\'Emergency Numbers\'; return true" onMouseOut="window.status=\'\'; return true">Emergency Numbers</a><br /><br />';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.accelservices.org\');"><img src="' + imgdir + 'logo_accel.gif" border="0"  alt="click here to visit Accel"></a><br /><br />';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.budgetsmart.org/index.asp?a=119121797110100111116116101102699117&b=677473448853248857849\');"><img src="' + imgdir + 'budgetsmartsml.gif" border="0" alt="Budget Smart"></a><br /><br style="clear:both" />';
content[index++] = '<a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.ftc.gov/bcp/edu/microsites/idtheft/\');" style="text-decoration: none;"><strong style="color: #FF0000; font-size: 18pt;">ID Theft</strong></a><br /></td>';
//CODE GOES HERE

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

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

//CODE GOES HERE
content[index++] = '<a href="https://www.wyfedcuonline.com/index.html?demo" onMouseOver="window.status=\'Demo\'; return true"><img src="' + imgdir + 'btn_demo.gif" width="44" height="10" alt="Demo" border="0" name="btn_demo"></a><img src="' + imgdir + 'clearpix.gif" width="15" height="10" alt="" border="0"><a href="#" onMouseOver="window.status=\'More Info\'; popUp(\'HM_Menu6\',event); return true" onMouseOut="popDown(\'HM_Menu6\');"><img src="' + imgdir + 'btn_moreinfo.gif" width="69" height="10" alt="More Info" border="0" name="moreinfo"></a>';

/*content[index++] = '<a href="https://www.wyfedcuonline.com/index.html?demo" onMouseOver="img_act(\'demo\'); window.status=\'Demo\'; return true" onMouseOut="img_inact(\'demo\');"><img src="' + imgdir + 'nav-demo-off.gif" width="27" height="12" alt="Demo" border="0" name="demo"></a><img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"><a href="#" onMouseOver="img_act(\'moreinfo\'); window.status=\'More Info\'; popUp(\'HM_Menu6\',event); return true" onMouseOut="img_inact(\'moreinfo\'); popDown(\'HM_Menu6\');"><img src="' + imgdir + 'nav-moreinfo-off.gif" width="46" height="12" alt="More Info" border="0" name="moreinfo"></a><img src="' + imgdir + 'login_bumper_right.gif" width="69" height="12" alt="" border="0">';*/

/*<img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"><a href="https://www.wyfedcuonline.com/onlineserv/HB/OnlineForm.cgi?form=enhancedNDB" target="_new" onMouseOver="img_act(\'apply\'); window.status=\'Apply\'; return true" onMouseOut="img_inact(\'apply\');"><img src="' + imgdir + 'nav-apply-off.gif" width="27" height="12" alt="Apply" border="0" name="apply"></a>*/


content[index++] = '<img src="' + imgdir + 'clearpix.gif" width="15" height="10" alt="" border="0"><input type="image" name="submit" src="' + imgdir + 'btn_enter.gif" border="0">';

//CODE GOES HERE

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

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

//CODE GOES HERE
content[index++] = '<td width="29"><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="29" height="15" alt="Home" border="0" name="home"></a></td>';
content[index++] = '<td width="13"><img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"></td>';
content[index++] = '					<td width="55"><a href="' + sitedir + 'contact.html" onMouseOver="img_act(\'contactus\'); window.status=\'Contact Us\'; return true" onMouseOut="img_inact(\'contactus\');"><img src="' + imgdir + 'nav-contactus-off.gif" width="55" height="15" alt="Contact Us" border="0" name="contactus"></a></td>';
content[index++] = '<td width="13"><img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"></td>';
content[index++] = '<td width="69"><a href="' + sitedir + 'privacy.html" onMouseOver="img_act(\'privacy\'); window.status=\'Privacy Policy\'; return true" onMouseOut="img_inact(\'privacy\');"><img src="' + imgdir + 'nav-privacy-off.gif" width="69" height="15" alt="Privacy Policy" border="0" name="privacy"></a></td>';
content[index++] = '<td width="13"><img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"></td>';
content[index++] = '<td width="59"><a href="' + sitedir + 'disclosure_list.html" onMouseOver="img_act(\'disclosures\'); window.status=\'Disclosures\'; return true" onMouseOut="img_inact(\'disclosures\');"><img src="' + imgdir + 'nav-disclosures-off.gif" width="59" height="15" alt="Disclosures" border="0" name="disclosures"></a></td>';
content[index++] = '<td width="13" style="background: none;"><img src="' + imgdir + 'login_divider.gif" width="13" height="12" alt="" border="0"></td>';
//content[index++] = '<td width="28"><a href="' + sitedir + 'links.html" onMouseOver="img_act(\'links\'); window.status=\'Links\'; return true" onMouseOut="img_inact(\'links\');"><img src="' + imgdir + 'nav-links-off.gif" width="28" height="15" alt="Links" border="0" name="links"></a></td>';

//CODE GOES HERE

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

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

//CODE GOES HERE
content[index++] = '<td width="121"><a href="' + sitedir + 'benefits.html" onMouseOver="img_act(\'benefits\'); popUp(\'HM_Menu1\',event);  window.status=\'Benefits and Services\'; return true" onMouseOut="img_inact(\'benefits\'); popDown(\'HM_Menu1\');"><img src="' + imgdir + 'nav-benefits-off.gif" width="121" height="27" alt="Benefits and Services" border="0" name="benefits"></a></td>';
content[index++] = '<td width="94"><a href="' + sitedir + 'loans.html" onMouseOver="img_act(\'loansvisa\'); popUp(\'HM_Menu2\',event); window.status=\'Loans and VISA\'; return true" onMouseOut="img_inact(\'loansvisa\'); popDown(\'HM_Menu2\');"><img src="' + imgdir + 'nav-loansvisa-off.gif" width="94" height="27" alt="Loans and VISA" border="0" name="loansvisa"></a></td>';
content[index++] = '<td width="70"><a href="' + sitedir + 'about.html" onMouseOver="img_act(\'aboutus\'); popUp(\'HM_Menu3\',event); window.status=\'About Us\'; return true" onMouseOut="img_inact(\'aboutus\'); popDown(\'HM_Menu3\');"><img src="' + imgdir + 'nav-aboutus-off.gif" width="70" height="27" alt="About Us" border="0" name="aboutus"></a></td>';
content[index++] = '<td width="86"><a href="' + sitedir + 'membership.html" onMouseOver="img_act(\'membership\'); popUp(\'HM_Menu4\',event); window.status=\'Membership\'; return true" onMouseOut="img_inact(\'membership\'); popDown(\'HM_Menu4\');"><img src="' + imgdir + 'nav-membership-off.gif" width="86" height="27" alt="Membership" border="0" name="membership"></a></td>';
content[index++] = '<td width="90"><a href="' + sitedir + 'online_tools.html" onMouseOver="img_act(\'onlinetools\'); popUp(\'HM_Menu5\',event); window.status=\'Online Tools\'; return true" onMouseOut="img_inact(\'onlinetools\'); popDown(\'HM_Menu5\');"><img src="' + imgdir + 'nav-onlinetools-off.gif" width="90" height="27" alt="Online Tools" border="0" name="onlinetools"></a></td>';
content[index++] = '<td width="67"><a href="' + sitedir + 'sitemap.html" onMouseOver="img_act(\'sitemap\'); window.status=\'Site Map\'; return true" onMouseOut="img_inact(\'sitemap\');"><img src="' + imgdir + 'nav-sitemap-off.gif" width="67" height="27" alt="Site Map" border="0" name="sitemap"></a></td>';
content[index++] = '<td width="3" valign="bottom" background="' + imgdir + 'nav_BG.gif"><img src="' + imgdir + 'clearpix.gif" width="3" height="1" alt="" border="0"></td>';

//CODE GOES HERE

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

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

if (graphic == null)
	{
	this.contentgraphic = "";
	}
else if (graphic == "banM120004")
	{
	this.contentgraphic = '<a href="http://members.cunamutual.com/h2/insurance.aspx?SITE=02100717" target="_blank"><img src="https://members.cunamutual.com/art/cubanners/banM120004.gif" alt="' + alt_tag + '" border="0" hspace="5" align="right" vspace="5"></a>';
	}

else
	{
	this.contentgraphic = '<img src="' + imgdir + 'image-' + graphic + '.jpg" width="214" height="231" alt="' + alt_tag + '" border="0" hspace="5" align="right" vspace="5">';
	}	
}


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" alt="' + alt_tag + '" border="0">';
	}	
}


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





//---------------------------------------------END HEADER FUNCTIONS---------------------------------
//---------------------------------------------END HEADER FUNCTIONS---------------------------------
//---------------------------------------------END HEADER FUNCTIONS---------------------------------



//-------------------------------------------BEGIN FOOTER FUNCTIONS---------------------------------
//-------------------------------------------BEGIN FOOTER FUNCTIONS---------------------------------
//-------------------------------------------BEGIN FOOTER FUNCTIONS---------------------------------




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

//CODE GOES HERE
content[index++] = '<br><br><br>';
content[index++] = '					</td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '		</td>';
content[index++] = '		';
content[index++] = '<!-- END BACK PAGE CONTENT SWAP HERE -->';
content[index++] = '<!-- END BACK PAGE CONTENT SWAP HERE -->	';
content[index++] = '	</tr>	';
content[index++] = '	<tr>';
content[index++] = '		<td width="142" valign="top" background="' + imgdir + 'ql_filler.gif"><img src="' + imgdir + 'clearpix.gif" width="142" height="1" alt="" border="0"></td>';
content[index++] = '		<td width="26"><img src="' + imgdir + 'clearpix.gif" width="26" height="1" alt="" border="0"></td>';
content[index++] = '		<td width="592" colspan="4" valign="top" background="' + imgdir + 'minor_nav_filler.gif">';
content[index++] = '			<table width="592" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr>';
content[index++] = '					<td width="26"><img src="' + imgdir + 'minor_nav_joint.gif" width="26" height="15" alt="" border="0"></td>';
content[index++] = '					<td width="160"><img src="' + imgdir + 'clearpix.gif" width="160" height="1" alt="" border="0"></td>';
content[index++] = '					<td width="6" style="background: none;"><img src="' + imgdir + 'login_bumper_left.gif" width="6" height="12" alt="" border="0"></td>';
content[index++] = '					';
content[index++] = '<!-- START BOTTOM NAVIGATION -->';
content[index++] = '<!-- START BOTTOM NAVIGATION -->';
content[index++] = inc.makeBottomNav();
content[index++] = '<!-- END BOTTOM NAVIGATION -->';
content[index++] = '<!-- END BOTTOM NAVIGATION -->';
//content[index++] = '					<td width="29"><img src="' + imgdir + 'login_bumper_right.gif" width="29" height="12" alt="" border="0"></td>';
content[index++] = '					<td width="145"><img src="' + imgdir + 'clearpix.gif" width="145" height="1" alt="" border="0"></td>';
content[index++] = '					<td width="6"><img src="' + imgdir + 'login_bumper_left.gif" width="6" height="12" alt="" border="0"></td>';
content[index++] = '				</tr>';
content[index++] = '				<tr>';
content[index++] = '					<td width="26"><img src="' + imgdir + 'v_line.gif" width="26" height="4" alt="" border="0"></td>';
content[index++] = '					<td width="566" colspan="12" bgcolor="#FFFFFF"><img src="' + imgdir + 'clearpix.gif" width="566" height="1" alt="" border="0"></td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<!-- START FOOTER LOGOS, ADDRESS AND LINKS -->';
content[index++] = '<!-- START FOOTER LOGOS, ADDRESS AND LINKS -->';
content[index++] = inc.makeFooterLogos();
content[index++] = '<!-- END FOOTER LOGOS, ADDRESS AND LINKS -->';
content[index++] = '<!-- END FOOTER LOGOS, ADDRESS AND LINKS -->	';

//CODE GOES HERE

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

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

//CODE GOES HERE
content[index++] = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '	<tr>';
content[index++] = '		<td width="100%" background="' + imgdir + 'footer_filler.gif">';
content[index++] = '			<table width="760" border="0" cellspacing="0" cellpadding="0">';
content[index++] = '				<tr>';
content[index++] = '					<td width="760" background="' + imgdir + 'footer_filler.gif"><img src="' + imgdir + 'footer_address.gif" width="531" height="55" alt="" border="0"></td>';
content[index++] = '				</tr>';
content[index++] = '			</table>';
content[index++] = '		</td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
content[index++] = '<table border="0">';
content[index++] = '	<tr>';
content[index++] = '		<td width="950" height="81" align="center"><img src="' + imgdir + 'LOGO_ACU.gif" width="155" height="41" alt="" border="0" align="middle"></a><img src="' + imgdir + 'clearpix.gif" width="63" height="1" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.ncua.gov\');"><!--[if lt IE 7]><script type="text/javascript" src="https://www.wyfedcuonline.com/mstinc/web/js/png.js"></script><![endif]--><img src="https://www.wyfedcuonline.com/mstinc/web/images/ncua_140x109_blue.png" width="140" height="109" border="0" align="middle" alt="NCUA" /></a><img src="' + imgdir + 'clearpix.gif" width="63" height="1" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.creditunion.net/\');"><img src="' + imgdir + 'logo_155w.gif" alt="CU Service Centers" border="0" align="middle"></a><img src="' + imgdir + 'clearpix.gif" width="63" height="1" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://www.hud.gov\');"><img src="' + imgdir + 'logo_EHL.gif" alt="Equal Housing Lender" border="0" align="middle"></a><img src="' + imgdir + 'clearpix.gif" width="63" height="1" alt="" border="0"><a href="javascript:third_party(\'' + sitedir + 'popup_third_party.html?location=http://ifs.intuit.com\');"><img src="https://www.wyfedcuonline.com/mstinc/web/images/logo_140x34.png" width="140" height="34" border="0" alt="Powered by Intuit" /></a></td>';
content[index++] = '	</tr>';
content[index++] = '</table>';
if (window.homepage)
{
content[index++] = '<span class="ficontent"><ul>';
content[index++] = '<li>Duplication of information found within this site is prohibited without express written permission from WFCU</li>';
content[index++] = '<li>Any modification or redistribution of the material within this site is a violation of applicable copyright laws.</li>';
content[index++] = '<li>WFCU is only responsible for the content of this web site and shall not be held liable for the content of any sites that are not owned by WFCU</li>';
content[index++] = '<li>Additional restrictions may apply.</li>';
content[index++] = '</ul></span>';
}


//CODE GOES HERE

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

//---------------------------------------------END FOOTER FUNCTIONS---------------------------------
//---------------------------------------------END FOOTER FUNCTIONS---------------------------------
//---------------------------------------------END 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;
		}
	}
}

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

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

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

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

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

}




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


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

//file used to write the date in this format: TUESDAY, JUNE 11, 2002    

function writeDate (){

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

return (finalDate);

}

