 function VyznacAkt(akt) {
   var eAktL = document.getElementById('ML' + akt);
   var eAkt = document.getElementById('M' + akt);
   var eAktR = document.getElementById('MR' + akt);
   if( eAktL && eAkt && eAktR ) {
     eAktL.style.backgroundColor = "#f5821f";
     eAktR.style.backgroundColor = "#f5821f";
     MBorder(eAktL,true);
     MBorder(eAkt,true);
     MBorder(eAktR,true);
   }
 }
 
 function MOver(i,akt) {
  if( i == akt ) return;
  var eL = document.getElementById('ML' + i);
  var e = document.getElementById('M' + i);
  var eR = document.getElementById('MR' + i);
  if( eL && e && eR ) {
    eL.style.backgroundColor = "#f7a45d";
    MBorder(eL,true);
    MBorder(e,true);
    eR.style.backgroundColor = "#f7a45d";
    MBorder(eR,true);
  }
 }
 
 function MOut(i,akt) {
  if( i == akt ) return;
  var eL = document.getElementById('ML' + i);
  var e = document.getElementById('M' + i);
  var eR = document.getElementById('MR' + i);
  if( i == akt ) VyznacAkt(akt);
  else
  if( eL && e && eR ) {
    eL.style.backgroundColor = "#0066b3";
    MBorder(eL,false);
    MBorder(e,false);
    eR.style.backgroundColor = "#0066b3";
    MBorder(eR,false);
  }
 }
 
 function MBorder( el, show ) {
  if( show ) {
    color = "#f7a45d";
    el.style.cursor = "pointer"; 
  } else {
    color = "#0066b3";
    el.style.cursor = "default"; 
  }
  el.style.borderTopColor = color;
  el.style.borderTopSty

}
