/**
 * #######################
 * Functionality for plaza
 * #######################
 */


// Chopless namespace
var CL = CL || {};

CL.Display = CL.Display || {};

CL.Display.settings = CL.Display.settings || {};

CL.Display.settings.fancyBox = {
	iFrame : {
		'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		},
		'type'				: 'iframe',
		'autoScale'			: false,
		'width'				: getWindowDimensions()[0]-105,
		'height'			: getWindowDimensions()[1]-85,
		'scrolling'			: 'no',
		'cyclic'			: true
	}
}
