function titleFormatFunc(title, currentArray, currentIndex, currentOpts) {
    var text = (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title;
    return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + text + '</td><td id="fancybox-title-float-right"></td></tr></table>';
}

var fancyconf = {
	'padding'           : 0,
	'transitionIn'      : 'none',
	'transitionOut'     : 'none',
	'type'              : 'swf',
	'changeFade'        : 0,
	'swf'				: { wmode: 'opaque'},
	'title'				: '',
	'cyclic'			: true,
	'titleFormat'		: titleFormatFunc
}

$(function(){
	$('article img').swipe({
		swipeLeft: function() { document.location = $('#next').get(0).href; },
		swipeRight: function() { document.location = $('#prev').get(0).href; }
	});
});
