﻿$(function() {
  // NitroSell Menu Expander
  $('a.link-department-selecto,a.link-departmento').each(function() {

    if($(this).attr("class") == 'link-department')
      $(this).nextAll("div.categoryblock:eq(0)").hide();

    $(this).click(function() {
      $("div.categoryblock").not( $(this).nextAll("div.categoryblock:eq(0)") ).slideUp();        
      $(this).nextAll("div.categoryblock:eq(0)").slideToggle();
      return false;
    });

  });
});


$(function() {
  // NitroSell Menu Expander
  $('a.link-category-select-subcatexists,a.link-category-subcatexists').each(function() {

    if($(this).attr("class") == 'link-category-subcatexists')
      $(this).nextAll("div.subcategoryblock:eq(0)").hide();

    $(this).click(function() {
      $("div.subcategoryblock").not( $(this).nextAll("div.subcategoryblock:eq(0)") ).slideUp();        
      $(this).nextAll("div.subcategoryblock:eq(0)").slideToggle();
      return false;
    });

  });
});

