<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th-text="http://www.w3.org/1999/xhtml">
<head>
    <meta name="robots" content="index, follow">
    <meta charset="utf-8"/>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width">
    <meta name="description" content="Jehovah’s Witnesses United: Bible-based publications, and current news. It describes our beliefs and the jwunited movement.">
    <title>Jehovah’s Witnesses United Official Website: jwunited.org</title>
    <link rel="stylesheet" href="/styles/fonts/manrope/stylesheet.css">
    <link rel="stylesheet" href="/javascript/css/home.min.css">
    <link rel="icon"
          type="image/png"
          href="/images/favicon.ico">

<!--    <div class="" th:insert="~{framework/analytics.html :: analytics()}" th:remove="tag"></div>-->
</head>
<body>
<nav class="desktop-nav"><div class="navigation-header-desktop">

    
        
            <div class="header-desktop-left-items" style="border-bottom:1px solid red">
                <a href="/" id="header-logo-container">
                    <img class="main-logo" src="/images/svg/logo.svg" alt=""/>
                    <div class="logo-title">
                        <span class="no-mark">Jehovah&#39;s Witnesses</span><span class="marked"> united</span>
                    </div>
                </a>
            </div>
        
        
    
    <div class="header-desktop-middle-items">

    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/meetings/online-meetings">Online meetings</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/about-social">Social network</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/info/about-wiki">Wiki</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/memorial">Memorial</a></li>
                
            
        
        
    



    
        
            
                
                    <li class="header-btn" style="border-bottom:1px solid green"><a href="/en/about-us/celebrating-kingship">Celebrating 111 ani</a></li>
                
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/mission">About</a></li>
                
            
        
        
    

</div>

    

        
            <div class="header-desktop-right-items" style="border-bottom:1px solid red;">
                <a class="arrow-down js-language-menu" href="javascript:;">English</a>
            </div>
        
        
    


    <div class="desktop-languages">
        
        <li>
            <a href="javascript:;" locale="en" class="language-rectangle selected" onclick="translatePage(this)">
                <div class="specific-locale">English</div>
                <div class="nativeValue">English</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

        <li>
            <a href="javascript:;" locale="ro" class="language-rectangle" onclick="translatePage(this)">
                <div class="specific-locale">Romanian</div>
                <div class="nativeValue">română</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

        <li>
            <a href="javascript:;" locale="hu" class="language-rectangle" onclick="translatePage(this)">
                <div class="specific-locale">Hungarian</div>
                <div class="nativeValue">magyar</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

    </div>
</div></nav>
<nav class="mobile-nav"><div class="navigation-header-mobile">
    <div class="first-row">
        <a class="mobile-header-linkDS" href="/">
            <img class="main-logo" src="/images/v2.png" alt=""/>
            <div>
                <span class="no-mark">Jehovah&#39;s Witnesses</span><span class="marked"> united</span>
            </div>
        </a>
        <div class="mc">
            <div id="mobileSandwichMenu" class="container" onclick="toggleMobileMenu(this)">
                <div class="bar1"></div>
                <div class="bar3"></div>
            </div>
        </div>
    </div>
    <div class="second-row">
        <div class="second-row-items-container">
            

    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/meetings/online-meetings">Online meetings</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/about-social">Social network</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/info/about-wiki">Wiki</a></li>
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/memorial">Memorial</a></li>
                
            
        
        
    



    
        
            
                
                    <li class="header-btn" style="border-bottom:1px solid green"><a href="/en/about-us/celebrating-kingship">Celebrating 111 ani</a></li>
                
                
            
        
        
    



    
        
            
                
                
                    <li class="header-btn" style="border-bottom:1px solid red;"><a href="/en/about-us/mission">About</a></li>
                
            
        
        
    


            <a id="displayLangBtn" class="mo-l-b" onclick="showMobileLanguages()" href="javascript:;"><span class="arrow-down"></span><span>English</span></a>
            <ul class="mobile-languages hidden">
                
        <li>
            <a href="javascript:;" locale="en" class="language-rectangle selected" onclick="translatePage(this)">
                <div class="specific-locale">English</div>
                <div class="nativeValue">English</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

        <li>
            <a href="javascript:;" locale="ro" class="language-rectangle" onclick="translatePage(this)">
                <div class="specific-locale">Romanian</div>
                <div class="nativeValue">română</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

        <li>
            <a href="javascript:;" locale="hu" class="language-rectangle" onclick="translatePage(this)">
                <div class="specific-locale">Hungarian</div>
                <div class="nativeValue">magyar</div>
            </a>
        </li>

    <script>
        function saveLanguageCookie(langBtn) {
            document.cookie = "jwunitedLang=" + langBtn.getAttribute('locale');
        }

        function getCookie(name) {
            const value = `; ${document.cookie}`;
            const parts = value.split(`; ${name}=`);

            if (parts.length === 2) {
                return parts.pop().split(';').shift();
            }
            return null; // Return null if the cookie doesn't exist
        }


        function translatePage(langBtn) {
            let functionalCookieValue = getCookie('functionalCookies')
            if (functionalCookieValue == 1) {
                saveLanguageCookie(langBtn);
            }
            let params = new URLSearchParams(window.location.href)
            let url = window.location.href
            let anchor = getAnchorFromURL(url)
            window.location = getRedirectionLink(url, langBtn.getAttribute('locale'), anchor);
        }

       function removeParam(key, sourceURL) {
            var rtn = sourceURL.split("?")[0],
                param,
                params_arr = [],
                queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
            if (queryString !== "") {
                params_arr = queryString.split("&");
                for (var i = params_arr.length - 1; i >= 0; i -= 1) {
                    param = params_arr[i].split("=")[0];
                    if (param === key) {
                        params_arr.splice(i, 1);
                    }
                }
                if (params_arr.length) rtn = rtn + "?" + params_arr.join("&");
            }
            return rtn;
        }

        function getRedirectionLink(url, locale, anchor) {
            let urlWithoutLang = removeParam('lang', url);
            return getURLWithoutAnchor(urlWithoutLang) + '?lang=' + locale + anchor;
        }

        function getAnchorFromURL(url) {
            let split = url.split('#')
            if (split.length > 1) {
                return '#' + split[1]
            } else {
                return ''
            }
        }

        function getURLWithoutAnchor(url) {
            return url.split('#')[0]
        }

