/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

function slideSwitch() {
    var $active = $('#slideshow DIV.active');

    if ( $active.length == 0 ) $active = $('#slideshow DIV:last');

    // use this to pull the divs in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow DIV:first');

    // uncomment below to pull the divs randomly
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});






 $(document).ready(function() {
 
 $('#gallery a.f').lightBox() //pro fotky ..pusti efekt

//fce show/hide id div
 $("#show1txt").css("display","none"); 
//fce show/hide id div
 $("#show1").click(function () {
      if ($("#show1txt").is(":hidden")) {
        $("#show1txt").slideDown("slow");
      } else {
        $("#show1txt").hide();
      }
    });
//fce show/hide id div
 $("#show2txt").css("display","none"); 
//fce show/hide id div
 $("#show2").click(function () {
      if ($("#show2txt").is(":hidden")) {
        $("#show2txt").slideDown("slow");
      } else {
        $("#show2txt").hide();
      }
    });
//fce show/hide id div
 $("#show3txt").css("display","none"); 
//fce show/hide id div
 $("#show3").click(function () {
      if ($("#show3txt").is(":hidden")) {
        $("#show3txt").slideDown("slow");
      } else {
        $("#show3txt").hide();
      }
    });
//pro otazky FAQ
 $("#faq1txt").css("display","none"); 
//pro otazky FAQ
 $("#faq1").click(function () {
      if ($("#faq1txt").is(":hidden")) {
        $("#faq1txt").slideDown("slow");
      } else {
        $("#faq1txt").hide();
      }
    });
//pro otazky FAQ
 $("#faq2txt").css("display","none"); 
//pro otazky FAQ
 $("#faq2").click(function () {
      if ($("#faq2txt").is(":hidden")) {
        $("#faq2txt").slideDown("slow");
      } else {
        $("#faq2txt").hide();
      }
    });
//pro otazky FAQ
 $("#faq3txt").css("display","none"); 
//pro otazky FAQ
 $("#faq3").click(function () {
      if ($("#faq3txt").is(":hidden")) {
        $("#faq3txt").slideDown("slow");
      } else {
        $("#faq3txt").hide();
      }
    });
//pro otazky FAQ
 $("#faq4txt").css("display","none"); 
//pro otazky FAQ
 $("#faq4").click(function () {
      if ($("#faq4txt").is(":hidden")) {
        $("#faq4txt").slideDown("slow");
      } else {
        $("#faq4txt").hide();
      }
    });

	
 })
 
