//================================================
// Display the main page header
//================================================
function PageHeader()
{
	document.write('	<div id="Logo" style="position:absolute; left:15px; top:25px; width:180px; height:70px;" onMouseOver="hideAll();">');
	document.write('		 <IMG src="images/page-logo.gif" border=0 width=180 height=70 alt="Welcome to Park Federal Savings Bank">');
	document.write('	</div>');
	document.write('	<div id="HdrMenu" style="position:absolute; left:0px; top:0px; width:100%; height:20px; text-align:right;">');
	document.write('		 <img src="images/hdr-menu.gif" alt="" width="330" height="20" border="0" usemap="#hdrmenu">');
	document.write('		 <map name="hdrmenu">');
	document.write('		 	  <area shape="rect" coords="  4, 4,  40, 15" href="index.html">');
	document.write('			  <area shape="rect" coords=" 54, 4, 162, 15" href="hours-locations.html">');
	document.write('			  <area shape="rect" coords="177, 4, 245, 15" href="calculators.html">');
	document.write('			  <area shape="rect" coords="259, 4, 324, 15" href="contact-us.html">');
	document.write('		</map>');
	document.write('	</div>');
	document.write('	<div id="HdrSlogan" style="position:absolute; left:0px; top:70px; width:100%; text-align:right;">');
	document.write('		 <span class="shdrtxt"><strong><em>Where You Matter Most</em></strong></span>');
	document.write('	</div>');
}

//================================================
// Display the main page footer
//================================================
function PageFooter()
{
	document.write('			<div id="Footer" style="width:100%; height:25px; background-image:url(\'images/page-footer.gif\'); background-repeat:repeat-x;">');
	document.write('				<table width=100% height=25 border=0 cellspacing=0 cellpadding=5>');
	document.write('					<tr>');
	document.write('						<td width=50% align="left" valign="middle">');
	document.write('							<a href=" http://www.snl.com/irweblinkx/corporateprofile.aspx?iid=102683" onClick="return confirm(\'You have activated a hyperlink to a web site over whose information Park Federal Savings Bank has no control or influence.  This link is provided only as a convenience and does not imply an endorsement, investigation, verification or monitoring by Park Federal Savings Bank of any information contained within the site.  Park Federal Savings Bank will not be responsible for the quality, content, nature, reliability, or use of the site you have chosen to access.\')"><strong>Park Bancorp, Inc.</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;');
	document.write('							<a href="privacy-statement.html"><strong>Privacy Statement</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;');
	document.write('							<a href="sitemap.html"><strong>Site Map</strong></a>');
	document.write('						</td>');
	document.write('						<td width=50% align="right" valign="middle">');
	document.write('							<span class="copyright">&copy;Copyright 2005-2008 - Park Federal Savings Bank, All rights reserved.</span>');
	document.write('						</td>');
	document.write('					</tr>');				
	document.write('			 	</table>');					 
	document.write('			</div>');
}

//================================================
// Display "ABOUT" menu
//================================================
function showAboutMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';

	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'visible';
}

//================================================
// Display "CHECKING" menu
//================================================
function showCheckingMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'visible';
}	

//================================================
// Display "SAVINGS" menu
//================================================
function showSavingsMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'visible';
}

//================================================
// Display "LOAN" menu
//================================================
function showLoanMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'visible';
}

//================================================
// Display "SERVICES" menu
//================================================
function showServicesMenu()
{
	//---------------------------------------------
	// turn off the other stuff
	//---------------------------------------------
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	//---------------------------------------------
	// turn on the menu
	//---------------------------------------------
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'visible';
}

//================================================
// Hide all menus and turn buttons off
//================================================
function hideAll()
{
	this.obj = document.getElementById('AboutMenu');
	this.style = document.getElementById('AboutMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('CheckingMenu');
	this.style = document.getElementById('CheckingMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('SavingsMenu');
	this.style = document.getElementById('SavingsMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('LoanMenu');
	this.style = document.getElementById('LoanMenu').style.visibility = 'hidden';
	
	this.obj = document.getElementById('ServicesMenu');
	this.style = document.getElementById('ServicesMenu').style.visibility = 'hidden';
}

//================================================
// Open Home Affordability calc window
//================================================
function openHomeAffordWindow()
{
	newHomeWindow=window.open("http://calcs.c2commerce.com/c2calculators/park_fed/homeafford.asp","HomeAfford","status=yes,width=540,height=450,scrollbars=yes,menubar=yes");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newHomeWindow.focus();
}

//================================================
// Open Retirement Planning calc window
//================================================
function openRetireWindow()
{
	newRetireWindow=window.open("http://calcs.c2commerce.com/c2calculators/park_fed/retire.asp","Retire","status=yes,width=540,height=450,scrollbars=yes,menubar=yes");
	if (navigator.appVersion.toLowerCase().indexOf("msie") != -1 && parseInt(navigator.appVersion) <= 4 && navigator.appVersion.toLowerCase().indexOf("msie 5.0") == -1) 
	{
		//Older versions of IE can't handle the focus
	}
	else newRetireWindow.focus();
}


//================================================
// Online Banking login scripts
//================================================
function setAction()
{
	//Fill in the Routing number below.
	var rtNum = "271070843";
	var x = document.forms.Remote;
	
	x.action = 'https://web1.secureinternetbank.com/pbi_pbi1961/Pbi1961.asp?WCI=RemoteLogin&RT=271070843&LogonBy=connect3&PRMACCESS=Portfolio';
}

function doLoginRefresh()
{
	var x = document.forms.Remote;
	
	if (x.AccessIDVisible.value != "")
	{
		x.AccessID.value = x.AccessIDVisible.value;
		x.AccessIDVisible.value = "";
		
		setAction();
		return true;
	}
	else
	{
		alert("Please Enter a valid Access ID.  Thank you!");
		return false;
	}
}
