var dayarray=new Array("Вс","Пн","Вт","Ср","Чт","Пт","Сб");
var montharray=new Array("янв","фев","март","апр","май","июнь","июль","авг","сен","окт","ноя","дек");

  function extract(h,m){
	if (!document.images){
    return
	}
    if (h<=9)
      {
		  document.images.a.src=c0.src;
       	  document.images.b.src=eval("c"+h+".src");
	  }
    else
      {
		  document.images.a.src=eval("c"+Math.floor(h/10)+".src");
       	  document.images.b.src=eval("c"+(h%10)+".src");
	  }
    if (m<=9)
      {document.images.d.src=c0.src
       document.images.e.src=eval("c"+m+".src")}
    else
      {
		  document.images.d.src=eval("c"+Math.floor(m/10)+".src");
       	  document.images.e.src=eval("c"+(m%10)+".src");
	  }
	}
  function init(){
	  if (!document.images){
       return;
	  }
     var Digital=new Date();
     var hours=Digital.getHours();
     var minutes=Digital.getMinutes();
	 var day=Digital.getDay();
	 var month=Digital.getMonth();
	 var daym=Digital.getDate();
     extract(hours,minutes);
	 var cdate="<span>"+dayarray[day]+", "+montharray[month]+" "+daym+"</span>";
		document.getElementById('clock').innerHTML=cdate;
     setTimeout("init()",1000);
	 }