// Site-Config

var lastpic = 0;

$(window).load(function () {
/* Anfang Navigation Effekt */

/*    loadEditioProductUI(); */
    $("#nav .hlist li a, .subnav-verticalsimple .lvl2 a").addClass('disabled');
    $("#nav .hlist li a, .subnav-verticalsimple .lvl2 a").mouseover(function () {
        if ($(this).is('.disabled') && $(this).not('.active')) {

            $(this).animate({
                color: '#ffa200'
            }, 200, function () {
                $(this).removeClass('disabled');
            });
        }
    });
    $("#nav .hlist li a, .subnav-verticalsimple .lvl2 a").mouseout(function () {
        if ($(this).not('.disabled') && $(this).not('.active')) {
            $(this).animate({
                color: '#fff'
            }, 200, function () {
                $(this).addClass('disabled');
            });
        }
    });
    /* Ende Navigation Effekt */

    /* Anfang Newsticker/slider */
    /*
    $("#standort_container").scrollable({ circular: true, mousewheel: true, size: 1, next: '.scrollableNext', prev: '.scrollablePrev' }).autoscroll({
        interval: 3000

    });
*/
    // select #flowplanes and make it scrollable. use circular and navigator plugins
/*
    $(".panel_img").scrollable({ circular: true, mousewheel: true, next: '.next', prev: '.prev' }).navigator().autoscroll({
        interval: 4000

    });

    var api = $(".panel_img").data("scrollable");
    var index = 1;
    if (api) {
        api.onBeforeSeek(function () {
            $("#panel_text_" + index).fadeOut("fast");

        });
        api.onSeek(function () {
            index = api.getIndex() + 1;
            $("#panel_text_" + index).fadeIn("fast");
        });
        $("#newsticker_nav a").each(function (intIndex) {
            $(this).text(intIndex + 1);

        });
    }
*/
    /* Ende Newsticker/slider */
    $.editioSite({
        kwicksmenu: false,
        slidingnavigation: false,

        lavalamp: false,

        bookmarklink: true,
        favouriteslink: true,

        sitestretch: false,
        objectToStretch: '#main',
        stretchOverwriteFormCallback: true,

        acmenu: false,
        editioContentToggle: false,
        editioContentToggleSettings: {
            initCollapsed: true,
            initDisplayClass: 'e_toggleitem_initdisplay',
            showevent: 'click',
            hideevent: 'click',
            slideduration: 500
        },

        fancybox: true,

        slideshowplay: true,
        slideshowdelay: 5000,

        xfade: true,
        facebookSDK: true,

        colEqualize: []
    });

});

