
 

function srovnej() {
  a = document.getElementById('left').offsetHeight;
b = document.getElementById('right').offsetHeight;
c = document.getElementById('content').offsetHeight;

if(a>=b && a>c) {vyska=a};
if(b>a  && b>c) {vyska=b};
if(b<=c  && a<=c) {vyska=c};

if(vyska-c>0) {vyska=vyska-c}
else {vyska=0}

vyska = vyska+"px";

document.getElementById('cesta007').style.marginTop = vyska;


}









 
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;
}

function winW() {
   if (window.innerWidth)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientWidth;
   else
      return null;
}

window.onresize = topmargin;




function topmargin() {




srovnej();









}
    
  function imgsrc(kde6,cesta6) {
           document.getElementById(kde6).src= cesta6; 
 }
  


function more() {
  show('homepage');
  show('closehp');
  
}
function mene() {
  hide('homepage');
  hide('closehp');
  
}

    function show(showco) {
              document.getElementById(showco).style.display = "block";    
    }
        function showin(showco) {
              document.getElementById(showco).style.display = "inline";    
    }
    
    
    function hide(hideco) {
              document.getElementById(hideco).style.display = "none";    
    }
        function trida(kde_id,co_trida) {
              document.getElementById(kde_id).className = co_trida;  
    }
    
