<!-- see also to add tabs: http://jquery.malsup.com/cycle/pager11.html -->
function onAfter(curr, next, opts) {
    var index = opts.currSlide;
    jQuery('#prevg')[index == 0 ? 'hide' : 'show']();
    jQuery('#nextg')[index == opts.slideCount - 1 ? 'hide' : 'show']();
}
function galleryShow() {
    jQuery('td pre code').each(function() {
        eval(jQuery(this).text());
    });
    jQuery('.slideshow').cycle({
        fx:     'fade', 
		speedIn:  2000,
        autostop:      1,
        autostopCount: 1,
        next:   '#nextg', 
        prev:   '#prevg'
	});
}
