lib.countrynavigation = COA
lib.countrynavigation {
    wrap = <input type="checkbox" id="countryNavigationTrigger"><nav id="countryNavigation" role="navigation">|</nav>

    10 = TEXT
    10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Schweiz</span></label>

    20 = TEXT
    20.value (
                                        <ul class="clearfix">
                                            <li>
                                                <a href="#" data-country="ch" title="Schweiz">Schweiz</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="de" title="Deutschland">Deutschland</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="it" title="Italien">Italien</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="uk" title="Grossbritanien">Grossbritanien</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="us" title="USA">USA</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="in" title="Indien">Indien</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="asia" title="Asien">Asien</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="ru" title="Russland">Russland</a>
                                            </li>
                                        </ul>
    )
}

#[request.getNormalizedParams().getHttpHost() == 'www.weytec.com' || request.getNormalizedParams().getHttpHost() == 'www.weytec.com.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Schweiz</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.com' || request.getNormalizedParams().getHttpHost() == 'www.weytec.com.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Switzerland</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.de' || request.getNormalizedParams().getHttpHost() == 'www.weytec.de.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Deutschland</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.de' || request.getNormalizedParams().getHttpHost() == 'www.weytec.de.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Germany</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ch' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ch.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Schweiz</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ch' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ch.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Switzerland</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.fr' || request.getNormalizedParams().getHttpHost() == 'www.weytec.fr.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Frankreich</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.fr' || request.getNormalizedParams().getHttpHost() == 'www.weytec.fr.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>France</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.it' || request.getNormalizedParams().getHttpHost() == 'www.weytec.it.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Italien</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.it' || request.getNormalizedParams().getHttpHost() == 'www.weytec.it.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Italy</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ru' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ru.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Russland</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.ru' || request.getNormalizedParams().getHttpHost() == 'www.weytec.ru.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Russia</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.us' || request.getNormalizedParams().getHttpHost() == 'www.weytec.us.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>USA</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.us' || request.getNormalizedParams().getHttpHost() == 'www.weytec.us.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>USA</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk' || request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Grossbritanien</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk' || request.getNormalizedParams().getHttpHost() == 'www.weytec.co.uk.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>United Kingdom</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.asia' || request.getNormalizedParams().getHttpHost() == 'www.weytec.asia.local']
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Asien</span></label>
#[END]
#
#[request.getNormalizedParams().getHttpHost() == 'www.weytec.asia' || request.getNormalizedParams().getHttpHost() == 'www.weytec.asia.local' && siteLanguage("languageId") == "1"]
#    lib.countrynavigation.10.value = <label for="countryNavigationTrigger"><span>Asia</span></label>
#[END]

[request.getCookieParams()['entitySwitch'] == 'ch']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Schweiz</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'ch' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Switzerland</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'de']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Deutschland</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'de' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Germany</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'it']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Italien</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'it' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Italy</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'uk']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Grossbritanien</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'uk' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>United Kingdom</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'us']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>USA</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'us' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>USA</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'in']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Indien</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'in' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>India</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'asia']
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Asien</span></label>
[END]

[request.getCookieParams()['entitySwitch'] == 'asia' && siteLanguage("languageId") == "1"]
    lib.countrynavigation.10.value = <label for="countryNavigationTrigger" id="countryNavigationLabel"><span>Asia</span></label>
[END]

[siteLanguage("languageId") == "1"]
    lib.countrynavigation.20.value (
                                        <ul class="clearfix">
                                            <li>
                                                <a href="#" data-country="ch" title="Switzerland">Switzerland</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="de" title="Germany">Germany</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="it" title="Italy">Italy</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="uk" title="United Kingdom">United Kingdom</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="us" title="USA">USA</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="in" title="India">India</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="asia" title="Asia">Asia</a>
                                            </li>
                                            <li>
                                                <a href="#" data-country="ru" title="Russia">Russia</a>
                                            </li>
                                        </ul>
    )
[END]