//if (top == self) document.write("<p style='text-align : center'><a href='index.htm' target='_top'>First Tennessee Home</a></p>");
var currdate = new Date();
var curryear = currdate.getYear();
curryear = curryear + 1900;
var oldcolour=-1;
function onMouseOver()
{
	if(event.srcElement.tagName == "A")
	{	oldcolour = event.srcElement.style.color;
		event.srcElement.style.color = "#FF0000";
	}
	window.event.cancelBubble = true;
}
function onMouseOut()
{
	if (oldcolour!=-1)
	{	if(event.srcElement.tagName == "A")
		{event.srcElement.style.color = oldcolour;}
		window.event.cancelBubble = true;
	}
}
function Init()
{
	if (navigator.appName == "Netscape")
	{	document.linkColor = '#0000FF';
		document.vlinkColor = '#800080';
		document.alinkColor = '#FF0000';
	}
	else
	{	document.onmouseout = onMouseOut;
		document.onmouseover = onMouseOver;
	}
}
function WriteCopywright()
{
	document.write("Copyright &copy; 1996-"+curryear+" ACWS Ltd. &amp; Mike Bussey");
	return;
}
function WriteXmas()
{
  if ((currdate.getMonth()==11)&&(currdate.getDate()>15))
  {
  	document.write("<p style='text-align: center; font-size: 20; font-weight: bold; color:red'>")
  	document.write("Seasons Greetings<br>To all our Members and Guests")
  	document.write("</p>");
  }
  else
	  if ((currdate.getMonth()==0)&&(currdate.getDate()<10))
	  {	document.write("<p style='text-align: center; font-size: 20; font-weight: bold; color:green'>Happy New Year<br>To all our Members and Guests</p>");}
  return;
}
function ConvertDate(argDate)
{
  var lsDate = "" + argDate;
  var lsDayMonth = lsDate.substring(0,3) +", "+ lsDate.substring(4,7);
  var dayofweek= argDate.getDate();
  var thisyear = argDate.getYear();
  if (thisyear < 50)   thisyear = thisyear + 2000;
  if (thisyear < 2000) thisyear = thisyear + 1900;
  return(lsDayMonth +" "+ dayofweek+", "+ thisyear + "");
}
function WriteDate()
{
  document.write(ConvertDate(currdate));
   return;
}
function WriteDateLastMod(LastModDefault)
{
  lastmod = document.lastModified;
  lastmoddate = Date.parse(lastmod);
  moddate = new Date(lastmod);
  if(lastmoddate == 0)
	 document.write(LastModDefault);
  else
  	if (navigator.appVersion >= "4")
  	{document.write(ConvertDate(moddate));}
	else
	{document.write(lastmod);}
  return;
}

