
var children = document.getElementById('menic').getElementsByTagName('p');
for(var i=0; i<children.length; i++) children[i].style.display = 'none';
var actual = -1;

function nextMenic(){
  actual++;
  if(actual>=children.length) actual = 0;
  for(var i=0; i<children.length; i++)
  children[i].style.display = 'none';
  children[actual].style.display = 'block';
  setTimeout(blik, 20000);
}

function blik(){
  children[actual].style.display = 'none';
  setTimeout(nextMenic, 200);
}

window.onLoad(nextMenic());
