﻿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;'>Quienes 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'>Acerca de Lessons For Life</a></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>C&oacute;mo funciona</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>Acerca de Lessons For Life</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>C&oacute;mo 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;'>Productos</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&eacute;s: El paquete completo</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Ingl&eacute;s: El paquete completo</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&eacute;s</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Curso de ingl&eacute;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&aacute;tica inglesa pr&aacute;ctica � Paquete</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Gram&aacute;tica inglesa pr&aacute;ctica - Paquete</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Conversaciones inglesas pr&aacute;cticas</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Conversaciones inglesas pr&aacute;cticas</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Nivel 1 (Inicial + Intermedio)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'>Nivel 1 (Inicial + Intermedio)</a></li>";
    }
    if (chk_url.indexOf("products_english_level2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'>Nivel 2 (Intermedio + Avanzado)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'>Nivel 2 (Intermedio + Avanzado)</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Nivel inicial</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Nivel inicial</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Nivel intermedio</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Nivel intermedio</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>Nivel avanzado</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Nivel avanzado</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&aacute;tica inglesa pr&aacute;ctica: Parte 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Gram&aacute;tica inglesa pr&aacute;ctica: 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&aacute;tica inglesa pr&aacute;ctica: Parte 2</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Gram&aacute;tica inglesa pr&aacute;ctica: Parte 2</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>Juegos interactivos en ingl&eacute;s</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Juegos interactivos en ingl&eacute;s</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END PRODUCTS

//EDUCATION
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Educaci&oacute;n</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'>Educaci&oacute;n</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>Educaci&oacute;n</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>Nuestro m&eacute;todo</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>Nuestro m&eacute;todo</a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>ESL (Ingl&eacute;s como segunda lengua)</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>ESL (Ingl&eacute;s como segunda lengua)</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>Escuelas de idiomas</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Escuelas 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'>Institutos de ense&nacute;anza secundaria y segunda etapa de primaria</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>Institutos de enseñanza secundaria y segunda etapa de primaria</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 y escuelas</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Universidades y escuelas</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Educaci&oacute;n en casa</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Educaci&oacute;n en 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'>Aprendizaje para adultos</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Aprendizaje 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'>Vendedores</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Vendedores</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'>Escuelas de ingl&eacute;s</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Escuelas de ingl&eacute;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'>Socios estrat&eacute;gicos</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Socios estrat&eacute;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;'>Asistencia</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>Registro del producto</a></li>";
    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='support_FAQ.html'>Preguntas frecuentes</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;
}
