// This document will write the navigation menus for all the pages

links = new makeArray();

function linkRecord(value, value2, identifier)
{
	this.name = value;
	this.link = value2;
	this.isHeader = identifier;
}

function makeArray()
{
	this.length = 12;
	this[0] = new linkRecord('HOME', 'none', true);
	this[1] = new linkRecord('News', 'index.php', false);
	this[2] = new linkRecord('Action Page!', 'action.html', false);
	this[3] = new linkRecord('Pictures', 'pictures.html', false);
	this[4] = new linkRecord('Articles', 'articles.html', false);
	this[5] = new linkRecord('Forum', 'http://dems.benhouston.net/forum/viewforum.php?f=1&sid=7c76baf0b314843388abdd8edba4dbb4', false);
	this[6] = new linkRecord('Links', 'links.html', false);
	this[7] = new linkRecord('ORGANIZATION', 'none', true);
	this[8] = new linkRecord('Mission Statement', 'mission.html', false);
	this[9] = new linkRecord('Constitution', 'constitution.html', false);
	// this[10] = new linkRecord('Members', 'members.html', false);
    // this[11] = new linkRecord('Committees', 'committees.html', false);
	// this[10] = new linkRecord('Agenda', 'agenda.html', false);
	this[10] = new linkRecord('Minutes', 'minutes.html', false);
	this[11] = new linkRecord('Contact', 'mailto:k02bh03@kzoo.edu', false);
}

function makeNav(divName)
{
	el = document.getElementById(divName);
	
	for (i = 0; i < links.length; i++)
	{
		if (links[i].isHeader)
		{
			if (i == 0)
			{
				el.innerHTML += "<font color='#99CCCC' size='1' face='Geneva, Arial, Helvetica, sans-serif'>" + links[i].name + "</font><br>";
			}
			else
			{
				el.innerHTML += "<br><font color='#99CCCC' size='1' face='Geneva, Arial, Helvetica, sans-serif'>" + links[i].name + "</font><br>";
			}
		}
		else if (links[i].name == "Contact")
		{
			el.innerHTML += "</p><p><a class='mailto' href='" + links[i].link + "'>" + links[i].name + "</a></p>";
		}
		else
		{
			el.innerHTML += "<a class='menuLink' href='" + links[i].link + "'>" + links[i].name + "</a><br>";
		}
	}
}