/**
 * deanoj fading image transition
 * 4th May 2010
 */
 
$(function () {

	$('#maxImage').hide();
	
	var im = $('#slideshow div.ct').css({'width':'100%','padding-bottom':'50px'}),
		total = im.length,
		current = 1;
	
	$('#slideshow div.ct img').css({'margin':'auto'});

	$('#slideshow').appendTo('#picturecontainer').cycle({
		fx: 'fade',
		timeout: 0,
		next: 'div.port-right a.bullet-right2',
		prev: 'div.port-right a.bullet-left2',
		prevNextClick: function(isNext, zeroBasedSlideIndex, slideElement) {
			$('#count').html((zeroBasedSlideIndex + 1) + ' / '+total);
		}
	}).show();
});
