$(document).ready(function(){

	/*$("a[rel=gapict-group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'inside',
		'overlayOpacity'	: 0.84,
		'overlayColor'		: '#333',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			//return '<span id="fancybox-title-over">' + title + '</span>';
			//return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
			//return '<span id="fancybox-title-over"><strong>' + title + '</strong><span>' + infoArray[currentIndex + 1] + '<br />&copy;&nbsp;Ника Жук</span></span>';
		}
	});*/


	$("a[rel=gapict-group]").fancybox({
		'padding': 30,
		'transitionIn': 'none',
		'transitionOut': 'none',
		'titlePosition': 'over',
		'overlayOpacity': 0.84,
		'overlayColor': '#333',
		//'titleShow': true,
		//'titlePosition': 'inside'
		//'titleFormat': function(title, currentArray, currentIndex, currentOpts) {
		//	return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		'titleFormat': function(title){
			//return '<span id="fancybox-title-over">' + (title.length ? ' &nbsp; ' + title : '&nbsp;') + '</span>';
			return '<span id="fancybox-title-over">' + (title.length ? title : '&nbsp;') + '</span>';
		}
	});

	$(".lgn").fancybox({
		'titlePosition':	'inside',
		'transitionIn':		'none',
		'transitionOut':	'none',
		'overlayOpacity'	: 0.84,
		'overlayColor'		: '#333',
		'padding':0,
		'showCloseButton': true
	});


});

	/*$(".addfbox").fancybox({
		//'width'				: 340,
		//'height'			: '80%',
		//'autoScale'			: true,
		'autoDimensions'	: true,
		//'scrolling'			 : 'no',	// 'auto', 'yes' or 'no'
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'overlayOpacity'	: 0.3,
		'padding'			: 0,
		'overlayColor'		: '#000',
		'titleShow'			: false,
		'showCloseButton'	: true,
		'type'				: 'ajax'
	});*/
