function loadPage(backcolor, colornum, imgname)
	{
		if (backcolor != parent.frames['navbar'].document.getElementById("topbar1").style.backgroundColor)
		{
			parent.frames['submenu'].document.getElementById("submenu").style.backgroundColor=backcolor;
			parent.frames['submenu'].document.getElementById("leftsub").style.backgroundColor=backcolor;
			parent.frames['submenu'].document.getElementById("hgrad").style.background="url('images/c" + colornum + "v.jpg')";
			parent.frames['navbar'].document.getElementById("diag").style.background="url('images/c" + colornum + "d.jpg')";
			parent.frames['navbar'].document.getElementById("vgrad").style.background="url('images/c" + colornum + "v.jpg')";
			parent.frames['navbar'].document.getElementById("grad").style.background ="url('images/c" + colornum + "h.jpg')";
			parent.frames['navbar'].document.getElementById("art").innerHTML="<img src='" + imgname + "' height=70>";
			parent.frames['navbar'].document.getElementById("topbar1").style.backgroundColor=backcolor;
			parent.frames['navbar'].document.getElementById("topbar2").style.backgroundColor=backcolor;
			parent.frames['navbar'].document.getElementById("botbar").style.backgroundColor=backcolor;
			//marquee();
		}
		//return colornum;
	}
	
function setTable(timg, tcells)
	{
		/* 
		   menuArray index
			0=Newsletters
			1=Profile
			2=Membership
			3=Contact Us
			4=eServices
			5=Products
		*/
		var menuArray = new Array();
		menuArray[0]= "<a href='pages/profile.htm' target='main'>Profile</a>^<a href='pages/Po/5113.pdf' target='main'>July, 2004</a>^<a href='pages/Po/5112.htm' target='main'>January, 2004</a>^<a href='pages/Po/5111.htm' target='main'>October 2003</a>^<a href='pages/Po/5110.htm' target='main'>July 2003</a>^<a href='pages/Po/5109.htm' target='main'>January 2003</a>^<a href='pages/Po/5108.htm' target='main'>October 2002</a>^<a href='pages/Po/5107.htm' target='main'>July 2002</a>^<a href='pages/Po/2000a.htm' target='main'>Archives</a>";
		menuArray[1]= "<a href='pages/Po/5100.htm' target='main'>Newsletter</a>^<a href='pages/Po/5001.htm' target='main'>Financial Highlights</a>^<a href='pages/Po/5002.htm' target='main'>Annual Report</a>^<a href='pages/Po/5003.htm' target='main'>Credit Union History</a>^<a href='pages/Me/1003.htm' target='main'>Privacy Statement</a>^<a href='pages/Po/5004.htm' target='main'>Disclaimer</a>";
		menuArray[2]= "<a href='pages/Me/1001.htm' target='main'>Joining</a>^<a href='pages/Me/1020.htm' target='main'>Forms Request</a>^<a href='pages/Me/1002.htm' target='main'>Account Disclosure</a>^<a href='pages/Me/1003.htm' target='main'>Privacy Statement</a>^<a href='pages/Me/1004.htm' target='main'>Savings Protection</a>";
		menuArray[3]= "<a href='mailto:info&#064;trugrocer.com'>E-mail</a>^<a href='pages/Co/4100.htm' target='main'>Branch Locations</a>^<a href='pages/Co/4200.htm' target='main'>Shared Branch</a>^<a href='pages/Es/3020.htm' target='main'>Electronic Teller</a>^<a href='pages/Me/1020.htm' target='main'>Forms Request</a>";
		menuArray[4]= "<font color='black' size='1.5'>CU OnLine</font>&nbsp;&nbsp;<a href='https://www.trgrcuonline.com' target='_blank'>Log On</a>&nbsp;&nbsp;<a href='pages/Es/3001.htm' target='main'>About</a>&nbsp;&nbsp;<a href='pages/Es/3002.htm' target='_blank'>Sign Up</a>^<a href='pages/Co/4200.htm' target='main'>Shared Branch</a>^<a href='pages/Es/3003.htm' target='main'>Payroll Deposit</a>^<a href='pages/Es/3004.htm' target='main'>ACH-Direct Deposit</a>^<a href='pages/Es/3005.htm' target='main'>Bill Payer</a>^<a href='pages/Es/3006.htm' target='main'>Transferring Funds</a>^<a href='pages/Es/3020.htm' target='main'>Electronic Teller</a>^<a href='pages/Pr/2020.htm' target='main'>Buying Vehicles</a>";
		menuArray[5]= "<a href='pages/Pr/2001.htm' target='main'>Shares(Savings)</a>^<a href='pages/Pr/2002.htm' target='main'>Share Draft(Checking)</a>^<a href='pages/Pr/2003.htm' target='main'>Share Certificate</a>^<a href='pages/Pr/2004.htm' target='main'>ATM&#047;POS Debit Card</a>^<a href='pages/Pr/2005.htm' target='main'>Visa Credit Card</a>^<a href='pages/Pr/2101.htm' target='main'>Auto Loans</a>^<a href='pages/Pr/2103.htm' target='main'>Personal Loans</a>^<a href='pages/Pr/2104.htm' target='main'>RV Loans</a>";
		menuArray[99] = "";
		var tstring;
		var s;
		var split;
		var i;
		if (tcells == "")
		{
			tcells="99";
		}
		s = new String(menuArray[tcells]);
		split = s.split("^");
		tstring = "<table border=0 style='position:absolute;top:5;left:545' cellpadding='0' cellspacing='0'>";
		for (i=0;i<=split.length-1;++i)
		{
			tstring = tstring + "<tr align='left'><td>";
			tstring = tstring + split[i];
			tstring = tstring + "</td></tr>";
		}
		tstring = tstring + "<tr>";
		tstring = tstring + "<td>";
		//tstring = tstring + "<img src='" + timg + "' width='140'>";
		tstring = tstring + "</td></tr>";
		tstring = tstring + "</table>";
		//alert(tstring);
		//if (parent.frames['navbar'].document.getElementById("submenu") != null)
		//{
		//parent.frames['navbar'].document.getElementById("submenu").innerHTML=tstring;
		//}
		//return 0;
	}

