//////////////////////////
// My Moo Flow Page     //
//////////////////////////

var myMooFlow = {};

myMooFlow.initialize =function(divContainer, startIdx) {
	var myMooFlowPage = {

		start: function(){
			/* MooFlow instance with the complete UI and Viewer */
			var mf = new MooFlow($(divContainer), {
                offsetY: -125,
				useSlider: false,
				useAutoPlay: false,
				useCaption: false,
				reflection: 0.00,
				heightRatio: 0.60,
				useResize: true,
				useMouseWheel: true,
				useKeyInput: true,
				useViewer: true,
				factor: 120,
				startIndex: startIdx

			});
							
			mf.attachViewer();			
			
			$$('.loadremote').addEvent('click', function(){
				mf.loadHTML(this.get('href'), this.get('rel'));
				return false;
			});
			
		}
		
	};
	
	window.addEvent('domready', myMooFlowPage.start);
}