var myMooFlowPage = { start: function(){ var mf = new MooFlow($('caseslider'), { startIndex: 2, bgColor: 'transparent', useSlider: true, useAutoPlay: true, useCaption: true, useResize: false, useWindowResize: false, useMouseWheel: false, useKeyInput: true, factor: 180, heightRatio: 0.65 }); } }; window.addEvent('domready', myMooFlowPage.start);