// author: PablO

function aEL(o,t,f,b,x){return(o.addEventListener)?o.addEventListener(t,f,b||false):(o.attachEvent)?o.attachEvent('on'+t,f):!1}

function showTime(t){with(new Date()){document.getElementById('hour').innerHTML=((t=getHours())>9?'':'0')+t+':'+((t=getMinutes())>9?'':'0')+t+':'+((t=getSeconds())>9?'':'0')+t}}

aEL(window,'load',function(){setInterval(showTime,1000)})
