//LCD Clock script- by javascriptkit.com
//Visit JavaScript Kit (http://javascriptkit.com) for script
//Credit must stay intact for use

var alternate=0
var standardbrowser=!document.all&&!document.getElementById

if (standardbrowser){
document.write('<form name="l"><input type="text" name="t_" size="x-small"></form>');
//document.write('<input type="text" name="l_" size="11">');
//document.write('<input type="text" name="n_" size="11"></form>')
}

function show(){
if (!standardbrowser)
var l_clock=document.getElementById? document.getElementById("l_clock") : document.all.l_clock;
var t_clock=document.getElementById? document.getElementById("t_clock") : document.all.t_clock;
var n_clock=document.getElementById? document.getElementById("n_clock") : document.all.n_clock;

//var p_clock=document.getElementById? document.getElementById("p_clock") : document.all.p_clock;
//var k_clock=document.getElementById? document.getElementById("k_clock") : document.all.k_clock;
//var G_clock=document.getElementById? document.getElementById("G_clock") : document.all.G_clock;
//var G_clock=document.getElementById? document.getElementById("G_clock") : document.all.G_clock;
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var dn="AM"

var T_corr   = 6 ; // Tokio correction time
var G_corr   = -3 ; // GMT   correction time
var NY_corr  = -7 ; // NY    correction time

var G_hours = (hours+G_corr < 0) ? (hours+G_corr +24) : hours+G_corr; // GMT

var t_hours = (hours+T_corr >= 24) ? (hours+T_corr -24) : hours+T_corr;
var k_hours = hours;
var n_hours = (hours+NY_corr < 0) ? (hours+NY_corr +24) : hours+NY_corr;
var p_hours = (hours-1 < 0) ? (hours-1 +24) : hours-1;
var l_hours = (hours-2 < 0) ? (hours-2 +24) : hours-2;

if (hours==12) dn="PM"
//if (hours>12){
//dn="PM"
//hours=hours-12
//}
//!if (hours==0) hours=12
if (hours.toString().length==1) hours="0"+hours;
if (G_hours.toString().length==1) G_hours="0"+G_hours;
if (t_hours.toString().length==1) t_hours="0"+t_hours;
if (k_hours.toString().length==1) k_hours="0"+k_hours;
if (p_hours.toString().length==1) p_hours="0"+p_hours;
if (n_hours.toString().length==1) n_hours="0"+n_hours;
if (l_hours.toString().length==1) l_hours="0"+l_hours;
if (minutes<=9) minutes="0"+minutes;

if (standardbrowser){
  if (alternate==0) document.l.l_.value=(l_hours)+" : "+minutes+" "//+dn
else
  document.l.l_.value=(hours)+"   "+minutes+" "//+dn
}
else{
if (alternate==0){
G_clock.innerHTML=(G_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
l_clock.innerHTML=(l_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
t_clock.innerHTML=(t_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
k_clock.innerHTML=(k_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
p_clock.innerHTML=(p_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
n_clock.innerHTML=(n_hours)+"<font color='#00CC00'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
}
else{
G_clock.innerHTML=(G_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>"
l_clock.innerHTML=(l_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>"
t_clock.innerHTML=(t_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
k_clock.innerHTML=(k_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
p_clock.innerHTML=(p_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";
n_clock.innerHTML=(n_hours)+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"/*+dn*/+"</sup>";

 }
}
alternate=(alternate==0)? 1 : 0
setTimeout("show()",1000)
};
//window.onload=show();
show();
