function toggleView( oObject ) { if( oObject.className.match( /closed/ )) { Spry.Utils.removeClassName( oObject, "closed" ); } else { Spry.Utils.addClassName( oObject, "closed" ); } };