/*    let testsList = [
        test_shouldRemoveParam,
        test_shouldRemoveParam_GivenURLWithAnchorLink,
        test_shouldGetRightRedirectLink_GivenURLWithoutAnchor,
        test_shouldGetAnchorFromURL_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithAnchor,
        test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor,
        test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor,
    ]

    runTests(testsList)
*/
    function test_shouldRemoveParam() {
        let url = 'http://localhost:8090/ro?lang=ro'
        let result = removeParam('lang', url)
        let expected = 'http://localhost:8090/ro'

        return expected === result
    }

    function test_shouldRemoveParam_GivenURLWithAnchorLink() {
        let url = 'http://localhost:8090/hu/#wiki'
        let anchor = getAnchorFromURL(url)
        let urlWithoutAnchor = getURLWithoutAnchor(url)

        let result = getRedirectionLink(urlWithoutAnchor, 'ro', anchor)
        let expected = 'http://localhost:8090/hu/?lang=ro#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithLangAndWithAnchor() {
        let url = 'http://localhost:8090/ro/?lang=hu#wiki'
        let anchor = getAnchorFromURL(url)

        let result = getRedirectionLink(url, 'en', anchor)
        let expected = 'http://localhost:8090/ro/?lang=en#wiki'

        return expected === result
    }

    function test_shouldGetRightRedirectLink_GivenURLWithoutAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getRedirectionLink(url, 'ro', '')
        let expected = 'http://localhost:8090/hu?lang=ro'

        return expected === result
    }

    function test_shouldGetAnchorFromURL_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getAnchorFromURL(url)
        let expected = '#wiki'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithAnchor() {
        let url = 'http://localhost:8090/hu/#wiki'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu/'

        return expected === result
    }

    function test_shouldGetURLWithoutAnchor_GivenURLWithNoAnchor() {
        let url = 'http://localhost:8090/hu'
        let result = getURLWithoutAnchor(url)
        let expected = 'http://localhost:8090/hu'

        return expected === result
    }



    function runTests(tests) {
        tests.forEach(runIndividualTest)
    }

    function runIndividualTest(test) {
        let result = test()
        if (result) {
            console.log('pass ' + test.name)
        } else {
            console.log('FAILED ' + test.name)
        }
    }

    </script>

            </ul>
        </div>
    </div>

    <script>
    addResetBarClickEvent();
        function addResetBarClickEvent() {
            const allLinks = document.getElementsByClassName("second-row-items-container");
            let allLinksArray = [].slice.call(allLinks[0].children);
            let buttons = filterAllMobileMenuLinks(allLinksArray);
            addClickEventListenerToResetBar(buttons);

            function filterAllMobileMenuLinks(allLinksArray) {
                let menuLinks = [];
                allLinksArray.forEach(function (element) {
                    if (element.classList.contains("header-btn")) {
                        menuLinks.push(element);
                    }})
                return menuLinks;
            }
            function addClickEventListenerToResetBar(buttons) {
                buttons.forEach(function(btn) {
                    btn.addEventListener("click", function(e) {
                        resetBar();
                    });
                });
            }
        }

        function toggleMobileMenu(x) {
            x.classList.toggle("change");
            var body = document.getElementsByTagName("body");
            body[0].classList.toggle("no-scroll");
            var menu = document.getElementsByClassName("second-row");
            menu[0].classList.toggle("show-mobile-menu");

            var mobileLanguages = document.getElementsByClassName("mobile-languages")[0];
            mobileLanguages.classList.toggle('hidden');
        }
        function resetBar() {
            const sandwich = document.getElementById("mobileSandwichMenu");
            sandwich.classList.remove("change")
            var body = document.getElementsByTagName("body");
            body[0].classList.remove("no-scroll");
            var menu = document.getElementsByClassName("second-row");
            menu[0].classList.remove("show-mobile-menu");
        }
        function showMobileLanguages() {
            const mobileLanguagesMenu = document.getElementsByClassName("mobile-languages")[0];
            const mobileLanguageLink = document.getElementsByClassName("arrow-down")[1];
            mobileLanguagesMenu.classList.toggle("show")
            mobileLanguageLink.classList.toggle("rotate")
        }
    </script>
