      var NZDay = ADay;

      if (NZHours >= 24)
      {
        NZHours = NZHours - 24;
        NZDay++;
        if (NZDay == 7) NZDay = 0;
      }

      function fixNumber(number)
      {
        if (number < 10) 
          return "0" + number;
        else
          return "" + number;
      }

      function updatePointers()
      {
        // Update the time and day
        Seconds++;
        if (Seconds == 60)
        {
          Seconds = 0;
          Minutes++;
          if (Minutes == 60)
          {
            Minutes = 0;
            Hours++;
            if (Hours == 24)
            {
              Hours = 0;
              ADay++;
              if (ADay == 7) ADay = 0;
            }
            NZHours++;
            if (NZHours == 24)
            {
              NZHours = 0;
              NZDay++;
              if (NZDay == 7) NZDay = 0;
            }
          }
        }
	
        secondsPointer.style.rotation = Seconds * 6;
        minutesPointer.style.rotation = Minutes * 6 + Seconds / 10;
        hoursPointer.style.rotation = Hours * 30  + Minutes / 2;

        AClock.innerHTML = fixNumber(Hours) + ":" + fixNumber(Minutes) + ":" + fixNumber(Seconds) + " (" + Days[ADay] + ")";
        NZClock.innerHTML = fixNumber(NZHours) + ":" + fixNumber(Minutes) + ":" + fixNumber(Seconds) + " (" + Days[NZDay] + ")";
      }

      if (document.all&&window.print)
      {
        window.attachEvent("onload", initVMLClock);
        window.attachEvent("onresize", resizeObjects);
      }

      function initVMLClock() 
      {
        resizeObjects();
        updatePointers();
        window.setInterval("updatePointers()", 1000);
      }

      function resizeObjects()
      {
        var size = Math.min(clocksize, clocksize);
        clock.style.pixelWidth = size - 2*(size * 0.045);
        clock.style.pixelHeight = size - 2*(size * 0.045);
        clock.childNodes.item(0).childNodes.item(0).weight = size * 0.01;

        secondsPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.001;
        minutesPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.002;
        hoursPointer.childNodes.item(0).childNodes.item(0).weight = size * 0.004;
      }
