$(window).bind("load", function() { 
    $("div#frontslideshow").slideView() 
});
		
$(document).ready(function(){
	$('#attachments a').lightbox();
});

$(document).ready(function() {
	$('#frontslideshow').cycle({ 
    	timeout: 5500,
    	fx:    'fade',
    	before: onBefore
	});
});

function onBefore(element) { 
	$('#caption').html("<a href=\"" + this.alt  + "\">" + this.title + "</a>"); 
};