

$(function() {

    var menu_number;
    switch(window.location.pathname) {
        case '/posizione-generale.php':
            menu_number = 0;
            break;
        case '/posizione-contributiva.php':
            menu_number = 0;
            break;
        case '/consultazione-cedolini.php':
            menu_number = 0;
            break;
        case '/consultazione-cu-cud.php':
            menu_number = 0;
            break; 
                    
        default:
            cmenu_number = -1;
    }

    var menu_number1;
    switch(window.location.pathname) {
        
        case '/richiesta-piccolo-prestito.php':
            menu_number1 = 0;
            break;  
        case '/richiesta-anticipazione-ifr-tfr.php':
            menu_number1 = 0;
            break;
        case '/variazione-dati-utente.php':
            menu_number1 = 0;
            break; 
                   
        default:
            cmenu_number1 = -1;
    }

    var menu_number2;
    switch(window.location.pathname) {
        
        case '/visualizzazione-tfr.php':
            menu_number2 = 0;
            break; 
        case '/visualizzazione-ifr.php':
            menu_number2 = 0;
            break;  
        
            
        default:
            cmenu_number2 = -1;
    }

    var menu_number3;
    switch(window.location.pathname) {
        
        case '/tool-prestiti.php':
            menu_number3 = 0;
            break;     
            
        default:
            cmenu_number3 = -1;
    }

    $($('.treeview-menu')[menu_number]).css({
        display: 'block'
    });
    $($('.treeview-menu')[menu_number]).parent().toggleClass('menu-open');
});

@@ -529,16 +529,17 @@
 u_number
+ 
 1;%0A    s
@@ -644,32 +644,33 @@
      menu_number
+ 
 1 = 0;%0A         
@@ -749,32 +749,33 @@
      menu_number
+ 
 1 = 0;%0A         
@@ -847,24 +847,25 @@
  menu_number
+ 
 1 = 0;%0A     
@@ -940,16 +940,17 @@
 u_number
+ 
 1 = -1;%0A
@@ -975,16 +975,17 @@
 u_number
+ 
 2;%0A    s
@@ -1083,32 +1083,33 @@
      menu_number
+ 
 2 = 0;%0A         
@@ -1179,24 +1179,25 @@
  menu_number
+ 
 2 = 0;%0A     
@@ -1275,16 +1275,17 @@
 u_number
+ 
 2 = -1;%0A
@@ -1310,16 +1310,17 @@
 u_number
+ 
 3;%0A    s
@@ -1416,24 +1416,25 @@
  menu_number
+ 
 3 = 0;%0A     

Update main.js