
<!-- Clock Part 2 - Put Anywhere AFTER Part 1 -->

// Clock Script Generated By Maxx Blade's Clock v2.0d
// http://www.maxxblade.co.uk/clock
function timeSourceuk(){
   x=new Date(timeNow().getUTCFullYear(),timeNow().getUTCMonth(),timeNow().getUTCDate(),timeNow().getUTCHours(),timeNow().getUTCMinutes(),timeNow().getUTCSeconds());
   x.setTime(x.getTime()+daylightSavinguk());
   return x;
}
function timeSourceus(){
   x=new Date(timeNow().getUTCFullYear(),timeNow().getUTCMonth(),timeNow().getUTCDate(),timeNow().getUTCHours(),timeNow().getUTCMinutes(),timeNow().getUTCSeconds());
   x.setTime(x.getTime()+daylightSavingus()-14400000-3600000);
   return x;
}
function timeSourcejp(){
   x=new Date(timeNow().getUTCFullYear(),timeNow().getUTCMonth(),timeNow().getUTCDate(),timeNow().getUTCHours(),timeNow().getUTCMinutes(),timeNow().getUTCSeconds());
   x.setTime(x.getTime()+32400000);
   return x;
}
function timeSourcehk(){
   x=new Date(timeNow().getUTCFullYear(),timeNow().getUTCMonth(),timeNow().getUTCDate(),timeNow().getUTCHours(),timeNow().getUTCMinutes(),timeNow().getUTCSeconds());
   x.setTime(x.getTime()+28800000);
   return x;
}
function timeNow(){
   return new Date();
}
function daylightSavinguk(){
   return ((timeNow().getTime()>findDay(0,2,2,-1).getTime())&&(timeNow().getTime()<findDay(0,9,2,-1).getTime()))?3600000:0;
}
function daylightSavingus(){
   return ((timeNow().getTime()>findDay(0,2,1,1).getTime())&&(timeNow().getTime()<findDay(0,9,1,-1).getTime()))?3600000:0;
}

function findDay(d,m,h,p){
   var week=(p<0)?7*(p+1):7*(p-1),nm=(p<0)?m+1:m,x=new Date(timeNow().getUTCFullYear(),nm,1,h,0,0),dOff=0;
   if(p<0){
      x.setTime(x.getTime()-86400000);
   }
   if(x.getDay()!=d){
      dOff=(x.getDay()<d)?(d-x.getDay()):0-(x.getDay()-d);
      if(p<0&&dOff>0){
         week-=7;
      }
      if(p>0&&dOff<0){
         week+=7;
      }
      x.setTime(x.getTime()+((dOff+week)*86400000));
   }
   return x;
}
function leadingZero(x){
   return (x>9)?x:'0'+x;
}
function twelveHour(x){
   if(x==0){
      x=12;
   }
   return (x>12)?x-=12:x;
}
function fixYear2(x){
   x=(x<500)?x+1900:x;
   return String(x).substring(2,4)
}
function displayTime(){
//   window.status=''+eval(outputTime)+'';
//   document.title=''+eval(outputTime)+'';
   document.getElementById('tPuk').innerHTML=eval(outputTimeuk);
   document.getElementById('tPus').innerHTML=eval(outputTimeus);
   document.getElementById('tPjp').innerHTML=eval(outputTimejp);
   document.getElementById('tPhk').innerHTML=eval(outputTimehk);
   setTimeout('displayTime()',60000);

}
function amPMsymbol(x){
   return (x>11)?'pm':'am';
}
var dayNames=new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
var monthNames=new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var outputTimeuk="' '+twelveHour(timeSourceuk().getHours())+':'+leadingZero(timeSourceuk().getMinutes())+' '+amPMsymbol(timeSourceuk().getHours())";
if(!document.all){ window.onload=displayTime; }else{ displayTime(); }
var outputTimeus="' '+twelveHour(timeSourceus().getHours())+':'+leadingZero(timeSourceus().getMinutes())+' '+amPMsymbol(timeSourceus().getHours())";
if(!document.all){ window.onload=displayTime; }else{ displayTime(); }
var outputTimejp="' '+twelveHour(timeSourcejp().getHours())+':'+leadingZero(timeSourcejp().getMinutes())+' '+amPMsymbol(timeSourcejp().getHours())";
if(!document.all){ window.onload=displayTime; }else{ displayTime(); }
var outputTimehk="' '+twelveHour(timeSourcehk().getHours())+':'+leadingZero(timeSourcehk().getMinutes())+' '+amPMsymbol(timeSourcehk().getHours())";
if(!document.all){ window.onload=displayTime; }else{ displayTime(); }

<!-- Clock Part 2 - Ends Here  -->