</div></nav>

<div id="site-content">
    <div class="presentations-container" style="flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center">
        <p>The page you have requested could not be found</p>
    </div>
    <footer>
        <div class="presentations-container"><div class="first-footer-section">
    <div class="footer-container">
        <div class="item">
            <h3>Online meetings</h3>
            <ul>
                <li><a href="/en/meetings/online-meetings">Online meetings</a></li>
            </ul>
            <ul>
                <li><a href="/en/meetings/online-bible-study">Online bible study</a></li>
            </ul>
            <ul>
                <li><a href="/en/meetings/text-analisys">Analisys of a bible text</a></li>
            </ul>
        </div>
        <div class="item">
            <h3>Social</h3>
            <ul>
                <li><a href="https://social.jwunited.org">Access</a></li>
            </ul>
            <ul>
                <li><a href="/en/about-us/about-social">More</a></li>
            </ul>
        </div>
        <div class="item">
            <h3>Wiki</h3>
            <ul>
                <li><a href="/en/info/about-wiki">More</a></li>
            </ul>
        </div>
        <div class="item">
            <h3>About Us</h3>
            <ul>
                <li><a href="/en/about-us/mission">About Us</a></li>
            </ul>
            <ul>
                <li><a href="/en/about-us/contact">Contact</a></li>
            </ul>
        </div>
    </div>
</div></div>
        <div class="presentations-container"><div class="second-footer-section">
    <div class="footer-container">
        <ul>
            <li><a href="/en/meetings/online-meetings" >Online meetings</a></li>
            <li><a href="https://social.jwunited.org" >Social</a></li>
            <li><a href="/en/info/about-wiki" >Wiki</a></li>
            <li><a href="/en/about-us/mission" >About Us</a></li>
        </ul>
    </div>
</div></div>
        <div class="presentations-container">
    <style>
     .container-th-crlp {
         display: flex;
         flex-wrap: wrap;
         justify-content: center;
         align-items: baseline;
         border-top: 1px solid #bdbdbd;
         background: #ddd;
         padding: 0.5em;
     }
     .message-th-crlp {
         color: #717171;
         padding-right: 4em;
     }

     @media only screen and (max-width: 768px) {
         .message-th-crlp {
             padding-right: 0;
         }
     }
</style>

<div class="container-th-crlp">
     <div class="message-th-crlp">Copyright © 2026 jwunited.org</div>
     <div><style>
    .links-container-th-llc {
         display:flex;
    }
    .ul-th-llc {
         display: flex;
         margin: 0;
         padding: 0;
         list-style: none;
         font-size: 0.875em;
    }
    .li-th-llc {
         margin-right: 10px;
    }
    .li-th-llc:before {
        float: left;
        margin-right: 10px;
        border-left: 1px solid #919191;
        content: "";
        height: 20px;
    }
    .li-th-llc:first-child:before {
        border:0;
    }
    .a-th-llc {
        text-decoration: none;
        color: #444;
    }
    .a-th-llc:hover {
        text-decoration: underline;
    }
