$(function() {
    $('#fotoContainer').before('<div id="Blok"><span class="OverlayText">' + this.alt + '</span></div> <div id="Buttons">').cycle({
        fx:     'fade',
        speed:  '700',
        timeout: 4000,
        pager:  '#Buttons',

        pagerAnchorBuilder: function(idx, slide) { 
            return '<a href="#"><span class="B' + ( idx + 1 ) + '">' + ( idx + 1 ) + '</span></a>'; 
        },
        
        before: function() { $("#Blok SPAN").html( this.alt ); }
    });
});
