1.  
  2. var showContent = function(contentType) {
  3. switch (contentType) {
  4. case MAIL :
  5. content[MAIL].setStyleProperty("display", "");
  6. return;
  7. case MESSENGER :
  8. content[MESSENGER].setStyleProperty("display", "");
  9. return;
  10. case RADIO :
  11. content[RADIO].setStyleProperty("display", "");
  12. return;
  13. case WEATHER :
  14. content[WEATHER].setStyleProperty("display", "");
  15. return;
  16. case LOCAL :
  17. content[LOCAL].setStyleProperty("display", "");
  18. return;
  19. case HOROSCOPES:
  20. content[HOROSCOPES].setStyleProperty("display", "");
  21. return;
  22. }
  23. }
  24. var showContentHandler = function(e) {
  25. showContent(prevExpanded.contentType);
  26. }
  27.  
  28.