 var clockID = 0;
 var months = new Array(13);
 months[0] = "Janeiro";
 months[1] = "Fevereiro";
 months[2] = "Mar&ccedil;o";
 months[3] = "Abril";
 months[4] = "Maio";
 months[5] = "Junho";
 months[6] = "Julho";
 months[7] = "Agosto";
 months[8] = "Setembro";
 months[9] = "Outubro";
 months[10] = "Novembro";
 months[11] = "Dezembro";

  function UpdateClock() {
  if (clockID) {
   clearTimeout(clockID);
   clockID = 0;
  }

  var tDate = new Date();
    
  var h = tDate.getHours();
  if (h < 10) {
   h = "0" + h;
  }
    
  
  var m = tDate.getMinutes();
  if (m < 10)
   m = "0" + m;  
    
   
  document.getElementById("theTime").innerHTML = tDate.getDate() + " de " + months[tDate.getMonth()] + " de " + tDate.getFullYear() + " | " + h + "h" + m;
  clockID = setTimeout("UpdateClock()", 1000);
 }
 function StartClock() {
  clockID = setTimeout("UpdateClock()", 500);
 }
 function KillClock() {
  if (clockID) {
   clearTimeout(clockID);
   clockID = 0;
  }
 }

 $(document).ready(
	function()
	{StartClock();}
);

