function overTHUMB(obj, stav){
  if(stav){
    obj.style.borderBottomColor = "#664745";
    obj.style.borderLeftColor = "#664745";
  }else{
    obj.style.borderColor = "#d1cdab";
  }
}


function leftright(){
  var elemRC = document.getElementById('div_rc');
  var elemLC = document.getElementById('div_lc');
  var elemOBSAH = document.getElementById('div_obsah');
  var w = winH();

  x = elemRC.clientHeight;
  if(elemRC && elemLC && w){

    if(x < elemLC.clientHeight) x = elemLC.clientHeight;
    if(x < w) x = w;
    
    elemRC.style.height = x + "px";
    elemOBSAH.style.height = (x - 138) + "px";
  }

  return;
}

function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return null;
}

