All thes cables go into a 7 pinned plug. here are the colours and where they go to. I have done this many times and it works 100%
No.   Ref.     Colour.        Function.
 1      L        Yellow     Nearside Indicator
 2      54G     Blue       Rear Fog Lamp(s)
 3      31       White     Earth
 4      R         Green     Offside Indicator
 5      58R      Brown     Offside Tail
 6      54        Red        Stop Lights
 7      58L       Black      Nearside Tail & No. Plate
|Hope this is some help to you and good luck.
                
 Bill
                
 May 2006