function setAd()
{
	var astring= new Array();
	var today = new Date();
	var curmin;
	var i;
	curmin = today.getSeconds();
	if (curmin >= 45)
	{
		curmin=curmin - 45;
	}
	if (curmin >= 30)
	{
		curmin=curmin - 30;
	}
	if (curmin >= 15)
	{
		curmin=curmin - 15;
	}
	astring[0]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[0]=astring[0] + "<td><center><b>Put the brakes on High Rates!</b><br><br><a href='pages/Pr/2101.htm' target='main'>Click here to find Low Vehicle Loan Rates!</a><br><br>Rates as low as 4.45% APR !</center></td>";
	astring[0]=astring[0] + "<td><img src='images/ad_0.gif'></img></td>";
	astring[0]=astring[0] + "</tr></table>";

	astring[1]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[1]=astring[1] + "<td><center><a href='pages/Es/3020.htm' target='main'>Click here for Electronic Teller (E.T.) instructions.</a><br><br>A secure, simple and FREE method of access to your accounts anytime, anywhere using a telephone!</center></td>";	
	astring[1]=astring[1] + "<td><img src='images/ad_1.gif'></img></td>";
	astring[1]=astring[1] + "</tr></table>";

	astring[2]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[2]=astring[2] + "<td><center><a href='https://www.trgrcuonline.com' target='_blank'>Logon to CU OnLine Anytime!</a><br><br>Access real-time account information, bill payer services, and more 24 hours a day, 7 days a week!</center></td>";	
	astring[2]=astring[2] + "<td><img src='images/ad_2.gif'></img></td>";
	astring[2]=astring[2] + "</tr></table>";

	astring[3]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[3]=astring[3] + "<td><left><b>FAMILY MEMBERSHIP!</b> If you enjoy the low loan rates and fees, convenient, friendly services, and higher savings rates you get from your Credit Union, share us with your family.  Mom, Dad, Sister, and Brother may be eligible to join, too!  If Mom complains about high checking account fees at the bank, she’ll appreciate our share draft account.  If Pop’s interested in a new vehicle, he’ll appreciate our low-rate vehicle loans.  And if Sister and Brother are looking to build retirement nest eggs, they’ll appreciate our high savings rates.  So send ‘em our way.  They’ll thank you.</left></td>";	
	astring[3]=astring[3] + "<td><img src='images/ad_3.gif'></img></td>";
	astring[3]=astring[3] + "</tr></table>";
		
	astring[4]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[4]=astring[4] + "<td><center><b>Need cash fast?</b><br><br>Use your ATM/POS/Debit Card at one of nearly 225,000 Star ATM locations.<BR><BR>This <a href='http://star.via.infonow.net/loc/' target='_blank'>ATM Locator</a> will help you find the one nearest to you.</center></td>";	
	astring[4]=astring[4] + "<td><img src='images/ad_4.gif'></img></td>";
	astring[4]=astring[4] + "</tr></table>";

	astring[5]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[5]=astring[5] + "<td><center>Enjoy the convenience of <b>Payroll Deposit</b> of your Paycheck.<br><br>Sign up to get automatic deposit of your weekly payroll!<br><br>Click <a href='pages/Es/3003.htm'>here</a> for details about your direct payroll deposit options.</center></td>";	
	astring[5]=astring[5] + "<td><img src='images/ad_5.gif'></img></td>";
	astring[5]=astring[5] + "</tr></table>";

	astring[6]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[6]=astring[6] + "<td><center>Enjoy the benefits of a TruGrocer Federal Credit Union Visa&reg;!<br><br>Get yours today and start earning <em><strong>1% cash back</strong></em> on all purchases!<br><br>";
	astring[6]=astring[6] + "Click <a href='pages/Pr/2005.htm'>here</a> for more information.</center></td>";	
	astring[6]=astring[6] + "<td><img src='images/ad_6.gif'></img></td>";
	astring[6]=astring[6] + "</tr></table>";
	
	astring[7]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[7]=astring[7] + "<td><center><b>Paying your bills online just got a whole lot easier!</b><br><br>";
	astring[7]=astring[7] + "<a href='pages/Es/3005.htm'>Click here to discover Bill Payer features</a> that make it so fast and simple.<br><br>";
	astring[7]=astring[7] + "Get <a href='pages/Es/3002.htm' target='_blank'>signed up</a> for CU OnLine and access your account to get started!</center></td>";	
	astring[7]=astring[7] + "<td><img src='images/ad_7.gif'></img></td>";
	astring[7]=astring[7] + "</tr></table>";

	astring[8]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[8]=astring[8] + "<td><center><b>Interested in becoming a member?</b><br><br>Check to see if you are <a href='pages/Me/1001.htm'>eligible</a> to join, then <a href='pages/Me/1020.htm'>request an application</a>.</center></td>";	
	astring[8]=astring[8] + "<td><img src='images/ad_8.gif'></img></td>";
	astring[8]=astring[8] + "</tr></table>";

	astring[9]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[9]=astring[9] + "<td><center><b>Convenience starts with an ATM/POS/Debit Card!</b><br><br>Faster than a check and more convenient than cash!<br><br>Click <a href='pages/Pr/2004.htm'>here</a> for details.</center></td>";	
	astring[9]=astring[9] + "<td><img src='images/ad_9.gif'></img></td>";
	astring[9]=astring[9] + "</tr></table>";

	astring[10]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[10]=astring[10] + "<td><center><b>Personal Loan Special</b><br><br>With our managed credit program, you can get rates as low as 6.90% APR !<br><br>Click <a href='pages/Pr/2103.htm'>here</a> for calculators and details.</center></td>";	
	astring[10]=astring[10] + "<td><img src='images/ad_10.gif'></img></td>";
	astring[10]=astring[10] + "</tr></table>";

	astring[11]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[11]=astring[11] + "<td><center>Want a better way to manage your finances and investments?<br><br>Try the <a href='pages/mfn.htm'>Members' Financial Network</a> and see how it can help you acheive your important financial goals.<br><br><a href='pages/mfn.htm'>Click here for more information.</a></center></td>";	
	astring[11]=astring[11] + "<td><img src='images/ad_11.gif'></img></td>";
	astring[11]=astring[11] + "</tr></table>";

	astring[12]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[12]=astring[12] + "<td><center>Need to see if a charge on your Visa has cleared?<br><br>Need to check your balance?<br><br>With <a href='http://www.ezcardinfo.com' target='_blank'>My Visa</a> access to your account you can do these and much more... <br>anytime online, 24 hours a day, 7 days a week.</center></td>";	
	astring[12]=astring[12] + "<td><img src='images/ad_12.gif'></img></td>";
	astring[12]=astring[12] + "</tr></table>";

	astring[13]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[13]=astring[13] + "<td><center>No-fee ATM access is built for Credit Union membership privileges!<br><br>Click <a href='http://www.co-opfs.org/public/locators/ATMlocator/index.cfm' target='_blank'>here</a> to find an ATM near you.</center></td>";	
	astring[13]=astring[13] + "<td><img src='images/ad_13.gif'></img></td>";
	astring[13]=astring[13] + "</tr></table>";

	astring[14]="<table align='center'><tr><td colspan='2'></td></tr><tr>";
	astring[14]=astring[14] + "<td><left><b>Retailers and Your Debit Card:</b> An ATM/POS debit card from your Credit Union makes getting your funds fast and secure. A Share Draft (checking) account and the debit card work together to provide free access to your funds.</left></td>";	
	astring[14]=astring[14] + "<td><img src='images/ad_14.gif'></img></td>";
	astring[14]=astring[14] + "</tr></table>";

	parent.frames['main'].document.getElementById("adv").innerHTML=astring[curmin];
}