Here is something a little simpler.
http://www.handymanwire.com/articles/BunkBeds.html
Suggestion.....on one end, use 2 x 4's and extend them about 2' above the top bed. Then add some cross members to make a ladder. This could also be done on one side to act as a guard rail to keep a person from falling out.