I believe Spike has the information you need.
Couldn't resist. I am sure someone will supply you with part numbers and options on the lights.
It sounds like your bar slid out the back of the rails, which is how you would have taken it off. There were some caps on the back ends of those rails but are probably missing now. The bar's sides just slide (from the back) back into the slides and you tighten them down.