var nextTime,timeOut;var tzAdjust=60000*(new Date()).getTimezoneOffset();var monthNames=new Array("January","February","March","April","May","June","July","August","September","October","November","December");function padZero(num){return((num<10)?"0":"")+num;}
function serverTime(currentTime,containerId){var d=new Date();d.setTime(1000*currentTime+tzAdjust);var dayOfWeek=d.getDay();var monthIndex=d.getMonth();var dayOfMonth=padZero(d.getDate());var fullYear=d.getFullYear();var hours=padZero(d.getHours());var minutes=padZero(d.getMinutes());var seconds=padZero(d.getSeconds());var content=monthNames[monthIndex]+" "+dayOfMonth+", "+
fullYear+" IST "+hours+":"+minutes+":"+seconds;document.getElementById(containerId).innerHTML=content;nextTime=currentTime+1;timeOut=setTimeout(function(){serverTime(nextTime,containerId)},1000);}
function showTitle(id){if(document.getElementById(id))window.status=document.getElementById(id).title;}
function customizePage(){ 
makeLinkNew('mainside1');
//makeLinkNew('mainside3');makeLinkNew('mainside4');
makeLinkNew('mainside6');makeLinkNew('mainside7');makeLinkNew('mainside10');
makeLinkNew('link111');makeLinkNew('link112');makeLinkNew('link114');
//makeLinkNew('link214');makeLinkNew('link311');makeLinkNew('link411');makeLinkNew('link412');
makeLinkNew('link612');makeLinkNew('link712');makeLinkNew('link716');makeLinkNew('link717');makeLinkNew('link718');makeLinkNew('link1011');makeLinkNew('link1012');makeLinkNew('link1013');setTitle('link911','Institute of Electrical and Electronics Engineers');setTitle('link711','BMS Libre User Group');return true;}
function makeLinkNew(id){if(document.getElementById(id))document.getElementById(id).className='new';}
function makeNoLink(id){if(document.getElementById(id))document.getElementById(id).className='nolink';}
function setTitle(id,title){if(document.getElementById(id))document.getElementById(id).title=title;}
function setContent(id,content){if(document.getElementById(id))document.getElementById(id).content.innerHTML=content;}
