$(document).ready(function(){
    $('a[href*=#menu]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});
$(document).ready(function(){
    $('a[href*=#program]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});
$(document).ready(function(){
    $('a[href*=#novinky]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});
$(document).ready(function(){
    $('a[href*=#about]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});
$(document).ready(function(){
    $('a[href*=#listek]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});
$(document).ready(function(){
    $('a[href*=#kontakt]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }

    });

});

$(document).ready(function(){
    $('a[href*=#rezervace]').click(function() {
        if (location.pathname.replace(/^\//,") == this.pathname.replace(/^\//,")
        && location.hostname == this.hostname) {
        var $target = $(this.hash);
        $target = $target.length && $target
        || $('[name=' + this.hash.slice(1) +']');
        if ($target.length) {
            var targetOffset = $target.offset().top;
            $('html,body')
            .animate({scrollTop: targetOffset}, 1000);
            return false;
            }
        }
    });
});

$(document).ready(function(){
    $('.rezervace2').click(function() {
            
            var form = $( this );
            
            datum = form.next().text();
           
            id = form.next().next().text();
            $('#koncert_popis').val(datum)
            $('#eventId').val(id)
    });
});


