// JavaScript Document

function showMenu(id){
  if(document.getElementById("menu"+id) != null)
    if(document.getElementById("menu"+id).style.display=="none")
      Effect.BlindDown("menu"+id, { duration: 1 });
}

function show_hide(id){
  if (document.getElementById(id).style.display=="none"){
    Effect.BlindDown(id, { duration: 0.3 });
  }
  else{ 
    Effect.BlindUp(id, { duration: 1 });
  }
}

function hideInputText(item, text){
  if(item.value==text){
    item.value="";
    item.style.color="black";
  }         
}

function setMenuHeight(){
  if(winH() != null) document.getElementById("verticalMenu").style.height = (winH() - 130) + "px";
}


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;
}
