Separated out the side panel stuff and turned it into a jquery plugin