<!-- 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() {
    width = parseInt(jQuery(this).width());
    if (width < 641) {
    } else {
        jQuery('td pre code').each(function() {
            eval(jQuery(this).text());
        });
        jQuery('.slideshow').cycle({
            fx:     'fade', 
            speed:  'slow', 
            timeout: 0, 
            next:   '#nextg', 
            prev:   '#prevg',
            after:   onAfter
        });
	}
}
