    function show_under_menu (rub)
        { 
            document.getElementById('under_menu').innerHTML = ""; 
            
            if (rub=="LOW")       window.open('prices-drop.php','_top','');
            else if (rub=="NEW")  window.open('new-products.php','_top','');
            else
            {
            document.getElementById('under_menu').className="u_menu";
            document.getElementById('menu_femme').style.backgroundPosition="0 0";
            document.getElementById('menu_homme').style.backgroundPosition="-70px 0px"; 
            document.getElementById('menu_junior').style.backgroundPosition="-160px 0px"; 
            document.getElementById('menu_accessoires').style.backgroundPosition="-250px 0px";
            document.getElementById('menu_marques').style.backgroundPosition="-382px 0px";
            
            if (rub=="501") document.getElementById('menu_femme').style.backgroundPosition="0px -27px";
            if (rub=="519") document.getElementById('menu_homme').style.backgroundPosition="-70px -27px";
            if (rub=="505") document.getElementById('menu_junior').style.backgroundPosition="-160px -27px";
            if (rub=="509") document.getElementById('menu_accessoires').style.backgroundPosition="-250px -27px";
            if (rub=="MAN") 
            {
                document.getElementById('menu_marques').style.backgroundPosition="-382px -27px";
                document.getElementById('under_menu').className="u_menum";
            }    
            
            texte = file('/boutique/themes/speedbikini/ajax/header_menu.php?id_category='+escape(rub)); 
            document.getElementById('under_menu').innerHTML = texte; 
            }
        }
    
       function click_menu(rub)
        {
             window.open('category.php?id_category='+rub,'_top',''); 
        } 
   
      
      function hide_under_menu()
        {
            document.getElementById('under_menu').className="u_menu"; 
            document.getElementById('under_menu').innerHTML = "";
        } 
   
    
    function file(fichier)
    // Moteur d'appel d'un fichier ext. en AJAX
    {
    if(window.XMLHttpRequest) // FIREFOX
    xhr_object = new XMLHttpRequest();
    else if(window.ActiveXObject) // IE
    xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
    else
    return(false);
    xhr_object.open("GET", fichier, false);
    xhr_object.send(null);
    if(xhr_object.readyState == 4) return(xhr_object.responseText);
    else return(false);
    }
    
