var timestamp=document.getElementById("navigation").getElementsByTagName("div").item(0);var leadingZero=function(i)
{return(i<10?'0'+i:i);},time=function()
{var date=new Date();var hours=date.getHours(),minutes=date.getMinutes(),seconds=date.getSeconds(),ampm="am";if(hours>11){ampm="pm";}
if(hours>12){hours-=12;}
if(!hours){hours=12;}
timestamp.removeChild(timestamp.firstChild);timestamp.appendChild(document.createTextNode(leadingZero(hours)+':'+leadingZero(minutes)+':'+leadingZero(seconds)+ampm));var header=document.getElementById("header");if((hours>6&&hours!=12&&ampm=="pm")||((hours<=6||hours==12)&&ampm=="am")){header.style.backgroundPosition="right -150px";}
else{header.style.backgroundPosition="right 0";}
setTimeout(time,1000);};time();