$(document).ready(function(){
  // $("#menu").hide();
  // $("#menu").show("slow");
  // $("#menu").fadeTo("fast", 1);
});

function ZmenIcka(p){
  var x = "#i" + p;
  $(x).toggle("fast");
  return false;
  }

function ZmenJazyk(){
  var a = $("#jhref").text();
  if(a == "Change language to English."){
    $("#cs").toggle("fast");
    $("#en").toggle("slow");
    $("#jhref").text("Změnit jazyk na češtinu.");
  } else {
    $("#en").toggle("fast");
    $("#cs").toggle("slow");
    $("#jhref").text("Change language to English.");
    }
  return false;
  }
  
$(function () {
    var counter = 0,
        divs = $('#at1');
    function showDiv () {
        divs.hide() // hide all divs
            .filter(function (index) { return index == counter % 1; }) // figure out correct div to show
            .show('slow'); // and show it
        counter++;
    }; // function to loop through divs and show correct div
    showDiv(); // show first div    
    setInterval(function () {
        showDiv(); // show next div
    }, 60 * 1000); // do this every x seconds    
});

