correct ' if ' statement

correct ' if ' statement

hi there,
can anybody tell me why these statement doesn't work? i'm getting mad

  1. if ($(this).is ('.active, .colore') && $(this).parent().is('.selectedLava')) {

  2. $('#navigazione ul.nav_secondolivello:visible').fadeOut(0, 
  3.       function (){
  4.       $(attivataA+'_sez').fadeIn(400)}
  5.       );
  6. }
and not even in this way

  1. var attivataA = $(this).attr('href');
  2. var paragone = $('#navigazione ul.nav_secondolivello:visible').attr('id');
  3. if ($(this).is ('.active, .colore') && $(attivataA != '#'+paragone)) {

  4. $('#navigazione ul.nav_secondolivello:visible').fadeOut(0, 
  5. function (){
  6. $(attivataA+'_sez').fadeIn(400)}
  7.       );
  8. }
thanks in advice.
theApprentice