Collapsing objects wraps anything enclosed in expand tags into a collapsible div. This is a work in progress and may be a little bit messy due to me not having done much with PHP in a while and being new to wordpress.