$.fn.cycle.defaults.timeout = 6000;
$(function() {
    // run the code in the markup!
    $('table pre code').not('#skip,#skip2').each(function() {
        eval($(this).text());
    });
 
    $('#s6').cycle({ 
    fx:     'scrollUp', 
    timeout: 6000, 
    delay:  -4000 
});

  $('#s4').before('<div id="nav" class="nav">').cycle({
        fx:     'turnDown',
        speed:  'fast',
        timeout: 0,
        pager:  '#nav'
    });
    
    $('#s5').cycle({
    fx:     'scrollLeft',
    timeout: 5000,
    before:  onBefore,
    after:   onAfter
 });
 
 
});

function onBefore() {
    $('#output').html("Wczytywanie....");
    //window.console.log(  $(this).parent().children().index(this) );
}
function onAfter() {
    $('#output').html("Informacje: ")
        .append('' + this.alt + '');
}

