function show_slideshow() {
    var slideshow = $('#slideshow')
    if(slideshow.length > 0) {
        slideshow.show()
        $("#slideshow-content").jqFancyTransitions({
            delay: 2000,
            width:590
        })
    }
}

function init_menu() {
    $('#menu').droppy();
}

function load_content() {
    $('#content').hide()
    $('#content').fadeIn('slow')
}
function gallery() {
    var gallery = $('.gallery a')
    if(gallery.length > 0) {
        gallery.lightBox({
            fixedNavigation:true,
            imageLoading: '/img/loading.gif',
            imageBtnClose: '/img/close.gif',
            imageBtnPrev: '/img/prev.gif',
            imageBtnNext: '/img/next.gif',
            txtImage: "Obrázok",
            txtOf: "z"
        });
    }
}

$(document).ready(
    function(){
        load_content()
        show_slideshow()
        init_menu()
        gallery()
    }
    )
