/*	poems.js
**
**	Summary of variables:
**
**	poemName[n] = name of poem (as displayed on links page)
**	poemPath[n] = file name of poem
**	    where n = array index (0, 1, 2, ... maxPoems-1)
**	maxPoems    = one greater than greatest n
**
*/

var maxPoems = 6;

var poemPath = new Array(maxPoems);
var poemName = new Array(maxPoems);
var poemAuth = new Array(maxPoems);
var poemIndx = new Array(maxPoems);

poemIndx[0] = 0;
poemPath[0] = "begin.html";
poemName[0] = "Her Beginnings";
poemAuth[0] = "Mrs. Smith";

poemIndx[1] = 1;
poemPath[1] = "answer.html";
poemName[1] = "The Answer";
poemAuth[1] = "Mrs. Smith";

poemIndx[2] = 2;
poemPath[2] = "portrait.html";
poemName[2] = "Portrait";
poemAuth[2] = "Mrs. Smith";

poemIndx[3] = 3;
poemPath[3] = "incantation.html";
poemName[3] = "Incantation";
poemAuth[3] = "Mrs. Smith";

poemIndx[4] = 4;
poemPath[4] = "untelling.html";
poemName[4] = "Untelling";
poemAuth[4] = "Mrs. Smith";

poemIndx[5] = 5;
poemPath[5] = "dylan.html";
poemName[5] = "Like a Bob Dylan Hero";
poemAuth[5] = "Mrs. Smith";

var hnavbar = "<table>\
<tr>\
<td width=150 align=left>\
<img src=\"/btns/previous.jpg\" width=145 height=25 border=0 \
onclick=document.location=poemPath[prv] alt=\"Previous\"></td>\
<td width=150 align=center>\
<img src=\"/btns/contents.jpg\" width=145 height=25 border=0 \
onclick=document.location=\"index.html\" alt=\"Contents\"></td>\
<td width=150 align=right>\
<img src=\"/btns/next.jpg\" width=145 height=25 border=0 \
onclick=document.location=poemPath[nxt] alt=\"Next\"></td>\
</tr>\
</table>\
\n";

var prv, nxt;

function navpoem()
	{
	if(pmid == maxPoems - 1)
		nxt = 0;
	else
		nxt = pmid + 1;
	if(pmid == 0)
		prv = maxPoems - 1;
	else
		prv = pmid - 1;
	}
navpoem();
