.click broken down by class and ID?

.click broken down by class and ID?

I'm trying to do a function where a class of buttons can be broken down further by ID.  Example:

  1. $(function() {
  2. $(".analyzer").click(function () {
  3. if = ("#ct50")
  4. $('#tabs').load('ct50tabs.html');
  5. $('.CT50').show();
  6. else if ("#status")
  7. $('#tabs').load('statustabs.html');
  8. $('.Status').show();
  9. else if ("#plus")
  10. $('#tabs').load('plustabs.html');
  11. $('.Plus').show();
  12. else if ("#statusconnect")
  13. $('#tabs').load('connecttabs.html');
  14. $('.Plus').show();
  15. else if ("#ct500")
  16. $('#tabs').load('ct500tabs.html');
  17. $('.CT500').show();
  18. else if ("#advantus")
  19. $('#tabs').load('advantustabs.html');
  20. $('.Advantus').show();
  21. else if ("#dca2000")
  22. $('#tabs').load('2000tabs.html');
  23. $('.DCA2k').show();
  24. else if ("#vantage")
  25. $('#tabs').load('vantagetabs.html');
  26. $('.Vantage').show();
  27. $('.analyzer').hide();
  28. });
Can that be done?  If so, what am I doing wrong?  Further, is there a better, simpler way?