/**
 * ContentFlow
 */
new ContentFlowAddOn ('gallery', {

	ContentFlowConf: {
		maxItemHeight: 0,
		visibleItems: 4,
		relativeItemPosition: "top center",
	   
		calcOpacity: function (relativePosition, side) {
			return 1 - Math.abs(relativePosition) / 10;
		},
	   
		calcSize: function (relativePosition, side) {
			var maxHeight = 100;
			var h = maxHeight - (Math.abs(relativePosition) - 6) / 6 * 110;
			if(Math.abs(relativePosition) > .5) h *= .85;
			var w = h;
			return {width: w, height: h};
		},

		calcCoordinates: function (relativePosition, side) {
			var x = relativePosition * (110 - 25 * Math.abs(relativePosition) / 5) + this.Flow.center.x;
			if(Math.abs(relativePosition) > 4) x += 85 * (Math.abs(relativePosition) - 4) * -side;
			return {x: x, y: 223 - 30 * Math.abs(relativePosition) / 5};
		}
	}
});


var cf = new ContentFlow('contentFlow', {  visibleItems: 5, reflectionType: reflectionType, reflectionHeight: .3, relativeItemPosition: 'top center', startItem: startItem, reflectionColor: '#000000', circularFlow: false, flowSpeedFactor: 1.5});
