﻿var myMooFlowPage = {

    start: function() {
        /* MooFlow instance with the Milkbox Viewer */
        var mf = new MooFlow($('MooFlow'), {
            startIndex: 3,
            useSlider: true,
            useCaption: false,
            useMouseWheel: true,
            useKeyInput: true,
            useViewer: true,            
            onClickView: function(obj) {
                Milkbox.showThisImage(obj.href, obj.title + ' - ' + obj.alt);
            }
        });
    }

};

jQuery(document).ready(function() {
    // check if an image gallery is loaded 
    if (jQuery("#MooFlow") != null) {
        myMooFlowPage.start();
    }
});