function onAfter() {
    $('div.overlay').bind('click', $(this).attr('onclick'));
}

$(document).ready(function() {
	$("div.slideshow").parent().show();

	$('div.slideshow').cycle({
		fx: 'fade',
		timeout: 3000,
		random:	1,
        after: onAfter
	});
});

