function malayalamTab() {
    $(".pills-malayalam-tab").trigger("click")
}

function englishTab() {
    $(".pills-english-tab").trigger("click")
}
if ($(document).ready(function() {
		$(".tribe-events-c-top-bar__datepicker-button-icon-svg").hide();
        var picker_text = $.trim($(".tribe-events-c-top-bar__datepicker-mobile").html());
        if(picker_text=="Now"){
        $(".tribe-events-c-top-bar__datepicker-mobile:first").html("Till")
        }
//     $( "#top_searchbtn" ).prop("disabled", true);
//     $( ".top_search" ).keyup(function() {
//       var top_search = $(".top_search").val();
//       if(top_search!=""){
//         $( "#top_searchbtn").prop("disabled", false);
//       }else{
//         $( "#top_searchbtn").prop("disabled", true);
//       }
//     });
    
//     $( ".mobilesongsearchbtn" ).prop("disabled", true);
//     $( "#songq_mobile" ).keyup(function() {
//       var songq_mobile = $("#songq_mobile").val();
//       if(songq_mobile!=""){
//         $( ".mobilesongsearchbtn" ).prop("disabled", false);
//       }else{
//         $( ".mobilesongsearchbtn" ).prop("disabled", true);
//       }

//     });
// if (window.location.href.indexOf("?q") > -1) {
//     $( ".reset-btn").show();
//     $( ".reset-btn").click(function() { window.location.href = "https://crfgospel.org/malayalam-christian-songs/video-songs"; });
// }
// if (window.location.href.indexOf("?q") > -1) {
//     $( ".reset-btn").show();
//     $( ".reset-btn").prop("disabled", false);
//     $( ".audiosubmit").prop("disabled", false);
//     $( ".reset-btn").click(function() { window.location.href = "https://crfgospel.org/malayalam-christian-songs"; });
// }



        $(".books-wrap .btn-wrap .btn-outline-primary").click(function(e) {
            e.stopImmediatePropagation()
        });
        $("video").map((e, i) => new Plyr(i, {
            ratio: "16:9",
            autopause: !0
        })).get();
        $("video").bind("play", function() {
            $(this).closest(".vdo-poster").find("i").toggleClass("icon-play-icon icon-pause2").toggleClass("text-white"), $("video").not(this).each(function(e, i) {
                i.pause()
            }), $("audio").not(this).each(function(e, i) {
                $(this).closest(".audioplayer").removeClass("audioplayer-playing"), i.pause()
            })
        }), $("audio").bind("play", function() {
            $("audio").not(this).each(function(e, i) {
                $(this).closest(".audioplayer").removeClass("audioplayer-playing"), i.pause()
            }), $("video").not(this).each(function(e, i) {
                i.pause()
            })
        }), $("video").bind("pause", function() {
            $(this).closest(".vdo-poster").find("i").toggleClass("icon-play-icon icon-pause2").toggleClass("text-white")
        }), $("#welcomeMessage").on("hide.bs.modal", function() {
            $("audio").each(function() {
                this.pause(), this.currentTime = 0
            })
        }), $(".vdo-poster .crf-play").click(function() {
            return $(this).closest(".vdo-poster").find("i").toggleClass("icon-play-icon icon-pause2").toggleClass("text-white"), $(this).parent().parent().parent().find(".plyr").hasClass("plyr--paused") ? $(this).parent().parent().parent().find("video").trigger("play") : $(this).parent().parent().parent().find("video").trigger("pause"), !1
        }), $(function() {
            $(".modal").on("hidden.bs.modal", function() {
                $(this).find("video").trigger("pause")
            })
        });
        try {
            $("select").niceSelect()
        } catch (e) {
            console.log(e)
        }! function(e) {
            e(".accordion > li .active").next().slideDown(), e(".accordion a").click(function(i) {
                var t = e(this).closest("li").find(".exp-sec");
                return e(this).closest(".accordion").find(".exp-sec").not(t).slideUp(), e(this).hasClass("active") ? e(this).removeClass("active") : (e(this).closest(".accordion").find("a.active").removeClass("active"), e(this).addClass("active")), t.stop(!1, !0).slideToggle(), i.preventDefault(), !1
            })
        }(jQuery), $(".main-nav ul li:has(ul)").addClass("submenu"), $(".main-nav ul li:has(ul)").append("<i></i>"), $(".main-nav ul i").click(function() {
            return $(this).parent("li").hasClass("open") ? ($(this).parent("li").removeClass("open"), $(this).parent("li").children("ul").slideUp()) : ($(this).parent("li").addClass("open"), $(this).parent("li").children("ul").slideDown()), !1
        }), 13 != key && 3 != key || $("#formPlaylist").submit(), $("#createPlaylist").click(function() {
            return $(".input-playlist-wrap").addClass("d-block"), $(".input-playlist-wrap input").focus(), !1
        }), $(".mob-btn").click(function() {
            return $("body").hasClass("show-menu") ? $("body").removeClass("show-menu") : $("body").addClass("show-menu"), !1
        }), $(".overlay").click(function() {
            return $("body").hasClass("show-menu") && $("body").removeClass("show-menu"), !1
        }), $(".track-title").hasClass("active-track") && $(".active-track").parent("tr").addClass("active-row"), $(window).width() < 768 && ($(".crf-fixed-bottom-player .track-title-text img, .crf-fixed-bottom-player .track-title-text div h3").click(function() {
            return $(".crf-fixed-bottom-player").addClass("expanded-mob"), $(".img-title-wrap").removeClass("col-7"), $(".slider-bar").addClass("d-flex"), $(".track-title-text div p").addClass("d-block"), $(".exp-album").removeClass("d-none"), $(".btn-wrap").removeClass("col-5"), $(".exp-album").addClass("d-flex"), !1
        }), $(".crf-fixed-bottom-player #collapse-icon").click(function() {
            return $(".crf-fixed-bottom-player").removeClass("expanded-mob"), $(".img-title-wrap").addClass("col-7"), $(".slider-bar").removeClass("d-flex"), $(".track-title-text div p").removeClass("d-block"), $(".btn-wrap").addClass("col-5"), $(".exp-album").addClass("d-none"), $(".exp-album").removeClass("d-flex"), $(".crf-fixed-lyrics").removeClass("h-full"), !1
        })), $(".mobile-calendar .acco").click(function() {
            return $(this).toggleClass("rotate"), $(this).parent().find(".next").slideToggle(), $(this).parent().find(".prev").slideToggle(), $(this).parent().find(".dow").slideToggle(), $(this).parent().find("tbody").slideToggle(), !1
        }), $(".btn-sidebar").click(function() {
            return $(".bx-ttl").toggleClass("invisible", {
                duration: 500
            }), $("#sidebar-left").toggleClass("crf-dash-left-collapse", {
                duration: 500
            }), $("#sidebar-left").parent().find(".crf-dash-right").toggleClass("crf-dash-right-collapse", {
                duration: 500
            }), $(".btn-sidebar").toggleClass("btn-sidebar-collapse"), !1
        }), $(window).width() < 1200 && ($(".bx-ttl").toggleClass("invisible", {
            duration: 500
        }), $("#sidebar-left").addClass("crf-dash-left-collapse"), $(".crf-dash-right").addClass("crf-dash-right-collapse"), $(".btn-sidebar").addClass("btn-sidebar-collapse")), $(".lyrics-icon").click(function() {
            return $(".crf-fixed-lyrics").toggleClass("h-full"), !1
        }), $("#repeat-icon").click(function() {
            var e = document.getElementById("audio");
            return e.paused ? e.play() : e.currentTime = 0, !1
        });
        const e = $(".expand-book-slider"),
            i = $("#book_slider");
        var t;
        e.slick({
            slide: ".item",
            slidesToShow: 1,
            slidesToScroll: 1,
            arrows: !0,
            fade: !1,
            adaptiveHeight: !0,
            infinite: !1,
            useTransform: !0,
            speed: 400,
            cssEase: "cubic-bezier(0.77, 0, 0.18, 1)"
        }), i.on("init", function(e, i) {
            $(this).find(".slick-slide.slick-current").addClass("is-active")
        }).slick({
            slide: ".item",
            focusOnSelect: !1,
            arrows: !1,
            dots: !0,
            infinite: !1,
            slidesToShow: 5,
            centerPadding: "40px",
            slidesToScroll: 1,
            responsive: [{
                breakpoint: 1199,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1,
                    dots: !0
                }
            }, {
                breakpoint: 991,
                settings: {
                    infinite: !0,
                    centerPadding: "60px",
                    slidesToShow: 2,
                    speed: 500,
                    variableWidth: !1,
                    dots: !0
                }
            }, {
                breakpoint: 767,
                settings: {
                    infinite: !0,
                    centerPadding: "60px",
                    slidesToShow: 1,
                    speed: 500,
                    variableWidth: !1,
                    dots: !0
                }
            }, {
                breakpoint: 576,
                settings: {
                    infinite: !0,
                    centerPadding: "30px",
                    slidesToShow: 1,
                    speed: 500,
                    arrows: !1,
                    variableWidth: !1
                }
            }]
        }), e.on("afterChange", function(e, t, a) {
            i.slick("slickGoTo", a), i.find(".slick-slide.is-active").removeClass("is-active"), i.find('.slick-slide[data-slick-index="' + a + '"]').addClass("is-active")
        }), i.on("click", ".slick-slide", function(i) {
            i.preventDefault();
            var t = $(this).data("slick-index");
            return e.slick("slickGoTo", t), $(".book-expand-view").hasClass("open") || $(".book-expand-view").addClass("open"), !1
        }), $("#back-to-screen").click(function() {
            return $("body").removeClass("show-menu"), !1
        }), $("#banner-silder").slick({
            draggable: !1,
            arrows: !1,
            dots: !0,
            infinite: !1,
            slidesToShow: 1,
            slidesToScroll: 1,
            autoplay: !0,
            autoplaySpeed: 3e3,
            speed: 1100,
            fade: !0,
            cssEase: "linear"
        }), $(".testi-monial-slider").slick({
            autoplay: !0,
            autoplaySpeed: 2e3,
            arrows: !0,
            dots: !0,
            infinite: !0,
            slidesToShow: 1,
            slidesToScroll: 1,
            speed: 1e3,
            fade: !0,
            responsive: [{
                breakpoint: 991,
                settings: {
                    arrows: !1,
                    vertical: !1
                }
            }]
        }), $(".home-service-slider").slick({
            arrows: !1,
            autoplay: !0,
            dots: !1,
            infinite: !1,
            slidesToShow: 3,
            slidesToScroll: 3,
            responsive: [{
                breakpoint: 991,
                settings: {
                    slidesToShow: 2,
                    slidesToScroll: 2,
                    speed: 500,
                    variableWidth: !1,
                    arrows: !1,
                    dots: !0
                }
            }, {
                breakpoint: 767,
                settings: {
                    slidesToShow: 1,
                    slidesToScroll: 1,
                    speed: 500,
                    variableWidth: !1,
                    dots: !0
                }
            }]
        }), $(".upcoming-mtng-slider").slick({
            draggable: !1,
            arrows: !1,
            dots: !0,
            infinite: !1,
            slidesToShow: 4,
            slidesToScroll: 1,
            responsive: [{
                breakpoint: 1199,
                settings: {
                    slidesToShow: 3,
                    slidesToScroll: 1
                }
            }, {
                breakpoint: 991,
                settings: {
                    infinite: !0,
                    slidesToShow: 2,
                    speed: 500,
                    variableWidth: !1,
                    arrows: !0
                }
            }, {
                breakpoint: 767,
                settings: {
                    infinite: !0,
                    slidesToShow: 1,
                    speed: 500,
                    variableWidth: !1
                }
            }, {
                breakpoint: 576,
                settings: {
                    infinite: !0,
                    slidesToShow: 1,
                    speed: 500,
                    arrows: !1,
                    variableWidth: !1
                }
            }]
        }), $(".tags").owlCarousel({
            lazyLoad: !0,
            loop: !1,
            margin: 10,
            responsiveClass: !0,
            nav: !0,
            navText: ['<i class="ico-left-open-big" aria-hidden="true"></i>', '<i class="ico-right-open-big" aria-hidden="true"></i>'],
            responsive: {
                0: {
                    items: 2
                },
                600: {
                    items: 3
                },
                1000: {
                    items: 5
                }
            }
        }), t = $(".book-exp-carousel").owlCarousel({
            lazyLoad: !0,
            loop: !1,
            animateOut: "fadeOut",
            margin: 20,
            responsiveClass: !0,
            autoplayTimeout: 7e3,
            smartSpeed: 800,
            nav: !0,
            dots: !1,
            navText: ['<i class="ico-left-open-big" aria-hidden="true"></i>', '<i class="ico-right-open-big" aria-hidden="true"></i>'],
            items: 1
        }), jQuery("#carousel-custom-dots").on("click", ".col-3", function(e) {
            $(".book-thumb").removeClass("active"), $(this).find(".book-thumb").addClass("active");
            var i = $(".col-3").index(this) + 1;
            if ($(window).width() > 1200) var a = 5 * Math.ceil(i / 5) - 1;
            else a = 4 * Math.ceil(i / 4) - 1;
            return $(".book-sec").insertAfter($(".col-3:eq(" + a + ")")), $("html, body").animate({
                scrollTop: ($(window).width() > 1200 ? $(".book-sec").offset().top - 155 :  $(window).scrollTop())
            }, "slow"), t.trigger("to.owl.carousel", [jQuery(this).index(), 300]), $(".book-exp-wrap").addClass("d-block"), !1
        }), t.on("changed.owl.carousel", function(e) {
            var i = e.item.index;
            window.location.hash = i, $(".book-thumb").removeClass("active"), $(".book-thumb").eq(i).addClass("active")
        }), $("#close-popup").click(function() {
            return $(".book-exp-wrap").removeClass("d-block"), $(".book-thumb").removeClass("active"), !1
        }), 
        $(".album-slider").owlCarousel({
            loop: !1,
            nav: !0,
            navText: ['<i class="ico-left-open-big" aria-hidden="true"></i>', '<i class="ico-right-open-big" aria-hidden="true"></i>'],
            responsive: {
                0: {
                    items: 3
                },
                480: {
                    items: 3
                },
                768: {
                    items: 3
                },
                992: {
                    items: 3
                },
                1200: {
                    items: 5
                }
            }
        }).trigger("refresh.owl.carousel"), $("#close-popup").click(function() {
            return $(".book-expand-view").removeClass("open"), !1
        }),  
        $(".iframe-palyer").click(function(e) {
            e.stopPropagation()
        })
    }), function(e, i, t, a) {
        var o = "ontouchstart" in i,
            s = o ? "touchstart" : "mousedown",
            n = o ? "touchmove" : "mousemove",
            l = o ? "touchcancel" : "mouseup",
            r = function(e) {
                var i = Math.floor(e / 3600),
                    t = Math.floor(e % 3600 / 60),
                    a = Math.ceil(e % 3600 % 60);
                return (0 == i ? "" : i > 0 && i.toString().length < 2 ? "0" + i + ":" : i + ":") + (t.toString().length < 2 ? "0" + t : t) + ":" + (a.toString().length < 2 ? "0" + a : a)
            },
            d = function(e) {
                var i = t.createElement("audio");
                return !(!i.canPlayType || !i.canPlayType("audio/" + e.split(".").pop().toLowerCase() + ";").replace(/no/, ""))
            };
        e.fn.audioPlayer = function(i) {
            i = e.extend({
                classPrefix: "audioplayer",
                strPlay: "",
                strPause: "",
                strVolume: ""
            }, i);
            var t = {},
                a = {
                    playPause: "playpause",
                    playing: "playing",
                    time: "time",
                    timeCurrent: "time-current",
                    timeDuration: "time-duration",
                    bar: "bar",
                    barLoaded: "bar-loaded",
                    barPlayed: "bar-played",
                    volume: "volume",
                    volumeButton: "volume-button",
                    volumeAdjust: "volume-adjust",
                    noVolume: "novolume",
                    mute: "mute",
                    mini: "mini"
                };
            for (var c in a) t[c] = i.classPrefix + "-" + a[c];
            return this.each(function() {
                if ("audio" != e(this).prop("tagName").toLowerCase()) return !1;
                var a = e(this),
                    c = a.attr("src"),
                    u = "" === (u = a.get(0).getAttribute("autoplay")) || "autoplay" === u,
                    p = "" === (p = a.get(0).getAttribute("loop")) || "loop" === p,
                    f = !1;
                void 0 === c ? a.find("source").each(function() {
                    if (void 0 !== (c = e(this).attr("src")) && d(c)) return f = !0, !1
                }) : d(c) && (f = !0);
                var h = e('<div class="' + i.classPrefix + '">' + (f ? e("<div>").append(a.eq(0).clone()).html() : '<embed src="' + c + '" width="0" height="0" volume="100" autostart="' + u.toString() + '" loop="' + p.toString() + '" />') + '<div class="' + t.playPause + '" title="' + i.strPlay + '"><a href="#">' + i.strPlay + "</a></div></div>"),
                    m = (m = f ? h.find("audio") : h.find("embed")).get(0);
                if (f) {
                    h.find("audio").css({
                        width: 0,
                        height: 0,
                        visibility: "hidden"
                    }), h.append('<div class="' + t.time + " " + t.timeCurrent + '"></div><div class="' + t.bar + '"><div class="' + t.barLoaded + '"></div><div class="' + t.barPlayed + '"></div></div><div class="' + t.time + " " + t.timeDuration + '"></div><div class="' + t.volume + '"><div class="' + t.volumeButton + '" title="' + i.strVolume + '"><a href="#">' + i.strVolume + '</a></div><div class="' + t.volumeAdjust + '"><div><div></div></div></div></div>');
                    var v = h.find("." + t.bar),
                        $ = h.find("." + t.barPlayed),
                        b = h.find("." + t.barLoaded),
                        g = h.find("." + t.timeCurrent),
                        y = h.find("." + t.timeDuration),
                        w = h.find("." + t.volumeButton),
                        C = h.find("." + t.volumeAdjust + " > div"),
                        k = 0,
                        x = function(e) {
                            theRealEvent = o ? e.originalEvent.touches[0] : e, m.currentTime = Math.round(m.duration * (theRealEvent.pageX - v.offset().left) / v.width())
                        },
                        T = function(e) {
                            theRealEvent = o ? e.originalEvent.touches[0] : e, m.volume = Math.abs((theRealEvent.pageX - C.offset().left) / C.width())
                        },
                        S = setInterval(function() {
                            m.buffered.length > 0 && (b.width(m.buffered.end(0) / m.duration * 100 + "%"), m.buffered.end(0) >= m.duration && clearInterval(S))
                        }, 100),
                        P = m.volume,
                        _ = m.volume = .111;
                    Math.round(1e3 * m.volume) / 1e3 == _ ? m.volume = P : h.addClass(t.noVolume), y.html("&hellip;"), g.text(r(0)), m.addEventListener("loadeddata", function() {
                        y.text(r(m.duration)), C.find("div").width(100 * m.volume + "%"), k = m.volume
                    }), m.addEventListener("timeupdate", function() {
                        g.text(r(m.currentTime)), $.width(m.currentTime / m.duration * 100 + "%")
                    }), m.addEventListener("volumechange", function() {
                        C.find("div").width(100 * m.volume + "%"), m.volume > 0 && h.hasClass(t.mute) && h.removeClass(t.mute), m.volume <= 0 && !h.hasClass(t.mute) && h.addClass(t.mute)
                    }), m.addEventListener("ended", function() {
                        h.removeClass(t.playing)
                    }), v.on(s, function(e) {
                        x(e), v.on(n, function(e) {
                            x(e)
                        })
                    }).on(l, function() {
                        v.unbind(n)
                    }), w.on("click", function() {
                        return h.hasClass(t.mute) ? (h.removeClass(t.mute), m.volume = k) : (h.addClass(t.mute), k = m.volume, m.volume = 0), !1
                    }), C.on(s, function(e) {
                        T(e), C.on(n, function(e) {
                            T(e)
                        })
                    }).on(l, function() {
                        C.unbind(n)
                    })
                } else h.addClass(t.mini);
                u && h.addClass(t.playing), h.find("." + t.playPause).on("click", function() {
                    return h.hasClass(t.playing) ? (e(this).attr("title", i.strPlay).find("a").html(i.strPlay), h.removeClass(t.playing), f ? m.pause() : m.Stop()) : (e(this).attr("title", i.strPause).find("a").html(i.strPause), h.addClass(t.playing), f ? m.play() : m.Play()), !1
                }), a.replaceWith(h)
            }), this
        }
    }($, window, document), $(document).ready(function() {
        var e;
        $(".video-btn").click(function() {
            return e = $(this).data("src"), !1
        }), $("#video-popup").on("shown.bs.modal", function(i) {
            $("#video").attr("src", e + "?autoplay=1&amp;modestbranding=1&amp;showinfo=0")
        }), $("#myModal").on("hide.bs.modal", function(i) {
            $("#video").attr("src", e)
        })
    }), $(".chat-bubble__icon").length > 0) {
    var colors = ["#B6A0FF", "#88C3FF", "#D5C5A2", "#ffa0a0", "#58d883", "#6358d8", "#bbd858"];
    $.each($(".chat-bubble__icon span"), function() {
        var e = colors[Math.floor(Math.random() * colors.length)];
        $(this).css("background-color", e)
    })
}

