some updates using ruby 2.0, latest rails and jquery, had to refactor toggling
with jquery