var CFSimpleCarousel2 = {


    initSpecialCarousel2: function(id,ivwPrefix) {
        $j(function() {
            $j("#special-carousel-" + id).jcarousel({
            });
            $j("#special-carousel-content-" + id ).children().children(".jcarousel-next").click(function() {
                CFSimpleCarousel2.callIVWPaging();
            });
            $j("#special-carousel-content-" + id ).children().children(".jcarousel-prev").click(function() {
                CFSimpleCarousel2.callIVWPaging();
            });

        });
    },
    
    initMultiPlayerCarousel: function(ivwPrefix) {
        $j(function() {
            $j("#multiplayer-carousel").jcarousel({
                scroll: 4, //,
                maxVisible: 5
            });
            $j("#multiplayer-carousel-content").children().children(
            ".jcarousel-next").click( function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
            $j("#multiplayer-carousel-content").children().children( ".jcarousel-prev").click(function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
           

        });
    },

    initMultiPlayerExbedCarousel: function(ivwPrefix) {
        $j(function() {
            $j("#multiplayer-carousel").jcarousel({
                scroll: 2, //,
                maxVisible: 3
            });
            $j("#multiplayer-carousel-content").children().children(
            ".jcarousel-next").click( function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
            $j("#multiplayer-carousel-content").children().children( ".jcarousel-prev").click(function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
        });
    },

    /*initUserProfileCarousel: function(ivwPrefix) {
        $j(function() {
            $j("#profile-carousel").jcarousel({
                scroll: 3, 
                maxVisible: 4
            });
            $j("profile-carousel-content").children().children(
            ".jcarousel-next").click( function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
            $j("#profile-carousel-content").children().children( ".jcarousel-prev").click(function() {
                CFSimpleCarousel2.callIVWPaging(ivwPrefix);
            });
        });
    },
*/
    
    
    callIVWPaging: function(ivwPrefix) {
        var ivwTag;
        if (window._initialIVW) {
            ivwTag = window._initialIVW + '/blaettern';
        }
        else
        {
            if (window.video && window.video.category_ivw_name && ivwPrefix)
            {
                ivwTag = window.video.category_ivw_name + '/' + ivwPrefix + '/blaettern';
            }
            else if (ivwPrefix)
            {
                ivwTag = ivwPrefix +  '/blaettern';
            }
        }

        if (ivwTag) {
            CFGlobal.IVW.reload(ivwTag);
        }
    }



};