function open_view_details(e) {
    e = $(e);
    var i = $(e).data("id"),
        t = $(e).data("location"),
        a = $(e).data("cat");
    if ("" != i) {
        let e = new FormData;
        e.append("item_id", i), e.append("location", t), e.append("cat", a), jQuery.ajax({
            type: "POST",
            processData: !1,
            contentType: !1,
            url: global_crf.template_dir + "/includes/user/songs_details.php",
            mimeType: "multipart/form-data",
            data: e,
            success: function(e) {
                "" != e && ($("#song_info_tray").html(e), $("#songInfo").modal("show"))
            }
        })
    }
}
$(document).ready(function() {
    $("#sharebtn,.sharebtntv").click(function() {
        return $("body").append('<input id="copyURL" type="text" value="" />'), $("#copyURL").val($(this).attr("data-url")).select(), document.execCommand("copy"), $("#copyURL").remove(), $("div.success").html("URL copied"), $("div.success").fadeIn(300).delay(1500).fadeOut(400), !1
    })
});
try {
    $(".inputDate").datepicker({
        format: "mm-dd-yyyy",
        endDate: "+0d",
        templates: {
            leftArrow: '<i class="ico-left-open"></i>',
            rightArrow: '<i class="ico-right-open"></i>'
        },
        todayHighlight: false,
        maxViewMode: $(window).width() < 765 ? "days" : "months"
    })
} catch (e) {
    console.log(e)
}

