﻿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;'>معلومات عنا</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></li>"
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us_how_it_works.html'>كيف تعمل؟</a></li>";
    }
    else {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='about_us.html'>عن دروس من أجل الحياة</a></li>"
        leftmenu += "    <li><a href='about_us_how_it_works.html'>كيف تعمل</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END ABOUT US


//المنتجات
if (chk_url.indexOf("products") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>المنتجات</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'>انجليزى: المجموعة الكاملة</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_the_complete_set.html'>انجليزى: المجموعة الكاملة</a></li>";
    }
    if (chk_url.indexOf("products_english_course.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_course.html'>الدورة الإنجليزية</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_course.html'>الدورة الإنجليزية</a></li>";
    }
    if (chk_url.indexOf("products_grammar_set.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_set.html'>قواعد النحو الإنجليزية التطبيقية</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_set.html'>قواعد النحو الإنجليزية التطبيقية</a></li>";
    }
    if (chk_url.indexOf("products_conversations.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_conversations.html'>المحادثات الإنجليزية التطبيقية</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_conversations.html'>المحادثات الإنجليزية التطبيقية</a></li>";
    }
    if (chk_url.indexOf("products_english_level1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level1.html'> المستوى 1 - الاساسى + المتوسط </a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level1.html'> المستوى 1 - الاساسى + المتوسط </a></li>";
    }
    if (chk_url.indexOf("products_english_level2.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_english_level2.html'> المستوى 2 - المتقدم + قواعد النحو</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_english_level2.html'> المستوى 2 - المتقدم + قواعد النحو</a></li>";
    }
    if (chk_url.indexOf("products_beginner_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_beginner_level.html'>المستوى الاساسى</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_beginner_level.html'>المستوى الاساسى</a></li>";
    }
    if (chk_url.indexOf("products_intermediate_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_intermediate_level.html'>المستوى المتوسط</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_intermediate_level.html'>المستوى المتوسط</a></li>";
    }
    if (chk_url.indexOf("products_advanced_level.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_advanced_level.html'>المستوى المتقدم</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_advanced_level.html'>المستوى المتقدم</a></li>";
    }
    if (chk_url.indexOf("products_grammar_part1.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_grammar_part1.html'>قواعد النحو الإنجليزية التطبيقية – الجزء 1</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part1.html'>قواعد النحو الإنجليزية التطبيقية – الجزء 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'>قواعد النحو الإنجليزية التطبيقية – الجزء 2</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_grammar_part2.html'>قواعد النحو الإنجليزية التطبيقية – الجزء 2</a></li>";
    }
    if (chk_url.indexOf("products_games.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_games.html'>العاب إنجليزية تفاعلية</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_games.html'>العاب إنجليزية تفاعلية</a></li>";
    }
    if (chk_url.indexOf("products_video.html") != -1) {
        leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='products_video.html'>مشاهدة الفيديو</a></li>";
    }
    else {
        leftmenu += "    <li><a href='products_video.html'>مشاهدة الفيديو</a></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END المنتجات

//التعليم
if (chk_url.indexOf("education") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>التعليم</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'>التعليم</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education.html'>التعليم</a></li>";
    }
    if (chk_url.indexOf("education_our_method.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_our_method.html'>منهجنا </a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_our_method.html'>منهجنا </a></li>";
    }
    if (chk_url.indexOf("education_esl.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_esl.html'>الإنجليزية كلغة ثانية</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_esl.html'>الإنجليزية كلغة ثانية</a></li>";
    }
    if (chk_url.indexOf("education_language_schools.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_language_schools.html'>مدارس لغات</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_language_schools.html'>مدارس لغات</a></li>";
    }
    if (chk_url.indexOf("education_highschools_lateprimary.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_highschools_lateprimary.html'>مدارس ثانوية & مدارس المرحلة الابتدائية المتأخرة</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_highschools_lateprimary.html'>مدارس ثانوية & مدارس المرحلة الابتدائية المتأخرة</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'>الجامعات & الكليات</a></li>";
    }
    else {
        leftmenu += "   <li><a href='education_universities_and_colleges.html'>الجامعات & الكليات</a></li>";
    }
    if (chk_url.indexOf("education_homeschool.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_homeschool.html'>المدرسة المنزلية</a></li>";
    }
    else {	
        leftmenu += "   <li><a href='education_homeschool.html'>المدرسة المنزلية</a></li>";
    }
    if (chk_url.indexOf("education_adult_learning.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='education_adult_learning.html'>تعليم الكبار</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='education_adult_learning.html'>تعليم الكبار</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
//END education

//distributors
if (chk_url.indexOf("distributors") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>الموزعون</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'>الموزعون</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors.html'>الموزعون</a></li>";
    }
    if (chk_url.indexOf("distributors_resellers.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_resellers.html'>البائعون</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_resellers.html'>البائعون</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'>مدارس اللغات الإنجليزية</a></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_english_language_schools.html'>مدارس اللغات الإنجليزية</a></li>";
    }
    if (chk_url.indexOf("distributors_strategic_partners.html") != -1) {
        leftmenu += "   <li><a style='color: #001f49; background: #bbe5fb;' href='distributors_strategic_partners.html'>شركاء استراتيجيون</a></li></li>";
    }
    else {
        leftmenu += "   <li><a href='distributors_strategic_partners.html'>شركاء استراتيجيون</a></li></li>";
    }
    leftmenu += "</ul>";
    leftmenu += "</div>";
}
// END distributors


// SUPPORT
if (chk_url.indexOf("support") != -1) {
    leftmenu = "<p style='padding:7px;font-weight: bold;'>الدعم</p>";
    leftmenu += "<div style='padding-left:0px; padding-top:0px;'>";
    leftmenu += "<ul class='buttonmenu'>"
    leftmenu += "    <li><a href='register_en.asp'>تسجيل المنتج</a></li>";
    leftmenu += "    <li><a style='color: #001f49; background: #bbe5fb;' href='support_FAQ.html'>الأسئلة المتكررة</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;
}
