function testMe() {
document.write("JavaScript import works.");
}

function LinkNode(name, link) {
	this.name = name;
	this.link = link;
}

function drawHeader() {
	document.write("<table class='header'><td class='logocell'><a href='http://www.calpoly.edu/~glbclub'><img class='logo' src='http://www.calpoly.edu/~glbclub/old stuff/spectrum.jpg' /></a></td>");
	document.write("<td class='textcell'><span class='headertext'>Spectrum: Cal Poly's<br/>Gay-Straight Alliance</span></td></tr></table>");
}

function drawMenu() {
	//Compile link nodes
	var allLinkNodes = new Array();
	allLinkNodes.push(new LinkNode("Home","index.html"));
	allLinkNodes.push(new LinkNode("News","news.html"));
	allLinkNodes.push(new LinkNode("Events","events.html"));
	allLinkNodes.push(new LinkNode("Minutes","minutes.html"));
	allLinkNodes.push(new LinkNode("Resources","resources.html"));
	//allLinkNodes.push(new LinkNode("Pictures","pictures.html"));
	allLinkNodes.push(new LinkNode("About","about.html"));
	allLinkNodes.push(new LinkNode("People and Contacts","people.html"));
	//allLinkNodes.push(new LinkNode("Test","test.html"));
	
	var returnText = new String();
	returnText += "<table class='menu'><tr>";
	for(var i = 0; i < allLinkNodes.length; i++) {
		returnText += "<td class='menucell";
		if (i == 0) {returnText += " left";}
		if (i == allLinkNodes.length - 1) {returnText += " right";}
		if (i > 0 && i < allLinkNodes.length - 1) {returnText += " middle";}
		if (location.href.match(allLinkNodes[i].link) != null) {returnText += " accent";}
		returnText += "' style='width: " + (100/allLinkNodes.length) + "%;'>";
		if (location.href.match(allLinkNodes[i].link) == null) {
			returnText += "<a class='nav' href='" + allLinkNodes[i].link + "'>" + allLinkNodes[i].name + "</a>";
		}
		else {
			returnText += allLinkNodes[i].name;
		}
		returnText += "</td>";
	}
	returnText += "</tr></table>";
	document.write(returnText);
}

function drawFooter() {
	document.write("<div class='footer'>");
	document.write("<a href='http://validator.w3.org/check?uri=referer'><img src='http://www.w3.org/Icons/valid-xhtml11' alt='Valid XHTML 1.1' height='31' width='88' style='border-width: 0px; margin: 0px 5px 8px' /></a>");
	document.write("<a href='http://jigsaw.w3.org/css-validator/check/referer'><img style='border:0;width:88px; height:31px; margin: 0px 5px 8px;' src='http://jigsaw.w3.org/css-validator/images/vcss' alt='Valid CSS!' /></a>");
	
	document.write("<!-- Start of StatCounter Code -->\n<script type='text/javascript'>\nvar sc_project=4953145;\nvar sc_invisible=1;\nvar sc_partition=57;\nvar sc_click_stat=1;\nvar sc_security='afed529e';\n</script>");
	document.write("<script type='text/javascript' src='http://www.statcounter.com/counter/counter_xhtml.js'></script>\n<!-- End of StatCounter Code -->");

	document.write("<a href='http://my.statcounter.com/project/standard/stats.php?project_id=4953145&guest=1'><img src='http://www.statcounter.com/images/button2.gif' alt='StatCounter' style='border:0;width:88px;height:31px;margin: 0px 5px 8px;' /></a>");
	
	
	document.write("<br />");
	document.write("&copy; 2009 by Spectrum. Website design by Ed Foley.</div>");
}