function Menu()
{
	this.Locations = new Array("index.htm", "software.htm", "webservices.htm", "contact.htm");

	this.TextDesc = new Array("Home", "Windows Software", "Web Services", "Contact");

	this.DoMenu = BuildMenu;
	this.DoMenuFooter = BuildMenuFooter;
}

function BuildMenu(MenuType)
{
	document.writeln('<div class="menu">');


	for(i=0; i<this.Locations.length; i++)
	{
		if(MenuType != this.Locations[i])
		{
			document.write('<a href="' + this.Locations[i] + '">' + this.TextDesc[i] + '</a>');

			if( i != (this.Locations.length - 1) )
				document.writeln('<br><br>');
		};
	};

	document.writeln('</div>');
}

function BuildMenuFooter(MenuType)
{
	document.writeln('<div class="menuText">');

	var count = 0;
	for(i=0; i<this.Locations.length; i++)
	{
		if(MenuType != this.Locations[i])
		{
			if(count != 0)
				document.write('&nbsp;|&nbsp;');

			if(MenuType != this.Locations[i])
			{
				count++;
				document.write(	'<a href="' + this.Locations[i] + '">' + this.TextDesc[i] + '</a>');
			}
		}
	};

	document.writeln('</div>');
}

function DoHeader(MenuType)
{

	document.writeln('<table border="0" cellpadding="10" cellspacing="0">');

	document.writeln('<tr><td colspan="2">');
	document.writeln('<div class="title">FitnessWizard.com</div>');
	document.writeln('<div class="subTitle">Fitness Software and Development Services</div>');
	document.writeln('<hr>');
	document.writeln('</td></tr>');


	document.writeln('<tr><td valign="top" width="50">');
	menu = new Menu();
	menu.DoMenu(MenuType);
	document.writeln('</td><td valign="top">');
}

function DoFooter(MenuType)
{
	document.writeln('</td></tr>');

	document.writeln('<tr><td colspan="2"><hr></td></tr>');

	document.writeln('<tr><td></td><td align="center">');

	menu = new Menu();
	menu.DoMenuFooter(MenuType);

	document.writeln('<br>');

	document.write('<div class="copyright">Copyright &copy; ');

	theDate = new Date();
	document.write( theDate.getFullYear() );

	document.writeln(' Robert Ryan. All rights reserved.</div>');


	document.writeln('</td></tr>');
	document.writeln('</table>');
}