// Login recognition 
$(document).ready(function () {
    if ($.cookie('ReferrerID') !== "M100") {
        // user is not on M100
        window.location.replace("https://shop.bt.com/promotions-and-press-releases/products/bt-shareholder?ReferrerID=M100"); // &utm_content=M100
        setTimeout(function () {
            $('.recognitionStageThree').removeClass('d-none');
        }, 2000);
    } else if ($.cookie('ReferrerID') === "M100") {
        if (btInternal.loginData[0].loggedIn.toLowerCase() !== "true") {
            // user is not logged in
            $('.recognitionStageOne').removeClass('d-none');
        } else if (btInternal.loginData[0].loggedIn.toLowerCase() === "true") {
            // user is logged in
            if (btInternal.loginData[0].scheme.toLowerCase() !== "bteshare") {
                // user is not registered for bt shareholder
                $('.recognitionStageTwo').removeClass('d-none');
                // https://shop.bt.com/account/epp/enrol/bteshare
            } else if (btInternal.loginData[0].scheme.toLowerCase() === "bteshare") {
                // user is registered for bt shareholder
                // if ($.cookie('ReferrerID') === "M100") {
                // user is logged in, registered, and on M100
                $('.recognitionStageFour').removeClass('d-none');
                $(".loggedInOffers").each(function (index) {
                    $(this).removeClass('d-none');
                });
            };
        };
    };
});
// Add Full Element Clicks to Articles
/*$( document ).ready(function() {
    $( ".fullArticleClickZone" ).each(function( index ) {
        $( this ).click(function() {
            window.location.href = $( this ).find('a').attr('href');
        });
    });
});*/