﻿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;'>Qui sommes-nous?</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'>A propos de Lessons For Life</a></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>Comment ça marche</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>A propos de Lessons For Life</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>Comment ça marche</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END ABOUT US


//PRODUCTS
if (chk_url.indexOf("products") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Nos Produits</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'>Anglais : Le set complet</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Anglais : Le set complet</a></li>";
    }
    if (chk_url.indexOf("products_english_course.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_course.html'>Cours d’anglais</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Cours d’anglais</a></li>";
    }
    if (chk_url.indexOf("products_grammar_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_set.html'>Set : Grammaire anglaise pratique</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Set : Grammaire anglaise pratique</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Conversations anglaises pratiques</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Conversations anglaises pratiques</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Niveau 1 (Débutant + Intermédiaire)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'>Niveau 1 (Débutant + Intermédiaire)</a></li>";
    }
    if (chk_url.indexOf("products_english_level2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'>Niveau 2 (Intermédiaire + Avancé)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'>Niveau 2 (Intermédiaire + Avancé)</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Niveau débutant</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Niveau débutant</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Niveau intermédiaire</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Niveau intermédiaire</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>Niveau avancé</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Niveau avancé</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>Grammaire anglaise pratique – 1<sup>ère</sup> partie</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Grammaire anglaise pratique – 1<sup>ère</sup> partie</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part2.html'>Grammaire anglaise pratique – 2<sup>ème</sup>partie</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Grammaire anglaise pratique – 2<sup>ème</sup>partie</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>Jeux interactifs en anglais</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Jeux interactifs en anglais</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END PRODUCTS

//EDUCATION
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Enseignement</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'>Enseignement</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>Enseignement</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>Notre méthode</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>Notre méthode</a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>Anglais langue étrangère</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>Anglais langue étrangère</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>Ecoles de langues</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Ecoles de langues</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>Enseignement secondaire & Cours Moyen</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>Enseignement secondaire & Cours Moyen</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'>Enseignement supérieur</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Enseignement supérieur</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Enseignement à domicile</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Enseignement à domicile</a></li>";
    }
    if (chk_url.indexOf("education_adult_learning.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_adult_learning.html'>Cours pour adultes</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Cours pour adultes</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END EDUCATION

//DISTRIBUTORS
if (chk_url.indexOf("distributors") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Distributeurs</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'>Distributeurs</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>Distributeurs</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>Revendeurs</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Revendeurs</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'>Ecoles de langues</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Ecoles de langues</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>Partenaires stratégiques</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Partenaires stratégiques</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END DISTRIBUTORS


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Support</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>Product Registration</a></li>";
    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='support_FAQ.html'>FAQ</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;
}
