It doesn't seem to follow standard wiring colours, so its impossible to for us on the forum to offer copper bottommed advice, except to say careful checking with a multimeter to trace what each wire does might help.
Even though teh colours may be wrong its nice to see who ever did it used ferrules in the wire ends, so perhaps it might actually be a good job.