$(function() {
$('#s1') 
.after('<div id="nav">') 
.cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 0, 
	timeout: 5000, 
    pager:  '#nav' ,
    pagerEvent: 'mouseover',
    after:   onAfter 
});

function onAfter() { 
    $('#output').html("") 
        .append(this.alt); 
}
});