// Clock variables
    var clockDir, clockImg;
    var clockOn, clockId;


    // Float variables
    var lay;
    var winW, winH, winXOff, winYOff;
    var imgW, imgH, imgXPad, imgYPad;
    var zIndex;

	    // Start clock
    function startClock() {
//Change this var to what you want to countdown to.

	    var targetdate = new Date("June 30, 2006 00:00:00");
		var now = new Date();

		var difference = parseInt(((targetdate.getTime() - now.getTime()) / 1000) + .999);
		var s = difference % 60;

		difference = parseInt(difference / 60);
		var m  = difference % 60;

		difference = parseInt((difference / 60) + .999);
		var h  = difference % 24;

		difference = parseInt( difference / 24);
		var d  = difference;

		
      d=(d>=100?""+d:"0"+d);    
      d=(d>=10?""+d:"0"+d);
      h=(h>=10?""+h:"0"+h);
      m=(m>=10?""+m:"0"+m);
      s=(s>=10?""+s:"0"+s);
     
	  var d1 = Math.floor(Math.random() * 10);	
	  var d2 = Math.floor(Math.random() * 10);	
	  var d3 = Math.floor(Math.random() * 10);	
	  var h1 = Math.floor(Math.random() * 10);	
	  var h2 = Math.floor(Math.random() * 10);	
	  var m1 = Math.floor(Math.random() * 10);	
	  var m2 = Math.floor(Math.random() * 10);	
	  var s1 = Math.floor(Math.random() * 10);	
	  var s2 = Math.floor(Math.random() * 10);	
	  
	  
      window.document.D1.src=clockImg[d1].src;
      window.document.D2.src=clockImg[d2].src;
      window.document.D3.src=clockImg[d3].src;
	  window.document.H1.src=clockImg[h1].src;
      window.document.H2.src=clockImg[h2].src;
      window.document.M1.src=clockImg[m1].src;
      window.document.M2.src=clockImg[m2].src;
      window.document.S1.src=clockImg[s1].src;
      window.document.S2.src=clockImg[s2].src;
  
	  
      // Set next update
      clockId=setTimeout("startClock()", 1000);
      clockOn=true;
    }

    // Stop clock
    function stopClock() {
      if (clockOn) {
        clearTimeout(clockId);
        clockOn=false;
      }
    }

    // Init Clock
    function initclock() {
    // Initialise clock variables
	//ClockDir tells where the number images are.
      clockDir="/hecatomb/images/";

      clockImg=new Array();
      for (var i=0; i<10; i++) {
        clockImg[i] = new Image();
        clockImg[i].src=clockDir+"xclock"+i+"z.gif";
      }
      clockOn=false;
      clockId=null;

      // Start clock
      stopClock();
      startClock();

    }
 
 