</style>

<ul class="ul-th-llc">
     <li class="li-th-llc">
    <a class="a-th-llc" href="/en/about-us/privacy-policy">Privacy Policy</a>
</li>
<li class="li-th-llc">
    <a class="a-th-llc" href="/en/about-us/terms-of-use">Terms of Use</a>
</li>
<li class="li-th-llc">
    <a class="a-th-llc" href="privacy-button-identifier-href">Privacy Settings</a>
</li>

</ul>
</div>
</div>

</div>
    </footer>
    <div id="gdpr">
    <div id="gdpr-message-container" class="show">
        <div>
            <p id="gdpr-message" >
                <span>To enhance your experience on our website, we use cookies and similar technologies. Some cookies are essential for the core functionality of our site and cannot be declined. You can choose to accept or decline additional cookies. We want to assure you that none of this data will be sold or used for marketing purposes.  You can adjust your preferences at any time by accessing the Privacy Settings from the footer of the page. For more information, please refer to our </span>
            
                <a href="https://jwunited.org/en/about-us/privacy-policy">Privacy Policy</a>&nbsp; &nbsp;
            
                <a href="https://jwunited.org/en/about-us/terms-of-use">Terms of Use</a>&nbsp; &nbsp;
            
            <span>.</span>
            </p>
        </div>
        <div class="btn-container-th-sc">
<!--            <a id="accept-all-cookies-btn" class="a-th-btnc submit-th-btnc" href="">Accept</a>-->
<!--            <a id="refuse-all-cookies-btn" class="a-th-btnc submit-th-btnc" href="">Refuse</a>-->
<!--            <a id="openModal" class="a-th-btnc ghost-th-btnc">Change individual settings</a>-->

            <a id="accept-all-cookies-btn" class="a-th-btnc submit-th-btnc" href="">Accept</a>
            <a id="refuse-all-cookies-btn" class="a-th-btnc submit-th-btnc" href="">Refuse</a>
            <a id="openModal" class="a-th-btnc ghost-th-btnc">Customize</a>
        </div>
    </div>

    <div id="modal" class="modal" role="dialog" aria-modal="true" aria-labelledby="modalTitle" inert>
        <div class="modal__backdrop" data-close></div>
        <div class="modal__panel" role="document">
            <header class="modal__header">
                <h4 id="modalTitle">Privacy settings</h4>
                <button class="modal__close" data-close aria-label="Close modal">&times;</button>
            </header>
            <main class="modal__body">
                <div>
                    <input type="checkbox" id="strictly-necessary" class="cookie-checkbox" checked disabled>
                    <label id="strictly-necessary-label" class="cookie-checkbox-label" for="strictly-necessary">Strictly Necessary Cookies</label>
                    <p>Cookies from this category are necessary for the proper functioning of our website, allowing you to navigate and access specific features. These cookies are typically activated in response to actions you take, such as configuring your privacy settings, logging in, or completing forms. You have the option to adjust your browser to block or notify you about these cookies; however, please note that blocking them may impair the functionality of some sections of the site.</p>
                    <hr>
                </div>
                <div>
                    <input id="functional-cookies" type="checkbox" class="cookie-checkbox">
                    <label class="cookie-checkbox-label" for="functional-cookies">Functional cookies</label>
                    <p>Your preferences can be remembered, such as language. By enabling this feature, you will benefit from an improved experience, enhanced functionality, and personalized customization options.</p>
                    <hr>
                </div>
<!--                 Todo for analytics-->
<!--                <div>-->
<!--                    <input id="analytics-cookies" type="checkbox" class="cookie-checkbox">-->
<!--                    <label class="cookie-checkbox-label" for="analytics-cookies">Enable Analytics Tracking</label>-->
<!--                    <p>We intend to gather information on your usage and interaction with the website. This data is solely used to enhance the website, focusing on its design, performance, and stability. You have the option to manage your data preferences, including opting out of analytics collection, through your Privacy Settings.</p>-->
<!--                    <hr>-->
<!--                </div>-->
            </main>
            <footer class="modal__footer">
                <a id="confirm-customised-cookies" class="a-th-btnc submit-th-btnc -th-btnc" data-close>Confirm</a>
<!--                <button class="btn" data-close>Close</button>-->
            </footer>
        </div>
    </div>
</div>
</div>

<script src="/javascript/main.js"></script>
<script src="/javascript/gdpr.js"></script>
</body>
</html>
