function formatAllTitle(title, currentArray, currentIndex, currentOpts) {
	return '<div id="tip7-title">' + (title && title.length ? '<b>' + title + '</b>' : '' ) + (currentArray.length>1?' (' + (currentIndex + 1) + ' / ' + currentArray.length + ')':'')+'</div>';
}

$(document).ready(function(){

$('#content p img,.vb_vervolg_content p img').each(function(){
	if ($(this).css('float')=='right') {
		$(this).css('padding-right', '0px');
	} else {
		$(this).css('padding-left', '0px');
	}
});

$("#content_container p a").each(function(){
	obj = $(this);
	if (obj.attr('href').substr(-4).toLowerCase()=='.jpg') {
		obj.fancybox({
			'transitionIn'	:	'elastic',
			'transitionOut'	:	'elastic',
			'speedIn'		:	600, 
			'speedOut'		:	200, 
			'titlePosition'	:	'inside',
			'titleFormat'	:	formatAllTitle
		});
	}
});

});
