var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var last="A.M."
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	last="P.M."
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(hours) >12) {last="PM"}
	if (eval(hours) <12) {last="AM"}
	if (eval(hours) >12)	{hours=hours-12}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}

	thistime = hours+":"+minutes+":"+seconds+" "+last
		
	if (document.all) {
		for (i=0;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=0;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
window.onload=clockon
		

function writedate()	{
var months=new
Array(13); 
months[1]="January"; 
months[2]="February"; 
months[3]="March";
months[4]="April"; 
months[5]="May"; 
months[6]="June"; 
months[7]="July";
months[8]="August";
months[9]="September"; 
months[10]="Octocber"; 
months[11]="November";
months[12]="December"; 

var time=new Date(); 
var lmonth=months[time.getMonth() + 1]; 
var date=time.getDate(); 
var year=time.getYear(); 
if (year < 2000) year = year + 1900; 
document.write("&copy; Copyright Dan Hall, All Rights Reserved, &nbsp;&nbsp;" + lmonth + " " + date + ", " + year);
}

function toggle(e) {
if (e.style.display == "none") {
e.style.display = "block";
} else {
e.style.display = "none";
}
}


function showPic (whichpic) {
 if (document.getElementById) {
  document.getElementById('box')
  .src = whichpic.href;
  if (whichpic.title) {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.title;
  } else {
   document.getElementById('desc')
  .childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
  }
  return false;
 } else {
  return true;
 }
}

function toggle(e)
{

if (document.getElementById)
{
var style2 = document.getElementById(e).style;
style2.display = "block";
}

else if (document.all)
{
var style2 = document.all[e].style;
style2.display = "block";
}

else if (document.layers)
{
var style2 = document.layers[e].style;
style2.display = "block";
}
}

function toggle2(e)
{

if (document.getElementById)
{
var style2 = document.getElementById(e).style;
style2.display = "none";
}

else if (document.all)
{
var style2 = document.all[e].style;
style2.display = "none";
}

else if (document.layers)
{
var style2 = document.layers[e].style;
style2.display = "none";
}
}