    if (TransMenu.isSupported()) 
    {
            TransMenu.updateImgPath('/lib/scripts/headband/');
            var ms = new TransMenuSet(TransMenu.direction.right, 0, 0, TransMenu.reference.topRight);
            TransMenu.subpad_x = 0;
            TransMenu.subpad_y = 0;
    
    
    
            var tmenu1 = ms.addMenu(document.getElementById("menu1"));



tmenu1.addItem("Авенир", "http://www.avenir.ru/ru/strategic-recruitment/this-is-avenir", 0, 0);

tmenu1.addItem("Вакансии наших клиентов", "http://www.avenir.ru/ru/strategic-recruitment/with-regards-to-candidates", 0, 0);

tmenu1.addItem("Контакты", "http://www.avenir.ru/ru/strategic-recruitment/contacts", 0, 0);



            var tmenu2 = ms.addMenu(document.getElementById("menu2"));



tmenu2.addItem("Наша компания", "http://www.avenir.ru/ru/executive-search/our-company", 0, 0);

tmenu2.addItem("Наша команда", "http://www.avenir.ru/ru/executive-search/our-team", 0, 0);

tmenu2.addItem("Наши принципы", "http://www.avenir.ru/ru/executive-search/our-professional-principles", 0, 0);

tmenu2.addItem("Процесс поиска", "http://www.avenir.ru/ru/executive-search/the-search-process", 0, 0);

tmenu2.addItem("Our clients projects", "http://www.avenir.ru/ru/executive-search/our-clients-projects", 0, 0);

tmenu2.addItem("Контакты", "http://www.avenir.ru/ru/executive-search/contact-information", 0, 0);



        
            var tmenu3 = ms.addMenu(document.getElementById("menu3"));



tmenu3.addItem("Бухгалтерский и налоговый учет", "http://www.avenirresources.ru/ru/resources/russian-financial-and-tax-accounting-services", 0, 0);

tmenu3.addItem("МСФО и управленческий учет", "http://www.avenirresources.ru/ru/resources/international-financial-reporting-standards-ifrs-and-management-accounting", 0, 0);

tmenu3.addItem("Расчет и выплата заработной платы", "http://www.avenirresources.ru/ru/resources/payroll-processing-and-payroll-related-statutory-filing-services", 0, 0);

tmenu3.addItem("Кадровый учет", "http://www.avenirresources.ru/ru/resources/hr-document-work-flow-administration", 0, 0);

tmenu3.addItem("Помощь в оформление виз", "http://www.avenirresources.ru/ru/resources/business-immigration-services", 0, 0);




            document.getElementById("menu1").onmouseover = function() {ms.hideCurrent();}
            
            TransMenu.renderAll();
    }
    init1=function(){TransMenu.initialize();}
    if (window.attachEvent) {window.attachEvent("onload", init1);}
    else{TransMenu.initialize();}

    initPNGTrans();
    
    var tCounter = 0;
    var tCounter_ = 0;
    var sh_back = new Array(
    '#000 url(/lib/scripts/headband/crossbaners/0.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/1.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/2.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/3.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/0.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/0.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/0.jpg)  no-repeat',
    '#000 url(/lib/scripts/headband/crossbaners/4.jpg)  no-repeat');
    var sh_back_number = 0;
    var obj = document.getElementById('sh');
    
    function low_opacity() 
    {
            if(tCounter>=0 && tCounter<10){
                    tCounter = tCounter + 2.5;
                    obj.style.opacity = (10-tCounter)/10;
                    setTimeout('low_opacity()',1);
                    return;
            }
            if(tCounter==10){
                    obj.style.opacity = 0;
                    obj.style.background = sh_back[sh_back_number];
                    document.getElementById('forli'+sh_back_number).style.display = 'block';
                    up_opacity();
            }
    } 
    function up_opacity() 
    {
            if(tCounter_>=0 && tCounter_<10){
                    tCounter_ = tCounter_ + 2.5;
                    obj.style.opacity = tCounter_/10;
                    setTimeout('up_opacity()',100);
                    return;
            }
            if(tCounter_==10){
                    obj.style.opacity = 1;
            }
    }
    
    function crossfade(number){
    
            if(sh_back_number!=number)
            {
                    document.getElementById('forli1').style.display = 'none';
                    document.getElementById('forli2').style.display = 'none';
                    document.getElementById('forli3').style.display = 'none';
                    document.getElementById('forli4').style.display = 'none';
                    document.getElementById('forli5').style.display = 'none';
                    document.getElementById('forli6').style.display = 'none';
                   // document.getElementById('forli7').style.display = 'none';                    
    
                    sh_back_number = number;
                    tCounter = 0;
                    tCounter_ = 0;
                    low_opacity();
            }
    }
            
    document.getElementById('li1').onmouseover = function(){crossfade(1);}
    document.getElementById('li2').onmouseover = function(){crossfade(2);}
    document.getElementById('li3').onmouseover = function(){crossfade(3);}

    document.getElementById('top_li1').onclick = function(){crossfade(4);}
    document.getElementById('top_li2').onclick = function(){crossfade(5);}
    document.getElementById('top_li3').onclick = function(){crossfade(6);}
    //document.getElementById('top_li4').onclick = function(){crossfade(7);} 

