

// -------------COULEUR BOOKS-------------//

var activeMenuItem = false; 
   function showSubMenu(e,inputObj) 
   { 

      if(this && this.tagName)inputObj = this.parentNode; 
       
       
       
      if(inputObj && inputObj.tagName=='LI'){ 
         divToScroll = inputObj.getElementsByTagName('DIV')[0]; 
         for(var no=0;no<otherDivsToScroll.length;no++){ 
            if(otherDivsToScroll[no]==divToScroll)return; 
         }          
      } 
       
      if(inputObj){ 
         if(activeMenuItem){ 
            activeMenuItem.style.backgroundColor=''; 
            activeMenuItem.style.color=''; 
         }          
         var aTag = inputObj; 
         if(inputObj.tagName!='A')aTag = inputObj.getElementsByTagName('A')[0]; 
         aTag.style.backgroundColor='#9acc5b';
         aTag.style.color ='#ffffff'; 
         activeMenuItem = aTag; 
          
      } 
       
      hidingInProcess = false; 
      if(otherDivsToScroll.length>0){ 
         if(divToScroll){             
            if(otherDivsToScroll.length>0){ 
               popMenusToShow(); 
            } 
            if(otherDivsToScroll.length>0){    
               autoHideMenus(); 
               hidingInProcess = true; 
            } 
         }    
      }       
      if(divToScroll && !hidingInProcess){ 
         divToScroll.style.display=''; 
         otherDivsToScroll.length = 0; 
         otherDivToScroll = divToScroll.parentNode; 
         otherDivsToScroll.push(divToScroll);    
         while(otherDivToScroll && otherDivToScroll.tagName!='BODY'){ 
            if(otherDivToScroll.tagName=='DIV' && otherDivToScroll.id.indexOf('slideDiv')>=0){ 
               otherDivsToScroll.push(otherDivToScroll);                
            } 
            otherDivToScroll = otherDivToScroll.parentNode; 
         }          
         ulToScroll = divToScroll.getElementsByTagName('UL')[0]; 
         if(divToScroll.style.height.replace('px','')/1<=1)scrollDownSub();  
      }    
       

   }

