PS1 controller to arduino

hi, i saw on the arduino playground that it is possible to connect a ps1 controller to the arduino. however i can't figure out the pin out as every board seem to have different colours...

http://playground.arduino.cc/Main/PSXLibrary
i only have the body and PCB of the controller and not the connector, so i can't figure out the colour code. mine is as bellow from right to left.

YELLOW, BLUE, ORANGE, BROWN, GREEN, RED, PURPLE, BLACK.

if anyone has any experience or can tell me what the colours represent, that would be great!

cheers