/*

Convenience functions built on the YUI library

*/

// obj should be a Module object or subclass.
function toggleModuleVisibility(evt, obj) {
  if (! obj || ! obj.cfg) return;
  if (obj.cfg.getProperty("visible")) obj.hide();
  else obj.show();
}

