how to make the 8 switches, as in the screenshot

http://cs322816.vk.me/v322816022/19ff/ISIZfNvpHC4.jpg