$(document).ready(function(){
	
	$('.slideshow').each(function() {	
    var p = this.parentNode;
    $(this).cycle({
		fx:       'fade',
        timeout:   0,
        speed: 700,
		prev:   $('.prv',p),
        next:   $('.nxt',p),
		after:  HollerBack,
    	before: HollerForward
	});

		function HollerBack() {
	        $('.caption', p).html(this.title);
	    }
	
		function HollerForward(curr,next,opts) {
			var count =  $(this).attr('id') + ' / ' + opts.slideCount;
	   			$('.count',p).html(count);
	    }
	
	});
	
});

