﻿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'>Bagaimana Kami Jalankan</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'>Bagaimana Kami Jalankan</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 Inggeris: Set Penuh</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>Bahasa Inggeris: Set Penuh</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 Inggeris</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>Kursus Bahasa Inggeris</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 - Nahu Bahasa Inggeris Amali</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>Set - Nahu Bahasa Inggeris Amali</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>Perbualan Bahasa Inggeris Amali</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>Perbualan Bahasa Inggeris Amali</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'>Peringkat 1 (Permulaan + Pertengahan)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'>Peringkat 1 (Permulaan + Pertengahan)</a></li>";
    }
    if (chk_url.indexOf("products_english_level2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'>Peringkat 2 (Pertengahan + Lanjutan)</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'>Peringkat 2 (Pertengahan + Lanjutan)</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>Peringkat Permulaan</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>Peringkat Permulaan</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>Peringkat Pertengahan</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>Peringkat Pertengahan</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>Peringkat Lanjutan</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>Peringkat Lanjutan</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>Nahu Bahasa Inggeris Amali - Bahagian 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>Nahu Bahasa Inggeris Amali - Bahagian 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'>Nahu Bahasa Inggeris Amali - Bahagian 2</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>Nahu Bahasa Inggeris Amali - Bahagian 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 Inggeris </a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>Permainan Interaktif Bahasa Inggeris </a></li>";
    }
    if (chk_url.indexOf("products_video.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_video.html'>Menonton Video</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_video.html'>Menonton Video</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'>Kaedah Kami</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>Kaedah Kami</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'>Sekolah-sekolah Bahasa</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>Sekolah-sekolah Bahasa</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>Sekolah Tinggi & Rendah Atasan</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>Sekolah Tinggi & Rendah Atasan</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'>Universiti & Maktab</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>Universiti & Maktab</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>Persekolahan di Rumah</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_homeschool.html'>Persekolahan 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 Dewasa</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>Pembelajaran 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;'>Pengedar</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'>Pengedar</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>Pengedar</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>Penjual Semula</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>Penjual Semula</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 Inggeris</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>Sekolah Bahasa Inggeris</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>Rakan Strategik</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>Rakan Strategik</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END DISTRIBUTORS


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>Sokongan</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>Pendaftaran Produk</a></li>";
    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='support_FAQ.html'>Soalan Lazim</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;
}
