The Potala Palace combines the functions of a palace, castle and temple into one magnificent building.