if (parent.location.href == self.location.href)
	{
	window.location.href = '../index.html';
	}

function AA()
	{
	document.write("<body bgcolor='" + Tribute() + "'>");
	}

function copy()
	{
	return("Copyright&nbsp;1999-" + MyYear() + "&nbsp;Wayne&nbsp;Thomas&nbsp;Spies");
	}


function Display1()
	{
	if (document.myForm.Q1[0].checked)
		{
		Sec1.style.display="none";
		Sec2.style.display="none";
		Sec3.style.display="none";
		Sec4.style.display="none";
		}
	else if (document.myForm.Q1[1].checked)
		{
		Sec1.style.display="inline";
		Sec2.style.display="none";
		Sec3.style.display="none";
		Sec4.style.display="none";
		}
	else if (document.myForm.Q1[2].checked)
		{
		Sec1.style.display="none";
		Sec2.style.display="inline";
		Sec3.style.display="none";
		Sec4.style.display="none";
		}
	else if (document.myForm.Q1[3].checked)
		{
		Sec1.style.display="none";
		Sec2.style.display="none";
		Sec3.style.display="inline";
		Sec4.style.display="none";
		}
	else if (document.myForm.Q1[4].checked)
		{
		Sec1.style.display="none";
		Sec2.style.display="none";
		Sec3.style.display="none";
		Sec4.style.display="inline";
		}
	}

function clearIt()
	{
	document.myForm.Q1[0].checked="True";
	Display1();
	}

var j=1;
function hideMe()
	{
	if(j==1)
		{
		myThought.style.display="none";
		myNonThought.style.display="inline";
		}
	else
		{
		myThought.style.display="inline";
		myNonThought.style.display="none";
		}
	j = Math.abs(j-1);
	}

function MyYear()
	{
	MyYrData = new Date();
	var MyYear = MyYrData.getYear();
	if (MyYear < 2000)
		{
		MyYear=2000 + MyYear - 100;
		}
	return(MyYear);
	}

function MyMonth()		//this returns the month, spelled out
	{
	MyMoData = new Date();
	var MyMonth = MyMoData.getMonth();
	vMonth=new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var MyMonth = vMonth[MyMonth];
	return(MyMonth);
	}

function MyDate()			//this returns the month plus date: e.g., October 11
	{
	MyDateData = new Date();
	var MyDateNum = MyDateData.getDate();
	var MyDate = MyMonth() + " " + MyDateNum;
	return(MyDate);
	}

function MyDay()			//this returns the day plus date: e.g., Sunday, October 11
	{
	MyDayData = new Date();
	var MyDay = MyDayData.getDay();
	vDay=new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var MyDay = vDay[MyDay] + ", " + MyDate();
	return(MyDay);
	}

function playHymn(hymnURL)
	{
	if (navigator.appName == "Netscape")
		{
		document.write('<embed src="../music/sound/' + hymnURL + '" width=145 height=61 alt="Embedded Midi" loop=4 autostart="true">');
		}
	else
		{
		if (navigator.appName == "Microsoft Internet Explorer")
			{
			document.write('<bgsound src="../music/sound/' + hymnURL + '" loop=1>');
			}
		}
	}

function Tribute()
	{
	var mmmm=MyDate();
	var Tribute;
	if(mmmm=='March 17')
		Tribute='green';
	else if(mmmm=='July 4')
		Tribute='red';
	else if(mmmm=='September 11')
		Tribute='black';
	else if(mmmm=='October 31')
		Tribute='#ff9900';
	else if (mmmm=='December 7')
		Tribute='black';
	else if (mmmm=='December 25')
		Tribute='red';
	else Tribute='#6699cc';
	return(Tribute);
	}

function ZZ()
	{
	return("<p class='copy'>"+copy()+"</p>");
	}


