﻿var chk_url = new String(window.location);
var leftmenu = "";

// ABOUT US
if (chk_url.indexOf("about_us") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Quem somos</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    if (chk_url.indexOf("about_us_how_it_works.html") != -1) {
        leftmenu += "    <li><a href='about_us.html'>Sobre a Lessons For Life</a></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>Como funciona</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>Sobre a Lessons For Life</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>Como funciona</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END ABOUT US


//PRODUCTS
if (chk_url.indexOf("products") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Produtos</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    if (chk_url.indexOf("products_the_complete_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_the_complete_set.html'>Inglês: Coleção Completa</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Inglês: Coleção Completa</a></li>";
    }
    if (chk_url.indexOf("products_english_course.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_course.html'>Curso de Inglês</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Curso de Inglês</a></li>";
    }
    if (chk_url.indexOf("products_grammar_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_set.html'>Gramática Inglesa na Prática – Coleção </a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Gramática Inglesa na Prática – Coleção </a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Conversações em Inglês na Prática</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Conversações em Inglês na Prática</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Nível 1 (Iniciante + Intermediário)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'>Nível 1 (Iniciante + Intermediário)</a></li>";
    }
    if (chk_url.indexOf("products_english_level2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'>Nível 2 (Intermediário + Avançado)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'>Nível 2 (Intermediário + Avançado)</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Nível Iniciante</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Nível Iniciante</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Nível Intermediário</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Nível Intermediário</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>Nível Avançado</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Nível Avançado</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>Gramática Inglesa na Prática – Parte 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Gramática Inglesa na Prática – Parte 1</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part2.html'>Gramática Inglesa na Prática – Parte 2</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Gramática Inglesa na Prática – Parte 2</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>Jogos Interativos em Inglês</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Jogos Interativos em Inglês</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END PRODUCTS

//EDUCATION
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Setor de educação</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    if (chk_url.indexOf("education.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education.html'>Setor de educação</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>Setor de educação</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>O nosso método</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>O nosso método</a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>Inglês como segunda língua</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>Inglês como segunda língua</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>Escolas de idiomas</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Escolas de idiomas</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>Ensino médio e últimas séries do ensino fundamental II</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>Ensino médio e últimas séries do ensino fundamental II</a></li>";
    }
    if (chk_url.indexOf("education_universities_and_colleges.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_universities_and_colleges.html'>Universidades e faculdades</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Universidades e faculdades</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Ensino em casa</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Ensino em casa</a></li>";
    }
    if (chk_url.indexOf("education_adult_learning.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_adult_learning.html'>Ensino para adultos</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Ensino para adultos</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END EDUCATION

//DISTRIBUTORS
if (chk_url.indexOf("distributors") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Distribuidores</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    if (chk_url.indexOf("distributors.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors.html'>Distribuidores</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>Distribuidores</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>Revendedores</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Revendedores</a></li>";
    }
    if (chk_url.indexOf("distributors_english_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_english_language_schools.html'>Escolas de inglês</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Escolas de inglês</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>Parceiros estratégicos</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Parceiros estratégicos</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END DISTRIBUTORS


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Suporte</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>Registro de produtos</a></li>";
    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='support_FAQ.html'>Perguntas frequentes</a></li>"
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END SUPPORT


leftmenu += "<br />";
leftmenu += "<img src='/global_html/images/blank.png' alt='' border='0' width='187' height='20' />";
leftmenu += "<br />";

if (document.getElementById) {
    document.getElementById("left_menu").innerHTML = leftmenu;
}
