// constructor
function Menu()
{
	// number of menu items
	this.Options = 6;
	
	// link URLs
	this.Locations = new Array(
					"index.html",
					"about.htm",
					"consulting.htm",
					"publications.htm",
					"software.htm",
					"contact.htm"
				);

	// link text
	this.TextDesc = new Array(
					"Home",
					"About Us",
					"Consulting",
					"Publications",
					"Software",
					"Contact Us"
				);

	// displays menu vertically
	this.DoMenu = BuildMenu;

	// displays menu horizontally
	this.DoMenuFooter = BuildMenuFooter;
}

// display menu vertically
function BuildMenu(MenuType)
{
	document.writeln('<p class=menu>');

	for(i=0; i<this.Options; i++)
	{
		if(MenuType != this.Locations[i])
		{
			document.write('<a href="' + this.Locations[i] + '">' + this.TextDesc[i] + '</a>');
			document.writeln('<br><br>');
		};
	};

	document.writeln('</p>');
}

// display menu as footer
function BuildMenuFooter(MenuType)
{
	document.writeln('<p class=menutext>');

	var Counter = 0;
	for(i=0; i<this.Options; i++)
	{
		if(MenuType != this.Locations[i])
		{
			Counter++;
			document.write(	'&nbsp;<a href="' + this.Locations[i] + '">' + this.TextDesc[i] + '</a>&nbsp;');
			if(Counter == 3)
				document.write('<br>');

		};
	};

	document.writeln('</p>');
}

function DoLogo()
{
    document.writeln('<p class=body>');
    document.writeln('<img src="exer-fit.gif" usemap="#logomap"  border=0 width=625 height=64 alt="Exer-Fit">');
    document.writeln('<map name="logomap">');
	document.writeln('<area href="index.html" alt="Exer-Fit" shape="rect" coords="0, 0, 531, 64">');
	document.writeln('<area href="consulting.htm" alt="Consulting" shape="rect" coords="531, 0, 625, 24">');
	document.writeln('<area href="publications.htm" alt="Publishing" shape="rect" coords="531, 24, 625, 43">');
	document.writeln('<area href="software.htm" alt="Software" shape="rect" coords="531, 43, 625, 64">');
    document.writeln('</map>');
    document.writeln('</p>');
}

function DoFooter()
{
    document.writeln('<hr>');
    document.writeln('<p class=copyright>Copyright &copy; 2007 Exer-Fit. All rights reserved.</p>');
}