﻿$(document).ready(function ()
{
    if ($("#ximaImageFlow").length > 0)
    {
        var ximaflow = new ImageFlow();
        ximaflow.init({ ImageFlowID: 'ximaImageFlow',
            reflections: false,
            captions: false,
            imagesM: 0.8,
            imagesHeight: 0.64, // 0.67 ist standart padding-top effekt
            aspectRatio: 1.444, // height des imgeflowcontainers
            xStep: 130,
            imageFocusMax: 2,
            imageFocusM: 1.25, // erstes Bild vergrößern
            // slideshow: true,
            // slideshowSpeed: 4000,
            // slideshowAutoplay: true,
            imageCursor: 'pointer',
            // reflectionP: 0.0, // padding der Bildunterschrift
            // sliderWidth: 14,
            // opacity: true,
            // opacityArray: [10, 8, 4, 3],
            buttons: true,
            onClick: function ()
            {
                $.slimbox($(this).attr("src"));
            }
        });
    }
    // wandelt in einem Download den vollen Dateinamen in den Dateityp
    $(".download a span").each(function (index, value)
    {
        var o = $(this);
        if (o.html().lastIndexOf(".") != -1)
        {
            o.html("(" + o.html().substr(o.html().lastIndexOf(".") + 1));
        }
    });
});
