﻿
new ContentFlowAddOn('white', {

    init: function() {
        this.addStylesheet();

    },
    onloadInit: function(flow) {
        this._slideshow_timer = null;

        /* run slideshow */
        flow._startSlideshow = function() {
            var mn = function() {
                this.moveTo('next');
                this._slideshow_stoped = false;
                window.clearTimeout(this._slideshow_timer);
                this._slideshow_timer = window.setTimeout(mn, 3000);
            } .bind(this);
            mn();
        };
    },

    //reflectionColor: "#ffffff", // none, transparent, overlay or hex RGB CSS style #RRGGBB
    ContentFlowConf: {
        onInit: function() {
            this._startSlideshow();
        },
        onclickActiveItem: function(item) {
            window.clearTimeout(this._slideshow_timer);
            window.location.href = $(item.caption).find("a").attr("href");
        },
        onclickInactiveItem: function(item) {
            window.clearTimeout(this._slideshow_timer);
        },        
        reflectionType: "client-side",   // client-side, server-side, none
        reflectionColor: "#ffffff",
        maxItemHeight: 200,
        relativeItemPosition: "top center",
        contentPosition: "top",
        visibleItems: 5

    }

});


