<!--

/*  Navigation Bar Script copyright 2002 by Russell Cottrell  */

function matchlist(matc1, matc2) {
var re = eval("/\\|" + matc1 + "\\|/");
if (matc2.replace(re, "") != matc2) return true;
}

function footer(page) {
var navs = new Array();

if (matchlist(page, "|0|1|2|3|4|5|6|7|8|9|10|")) {
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(-1, "index.html", "index", " | "),
	new Array(0, "introduction.asp", "introduction", " | "),	     // INCLUDE NOSCRIPT
	new Array(1, "greek_alphabet_1.htm", "alphabet", " | "),
	new Array(2, "greek_alphabet_2.htm", "accents", " | "),
	new Array(3, "greek_alphabet_3.htm", "diphthongs", " | "),
	new Array(4, "gender.htm", "gender", " | "),
	new Array(5, "case_1.htm", "case", " | "),
	new Array(6, "case_2.htm", "declensions", " | "),
	new Array(7, "verbs.htm", "verbs", " | "),
	new Array(8, "conclusion.htm", "conclusion", "<br><br>"),
	new Array(9, "view.asp?9", "<img src='images/book.gif' border='0' width='42' height='18' align='absbottom'>sign the guestbook", " | "),
	new Array(100, "aristarchus.asp", "Aristarchus", " | "),
	new Array(-2, "webrings.htm", "webrings", " | "),
	new Array(10, "fonts.asp?10", "<b>get a Unicode font</b>", "")
	) }
else if (matchlist(page, "|100|101|102|103|104|")) {
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(-1, "index.html", "index", " | "),
	new Array(100, "aristarchus.asp", "Aristarchus", " | "),	     // INCLUDE NOSCRIPT
	new Array(101, "onthesizes.htm", "On the Sizes . . .", " | "),
	new Array(102, "sandreckoner.htm", "Sand Reckoner", "<br><br>"),
	new Array(103, "view.asp?103", "<img src='images/book.gif' border='0' width='42' height='18' align='absbottom'>sign the guestbook", " | "),
	new Array(0, "introduction.asp", "ancient Greek", " | "),
	new Array(-2, "webrings.htm", "webrings", " | "),
	new Array(104, "fonts.asp?104", "<b>get a Unicode font</b>", "")
	) }
else if (matchlist(page, "|200|201|202|203|204|205|")) {
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(-1, "index.html", "index", " | "),
	new Array(200, "unicode.htm", "Unicode", " | "),	     // INCLUDE NOSCRIPT
	new Array(201, "fonts.asp", "fonts", " | "),
	new Array(202, "utilities.htm", "utilities", " | "),
	new Array(203, "technical.htm", "technical", "<br><br>"),
	new Array(204, "view.asp?204", "<img src='images/book.gif' border='0' width='42' height='18' align='absbottom'>sign the guestbook", " | "),
	new Array(0, "introduction.asp", "ancient Greek", " | "),
	new Array(100, "aristarchus.asp", "Aristarchus", " | "),
	new Array(-2, "webrings.htm", "webrings", " | "),
	new Array(205, "fonts.asp?205", "<b>get a Unicode font</b>", "")
	) }
else if (matchlist(page, "|288|289|")) {	// contact.htm
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(-1, "index.html", "index", " | "),
	new Array(200, "unicode.htm", "Unicode", " | "),
	new Array(201, "fonts.asp", "fonts", " | "),
	new Array(299, "license/index.asp", "download Aristarcoj", " | "),
	new Array(288, "", "", ""),
	new Array(202, "utilities.htm", "utilities", " | "),
	new Array(203, "technical.htm", "technical", ""),
	new Array(289, "", "", "")
	) }
else if (matchlist(page, "|299|")) {	// license/index.html
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(-1, "../index.html", "index", " | "),
	new Array(200, "../unicode.htm", "Unicode", " | "),
	new Array(201, "../fonts.asp", "fonts", " | "),
	new Array(299, "", "<b>download Aristarcoj</b>", " | "),
	new Array(202, "../utilities.htm", "utilities", " | "),
	new Array(203, "../technical.htm", "technical", "<br><br>"),
	new Array(204, "../view.asp?204", "<img src='../images/book.gif' border='0' width='42' height='18' align='absbottom'>sign the guestbook", " | "),
	new Array(-2, "../webrings.htm", "webrings", " | "),
	new Array(205, "../fonts.asp?205", "<b>get a Unicode font</b>", "")
	) }
else if (matchlist(page, "|399|")) {	// view.asp
navs = new Array(	// page ID, navbar address, navbar ID
	new Array(399, "", "<img src='images/book.gif' border='0' width='42' height='18' align='absbottom'><b>sign the guestbook</b>", " | "),
	new Array(-1, "index.html", "index", " | "),
	new Array(0, "introduction.asp", "ancient Greek", " | "),
	new Array(100, "aristarchus.asp", "Aristarchus", " | "),
	new Array(200, "unicode.htm", "Unicode", " | "),
	new Array(-2, "webrings.htm", "webrings", "")
	) }

for (i=0; i<navs.length; i++) {
	if (page == navs[i][0]) { page = i; break } }

var foot = '<p align="right"><b><a href="' + navs[(page/1 - 1 + navs.length) % navs.length][1] + '" target="_top"><< previous</a>' +
	' &nbsp; &nbsp; <a href="' + navs[(page/1 + 1) % navs.length][1] + '" target="_top">next >></a></b><br>' +
	'<span class="foot"><br>';
for (j=0; j<navs.length; j++)
	if (j==page) foot += '<b>' + navs[j][2] + '</b>' + navs[j][3];
	else foot += '<a href="' + navs[j][1] + '" target="_top">' + navs[j][2] + '</a>' + navs[j][3];
foot += '</span>';
document.write(foot);
	}

/*  The code:
<SCRIPT language="JavaScript" src="navbar.js"></SCRIPT>
<SCRIPT language="JavaScript"><!--
(location.search) ? footer(location.search.substr(1)) : footer(0);
//--></SCRIPT>
<NOSCRIPT><p align="right"><a href="index.html" target="_top">home</a></NOSCRIPT>
*/

function mail(first, second) { location.href="mailto:" + first + "@" + second; }

//-->