title: jQuery - How to group multiple variables when using show() or hide()?
body: <p>How can I group all the following variables into using a sigle show() or hide() instead of individual call for each please? Thanks.</p>
  
  <pre><code>var alertsLink = "alertsLink";
  var alertsLinkId = $j("#" + alertsLink);
  var modifyLink = "modifySearch";
  var events = $j("#eventsPanel");
  var alerts = $j("#alertsPanel");
  var results = $j("div.results");
  
  if(id == eventsLink){
      events.show();
      alerts.hide();
      results.hide();
      eventsLinkId.hide();
      alertsLinkId.show();
    }else if(id == alertsLink){
      events.hide();
      alerts.show();
      results.hide();
      alertsLinkId.hide();
      eventsLinkId.show();
    }else if(id != modifyLink){
      events.hide();
      alerts.hide();
      results.show();
      alertsLinkId.show();
      eventsLinkId.show();
    }
  }
  </code></pre>