$(function() {
    $(".lavaLamp").lavaLamp({
        fx: "backout", speed: 700
    });
    $('#slideshow').cycle({
        fx: 'fade',
        timeout: 4000,
        speed: 1500,
        delay: 2000
    });
    $("a[rel=shadowbox]").fancybox({
        'titlePosition'     : 'over',
        'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });

    $("a[rel=lightbox]").fancybox({
        'titlePosition'     : 'over',
        'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
            return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
        }
    });
});
