

// Copyright 2004 The Cyber Hymnal

var alternateName;
var dates;
var firstLetter;
var primaryName;

//------------------------------------------------
function arrows()
{
	document.write('<p class="navigation"><a href="' + prevPage + '" onMouseOver="return stat(\'Go to previous page\')" onMouseOut="return erase()"><img src="' + root + '/img/a/ar-left.gif" title="Back" width="30" height="30"></a> ')
	document.write(' <a href="' + root   + 'bio/bio.htm?' + firstLetter + '" onMouseOver="return stat(\'Go to biographical index\')" onMouseOut="return erase()"><img src="' + root + 'img/a/ar-up.gif" title="People" width="30" height="30" /></a>')
	document.write(' <a href="' + root   + 'index.htm#lk" onMouseOver="return stat(\'Go to the Cyber Hymnal home page\')" onMouseOut="return erase()"><img src="' + root + 'img/a/ar-toc.gif" title="Home" width="30" height="30" /></a>')
	document.write(' <a href="' + nextPage + '" onMouseOver="return stat(\'Go to next page\')" onMouseOut="return erase()"><img src="' + root + '/img/a/ar-right.gif" border="0" title="Next" width="30" height="30"></a></p>')
}
//------------------------------------------------
// PURPOSE Draw end of the page
// ENTRY	Init() has been called

function end()
{
	document.write('<center><iframe src="http://nethymnal.org/js/ads2.htm" width=800 height=150 frameborder=0></iframe></center>')
	document.write('<hr>')
	arrows()
	document.write('<p class="footer" title="When this page last changed">' + document.lastModified + '</p>');

}
//------------------------------------------------
// PURPOSE Solicit help
// ENTRY	Init() has been called

function help()
{
	document.write('<p>If you can help with any of these items')
	mail()
	document.write('</p>')
}
//------------------------------------------------
function init
(
	level	 	, 	// Number of levels below site root
	primary	, 	// Name by which individual is primarily known
	alternate, 	// Alternate name (empty sring if none)
	letter		, 	// First letter of individual's surname
	years	 	, 	// Birth & death years
	prev	 	, 	// Previous page's URL (starting at first level below bio directory), without extension, which must be .htm
	next			// Next page's URL (starting at first level below bio directory), without extension, which must be .htm
)
// PURPOSE		Page initialization
{
	if (argsOk(arguments.callee, true, true))
	{
		dates = years
		primaryName  = primary
		alternateName = alternate
		firstLetter  = letter
		root = ""
		for (var i = 0; i < level; ++i)
	  		root += "../"
		document.write('<title>' + primary + '</title>')
		prevPage = root + "bio/" + prev  + ".htm"
		nextPage = root + "bio/" + next  + ".htm"
		document.write('<link href="' + root + 'sty/tch-bio.css" rel="stylesheet" type="text/css" />')
	}
}
//------------------------------------------------
function onLoad()
{
	par = new String(window.parent.location);
	if (par.indexOf("bio.htm") == -1)
		location = "bio.htm?" + suffix
}
//------------------------------------------------
// PURPOSE Start drawing at the top of the page
// ENTRY	Init() has been called

function start()
{
	arrows()
	document.write('<h1>' + primaryName + '</h1>')
	if (alternateName.length > 0)
		document.write('<h3>' + alternateName + '</h3>')
	document.write('<h2>' + dates + '</h2>')
	document.write('<hr>')
	document.write('<center><iframe src="http://nethymnal.org/js/ads1.htm" width=800 height=150 frameborder=0></iframe></center>')

}

