<!-- // Start script to handle common things

var strHomePage = "Unity in the Seven Hills";
var strDivider = "<img src='images/div.gif' class='divide' />";

// Setup Menu Bar and write
function MenuSet()
{
	/* !!!! IMPORTANT !!!!
	Change this value if adding or deleteing a Menu Bar item.
	Adjust the following two list arrays to reflect any changes. */
	var vMenuLen = 5; // Number of Menu Bar items

	// List of page titles
	var strPageTitle = new Array(vMenuLen + 2);
		strPageTitle[0] = "Home";
		strPageTitle[1] = strHomePage;
		strPageTitle[2] = "About Us";
		strPageTitle[3] = "Announcements";
		strPageTitle[4] = "Newsletter";
		strPageTitle[5] = "Special Thoughts";
		strPageTitle[6] = "Unity Links";

	// List of page URLs
	var strPageURL = new Array(vMenuLen + 2);
		strPageURL[0] = null;
		strPageURL[1] = "index.htm";
		strPageURL[2] = "about.htm";
		strPageURL[3] = "announce.htm";
		strPageURL[4] = "news.htm";
		strPageURL[5] = "spec-tht.htm";
		strPageURL[6] = "uniweb.htm";

	var vNdex = 0;						// Indexing number
	var strMnuDiv = "<span class='divise'> | </span>";	// String to write menu item divider
	var strMenuLabel;					// Menu item string

	// Begin writing Menu Bar
	document.write("<div class='txrt'>" + strMnuDiv);

	// Compute & write the Menu Bar
	for (i=1; i<=vMenuLen; i=i+1)
	{
		// Determine the active page and set vNdex to skip when the Menu Bar is computed
		if (strPageTitle[i] == document.title) vNdex = i + 1;
		else vNdex = vNdex + 1;

		if (vNdex == 1) strMenuLabel = strPageTitle[0];
		else strMenuLabel = strPageTitle[vNdex];

		// Write Menu Bar Item
		document.write("<a href='" + strPageURL[vNdex] + "' class='lien'>");
		document.write(strMenuLabel + "</a>" + strMnuDiv);

		// Close Menu Bar & put in divider
		if (i == vMenuLen) document.write("</div>");
	}
}

// Page header write
function header()
{
	if (strHomePage == document.title)
		document.write("<img src='images/unin7logo.gif' width='375' height='82' alt='Logo' style='margin-left: 5px'>");
	else
		document.write("<div class='head'>" + document.title + "</div>");
}

// Common page footer write
function footer()
{
	var fred = document.lastModified;
	var cnt = (fred.indexOf(",",0)) + 1;
	fred = fred.slice(cnt);

	document.write("<table width='98%' class='foot'><tr><td>Please email your comments about this site to the <a href='mailto:webmaster@unityinthesevenhills.org'>WebMaster</a>.<br />All content on this site not claimed by others is Copyrighted&copy; by Unity in the Seven Hills, 2009.</td><td class='txrt'>Page Last Updated:<br />" + fred + "</td></tr></table>");
}

// Show map in pop up window
function ShowMap()
{
	window.open('images/map.jpg','','status=0,toolbar=0,menubar=0,location=0,resizable=1,height=470,width=570');
}

// end script -->