Definitely want to go with the Eurorail pass. That should cover all your transportation from country to country while your there. Also, check into hostels cause they can save you a grip of money and as already mentioned, schedule your longer rides on the trains at nights so you can sleep.