var c = 0;
var timer_is_on =0;
var t;
var today = new Date().toTimeString();
function timedCount()
{
if(document.getElementById('headcont') != null)
{
	document.getElementById('headcont').style.backgroundImage = "url(images/newHeader/"+c+".png)";
}
if(document.getElementById('clock') != null)
{
	today = new Date().toDateString();
	document.getElementById('clock').innerHTML = today;
}
c=c+1;
if(c==10)
{
	c=0;
}
t=setTimeout("timedCount()",1000);
}

function doTimer()
{
	
if (!timer_is_on)
  {
  timer_is_on=1;
  timedCount();
  }
}

