﻿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;'>Tentang Kami</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'>Tentang Lessons For Life </a></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>Cara kerja</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>Tentang Lessons For Life</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>Cara kerja</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END ABOUT US


//PRODUCTS
if (chk_url.indexOf("products") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Produk</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'>Bahasa Inggris: Edisi Lengkap</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Bahasa Inggris: Edisi Lengkap</a></li>";
    }
    if (chk_url.indexOf("products_english_course.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_course.html'>Kursus Bahasa Inggris</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Kursus Bahasa Inggris</a></li>";
    }
    if (chk_url.indexOf("products_grammar_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_set.html'>Tata Bahasa Inggris Praktis - Bagian</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Tata Bahasa Inggris Praktis - Bagian</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Percakapan Bahasa Inggris Praktis</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Percakapan Bahasa Inggris Praktis</a></li>";
    }
    //if (chk_url.indexOf("products_english_level1.html") != -1) {
    //    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Level 1 (Beginner + Intermediate)</a></li>";
    //}
    //else {
    //    leftmenu += "    <li><a href='products_english_level1.html'>Level 1 (Beginner + Intermediate)</a></li>";
    //}
    //if (chk_url.indexOf("products_english_level2.html") != -1) {
    //    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'>Level 2 (Intermediate + Advanced)</a></li>";
    //}
    //else {
    //    leftmenu += "    <li><a href='products_english_level2.html'>Level 2 (Intermediate + Advanced)</a></li>";
    //}
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Tingkat Pemula</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Tingkat Pemula</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Tingkat Menengah</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Tingkat Menengah</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>Tingkat Mahir</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Tingkat Mahir</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>Tata Bahasa Inggris Praktis – Bagian 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Tata Bahasa Inggris Praktis – Bagian 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'>Tata Bahasa Inggris Praktis – Bagian 2</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Tata Bahasa Inggris Praktis – Bagian 2</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>Permainan Interaktif Bahasa Inggris</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Permainan Interaktif Bahasa Inggris</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END PRODUCTS

//EDUCATION
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Pendidikan</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'>Pendidikan</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>Pendidikan</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>Metode Kami</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>Metode Kami</a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>ESL (Bahasa Inggris Sebagai Bahasa Kedua)</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>ESL (Bahasa Inggris Sebagai Bahasa Kedua)</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>Sekolah Bahasa Inggris</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Sekolah Bahasa Inggris</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>SMA & SMP</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>SMA & SMP</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'>Perguru Tinggi</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Perguru Tinggi</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Sekolah di Rumah</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Sekolah di Rumah</a></li>";
    }
    if (chk_url.indexOf("education_adult_learning.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_adult_learning.html'>Pembelajaran Orang Dewasa</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Pembelajaran Orang Dewasa</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END EDUCATION

//DISTRIBUTORS
if (chk_url.indexOf("distributors") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Permintaan Distribusi</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'>Distributor</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>Distributor</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>Reseller</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Reseller</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'>Sekolah Bahasa Inggris</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Sekolah Bahasa Inggris</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>Mitra Strategis</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Mitra Strategis</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END DISTRIBUTORS


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Dukungan</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_id.asp'>Daftarkan software Anda</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;
}
