$(document).ready(function() { 

$('#slideshow').after('<div id="nav">').cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 0,
        pager:  '#nav',
        before: onBefore
    });

        function onBefore() {
        $('#title').html(this.alt);
    }

});