function url_redirect(e) {
    var i = $(e).data("href");
    "" != i && null != i && null != i && (window.location.href = i)
}
1 == global_crf.is_front_page && $("audio").audioPlayer({
    classPrefix: "audioplayer",
    strPlay: "",
    strPause: ""
}), $("#success-btn").click(function() {
    $("div.success").fadeIn(300).delay(1500).fadeOut(400)
});
var audio = [];
$("audio").on("play", function(e) {
    audio.push($(this))
}), $("#copy_serach_result").click(function() {
    $("body").append('<input id="copyURL" type="text" value="" />'), $("#copyURL").val(window.location.href), $("#copyURL").select(), document.execCommand("copy"), $("#copyURL").remove(), $("div.success").html("URL copied"), $("div.success").fadeIn(300).delay(1500).fadeOut(400)
});
var contains = function(e) {
        var i = e != e;
        return (i || "function" != typeof Array.prototype.indexOf ? function(e) {
            var t = -1,
                a = -1;
            for (t = 0; t < this.length; t++) {
                var o = this[t];
                if (i && o != o || o === e) {
                    a = t;
                    break
                }
            }
            return a
        } : Array.prototype.indexOf).call(this, e) > -1
    },
    page_IDs = [645, 643, 802, 800, 812, 810],
    current_page = global_crf.page,
    action = global_crf.action;

