Treasury. Parliament passed the Greenwich Hospital, etc. Act 1695 (7 & 8 Will. 3 c. 21), long titled An Act for the Increase and Encouragement of Seamen, which established the basic rules of use and benefits for seamen, and amended it the following year by the Greenwich Hospital, etc. Act 1696. In 1705 an additional £6,472 was paid into the fund, comprising the liquidated value of estates belonging to the recently hanged pirate Captain William Kidd. The first of the principal buildings constructed was the King Charles Court (the oldest part dating back to the restoration), completed in March 1705. The other principal buildings constructed included Queen Mary Court (planned by Wren and Hawksmoor, but not built until after Wren's death, by Thomas Ripley), completed in 1742, Queen Anne Court (architects: Wren and Hawksmoor), and King William Court (designed by Wren, but completed by Hawksmoor and Sir John Vanbrugh). Queen Mary Court houses the hospital's chapel (designed by Wren but not completed until 1742). Its present appearance dates from 1779 to 1789, when it was rebuilt to a design by James "Athenian" Stuart after a devastating fire. The ornate plasterwork was created by John Papworth. King William Court is famous for its baroque Painted Hall, which was painted by Sir James Thornhill in honour of King William III and Queen Mary II (the ceiling of the Lower Hall), of Queen Anne and her husband, Prince George of Denmark (the ceiling of the Upper Hall) and George I (the north wall of the Upper Hall). The Painted Hall was deemed too magnificent for the pensioned seamen's refectory and was never regularly used as such. It became a tourist destination, opened for viewing. On 5 January 1806, Lord Nelson's body lay in state in the Painted Hall of the Greenwich Hospital before being taken up the river Thames to St Paul's Cathedral for a state funeral. Nelson's Pediment in the William Courtyard was sculpted in Coade stone in 1813 as a public memorial, and was regarded by the Coade workers as the finest of all their work. In 1824 a National Gallery of Naval Art was created in the Painted Hall, where it remained until 1936, when the collection was transferred to the National Maritime Museum, newly established in the Queen's House and adjacent buildings. On the riverside front of the north-east corner of King Charles Court is an obelisk, designed by