<script type="text/javascript">
  var timeout = 15;
  function showhideMenu(id)
  {
    var menu = document.getElementById(id);
    if(!menu) return;
    if(!menu.maxHeight){
      menu.style.display = 'block';
      menu.maxHeight = menu.offsetHeight;
      menu.style.height = "0px";
    }
    if(menu.active){
      menu.active = false;
      menu.step = -3;
    }
    else{
      menu.style.display = "block";
      menu.active = true;
      menu.step = 3;
    }
    if(menu.timerId){
      clearInterval(menu.timerId);
    }
    menu.timerId = setInterval("move('"+id+"')", timeout);
  }
  //dalsza część skryptu