var grayimg = new Image();
grayimg.src="_assets/img/core/binaryOff.png";
 
var redimg = new Image();
redimg.src="_assets/img/core/binaryOn.png";
 
function timeit()
{
timenow = new Date();
liteup("h1", Math.floor(timenow.getHours() / 10));
liteup("h2", timenow.getHours() % 10);
liteup("m1", Math.floor(timenow.getMinutes() / 10));
liteup("m2", timenow.getMinutes() % 10);
liteup("s1", Math.floor(timenow.getSeconds() / 10));
liteup("s2", timenow.getSeconds() % 10);
setTimeout("timeit()", 1000);
}
 
function liteup(col, num)
{
if (num % 2 == 1)
eval("document." + col + "1.src = redimg.src");
else
eval("document." + col + "1.src = grayimg.src");
 
if (num == 2 || num == 3 ||num == 6 || num == 7)
eval("document." + col + "2.src = redimg.src");
else
eval("document." + col + "2.src = grayimg.src");
 
if (num <= 7 && num >= 4)
eval("document." + col + "4.src = redimg.src");
else
eval("document." + col + "4.src = grayimg.src");
 
if (num >= 8)
eval("document." + col + "8.src = redimg.src");
else
eval("document." + col + "8.src = grayimg.src");
 
return true;
}
