The combination of diodes determines which of the LEDs will light when one of the switches is activated. The circuit is from the August 1997 Electronics Now magazine.