// Clock Script Generated By Maxx Blade's Clock v2.0d
// http://www.maxxblade.co.uk/clock
function tS(){ 
	x=new Date(
		tN().getUTCFullYear(),
		tN().getUTCMonth(),
		tN().getUTCDate(),
		tN().getUTCHours(),
		tN().getUTCMinutes(),
		tN().getUTCSeconds()); 
	x.setTime(x.getTime()+28800000); 
	return x; 
} 

function tN(){ return new Date(); } 
function lZ(x){ return (x>9)?x:'0'+x; } 
function tH(x){ if(x==0){ x=12; } return (x>12)?x-=12:x; } 
function y2(x){ x=(x<500)?x+1900:x; return x } 
function dT(){ 
	//window.status=''+eval(oT)+''; 
	//document.title=''+eval(oT)+''; 
	document.getElementById('tT').innerHTML=eval(oT); 
	document.getElementById('tD').innerHTML=eval(oD); 
	setTimeout('dT()',1000); 
	}
	 
function aP(x){ return (x>11)?'pm':'am'; } 

var dN=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'),
	mN=new Array('January','February','March','April','May','June','July','August','September','October','November','December'),
	oT="tH(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+ ' ' +aP(tS().getHours())",
	oD="dN[tS().getDay()]+' | '+tS().getDate()+' of '+mN[tS().getMonth()]+' | '+y2(tS().getYear())";

//if(!document.all){ window.onload=dT; }else{ dT(); }


   function init() {
       // quit if this function has already been called
       if (arguments.callee.done) return;
 
       // flag this function so we don't do the same thing twice
       arguments.callee.done = true;
 
       // create the "page loaded" message
       //var text = document.createTextNode("Page loaded!");
       //var message = document.getElementById("message");
       //message.appendChild(text);
	   dT();
   };
 
   /* for Mozilla */
   if (document.addEventListener) {
       document.addEventListener("DOMContentLoaded", init, false);
   }
 
   /* for Internet Explorer */
   /*@cc_on @*/
   /*@if (@_win32)
       document.write("<script defer src=../beta/js/ie_onload.js><"+"/script>");
   /*@end @*/
 
   /* for other browsers */
   window.onload = init;


// Put the following HTML on your page where you would like the Clock to be displayed:
// <span id="tP">&nbsp;</span>


