jQuery(document).ready(function(){


        // images
        imgs = ["/media/files/e4e5463d8c20253186cc7736746ac563/galerie-v-hlavicce/img6.png", "/media/files/e4e5463d8c20253186cc7736746ac563/galerie-v-hlavicce/img2.png", "/media/files/e4e5463d8c20253186cc7736746ac563/galerie-v-hlavicce/img4.png", "/media/files/e4e5463d8c20253186cc7736746ac563/galerie-v-hlavicce/img3.png"]

        var slider = document.getElementById("slider");
        for (i=0;i<=3;i++) {
           li = document.createElement('li');
           slider.appendChild(li);
           img = document.createElement('img');
           img.setAttribute('src', imgs[i]);
           li.appendChild(img)
        };

        // slider
	jQuery('#slider')
	.anythingSlider({
                easing: "swing",
                autoPlay: false,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not
                startStopped: false,            // If autoPlay is on, this can force it to start stopped
                delay: 6000,                    // How long between slide transitions in AutoPlay mode
                animationTime: 600,            // How long the slide transition takes
                hashTags: false,                // Should links change the hashtag in the URL?
                buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
                pauseOnHover: false,             // If true, and autoPlay is enabled, the show will pause on hover
                startText: "",             // Start text
                stopText: "",               // Stop text
                navigationFormatter: null       // Details at the top of the file on this use (advanced use)
	});
});

