			updateClock();

			function findObj(n, d)
			{
			  var p,i,x;
			  if(!d) d=document;
			  if((p=n.indexOf("?"))>0&&parent.frames.length) {
			  d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
			  }
			  if(!(x=d[n])&&d.all) x=d.all[n];
			  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
			  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
			  if(!x && document.getElementById) x=document.getElementById(n);
			  return x;
			}

			function setTextOfLayer(objName,x,newText)
			{
			  if ((obj=findObj(objName))!=null) with (obj)
			  if (document.layers) {document.write(unescape(newText)); document.close();}
			  else innerHTML = unescape(newText);
			}

			function updateClock()
			{
			    var time_str 	= new Date();
				time_month 		= time_str.getMonth();
				time_date 		= time_str.getDate();
				time_day 		= time_str.getDay();
				time_year 		= time_str.getYear();
				time_hours 		= time_str.getHours();
				time_min 		= time_str.getMinutes();
				time_sec 		= time_str.getSeconds();
				time_meridian	= "am";

				if(time_month == 0) time_month = "Jan"
				if(time_month == 1) time_month = "Feb"
				if(time_month == 2) time_month = "Mar"
				if(time_month == 3) time_month = "Apr"
				if(time_month == 4) time_month = "May"
				if(time_month == 5) time_month = "June"
				if(time_month == 6) time_month = "July"
				if(time_month == 7) time_month = "Aug"
				if(time_month == 8) time_month = "Sept"
				if(time_month == 9) time_month = "Oct"
				if(time_month == 10) time_month = "Nov"
				if(time_month == 11) time_month = "Dec"

				if(time_day == 0) time_day = "Sun"
				if(time_day == 1) time_day = "Mon"
				if(time_day == 2) time_day = "Tues"
				if(time_day == 3) time_day = "Wed"
				if(time_day == 4) time_day = "Thurs"
				if(time_day == 5) time_day = "Fri"
				if(time_day == 6) time_day = "Sat"

// Convert hours to 12hr clock (modify meridian)
				if(time_hours == 12) {time_meridian = "pm"}
				if(time_hours == 13) {time_hours = 1;  time_meridian = "pm"}
				if(time_hours == 14) {time_hours = 2;  time_meridian = "pm"}
				if(time_hours == 15) {time_hours = 3;  time_meridian = "pm"}
				if(time_hours == 16) {time_hours = 4;  time_meridian = "pm"}
				if(time_hours == 17) {time_hours = 5;  time_meridian = "pm"}
				if(time_hours == 18) {time_hours = 6;  time_meridian = "pm"}
				if(time_hours == 19) {time_hours = 7;  time_meridian = "pm"}
				if(time_hours == 20) {time_hours = 8;  time_meridian = "pm"}
				if(time_hours == 21) {time_hours = 9;  time_meridian = "pm"}
				if(time_hours == 22) {time_hours = 10; time_meridian = "pm"}
				if(time_hours == 23) {time_hours = 11; time_meridian = "pm"}
				if(time_hours == 00) {time_hours = 12; time_meridian = "am"}

				time_sec = "" + time_sec
				time_min = "" + time_min
				time_hours = "" + time_hours

				//var time_length = time_sec.length
				if(time_sec.length == 1)
				{
				time_sec = "0" + time_sec;
				}

// Leading Zero's (uncomment for 24hr)
//				if(time_hours.length == 1)
//				{
//				time_hours = "0" + time_hours;
//				}
				if(time_min.length == 1)
				{
				time_min = "0" + time_min;
				}
// 24hrClock Ver
//				setTextOfLayer('clock','',"&nbsp;" + time_day + ", " + time_date + " " + time_month + " " + time_year + " " + time_hours + ":" + time_min + ":" + time_sec);
// 12hrClock Ver
				setTextOfLayer('clock','',"&nbsp;" + time_day + ", " + time_date + " " + time_month + " " + time_year + " " + time_hours + ":" + time_min + ":" + time_sec + time_meridian);
				setTimeout("updateClock()",1000);
			}
