<!--

function zmen(){
  time = new Date();
  secs = time.getSeconds();
  sec = -1.57 + Math.PI * secs/30;
  mins = time.getMinutes();
   //mins =  secs;  // test
  min = -1.57 + Math.PI * mins/30;
  hr = time.getHours();
   //hr = time.getMinutes()/2.5; // test
  hrs = hr*5; // zarovnani na 120 (24h = dve otocky (2*60))
 
  if(hrs>30 && hrs<=90){
    document.getElementById('satelit').innerHTML = "<img alt='' src='./zakladni_stranka/grafika/slunce.gif' />";
  }else{
    document.getElementById('satelit').innerHTML = "<img alt='' src='./zakladni_stranka/grafika/mesic.gif' />";
  }
 
  usek = -1.57 + Math.PI * (((hrs%60)*100+(5*mins*10/6))/100)/30; // pripocteni minut k hodinam a ...
  var HL=document.getElementById('satelit').style;
  HL.top=(200)*Math.sin(usek)+200+"px";
  HL.left=(400)*Math.cos(usek)+450+"px";
 
  setTimeout("zmen()", 60*1000); 
}

-->
