var isDOM=document.getElementById 
var isOpera=isOpera5=window.opera && isDOM //Opera 5+
var isMSIE=document.all && document.all.item && !isOpera 

//alert(window.location.href);
//alert(window.location.pathname);


// Задаем массив со значениями url страниц



var locations = [
"/eng/about.shtml",
"/eng/rules.shtml",
"/eng/methods/",
"/eng/methods/performance.shtml",
"/eng/methods/case.shtml",
"/eng/methods/psu.shtml",
"/eng/methods/power.shtml",
"/eng/methods/stress.shtml",
"/eng/results.shtml",
"/eng/for_partner.shtml",
"/eng/for_customers.shtml",
"/eng/for_subscribers.shtml",
"/eng/for_readers.shtml"
];


// Задаем массив с id элементов меню
var id_list = [
"about",
"rules",
"meth",
"meth_performance",
"meth_case",
"meth_psu",
"meth_power",
"meth_stress",
"results",
"for_partner",
"for_customers",
"for_subscribers",
"for_readers"
];


// Задаем массив с названиями разделов
var names_list = [
"About us",
"Правила работы RT Lab",
"Test methods",
"Procedures for Testing<br>Computer Performance ",
"Компьютерных корпусов       ",
"Блоков питания              ",
"Мощности системы            ",
"Stress Testing PC Components",
"Test results",
"Partners",
"Customers",
"Subscribers ",
"Readers" 
];





for (var i = 0; i < 13; i++){


  if(window.location.pathname == locations[i]){  


      if ((i >= 2) && (i <= 7)){

        var divsubmenu1 = document.getElementById("submenu1");            
        divsubmenu1.style.display = "block"

      }


     var menu = document.getElementById(id_list[i]);
     menu.innerHTML = names_list[i];

  }

}









