﻿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;'>Chi siamo</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'>Che cos’è Lessons For Life</a></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>Come funziona</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>Che cos’è Lessons For Life</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>Come funziona</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END ABOUT US


//PRODUCTS
if (chk_url.indexOf("products") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Prodotti</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'>Inglese: corso completo</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Inglese: corso 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'>Corso d’inglese</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Corso d’inglese</a></li>";
    }
    if (chk_url.indexOf("products_grammar_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_set.html'>Corso pratico di grammatica inglese</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Corso pratico di grammatica inglese</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Conversazioni pratiche d’inglese</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Conversazioni pratiche d’inglese</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Livello 1 (Elementare + Intermedio)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'>Livello 1 (Elementare + 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'>Livello 2 (Intermedio + Avanzato)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'>Livello 2 (Intermedio + Avanzato)</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Livello elementare</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Livello elementare</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Livello intermedio</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Livello 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'>Livello avanzato</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Livello avanzato</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>Corso pratico di grammatica inglese - Parte 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Corso pratico di grammatica inglese - 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'>Corso pratico di grammatica inglese - Parte 22</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Corso pratico di grammatica inglese - Parte 2</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>Giochi d’inglese interattivi</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Giochi d’inglese interattivi</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END PRODUCTS

//EDUCATION
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Utilizzo scolastico</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'>Utilizzo scolastico</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>Utilizzo scolastico</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>Il nostro metodo</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>Il nostro metodo</a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>ESL</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>ESL</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>Scuole di lingue</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Scuole di lingue</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>Scuole superiori e ultimi anni delle primarie</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>Scuole superiori e ultimi anni delle primarie</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'>Università e College</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Università e College</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Studio a casa</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Studio a 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'>Apprendenti adulti</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Apprendenti adulti</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END EDUCATION

//DISTRIBUTORS
if (chk_url.indexOf("distributors") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Distributori</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'>Distributori</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>Distributori</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>Rivenditori</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Rivenditori</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'>Scuole di lingua inglese</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Scuole di lingua inglese</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>Partner strategici</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Partner strategici</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END DISTRIBUTORS


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Assistenza</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>Registrazione prodotto</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;
}
