$(document).ready(function () { if ($("#carousel #content").length > 0) { $("#carousel #content").carouFredSel({ prev: "#carousel-left", next: "#carousel-right", scroll: { fx: "scroll", easing: "easeInOutQuint", duration: 1e3, pauseOnHover: "true", queue: false, mousewheel: false, wipe: false, event: "click", conditions: null, onBefore: function (a, b, c, d) { b.find("#carousel-overlay").hide() }, onAfter: function (a, b, c) { if (!b) b = a[1]; b.find("#carousel-overlay").fadeIn("slow") }, onEnd: null} }); if ($("#carousel.team-carousel #content").length > 0) { $("#carousel.team-carousel #content").carouFredSel({ prev: "#carousel-left", next: "#carousel-right", scroll: { fx: "scroll", easing: "easeInOutQuint", duration: 2e3, pauseOnHover: "true", queue: false, mousewheel: false, wipe: false, event: "click", conditions: null, onBefore: function (a, b, c, d) { b.find("#carousel-overlay").hide() }, onAfter: function (a, b, c) { if (!b) b = a[1]; b.find("#carousel-overlay").fadeIn("slow") }, onEnd: null }, auto: { pauseDuration: 15e3} }) } $("#carousel-left").removeClass("hide"); $("#carousel-right").removeClass("hide") } if ($("#mini-player-content").length > 0) { $("#mini-player-content").carouFredSel({ prev: "#mini-player-left", next: "#mini-player-right", scroll: { fx: "scroll", easing: "swing", duration: 900, pauseOnHover: "true", queue: false, mousewheel: false, wipe: false, event: "click", conditions: null} }); $("#mini-player-left").removeClass("hide"); $("#mini-player-right").removeClass("hide") } $("#mini-player .thumb").hover(function () { $("*#mini-player .thumb .overlay, #mini-player .thumb: .thumb-info").fadeIn("slow") }, function () { $(".overlay, .thumb-info").stop(true, true).fadeOut("fast") }); $("#carousel-right,#carousel-left,.cp").click(function () { $("#carousel #content").trigger("pause") }) })
