From http://community.spiceworks.com/scripts/show/2043-visualize-your-ad-structure