function countrySelectorInit(e, i) {
    try {
        jQuery("#" + e).countrySelect({}), jQuery("#" + e).countrySelect("selectCountry", i)
    } catch (e) {
        console.log(e)
    }
}
$(function(e) {
    0 == global_crf.user_id && (contains.call(page_IDs, current_page) || 9 == current_page && "download" == action || 9 == current_page && "favourites" == action) && e("#signin_form").modal("show")
}), $(document).ready(function() {
    $(".playallbtn").click(function() {
        $(".play-list-row").length > 0 && $(".play-list-row").first().find(".icon-play").click()
    })
}), countrySelectorInit("country_of_residence", "in"), jQuery(document).ready(function() {
    jQuery(".delay_loader").show()
});

function load_form() {
    global_crf.show_playlist = 1;
}


function getParameterByName(name, url = window.location.href) {
    name = name.replace(/[\[\]]/g, '\\$&');
    var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
        results = regex.exec(url);
    if (!results) return null;
    if (!results[2]) return '';
    return decodeURIComponent(results[2].replace(/\+/g, ' '));
}


if (getParameterByName('playlist') === "true") {
    $("#playlistModal").modal("show");
}



$('.album-wrap .item').click(function() {
    $("body,html").animate(
        {
        scrollTop: $('#plwrap').offset().top - 180,
        },
        1000
    );
});