$(function() {
	$('a.lightbox').lightBox(); // Select all links with lightbox class
});

$(function() {
    $('#nav').droppy({speed: 333});
  });

jQuery.fn.cycle.defaults.timeout = 6000;
jQuery(function() {
    // run the code in the markup!
    jQuery('table pre code').not('#skip,#skip2').each(function() {
        eval($(this).text());
    });
    
    jQuery('#s2').before('<div id="navegacao" class="navegacao">').cycle({
        fx:     'scrollLeft',
        speed:  800,
        timeout: 8000,
        pager:  '#navegacao'
    });
});

function onBefore() {
    $('#output').html("Scrolling image:<br>" + this.src);
    //window.console.log(  $(this).parent().children().index(this) );
}
function onAfter() {
    $('#output').html("Scroll complete for:<br>" + this.src)
        .append('<h3>' + this.alt + '</h3>');
}