The website of the Judiciary of Scotland provides a useful explanation of the structure of the UK court system.